Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB noClassDefFoundError

 
min zhang
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
     
    min zhang
    Greenhorn
    Posts: 7
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 704
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 7
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 704
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Try again:
    http://www.coderanch.com/t/315815/EJB-JEE/java/Simple-Session-bean-weblogic
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic