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/persistence/persistence_2_0.xsd"> > <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 copied the persitence.xml into target/myApp-1.0- > > > SNAPSHOT/WEB-INF/classes/META-INF and to be sure also to target/ > > > myApp-1.0-SNAPSHOT/META-INF and target/myApp-1.0-SNAPSHOT/. > > > > didn't help > > > > On 18 Mrz., 12:19, juan_pablo_gardella <gardellajuanpa...@gmail.com> > > > wrote: > > > > 1) Post the complete stacktrace of "no persistence unit found" > > > > 2) How you create EntityManagerFactory? > > > > 3) Try thishttp:// > > > stackoverflow.com/questions/3873545/wicketspringjpahibernate-n... > > > > > Juan > > > > > On Mar 17, 1:39 pm, tanteanni <tantea...@hotmail.com> wrote: > > > > > > I feel a bit sheepish about it.But the Failure was much simpler then > > > > > you all could imagine (obviously): > > > > > > simply i missed "extends RemoteService" ! > > > > > > but now it seems i got a real problem: the 3rd party class the server > > > > > side uses jpa2 as mentioned before. and its code now throws "no > > > > > persistence unit found". But the unit exists: in fact this 3rd party > > > > > jar is executable and its running fine stand alone (the > > > > > persistence.xml is contained in jar file, packed by maven-assembly- > > > > > plugin). > > > > > > so it seems that the access to "persistence.xml" is some how > > > > > restricted if the jar is accessed through jetty/myApp? Or why i got > > > > > this error only if run via myApp? > > > > > > On 17 Mrz., 16:03, tanteanni <tantea...@hotmail.com> wrote: > > > > > > > (this is my last attempt to get a message through the moderators - > > > > > > my > > > > > > last 2 question seem to be ignored) > > > > > > > at the moment i am working on my first gwt application (after going > > > > > > through the (great) stockwatcher tutorial). I am facing problem on > > > > > > getting server side services to work. on starting my app in > > > > > > development mode i get: > > > > > > > 15:41:13.749 [ERROR] [myApp] Unable to load module entry point class > > > > > > myPackage.client.myApp (see associated exception for details) > > > > > > > java.lang.RuntimeException: Deferred binding failed for > > > > > > 'myPackage.client.services.AgsService' (did you forget to inherit a > > > > > > required module?) > > > > > > at > > > > > > com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53) > > > > > > at com.google.gwt.core.client.GWT.create(GWT.java:98) > > > > > > at myPackage.client.GWZmenu.<init>(GWZmenu.java:39) > > > > > > at myPackage.client.myApp.onModuleLoad(myApp.java:35) > > > > > > 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.dev.shell.ModuleSpace.onLoad(ModuleSpace.java: > > > > > > 396) > > > > > > at > > > > com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler > > > .java: > > > > > > 183) > > > > > > at > > > > com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan > > > nelServer.java: > > > > > > 510) > > > > > > at > > > > com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java > > > : > > > > > > 352) > > > > > > at java.lang.Thread.run(Thread.java:619) > > > > > > Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see > > > > > > previous log entries) > > > > > > at > > > > com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: > > > > > > 503) > > > > > > at > > > > > > com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49) > > > > > > at com.google.gwt.core.client.GWT.create(GWT.java:98) > > > > > > at myPackage.client.GWZmenu.<init>(GWZmenu.java:39) > > > > > > at myPackage.client.myApp.onModuleLoad(myApp.java:35) > > > > > > 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 > > ... > > read more » -- 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.