在Mac上安装Axis,Tomcat eclipse

时间:2012-05-26 07:32:29

标签: java eclipse axis2 tomcat7 axis

我在创建Axis,Tomcat(apache-tomcat-7.0.27),Eclipse项目时遇到了问题。

注意:我使用的是Mac OSX 10.7.3

我已经成功地在eclipse中下载并安装了Tomcat。 I followed the following tutorial

现在的问题是整合Axis。我下载了Axis(版本axis2-1.6.2)。并从axis2-web复制了......./Documents/AXIS_Project/axis2-1.6.2/webapp文件夹并将其粘贴到其中 Tomcat中的/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

1 个答案:

答案 0 :(得分:2)

download page中,您应该下载WAR分发,而不是二进制分发。二进制文件需要额外的部署步骤。 WAR只是把它放进去。