| Author |
Message |
|
|
Post subject: Jonas 5.2 EJB deployment
Posted: Mar 02, 2012 - 08:56 AM
|
|
Registered Member

Joined: Nov 10, 2009
Posts: 9
|
|
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 |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 02, 2012 - 12:20 PM
|
|

Joined: Nov 11, 2010
Posts: 2153
|
|
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 |
_________________ Swapna
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 02, 2012 - 04:08 PM
|
|
Registered Member

Joined: Nov 10, 2009
Posts: 9
|
|
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. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 05, 2012 - 11:52 AM
|
|

Joined: Nov 11, 2010
Posts: 2153
|
|
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. |
_________________ Swapna
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 05, 2012 - 01:16 PM
|
|
Registered Member

Joined: Nov 10, 2009
Posts: 9
|
|
I'm not sure this a problem with MyEclipse ejb3 wizard. It might be a problem with Jonas configuration.
Thanks,
Sylvain |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 06, 2012 - 10:06 AM
|
|

Joined: Mar 09, 2011
Posts: 714
|
|
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. |
_________________ Tony
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 07, 2012 - 12:45 PM
|
|
Registered Member

Joined: Nov 10, 2009
Posts: 9
|
|
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? |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 08, 2012 - 07:54 AM
|
|

Joined: Mar 09, 2011
Posts: 714
|
|
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:
- Added ",mcr" to the jonas.service.dbm.datasources property in the jonas.properties file:
| Code: | | jonas.service.dbm.datasources HSQL1,mcr |
- Set the jonas.service.ejb3.jpa.provider to eclipselink2, in the jonas.properties file:
| Code: | | jonas.service.ejb3.jpa.provider eclipselink2 |
- Added dbm to the list of services, in the jonas.properties file:
| Code: | | jonas.services jtm,db,resource,ejb3,jaxws,web,ear,depmonitor,dbm |
- Created an mcr.properties file in the jonas conf folder:
| Code: | datasource.name jdbc/mcr
datasource.url jdbc:mysql://localhost/tonydb
datasource.classname com.mysql.jdbc.Driver
datasource.username root
datasource.password mysql
datasource.mapper rdb.mysql
datasource.isolationLevel none | Note that I just used mysql, as I don't have PostgreSQL on my machine.
- Added the jar file for the database driver to the jonas lib/ext folder.
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. |
_________________ Tony
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 08, 2012 - 09:34 AM
|
|
Registered Member

Joined: Nov 10, 2009
Posts: 9
|
|
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] |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 08, 2012 - 09:48 AM
|
|

Joined: Mar 09, 2011
Posts: 714
|
|
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. |
_________________ Tony
MyEclipse Support
|
| |
|
|
|
 |
|
|