cancel
Showing results for 
Search instead for 
Did you mean: 

Error deploying Message driven beans

Former Member
0 Kudos

hi everyone,

I am getting the following error while migrating an application from Websphere to SAP Web AS.

I am trying to used XSD(ejb-jar_2_1.xsd) instead of DTD(ejb-jar_2_0.dtd).

The error is --

Cannot parse persistent.xml or storage.xml

Reason: com.sap.engine.services.deploy.exceptions.BaseWrongStructureException: <b>Incorrect element. Expected: entity | session, found: message-driven..</b>

It seems it is not expecting a message-driven tag.

Why is this happening?

Can anyone please help..

thanks in advance,

Abhijit

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

There is no specific document, but if you check out help.sap.com documents you will see WEBAS Java is J2EE 1.3 compliant, this specification includes support only for DTD-s.

Regards, Myriana

Former Member
0 Kudos

Hi,

I checked again and indeed for NW 6.40 and NW04s deployment is supported only with DTD-s, but not XSD-s.

Regards, Myriana

Former Member
0 Kudos

hi Myriana,

Thanks a lot for your inputs.

Is there any official document that you have referred?

I would like to have a look at any such documents since I might want to refer that for any further problems.

anyways thanks for your replies.

regards,

Abhijit

Former Member
0 Kudos

Hi,

The exception you are getting seems very strange, because persistent.xml is relevant only for entity beans.

Can you give some more information on the ejb-s that the application contains.

For tips on migrating ejb applications check out

http://help.sap.com/saphelp_nw2004s/helpdata/en/ff/dd813e77d46245e10000000a114084/content.htm

Greetings, Myriana

Former Member
0 Kudos

hi Myriana,

Thanks for your response..

Yes it is a strange error.

It seems it is not able to recognise the "message-driven" error. Looking at the error it also seems that it is able to find and parse the XSD.

When i tried with DTD it works fine.

Is it so that SAP WebAS that comes with with Netweaver 4 does not support message-driven beans while using XSD?

From this error i think it is so..

Also I got some similar problem while using <local> and <local-home> tags.

regards,

Abhi