Hi! Im having problems in deploying a simple jar file
in jboss-2.4.6. But when i deploy it in jboss-2.2.2
its fine. Any idea? Below is my ejb-jar.xml and
jboss.xml files with stack trace. any help is greatly
appreciated:
ejb-jar.xml-------------------------------
<?xml version="1.0" encoding="Cp1252"?>
<ejb-jar>
<enterprise-beans>
<entity>
<ejb-name>CustomerEJB</ejb-name>
<home>com.ir.app.augustus.core.customer.CustomerHome</home>
<remote>com.ir.app.augustus.core.customer.Customer</remote>
<ejb-class>com.ir.app.augustus.core.customer.CustomerEJB</ejb-class>
<persistence-type>Bean</persistence-type>
<prim-key-class>com.ir.app.augustus.core.customer.CustomerPK</prim-key-class>
<reentrant>False</reentrant>
<env-entry>
<env-entry-name>ejb/customer/CustomerDAOClass</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>com.ir.app.augustus.core.customer.CustomerBean</env-entry-value>
</env-entry>
<resource-ref>
<res-ref-name>jdbc/OroDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<description>CustomerEJB</description>
<method>
<ejb-name>CustomerEJB</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
jboss.xml------------------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Created by ... on May 27, 2002, 5:36 PM -->
<jboss>
<secure>false</secure>
<container-configurations/>
<enterprise-beans>
<entity>
<ejb-name>CustomerEJB</ejb-name>
<jndi-name>Customer</jndi-name>
<resource-ref>
<res-ref-name>jdbc/OroDataSource</res-ref-name>
<jndi-name>java:/oroDS</jndi-name>
</resource-ref>
</entity>
</enterprise-beans>
</jboss>
stack trace -------------------------------------
[09:48:44,450,ContainerFactory] InternalError
java.lang.NullPointerException
at
sun.rmi.server.LoaderHandler.urlsToPath(LoaderHandler.java:766)
at
sun.rmi.server.LoaderHandler.getClassAnnotation(LoaderHandler.java:236)
at
java.rmi.server.RMIClassLoader$2.getClassAnnotation(RMIClassLoader.java:648)
at
java.rmi.server.RMIClassLoader.getClassAnnotation(RMIClassLoader.java:378)
at
sun.rmi.server.MarshalOutputStream.annotateClass(MarshalOutputStream.java:78)
at
sun.rmi.server.MarshalOutputStream.annotateProxyClass(MarshalOutputStream.java:86)
at
java.io.ObjectOutputStream.writeProxyDesc(ObjectOutputStream.java:1121)
at
java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1098)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1239)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at
java.rmi.MarshalledObject.<init>(MarshalledObject.java:92)
at
org.jnp.interfaces.NamingContext.rebind(NamingContext.java:343)
at
org.jnp.interfaces.NamingContext.rebind(NamingContext.java:322)
at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.rebind(JRMPContainerInvoker.java:638)
at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.start(JRMPContainerInvoker.java:275)
at
org.jboss.ejb.EntityContainer.start(EntityContainer.java:327)
at
org.jboss.ejb.Application.start(Application.java:220)
at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:375)
at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:307)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:487)
at
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:459)
at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
at
org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
at java.lang.Thread.run(Thread.java:536)
[09:48:44,450,BaseLocalContainerInvoker] Cleared
method maps
[09:48:44,450,JRMPContainerInvoker] Cleared method
maps
[09:48:44,450,EntityInstanceCache] Cancelling 0
passivation jobs
[09:48:44,450,J2eeDeployer] Starting customer-ejb.jar
failed!
[09:48:44,500,J2eeDeployer] Module customer-ejb.jar is
not running
[09:48:44,560,J2eeDeployer] Destroying application
customer-ejb.jar
[09:48:44,560,AutoDeployer] DeploymentInfo
failed:file:/D:/JBoss-2.4.6/deploy/customer-ejb.jar
org.jboss.deployment.J2eeDeploymentException: Error
while starting customer-ejb.jar: Could not deploy
file:/D:/JBoss-2.4.6/tmp/deploy/Default/customer-ejb.jar/,
Cause: org.jboss.deployment.DeploymentException: Could
not deploy
file:/D:/JBoss-2.4.6/tmp/deploy/Default/customer-ejb.jar/,
Cause: java.lang.NullPointerException
at
org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:518)
at
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:459)
at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
at
org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
at java.lang.Thread.run(Thread.java:536)
Caused by: org.jboss.deployment.DeploymentException:
Could not deploy
file:/D:/JBoss-2.4.6/tmp/deploy/Default/customer-ejb.jar/,
Cause: java.lang.NullPointerException
at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:404)
at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:307)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:487)
... 11 more
Caused by: java.lang.NullPointerException
at
sun.rmi.server.LoaderHandler.urlsToPath(LoaderHandler.java:766)
at
sun.rmi.server.LoaderHandler.getClassAnnotation(LoaderHandler.java:236)
at
java.rmi.server.RMIClassLoader$2.getClassAnnotation(RMIClassLoader.java:648)
at
java.rmi.server.RMIClassLoader.getClassAnnotation(RMIClassLoader.java:378)
at
sun.rmi.server.MarshalOutputStream.annotateClass(MarshalOutputStream.java:78)
at
sun.rmi.server.MarshalOutputStream.annotateProxyClass(MarshalOutputStream.java:86)
at
java.io.ObjectOutputStream.writeProxyDesc(ObjectOutputStream.java:1121)
at
java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1098)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1239)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at
java.rmi.MarshalledObject.<init>(MarshalledObject.java:92)
at
org.jnp.interfaces.NamingContext.rebind(NamingContext.java:343)
at
org.jnp.interfaces.NamingContext.rebind(NamingContext.java:322)
at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.rebind(JRMPContainerInvoker.java:638)
at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.start(JRMPContainerInvoker.java:275)
at
org.jboss.ejb.EntityContainer.start(EntityContainer.java:327)
at
org.jboss.ejb.Application.start(Application.java:220)
at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:375)
... 19 more
Regards,
L. Yeung
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user