facebook

problem deployement with jonas server

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

    Champion
    Member

    hello

    J am trying to deploy an ejb modul or ear projet without success.

    the properties are like follow

    project ejb: default
    preject ear: default

    sdoclet properties

    deployement descriptor
    dest dir build/META-INF
    merge dir classes

    jonas
    dest dir: build
    merce dir : classes

    when I run xdoclet the classes the project is not build. The folder classes is not visible.

    #223056 Reply

    Riyad Kalla
    Member

    Can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.

    #223060 Reply

    Champion
    Member

    OS XP
    eclipse version 3.0 brand new install
    other plugin lomboz visual editor jigloo hibernatesynch
    myeclipse 3.8.3

    What JDK 1.5
    What JDK 1.5

    What application server jonas 4.2.3
    nothing specific in .log

    here is the result of the run xdoclet

    Buildfile: H:\workspace\essais\.xdoclet-build.tmp.xml
    N65540:
    [ejbdoclet] (XDocletMain.start                   47  ) Running <remoteinterface/>
    [ejbdoclet] (XDocletMain.start                   47  ) Running <localinterface/>
    [ejbdoclet] (XDocletMain.start                   47  ) Running <homeinterface/>
    [ejbdoclet] (XDocletMain.start                   47  ) Running <localhomeinterface/>
    [ejbdoclet] (XDocletMain.start                   47  ) Running <dataobject/>
    [ejbdoclet] (XDocletMain.start                   47  ) Running <valueobject/>
    [ejbdoclet] (XDocletMain.start                   47  ) Running <entitypk/>
    [ejbdoclet] (XDocletMain.start                   47  ) Running <entitycmp/>
    [ejbdoclet] (XDocletMain.start                   47  ) Running <entitybmp/>
    [ejbdoclet] (XDocletMain.start                   47  ) Running <session/>
    [ejbdoclet] (XDocletMain.start                   47  ) Running <dao/>
    [ejbdoclet] (XDocletMain.start                   47  ) Running <utilobject/>
    [ejbdoclet] (XDocletMain.start                   47  ) Running <deploymentdescriptor/>
    [ejbdoclet] (XDocletMain.start                   47  ) Running <jonas/>
    _xdoclet_generation_:
    BUILD SUCCESSFUL
    Total time: 3 seconds
    #223062 Reply

    Riyad Kalla
    Member
    #223090 Reply

    Champion
    Member

    well I made some progress but still have a error on deployement

    Deploy error : autoload/essais.jar
    : java.lang.Exception: Cannot create Container: org.objectweb.jonas.service.ServiceException : Cannot read the XML deployment descriptors for /F:/JOnAS-4.2.3/work/ejbjars/jonas/essais_2005.01.19-17.54.00.jar:org.objectweb.jonas_lib.deployment.api.DeploymentDescException: The entry ‘META-INF/ejb-jar.xml’ was not found in the file ‘/F:/JOnAS-4.2.3/work/ejbjars/jonas/essais_2005.01.19-17.54.00.jar’.:

    #223094 Reply

    Riyad Kalla
    Member

    The entry ‘META-INF/ejb-jar.xml’

    This file must be created by you or by use of XDoclet… this is covered in the EJB guide.

    #223202 Reply

    Champion
    Member

    hi,

    well I am starting go nuts. Well I have the file ejb-jar jonas-ejb-jar assembly descriptor. I deployed the modul on jonas. after I run genic myFile.jar as to genereted stub… and it ends well. but when I deploy the file I got.
    J followed the tutorial by the word exept for the version tag which I can’t find any acceptable value.

    Deploy error : autoload/essais.jar
    : java.lang.Exception: Cannot create Container: javax.ejb.EJBException: MonEjb Cannot load fr.champion.interfaces.JOnASMonEjb627227155Home; nested exception is: java.lang.ClassNotFoundException: fr.champion.interfaces.JOnASMonEjb627227155Home
    

    and this one on the console

    2005-01-20 16:37:30,145 : JFactory.checkJonasVersion : failed to find class fr.champion.interfaces.JOnASMonEjb627227155Homejava.lang.ClassNotFoundException: fr.champion.interfaces.JOnASMonEjb627227155Home
    
    #223204 Reply

    Riyad Kalla
    Member

    Champion,
    Your question is really an XDoclet + EJB on Jonas question. Have you tried the Jonas tutorial for tips? http://jonas.objectweb.org/doc/tutorial/src/html/index.html
    Have you tried asking on their mailing list? http://www.objectweb.org/wws/lists/projects/jonas
    Anything helpful on the wiki? http://wiki.objectweb.org/jonas/
    Google? http://www.google.com/search?hl=en&q=Deploy+EJB+to+JOnAS&btnG=Google+Search

    The reason I’m pointing you to these resources is that I have never used JOnAS and the quickstart guide we wrote was against JBoss, so there may be a little oddity with JOnAS or the Doclet for JOnAS that requires some extra effort. Either way I don’t think I can answer those questions and don’t want you spinning your tires waiting on me. I hope the resources above can help you out, maybe try searching the mailing lists? You can’t be the only person trying to use XDoclet to generate files to deploy to JOnAS.

    #223208 Reply

    Scott Anderson
    Participant

    The issue you’re experiencing is caused because Jonas doesn’t automatically generate remote stubs / skeletons for EJBs like all other J2EE servers do. The name of the stub it’s looking for is shown here:

    
    2005-01-20 16:37:30,145 : JFactory.checkJonasVersion : failed to find class fr.champion.interfaces.JOnASMonEjb627227155Homejava.lang.ClassNotFoundException: fr.champion.interfaces.JOnASMonEjb627227155Home 
    

    We’ve spoken about workarounds to this Jonas limitation in the following threads:
    http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-5326-highlight-jonas+stubs.html
    http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-4344-highlight-jonas+skeleton.html
    http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-4926-highlight-jonas+stubs.html

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: problem deployement with jonas server

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