当前位置: 代码迷 >> Java Web开发 >> Axis安装有关问题
  详细解决方案

Axis安装有关问题

热度:8801   发布时间:2013-02-25 21:09:10.0
Axis安装问题
安装Axis时出现如下问题,请问如何解决。


所有需要的jar包已经全部下载好并放入了相应的lib下。浏览器打开http://localhost:8080/axis/happyaxis.jsp页面
出现如下信息:

Needed Components

Found SAAJ API ( javax.xml.soap.SOAPMessage ) at an unknown location

Found JAX-RPC API ( javax.xml.rpc.Service ) at D:\apache-tomcat-7.0.14\webapps\axis\WEB-INF\lib\jaxrpc.jar

Found Apache-Axis ( org.apache.axis.transport.http.AxisServlet ) at D:\apache-tomcat-7.0.14\webapps\axis\WEB-INF\lib\axis.jar

Found Jakarta-Commons Discovery ( org.apache.commons.discovery.Resource ) at D:\apache-tomcat-7.0.14\webapps\axis\WEB-INF\lib\commons-discovery-0.2.jar

Found Jakarta-Commons Logging ( org.apache.commons.logging.Log ) at D:\apache-tomcat-7.0.14\webapps\axis\WEB-INF\lib\commons-logging-1.0.4.jar

Found Log4j ( org.apache.log4j.Layout ) at D:\apache-tomcat-7.0.14\webapps\axis\WEB-INF\lib\log4j-1.2.8.jar

Found IBM's WSDL4Java ( com.ibm.wsdl.factory.WSDLFactoryImpl ) at D:\apache-tomcat-7.0.14\webapps\axis\WEB-INF\lib\wsdl4j-1.5.1.jar

Found JAXP implementation ( javax.xml.parsers.SAXParserFactory ) at an unknown location

Found Activation API ( javax.activation.DataHandler ) at an unknown location


Found SAAJ API ( javax.xml.soap.SOAPMessage ) at an unknown location
Found JAXP implementation ( javax.xml.parsers.SAXParserFactory ) at an unknown location
Found Activation API ( javax.activation.DataHandler ) at an unknown location


网上找了很多方法,说要有对应的jar包,我查看了我的jar包,每个jar都有,还有的方法是把jar要放入环境变量的CLASSPATH中,我也放了。具体CLASSPATH设置如下:
.;D:\Java\jdk1.6.0_25\lib\dt.jar;D:\Java\jdk1.6.0_25\lib\tools.jar;D:\apache-tomcat-7.0.14\webapps\axis\WEB-INF\lib\activation.jar;D:\apache-tomcat-7.0.14\webapps\axis\WEB-INF\lib\mailapi_1_3_1.jar;D:\apache-tomcat-7.0.14\webapps\axis\WEB-INF\lib\axis.jar;D:\apache-tomcat-7.0.14\webapps\axis\WEB-INF\lib\jaxrpc.jar;D:\apache-tomcat-7.0.14\webapps\axis\WEB-INF\lib\saaj.jar;D:\apache-tomcat-7.0.14\webapps\axis\WEB-INF\lib\commons-discovery-0.2.jar;D:\apache-tomcat-7.0.14\webapps\axis\WEB-INF\lib\commons-logging-1.0.4.jar;D:\apache-tomcat-7.0.14\webapps\axis\WEB-INF\lib\wsdl4j-1.5.1.jar

但是就是不起作用,浏览http://localhost:8080/axis/happyaxis.jsp页面的下半部分发现:

Examining System Properties

user.name=yalone
java.class.path=D:\apache-tomcat-7.0.14\bin\bootstrap.jar;D:\apache-tomcat-7.0.14\bin\tomcat-juli.jar

是不是说明我的CLASSPATH没有设置对,还请各位大神不吝赐教!!谢谢了。


------解决方案--------------------------------------------------------
tools.jar加上