0

我在创建 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
4

1 回答 1

2

下载页面,您应该下载 WAR Distribution,而不是 Binary Distribution。二进制文件需要额外的步骤来部署。战争只是把它放进去。

于 2012-05-26T14:54:40.930 回答