我在TOMCAT5中发布AXIS2的WEBSERVICE没有问题,运行正常,为什么把*.WAR考到JBOSS4下,启动JBOSS,会报如下错误。请指教。
14:27:27,750 INFO  [STDOUT] [WARN] Exception extracting jars into temporary dire
ctory : java.io.FileNotFoundException: D:\jboss-4.2.3.GA\server\default\.\deploy
\axis2.war\WEB-INF (拒绝访问。) : switching to alternate class loading mechanism14:27:27,875 INFO  [STDOUT] [INFO] Deploying Exception Occured with java.io.File
NotFoundException: D:\jboss-4.2.3.GA\server\default\.\deploy\axis2.war\WEB-INF (
拒绝访问。)
java.lang.RuntimeException: java.io.FileNotFoundException: D:\jboss-4.2.3.GA\ser
ver\default\.\deploy\axis2.war\WEB-INF (拒绝访问。)
        at org.apache.axis2.deployment.util.Utils.findLibJars(Utils.java:870)
        at org.apache.axis2.deployment.util.Utils.createClassLoader(Utils.java:9
18)
        at org.apache.axis2.jaxws.framework.JAXWSDeployer.deployServicesInWARCla
ssPath(JAXWSDeployer.java:100)
        at org.apache.axis2.jaxws.framework.JAXWSDeployer.init(JAXWSDeployer.jav
a:80)
        at org.apache.axis2.deployment.DeploymentEngine.initializeDeployers(Depl
oymentEngine.java:928)
        at org.apache.axis2.deployment.DeploymentEngine.setConfigContext(Deploym
entEngine.java:919)
        at org.apache.axis2.deployment.WarBasedAxisConfigurator.setConfigContext
(WarBasedAxisConfigurator.java:350)
        at org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
ionContext(ConfigurationContextFactory.java:76)
        at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisSer
vlet.java:516)
        at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:436
)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1161)
    ……
……
……
……

解决方案 »

  1.   

    https://issues.apache.org/jira/browse/AXIS2-3837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604481#action_12604481-------------------------------------------------
    Peter Nash - 05/Sep/08 05:08 AM 
    I fixed this problem by upgrading from 4.2.2 to JBoss 5.0.0. I think it was caused by the JBoss Tools set, version 2.00 which expected a newer version. 
    -------------------------------------------------
    Jonck van der Kogel - 22/Oct/08 01:31 AM 
    I found a "solution" for this problem. In your axis2.xml config file, comment out this line: <deployer extension=".jar" directory="servicejars" class="org.apache.axis2.jaxws.framework.JAXWSDeployer"/> After this JBoss (I am using 4.2.3) will start up without any errors. Of course this is not a real solution, and implies that there is a problem with the JAXWSDeployer. Perhaps someone who uses this can open another JIRA item on this?