facebook

ClassNotFoundException When Starting Debugger

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

    suraphol
    Member

    – System Setup ——————————-
    Operating System and version: Windows XP Pro
    Eclipse version: 3.0.0
    Eclipse build id: 200402122000
    Fresh Eclipse install (y/n): Y
    If not, was it upgraded to its current version using the update manager?
    Other installed external plugins:
    Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*:
    MyEclipse version: 3.7.0 (20040305-3.7.0)
    Eclipse JDK version: J2SDK 1.4.2
    Application Server JDK version: j2skd1.4.2
    Are there any exceptions in the Eclipse log file?

    !SESSION Nov 22, 2004 14:21:43.500 ———————————————
    java.version=1.4.2
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    !ENTRY org.eclipse.osgi Nov 22, 2004 14:21:43.500
    !MESSAGE Bundle reference:file:c:/Eclipse/eclipse-SDK-3.0M7/eclipse/plugins/org.eclipse.debug.ui_3.0.0 [77] was not resolved
    !ENTRY org.eclipse.osgi Nov 22, 2004 14:21:43.578
    !MESSAGE Bundle reference:file:c:/Eclipse/eclipse-SDK-3.0M7/eclipse/plugins/org.eclipse.jdt.debug_3.0.0 [86] was not resolved

    – Message Body ——————————-
    Hi,

    I am running WebLogic 8.1 SP1 and have no problem bringing it up in MyEclipse. However, when I start a JAVA client program that will call a EJB, I get a ClassNotFoundException in the main Thread. It does not even stop in the beginning of the main program. When I start MyWorkbench, I use the ‘-vm c:\j2sdk1.4.2\bin\javaw.exe” option already. What am I missing? This is urgent, please help… 😥

    Thanks,
    Suraphol

    #219848 Reply

    suraphol
    Member

    I forgot to mention some information that may be helpful, I see the follow info from the debug window:

    Thread [main] (Suspended (exception java.lang.ClassNotFoundException))
    Java.net.URLClassLoader$1.run() line: 199 [local variables unavailable]
    Java.security.AccessController.doPrivileged(java.securty.PrivilegedExceptionAction, java.security.AccessControlContext) line: not available [native method]
    Sun.misc.Launcher$AppClassLoader(java.net.URLClassLoader).findClass(java.lang.String) line: 187
    Sun.misc.Launcher$AppClassLoader(java.langClassLoader).loadClass(java.lang.String, boolean) line: 289

    Thanks…

    #223881 Reply

    onirike
    Member

    I do have the exact same problem…

    Did you find a solution?

    #248939 Reply

    Prakash1
    Member

    I too facing the same problem . Any solution could greatly be appreciated .

    #248948 Reply

    Riyad Kalla
    Member

    Guys are your clients that are trying to use the EJB separate Java projects? You need to add the EJB project to your build path so your runtime can access the bean.

    #249133 Reply

    Prakash1
    Member

    Hi Riyad ,

    Thanks for your quick reply . The problem is still there giving me the following error :

    java.lang.NoClassDefFoundError: com/sun/enterprise/server/PEMain

    with an alert message of : “Could not find the main class. Program will exit” while i’m working in MyEclipse.

    I’m working on SUN one server version 7 , integrating with My Eclipse SUN one server version 8 .

    Then i am facing this problem . Could give any help ?

    Thanks in advance,
    Prakash .

    #249134 Reply

    Prakash1
    Member

    Also there is this error message too :

    Source not found for Launcher$AppClassLoader(URLClassLoader).findClass(String) line: 204

    #249148 Reply

    Riyad Kalla
    Member

    Prakash,
    These sounds like fairly run of the mill exceptions… can you outline your project setup for me?

    #249251 Reply

    Prakash1
    Member

    Hello Ryad ,

    I’m having SUN One Server version 7.0 in my machine, but i’m using MyEclipse in this , when i go from menu bar Windows->Preferences->MyEclipse->Application Servers ,

    I’m having Sun Java System Application Server Edition 8
    & Sun Java System Application Server Edition 8.1

    Now i have used Edition 8 , configured Home Directory, Configuration Directory,Server Name, Domain Name etc..

    I think the problem may be i’m having SUN One server ver 7 & i’m using Sun App server Edition 8 of MyEclipse which becoming incompatible for the versions i think so . I’m not sure whether i’m right .

    Now when i tried to run the SUN One app server by clicking ‘Start’ it is showing me the alert : ‘Could not find the main class. Program will exit’

    java.lang.NoClassDefFoundError: com/sun/enterprise/server/PEMain
    Exception in thread “main”

    com.sun.enterprise.server.PEMain at localhost:1232
    Thread [main] (Suspended (exception ClassNotFoundException))
    URLClassLoader$1.run() line: 199 [local variables unavailable]
    AccessController.doPrivileged(PrivilegedExceptionAction, AccessControlContext) line: not available [native method]
    Launcher$AppClassLoader(URLClassLoader).findClass(String) line: 187
    Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: 289
    Launcher$AppClassLoader.loadClass(String, boolean) line: 274
    Launcher$AppClassLoader(ClassLoader).loadClass(String) line: 235
    Launcher$AppClassLoader(ClassLoader).loadClassInternal(String) line: 302

    I’m using j2sdk1.4.2_04 . Hoping for the solution for this problem .

    Thanks a lot for your response Ryad,
    Prakash.

    #249317 Reply

    Riyad Kalla
    Member

    I think the problem may be i’m having SUN One server ver 7 & i’m using Sun App server Edition 8 of MyEclipse which becoming incompatible for the versions i think so . I’m not sure whether i’m right .

    Now when i tried to run the SUN One app server by clicking ‘Start’ it is showing me the alert : ‘Could not find the main class. Program will exit’

    java.lang.NoClassDefFoundError: com/sun/enterprise/server/PEMain

    Exception in thread “main”

    You are correct, we don’t support Sun App Server 7 so using the 8.0 connector will not work. You will need to start sun app server outside of MyEclipse if you need to use it.

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: ClassNotFoundException When Starting Debugger

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