facebook

Deploy application in websphere 5.1

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #246406 Reply

    olutayos
    Member

    I am trying to deploy a small application in websphere 5.1 very similar to the helloworld example provided in tutorials.

    Websphere has been properly configured and I am able to start it up from within myeclipse.

    On deploying the EAR file that was generated I get the following error message in websphere

    [2/9/06 10:51:51:576 EST] 46f03445 SystemErr     R AppDeploymentException: []
    com.ibm.etools.archive.exception.DeploymentDescriptorLoadException: WEB-INF/web.xml
    [2/9/06 10:51:51:576 EST] 46f03445 SystemErr     R com.ibm.etools.archive.exception.DeploymentDescriptorLoadException: WEB-INF/web.xml
    [2/9/06 10:51:51:616 EST] 46f03445 SystemErr     R Stack trace of nested exception:
    [2/9/06 10:51:51:616 EST] 46f03445 SystemErr     R com.ibm.etools.j2ee.exception.WrappedRuntimeException: IWAE0099E An Exception occurred while parsing xml: Line #: 6 :Column #: 52
    [2/9/06 10:51:51:616 EST] 46f03445 SystemErr     R Stack trace of nested exception:
    [2/9/06 10:51:51:616 EST] 46f03445 SystemErr     R org.xml.sax.SAXParseException: Document root element "web-app", must match DOCTYPE root "null".
    [2/9/06 10:51:51:616 EST] 46f03445 SystemErr     R     at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    [2/9/06 10:51:51:616 EST] 46f03445 SystemErr     R     at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    [2/9/06 10:51:51:626 EST] 46f03445 SystemErr     R     at com.ibm.etools.j2ee.xml.bridge.GeneralXmlDocumentReader.parse(GeneralXmlDocumentReader.java:208)
    [2/9/06 10:51:51:626 EST] 46f03445 SystemErr     R     at com.ibm.etools.j2ee.xml.bridge.GeneralXmlDocumentReader.parseDocument(GeneralXmlDocumentReader.java:231)
    [2/9/06 10:51:51:626 EST] 46f03445 SystemErr     R     at com.ibm.etools.j2ee.xml.DeploymentDescriptorImportExport.importFrom(DeploymentDescriptorImportExport.java:186)
    [2/9/06 10:51:51:626 EST] 46f03445 SystemErr     R     at com.ibm.etools.j2ee.xml.DeploymentDescriptorImportExport.importFrom(DeploymentDescriptorImportExport.java:177)
    [2/9/06 10:51:51:626 EST] 46f03445 SystemErr     R     at com.ibm.etools.j2ee.xml.DeploymentDescriptorImportExport.load(DeploymentDescriptorImportExport.java:220)
    [2/9/0

    The actual contents of the web.xml file are :

    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" 
        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 
        http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    
    </web-app>

    What could be the problem ?

    #246445

    Riyad Kalla
    Member

    WebSphere 5.1 only supports J2EE 1.3 spec. You are attempting to deploy a Web 2.4 spec web.xml file (which is part of the J2EE 1.4 spec) to WebSphere 5.1 which won’t work.

    I would suggest creating a new J2EE 1.3 project and moving over your files being sure to change your web.xml file appropriately to match the skeleton one created.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Deploy application in websphere 5.1

You must be logged in to post in the forum log in