facebook

ejb not bound [closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #225994 Reply

    I just got my first session bean to work but it didn’t work immediately because although the jndi-name=”ejb/Transfer” what the client really needed to specify was just “Transfer”. I can see other people had similar problems but their solutions seem to involve the deployment descriptor file, which I don’t seem to have.

    I think I should see jboss.xml somewhere but I don’t.

    So: why isn’t my bean called ejb/Transfer and should I have a jboss.xml?

    Here is my config details:

    OS=WIN2K build 2195 sp4
    Eclipse 3.0.1 Build id: 200409161125
    Upgraded from 3.0.0
    Other plugins: SYSDEO tomcat launcher plus one of my own (neither are being invoked during this operation, though)

    pde:
    org.eclipse.pde.build_3.0.0
    org.eclipse.pde.build_3.0.1
    org.eclipse.pde.core_3.0.0
    org.eclipse.pde.core_3.0.1
    org.eclipse.pde.doc.user_3.0.0
    org.eclipse.pde.junit.runtime_3.0.0
    org.eclipse.pde.runtime_3.0.0
    org.eclipse.pde.runtime_3.0.1
    org.eclipse.pde.source_3.0.0
    org.eclipse.pde.source_3.0.1
    org.eclipse.pde.ui_3.0.0
    org.eclipse.pde.ui_3.0.1

    myeclipse 3.8.4
    C:\j2sdk1.4.2\bin>java -version
    java version “1.4.2”
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
    Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)
    (same is used for app server)
    appserver: jboss4.0.1-sp1

    #226022 Reply

    Riyad Kalla
    Member

    Roger,
    Are you using XDoclet to generate the bean? What setup for XDoclet do you have? Have you told it to generate the JBoss resources for you?

    #226043 Reply

    I am using XDoclet to generate the bean, but it is likely I have not configured it right (though I have looked at the options).

    I opened project properties and picked StandardEJB. From there I just acepted the defaults. I couldn’t see any specific JBoss stuff in there, although you are almost certainly right to point me there. One more hint please?

    Thanks

    #226045 Reply

    Greg
    Member

    Have you looked at the EJB Development tutorial? It contains steps on how to add jboss specific subtask to generate a jboss.xml.

    #226054 Reply

    The jboss specific subtask was the problem, ie I hadn’t done it. The link described the steps perfectly. Thanks for your help, it works fine now.

    #226059 Reply

    Greg
    Member

    Good deal, we’re glad you got it working.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: ejb not bound [closed]

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