facebook

Jonas 5.2 EJB deployment

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #323877 Reply

    Sylvain Bonnemaison
    Participant

    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 :

    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

    #323884 Reply

    support-swapna
    Moderator

    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 : https://www.genuitec.com/forums/topic/troubleshooting-how-to-upload-attachments-on-forum/

    #323893 Reply

    Sylvain Bonnemaison
    Participant

    MyEclipse installation details:

    *** 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.

    #323940 Reply

    support-swapna
    Moderator

    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.

    #323945 Reply

    Sylvain Bonnemaison
    Participant

    I’m not sure this a problem with MyEclipse ejb3 wizard. It might be a problem with Jonas configuration.
    Thanks,
    Sylvain

    #323998 Reply

    support-tony
    Keymaster

    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.

    #324050 Reply

    Sylvain Bonnemaison
    Participant

    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?

    Attachments:
    You must be logged in to view attached files.
    #324091 Reply

    support-tony
    Keymaster

    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:
      jonas.service.dbm.datasources    HSQL1,mcr
    • Set the jonas.service.ejb3.jpa.provider to eclipselink2, in the jonas.properties file:
      jonas.service.ejb3.jpa.provider    eclipselink2
    • Added dbm to the list of services, in the jonas.properties file:
      jonas.services    jtm,db,resource,ejb3,jaxws,web,ear,depmonitor,dbm
    • Created an mcr.properties file in the jonas conf folder:
      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.

    #324095 Reply

    Sylvain Bonnemaison
    Participant

    If you check my first request, tThe problem is when I call the ejb from teh clientusing @EJB annotation :

    ...
       @EJB
       ApplicationFacade applicationFacade;
    ...

    The server log tells that ejb is deployed correctly and I get the following jonas server error message :

    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?

    #324096 Reply

    support-tony
    Keymaster

    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.

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: Jonas 5.2 EJB deployment

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