Hello,
Currently I have a J2EE app running with several EJBs. All of the EJBs deploy
correctly and work without problems. (JBoss 4.0.1)
I'm currently attempting to distribute this application using two servers and
am having a little trouble getting jboss.xml to work correctly. Currently,
there is no jboss.xml for any beans as they all are using the standard
behavior.
When I added in the jboss.xml file, working off some simple examples, it
complains that it cannot find the JNDI name.
In the application, I use the path: "java:comp/env/ejb/Order" to retrive the
reference to the EJB, then I narrow to get the home object.
Currently, the jboss.xml references look like this:
<ejb-name>Order</ejb-name>
<jndi-name>Order</jndi-name>
And upon deployment, it say that it cannot find the JNDI name. I have tried
every combination that I can think of to find this bean, but it always says the
JNDI name is incorrect:
[ServiceController] Problem creating service
jboss.j2ee:jndiName=Order,service=EJB
java.lang.NoClassDefFoundError: org/apache/struts/action/ActionMessage
What exactly am I doing wrong here?
When I run the application without any of the jboss.xml descriptors in it, then
go to the JMX-Console and view the tree, it puts the OrderEJB directly under
the Namespace for the application at the top of the tree, but still, I can't
seem to get ahold of it.
I really appreciate any help you could give me with this matter.
Thanks,
Evan Ruff
------------------ ejb-jar.xml -------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar >
Resource Mapping Information for OrderEJB
<display-name>EJB-Jar.xml</display-name>
<enterprise-beans>
EJB returns Order Information>
<display-name>Order EJB</display-name>
<ejb-name>Order</ejb-name>
orderEJB.ejb.interfaces.OrderHome
orderEJB.ejb.interfaces.Order
<ejb-class>orderEJB.ejb.bean.OrderService</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
<ejb-ref>
EJB Reference to Inventory EJB
<ejb-ref-name>ejb/Inventory</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
inventoryEJB.ejb.interfaces.InventoryHome
inventoryEJB.ejb.interfaces.Inventory
<ejb-link>Inventory</ejb-link>
</ejb-ref>
</enterprise-beans>
<assembly-descriptor >
</assembly-descriptor>
</ejb-jar>
----------------------- jboss.xml ------------------------
<enterprise-beans>
<ejb-name>Order</ejb-name>
<jndi-name>java/Order</jndi-name>
<configuration-name>Standard Stateless
SessionBean</configuration-name>
<invoker-bindings>
<invoker-proxy-binding-name>iiop</invoker-proxy-binding-name>
</invoker-bindings>
</enterprise-beans>
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3878432#3878432
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3878432
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user