- This topic has 8 replies, 3 voices, and was last updated 19 years, 11 months ago by Scott Anderson.
-
AuthorPosts
-
ChampionMemberhello
J am trying to deploy an ejb modul or ear projet without success.
the properties are like follow
project ejb: default
preject ear: defaultsdoclet properties
deployement descriptor
dest dir build/META-INF
merge dir classesjonas
dest dir: build
merce dir : classeswhen I run xdoclet the classes the project is not build. The folder classes is not visible.
Riyad KallaMemberCan 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.
ChampionMemberOS XP
eclipse version 3.0 brand new install
other plugin lomboz visual editor jigloo hibernatesynch
myeclipse 3.8.3What JDK 1.5
What JDK 1.5What application server jonas 4.2.3
nothing specific in .loghere 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
Riyad KallaMemberHave you read our EJB guide: http://www.myeclipseide.com/images/tutorials/quickstarts/firstejb/
ChampionMemberwell 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’.:
Riyad KallaMemberThe 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.
ChampionMemberhi,
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
Riyad KallaMemberChampion,
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+SearchThe 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.
Scott AndersonParticipantThe 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 -
AuthorPosts