当前位置: 代码迷 >> JBoss >> jboss5.0GA发布EAR错误
  详细解决方案

jboss5.0GA发布EAR错误

热度:10384   发布时间:2013-02-26 00:00:00.0
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