Hi people!

I'm new  on the GWT 'world' and i'm making my final project of my 
graduation.

On this project I need use persistence and my problems begin here...

I'm trying to call a RPC but it return an error on create the Entity Manage 
Factory :(

This is the first warning:

> Starting Jetty on port 0
>    [WARN] Could not instantiate listener 
> com.sun.faces.config.ConfigureListener: java.lang.ClassNotFoundException: 
> com.sun.faces.config.ConfigureListener 


And this is the error when i try use RPC(with GWT application running):

java.lang.ClassFormatError: Absent Code attribute in method that is not 
> native or abstract in class file javax/persistence/Persistence
>
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(Unknown Source)
> at java.security.SecureClassLoader.defineClass(Unknown Source)
> at java.net.URLClassLoader.defineClass(Unknown Source)
> at java.net.URLClassLoader.access$100(Unknown Source)
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(Unknown Source)
> at 
> com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload$WebAppClassLoaderExtension.findClass(JettyLauncher.java:372)
> at 
> org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:366)
> at 
> org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)
> at mm.projeto.factory.JpaUtil.<clinit>(JpaUtil.java:13)
> at 
> mm.projeto.server.rpc.RpcUtilizadoresImpl.<init>(RpcUtilizadoresImpl.java:36)
> 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 java.lang.Class.newInstance0(Unknown Source)
> at java.lang.Class.newInstance(Unknown Source)
> at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
> at 
> org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:339)
> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:463)
> 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)
> [WARN] /mm.projeto.MotoMeter/RpcUtilizadores
> java.lang.NullPointerException
> at 
> mm.projeto.server.rpc.RpcUtilizadoresImpl.<init>(RpcUtilizadoresImpl.java:36)
> 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 java.lang.Class.newInstance0(Unknown Source)
> at java.lang.Class.newInstance(Unknown Source)
> at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
> at 
> org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:339)
> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:463)
> 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)
> [ERROR] 500 - POST /mm.projeto.MotoMeter/RpcUtilizadores (127.0.0.1) 3422 
> bytes
>    Request headers
>       Host: 127.0.0.1:57512
>       Connection: keep-alive
>       User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 
> (KHTML, like Gecko) Chrome/18.0.1025.142 Safari/535.19
>       Accept: */*
>       Accept-Encoding: gzip,deflate,sdch
>       Accept-Language: pt-PT,pt;q=0.8,en-US;q=0.6,en;q=0.4
>       Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
>       Referer: 
> http://127.0.0.1:57512/MotoMeter.html?gwt.codesvr=127.0.0.1:57508
>       Content-Length: 186
>       Origin: http://127.0.0.1:57512
>       X-GWT-Module-Base: http://127.0.0.1:57512/mm.projeto.MotoMeter/
>       Content-Type: text/x-gwt-rpc; charset=UTF-8
>       X-GWT-Permutation: HostedMode
>    Response headers
>       Content-Type: text/html; charset=iso-8859-1
>       Content-Length: 3422
>
>
The method it's right because I try use on server and it's running! 

I've searched by this problem, but I can't solve :(

I hope anyone can help me :)

Thank you for your attention :)

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


Reply via email to