RPC fails under Tomcat

116 views
Skip to first unread message

Barry

unread,
Oct 22, 2008, 11:57:28 PM10/22/08
to Google Web Toolkit
Hi ...

I have an RPC that is working fine in host mode but fails in web mode
and I don't know what to do to troubleshoot it. On the client, I get a
message box that says "Failure:
com.google.gwt.user.client.rpc.StatusCodeException: The call failed on
the server; see server log for details".

A few questions:

1) What log would it be referring to??

2) How does one debug server-side code running under Tomcat?? Is
Eclipse any help here??

3) In fact, there's something failing in the server-side code being
called by the RPC. If I comment out the guts of this function, I get a
clean return, but no work done. I conclude that some horrible
exception is occurring in the server-side code ... something that
evades even an Exception try/catch handler. The problem appears to be
in a CXF call to a web service.

Could there be something terribly abusive inflicted on me from CXF??

Thanks for the help !

Lothar Kimmeringer

unread,
Oct 23, 2008, 2:12:46 AM10/23/08
to Google-We...@googlegroups.com
Barry schrieb:

> 1) What log would it be referring to??

The log Tomcat uses for logging messages and error. I don't know
Tomcat in detail but would expect it in a directory called
"logs".

> 2) How does one debug server-side code running under Tomcat?? Is
> Eclipse any help here??

If the Remote Debug Interface of the Java Virtual Machine running
Tomcat is active any IDE with Remote-Debugging-support can do.
Eclipse is one of them.

> 3) In fact, there's something failing in the server-side code being
> called by the RPC. If I comment out the guts of this function, I get a
> clean return, but no work done. I conclude that some horrible
> exception is occurring in the server-side code ... something that
> evades even an Exception try/catch handler. The problem appears to be
> in a CXF call to a web service.

If catching an exception doesn't help, there seems to be an Error
being thrown. Try to catch Throwable instead of Exception. Most
likely you will see a ClassNotFoundError or MethodNotFoundError.
The first occurred if you forgot ot add external libraries to the
classpath of Tomcat and/or the WebApplication, the second you
get if the version of the library doesn't fit with the one being
installed on the Tomcat-system


Regards, Lothar

medgey

unread,
Oct 23, 2008, 1:33:24 AM10/23/08
to Google Web Toolkit
This is not related to GWT, but you can debug tomcat in eclipse using
standard java remote debugging.

eggsy84

unread,
Oct 24, 2008, 4:38:36 AM10/24/08
to Google Web Toolkit
This sounds like one of two problems.

Your tomcat mapping may be incorrect as it cannot find the url mapping
for the RemoteServiceServlet you are calling.

Can you show us your gwt.xml file and the area of the Tomcat context
that maps the URL?

Also you say its working in hosted mode? When returning in hosted mode
are there any exceptions on the console of the GWT browser? If so it
may be a SerializationException if you are returning some object?

eggsy

Bakulkumar

unread,
Oct 24, 2008, 3:55:40 PM10/24/08
to Google Web Toolkit
did you added gwt-servlet.jar in application lib dir or somewhere in
classpath?

+Bakul+

On Oct 22, 11:57 pm, Barry <bdemc...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages