OPS, MY BAD FOLKS

My Jar file doesn't have the jar's necessary.

My apologize.

2009/8/18 Alexei Telles <[email protected]>

> Hello guys.
>
> I'm trying finally to make my GWT application works client and server
> sides.
> I have a simple service (just one method for now).
>
> This method, on the server side, uses a Jar file (created for me) to
> connect in my database (MySql) using hibernate.
>
> I am having a problem to use hibernate (the java method that uses
> hibernate is in the jar file - that is in the class path of my GWT
> project).
>
> It throws me an exception when I am configuring hibernate
> SessionFactory sessionFactory = new Configuration().configure
> ("guardian.hibernate.cfg.xml").buildSessionFactory();
>
> I don't know if you guys use hibernate, but I am sure this problem is
> in my GWT project, because if I create a basic java project and try to
> use this Jar file (that uses hibernate) everithing works fine.
>
> The exception is:
>
> Aug 18, 2009 1:28:29 PM
> com.google.appengine.tools.development.ApiProxyLocalImpl log
> SEVERE: [1250602109691000] javax.servlet.ServletContext log: Exception
> while dispatching incoming RPC call
> com.google.gwt.user.server.rpc.UnexpectedException: Service method
> 'public abstract java.util.List
> br.com.engsys.voippanel.client.VoippanelService.getCallHistory
> (java.lang.String,java.lang.String,java.lang.String)' threw an
> unexpected exception: java.lang.ExceptionInInitializerError
>        at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure
> (RPC.java:360)
>        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
> (RPC.java:546)
>        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
> (RemoteServiceServlet.java:166)
>        at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
> (RemoteServiceServlet.java:86)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>        at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 487)
>        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1093)
>        at
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
> (TransactionCleanupFilter.java:43)
>        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>        at com.google.appengine.tools.development.StaticFileFilter.doFilter
> (StaticFileFilter.java:124)
>        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>        at org.mortbay.jetty.servlet.ServletHandler.handle
> (ServletHandler.java:360)
>        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:712)
>        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 405)
>        at
> com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
> (DevAppEngineWebAppContext.java:54)
>        at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:139)
>        at com.google.appengine.tools.development.JettyContainerService
> $ApiProxyHandler.handle(JettyContainerService.java:313)
>        at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:139)
>        at org.mortbay.jetty.Server.handle(Server.java:313)
>        at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> 506)
>        at org.mortbay.jetty.HttpConnection$RequestHandler.content
> (HttpConnection.java:844)
>        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
>        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
>        at org.mortbay.io.nio.SelectChannelEndPoint.run
> (SelectChannelEndPoint.java:396)
>        at org.mortbay.thread.BoundedThreadPool$PoolThread.run
> (BoundedThreadPool.java:442)
> Caused by: java.lang.ExceptionInInitializerError
>        at br.com.engsys.guardian.persistence.HibernateUtil.<clinit>
> (HibernateUtil.java:13)
>        at br.com.engsys.guardian.db.DaoApplications.getApplications
> (DaoApplications.java:57)
>        at br.com.engsys.business.User.<init>(User.java:15)
>        at
> br.com.engsys.voippanel.server.VoippanelServiceImpl.getCallHistory
> (VoippanelServiceImpl.java:23)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:57)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:43)
>        at java.lang.reflect.Method.invoke(Method.java:616)
>        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
> (RPC.java:527)
>        ... 27 more
> Caused by: java.lang.NoClassDefFoundError: org/dom4j/DocumentException
>        at br.com.engsys.guardian.persistence.HibernateUtil.<clinit>
> (HibernateUtil.java:11)
>        ... 35 more
> Caused by: java.lang.ClassNotFoundException:
> org.dom4j.DocumentException
>        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
>        at
> com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass
> (IsolatedAppClassLoader.java:142)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
>        ... 36 more
>
> I am still looking for some answer in the web.
> But I appreciate if someone in this group could give some help about
> this problem
>
> Thank you
>
>

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

  • Server side Alexei Telles
    • Re: Server side ALEXEI BARBONI

Reply via email to