Hi,
I trying to deploy an ejb module in Sun java Application server 8.1 and it gives me this error
Deploying application in domain failed; Error while running ejbc -- Fatal Error from EJB Compiler -- Invalid jndi name [] found in application [ExampleEjb]; module [C:\Sun_AppServer\AppServer\domains\domain1\applications\j2ee-modules\ExampleEjb]; ejb [ExampleSLEjb]; aborting deployment. Please populate the jndi element and try again. ; requested operation cannot be completed Error while running ejbc -- Fatal Error from EJB Compiler -- Invalid jndi name [] found in application [ExampleEjb]; module [C:\Sun_AppServer\AppServer\domains\domain1\applications\j2ee-modules\ExampleEjb]; ejb [ExampleSLEjb]; aborting deployment. Please populate the jndi element and try again.
my ejb-jar.xml is looks like :
<enterprise-beans>
<session>
<ejb-name>ExampleSLEjb</ejb-name>
<home>DemoSLHome</home>
<remote>DemoSLRemote</remote>
<ejb-class>DemoSLBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
and sun-ejb-jar.xml shows error in eclips like
- the content of element type "sun-ejb-jar" must match (security-role-mapping*, enterprise beans)".
and it looks like
<sun-ejb-jar>
<display-name>DemoSLEjb</display-name>
<enterprise-beans>
<ejb>
<ejb-name>DemoSLEjb</ejb-name>
<jndi-name>DemoSLEjb</jndi-name>
</ejb>
</enterprise-beans>
</sun-ejb-jar>
thanks in advance
[Message sent by forum member 'peterpandya' (peterpandya)]
http://forums.java.net/jive/thread.jspa?messageID=272355