Skip to Content
author's profile photo Former Member
Former Member

java.lang.NoClassDefFoundError

Hi!:

I'm working with DCs. I have a Java DC and it references a EJB DC.

At the java dc:

InitialContext ctx = new InitialContext();

Object ref = ctx.lookup("localejbs/GestionarInfoSessionFacadeBean");

At debug time I can see the variable ref as follow:

Object ref = com.paq.gct.persistencia.ejb.session.GestionarInfoSessionFacadeLocalHomeImpl0_0

(The class name is autocompleted with a Impl0_0)

Inspecting the variable I can see at policy configuration and other stuff the right data of the ear where the class belongs etc etc.But no mater what I want to do with the variable ref (Ex.: casting it to It's real type, in this case com.paq.gct.persistencia.ejb.session.GestionarInfoSessionFacadeLocalHome) the app throws this error:

java.lang.NoClassDefFoundError: com/paq/gct/persistencia/ejb/session/GestionarInfoSessionFacadeLocalHome

Any idea???

Thanks a lot for your time on this thread.

Rocío.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jan 02, 2008 at 06:47 PM

    Hi RocĂ­o,

    You need to define a reference from the application or library of the Java DC to the application of the EJB DC. This is done in the application-j2ee-engine.xml or provider.xml, respectively.

    HTH!

    -- Vladimir

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2008 at 03:09 PM

    Change the JAVA DC for WS. WD DC Consume the data via Webservice adaptive model.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.