what I'd try is a.) put all required libs in WEB-INF/lib and then b.)
add all of WEB-INF/lib to the java build path of the eclipse
project...
Hope this helps!
Best Regards
Sebastian
P.S.: You can safely ignore the WARN] Server class
'net.sf.gilead.gwt.PersistentRemoteService' could
not be found in the web app, but was found on the system classpath
On 26 Aug., 18:36, chalu <chal...@gmail.com> wrote:
> Hello folks, I am moving my GWT/GXT development from Netbeans to
> Eclipse (Helios), but I am still struggling to find my way around. I
> have read some tutorials and watched some videos on eclipse but I
> still have issues in some areas, for example the SLF4J docs says we
> have to add an implementation binding e.g Log4J, this however does not
> stop the java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
> from been thrown. After some fiddling, I made the SLF4J library a
> "system library" (it will be added to the boot path ... , see the
> attached thumbnail) and that solved it for org.slf4j.LoggerFactory,
> but now I have others, coming out one after the other, first it was
> Log4J, and now this from the Gilead library I am using :
>
> java.lang.NoClassDefFoundError: net/sf/cglib/proxy/Enhancer
> .....
> Caused by: java.lang.ClassNotFoundException:
> net.sf.cglib.proxy.Enhancer
>
> Do I have to make all my user libraries be a "system library" ?? Also,
> looking at my eclipse "console" view, I see stuff like this :
>
> WARN] Server class 'net.sf.gilead.gwt.PersistentRemoteService' could
> not be found in the web app, but was found on the system classpath
> [WARN] Adding classpath entry 'file:/C:/Java/javalibs/gilead/
> gilead4gwt-1.3.0.1169.jar' to the web app classpath for this session
> For additional info see: file:/C:/eclipse/plugins/
> com.google.gwt.eclipse.sdkbundle.2.0.4_2.0.4.v201006301309/gwt-2.0.4/
> doc/helpInfo/webAppClassPath.html
>
> The page indicated by ..../webAppClassPath.html just simply says it is
> recommended I put libraries into WEB-INF/lib folder and gives the
> following tip :
>
> "The most common reason to encounter this problem with a new project
> is using RPC, which tries to load
> com.google.gwt.user.client.rpc.RemoteService. The solution to is copy
> gwt-servlet.jar from the GWT install directory into your web app's war/
> WEB-INF/lib/ directory.
> Fortunately, my app's war/WEB-INF/lib/ folder already has the said gwt-
> servlet.jar file."
>
> One would expect that after adding a library to a project, the
> library's jars should be in the project's "path".
> In an attempt to force the libraries jars into the project's lib/
> folder I decided to compile the app, but nothing changed within the
> lib/ folder, it still only contained gwt-servlet.jar.
>
> Now I am stuck, I am trying to run it in the default hosted mode
> (after compiling it) and nothing works from the browser anymore,
> instead I get a page sating thus :
>
> HTTP ERROR: 404
>
> NOT_FOUND
>
> RequestURI=/DiSCS.html
>
> How do I handle these please ?????
--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment