2012-04-03 104 views
0

我試圖在JBoss 6.0.0部署Axis2 WAR文件(版本1.6.1和1.5.6),並得到了以下錯誤:
6的JBoss部署錯誤的Axis2

`

DEPLOYMENTS IN ERROR: 
    Deployment "vfs:///C:/Desenvolvimento/jboss-6.0.0.Final/server/default/deploy/ 
axis2.war" is in error due to the following reason(s): java.lang.ClassNotFoundEx 
ception: 1.0.com.sun.codemodel.JConditional 
     at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(Dep 
loyersImpl.java:1228) [:2.2.0.GA] 
     at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainD 
eployerImpl.java:905) [:2.2.0.GA] 
     at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.c 
heckComplete(MainDeployerPlugin.java:87) [:6.0.0.Final] 
     at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.che 
ckAllComplete(ProfileDeployerPluginRegistry.java:107) [:0.2.2] 
     at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceB 
ootstrap.start(BasicProfileServiceBootstrap.java:135) [:6.0.0.Final] 
     at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceB 
ootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final] 
     at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(A 
bstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5] 
     at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.r 
un(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5] 
     at java.lang.Thread.run(Thread.java:662) [:1.6.0_27] 

`

在此先感謝

回答

0

我有同樣的問題,但與CXF。 問題是jar jaxb-xjc - *。jar

我需要爲jboss添加一個特殊配置的XML。

文件名:的jboss-scanning.xml(把這個WEB-INF目錄下)

<?xml version="1.0" encoding="UTF-8"?> 
<scanning xmlns="urn:jboss:scanning:1.0"> 
    <path name="WEB-INF/classes" /> 
    <path name="WEB-INF/lib/jaxb-xjc-2.1.13.jar"> 
     <exclude name="" recurse="true" /> 
    </path> 
</scanning> 

這是我的文件的內容。太我需要的名稱的文件:的jboss-classloading.xml,在WEB-INF目錄太

<?xml version="1.0" encoding="UTF-8" ?> 
<classloading xmlns="urn:jboss:classloading:1.0" domain="project.war" 
    export-all="NON_EMPTY" import-all="true"> 
</classloading> 

我希望這種幫助,對不起我的英文不好。