• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Cannot get EJB to Deploy

 
tumbleweed and gunslinger
Posts: 192
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Been pulling my hair out trying to learn EJB's and I'm having issues getting it deployed.

The code compiles fine, but unable to get it deployed under Sun ONE AS7.

What the heck is wrong with my XML files?

The error message I'm getting is:



ejb-jar.xml


sun-ejb-jar.xml
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<?xml version="1.0" encoding="UTF-8"?>
<sun-ejb-jar>
<enterprise-beans>
<session>
<ejb-name>HelloWorldEJB</ejb-name>
<jndi-name>HelloWorldHomeRemote</jndi-name>
</session>
</enterprise-beans>
</sun-ejb-jar>
 
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

As you can see, session requires that you include the "session-type" node, which tells it if it should be a stateful or stateless session bean. You've got to read those error messages!
reply
    Bookmark Topic Watch Topic
  • New Topic