facebook

Appending classpaths to Tomcat 4.x [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #206353 Reply

    BJ Hellstrom
    Member

    Running Myeclipseide 3.7.2 and Eclipse 30m8

    Using Myeclipseide to append to the tomcat classpath bombs and Tomcat can no longer find servlet.jar (which I have in C:\jakarta-tomcat-4.1.27\common\lib)

    If I set up an NTFS junction and map the classes into the WEB-INF/classes directory and remove the classes that Myeclipseide is failing to append (so nothing is appended) then everything seems to work ok but this leads to other workbench problems.

    Anyone else see this?

    Apr 23, 2004
    2:23:59 PM org.apache.commons.modeler.Registry loadRegistry
    INFO: Loading registry information
    Apr 23, 2004 2:23:59 PM org.apache.commons.modeler.Registry getRegistry
    INFO: Creating new Registry instance
    Apr 23, 2004 2:24:00 PM org.apache.commons.modeler.Registry getServer
    INFO: Creating MBeanServer
    Apr 23, 2004 2:24:02 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on port 7080
    Apr 23, 2004 2:24:03 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on port 7443
    Apr 23, 2004 2:24:03 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on port 9080
    Apr 23, 2004 2:24:03 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on port 9443
    Starting service bjhellstrom.no-ip.com
    Apache Tomcat/4.1.27
    Apr 23, 2004 2:24:09 PM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on port 7080
    Apr 23, 2004 2:24:09 PM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on port 7443
    Starting service http://www.xtremeclientserver.org
    Apache Tomcat/4.1.27
    Exception during startup processing
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
    Caused by: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)

    [snip]

    #206356 Reply

    Riyad Kalla
    Member

    What were you trying to originally append to the Tomcat classpath?

    #206376 Reply

    BJ Hellstrom
    Member

    classes from another project. If i append them than Tomcat cant find servlet.jar. If I prepend them then Tomcat cant find classes I am prepending.

    #206377 Reply

    Riyad Kalla
    Member

    If your project relies on certain JARs, they should be placed into your WEB-INF/lib directory… maybe I’m missing something else you were trying to do?

    #206744 Reply

    BJ Hellstrom
    Member

    i am debugging two projects, A and B. project A produces classes that will eventually be placed in a jar that will be used by project B. project B is a web-project that runs under Tomcat. since i am still debugging project A, i do not want to generate a new jar file every time i change any of the classes. instead, i want to append the classes from the project A to the tomcat classpath so that i can use them to debug both projects A and B.

    As i mentioned, when i append the classes from project A to the Tomcat classpath, then Tomcat/MyEclipseIde can not find servlet.jar. If I prepend them then they are ignored.

    #206748 Reply

    Riyad Kalla
    Member

    We have had some troubles with the J2EE Library Set recently that we ship with MyEclipse. Can you try removing the J2EE Library set from your build path, then adding the servlet-api.jar and jsp-api.jar files from your Tomcat install? For Tomcat 4 I think the servlet one is just called servlet.jar and I forget what the JSP one is called.

    After making this change, try and append your classes again to the classpath and see if that works.

    #207494 Reply

    Riyad Kalla
    Member

    This was fixed in 2.8 beta 1

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Appending classpaths to Tomcat 4.x [Closed]

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