Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Issue with deployment of EJB project (Issue with deployment of EJB project )
Issue with deployment of EJB project [message #798879] Wed, 15 February 2012 02:21 Go to next message
sri charan is currently offline sri charan
Messages: 4
Registered: January 2012
Junior Member
Hello,

I am using Eclipse (Indigo), Wasce 3.0 and DB2 for my project. I am just trying to deploy a ejb project with a stateless session bean and JPA entity class file for a table. I have added the EclipseLink persistence provider. I am encountering the following error on deployment ....
At least one deployment problem:
org.apache.geronimo.common.DeploymentException:
At least one deployment problem:

at org.apache.geronimo.common.DeploymentException.cleanse(DeploymentException.java:87)

at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:143)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:616)

at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)

at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:131)

at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:883)

at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245)

at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:344)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:616)

at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)

at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:131)

at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:883)

at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245)

at org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java:172)

at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:857)

at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:795)

at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1450)

at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:90)

at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1285)

at java.security.AccessController.doPrivileged(Native Method)

at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1390)

at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:807)

at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:616)

at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)

at sun.rmi.transport.Transport$1.run(Transport.java:177)

at java.security.AccessController.doPrivileged(Native Method)

at sun.rmi.transport.Transport.serviceCall(Transport.java:173)

at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

at java.lang.Thread.run(Thread.java:679)
org.apache.geronimo.common.DeploymentException: No default PersistenceUnit specified, and none located
at org.apache.geronimo.persistence.builder.PersistenceRefBuilder.findPersistenceUnitQuery(PersistenceRefBuilder.java:218)

at org.apache.geronimo.persistence.builder.PersistenceRefBuilder.buildNaming(PersistenceRefBuilder.java:168)

at org.apache.geronimo.j2ee.deployment.NamingBuilderCollection.buildNaming(NamingBuilderCollection.java:98)

at org.apache.geronimo.openejb.deployment.EjbDeploymentBuilder.addEnc(EjbDeploymentBuilder.java:461)

at org.apache.geronimo.openejb.deployment.EjbDeploymentBuilder.buildEnc(EjbDeploymentBuilder.java:409)

at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.doAddGBeans(EjbModuleBuilder.java:1180)

at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.addGBeans(EjbModuleBuilder.java:1149)

at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(TomcatModuleBuilder.java:700)

at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(SwitchingModuleBuilder.java:174)

at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:763)

at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:255)

at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:140)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:616)

at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)

at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:131)

at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:883)

at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245)

at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:344)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:616)

at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)

at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:131)

at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:883)

at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245)

at org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java:172)

at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:857)

at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:795)

at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1450)

at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:90)

at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1285)

at java.security.AccessController.doPrivileged(Native Method)

at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1390)

at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:807)

at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:616)

at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)

at sun.rmi.transport.Transport$1.run(Transport.java:177)

at java.security.AccessController.doPrivileged(Native Method)

at sun.rmi.transport.Transport.serviceCall(Transport.java:173)

at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

at java.lang.Thread.run(Thread.java:679)

Please help me resolve the problem.

Thank you in advance.
Re: Issue with deployment of EJB project [message #800154 is a reply to message #798879] Thu, 16 February 2012 14:12 Go to previous messageGo to next message
Chris Delahunt is currently offline Chris Delahunt
Messages: 1018
Registered: July 2009
Senior Member
Hello,

How have you added the EclipseLink provider and its jar to your classpath? The error indicates that the container cannot find either, so you will have to check both your persistence.xml and your classpath for the correct entries.

There are a number of examples on various containers that you could use as an example here:
http://wiki.eclipse.org/EclipseLink/Examples/JPA
Please take a look and let us know what you have that might be different.

Best Regards,
Chris
Re: Issue with deployment of EJB project [message #800582 is a reply to message #798879] Fri, 17 February 2012 03:42 Go to previous messageGo to next message
sri charan is currently offline sri charan
Messages: 4
Registered: January 2012
Junior Member
I am pleased to hear from You.I did look into the website you suggested.But the problem still persists.I would be happy if you could go through the attachments I have added ,related to the project.The screenshots describe the steps which I did while creating the project.I have also included the jar and war files for better clarity.
Looking forward for a reply.
Thanks in advance.
  • Attachment: ocmweb.war
    (Size: 6.04KB, Downloaded 69 times)
  • Attachment: error.txt
    (Size: 7.61KB, Downloaded 70 times)
  • Attachment: screenshot1.zip
    (Size: 1.93MB, Downloaded 105 times)
  • Attachment: screenshot2.zip
    (Size: 1.47MB, Downloaded 87 times)
  • Attachment: ocmejb.jar
    (Size: 4.30KB, Downloaded 71 times)
Re: Issue with deployment of EJB project [message #800961 is a reply to message #800582] Fri, 17 February 2012 14:01 Go to previous message
Chris Delahunt is currently offline Chris Delahunt
Messages: 1018
Registered: July 2009
Senior Member
I have not had a chance to go through everything, only the persistence.xml and the InsertBean. The InsertBean shows you are using the container to inject a default EntityManager (the name defaults to "default"), but the persitence.xml shows only the only persistence unit defined with a name of "ocmejb" and that it is set to resource_local. You will need to change the name to "default" or define the persitence context to use the "ocmejb" instead of "default". It should also define the provider you want to use ie have the <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
tag for EclipseLink.

That said, you will have other problems since it doesn't look like you are using the EntityManager within a transaction. I'd recommend you take one of the examples from the link provided previously and work with that first.

Best Regards,
Chris
Previous Topic:Optimistic lock - Delete
Next Topic:Maintaining object identity across sessions
Goto Forum:
  


Current Time: Mon Sep 01 14:34:06 EDT 2014

Powered by FUDForum. Page generated in 0.01727 seconds