MyEclipse: Jonas 5.2 EJB deployment

sylvain.bonnemaison - Mar 02, 2012 - 08:56 AM
Post subject: Jonas 5.2 EJB deployment
Hi,
I have created ejbs (stateless session ) where the first is depending on the second. I have create ejbs using MyEclipse wizards.
While I'm deploying both ejbs, I get the following deployement error :
Code:
2012-03-02 09:29:42,469 : InjectionClassAdapter.generateAttributesInjection : No jndi name found on class com/timm/mcr/business/ApplicationEmailSender for interface com.timm.mcr.persistence.ApplicationFacade and beanName
2012-03-02 09:29:42,506 : InjectionClassAdapter.generateAttributesInjection : No jndi name found on class com/timm/mcr/business/PartnerManager for interface com.timm.mcr.persistence.PartnerFacade and beanName
2012-03-02 09:29:42,566 : DeployableMonitor.detectNewArchives : Error : Cannot deploy the deployable 'EJB3DeployableImpl[archive=/home/sbonnemaison/jee/domains/jonas-5.2.2/timm.mcr-tomcat6/deploy/mcrBusiness.jar]'

I get the same error when redeploying the one with dependencies.
I have checked server jndi, and all jndi names exists.
Why such a problem ?
Regards
support-swapna - Mar 02, 2012 - 12:20 PM
Post subject:
sylvain.bonnemaison,

Sorry that you are seeing this issue.

Can you answer some more questions for us ?

1) Can you copy paste the installation details from MyEclipse > Installation Summary > Installation Details ?

2) Clear the contents of the .log file which is located at <workspace dir>/.metadata/.log, now try to deploy the project and send us the contents of the .log file for us to investigate further.

Here is an FAQ on how to upload attachments to forums : http://www.myeclipseide.com/PNphpBB2-viewtopic-t-27029.html
sylvain.bonnemaison - Mar 02, 2012 - 04:08 PM
Post subject:
MyEclipse installation details:
Code:
*** Date:
vendredi 2 mars 2012 16 h 59 GMT+01:00

** System properties:
OS=Linux
OS version=3.2.5
Java version=1.6.0_31


*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 10.0
Build id: 10.0-20111028


*** Eclipse details:
Eclipse Java EE IDE for Web Developers.

Version: Indigo Service Release 2
Build id: 20120216-1857




Eclipse Platform

Version: 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q
Build id: M20120208-0800


Eclipse Java Development Tools

Version: 3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1
Build id: M20120208-0800


Eclipse Plug-in Development Environment

Version: 3.7.2.v20120120-1420-7b7rFUOFEx2Xnqafnpz0E--0
Build id: M20120208-0800


Eclipse Graphical Editing Framework GEF

Version: 3.7.0.v20110425-2050-777D-81B2Bz0685C3A6E34272
Build id: 201105020958


Eclipse RCP

Version: 3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA38R-kz0S0272
Build id: M20120208-0800




Eclipse startup command=-os
linux
-ws
gtk
-arch
x86_64
-showsplash
-launcher
/home/sbonnemaison/bin/eclipse-jee-3.7/eclipse
-name
Eclipse
--launcher.library
/home/sbonnemaison/bin/eclipse-jee-3.7//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505/eclipse_1407.so
-startup
/home/sbonnemaison/bin/eclipse-jee-3.7//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.overrideVmargs
-exitdata
27800a
-product
org.eclipse.epp.package.jee.product
-vm
/usr/bin/javay.

After cleaning the .log file, its content still empty while redeploying the project. The error I talk about is displayed in the console output.
support-swapna - Mar 05, 2012 - 11:52 AM
Post subject:
sylvain,

Thank you for the details. I have escalated it to the dev team. I will get back to you with their inputs.

Sorry for the inconvenience caused.
sylvain.bonnemaison - Mar 05, 2012 - 01:16 PM
Post subject:
I'm not sure this a problem with MyEclipse ejb3 wizard. It might be a problem with Jonas configuration.
Thanks,
Sylvain
support-tony - Mar 06, 2012 - 10:06 AM
Post subject:
Sylvain,

I couldn't replicate the problem with a couple of simple EJBs, deployed to JOnAS. If you determine that the problem is with the wizard or other MyEclipse feature, could you provide more information on your project (including exactly how you created it and the EJBs and how you deployed it)? If possible, create a simple project that has the problem and attach it to your reply.
sylvain.bonnemaison - Mar 07, 2012 - 12:45 PM
Post subject:
Here is a copy a the project including just part of the final project.

Can provide me a sample myeclipse project that target jonas server?
support-tony - Mar 08, 2012 - 07:54 AM
Post subject:
silvain,

Thanks for the project. I can deploy it with no problems. I needed to set up the data source first but, after that, had no problems. This is what I did to set up the data source:

I had deployed the project before I made the above changes and got obvious errors when starting the server. Once I'd made the above changes, the server started the EJB application without problems.

I hope some of this helps. If not, you may be right that it is a problem with JOnAS configuration.
sylvain.bonnemaison - Mar 08, 2012 - 09:34 AM
Post subject:
If you check my first request, tThe problem is when I call the ejb from teh clientusing @EJB annotation :
Code:
...
   @EJB
   ApplicationFacade applicationFacade;
...


The server log tells that ejb is deployed correctly and I get the following jonas server error message :
Code:
2012-03-02 09:29:42,469 : InjectionClassAdapter.generateAttributesInjection : No jndi name found on class com/sample/ApplicationManager for interface com.pack1.ApplicationFacade and beanName


I see ejb details in jonas admin console. It shows the Application composant.

Is it a problem with Jonas configuration? Do I missing something?[/code]
support-tony - Mar 08, 2012 - 09:48 AM
Post subject:
Sylvain,

I'm sorry but this doesn't seem to be a MyEclipse problem and I don't know enough about EJBs on JOnAS to be able to help you, except to note that the error message appears to be from a JOnAS class (from doing an Internet search). It also seems to indicate a null or blank bean name. I'm not sure if that is a problem here.

You might get better support on this by posting on a JOnAS forum.

Sorry we couldn't be of more help on this one.
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits