我在创建 Axis、Tomcat ( apache-tomcat-7.0.27
)、Eclipse 项目时遇到问题。
注意:我使用的是 Mac OSX 10.7.3
我已经在eclipse中成功下载并安装了Tomcat。我按照以下教程进行操作。
现在的问题是整合Axis。我下载了 Axis(版本axis2-1.6.2
)。并从Tomcat中复制axis2-web
文件夹......./Documents/AXIS_Project/axis2-1.6.2/webapp
并将其粘贴到文件夹中。/Documents/AXIS_Project/apache-tomcat-7.0.27
现在我重新启动 Tomcat,然后输入http://localhost:8080/axis2-web/
,然后我收到以下消息;
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 14 in the generated java file
Only a type can be imported. org.apache.axis2.Constants resolves to a package
An error occurred at line: 15 in the generated java file
Only a type can be imported. org.apache.axis2.context.ConfigurationContext resolves to a package
An error occurred at line: 16 in the generated java file
Only a type can be imported. org.apache.axis2.description.Parameter resolves to a package
An error occurred at line: 17 in the generated java file
Only a type can be imported. org.apache.axis2.transport.http.AxisServlet resolves to a package
An error occurred at line: 18 in the generated java file
Only a type can be imported. org.apache.axis2.transport.TransportListener resolves to a package