[jboss-user] [EJB 3.0] - Re: Exception got in deployment of EJB3 .ear

ashusri000 do-not-reply at jboss.com
Thu Jul 5 03:29:21 EDT 2007


Hi ,
       Thanks a ton for the kind effort that you are putting up.
I am now stuck as every time it wont throw up the same message . This time when  I made deploy the ear it threw up this message :


2:39:15,218 INFO  [PersistenceUnitDeployment] Starting persistence unit persistence.units:ear=sample123.ear,jar=persist.jar,unitName=testApp
12:39:16,187 INFO  [STDOUT] [TopLink Warning]: 2007.07.05 12:39:16.125--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class src.Employee. The class is ignored.
12:39:16,187 INFO  [STDOUT] [TopLink Warning]: 2007.07.05 12:39:16.187--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class src.FirstSessionBean. The class is ignored.


Later when I made a call then the there was no problem in call from Servlet to the stateless bean but when it moved over to the entity bean further , it just seemed to blow out :


12:42:35,640 ERROR [STDERR] java.lang.RuntimeException: url = [file:/C:/jboss-4.2.0.GA/server/default/tmp/persist.jar]
12:42:35,640 ERROR [STDERR] 	at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.getClassNamesFromURL(PersistenceUnitProcessor.java:272)
12:42:35,640 ERROR [STDERR] 	at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.buildClassSet(PersistenceUnitProcessor.java:181)
12:42:35,640 ERROR [STDERR] 	at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.callPredeploy(JavaSECMPInitializer.java:124)
12:42:35,640 ERROR [STDERR] 	at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initPersistenceUnits(JavaSECMPInitializer.java:226)
12:42:36,203 ERROR [STDERR] 	at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initialize(JavaSECMPInitializer.java:242)
12:42:36,203 ERROR [STDERR] 	at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initializeFromMain(JavaSECMPInitializer.java:278)
12:42:36,203 ERROR [STDERR] 	at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.getJavaSECMPInitializer(JavaSECMPInitializer.java:81)
12:42:36,203 ERROR [STDERR] 	at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:119)
12:42:36,203 ERROR [STDERR] 	at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51)
12:42:36,203 ERROR [STDERR] 	at src.FirstSessionBean.sayHello(FirstSessionBean.java:21)
12:42:36,203 ERROR [STDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:42:36,203 ERROR [STDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
12:42:36,203 ERROR [STDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
12:42:36,203 ERROR [STDERR] 	at java.lang.reflect.Method.invoke(Unknown Source)
12:42:36,203 ERROR [STDERR] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
12:42:36,203 ERROR [STDERR] 	at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
12:42:36,203 ERROR [STDERR] 	at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
12:42:36,203 ERROR [STDERR] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:42:36,203 ERROR [STDERR] 	at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
12:42:36,203 ERROR [STDERR] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:42:36,203 ERROR [STDERR] 	at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
12:42:36,203 ERROR [STDERR] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:42:36,203 ERROR [STDERR] 	at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
12:42:36,203 ERROR [STDERR] 	at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
12:42:36,203 ERROR [STDERR] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:42:36,203 ERROR [STDERR] 	at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
12:42:36,203 ERROR [STDERR] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:42:36,203 ERROR [STDERR] 	at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
12:42:36,203 ERROR [STDERR] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:42:36,203 ERROR [STDERR] 	at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
12:42:36,203 ERROR [STDERR] 	at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106)
12:42:36,203 ERROR [STDERR] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:42:36,203 ERROR [STDERR] 	at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
12:42:36,203 ERROR [STDERR] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:42:36,203 ERROR [STDERR] 	at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
12:42:36,203 ERROR [STDERR] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:42:36,203 ERROR [STDERR] 	at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:278)
12:42:36,203 ERROR [STDERR] 	at org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(IsLocalInterceptor.java:79)
12:42:36,203 ERROR [STDERR] 	at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:70)
12:42:36,218 ERROR [STDERR] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:42:36,218 ERROR [STDERR] 	at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:103)
12:42:36,218 ERROR [STDERR] 	at $Proxy71.sayHello(Unknown Source)
12:42:36,218 ERROR [STDERR] 	at TestServlet.doPost(TestServlet.java:79)
12:42:36,218 ERROR [STDERR] 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
12:42:36,218 ERROR [STDERR] 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
12:42:36,218 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
12:42:36,218 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
12:42:36,218 ERROR [STDERR] 	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.



along with this :


2:42:36,218 ERROR [STDERR] Caused by: java.util.zip.ZipException: The system cannot find the file specified
12:42:36,218 ERROR [STDERR] 	at java.util.zip.ZipFile.open(Native Method)
12:42:36,218 ERROR [STDERR] 	at java.util.zip.ZipFile.(Unknown Source)
12:42:36,218 ERROR [STDERR] 	at java.util.jar.JarFile.(Unknown Source)
12:42:36,218 ERROR [STDERR] 	at java.util.jar.JarFile.(Unknown Source)
12:42:36,218 ERROR [STDERR] 	at oracle.toplink.essentials.ejb.cmp3.persistence.ArchiveFactoryImpl.createArchive(ArchiveFactoryImpl.java:93)
12:42:36,218 ERROR [STDERR] 	at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.getClassNamesFromURL(PersistenceUnitProcessor.java:268)




View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060675#4060675

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060675



More information about the jboss-user mailing list