I'm just learning GWT right now, I'm actually using smartGWT and
building inside Eclipse using eclipse's GWT plugin.
I'm trying to build a simple application where the smartGWT front end
talks to a standard smartclient servlet backend.
My problem is at run time all the jars I've tried to install into
eclipse can't be found by the servlet engine. It crashes with messages
like:

Dec 12, 2009 4:25:38 PM com.google.apphosting.utils.jetty.JettyLogger
warn
WARNING: failed BaseServlet
java.lang.NoClassDefFoundError: com/isomorphic/servlet/IDACall
        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$000(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 java.lang.ClassLoader.loadClass(Unknown Source)
        at
com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass
(IsolatedAppClassLoader.java:151)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at org.mortbay.util.Loader.loadClass(Loader.java:91)
        at org.mortbay.util.Loader.loadClass(Loader.java:71)
        at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:73)
        at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:
233)
        at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:40)
        at org.mortbay.jetty.servlet.ServletHandler.initialize
(ServletHandler.java:612)
        at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
        at org.mortbay.jetty.webapp.WebAppContext.startContext
(WebAppContext.java:1218)
        at org.mortbay.jetty.handler.ContextHandler.doStart
(ContextHandler.java:500)
        at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
448)
        at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:40)
        at org.mortbay.jetty.handler.HandlerWrapper.doStart
(HandlerWrapper.java:117)
        at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:40)
        at org.mortbay.jetty.handler.HandlerWrapper.doStart
(HandlerWrapper.java:117)
        at org.mortbay.jetty.Server.doStart(Server.java:217)
        at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:40)
        at
com.google.appengine.tools.development.JettyContainerService.startContainer
(JettyContainerService.java:181)
        at
com.google.appengine.tools.development.AbstractContainerService.startup
(AbstractContainerService.java:116)
        at com.google.appengine.tools.development.DevAppServerImpl.start
(DevAppServerImpl.java:217)
        at com.google.appengine.tools.development.gwt.AppEngineLauncher.start
(AppEngineLauncher.java:86)
        at com.google.gwt.dev.HostedMode.doStartUpServer(HostedMode.java:365)
        at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:589)
        at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397)
        at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)


Eclipse does know where the jar is but for some reason the Jetty
engine doesn't know where it is. Apparently it's not being package
correctly. Can anyone tell me what I have to do to make sure the jars
get exported? Do I need to make modules for these? I'm a little fuzzy
on modules but I thought they were only used to exposed the jars to
client side code. The GWT code doesn't need to know about these jars
they are purely used by the servlets and the only connection is done
via DSRequests through URLs.

Can anyone help me figure out what I'm doing wrong? This is driving me
nuts.

--

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


Reply via email to