[appengine-java] Re: Error using JPA

2010-08-05 Thread Sajid
No. it doesnt. :(

opened new thread:
http://groups.google.com/group/google-appengine-java/browse_thread/thread/5db77d5214d7109c#

On Aug 4, 10:45 pm, Ronmell Fuentes ringe...@gmail.com wrote:
 Ok.
 hope it works.

 R. F

 2010/8/4 Sajid smsajid...@gmail.com

  well, i have manually copied the files to WEB-INF/lib folder. Still,
  the same issue.
  Anyway, I have now converted to JDO.
  Lets see what happens next.

  On Jul 21, 9:35 pm, Ronmell Fuentes ringe...@gmail.com wrote:
   It seems that when deploying the .jar file used by your application are
  not
   being uploaded to the server in GAE.
   so, as I alredy told you the only thing that could be causing this error
  (at
   least the one I know) is the lack of the .jar files (libraries) in the
  right
   Directory I mean, war/WEB-INF/lib/

   Ronmell.

   2010/7/20 Sajid smsajid...@gmail.com

Hi Ronmell,

I haven't run the examples. My application runs perfectly on local
server. but after deployment, it gives the error.

On Jul 21, 12:21 am, Ronmell Fuentes ringe...@gmail.com wrote:
 when running the examples you've got the same error?

 2010/7/20 Sajid smsajid...@gmail.com

  I have already checked that. All jars are in WEB-INF lib folder.

  On Jul 20, 11:58 pm, Ronmell Fuentes ringe...@gmail.com wrote:
   Hi Sajid.

   Try to copy all the .jar files used by your app to the /WAR/lib
directory
  of
   your app.

   Ronmell

   2010/7/20 Sajid smsajid...@gmail.com

Hi

I am using spring 3, jsf2 and jpa. I load entity manager
  factory
sing
spring context xml. However, I am getting class not found error
  for
javax.persistence.EntityManagerFactory

StackTrace:
#

javax.servlet.ServletException: java.lang.RuntimeException:
java.lang.ClassNotFoundException:
javax.persistence.EntityManagerFactory
       at

  com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:
240)
       at

org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
       at org.mortbay.jetty.Server.handle(Server.java:326)
       at

  org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
       at org.mortbay.jetty.HttpConnection
$RequestHandler.headerComplete(HttpConnection.java:923)
       at

  com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:
76)
       at
  org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
       at

  com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:
135)
       at

  com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:
250)
       at
  com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:7115)
       at
  com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:7113)
       at

  com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:
24)
       at
  com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
398)
       at com.google.net.rpc.impl.Server$2.run(Server.java:852)
       at

  com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java:
56)
       at

  com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java:
576)
       at
  com.google.net.rpc.impl.Server.startRpc(Server.java:807)
       at
  com.google.net.rpc.impl.Server.processRequest(Server.java:369)
       at

  com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java:
442)
       at

com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:
319)
       at

com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java:
290)
       at
  com.google.net.async.Connection.handleReadEvent(Connection.java:
474)
       at

  com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java:
831)
       at

com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java:
207)
       at
  com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
103)
       at

com.google.net.rpc.RpcService.runUntilServerShutdown(RpcService.java:
251)
       at com.google.apphosting.runtime.JavaRuntime
$RpcRunnable.run(JavaRuntime.java:417)
       at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException:
java.lang.ClassNotFoundException:

[appengine-java] Re: Error using JPA

2010-08-04 Thread Sajid
well, i have manually copied the files to WEB-INF/lib folder. Still,
the same issue.
Anyway, I have now converted to JDO.
Lets see what happens next.

On Jul 21, 9:35 pm, Ronmell Fuentes ringe...@gmail.com wrote:
 It seems that when deploying the .jar file used by your application are not
 being uploaded to the server in GAE.
 so, as I alredy told you the only thing that could be causing this error (at
 least the one I know) is the lack of the .jar files (libraries) in the right
 Directory I mean, war/WEB-INF/lib/

 Ronmell.

 2010/7/20 Sajid smsajid...@gmail.com

  Hi Ronmell,

  I haven't run the examples. My application runs perfectly on local
  server. but after deployment, it gives the error.

  On Jul 21, 12:21 am, Ronmell Fuentes ringe...@gmail.com wrote:
   when running the examples you've got the same error?

   2010/7/20 Sajid smsajid...@gmail.com

