facebook

MyEclipse 7 + WLS + Unable to load a class specified in your

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #299394 Reply

    pronane
    Member

    I am trying to deploy an EJB project through myeclipse onto WLS 10.3 which is running through myeclipse, with teh end goal being able to hot deploy code changes without needing to restart the server etc.

    I am getting the following error:

    Unable to deploy EJB: D:\bea103\user_projects\domains\autodeploy\myejbNewEJB from cobraNewEJB:

    [EJB:015025]Unable to load a class specified in your ejb-jar.xml: com.xxx.coxxxbra.binxxxess.xxxxxsite.xxxxxFacadeBean.

    ejb-jar.xml looks like this:

    <session>
    <ejb-name>xxxFacade</ejb-name>
    <home>com.xxx.xxxra.xxxness.xxxsite.xxxFacadeHome</home>
    <remote>com.xxx.xxxra.xxxness.xxxsite.xxxFacade</remote>
    <ejb-class>com.xxx.xxxra.xxxness.xxxsite.xxxFacadeBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    <security-role-ref>
    <description>my user role</description>
    <role-name>myuser</role-name>
    <role-link>myuser</role-link>
    </security-role-ref>
    <security-identity>
    <run-as>
    <role-name>xxx.service</role-name>
    </run-as>
    </security-identity>
    </session>

    Not sure what i am doing wrong to be honest?! Any help much appreciated!

    #299472 Reply

    support-joy
    Member

    pronane,

    Can you take a look at this thread – http://www.theserverside.com/discussions/thread.tss?thread_id=31668 Make sure you have your changes added to weblogic-ejb-jar.xml. I would recommend you cross post to ejb and web logic forums.

    #299478 Reply

    pronane
    Member

    how do I cross post?! Can you do it for me as a moderator?!

    #299479 Reply

    support-joy
    Member

    pronane,

    Sorry, I can only answer queries related to MyEclipse on our forums. You can google for ejb and web logic forums. Did you try looking at the link above, it has a workable solution?

    #299480 Reply

    pronane
    Member

    Just to add, that I can export it as a jar file and it seems to work ok.

    Moderator: I dont see anywhere it says you need to make changes to weblogic-ejb-jar.xml in that link above?!

    #299481 Reply

    pronane
    Member

    This query is related to myeclipse though, because I can get it working when i export it as a jar, and it works within jbuilder! It also works when I use a build.xml file i have and run it outside of myeclipse, but i am trying to get it to hot-deploy and thats why i am trying to get it running in myeclipse, so it is directly related to something in myeclipse.

    #299482 Reply

    support-joy
    Member

    In your post above you have mentioned about ejb-jar.xml and have not referred to weblogic-ejb-jar.xml. The workable solution is http://www.theserverside.com/discussions/thread.tss?thread_id=31668#160782

    #299483 Reply

    pronane
    Member

    thats if you want to create a jar file, i am trying to hot deploy within myeclipse though. As i stated earlier i can run the jar file no problem, but that is not what i want to do. Here is my weblogic-ejb-jar.xml :

    <weblogic-enterprise-bean>
    <ejb-name>xxxFacade</ejb-name>
    <transaction-descriptor>
    <trans-timeout-seconds>60000</trans-timeout-seconds>
    </transaction-descriptor>
    <jndi-name>xxx.xxxra.xxxFacade</jndi-name>
    </weblogic-enterprise-bean>

    Everything is there in terms of configuration as it will build and deployd outside of myeclipse using ant. I can also export it to a jar file from myeclipse and it will deploy. However it will not deploy to WLS running within myeclipse. So there must be something that myeclipse is or is not doing and hence the problem above occuring.

    #299484 Reply

    support-joy
    Member

    pronane,

    I don’t have visibility to your project. Your ejb-jar.xml and weblogic-ejb-jar.xml looks good. Will it be possible for you to share your project, that way I can replicate your issue at my end. You can send a mail to support@genuitec.com with your project as an attachment, please refer to this post and add ATTN: Joy in subject.

    Sorry for the inconvinience.

    #299485 Reply

    pronane
    Member

    By sharing it i assme the information is kept confidential etc?

    Thanks

    #299486 Reply

    support-joy
    Member

    Yes, I can guarantee you that your project will be treated as confidential.

    #299507 Reply

    Can you compare contents of the exploded deployment to the contents of the exported jar?

    #299532 Reply

    pronane
    Member

    Yes I opened up the autodeploy folder in Weblogic, and extracted the jar file to a folder and did a comparison using Winmerge, and there was no difference.

Viewing 13 posts - 1 through 13 (of 13 total)
Reply To: MyEclipse 7 + WLS + Unable to load a class specified in your

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