Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Steps to convert application from ejb 2.0 to ejb 2.1

 
Maheshkkk Kumar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic