- This topic has 5 replies, 3 voices, and was last updated 19 years, 4 months ago by Deddiekoel.
-
AuthorPosts
-
DeddiekoelMemberI’m new to MyEclipse and J2EE. Just came back from a Sun course and am now trying to see how MyEclipse can work for me. But I’ve encountered some problems.
I’m running the Sun App Server 8.1 Q2 which I’ve added to the MyEclipse configuration using a correct JDK.
In MyEclipse I’ve created a new Enterprise project with an EJB. In this EJB I have one bean class with a pojo helper class. I’ve created one business method and used XDoclet to create interfaces and descriptors. I start the app server from Eclipse which starts without problem. Then I (re)deploy the enterprise project and at this point I get the following error:
Fatal Error from EJB Compiler — Invalid jndi name [] found in application [TestApplication]; module [TestApplicationEJB.jar]; ejb [Test]; aborting deployment. Please populate the jndi element and try again.
I have done no additional setup on the app server.
Any idea what is causing this error? My first guess was that I needed to set-up a JNDI reference to the bean but I have no idea what set-up I would have to use as I do not know the JNDI name to use and any other of the parameters…
Scott AndersonParticipantI start the app server from Eclipse which starts without problem. Then I (re)deploy the enterprise project and at this point I get the following error:
Redeploying while the server is running the application may be problematic, depending on the server. When you start the server initially, does your application operate correctly? The error might simply be an indication that a jar is locked by the server and the redeployment isn’t succeeding while the server is running.
DeddiekoelMemberThe application isn’t visible in the app server. MyEclipse says the deployment was successfull (hence I have to redeploy it), but I can’t see it anywhere. But I’ll try deploying it with the server stopped!
DeddiekoelMemberI get the impression that no app specific deployment descriptors have been generated. When I check the .ear file in the autodeploy folder I see no reference to any sun dd files…
Riyad KallaMemberI get the impression that no app specific deployment descriptors have been generated. When I check the .ear file in the autodeploy folder I see no reference to any sun dd files…
You are correct, you will need to employ XDoclet to generate server-specific deployment descriptors. We felt it was more impotant to get better app server coverage, then only support a few app servers very tightly.
DeddiekoelMemberOk, I added the sunone XDoclet subtask, and now it’s working (RTFM, I know 😳 ). But thee is no sun-application.xml created. But deployment is successfull now…
-
AuthorPosts