cancel
Showing results for 
Search instead for 
Did you mean: 

Deployment error: Application file is not a valid one

Former Member
0 Kudos

Hi All,

I am trying to deploy an ear on SAP Netweaver CE 7.1. My ear consists of a few jars and the jars contained in the application.xml are part of the ear. I have taken care to see that all jars specified in the MANIFEST files of the jars are also part of the ear. But I still get this error during deployment. It says that there is a NullPointerException and the hint says that the application file is not a valid one. Which application file is this error referring to? Any help related to this would be very useful. A similar ear build for Weblogic deploys fine on weblogic app server.

[info #500] [#8]: Deployment Exception during deployment phase 'DeploymentException',cause=An error occurred while deploying the deployment item 'mycompany.com_MyIDM'.; nested exception is:

com.sap.engine.services.dc.gd.DeliveryException: [ERROR CODE DPL.DC.3298] An error occurred during deployment of mycompany.com_MyIDM. Cannot deploy it.

1. Client path 'C:\workspaceNW\AngelSP1A\j2ee\build\netweaver\deploy\qss.ear'

Sdu info :name 'MyIDM', vendor 'mycompany.com', location 'Questra', version '5.2.10038', software type ('J2EE', sub type ''), dependencies :[none]

Deploy status is 'Aborted'

Description:'1. [ERROR CODE DPL.DS.5402] JLinEE reported following erros for mycompany.com/MyIDM application.

ERRORS:

  • EJB Model Builder: Model could not be built due to exception: java.lang.NullPointerException at com.sap.engine.services.ejb3.model.builders.xml.ModuleBuilder.processEJBVersion(ModuleBuilder.java:110). See the trace files for details., file: qss-mdb.jar, column 0, line 0, severity: error * Web Model Builder: Model could not be built due to exception: java.lang.NullPointerException at com.sap.engine.lib.converter.util.XercesUtil.hasSchemaLocation(XercesUtil.java:204). See the trace files for details., file: qss-daemons.war, column 0, line 0, severity: error * EJB Model Builder: Model could not be built due to exception: java.lang.NullPointerException at com.sap.engine.services.ejb3.model.builders.xml.ModuleBuilder.processEJBVersion(ModuleBuilder.java:110). See the trace files for details., file: qss-ejb.jar, column 0, line 0, severity: error

Hint: 1) Given application file is not valid one.'.

Thanks

Seema.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

With assistance from SAP, we found out that the DD's for JavaEE5 use a different namespace than 1.4.

I had success with the following:

Application.xml:

<?xml version="1.0" encoding="UTF-8"?>

<application id="Application_ID" version="5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd">;

u2026

Web.xml:

<?xml version="1.0" encoding="UTF-8"?>

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; id="WebApp_ID" version="2.5">

u2026

Ejb-jar.xml:

<?xml version='1.0' encoding='UTF-8'?>

<ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:ejb="http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"; version="3.0">

We are able to successfully deploy now.

Thanks all.

Vlado
Advisor
Advisor
0 Kudos

Hi,

Seems the ejb-jar.xml in qss-mdb.jar and web.xml in qss-daemons.war are not valid, e.g. they are missing the version attribute or sth. else.

Make sure they conform to the corresponding XSD / DTD.

HTH!

\-- Vladimir

snehal_kendre
Active Contributor
0 Kudos

HI,

The jar files you are talking about are EJB project jar files? if yes and you application.xml file is not working, then check its source, and check the name of jar file for varification.

and if there are some other jar files expect the EJB project jar files then no need to add them in any xml file.