error and solve

1、缺少对应的jar包

出错信息:

Multiple markers at this line
- The type org.springframework.beans.factory.Aware cannot be resolved. It is indirectly
referenced from required .class files
- The hierarchy of the type SetSurveyAction is inconsistent

解决办法:

原因是缺少对应的包,导入包就行了

2、option是mysql的关键字

出错信息:

com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'option) values (3, 'é?????hb', 0)' at line 1

解决办法:

option是mysql的关键字
将SurveyChild表中的option字段改一下就ok啦

3、需要mail.jaractivation.jar

出错信息:

 

- Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
2014-2-26 17:10:42 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [DashboardServlet] in context with path [/ajax-dashboard] threw exception
java.lang.NullPointerException
at ajaxdashboard.service.StockQuoteService.getStockQuotesFor(StockQuoteService.java:21)
at ajaxdashboard.servlet.DashboardServlet.getStockQuotes(DashboardServlet.java:46)
at ajaxdashboard.servlet.DashboardServlet.processRequest(DashboardServlet.java:24)
at ajaxdashboard.servlet.DashboardServlet.doGet(DashboardServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1813)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)

解决办法:

错误原因:
需要mail.jaractivation.jar

Solution:
Web Services Required Jars Download Instructions http://www.eclipse.org/webtools/wst/components/ws/download_instructions_for_jars.html

解决办法:
1) 下载javamailjaf,解压出mail.jaractivation.jarhttp://java.sun.com/products/javamail/downloads/index.html
http://java.sun.com/products/javabeans/glasgow/jaf.html#download
或者我提供了一个rar包:包含mail.jar action.jar
downloadmail.jar and activation.jar
2) mail.jaractivation.jar放到%AXIS_HOME%/WEB-INF/lib目录下

3) .jar文件添加到%CLASSPATH%

说明:
这个是可以忽略的。不过以后构建web services都要用到的,还是添加上的好。
参考:http://www.ogsadai.org.uk/documentation/ogsadai-wsi-2.1/doc/wsi/FAQ.html
This is a warning message that can safely be ignored. It is displayed when Axis has been deployed without an optional JAR. An optional JAR is one that allows Axis to support a particular piece of functionalty but is not required for general use. Please refer to the Axis documentation for more details.备注:
一篇很好的jars下载指南:Web Services Required Jars Download Instructions
Axis指南:Guide to building Axis 

 

 

 

 

posted @ 2014-03-19 11:46  XiaoyangBoke  阅读(379)  评论(0编辑  收藏  举报