cancel
Showing results for 
Search instead for 
Did you mean: 

SAP J2EE Migration Plug-In

Former Member
0 Kudos

Hi,

We are using SAP J2EE Migration Plug-In to migrate from WebSphere to SAP NetWeaver Application Server.

According to the pdf file that comes with the Plug-In, the Plug-In will automatically detect the module.

But this is not happening when we tried.

Please let us know how to use this Plug-In.

Any kind of help will be greatly appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

former_member188321
Contributor
0 Kudos

Hi,

Though this pdf says that it determines the modules, but actually it doesnot.

You need to manually create web/EJB modules. The selection of server will help in transformation of various server specific configuration xmls to run on SAP WAS.

Do refer to code changes properly as mentioned in that pdf.

Also, you need to put ejbCreate() empty method in your message/session beans too. As though this pdf does not talk about this, but you have to do it for all kind of EJBs.(Entity/session/message).

Hope this info feeds good.

Regards,

Daman.

Former Member
0 Kudos

Hi Daman,

Thanks a lot for the reply.

I was trying to create the Web Module using the migration kit. I tried the following steps:

1. Clicked "Add Web Module".

2. In the "Module Form" entered the directories.

But when the Module was created, only web.xml file was imported. No Struts related xml file (struts config, validator xmls) was imported.

I do not know if I am missing something.

Let me know if you have faced this problem.

Regards,

Sagar

former_member188321
Contributor
0 Kudos

Hi,

yes, even I faced the same prob. It imports all the files, only that they might not be under proper structure.

But you should be able to see them in the heirarchy.

Hope you too.

Regards,

Daman.

Former Member
0 Kudos

Hi Daman,

I hav question regarding ejb-jar.xml files schema.

We are validating it againest xsd file as,

<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar id="ejb-jar_ID" version="2.1" 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  ejb-jar_2_1.xsd">
  <display-name>myejbApps</display-name>
  <enterprise-beans>
      <session id="DataMgr">
        <ejb-name>DataMgr</ejb-name>
	<home>mypkg.DataMgrHome</home>
        <remote>mypkg.DataMgr</remote>
	<local-home>mypkg.DataMgrLocalHome</local-home>
	<local>mypkg.DataMgrLocal</local>
	<ejb-class>mypkg.DataMgrBean</ejb-class>
	<session-type>Stateless</session-type>
	<transaction-type>Container</transaction-type>
        <ejb-local-ref>...</<ejb-local-ref>
       </session>
    </enterprise-beans>
.......
</ejb-jar>

After creating JAR, when we try to deploy it gives Exception saying incorrect tag<local-home>

My question is which version of EJB is supported by SAP Web AS? and can we validate ejb-jar.xml file againest http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd?

Kindly help.

Regards,

Sagar.

former_member188321
Contributor
0 Kudos

Hi,

1. change as follows xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"

2. It supports ejb 2.0 atleast.

3. Hope you used the plugin to import all the modules+config files.(and not done any manual changes in any configuration files)

Regards,

Daman.

Former Member
0 Kudos

Hi daman,

We used Plug-in to generate only ejb-j2ee-engine.xml files. We wont change the ejb-jar.xml files.While deploying the EJB jars it was giving error regarding <local-home> tag.

But when we remove xsd validation and add <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd"> tag instead. It works.

But we want to support ejb 2.1.

Also Next problem we are facing is regarding Spring class not found. I hav posted that problem.

Former Member
0 Kudos

1. First of all it looks like a typo in your xsd declaration:

xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee  ejb-jar_2_1.xsd"

Of course, you should replace the two blanks by one slash.

2. Does your ejb-jar.xml verify outside the NetWeaver?

3. NetWeaver 6.40 support J2EE 1.3, i.e. EJB 2.0. EJB 2.1 comes with J2EE 1.4 and will be supported by the future NetWeaver 7.x. Maybe this is the problem?

4. The code snippet you show does not need EJB 2.1.

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

I am facing some problems in using the migration kit for porting a j2ee project to NWDS. we are using NWDS 2004s SP10. Is the migration kit utility available in this version? I've copied all the pluggins to the relevant places, but the utility doesn't seem to work. Please suggest a way out.

Thanks in advance,

Anirban