I have already checked that. All jars are in WEB-INF lib folder.

On Jul 20, 11:58 pm, Ronmell Fuentes ringe...@gmail.com wrote:
 Hi Sajid.

 Try to copy all the .jar files used by your app to the /WAR/lib
  directory
of
 your app.

 Ronmell

 2010/7/20 Sajid smsajid...@gmail.com

  Hi

  I am using spring 3, jsf2 and jpa. I load entity manager factory
  sing
  spring context xml. However, I am getting class not found error for
  javax.persistence.EntityManagerFactory

  StackTrace:
  #

  javax.servlet.ServletException: java.lang.RuntimeException:
  java.lang.ClassNotFoundException:
  javax.persistence.EntityManagerFactory
         at

  com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:
  240)
         at

  org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
  152)
         at org.mortbay.jetty.Server.handle(Server.java:326)
         at
  org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
  542)
         at org.mortbay.jetty.HttpConnection
  $RequestHandler.headerComplete(HttpConnection.java:923)
         at

  com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:
  76)
         at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
         at

  com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:
  135)
         at

  com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:
  250)
         at com.google.apphosting.base.RuntimePb$EvaluationRuntime
  $6.handleBlockingRequest(RuntimePb.java:7115)
         at com.google.apphosting.base.RuntimePb$EvaluationRuntime
  $6.handleBlockingRequest(RuntimePb.java:7113)
         at

  com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:
  24)
         at
com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
  398)
         at com.google.net.rpc.impl.Server$2.run(Server.java:852)
         at

  com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java:
  56)
         at

  com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java:
  576)
         at com.google.net.rpc.impl.Server.startRpc(Server.java:807)
         at
com.google.net.rpc.impl.Server.processRequest(Server.java:369)
         at

  com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java:
  442)
         at

  com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:
  319)
         at

  com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java:
  290)
         at
com.google.net.async.Connection.handleReadEvent(Connection.java:
  474)
         at

  com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java:
  831)
         at

  com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java:
  207)
         at
com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
  103)
         at

  com.google.net.rpc.RpcService.runUntilServerShutdown(RpcService.java:
  251)
         at com.google.apphosting.runtime.JavaRuntime
  $RpcRunnable.run(JavaRuntime.java:417)
         at java.lang.Thread.run(Unknown Source)
  Caused by: java.lang.RuntimeException:
  java.lang.ClassNotFoundException:
  javax.persistence.EntityManagerFactory
         at

  com.google.apphosting.runtime.jetty.SessionManager.deserialize(SessionManager.java:
  389)
         at

  com.google.apphosting.runtime.jetty.SessionManager.loadSession(SessionManager.java:
  307)
         at

  com.google.apphosting.runtime.jetty.SessionManager.getSession(SessionManager.java:
  282)
         at

  org.mortbay.jetty.servlet.AbstractSessionManager.getHttpSession(AbstractSessionManager.java:
  

Re: [appengine-java] Re: Error using JPA

2010-07-21 Thread Ronmell Fuentes
It seems that when deploying the .jar file used by your application are not
being uploaded to the server in GAE.
so, as I alredy told you the only thing that could be causing this error (at
least the one I know) is the lack of the .jar files (libraries) in the right
Directory I mean, war/WEB-INF/lib/


Ronmell.

2010/7/20 Sajid smsajid...@gmail.com

 Hi Ronmell,

 I haven't run the examples. My application runs perfectly on local
 server. but after deployment, it gives the error.

 On Jul 21, 12:21 am, Ronmell Fuentes ringe...@gmail.com wrote:
  when running the examples you've got the same error?
 
  2010/7/20 Sajid smsajid...@gmail.com
 
   I have already checked that. All jars are in WEB-INF lib folder.
 
   On Jul 20, 11:58 pm, Ronmell Fuentes ringe...@gmail.com wrote:
Hi Sajid.
 
Try to copy all the .jar files used by your app to the /WAR/lib
 directory
   of
your app.
 
Ronmell
 
2010/7/20 Sajid smsajid...@gmail.com
 
 Hi
 
 I am using spring 3, jsf2 and jpa. I load entity manager factory
 sing
 spring context xml. However, I am getting class not found error for
 javax.persistence.EntityManagerFactory
 
 StackTrace:
 #
 
 javax.servlet.ServletException: java.lang.RuntimeException:
 java.lang.ClassNotFoundException:
 javax.persistence.EntityManagerFactory
at
 
  
 com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:
 240)
at

 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at
 org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
 542)
at org.mortbay.jetty.HttpConnection
 $RequestHandler.headerComplete(HttpConnection.java:923)
at
 
  
 com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:
 76)
at
   org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
 
  
 com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:
 135)
at
 
  
 com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:
 250)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
 $6.handleBlockingRequest(RuntimePb.java:7115)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
 $6.handleBlockingRequest(RuntimePb.java:7113)
at
 
  
 com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:
 24)
at
   com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
 398)
at com.google.net.rpc.impl.Server$2.run(Server.java:852)
at
 
  
 com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java:
 56)
at
 
  
 com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java:
 576)
at com.google.net.rpc.impl.Server.startRpc(Server.java:807)
at
   com.google.net.rpc.impl.Server.processRequest(Server.java:369)
at
 
  
 com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java:
 442)
at

 com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:
 319)
at

 com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java:
 290)
at
   com.google.net.async.Connection.handleReadEvent(Connection.java:
 474)
at
 
  
 com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java:
 831)
at

 com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java:
 207)
at
   com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
 103)
at

 com.google.net.rpc.RpcService.runUntilServerShutdown(RpcService.java:
 251)
at com.google.apphosting.runtime.JavaRuntime
 $RpcRunnable.run(JavaRuntime.java:417)
at java.lang.Thread.run(Unknown Source)
 Caused by: java.lang.RuntimeException:
 java.lang.ClassNotFoundException:
 javax.persistence.EntityManagerFactory
at
 
  
 com.google.apphosting.runtime.jetty.SessionManager.deserialize(SessionManager.java:
 389)
at
 
  
 com.google.apphosting.runtime.jetty.SessionManager.loadSession(SessionManager.java:
 307)
at
 
  
 com.google.apphosting.runtime.jetty.SessionManager.getSession(SessionManager.java:
 282)
at
 
  
 org.mortbay.jetty.servlet.AbstractSessionManager.getHttpSession(AbstractSessionManager.java:
 237)
at
 
  
 org.mortbay.jetty.servlet.SessionHandler.setRequestedId(SessionHandler.java:
 246)
at

 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
 136)
at

 

[appengine-java] Re: Error using JPA

2010-07-20 Thread Sajid
I have already checked that. All jars are in WEB-INF lib folder.

