[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-4817) WTP EAR deployers don't work correctly when using some classpath containers (Maven, for instance)

Rob Stryker (JIRA) jira-events at lists.jboss.org
Fri Aug 28 19:46:53 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBIDE-4817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12483540#action_12483540 ] 

Rob Stryker commented on JBIDE-4817:
------------------------------------

having a very weird time replicating this.  I just tried it again (new svn co, new importm, new publish) and this was my result:


52      ./booking-ear.ear/WEB-INF/lib/jboss-seam-ioc-2.1.1.GA.jar
3936    ./booking-ear.ear/WEB-INF/lib/richfaces-ui-3.3.0.GA.jar
8       ./booking-ear.ear/WEB-INF/lib/jboss-seam-jul-2.1.1.GA.jar
268     ./booking-ear.ear/WEB-INF/lib/jboss-seam-ui-2.1.1.GA.jar
1492    ./booking-ear.ear/WEB-INF/lib/richfaces-impl-3.3.0.GA.jar
20      ./booking-ear.ear/WEB-INF/lib/jboss-seam-debug-2.1.1.GA.jar
196     ./booking-ear.ear/WEB-INF/lib/commons-beanutils-1.7.0.jar
152     ./booking-ear.ear/WEB-INF/lib/commons-digester-1.8.jar
304     ./booking-ear.ear/WEB-INF/lib/jsf-facelets-1.1.15.B1.jar
6436    ./booking-ear.ear/WEB-INF/lib
6444    ./booking-ear.ear/WEB-INF
15408   ./booking-ear.ear

... etc ...

8       ./booking-ear.ear/booking.war/WEB-INF/web.xml
8       ./booking-ear.ear/booking.war/WEB-INF/faces-config.xml
52      ./booking-ear.ear/booking.war/WEB-INF/lib/jboss-seam-ioc-2.1.1.GA.jar
3936    ./booking-ear.ear/booking.war/WEB-INF/lib/richfaces-ui-3.3.0.GA.jar
8       ./booking-ear.ear/booking.war/WEB-INF/lib/jboss-seam-jul-2.1.1.GA.jar
268     ./booking-ear.ear/booking.war/WEB-INF/lib/jboss-seam-ui-2.1.1.GA.jar
1492    ./booking-ear.ear/booking.war/WEB-INF/lib/richfaces-impl-3.3.0.GA.jar
20      ./booking-ear.ear/booking.war/WEB-INF/lib/jboss-seam-debug-2.1.1.GA.jar
196     ./booking-ear.ear/booking.war/WEB-INF/lib/commons-beanutils-1.7.0.jar
152     ./booking-ear.ear/booking.war/WEB-INF/lib/commons-digester-1.8.jar
304     ./booking-ear.ear/booking.war/WEB-INF/lib/jsf-facelets-1.1.15.B1.jar
6436    ./booking-ear.ear/booking.war/WEB-INF/lib


And tracing through it seems this is what's happening. It seems like it's getting published under the war's lib, and also duplicated in the parents. I guess I'll have to try a few more times but for now i'm leavign for the night. 

> WTP EAR deployers don't work correctly when using some classpath containers (Maven, for instance)
> -------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-4817
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-4817
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: JBossAS, UpStream
>    Affects Versions: 3.1.0.M2
>            Reporter: Snjezana Peco
>            Assignee: Rob Stryker
>         Attachments: fixed.out, unfixed.out
>
>
> Try the example described in https://jira.jboss.org/jira/browse/JBIDE-4736?focusedCommentId=12482337#action_12482337
> If you try to deploy the booking-ear application, libraries in booking/WEB-INF/lib won't be deployed.
> booking/.settings/org.eclipse.wst.common.component contains the following:
> <?xml version="1.0" encoding="UTF-8"?>
> <project-modules id="moduleCoreId" project-version="1.5.0">
>     <wb-module deploy-name="booking">
>         <wb-resource deploy-path="/" source-path="/src/main/webapp"/>
>         <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
>         <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/resources"/>
>         <property name="context-root" value="booking"/>
>         <property name="java-output-path"/>
>     </wb-module>
> </project-modules>
> if you call Maven>Update Project Configuration, booking/.settings/org.eclipse.wst.common.component will look as follows:
> <?xml version="1.0" encoding="UTF-8"?>
> <project-modules id="moduleCoreId" project-version="1.5.0">
>     <wb-module deploy-name="booking">
>         <wb-resource deploy-path="/" source-path="/src/main/webapp"/>
>         <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
>         <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/resources"/>
>         <wb-resource deploy-path="/" source-path="/src/main/webapp"/>
>         <property name="context-root" value="booking"/>
>         <property name="java-output-path"/>
>     </wb-module>
> </project-modules>
> the libraries in booking/WEB-INF/lib will be deployed correctly.
> The problem exists when using JBoss Tools servers as well as using JBoss WTP Generic servers.
> The problem doesn't exist when using Export>Java EE>EAR File.
> PS
> The WEB-INF/lib directory and the required libraries are unnecessary added to the EAR's root directory, but this issue is fixed with the patch attached to https://bugs.eclipse.org/bugs/show_bug.cgi?id=247090.

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

        


More information about the jbosstools-issues mailing list