- This topic has 12 replies, 3 voices, and was last updated 16 years ago by
pronane.
-
AuthorPosts
-
pronaneMemberI 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!
June 16, 2009 at 12:50 am #299472
support-joyMemberpronane,
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.
June 16, 2009 at 3:22 am #299478
pronaneMemberhow do I cross post?! Can you do it for me as a moderator?!
June 16, 2009 at 3:25 am #299479
support-joyMemberpronane,
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?
June 16, 2009 at 3:29 am #299480
pronaneMemberJust 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?!
June 16, 2009 at 3:31 am #299481
pronaneMemberThis 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.
June 16, 2009 at 3:34 am #299482
support-joyMemberIn 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
June 16, 2009 at 3:42 am #299483
pronaneMemberthats 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.
June 16, 2009 at 3:58 am #299484
support-joyMemberpronane,
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.
June 16, 2009 at 3:58 am #299485
pronaneMemberBy sharing it i assme the information is kept confidential etc?
Thanks
June 16, 2009 at 4:00 am #299486
support-joyMemberYes, I can guarantee you that your project will be treated as confidential.
June 16, 2009 at 11:54 am #299507
support-eugeneMemberCan you compare contents of the exploded deployment to the contents of the exported jar?
June 17, 2009 at 3:41 am #299532
pronaneMemberYes 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.
-
AuthorPosts