facebook

Web Module Project does not pass classpath info to tomcat5

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #202206 Reply

    Quite 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

    #202217 Reply

    Riyad Kalla
    Member

    Matt 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.

    #202221 Reply

    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Web Module Project does not pass classpath info to tomcat5

You must be logged in to post in the forum log in