cancel
Showing results for 
Search instead for 
Did you mean: 

Time out error on deploying to SAP-J2EE engine.

Former Member
0 Kudos

I got a problem while deploying to SAP-J2EE engine using ant. It takes a lot of time and then throws a time out error.

The problem is with the web.xml file pointing to a DTD in the internet, I have pasted some part of the web.xml below,

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE web-app
  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
  "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

<web-app>
    <display-name>MyPay</display-name>
    <description>MyPay</description>

Once I write down the DTD description in the web.xml itself, it works fine.

I have pasted the error trace below,

j2eedeploy:
     [echo] Deploying to Local environment...
     [echo] C:\Java\Projects/MyPay/dist/MyPay.ear

BUILD FAILED
C:\Java\Projects\MyPay\build.xml:445: java.lang.RuntimeException: ERROR: ID90507:  Error occured during getting EARDescriptor : Failed to load resource from the context classloader of the current thread! Loading from classloader was caused by: java.net.ConnectException: Connection timed out: connect
Exception is : 
java.io.IOException: Failed to load resource from the context classloader of the current thread! Loading from classloader was caused by: java.net.ConnectException: Connection timed out: connect
	at com.sap.engine.lib.xml.parser.URLLoaderBase.resolveEntity(URLLoaderBase.java:148)
	at com.sap.engine.lib.xml.parser.XMLParser.scanDTD(XMLParser.java:1271)
	at com.sap.engine.lib.xml.parser.XMLParser.scanProlog(XMLParser.java:2795)
	at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2830)
	at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:229)
	at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:145)
	at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:160)
	at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:261)
	at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:280)
	at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:342)
	at com.sap.engine.lib.xml.parser.DOMParser.parse(DOMParser.java:101)
	at com.sap.engine.lib.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:127)
	at com.inqmy.lib.xml.StandardDOMParser.parse(StandardDOMParser.java:127)
	at com.inqmy.lib.xml.StandardDOMParser.parse(StandardDOMParser.java:120)
	at com.inqmy.services.servlets_jsp.descriptor.jar.WebWar.getWebDescriptor(WebWar.java:98)
	at com.inqmy.deploy.tool.deployer.ExtendedEarReader.loadDescriptorFromFile(ExtendedEarReader.java:175)
	at com.inqmy.deploy.tool.deployer.ExtendedEarReader.getFullEarDescriptor(ExtendedEarReader.java:104)
	at com.inqmy.deploy.manager.DeployManagerImpl.setEar(DeployManagerImpl.java:355)
	at com.inqmy.deploy.manager.DeployManagerImpl.setEar(DeployManagerImpl.java:325)
	at com.pg.sap.deploy620.SAPDeploy620Manager.process(SAPDeploy620Manager.java:84)
	at com.pg.ant.tasks.j2ee620.J2ee620EngineDeployTask.execute(J2ee620EngineDeployTask.java:40)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
	at org.apache.tools.ant.Task.perform(Task.java:364)
	at org.apache.tools.ant.Target.execute(Target.java:341)
	at org.apache.tools.ant.Target.performTasks(Target.java:369)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
	at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
	at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
	at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

Accepted Solutions (0)

Answers (1)

Answers (1)

venkatakalyan_karanam
Active Contributor
0 Kudos

Hi Ratish,

The Web Application which you are trying to deploy in SAP J2EE engine is for purely for someother webserver's like Tomcat or Application Server's like Weblogic or Webspehere.

The web.xml file DTD is not supported for SAP J2EE engine.So do some modifications to web.xml in order to deploy.

hope that helps, any other issues please keep post updated

regards

Kalyan

Former Member
0 Kudos

Thanks for your reply Kalyan,

The problem seems to be with my system, because I had run the same ant script in another system and it deployed successfully.

The problem does not seem to be with the dtd, whereas it seems that the SAP-J2EE engine is not able to open the link to the dtd giving a time out error.

Is it possible to switch off the validation process of the SAP-J2EE engine of an xml with the dtd?