• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cannot get EJB to Deploy

 
David Yutzy
tumbleweed and gunslinger
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • 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
 
BoonHock Ng
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • 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>
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • 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!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!