File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Steps to convert application from ejb 2.0 to ejb 2.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Steps to convert application from ejb 2.0 to ejb 2.1" Watch "Steps to convert application from ejb 2.0 to ejb 2.1" New topic
Author

Steps to convert application from ejb 2.0 to ejb 2.1

Maheshkkk Kumar
Greenhorn

Joined: Jul 04, 2011
Posts: 1
Am trying to convert my ejb application from ejb 2.0 to ejb 2.1, I used 2 steps,

Step1: replaced the jar file from ejb2.0.jar to ejb2.1.jar.

Step2: I converted my existing ejb-jar.xml doctype code.

<!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 >

<description><![CDATA[No Description.]]></description>
<display-name>Generated by XDoclet</display-name>


with this below code

<ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"
version="2.1">

<description>ejb-jar.xml for ejb 2.1 Local tutorial</description>
<display-name>ejb-jar.xml</display-name>


But after completing this, when i try to start the server its giving the following error for all ejb's

Warning: The Enterprise JavaBeans (EJB) binding with the com.jamcracker.api.APIController Java Naming and Directory Interface (JNDI) name does not contain an enterprise bean stanza
Error: The com.jamcracker.provision.facade.ServiceProvisionFacadeHome interface of the ServiceProvisionFacade bean in the ejb/pivotpathEJB.jar module of the jsdn application cannot be bound to the <null> name location. The com.jamcracker.catalog.facade.notification.CatalogNotificationFacadeHome interface of the CatalogNotificationFacade bean in the ejb/pivotpathEJB.jar module of the jsdn application has already been bound to the <null> name location.
[/color]

Please suggest me how to overcome from this and to convert my application from ejb 2.0 to ejb 2.1 successfully.

Thanks,
Mahesh Kumar.P
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Steps to convert application from ejb 2.0 to ejb 2.1
 
Similar Threads
Problem lookingup entity EJB on Orion 2.0
JNDI Name not found error in SUN ONE SERVER
Converting EJB2.0 to 2.1 Specification.
Hello Bean deployment in JBOSS4.0
Help executing an EJB persistence application