- This topic has 2 replies, 2 voices, and was last updated 20 years, 10 months ago by David Matthew Bond.
-
AuthorPosts
-
David Matthew BondMemberQuite a simple problem, with a big description
I created a web module project lets call it WebProj.
This project is dependant on some java classes in another project, let call it BeansProj. Thus to get WebProj to compile without errors I must add a reference to BeansProj in the Projects Tab of the WebProj Project Properties Dialog. The BeanProj has blah.jar (a dependancy required by the classes in BeanProj) and BeansProj/src checked in the ‘Order and Export” tab of the BeansProj’s Project Properties Dialog.
This is all normal and fine and then everything compiles fine too.
The problem is however that when I deploy the WebProj to Tomcat 5 usinf the MyEclipseIDE button and the start the Tomcat server (again with the MyEclipseIDE buttons), I get a NoClassDefFoundError in the tomcat log as soon as I try to access a web page where a class is required from the BeansProj code.
To workaround the problem I built a BeansProj.jar and put this and blah.jar in the WebProj’s WEB-INF/lib/ directory
After a redploy and restart the app runs fine.
I had however expected MyEclipseIde to automatically add the BeanProj/bin/ directory and the BeanProj/lib/blah.jar to the classpath from tomcat when starting or sync them automatically to the WEB-INF/lib and WEB-INF/classes/ directories of the WebProj app under tomcat
Am I doing something wrong or is this a limitation of MyEclipseIDE?
Thanks in Advance
Matt
– System Setup ——————————-
Operating System and version: Windows XP
Eclipse version: 2.1.2
Eclipse build id: 200311030802
MyEclipse version: 2.6.200 (Build ID 200312091200-2.7-RC1)
Eclipse JDK version: Sun 1.4.2
Application Server JDK version: Sun 1.4.2– Message Body ——————————-
undefined
Riyad KallaMemberMatt this is a limitation of the deployment right now, but *many* people have asked for this functionality and it is clear to the ME team that this needs to make it in. Its very high on the “stuff that is going in ASAP” list, if not at the top.
David Matthew BondMemberThanks
-
AuthorPosts