[ 
http://jira.codehaus.org/browse/MGWT-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=246539#action_246539
 ] 

Chuck Irvine commented on MGWT-249:
-----------------------------------

To duplicate problem:
(1) Import unzipped project by invoking "Import.../Existing Projects into 
Workspace.
(2) If you get any eclipse compile problems, invoke "Project / Clean"
(3) Start project with "Run as / Web Application"
(4) In Development Mode window, right click on url and invoke "open"
(5) When app comes up in browser window, click the "Send"  button.
(6) Click "Close" button on pop up window.
(7) Look in the eclipse console window. You should see something like: 
[WARN] Server class 'org.apache.commons.lang.StringUtils' could not be found in 
the web app, but was found on the system classpath

The problem is that the jar files of the maven dependencies are not getting 
added to the web app classpath. In the case above the problem isn't serious 
since the jar is found on the system classpath. However, in other cases where 
classes are dynamically loaded and only the web app class path is searched, the 
missing classes will cause serious application, i.e. class not found errors.

> archetype created project missing classpath entries 
> ----------------------------------------------------
>
>                 Key: MGWT-249
>                 URL: http://jira.codehaus.org/browse/MGWT-249
>             Project: Maven 2.x GWT Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1.x
>         Environment: gwt 2.1
> eclipse helios
> gwt-maven-plugin 2.1.1-SNAPSHOT
>            Reporter: Chuck Irvine
>         Attachments: test.zip
>
>
> (1) Created a project by invoking:
> mvn archetype:generate 
> -DarchetypeRepository=https://nexus.codehaus.org/content/groups/snapshots-group/
>   -DarchetypeGroupId=org.codehaus.mojo -DarchetypeArtifactId=gwt-maven-plugin 
> -DarchetypeVersion=2.1.1-SNAPSHOT
> (2) Imported as existing project into eclipse.
> (3) Added new spring code and corresponding maven dependency.
> (4) Invoked "Run as / Web Application"
> At this point, the application is invoked in jetty but jetty reports that it 
> finds the spring classes on the system class path, but not the web app 
> classpath. 
> So, the issue is that the gwt eclipse plugin isn't picking up jar files in 
> the maven library when running Jetty in the context described above.
> Thanks!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to