-
1. Re: Publishing with JBOSS Tools Indigo Skips web.xml
doughboss Sep 10, 2012 3:01 PM (in response to doughboss)I should specify that I have 3 projects total in the workspace. 2 are publishing properly through the JBOSS AS interface in eclipse (not skipping web.xml). The projects are a RESTeasy webservice (working), a jsp servlet (working), a JSF application (not working). All use spring and hibernate (in case that is relevant).
-
2. Re: Publishing with JBOSS Tools Indigo Skips web.xml
doughboss Sep 10, 2012 5:05 PM (in response to doughboss)1 of 1 people found this helpfulI got desperate and directly edited the .classpath and .project files. Copying the contents from my old helios workspace over my updated workspace created a lot of java errors in eclipse. These were fixed by updating the maven dependencies from the pom. After that, everything worked.
If anyone knows why this worked, please let me know. I will have to upgrade my fellow developers on the project and that process is far from elegant.
-
3. Re: Publishing with JBOSS Tools Indigo Skips web.xml
sfcoy Sep 11, 2012 9:35 AM (in response to doughboss)As a general rule it is a bad idea to put IDE created artifacts such as .project and .classpath into your source control system. These files are sometimes not portable across eclipse versions or even between two different computers running the same version of everything.
If you're using the full JBoss Tools/m2eclipse suite it's far easier to let these completely manage eclipse configuration for you.
-
4. Re: Publishing with JBOSS Tools Indigo Skips web.xml
doughboss Sep 11, 2012 10:11 AM (in response to sfcoy)Thank you for your reply Stephen. You are absolutely correct. It is certainly bad practice to copy the .classpath and .project files from one version of eclipse into another. I tried for a long time to let the jboss tools manage the eclipse configurations for me and resorted to copying over the .project and .classpath only as a last resort (again, after 3 days of trying to make it work the "correct" way). I still do not know why this process worked, but so far there has been no fallout from the process.
I am still curious as to why this fix worked and can only guess at the reason. If anyone knows the reason or a better way to make it work, please let me know.
-
5. Re: Publishing with JBOSS Tools Indigo Skips web.xml
sfcoy Sep 11, 2012 10:18 AM (in response to doughboss)1 of 1 people found this helpfulOne of the things that can happen is that m2eclipse will only touch the .project/.classpath configuration elements for which it has direct knowledge. If there is any cruft in those files then it will remain there.
This happens because there are many eclipse plugins that store configuration in these files and m2eclipse cannot know about all of them.
-
6. Re: Publishing with JBOSS Tools Indigo Skips web.xml
doughboss Sep 11, 2012 11:21 AM (in response to sfcoy)I was working from a clean install of Juno Java EE edition (tried indigo also) with the full JBOSS tools installed and no additional plugins. JBOSS tools comes with maven integration so I did not include m2eclipse. I later installed maven Integration for WTP with no visible change in behavior of the publish.
I tried 2 different ways to import the project as well. One way from the previous workspace and another way from svn. The .classpath and .project files are not stored in our svn repository.
As far as I can tell, I did everything correctly, but there are many ways to fail of course.
Thank you again for your reply. The explanations of the .project and .classpath file are helpful.
-
7. Re: Publishing with JBOSS Tools Indigo Skips web.xml
doughboss Sep 11, 2012 11:30 AM (in response to doughboss)I also installed subclipse when I decided to try to import from svn (of course).