[ 
https://issues.apache.org/jira/browse/IVYDE-358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16382266#comment-16382266
 ] 

Jonathon Lamon commented on IVYDE-358:
--------------------------------------

We use Ivy, GWT, the GWT eclipse plugin and ant throughout our company.  We do 
not see this issue. 

The things that we have found are:
 # The Ivy Library should be added to the Deployment Assembly in the web app 
project settings, this makes eclipse compile Projects referenced on the 
classpath to jars appropriately for usage in GWT, when using the workspace 
resolver
 # Ivy does not add source jars to the classpath, and you must make sure to set 
the project Ivy Library settings to build the classpath with the retrieved 
artifacts in the WEB-INF/lib folder and delete all unused jars. ( I opened a 
bug about this previously [IVYDE-369])
 # Turn off GWT management of the war directory and let Ivy manage the 
gwt-servlet.jar.
 # Create a custom configuration in ivy just for eclipse/ide so that you can 
easily exclude jars you don't need in your IDE.

> Launching GWT application from Eclipse fails due to missing libraries
> ---------------------------------------------------------------------
>
>                 Key: IVYDE-358
>                 URL: https://issues.apache.org/jira/browse/IVYDE-358
>             Project: IvyDE
>          Issue Type: Bug
>          Components: classpath container, launch configuration
>    Affects Versions: 2.2.0.final
>            Reporter: Jan Swaelens
>            Priority: Critical
>
> We have a GWT project in Eclipse (Kepler) which uses Eclipse GWT plugin 
> (latest v3.4.2) and Ivy IDE (2.2.0 final) enabled on the project.
> The setup works fine during compilation and regular editing but the 
> application fails to function. When starting the application using a run 
> configuration it yields the following error:
> {code}
> Caused by: java.lang.ClassNotFoundException: org.slf4j.MDC
>       at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>       at 
> com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload$WebAppClassLoaderExtension.findClass(JettyLauncher.java:372)
>       at 
> org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:366)
>       at 
> org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)
> {code}
> The 'slf4j-api' dependency is correctly defined and the code also compiles in 
> the IDE at the point where it is giving this error.
> Can I assume that this is an IvyIDE bug or could it be a GWT Eclipse plugin 
> bug?
> We are really keen to get this working as it's a showcase to start using Ivy 
> throughout our company.
> If there is anything I can do don't hesitate to ask!
> Thanks.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to