On Jul 20, 11:58 pm, Ronmell Fuentes ringe...@gmail.com wrote:
 Hi Sajid.

 Try to copy all the .jar files used by your app to the /WAR/lib directory of
 your app.

 Ronmell

 2010/7/20 Sajid smsajid...@gmail.com

  Hi

  I am using spring 3, jsf2 and jpa. I load entity manager factory sing
  spring context xml. However, I am getting class not found error for
  javax.persistence.EntityManagerFactory

  StackTrace:
  #

  javax.servlet.ServletException: java.lang.RuntimeException:
  java.lang.ClassNotFoundException:
  javax.persistence.EntityManagerFactory
         at

  com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:
  240)
         at
  org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
  152)
         at org.mortbay.jetty.Server.handle(Server.java:326)
         at
  org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
  542)
         at org.mortbay.jetty.HttpConnection
  $RequestHandler.headerComplete(HttpConnection.java:923)
         at

  com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:
  76)
         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
         at

  com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:
  135)
         at
  com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:
  250)
         at com.google.apphosting.base.RuntimePb$EvaluationRuntime
  $6.handleBlockingRequest(RuntimePb.java:7115)
         at com.google.apphosting.base.RuntimePb$EvaluationRuntime
  $6.handleBlockingRequest(RuntimePb.java:7113)
         at

  com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:
  24)
         at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
  398)
         at com.google.net.rpc.impl.Server$2.run(Server.java:852)
         at
  com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java:
  56)
         at

  com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java:
  576)
         at com.google.net.rpc.impl.Server.startRpc(Server.java:807)
         at com.google.net.rpc.impl.Server.processRequest(Server.java:369)
         at

  com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java:
  442)
         at
  com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:
  319)
         at
  com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java:
  290)
         at com.google.net.async.Connection.handleReadEvent(Connection.java:
  474)
         at

  com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java:
  831)
         at
  com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java:
  207)
         at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
  103)
         at
  com.google.net.rpc.RpcService.runUntilServerShutdown(RpcService.java:
  251)
         at com.google.apphosting.runtime.JavaRuntime
  $RpcRunnable.run(JavaRuntime.java:417)
         at java.lang.Thread.run(Unknown Source)
  Caused by: java.lang.RuntimeException:
  java.lang.ClassNotFoundException:
  javax.persistence.EntityManagerFactory
         at

  com.google.apphosting.runtime.jetty.SessionManager.deserialize(SessionManager.java:
  389)
         at

  com.google.apphosting.runtime.jetty.SessionManager.loadSession(SessionManager.java:
  307)
         at

  com.google.apphosting.runtime.jetty.SessionManager.getSession(SessionManager.java:
  282)
         at

  org.mortbay.jetty.servlet.AbstractSessionManager.getHttpSession(AbstractSessionManager.java:
  237)
         at

  org.mortbay.jetty.servlet.SessionHandler.setRequestedId(SessionHandler.java:
  246)
         at
  org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
  136)
         at
  org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
  765)
         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
  418)
         at

  com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:
  238)
         ... 27 more
  Caused by: java.lang.ClassNotFoundException:
  javax.persistence.EntityManagerFactory
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at

  com.google.apphosting.runtime.security.RuntimeClassLoader.loadFilteredClass(RuntimeClassLoader.java:
  242)
         at

  com.google.apphosting.runtime.security.RuntimeClassLoader.loadPrivilegedClass(RuntimeClassLoader.java:
  

Re: [appengine-java] Re: Error using JPA

2010-07-20 Thread Ronmell Fuentes
when running the examples you've got the same error?


2010/7/20 Sajid smsajid...@gmail.com

 I have already checked that. All jars are in WEB-INF lib folder.

 On Jul 20, 11:58 pm, Ronmell Fuentes ringe...@gmail.com wrote:
  Hi Sajid.
 
  Try to copy all the .jar files used by your app to the /WAR/lib directory
 of
  your app.
 
  Ronmell
 
  2010/7/20 Sajid smsajid...@gmail.com
 
   Hi
 
   I am using spring 3, jsf2 and jpa. I load entity manager factory sing
   spring context xml. However, I am getting class not found error for
   javax.persistence.EntityManagerFactory
 
   StackTrace:
   #
 
   javax.servlet.ServletException: java.lang.RuntimeException:
   java.lang.ClassNotFoundException:
   javax.persistence.EntityManagerFactory
  at
 
  
 com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:
   240)
  at
   org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
   152)
  at org.mortbay.jetty.Server.handle(Server.java:326)
  at
   org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
   542)
  at org.mortbay.jetty.HttpConnection
   $RequestHandler.headerComplete(HttpConnection.java:923)
  at
 
  
 com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:
   76)
  at
 org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
  at
 
  
 com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:
   135)
  at
  
 com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:
   250)
  at com.google.apphosting.base.RuntimePb$EvaluationRuntime
   $6.handleBlockingRequest(RuntimePb.java:7115)
  at com.google.apphosting.base.RuntimePb$EvaluationRuntime
   $6.handleBlockingRequest(RuntimePb.java:7113)
  at
 
  
 com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:
   24)
  at
 com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
   398)
  at com.google.net.rpc.impl.Server$2.run(Server.java:852)
  at
  
 com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java:
   56)
  at
 
  
 com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java:
   576)
  at com.google.net.rpc.impl.Server.startRpc(Server.java:807)
  at
 com.google.net.rpc.impl.Server.processRequest(Server.java:369)
  at
 
  
 com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java:
   442)
  at
   com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:
   319)
  at
   com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java:
   290)
  at
 com.google.net.async.Connection.handleReadEvent(Connection.java:
   474)
  at
 
  
 com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java:
   831)
  at
   com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java:
   207)
  at
 com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
   103)
  at
   com.google.net.rpc.RpcService.runUntilServerShutdown(RpcService.java:
   251)
  at com.google.apphosting.runtime.JavaRuntime
   $RpcRunnable.run(JavaRuntime.java:417)
  at java.lang.Thread.run(Unknown Source)
   Caused by: java.lang.RuntimeException:
   java.lang.ClassNotFoundException:
   javax.persistence.EntityManagerFactory
  at
 
  
 com.google.apphosting.runtime.jetty.SessionManager.deserialize(SessionManager.java:
   389)
  at
 
  
 com.google.apphosting.runtime.jetty.SessionManager.loadSession(SessionManager.java:
   307)
  at
 
  
 com.google.apphosting.runtime.jetty.SessionManager.getSession(SessionManager.java:
   282)
  at
 
  
 org.mortbay.jetty.servlet.AbstractSessionManager.getHttpSession(AbstractSessionManager.java:
   237)
  at
 
  
 org.mortbay.jetty.servlet.SessionHandler.setRequestedId(SessionHandler.java:
   246)
  at
   org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
   136)
  at
   org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
   765)
  at
 org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
   418)
  at
 
  
 com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:
   238)
  ... 27 more
   Caused by: java.lang.ClassNotFoundException:
   javax.persistence.EntityManagerFactory
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown 

