我尝试在JBoss 6.0.0上部署Axis2 war文件(版本1.6.1和1.5.6)并出现以下错误:
`
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 :(得分: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>
这是我文件的内容。我在WEB-INF目录中也需要一个名为 jboss-classloading.xml 的文件
<?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>
我希望这有帮助,抱歉我的英语很差。