Hi,

that actually helped. Turned out it was an Exception in the  
constructor of the private member that prevented its initialization,  
thus causing problem in the servlet initialization itself.
Thank you very much,

Luigi
On 17 Mar 2009, at 02:00, Vitali Lovich wrote:

> You'd have to provide more code.  It sounds like your trying to do  
> the following:
>
> private MyClass foo = Class.forName(MyClass.class).newInstance();
>
> in your RPC class.  It's quite possible that that throws an  
> exception, which means GWT can't initialize your servlet.
>
> My recommendation would be to put that in your constructor,  
> surrounded by try/catch blocks.  Lemme know if that helps.  If it is  
> throwing an exception, then you'll have to figure out why it's not  
> really on your class path (I'm pretty sure for the server libraries,  
> depending on how you're launching, it has to be in your WEB-INF/lib  
> directory).
>
> On Mon, Mar 16, 2009 at 6:54 PM, Luigi Iannone  
> <[email protected]> wrote:
> Hi all,
>
> I have been using GWT RPC for a couple of weeks and everything  
> worked smoothly until I added a new private member to the server  
> side implementation of the remote interface.
> Such private member instantiates a class that is in a .jar which is  
> in my eclipse classpath in my run configuration and in my build path.
>
> Now when I launch it I get the following exception in the shell
>
> [WARN] StandardWrapperValve[shell]: Servlet.service() for servlet  
> shell threw exception
> java.lang.NoClassDefFoundError: null
>       at java.lang.Class.forName0(Native Method)
>       at java.lang.Class.forName(Class.java:164)
>       at  
> com 
> .google 
> .gwt 
> .dev.shell.GWTShellServlet.tryGetOrLoadServlet(GWTShellServlet.java: 
> 936)
>       at  
> com 
> .google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java: 
> 277)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>       at  
> org 
> .apache 
> .catalina 
> .core 
> .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 
> 237)
>       at  
> org 
> .apache 
> .catalina 
> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>       at  
> org 
> .apache 
> .catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 
> 214)
>       at  
> org 
> .apache 
> .catalina 
> .core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>       at  
> org 
> .apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 
> 520)
>       at  
> org 
> .apache 
> .catalina 
> .core.StandardContextValve.invokeInternal(StandardContextValve.java: 
> 198)
>       at  
> org 
> .apache 
> .catalina.core.StandardContextValve.invoke(StandardContextValve.java: 
> 152)
>       at  
> org 
> .apache 
> .catalina 
> .core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>       at  
> org 
> .apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 
> 520)
>       at  
> org 
> .apache 
> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>       at  
> org 
> .apache 
> .catalina 
> .core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>       at  
> org 
> .apache 
> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>       at  
> org 
> .apache 
> .catalina 
> .core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>       at  
> org 
> .apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 
> 520)
>       at  
> org 
> .apache 
> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 
> 109)
>       at  
> org 
> .apache 
> .catalina 
> .core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>       at  
> org 
> .apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 
> 520)
>       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java: 
> 929)
>       at  
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java: 
> 160)
>       at  
> org 
> .apache.coyote.http11.Http11Processor.process(Http11Processor.java: 
> 799)
>       at org.apache.coyote.http11.Http11Protocol 
> $Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>       at  
> org 
> .apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 
> 577)
>       at org.apache.tomcat.util.threads.ThreadPool 
> $ControlRunnable.run(ThreadPool.java:683)
>       at java.lang.Thread.run(Thread.java:613)
>
>
> If I remove the field that instantiates the class above I get no  
> warnings nor exceptions.
>
> Can you please tell me what is wrong with what I am trying to do?
>
> Thanks,
>
> Luigi
>
>
>
>
>
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to