jboss5.0GA发布EAR异常
单独的ejb用jar发布是正常的,能通过测试,
当把ejb的jar删除后,如下把ejb与web应用一起发布<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Application_ID" version="1.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
<display-name>eartest</display-name>
<module>
<web>
<web-uri>test1.war</web-uri>
<context-root>/test1</context-root>
</web>
</module>
<module>
<ejb>oraclecabin.jar</ejb>
</module>
</application>
[/出现如下错误信息
lobal JNDI:
eartest/AdminBean/remote - EJB3.x Default Remote Business Interface
eartest/AdminBean/remote-com.test.enty.Admin - EJB3.x Remote Business In
terface
15:31:42,031 ERROR [AbstractKernelController] Error installing to Configured: na
me=jboss.web.deployment:war=/test1 state=Instantiated mode=Manual requiredState=
Configured
java.lang.RuntimeException: Exception setting attribute SecurityManagement on mb
ean jboss.web.deployment:war=/test1
at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.ja
va:170)
at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.ja
va:114)
at org.jboss.system.microcontainer.ConfigureAction.installAction(Configu
reAction.java:58)
at org.jboss.system.microcontainer.ConfigureAction.installAction(Configu
reAction.java:42)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.sim
pleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.ins
tall(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install
(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
ctControllerContext.java:348)
at org.jboss.system.microcontainer.ServiceControllerContext.install(Serv
iceControllerContext.java:286)
at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
oller.java:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
ctController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
actController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
actController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
ller.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
ller.java:553)
at org.jboss.system.ServiceController.doChange(ServiceController.java:68
8)
at org.jboss.system.ServiceController.install(ServiceController.java:274
)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.jav
a:90)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.jav
a:46)
at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.i
nternalDeploy(AbstractSimpleRealDeployer.java:62)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(
AbstractRealDeployer.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(Deployer
Wrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(Deployer
sImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi
rst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi
rst(DeployersImpl.java:1178)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi
rst(DeployersImpl.java:1210)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(Deployers
Impl.java:1098)
at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
ctControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
oller.java:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
ctController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
actController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
actController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
ller.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
ller.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(Deployers
Impl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeploye
rImpl.java:698)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDSca
nner.java:290)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScan
ner.java:221)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:41
7)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java
:280)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$101(ScheduledThreadPoolExecutor.java:65)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
runPeriodic(ScheduledThreadPoolExecutor.java:142)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(ScheduledThreadPoolExecutor.java:166)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.management.InvalidAttributeValueException: Set attribute has c
lass class org.jboss.security.integration.JNDIBasedSecurityManagement loaded fro
m BaseClassLoader@16dc5c9{vfsfile:/D:/server/jboss-5.0.1.GA/server/default/conf/
jboss-service.xml} that is not assignable to attribute class interface org.jboss
.security.ISecurityManagement loaded from BaseClassLoader@21dfe5{vfszip:/D:/serv
er/jboss-5.0.1.GA/server/default/deploy/eartest.ear/test1.war/}
at org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.checkAssignab
le(ModelMBeanAttributeInterceptor.java:229)
at org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.invoke(ModelM
BeanAttributeInterceptor.java:88)
at org.jboss.mx.interceptor.PersistenceInterceptor.invoke(PersistenceInt
erceptor.java:76)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
at org.jboss.mx.server.AbstractMBeanInvoker.setAttribute(AbstractMBeanIn
voker.java:461)
at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java
:617)
at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.ja
va:166)
... 46 more
[解决办法]
已自行解决
[解决办法]
楼主如何解决的?
赐教,遇到了同样的问题.
[解决办法]
请楼主赐教.谢谢了!!!
[解决办法]
请楼主分享一下你的解决方案,可以吗?