See this: http://stackoverflow.com/questions/2394334/jpa-and-gwt-failing

<http://stackoverflow.com/questions/2394334/jpa-and-gwt-failing>Juan

2011/3/18 tanteanni <tantea...@hotmail.com>

> thx but this thread isn't related to my problem: jetty can't access
> resources located in referenced jar-files.  Tomcat can access them.
> Probably it's best to make a new thread - we are now very far away
> from topic of this thread.
>
> On 18 Mrz., 14:58, Juan Pablo Gardella <gardellajuanpa...@gmail.com>
> wrote:
> > See thishttp://forum.springsource.org/archive/index.php/t-37014.html
> >
> > <http://forum.springsource.org/archive/index.php/t-37014.html>Juan
> >
> > 2011/3/18 tanteanni <tantea...@hotmail.com>
> >
> > > deployed in Tomcat the persistence xml can be found!
> > >  but the errors becomes even strander (see below). i guess i should
> > > now debug my "gwzDB.jar". but for this i need to it run in dev mode/
> > > jetty. How to configure jetty/dev-mode to be able to access the
> > > persistence.xml.
> >
> > > (probably someone have an idea whats going wrong here)
> > > INFO: Illegal access: this web application instance has been stopped
> > > already.  Could not load java.net.BindException.  The eventual
> > > following stack trace is caused by an error thrown for debugging
> > > purposes as well as to attempt to terminate the thread which caused
> > > the illegal access, and has no functional impact.
> > > java.lang.IllegalStateException
> > >        at
> >
> > >
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
> > > 1566)
> > >        at
> >
> > >
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
> > > 1526)
> > >        at
> >
> > >
> com.mysql.jdbc.SQLError.createLinkFailureMessageBasedOnHeuristics(SQLError.java:
> > > 1275)
> > >        at
> >
> > >
> com.mysql.jdbc.exceptions.jdbc4.CommunicationsException.<init>(CommunicationsException.java:
> > > 60)
> > >        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > > Method)
> > >        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> > > Source)
> > >        at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
> > > Source)
> > >        at java.lang.reflect.Constructor.newInstance(Unknown Source)
> > >        at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
> > >        at
> > > com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:
> > > 1118)
> > >        at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3321)
> > >        at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:1667)
> > >        at
> com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4322)
> > >        at
> com.mysql.jdbc.ConnectionImpl.cleanup(ConnectionImpl.java:1348)
> > >        at
> com.mysql.jdbc.ConnectionImpl.finalize(ConnectionImpl.java:2679)
> > >        at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
> > >        at java.lang.ref.Finalizer.runFinalizer(Unknown Source)
> > >        at java.lang.ref.Finalizer.access$100(Unknown Source)
> > >        at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
> > > 18.03.2011 14:40:16 org.apache.catalina.loader.WebappClassLoader
> > > loadClass
> > > INFO: Illegal access: this web application instance has been stopped
> > > already.  Could not load com.mysql.jdbc.ProfilerEventHandlerFactory.
> > > The eventual following stack trace is caused by an error thrown for
> > > debugging purposes as well as to attempt to terminate the thread which
> > > caused the illegal access, and has no functional impact.
> > > java.lang.IllegalStateException
> > >        at
> >
> > >
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
> > > 1566)
> > >        at
> >
> > >
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
> > > 1526)
> > >        at
> com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4346)
> > >        at
> com.mysql.jdbc.ConnectionImpl.cleanup(ConnectionImpl.java:1348)
> > >        at
> com.mysql.jdbc.ConnectionImpl.finalize(ConnectionImpl.java:2679)
> > >        at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
> > >        at java.lang.ref.Finalizer.runFinalizer(Unknown Source)
> > >        at java.lang.ref.Finalizer.access$100(Unknown Source)
> > >        at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
> >
> > > On 18 Mrz., 13:56, juan_pablo_gardella <gardellajuanpa...@gmail.com>
> > > wrote:
> > > > 1) Are you test if you make the WAR and put in Tomcat (for example)
> > > > and continue this error?
> > > > 2) Is the complete stackttrace?
> >
> > > > Juan
> >
> > > > On Mar 18, 9:35 am, tanteanni <tantea...@hotmail.com> wrote:
> >
> > > > > sorry here it is:
> >
> > > > > <?xml version="1.0" encoding="UTF-8"?>
> > > > > <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/
> > > > > persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > > > > xsi:schemaLocation="
> > >http://java.sun.com/xml/ns/persistencehttp://java.sun.com/xml/ns/pers..
> .">
> > > > >   <persistence-unit name="gwzPU" transaction-type="RESOURCE_LOCAL">
> > > > >     <provider>org.eclipse.persistence.jpa.PersistenceProvider</
> > > > > provider>
> > > > >     <class>myPackage.gwzDB.entityClasses.Class1</class>
> > > > >     <class>myPackage.gwzDB.entityClasses.Class2</class>
> > > > >     <properties>
> > > > >       <property name="eclipselink.jdbc.batch-writing"
> value="JDBC"/>
> > > > >       <property name="eclipselink.jdbc.batch-writing.size"
> > > > > value="1000"/>
> > > > >       <property name="eclipselink.target-database" value="MySQL"/>
> > > > >       <property name="eclipselink.jdbc.native-sql" value="true"/>
> > > > >       <property name="javax.persistence.jdbc.url"
> value="jdbc:mysql://
> > > > > localhost:3306/gwz?rewriteBatchedStatements=true"/>
> > > > >       <property name="javax.persistence.jdbc.password"
> value="gwz"/>
> > > > >       <property name="javax.persistence.jdbc.driver"
> > > > > value="com.mysql.jdbc.Driver"/>
> > > > >       <property name="javax.persistence.jdbc.user" value="gwz"/>
> > > > >     </properties>
> > > > >   </persistence-unit>
> > > > > </persistence>
> >
> > > > > On 18 Mrz., 13:29, Juan Pablo Gardella <
> gardellajuanpa...@gmail.com>
> > > > > wrote:
> >
> > > > > > Show the file persistence.xml
> >
> > > > > > Juan
> >
> > > > > > 2011/3/18 tanteanni <tantea...@hotmail.com>
> >
> > > > > > > 1) here ist the stacktrace (taken from eclipse console):
> > > > > > > Starting Jetty on port 8888
> > > > > > >   [WARN] Exception while dispatching incoming RPC call
> > > > > > > com.google.gwt.user.server.rpc.UnexpectedException: Service
> method
> > > > > > > 'public abstract java.util.Map
> > > > > > > myPackage.client.services.AgsService.getFedLandsCounties()'
> threw
> > > an
> > > > > > > unexpected exception: java.lang.ExceptionInInitializerError
> > > > > > >        at
> >
> > > com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
> > > > > > > 385)
> > > > > > >        at
> >
> > > com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
> > > > > > > 588)
> > > > > > >        at
> >
> > >
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi
> > > ceServlet.java:
> > > > > > > 208)
> > > > > > >        at
> >
> > >
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi
> > > ceServlet.java:
> > > > > > > 248)
> > > > > > >        at
> >
> > >
> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract
> > > RemoteServiceServlet.java:
> > > > > > > 62)
> > > > > > >        at
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> > > > > > >        at
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> > > > > > >        at
> > > > > > >
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> > > > > > > 487)
> > > > > > >        at
> >
> > > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
> > > > > > > 362)
> > > > > > >        at
> >
> > > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
> > > > > > > 216)
> > > > > > >        at
> >
> > > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
> > > > > > > 181)
> > > > > > >        at
> >
> > > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
> > > > > > > 729)
> > > > > > >        at
> > > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> > > > > > > 405)
> > > > > > >        at
> >
> > > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> > > > > > > 152)
> > > > > > >        at
> >
> > >
> org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:
> > > > > > > 49)
> > > > > > >        at
> >
> > > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> > > > > > > 152)
> > > > > > >        at org.mortbay.jetty.Server.handle(Server.java:324)
> > > > > > >        at
> > > > > > >
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> > > > > > > 505)
> > > > > > >        at org.mortbay.jetty.HttpConnection
> > > > > > > $RequestHandler.content(HttpConnection.java:843)
> > > > > > >        at
> > > org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
> > > > > > >        at
> > > org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> > > > > > >        at
> > > org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
> > > > > > >        at
> >
> > >
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
> > > > > > > 395)
> > > > > > >        at org.mortbay.thread.QueuedThreadPool
> > > > > > > $PoolThread.run(QueuedThreadPool.java:488)
> > > > > > > Caused by: java.lang.ExceptionInInitializerError
> > > > > > >        at
> >
> > >
> myPackage.server.AgsServiceImpl.getFedLandsCounties(AgsServiceImpl.java:
> > > > > > > 19)
> > > > > > >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > Method)
> > > > > > >        at
> >
> > >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> > > > > > > 39)
> > > > > > >        at
> >
> > >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
> > > l.java:
> > > > > > > 25)
> > > > > > >        at java.lang.reflect.Method.invoke(Method.java:597)
> > > > > > >        at
> >
> > > com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
> > > > > > > 569)
> > > > > > >        ... 22 more
> > > > > > > Caused by: javax.persistence.PersistenceException: No
> Persistence
> > > > > > > provider for EntityManager named gwzPU
> > > > > > >        at
> >
> > >
> javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:
> > > > > > > 84)
> > > > > > >        at
> >
> > >
> javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:
> > > > > > > 54)
> > > > > > >        at
> myPackage.myApp.gwzDB.queries.AGS.<clinit>(AGS.java:21)
> > > > > > >        ... 28 more
> > > > > > > [ERROR] 500 - POST /myApp/AgsService (127.0.0.1) 57 bytes
> >
> > > > > > > 2) private static EntityManagerFactory emf =
> > > > > > > Persistence.createEntityManagerFactory("gwzPU");
> >
> > > > > > > 3) i tried it - i
> >
> > ...
> >
> > Erfahren Sie mehr ยป
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to