发帖    主题    评论    推荐    标签    作者    订阅    查搜    注册   登陆   关注
 
面向对象 设计模式 领域驱动设计 企业架构 框架 开发教程 微服务 CQRS 扩展性 并发编程 事件溯源 分布式 SOA

在编译上传时jboss发生错误,请帮忙

2004-05-27 14:48
赞助商链接

错误内容为:
java.lang.SecurityException: Invalid authentication attempt, principal=null
at org.jboss.resource.connectionmanager.BaseConnectionManager2.getSubject(BaseConnectionManager2.java:647)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:476)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:814)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:102)
at org.jboss.mq.pm.jdbc2.PersistenceManager.getConnection(PersistenceManager.java:1266)
at org.jboss.mq.pm.jdbc2.PersistenceManager.resolveAllUncommitedTXs(PersistenceManager.java:216)
at org.jboss.mq.pm.jdbc2.PersistenceManager.startService(PersistenceManager.java:1356)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
at $Proxy14.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:394)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy6.deploy(Unknown Source)
..................
是什么所造成的?真痛苦,从移植到现在一个多礼拜了,进展缓慢……

2004-05-27 14:56

你启动了EJB的安全ACL机制,检查EJB部署包中的配置文件,取消EJB授权机制。

2004-05-27 15:12

不太懂,我给你看文件,请指出那个造成的好吗?
###########################ejb-jar.xml###########################
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE ejb-jar PUBLIC
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">

<ejb-jar>
<enterprise-beans>

<session>
<ejb-name>lg010g01</ejb-name>
<home>sha.shasys.lg.lg010.lg010g01.Lg010G01Home</home>
<remote>sha.shasys.lg.lg010.lg010g01.Lg010G01</remote>
<ejb-class>sha.shasys.lg.lg010.lg010g01.Lg010G01Bean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>

<session>
<ejb-name>sha010g01</ejb-name>
<home>sha.shasys.sha.sha010.sha010g01.Sha010G01Home</home>
<remote>sha.shasys.sha.sha010.sha010g01.Sha010G01</remote>
<ejb-class>sha.shasys.sha.sha010.sha010g01.Sha010G01Bean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>

<session>
<ejb-name>sha010g02</ejb-name>
<home>sha.shasys.sha.sha010.sha010g02.Sha010G02Home</home>
<remote>sha.shasys.sha.sha010.sha010g02.Sha010G02</remote>
<ejb-class>sha.shasys.sha.sha010.sha010g02.Sha010G02Bean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>

<session>
<ejb-name>sha010g03</ejb-name>
<home>sha.shasys.sha.sha010.sha010g03.Sha010G03Home</home>
<remote>sha.shasys.sha.sha010.sha010g03.Sha010G03</remote>
<ejb-class>sha.shasys.sha.sha010.sha010g03.Sha010G03Bean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>

<session>
<ejb-name>sha010g04</ejb-name>
<home>sha.shasys.sha.sha010.sha010g04.Sha010G04Home</home>
<remote>sha.shasys.sha.sha010.sha010g04.Sha010G04</remote>
<ejb-class>sha.shasys.sha.sha010.sha010g04.Sha010G04Bean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>

<session>
<ejb-name>sha010g05</ejb-name>
<home>sha.shasys.sha.sha010.sha010g05.Sha010G05Home</home>
<remote>sha.shasys.sha.sha010.sha010g05.Sha010G05</remote>
<ejb-class>sha.shasys.sha.sha010.sha010g05.Sha010G05Bean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>

<session>
<ejb-name>sha020g01</ejb-name>
<home>sha.shasys.sha.sha020.sha020g01.Sha020G01Home</home>
<remote>sha.shasys.sha.sha020.sha020g01.Sha020G01</remote>
<ejb-class>sha.shasys.sha.sha020.sha020g01.Sha020G01Bean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>

<session>
<ejb-name>sha020g02</ejb-name>
<home>sha.shasys.sha.sha020.sha020g02.Sha020G02Home</home>
<remote>sha.shasys.sha.sha020.sha020g02.Sha020G02</remote>
<ejb-class>sha.shasys.sha.sha020.sha020g02.Sha020G02Bean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>

<session>
<ejb-name>sha020g04</ejb-name>
<home>sha.shasys.sha.sha020.sha020g04.Sha020G04Home</home>
<remote>sha.shasys.sha.sha020.sha020g04.Sha020G04</remote>
<ejb-class>sha.shasys.sha.sha020.sha020g04.Sha020G04Bean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>

<session>
<ejb-name>sha990g01</ejb-name>
<home>sha.shasys.sha.sha990.sha990g01.Sha990G01Home</home>
<remote>sha.shasys.sha.sha990.sha990g01.Sha990G01</remote>
<ejb-class>sha.shasys.sha.sha990.sha990g01.Sha990G01Bean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>