[appengine-java] Re: Error using JPA

2010-07-20 Thread Sajid
Hi Ronmell,

I haven't run the examples. My application runs perfectly on local
server. but after deployment, it gives the error.

On Jul 21, 12:21 am, Ronmell Fuentes ringe...@gmail.com wrote:
 when running the examples you've got the same error?

 2010/7/20 Sajid smsajid...@gmail.com

  I have already checked that. All jars are in WEB-INF lib folder.

  On Jul 20, 11:58 pm, Ronmell Fuentes ringe...@gmail.com wrote:
   Hi Sajid.

   Try to copy all the .jar files used by your app to the /WAR/lib directory
  of
   your app.

   Ronmell

   2010/7/20 Sajid smsajid...@gmail.com

Hi

I am using spring 3, jsf2 and jpa. I load entity manager factory sing
spring context xml. However, I am getting class not found error for
javax.persistence.EntityManagerFactory

StackTrace:
#

javax.servlet.ServletException: java.lang.RuntimeException:
java.lang.ClassNotFoundException:
javax.persistence.EntityManagerFactory
       at

  com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:
240)
       at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
       at org.mortbay.jetty.Server.handle(Server.java:326)
       at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
       at org.mortbay.jetty.HttpConnection
$RequestHandler.headerComplete(HttpConnection.java:923)
       at

  com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:
76)
       at
  org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
       at

  com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:
135)
       at

  com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:
250)
       at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:7115)
       at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:7113)
       at

  com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:
24)
       at
  com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
398)
       at com.google.net.rpc.impl.Server$2.run(Server.java:852)
       at

  com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java:
56)
       at

  com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java:
576)
       at com.google.net.rpc.impl.Server.startRpc(Server.java:807)
       at
  com.google.net.rpc.impl.Server.processRequest(Server.java:369)
       at

  com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java:
442)
       at
com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:
319)
       at
com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java:
290)
       at
  com.google.net.async.Connection.handleReadEvent(Connection.java:
474)
       at

  com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java:
831)
       at
com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java:
207)
       at
  com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
103)
       at
com.google.net.rpc.RpcService.runUntilServerShutdown(RpcService.java:
251)
       at com.google.apphosting.runtime.JavaRuntime
$RpcRunnable.run(JavaRuntime.java:417)
       at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException:
java.lang.ClassNotFoundException:
javax.persistence.EntityManagerFactory
       at

  com.google.apphosting.runtime.jetty.SessionManager.deserialize(SessionManager.java:
389)
       at

  com.google.apphosting.runtime.jetty.SessionManager.loadSession(SessionManager.java:
307)
       at

  com.google.apphosting.runtime.jetty.SessionManager.getSession(SessionManager.java:
282)
       at

  org.mortbay.jetty.servlet.AbstractSessionManager.getHttpSession(AbstractSessionManager.java:
237)
       at

  org.mortbay.jetty.servlet.SessionHandler.setRequestedId(SessionHandler.java:
246)
       at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
136)
       at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
       at
  org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
       at

  com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:
238)
       ... 27 more
Caused by: java.lang.ClassNotFoundException:
javax.persistence.EntityManagerFactory
       at java.net.URLClassLoader$1.run(Unknown Source)
       at java.security.AccessController.doPrivileged(Native