facebook

Deployment to Sun App Sever 8.1 Q2 fails

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

    Deddiekoel
    Member

    I’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…

    #235866 Reply

    Scott Anderson
    Participant

    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:

    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.

    #235868 Reply

    Deddiekoel
    Member

    The 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!

    #235872 Reply

    Deddiekoel
    Member

    I 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…

    #235881 Reply

    Riyad Kalla
    Member

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

    #235900 Reply

    Deddiekoel
    Member

    Ok, 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…

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Deployment to Sun App Sever 8.1 Q2 fails

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