George
2005-09-13 23:31:36 UTC
I need some ideas here, I'm not getting good messages from the
software.
I'm trying to get a hello world deployed to weblogic 9.0, and I'm
getting a strange NPE from weblogic.Deployer, the top of which is:
java.lang.NullPointerException
at
weblogic.ejb20.deployer.SessionBeanInfoImpl.assignDefaultTXAttributes
IfNecessary(SessionBeanInfoImpl.java:323)
at
weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeTransaction
Attribute(MBeanDeploymentInfoImpl.java:818)
at
weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymen
tInfoImpl.java:229)
at
weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1165)
at
weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:344)
at
weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Modu
leListenerInvoker.java:90)
My ejb-jar.xml is:
<?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>hw</ejb-name>
<home>hw.hwHome</home>
<remote>hw.hw</remote>
<ejb-class>hw.hwSession</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
<assembly-descriptor >
<container-transaction>
<method>
<ejb-name>hw</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>NotSupported</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
And for weblogic:
<?xml version="1.0"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN'
'http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd'>
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>hw</ejb-name>
<jndi-name>hw-jndi</jndi-name>
<weblogic-enterprise-bean/>
<weblogic-ejb-jar/>
software.
I'm trying to get a hello world deployed to weblogic 9.0, and I'm
getting a strange NPE from weblogic.Deployer, the top of which is:
java.lang.NullPointerException
at
weblogic.ejb20.deployer.SessionBeanInfoImpl.assignDefaultTXAttributes
IfNecessary(SessionBeanInfoImpl.java:323)
at
weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeTransaction
Attribute(MBeanDeploymentInfoImpl.java:818)
at
weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymen
tInfoImpl.java:229)
at
weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1165)
at
weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:344)
at
weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Modu
leListenerInvoker.java:90)
My ejb-jar.xml is:
<?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>hw</ejb-name>
<home>hw.hwHome</home>
<remote>hw.hw</remote>
<ejb-class>hw.hwSession</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
<assembly-descriptor >
<container-transaction>
<method>
<ejb-name>hw</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>NotSupported</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
And for weblogic:
<?xml version="1.0"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN'
'http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd'>
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>hw</ejb-name>
<jndi-name>hw-jndi</jndi-name>
<weblogic-enterprise-bean/>
<weblogic-ejb-jar/>