Newbie question

2 views
Skip to first unread message

Stev

unread,
Apr 30, 2008, 8:42:15 AM4/30/08
to Google Web Toolkit
hallo,

i just follow/download the source code from :
http://www.javaworld.com/javaworld/jw-12-2006/jw-1213-gwt.html

after i run under eclipse i got this error:
[WARN] StandardContext[]Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract com.blueXMLcom.blueXMLpackage.client.Book[]
com.blueXMLcom.blueXMLpackage.client.SearchService.getBooks(java.lang.String,int,int)'
threw an unexpected exception: java.lang.NoClassDefFoundError: org/
apache/commons/codec/DecoderException
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
361)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
547)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
265)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:
187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java:
253)
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)
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/codec/
DecoderException
at
org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:
217)
at
org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:
88)
at
com.blueXMLcom.blueXMLpackage.server.SearchServiceImpl.getBookListXMLDocument(SearchServiceImpl.java:
152)
at
com.blueXMLcom.blueXMLpackage.server.SearchServiceImpl.getBooks(SearchServiceImpl.java:
74)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
528)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
265)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:
187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

can sombody help me ?

thanx u be4,
Stev

Ian Petersen

unread,
Apr 30, 2008, 10:07:21 AM4/30/08
to Google-We...@googlegroups.com
Looks like your servlet can't find the Apache Commons JAR file. Maybe
you forgot to add it to the classpath, or maybe you missed adding it
to the servlet container's library directory.

Ian

--
Tired of pop-ups, security holes, and spyware?
Try Firefox: http://www.getfirefox.com

Reply all
Reply to author
Forward
0 new messages