- This topic has 3 replies, 2 voices, and was last updated 20 years, 2 months ago by Riyad Kalla.
-
AuthorPosts
-
nileshkMemberI have a web app where we all our jar files are external. Using Eclipse 3.0 on Windows, and Tomcat 5.0. With 3.8beta2, we had a problem with the jar files not getting deployed to WEB-INF\lib. We worked around this by setting to “Always deploy external libraries and place in the ‘lib’ directory when deploying,” even though this should be the default. This problem seemed to occur when retrieving the project the first time from source control.
I was testing with 3.8.1 GA and have been having more problems. I have a project with the same kind of setup. I added JSTL support to it using MyEclipse’s feature for this, which actually copies the jar files to the project’s WEB-INF\lib directory. Then when I deployed, only the jar files in that directory were deployed and none of my external jars were deployed. Changing the settings didn’t do anything. Then I removed the jars from the project’s WEB-INF\lib and made them external libs, but now no jars were deployed at all. I tried several iterations of undeploying and redeploying and changing settings, but nothing changed, I could not get external jars to deploy at all.
Riyad KallaMemberWe worked around this by setting to “Always deploy external libraries and place in the ‘lib’ directory when deploying,” even though this should be the default.
Why should this be default? Consider the case where users are adding external references to the jsp-api.jar and servlet-api.jar files for compile-time resolution… you wouldn’t want these to be deployed with your app 😉
I could not get external jars to deploy at all.
Are you sure you aren’t accidentally overriding your global deployment settings with per-project settings? Go to your proejct properties, then MyEclipse-Web and make sure they are set to deploy external libs.
Also what is the Build ID of Eclipse (Help > About) and MyEclipse (Window > Preferences > MyEclipse)?
nileshkMemberSorry, what I meant is we have “Deploy external libraries” set in the global preferences, and I thought that was the default after installing MyEclipse. And then in the project it is set to “Use workbench default value”.. But it seems to ignore those settings after having retrieved a project from source control (Merant), unless we set the per-project setting to “Deploy external libraries”. Also, that per-project setting is not something that gets retained in the project in source control, it is always “Use workbench default value” after we initially retrieve a project. Note that I’m strictly talking about our experiences in 3.8beta2, but I did not see any bug fixes listed in 3.8.x GA concerning this..
As for the issues with 3.8.1 (w/ latest quickfix)… I’m sure I have the settings correct both in per-project and global settings. When I get a chance, I will try and see if I can consistently reproduce this problem. Just wondering if these are known issues or if anyone else has mentioned problems like this. I suppose the workaround would be to put all the libs directly in the projects WEB-INF\lib directory, but we don’t want to do that unless we have to.
Riyad KallaMembernileshk,
I am not aware of anyone else reporting this issue, there was a problem a few people had with their deployment settings resetting to default settings after installing a fresh 3.8.1 but that was it… please let me know what you find with 3.8.1 and we will get a fix in for you. -
AuthorPosts