从官法网站下载axis2-1.4.1-war、jboss-4.2.3.GA、jdk-6u10-windows-i586-p.exe
安装JDK,设置环境变量。
解压jboss-4.2.3.GA到D盘艮目。
解压axis2-1.4.1-war,拷贝axis2.war到D:\jboss-4.2.3.GA\server\default\deploy目录。
启动Jboss,出现如下异常信息,是何故?12:54:06,765 WARN  [Utils] Exception extracting jars into temporary directory :
java.io.FileNotFoundException: D:\jboss-4.2.3.GA\server\default\.\deploy\axis2.w
ar\WEB-INF (拒绝访问。) : switching to alternate class loading mechanism
12:54:06,765 INFO  [JAXWSDeployer] 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)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:98
1)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:4071)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
375)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:790)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
0)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.j
ava:296)
        at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:1
64)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.apache.catalina.core.StandardContext.init(StandardContext.java:53
12)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.j
ava:296)
        at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:1
64)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(Tom
catDeployer.java:301)
        at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeplo
yer.java:104)
        at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)        at org.jboss.web.WebModule.startModule(WebModule.java:83)
        at org.jboss.web.WebModule.startService(WebModule.java:61)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
upport.java:289)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
eanSupport.java:245)
        at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:978)

解决方案 »

  1.   

    12:54:06,765   WARN     [Utils]   Exception   extracting   jars   into   temporary   directory   : 
    java.io.FileNotFoundException:   D:\jboss-4.2.3.GA\server\default\.\deploy\axis2.w 
    ar\WEB-INF   (拒绝访问。)   :   switching   to   alternate   class   loading   mechanism 
    -------------------------------
    使用jboss的部署工具来部署. 直接解压文件有些配置可能无法生效
      

  2.   

    好像是有些文件找不到,axis2的jar包全不?
      

  3.   

    使用jboss的部署工具来部署. 怎么用?指导一下,谢谢!
      

  4.   

    FileNotFoundException  你缺少东西了,没用过jboss。
      

  5.   

    好像是有些文件找不到,axis2的jar包全不?
    ------------------------从apache网站上直接下载的
    http://dev.xiaonei.com/apache-mirror/ws/axis2/1_4_1/axis2-1.4.1-war.zip我把axis2.war部署到D:\apache-tomcat-6.0.18\webapps下是可以正常启动的,没有任何异常。
      

  6.   

    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? 
      

  7.   

    Jboss与jobss-seam正在学习中,很多问题不得解决.
      

  8.   

    D:\jboss-4.2.3.GA\server\default\.\deploy\axis2.w提示这个找不到.为什么你default\.\ 这里有一个.\ 的路径. 应该default下就是deploy目录的.是不是这个问题?如果是,为什么会生成出来这样的路径?  你找找原因