-
1. Re: Incremental publish of Dynamic Web Project problem
maxandersen Jun 14, 2012 3:17 AM (in response to vtysh)Could you create this as a minimal set of projects, zip it up and attach to a jira in https://jira.jboss.org/jira/browse/JBIDE then we can take a better look ?
Thank you!
-
2. Re: Incremental publish of Dynamic Web Project problem
maxandersen Jun 14, 2012 3:20 AM (in response to maxandersen)one thing I can't see without a sample project is where those jars are coming from ?
-
3. Re: Incremental publish of Dynamic Web Project problem
vtysh Jun 14, 2012 3:22 AM (in response to maxandersen)They are coming from Build Path Entries. And there i put them from a filesystem.Reply to original post
-
4. Re: Incremental publish of Dynamic Web Project problem
rob.stryker Jun 14, 2012 3:52 AM (in response to vtysh)> Project_1 (in the deployment assembly tab it has dependencies jar1.jar and jar2.jar)
The language here is unclear. It sounds like you're saying if you right-click Project1, and go to project1's deployment assembly tab, you are putting the dependency to jar1 and jar2 there. If that's the case, then you are "doing it wrong" (heh). By going to project1's deployment assembly tab and making sure jar1 and jar2 are listed, this is telling the tools to make sure jar1 and jar2 live INSIDE project1.jar.
The structure I just tried is as follows:
1) create 6 java projects (lib1-lib6)
2) Create 2 utility projects (project1, project2)
3) Create 1 web project (DynWeb)
4) right click project1, go to deployment assembly, add lib1 and lib2 projects
5) right click project2, go to deployment assembly, add lib3 and lib4 projects
6) right click DynWeb, go to deployment assembly, add lib5 and lib6 projects, then add project1 and project2 projects
7) Deploy to deploy-only server (or jboss-as server, same result)
In the end, this structure ends up with a layout like this:
Dynweb.war
Dynweb.war/WEB-INF/lib
Dynweb.war/WEB-INF/lib/lib5.jar
Dynweb.war/WEB-INF/lib/lib6.jar
Dynweb.war/WEB-INF/lib/project1.jar
Dynweb.war/WEB-INF/lib/project2.jar
If you then unzip project1.jar and project2.jar, you will find hte missing lib1-lib4 jars. They live inside project1 and project2 jars. This seems to be working as intended.
It'd be great if you could send over a zip with some very simple mostly-empty example projects (just throw one class in each I guess...) so that I can fully understand the structure. Then we can discover pretty quickly if this is a user error or a bug in the toolset.
-
5. Re: Incremental publish of Dynamic Web Project problem
rob.stryker Jun 14, 2012 3:53 AM (in response to vtysh)You're also welcome to join us in #jbosstools on freenode irc if you have time
-
6. Re: Incremental publish of Dynamic Web Project problem
vtysh Jun 14, 2012 4:06 AM (in response to rob.stryker)While i am trying to prepare test case for you i found that incremental publish works fine until i enable GWT on the project. The thing is that i even don't need other eclipse project in the dependencies. Even gwt-servlet.jar is not copied while doing incremental publish. Let me prepare and upload example for you.
-
7. Re: Incremental publish of Dynamic Web Project problem
vtysh Jun 14, 2012 4:32 AM (in response to rob.stryker)Here is the link to testcase https://docs.google.com/open?id=0B1YALB8JpmN7NVRjWmUyWlgyUzQ
Note that you need to have installed GWT plugin to be able to reproduce the issue. Otherwise incremental publish works OK.
To reproduce the issue do full publish on the configured server throug eclipse and look to the WEB-INF/lib folder. You should see all the jars and project. Then do incremental publish and after it you will see only jar4.jar in the WEB-INF/lib folder.
-
8. Re: Incremental publish of Dynamic Web Project problem
vtysh Jun 14, 2012 7:23 AM (in response to vtysh)After some investigation and IRC support i've found that GWT plugin changed output folder to the "war/WEB-INF/classes". If to change this folder to another one ("bin" for example) incremental publish become to work properly. But GWT plugin gives an error about output path so i had to deselect GWT option "Lunch and deploy from this directory"
-
9. Re: Incremental publish of Dynamic Web Project problem
vtysh Jun 14, 2012 7:41 AM (in response to vtysh)Jira issue https://issues.jboss.org/browse/JBIDE-12176