- This topic has 3 replies, 2 voices, and was last updated 17 years, 8 months ago by
Riyad Kalla.
-
AuthorPosts
-
wlovingMemberHello I am using Eclipse SDK
Version: 3.1.2
Build id: M20060118-1600and MyEclipse 4.1.1 GA
I am having trouble with the deployment of one of my JSF web applications to Tomcat 5.0 through the MyEclipse deployment functions. My project is called “Commercial” is dependent upon another MyEclipse Web project called kklib. Both these projects are pretty good sized and have dependencies on about 50 jars files. The only way I seem to be able to get it even close to working is to load up every single jar into the “Prepend” classpath which MyEclipse provides. But I’m trying to take the high-road here and deploy the jars properly through the WEB-INF/lib directory. There are also a few jars ought to be on the Tomcat’s server’s classpath, however, when I start my server through MyEclipse Tomcat doesn’t seem to be able to find those jars — those in the common/lib and shared/lib directories. Also despite having “Smart Deployment” engaged MyEclipse takes the dependent library, kklib, and makes it a jar file rather than keeping in in exploded format.
Thanks in advance.
Riyad KallaMemberwloving,
I think the root of the problem here is that MyEclipse does not support dependencies between web projects… only a Web > Java dependency.So if you are deploying Web Project A to the app server, and it needs libs from Web Project B, you *will* need to manually copy out those libs to the app server, or add them to the classpath so the app server can find them universally for both projects.
My suggestion would be to factor out the common code into a central Java Project, along with the libs, that both web projects can share.
wlovingMemberRiyad,
Thanks for your suggestion. I removed the web project and recreated it as a java project and this worked fine. The deployment came up smooth as silk. I really appreciate it.
Riyad KallaMemberVery cool, I’m glad it’s working now.
-
AuthorPosts