aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes EJB  noClassDefFoundError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB  noClassDefFoundError" Watch "EJB  noClassDefFoundError" New topic
Author

EJB noClassDefFoundError

min zhang
Greenhorn

Joined: Feb 21, 2005
Posts: 7
hi all
i have successfully deployed all the necessary ejbs and compiled
the client .java file into .class file
but when i start to deploy the ejbs on blazix,
run the client .class file to access or call the methods
in ejbs. it appears the error as follow:
exception in thread "main" java.lang.NoClassDefFoundError
at java.lang.classLoader.defineclass1<native methods>
at java.lang.classLoader.defineclass1<unknown source>
.....
thanks in advance
Valentin Tanase
Ranch Hand

Joined: Feb 17, 2005
Posts: 704
Hi Min,


but when i start to deploy the ejbs on blazix,
run the client .class file to access or call the methods
in ejbs. it appears the error as follow:

Please make clear two things:
  • Is this a client error, or a server error? I mean you�ve got this error message from the server log files, or from the client�s console?
  • What is exactly the name of the class missing (not found)? Is this an application specific class (one you�ve created), or is it a blazix specific class?


  • Regards.


    I think, therefore I exist -- Rene Descartes
    min zhang
    Greenhorn

    Joined: Feb 21, 2005
    Posts: 7
    hi ,
    because i tested it in a single pc.
    the error msg is appearing in the client console and the class file is the
    file written by myself.
    it is quite fishy
    thank u first
    i have changed the classpath and path for several times
    no result
    Valentin Tanase
    Ranch Hand

    Joined: Feb 17, 2005
    Posts: 704
    First I�d like you to check this thread Simple]http://www.coderanch.com/t/315815/EJB-JEE/java/Simple-Session-bean-weblogic]Simple Session bean in Weblogic 8.1[/url], it might provide you useful information. Secondly I would advice you to get familiar with your application server�s class loading architecture (sooner or latter you�ll have to do it anyway), since different containers apply different strategies. For a brief introduction you might like checking this link: Understanding]http://www.theserverside.com/articles/article.tss?l=ClassLoading]Understanding J2EE Application Server Class Loading Architecture[/url].
    min zhang
    Greenhorn

    Joined: Feb 21, 2005
    Posts: 7
    thank you very much
    but the link cannot route the page to me
    well the problem is for the blazix that there are too few doc
    for its internal mechanism
    the procedure of the class loading is what i wanne know.
    unluckily,we could only be a general doctor to see the sympotem
    of our patient,not knowing the inside world
    Valentin Tanase
    Ranch Hand

    Joined: Feb 17, 2005
    Posts: 704
    Try again:
    http://www.coderanch.com/t/315815/EJB-JEE/java/Simple-Session-bean-weblogic
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: EJB noClassDefFoundError