Java 在Mac上安装Axis、Tomcat eclipse
我在创建Axis、Tomcat(Java 在Mac上安装Axis、Tomcat eclipse,java,eclipse,axis2,tomcat7,axis,Java,Eclipse,Axis2,Tomcat7,Axis,我在创建Axis、Tomcat(apache-Tomcat-7.0.27)和Eclipse项目时遇到问题 注意:我使用的是Mac OSX 10.7.3 我已经在eclipse中成功下载并安装了Tomcat 现在的问题是如何整合Axis。我下载了Axis(版本axis2-1.6.2)。并从../Documents/AXIS_Project/axis2-1.6.2/webapp复制了axis2-web文件夹,并将其粘贴到 tomcat中的/Documents/AXIS_Project/apache-
apache-Tomcat-7.0.27
)和Eclipse项目时遇到问题
注意:我使用的是Mac OSX 10.7.3
我已经在eclipse中成功下载并安装了Tomcat
现在的问题是如何整合Axis。我下载了Axis(版本axis2-1.6.2
)。并从../Documents/AXIS_Project/axis2-1.6.2/webapp
复制了axis2-web
文件夹,并将其粘贴到
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
在中,您应该下载WAR发行版,而不是二进制发行版。二进制文件需要额外的步骤来部署。这场战争只需要投入就行了。你是怎么开始tomcat的?如果您从eclipse开始,默认配置是最小的配置,并且遗漏了一些内容。它也尝试从终端运行tomcat
/startup.sh
,然后键入http://localhost:8080/axis2-web/
我仍然看到同样的错误