<session>
<ejb-name>sha030g01</ejb-name>
<home>sha.shasys.sha.sha030.sha030g01.Sha030G01Home</home>
<remote>sha.shasys.sha.sha030.sha030g01.Sha030G01</remote>
<ejb-class>sha.shasys.sha.sha030.sha030g01.Sha030G01Bean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>

<session>
<ejb-name>sha030g02</ejb-name>
<home>sha.shasys.sha.sha030.sha030g02.Sha030G02Home</home>
<remote>sha.shasys.sha.sha030.sha030g02.Sha030G02</remote>
<ejb-class>sha.shasys.sha.sha030.sha030g02.Sha030G02Bean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>

<session>
<ejb-name>sha030g03</ejb-name>
<home>sha.shasys.sha.sha030.sha030g03.Sha030G03Home</home>
<remote>sha.shasys.sha.sha030.sha030g03.Sha030G03</remote>
<ejb-class>sha.shasys.sha.sha030.sha030g03.Sha030G03Bean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>

<session>
<ejb-name>sha030g04</ejb-name>
<home>sha.shasys.sha.sha030.sha030g04.Sha030G04Home</home>
<remote>sha.shasys.sha.sha030.sha030g04.Sha030G04</remote>
<ejb-class>sha.shasys.sha.sha030.sha030g04.Sha030G04Bean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>

<session>
<ejb-name>sha040g01</ejb-name>
<home>sha.shasys.sha.sha040.sha040g01.Sha040G01Home</home>
<remote>sha.shasys.sha.sha040.sha040g01.Sha040G01</remote>
<ejb-class>sha.shasys.sha.sha040.sha040g01.Sha040G01Bean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>

<session>
<ejb-name>sha040g02</ejb-name>
<home>sha.shasys.sha.sha040.sha040g02.Sha040G02Home</home>
<remote>sha.shasys.sha.sha040.sha040g02.Sha040G02</remote>
<ejb-class>sha.shasys.sha.sha040.sha040g02.Sha040G02Bean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>

</enterprise-beans>

</ejb-jar>

############################jboss.xml############################
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE jboss PUBLIC
"-//JBoss//DTD JBOSS 3.2//EN"
"http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd">

<jboss>

<enterprise-beans>

<session>
<ejb-name>lg010g01</ejb-name>
<jndi-name>sha.shasys.lg.lg010.lg010g01</jndi-name>
</session>

<session>
<ejb-name>sha010g01</ejb-name>
<jndi-name>sha.shasys.sha.sha010.sha010g01</jndi-name>
</session>

<session>
<ejb-name>sha010g02</ejb-name>
<jndi-name>sha.shasys.sha.sha010.sha010g02</jndi-name>
</session>

<session>
<ejb-name>sha010g03</ejb-name>
<jndi-name>sha.shasys.sha.sha010.sha010g03</jndi-name>
</session>

<session>
<ejb-name>sha010g04</ejb-name>
<jndi-name>sha.shasys.sha.sha010.sha010g04</jndi-name>
</session>

<session>
<ejb-name>sha010g05</ejb-name>
<jndi-name>sha.shasys.sha.sha020.sha020g01sha010g05</jndi-name>
</session>

<session>
<ejb-name>sha020g01</ejb-name>
<jndi-name>sha.shasys.sha.sha020.sha020g01</jndi-name>
</session>

<session>
<ejb-name>sha020g02</ejb-name>
<jndi-name>sha.shasys.sha.sha020.sha020g02</jndi-name>
</session>

<session>
<ejb-name>sha020g04</ejb-name>
<jndi-name>sha.shasys.sha.sha020.sha020g04</jndi-name>
</session>

<session>
<ejb-name>sha990g01</ejb-name>
<jndi-name>sha.shasys.sha.sha990.sha990g01</jndi-name>
</session>

<session>
<ejb-name>sha030g01</ejb-name>
<jndi-name>sha.shasys.sha.sha030.sha030g01</jndi-name>
</session>

<session>
<ejb-name>sha030g02</ejb-name>
<jndi-name>sha.shasys.sha.sha030.sha030g02</jndi-name>
</session>

<session>
<ejb-name>sha030g03</ejb-name>
<jndi-name>sha.shasys.sha.sha030.sha030g03</jndi-name>
</session>

<session>
<ejb-name>sha030g04</ejb-name>
<jndi-name>sha.shasys.sha.sha030.sha030g04</jndi-name>
</session>

<session>
<ejb-name>sha040g01</ejb-name>
<jndi-name>sha.shasys.sha.sha040.sha040g01</jndi-name>
</session>

<session>
<ejb-name>sha040g02</ejb-name>
<jndi-name>sha.shasys.sha.sha040.sha040g02</jndi-name>
</session>

</enterprise-beans>

</jboss>

#################################################################是这两个文件吗

2004-05-28 13:47

顶一下!

赞助商链接

赞助商链接

返回顶部

移动版 关于本站 使用帮助 联系反馈 最佳分辨率1366x768
OpenSource JIVEJDON Powered by JdonFramework Code © 2002-20 jdon.com