cancel
Showing results for 
Search instead for 
Did you mean: 

The DOCTYPE declaration in the ejb-jar.xml deployment descriptor is missing

Former Member
0 Kudos

Hello,

I want to create web service from ejb but everytime I want to do it, I get the following error:

I'm using NWDS 7.2 and JDK 1.6

[004]Deployment aborted

Settings

SDM host : XXX

SDM port : 50118

URL to deploy : file:/C:/DOCUME1/XXXX/LOCALS1/Temp/temp3760382784932063822XXXWSProjectEar.ear

Result

=> deployment aborted : file:/C:/DOCUME1/XXX/LOCALS1/Temp/temp3760382784932063822XXX/WSProjectEar.ear

Aborted: development component 'XXXWSProjectEar'/'sap.com'/'localhost'/'2011.01.06.15.48.31'/'0':

Caught exception during application deployment from SAP J2EE Engine's deploy service:

java.rmi.RemoteException: Cannot deploy application sap.com/XXXWSProjectEar.. Reason: The DOCTYPE declaration in the ejb-jar.xml deployment descriptor is missing. ; nested exception is: com.sap.engine.services.ejb.exceptions.deployment.EJBXMLParserException: The DOCTYPE declaration in the ejb-jar.xml deployment descriptor is missing.

(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)

Deployment exception : The deployment of at least one item aborted

Can anyone tell me why am I getting this error.

Thnx for your help.

Best regards.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member247835
Discoverer
0 Kudos

Hi ImaneA ,

Do you solve your problem ? I have the exact issue in my deploy.

Thanks

Decio Junior

Former Member
0 Kudos

Hello Decio Junior,

Actually yes, I resolved my problem.

I'm developing an EJB 3.0 project. I'm using NWDS 7.2 and JDK 1.6 as I said.

The problem is that my server was using JDK 1.4 and that was the problem.

EJB 1.1 and 2.1 need ejb-jar.xml but EJB 3.0 use the annotations instead.

Check your server JDK Version. It should be JDK 1.5 or higher.

Something else that you should check, in your project properties :

In the Build PATH : Use JDK 1.5

In the Java Compiler : Set the java compiler compliance level to 1.6 and check use default compliance settings

Hope it would help.

If you need more explanations, I'm here

Good luck.