facebook

Can not run Tomcat 5.5 in debug mode [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #228947 Reply

    Arnaud
    Member

    Hello,

    I use Eclipse 3.0.2 and MyEclipse 3.8.4.

    I tried to run Tomcat 5.5 or Tomcat 4.1 in debug mode using MyEclipse with JDK 5 upgrade 3.

    But I get error below:

    URLClassPath$JarLoader.getJarFile(URL) line: 577
    URLClassPath$JarLoader.<init>(URL, URLStreamHandler, HashMap) line: 546
    org.apache.catalina.startup.Bootstrap at localhost:1919
    Thread [main] (Suspended (exception FileNotFoundException))
    URLClassPath$JarLoader.getJarFile(URL) line: 577
    URLClassPath$JarLoader.<init>(URL, URLStreamHandler, HashMap) line: 546
    URLClassPath$3.run() line: 324
    AccessController.doPrivileged(PrivilegedExceptionAction<T>) line: not available [native method]
    URLClassPath.getLoader(URL) line: 313
    URLClassPath.getLoader(int) line: 290
    URLClassPath.getResource(String, boolean) line: 160
    URLClassLoader$1.run() line: 192
    AccessController.doPrivileged(PrivilegedExceptionAction<T>, AccessControlContext) line: not available [native method]
    StandardClassLoader(URLClassLoader).findClass(String) line: 188
    StandardClassLoader.findClass(String) line: 574
    StandardClassLoader.loadClass(String, boolean) line: 911
    StandardClassLoader.loadClass(String) line: 810
    StandardClassLoader.loadClass(String, boolean) line: 894
    StandardClassLoader.loadClass(String) line: 810
    Bootstrap.main(String[]) line: 129

    Could you help me please?

    Thanks a lot!

    Regards, Arnaud.

    #228986 Reply

    Riyad Kalla
    Member

    Arnaud,
    Where is that error being display? What happens when you use the app server launch button and click Start? What is the ENTIRE console contents when Tomcat tries to startup?

    #229013 Reply

    Arnaud
    Member

    Hi Support,
    So error is displayed in Debug console output of Eclipse.
    Click on app server button and start (MyEclipse plugin) is exactly what I did.

    Here is all I get in Debug console:

    URLClassPath$JarLoader.getJarFile(URL) line: 577
    URLClassPath$JarLoader.<init>(URL, URLStreamHandler, HashMap) line: 546
    URLClassPath$3.run() line: 324
    org.apache.catalina.startup.Bootstrap at localhost:2087
    Thread [main] (Suspended (exception FileNotFoundException))
    URLClassPath$JarLoader.getJarFile(URL) line: 577
    URLClassPath$JarLoader.<init>(URL, URLStreamHandler, HashMap) line: 546
    URLClassPath$3.run() line: 324
    AccessController.doPrivileged(PrivilegedExceptionAction<T>) line: not available [native method]
    URLClassPath.getLoader(URL) line: 313
    URLClassPath.getLoader(int) line: 290
    URLClassPath.getResource(String, boolean) line: 160
    URLClassLoader$1.run() line: 192
    AccessController.doPrivileged(PrivilegedExceptionAction<T>, AccessControlContext) line: not available [native method]
    Launcher$AppClassLoader(URLClassLoader).findClass(String) line: 188
    Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: 306
    Launcher$AppClassLoader.loadClass(String, boolean) line: 268
    Launcher$AppClassLoader(ClassLoader).loadClass(String) line: 251
    Launcher$AppClassLoader(ClassLoader).loadClassInternal(String) line: 319
    Bootstrap.<clinit>() line: 53

    #229027 Reply

    Riyad Kalla
    Member

    I would like you to download and install JDK 1.4.2_08 and then configure your Tomcat 4 and 5 connectors to use that JDK to launch Tomcat with and see if that works.

    #233846 Reply

    bjnst6
    Member

    Has anyone come to a resolution to fix titeufhack’s original problem? I’m receiving the same error but do not have the option of switching tomcat versions or jdk versions.

    Thanks!
    bryan

    #233848 Reply

    Riyad Kalla
    Member

    Bryan,
    Does Tomcat run when you launch it externally using the Batch file?

    #233851 Reply

    bjnst6
    Member

    Sure does. It also runs fine if I check “Don’t run Tomcat in Debug Mode” under the Tomcat >> JVM Settings.

    #233856 Reply

    Riyad Kalla
    Member

    Try this:

    1) Restart MyEclipse using the -clean command line argument as outlined here: http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-30.html#343

    If that doesn’t help try:

    2) File > Switch Workspace > C:\tempworkspace, hit OK to restart. Now re-setup Tomcat 5.5 and try and run it, did it work?

    #233861 Reply

    bjnst6
    Member

    Interesting.

    The first option did not work. However, the second did. This of course leaves me with the chore of migrating my workspace over to this new “tempworkspace” doesn’t it?

    Thanks Riyad!

    #233862 Reply

    Riyad Kalla
    Member

    Yes it does, but this can be fairly painless.

    1) File > Export > Preferences.

    (load new workspace, preferably with a better name if you decided)

    2) File> Import > Prefernces
    3) File > Import Existing Project

    it should be fairly smooth.

    #233891 Reply

    bjnst6
    Member

    I forgot about that feature. That shouldn’t be too hard.

    Two more questions: 1) Is there a way to also export my projects as well, or should I just set them up again. It’s not a big deal, but I just didn’t want to do more work than I had to!

    And 2) Okay, so we kind of circumvented the problem here…but what actually caused it? I’m guessing it had to be something specific to that particular workspace, but what was it and what will prevent it from happening again?

    Thanks Riyad. You have been very helpful!

    bryan

    #233902 Reply

    Scott Anderson
    Participant

    1) Is there a way to also export my projects as well,

    You don’t need to export them. Simply move them, using the windows package explorer, into the directory where you’ve set up the new workspace and then use File > Import to bring them all in at once.

    2) Okay, so we kind of circumvented the problem here…but what actually caused it? I’m guessing it had to be something specific to that particular workspace, but what was it and what will prevent it from happening again?

    That’s a harder question. It could be some meta-information that the debugger, java system, or something else keeps around or something else that has “gone bad”. Did you try forcing a full rebuild of your old workspace before migrating to the new one? Did that help?

    #233909 Reply

    bjnst6
    Member

    Yeah, I did try that…but no dice. Oh well, I guess the answer could pop up in the future…

    Thank you for your time. I truly appreciate it!

    bryan

Viewing 13 posts - 1 through 13 (of 13 total)
Reply To: Can not run Tomcat 5.5 in debug mode [Closed]

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