DOMParser problem

I have a servlet that does a stock quote lookup from a service and it worked perfectly. Unfortunately this site was for personal use only. The code looked like this:
DOMParser parser = new DOMParser();
URL url = new URL("http://www.xignite.com/xQuotes.asmx/GetQuotes?Symbol=" + symbol);
URLConnection connection = url.openConnection();
connection.connect();
parser.parse(new InputSource(connection.getInputStream()));
Document document = parser.getDocument();
Node n = document.getLastChild();
NodeList nodeList=document.getElementsByTagName("Quote");
I found another service that is free for personal or commercial use and I'm trying to do the same thing. Unfortunately I'm not getting the results. Seems like it's coming back as null. The code is pretty much the same:
DOMParser parser = new DOMParser();
URL url = new URL("http://www.webservicex.net/stockquote.asmx/GetQuote?symbol=" + symbol);
URLConnection connection = url.openConnection();
connection.connect();
parser.parse(new InputSource(connection.getInputStream()));
Document document = parser.getDocument();
Node n = document.getLastChild();
NodeList nodeList=document.getElementsByTagName("Stock");
The interesting thing I found was the difference when looking at the source of the returned pages when hitting them directly with a browser. The first one is nicely formatted and looks like this:
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfQuote xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.xignite.com/services/">
<Quote>
<Outcome>Success</Outcome>
<Identity>IP</Identity>
<Delay>0</Delay>
<Symbol>MSFT</Symbol>
<Date>6/21/2004</Date>
<Time>4:00 PM</Time>
<Open>0</Open>
<High>0</High>
<Low>0</Low>
<Last>28.35</Last>
<Volume>2500</Volume>
<Change>0</Change>
<PercentChange>0</PercentChange>
<Previous_Close>28.35</Previous_Close>
<Bid>28.35</Bid>
<Bid_Size>200</Bid_Size>
<Ask>28.35</Ask>
<Ask_Size>100</Ask_Size>
<High_52_Weeks>30.00</High_52_Weeks>
<Low_52_Weeks>24.01</Low_52_Weeks>
</Quote>
</ArrayOfQuote>
The second, the one I can't get to work, looks like this, except the <> are actually "& l t ;" and "& g t ;" (no spaces of course....).
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://www.webserviceX.NET/"><StockQuotes><Stock><Symbol>GETQUOTE?SYMBOL=PKG</Symbol><Last>4.84</Last><Date>6/21/2004</Date><Time>2:48pm</Time><Change>-0.01</Change><Open>4.94</Open><High>4.94</High><Low>4.79</Low><Volume>346739</Volume><MktCap>330.8M</MktCap><PreviousClose>4.85</PreviousClose><PercentageChange>-0.21%</PercentageChange><AnnRange>4.46 - 12.00</AnnRange><Earns>0.49</Earns><P-E>9.90</P-E><Name>WESTELL TECH A</Name></Stock></StockQuotes></string>
Could that be causing the problem?
Any suggestions on how to handle it?
Any help is greatly appreciated.
James

Yep, when I look at the source I see the escape
characters. (how did you get them to show up instead
of showing up as <>? I tried code and pre tags.)Simple I just put &amp;lt; and so on.
>
I've wasted a ton of time messing around with, don't
suppose you could give me a hint or a little boost on
how to put it through a filter and substitute the
escapes.
I don't know of any prebuilt solution. I think you'll have to write your own filter.
Perhaps simplest to use ByteArrayInputStream / ByteArrayOutputStream to buffer the data and a simple state based lexical processor.

Similar Messages

  • SAXParseException from parser.parse()

    Hi,
    I am using xml on http sample code with xerces-123 and I get I get
    "SAXParseException: The root element is required in a well-formed document."
    on the parser.parse(...) line. Yes, the XML is well-formed. I also try to
    use a well-formated xml file, but that exception is still there.
    import org.w3c.dom.*;
    import org.apache.xerces.*;
    import org.apache.xerces.dom.*;
    import org.apache.xerces.parsers.*;
    import org.apache.xml.serialize.*;
    import org.xml.sax.*;
    import java.net.*;
    import java.io.*;
    class XmlBridge {
    private String sURI;
    public XmlBridge(String serverURI) {
    sURI = serverURI;
    public Document sendRequest(Document doc) {
    Document docOut = null;
    try {
    URL url = new URL("http://" + sURI);
    HttpURLConnection conn =
    (HttpURLConnection)
    url.openConnection();
    conn.setDoInput(true);
    conn.setDoOutput(true);
    OutputStream out =
    conn.getOutputStream();
    XMLSerializer ser =
    new XMLSerializer(out,
    new OutputFormat("xml",
    "UTF-8", false));
    ser.serialize(doc);
    out.close();
    DOMParser parser = new DOMParser();
    parser.parse(new
    InputSource(conn.getInputStream()));
    docOut = parser.getDocument();
    } catch (Throwable e) {
    e.printStackTrace();
    return docOut;
    public static void main(String[] args) {
    try {  // Build up an XML Document
    Document docIn = new DocumentImpl();
    Element e =
    docIn.createElement("Order");
    e.appendChild(docIn.createElement(
    "Type"));
    e.appendChild(docIn.createElement(
    "Amount"));
    docIn.appendChild(e);
    // Send it to the Servlet
    XmlBridge a =
    new XmlBridge(args[0]);
    Document docOut =
    a.sendRequest(docIn);
    // Debug - write the sent
    //Document to stdout
    XMLSerializer ser =
    new XMLSerializer(System.out,
    null);
    ser.serialize(docOut);
    } catch (Throwable e) {
    e.printStackTrace();
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import org.w3c.dom.*;
    import org.xml.sax.*;
    import org.apache.xerces.*;
    import org.apache.xerces.dom.*;
    import org.apache.xerces.parsers.*;
    import org.apache.xml.serialize.*;
    public abstract class XmlServlet
    extends GenericServlet {
    protected abstract Document
    doRequest(Document req);
    public XmlServlet() {}
    public void service(ServletRequest
    req, ServletResponse res)
    throws ServletException {
    try {
    DOMParser parser =
    new DOMParser();
    //problem here
    parser.parse(new InputSource(
    req.getInputStream()));
    Document docOut =
    doRequest(
    parser.getDocument());
    XMLSerializer ser =
    new XMLSerializer(
    res.getOutputStream(),
    new OutputFormat("xml",
    "UTF-8", false));
    ser.serialize(docOut);
    res.getOutputStream().close();
    } catch (Throwable e) {
    e.printStackTrace();
    I use VCafe to bebug the xmlservlet. For some reason in line
    parser.parse(new InputSource(req.getInputStream())), parse() method is
    frozen and stop running. Is anyone has some solution or experience on this
    problem. Any help will be appreciated.
    DJ

    I fix this problem by upgrade to sp8. But why?
    "Cameron Purdy" <[email protected]> wrote in message
    news:[email protected]...
    1. It will freeze if it can't read from the input stream. Read is a
    blocking call.
    2. It may be in your code since it calls you for each piece. Use
    Ctrl-Break to get a thread dump (kill -3 on Unix).
    Cameron Purdy
    Tangosol, Inc.
    http://www.tangosol.com
    +1.617.623.5782
    WebLogic Consulting Available
    "David Jian" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I am using xml on http sample code with xerces-123 and I get I get
    "SAXParseException: The root element is required in a well-formeddocument."
    on the parser.parse(...) line. Yes, the XML is well-formed. I also try
    to
    use a well-formated xml file, but that exception is still there.
    import org.w3c.dom.*;
    import org.apache.xerces.*;
    import org.apache.xerces.dom.*;
    import org.apache.xerces.parsers.*;
    import org.apache.xml.serialize.*;
    import org.xml.sax.*;
    import java.net.*;
    import java.io.*;
    class XmlBridge {
    private String sURI;
    public XmlBridge(String serverURI) {
    sURI = serverURI;
    public Document sendRequest(Document doc) {
    Document docOut = null;
    try {
    URL url = new URL("http://" + sURI);
    HttpURLConnection conn =
    (HttpURLConnection)
    url.openConnection();
    conn.setDoInput(true);
    conn.setDoOutput(true);
    OutputStream out =
    conn.getOutputStream();
    XMLSerializer ser =
    new XMLSerializer(out,
    new OutputFormat("xml",
    "UTF-8", false));
    ser.serialize(doc);
    out.close();
    DOMParser parser = new DOMParser();
    parser.parse(new
    InputSource(conn.getInputStream()));
    docOut = parser.getDocument();
    } catch (Throwable e) {
    e.printStackTrace();
    return docOut;
    public static void main(String[] args) {
    try {  // Build up an XML Document
    Document docIn = new DocumentImpl();
    Element e =
    docIn.createElement("Order");
    e.appendChild(docIn.createElement(
    "Type"));
    e.appendChild(docIn.createElement(
    "Amount"));
    docIn.appendChild(e);
    // Send it to the Servlet
    XmlBridge a =
    new XmlBridge(args[0]);
    Document docOut =
    a.sendRequest(docIn);
    // Debug - write the sent
    //Document to stdout
    XMLSerializer ser =
    new XMLSerializer(System.out,
    null);
    ser.serialize(docOut);
    } catch (Throwable e) {
    e.printStackTrace();
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import org.w3c.dom.*;
    import org.xml.sax.*;
    import org.apache.xerces.*;
    import org.apache.xerces.dom.*;
    import org.apache.xerces.parsers.*;
    import org.apache.xml.serialize.*;
    public abstract class XmlServlet
    extends GenericServlet {
    protected abstract Document
    doRequest(Document req);
    public XmlServlet() {}
    public void service(ServletRequest
    req, ServletResponse res)
    throws ServletException {
    try {
    DOMParser parser =
    new DOMParser();
    //problem here
    parser.parse(new InputSource(
    req.getInputStream()));
    Document docOut =
    doRequest(
    parser.getDocument());
    XMLSerializer ser =
    new XMLSerializer(
    res.getOutputStream(),
    new OutputFormat("xml",
    "UTF-8", false));
    ser.serialize(docOut);
    res.getOutputStream().close();
    } catch (Throwable e) {
    e.printStackTrace();
    I use VCafe to bebug the xmlservlet. For some reason in line
    parser.parse(new InputSource(req.getInputStream())), parse() method is
    frozen and stop running. Is anyone has some solution or experience onthis
    problem. Any help will be appreciated.
    DJ

  • DOMParser Locale problem

    Hi,
    i got a problem using the setLocale() method of the DOMParserin order to set the language of the Parser in FRENCH :
    I wrote the code below :
    DOMParser dp = new DOMParser();
    Locale loc = new Locale("FRENCH", "FRANCE");
    try {
         dp.setLocale(loc);
    // THIS COMMAND RETURNS fr
         System.out.println(loc.getLanguage());
    } catch (Exception e)
         System.out.println("Exception : " + e.getLocalizedMessage());
    try
    dp.parse(url);
    catch (XMLParseException pe)
    System.out.println(pe.getLocalizedMessage());
    AND THE MESSAGES ARE STILL IN ENGLISH !!!
    WHAT's wrong ??
    Help me please

    I found the response for my problem :
    I/ include in CLASSPATH=$CLASSPTH:$XDK_HOME/lib/xmlmesg.jar
    but the messages are not good : the {1} element is never replaced.
    II/ modify the file "XMLErrorMesg_fr.properties" in order to remove all the ' :
    exemple:
    XSD-2025 become Texte ''{0}'' non valide dans l \u00e9l\u00e9ment : ''{1}''

  • DOMParser and acute vocals problem  (ó)

    Hi there.... Im having a serious problem, I have the information of my application's menu stored in a XML file, and some of this tabs headers and sidenavs are using acute vocals (á é í ó ú).. but when im loading the XML file into the DOMParser those are transformed to special characters. Is there any way to preserve the formated text and the acute vocals ????
    please help.

    look !!!! even in this forum do the same thing !! :S
    please help.

  • DOMParser changing characters problem...

    Hi,
    I want to parse a String into an XMLDocument. Therefor I use this code:
      StringReader sr = new StringReader(rset.getString(1));
      DOMParser parser = new DOMParser();
      parser.parse(sr);
      xml = parser.getDocument();The String that will form the StringReader is:
    [text]
    <qarticle xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.qualogy.com:8888/qcontent/xsd/qarticle.xsd" id="1488" lastUpdated="2005-05-12" lastPublished="" author="">
    <pageReference>33,1</pageReference>
    <pageReference>33,36379</pageReference>
    <category>nieuws</category>
    <category>main</category>
    <category>vacature</category>
    <title>titel</title>
    <content>
    <html>
    <body> één
    twee
    drie
    </body>
    </html>
    </content>
    </qarticle>
    [text]
    After the parsing the "é" are changed to "é".
    I tried changing the characterset with
      Charset charset = Charset.forName("UTF-8");
      CharsetEncoder encoder = charset.newEncoder();
      ByteBuffer bbuf = encoder.encode(CharBuffer.wrap(xmlString));
      Charset cs2 = Charset.forName("windows-1252");
      CharsetDecoder decoder = cs2.newDecoder();
      CharBuffer cbuf = decoder.decode(bbuf);
      System.out.println("Door Charset "+cbuf.toString());
      sr = new StringReader( cbuf.toString())But this has no effect..
    Any ideas?

    Here is one way to do it.
    String name = "james"
    Get the first character:
    char first = name.charAt(0);
    Make the char uppercase:
    char first = Character.toUpperCase(first);
    replace the first character:
    StringBuffer nameBuffer = new StringBuffer(name);
    nameBuffer.replace(0, 1, new String(first));
    name = nameBuffer.toString();

  • Getting null values from nodes using DOMParser

    Hi
    I'm having problems retrieving the values from an XML doc.
    I'm using the DOMParser, but instead of retrieving the values
    from the nodes, I just get null.
    Code fragment :
    DOMParser parser = new DOMParser();
    parser.parse(url);
    XMLDocument doc = parser.getDocument();
    NodeList nl = doc.getElementsByTagName("*");
    Node n;
    iNode = nl.getLength();
    for (int i=0; i<iNode; i++)
    n = nl.item(i);
    String szNodeName = n.getNodeName();
    System.out.print(szNodeName+ " (" );
    System.out.print(n.getNodeValue()+")");
    System.out.println();
    The result is
    course (null)
    Name (null)
    All the node names are correct, but the node values are NOT
    displayed.
    Any idea ?
    Rodrigo
    null

    According to the DOM Level 1 spec, the "value" of an ELEMENT node
    is null and the getNodeValue() method will always return null for
    an ELEMENT type node. You have to get the TEXT children of an
    element and then use the getNodeValue() method in the text nodes.
    Oracle XML Team
    Rodrigo Loureiro (guest) wrote:
    : Hi
    : I'm having problems retrieving the values from an XML doc.
    : I'm using the DOMParser, but instead of retrieving the values
    : from the nodes, I just get null.
    : Code fragment :
    : DOMParser parser = new DOMParser();
    : parser.parse(url);
    : XMLDocument doc = parser.getDocument();
    : NodeList nl = doc.getElementsByTagName("*");
    : Node n;
    : iNode = nl.getLength();
    : for (int i=0; i<iNode; i++)
    : n = nl.item(i);
    : String szNodeName = n.getNodeName();
    : System.out.print(szNodeName+ " (" );
    : System.out.print(n.getNodeValue()+")");
    : System.out.println();
    : The result is
    : course (null)
    : Name (null)
    : All the node names are correct, but the node values are NOT
    : displayed.
    : Any idea ?
    : Rodrigo
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • XML Parser Problem

    am using XML parser for PL/SQL in Oracle9i Enterprise Edition Release 9.0.1.1.1
    When i run the sample xml program, i get error which is as follows. While compiling no errors. But while executing it reports error as given below.
    SQL> execute domsample('c:\xml', 'family.xml', 'errors.txt');
    begin domsample('c:\xml', 'family.xml', 'errors.txt'); end;
    ORA-20100: Error occurred while parsing: No such file or directory
    ORA-06512: at "COMMODITYBACKCONNECT.XMLPARSER", line 22
    ORA-06512: at "COMMODITYBACKCONNECT.XMLPARSER", line 79
    ORA-06512: at "COMMODITYBACKCONNECT.DOMSAMPLE", line 80
    ORA-06512: at line 1
    What need to be done to rectify the above problem.
    when i do the following validation check
    SQL>
    SQL> select substr(dbms_java.longname(object_name),1,30) as class, status
    2 from all_objects
    3 where object_type = 'JAVA CLASS'
    4 and object_name = dbms_java.shortname('oracle/xml/parser/v2/DOMParser')
    5 ;
    CLASS STATUS
    oracle/xml/parser/v2/DOMParser VALID
    oracle/xml/parser/v2/DOMParser VALID
    Please advice to how remove the following error:
    ORA-20100: Error occurred while parsing: No such file or directory

    Found the solution on metalink. There is a file under /$ORACLE_HOME/javavm/install/init_security.sql
    which needs to be run under username where you are installing xml parser.
    This step is not in readme.txt file provided as a part of download from the OTN website.

  • Web Sphere start up problem.

    Hi all,
    I am getting the following stack of exceptions while starting up the webshere server. What might be the reason. Can u help me out?
    Retheesh R
    *** Starting the server ***
    ************ Start Display Current Environment ************
    WebSphere Platform 5.0 [BASE 5.0.0 s0245.03] running with process name localhost\localhost\server1 and process id 3260
    Host Operating System is Windows XP, version 5.1
    Java version = J2RE 1.3.1 IBM Windows 32 build cn131-20021107 (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM
    was.install.root = C:\Program Files\IBM\WebSphere Studio\runtimes\base_v5
    user.install.root = C:\Program Files\IBM\WebSphere Studio\runtimes\base_v5
    Java Home = C:\Program Files\IBM\WebSphere Studio\runtimes\base_v5\java\jre
    ws.ext.dirs = C:\Program Files\IBM\WebSphere Studio\runtimes\base_v5/java/lib;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v5/classes;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v5/classes;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v5/lib;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v5/lib/ext;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v5/web/help;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v5/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime;C:/Program Files/IBM/SQLLIB/java/db2java.zip;C:/Program Files/IBM/WebSphere Studio/wstools/eclipse/plugins/com.ibm.etools.webservice_5.0.1/runtime/worf.jar
    Classpath = C:\Program Files\IBM\WebSphere Studio\runtimes\base_v5/properties;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v5/properties;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v5/lib/bootstrap.jar;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v5/lib/j2ee.jar;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v5/lib/lmproxy.jar;C:/Program Files/IBM/WebSphere Studio/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.0.1/runtime/wteServers.jar;C:/Program Files/IBM/WebSphere Studio/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.0.1/runtime/wasToolsCommon.jar
    Java Library path = C:\Program Files\IBM\WebSphere Studio\runtimes\base_v5/bin;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v5/java/bin;C:\Program Files\IBM\WebSphere Studio\runtimes\base_v5/java/jre/bin;C:\Program Files\IBM\WebSphere Studio\eclipse\jre\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION
    ************* End Display Current Environment *************
    [6/24/05 15:33:33:797 IST] 5cc01505 ManagerAdmin I TRAS0017I: The startup trace state is *=all=disabled.
    [6/24/05 15:33:34:281 IST] 5cc01505 AdminInitiali A ADMN0015I: AdminService initialized
    [6/24/05 15:33:35:109 IST] 5cc01505 Configuration A SECJ0215I: Successfully set JAAS login provider configuration class to com.ibm.ws.security.auth.login.Configuration.
    [6/24/05 15:33:35:141 IST] 5cc01505 SecurityDM I SECJ0231I: The Security component's FFDC Diagnostic Module com.ibm.ws.security.core.SecurityDM registered successfully: true.
    [6/24/05 15:33:35:469 IST] 5cc01505 SecurityCompo I SECJ0309I: Java 2 Security is disabled.
    [6/24/05 15:33:35:500 IST] 5cc01505 SecurityCompo I SECJ0212I: WCCM JAAS configuration information successfully pushed to login provider class.
    [6/24/05 15:33:35:547 IST] 5cc01505 SecurityCompo I SECJ0240I: Security service initialization completed successfully
    [6/24/05 15:33:35:578 IST] 5cc01505 JMSRegistrati A MSGS0602I: WebSphere Embedded Messaging Client only has been installed
    [6/24/05 15:33:37:203 IST] 5cc01505 JMXSoapAdapte A ADMC0013I: SOAP connector available at port 8880
    [6/24/05 15:33:37:219 IST] 5cc01505 SecurityCompo I SECJ0243I: Security service started successfully
    [6/24/05 15:33:37:234 IST] 5cc01505 SecurityCompo I SECJ0210I: Security enabled false
    [6/24/05 15:33:37:453 IST] 5cc01505 SystemErr R Failed to initialise trace to ./mqjms.trc
    [6/24/05 15:33:38:203 IST] 5cc01505 CacheServiceI I DYNA0048I: WebSphere Dynamic Cache initialized successfully.
    [6/24/05 15:33:38:297 IST] 5cc01505 FileBeanStore W CNTR0023W: Directory "C:\Program Files\IBM\WebSphere Studio\runtimes\base_v5/temp" does not exist. The EJB Container will use the current directory for passivating beans.
    [6/24/05 15:33:39:703 IST] 5cc01505 DeployedAppli W WSVR0205E: Module, StrutsAppEJB.jar, of application, StrutsApp, failed to initialize
    [6/24/05 15:33:39:719 IST] 5cc01505 ApplicationMg E WSVR0100W: An error occurred initializing, StrutsApp
    com.ibm.ws.exception.ConfigurationError: Open failure
         at com.ibm.ws.runtime.component.DeployedModuleImpl.initialize(DeployedModuleImpl.java:280)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.initializeModule(DeployedApplicationImpl.java:700)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.initialize(DeployedApplicationImpl.java:402)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.initializeApplication(ApplicationMgrImpl.java:135)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:203)
         at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:343)
         at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)
         at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:117)
         at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:343)
         at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)
         at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:182)
         at com.ibm.ws.runtime.WsServer.start(WsServer.java:135)
         at com.ibm.ws.runtime.WsServer.main(WsServer.java:232)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
         at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:105)
    ---- Begin backtrace for nested exception
    com.ibm.etools.archive.exception.ArchiveWrappedException
    Stack trace of nested exception:
    com.ibm.etools.archive.exception.DeploymentDescriptorLoadException: META-INF/ejb-jar.xml
    Stack trace of nested exception:
    com.ibm.etools.archive.exception.ResourceLoadException: IWAE0007E Could not load resource "META-INF/ejb-jar.xml" in archive "StrutsAppEJB.jar"
    Stack trace of nested exception:
    com.ibm.etools.j2ee.exception.WrappedRuntimeException: IWAE0099E An Exception occurred while parsing xml: Line #: 5 :Column #: 11
    Stack trace of nested exception:
    org.xml.sax.SAXParseException: The content of element type "ejb-jar" is incomplete, it must match "(description?,display-name?,small-icon?,large-icon?,enterprise-beans,relationships?,assembly-descriptor?,ejb-client-jar?)".
         at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:235)
         at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:209)
         at com.ibm.etools.j2ee.xml.bridge.GeneralXmlDocumentReader.parse(GeneralXmlDocumentReader.java:198)
         at com.ibm.etools.j2ee.xml.bridge.GeneralXmlDocumentReader.parseDocument(GeneralXmlDocumentReader.java:221)
         at com.ibm.etools.j2ee.xml.DeploymentDescriptorImportExport.primImportFrom(DeploymentDescriptorImportExport.java:250)
         at com.ibm.etools.j2ee.xml.DeploymentDescriptorImportExport.primImportFrom(DeploymentDescriptorImportExport.java:239)
         at com.ibm.etools.j2ee.xml.EjbJarDeploymentDescriptorImportExport.importFrom(EjbJarDeploymentDescriptorImportExport.java:54)
         at com.ibm.etools.ejb.impl.EJBJarResourceFactory.importXML(EJBJarResourceFactory.java:30)
         at com.ibm.etools.j2ee.common.impl.XMLResourceFactory.load(XMLResourceFactory.java:68)
         at com.ibm.etools.j2ee.common.impl.XMLResourceFactory.load(XMLResourceFactory.java:84)
         at com.ibm.etools.emf.resource.impl.ResourceFactoryImpl.load(ResourceFactoryImpl.java:77)
         at com.ibm.etools.emf.resource.impl.ResourceSetImpl.load(ResourceSetImpl.java:289)
         at com.ibm.etools.archive.impl.LoadStrategyImpl.getMofResource(LoadStrategyImpl.java:222)
         at com.ibm.etools.commonarchive.impl.ArchiveImpl.getMofResource(ArchiveImpl.java:528)
         at com.ibm.etools.commonarchive.impl.ModuleFileImpl.getDeploymentDescriptorResource(ModuleFileImpl.java:65)
         at com.ibm.etools.archive.impl.XmlBasedImportStrategyImpl.primLoadDeploymentDescriptor(XmlBasedImportStrategyImpl.java:35)
         at com.ibm.etools.archive.impl.EjbJar11ImportStrategyImpl.loadDeploymentDescriptor(EjbJar11ImportStrategyImpl.java:73)
         at com.ibm.etools.archive.impl.EjbJar11ImportStrategyImpl.importMetaData(EjbJar11ImportStrategyImpl.java:68)
         at com.ibm.etools.commonarchive.impl.EJBJarFileImpl.getDeploymentDescriptor(EJBJarFileImpl.java:152)
         at com.ibm.etools.commonarchive.impl.EJBJarFileImpl.getStandardDeploymentDescriptor(EJBJarFileImpl.java:212)
         at com.ibm.etools.commonarchive.impl.EARFileImpl.getDeploymentDescriptor(EARFileImpl.java:446)
         at com.ibm.etools.commonarchive.impl.ModuleRefImpl.getDeploymentDescriptor(ModuleRefImpl.java:525)
         at com.ibm.ws.runtime.component.DeployedModuleImpl.open(DeployedModuleImpl.java:113)
         at com.ibm.ws.runtime.component.DeployedModuleImpl.initialize(DeployedModuleImpl.java:277)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.initializeModule(DeployedApplicationImpl.java:700)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.initialize(DeployedApplicationImpl.java:402)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.initializeApplication(ApplicationMgrImpl.java:135)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:203)
         at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:343)
         at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)
         at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:117)
         at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:343)
         at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)
         at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:182)
         at com.ibm.ws.runtime.WsServer.start(WsServer.java:135)
         at com.ibm.ws.runtime.WsServer.main(WsServer.java:232)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
         at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:105)
    [6/24/05 15:33:45:031 IST] 5cc01505 WsServer E WSVR0003E: Server server1 failed to start
    com.ibm.ws.exception.RuntimeError: Open failure
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:211)
         at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:343)
         at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)
         at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:117)
         at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:343)
         at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)
         at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:182)
         at com.ibm.ws.runtime.WsServer.start(WsServer.java:135)
         at com.ibm.ws.runtime.WsServer.main(WsServer.java:232)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
         at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:105)
    ---- Begin backtrace for nested exception
    com.ibm.ws.exception.ConfigurationError: Open failure
         at com.ibm.ws.runtime.component.DeployedModuleImpl.initialize(DeployedModuleImpl.java:280)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.initializeModule(DeployedApplicationImpl.java:700)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.initialize(DeployedApplicationImpl.java:402)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.initializeApplication(ApplicationMgrImpl.java:135)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:203)
         at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:343)
         at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)
         at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:117)
         at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:343)
         at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)
         at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:182)
         at com.ibm.ws.runtime.WsServer.start(WsServer.java:135)
         at com.ibm.ws.runtime.WsServer.main(WsServer.java:232)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
         at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:105)
    ---- Begin backtrace for nested exception
    com.ibm.etools.archive.exception.ArchiveWrappedException
    Stack trace of nested exception:
    com.ibm.etools.archive.exception.DeploymentDescriptorLoadException: META-INF/ejb-jar.xml
    Stack trace of nested exception:
    com.ibm.etools.archive.exception.ResourceLoadException: IWAE0007E Could not load resource "META-INF/ejb-jar.xml" in archive "StrutsAppEJB.jar"
    Stack trace of nested exception:
    com.ibm.etools.j2ee.exception.WrappedRuntimeException: IWAE0099E An Exception occurred while parsing xml: Line #: 5 :Column #: 11
    Stack trace of nested exception:
    org.xml.sax.SAXParseException: The content of element type "ejb-jar" is incomplete, it must match "(description?,display-name?,small-icon?,large-icon?,enterprise-beans,relationships?,assembly-descriptor?,ejb-client-jar?)".
         at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:235)
         at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:209)
         at com.ibm.etools.j2ee.xml.bridge.GeneralXmlDocumentReader.parse(GeneralXmlDocumentReader.java:198)
         at com.ibm.etools.j2ee.xml.bridge.GeneralXmlDocumentReader.parseDocument(GeneralXmlDocumentReader.java:221)
         at com.ibm.etools.j2ee.xml.DeploymentDescriptorImportExport.primImportFrom(DeploymentDescriptorImportExport.java:250)
         at com.ibm.etools.j2ee.xml.DeploymentDescriptorImportExport.primImportFrom(DeploymentDescriptorImportExport.java:239)
         at com.ibm.etools.j2ee.xml.EjbJarDeploymentDescriptorImportExport.importFrom(EjbJarDeploymentDescriptorImportExport.java:54)
         at com.ibm.etools.ejb.impl.EJBJarResourceFactory.importXML(EJBJarResourceFactory.java:30)
         at com.ibm.etools.j2ee.common.impl.XMLResourceFactory.load(XMLResourceFactory.java:68)
         at com.ibm.etools.j2ee.common.impl.XMLResourceFactory.load(XMLResourceFactory.java:84)
         at com.ibm.etools.emf.resource.impl.ResourceFactoryImpl.load(ResourceFactoryImpl.java:77)
         at com.ibm.etools.emf.resource.impl.ResourceSetImpl.load(ResourceSetImpl.java:289)
         at com.ibm.etools.archive.impl.LoadStrategyImpl.getMofResource(LoadStrategyImpl.java:222)
         at com.ibm.etools.commonarchive.impl.ArchiveImpl.getMofResource(ArchiveImpl.java:528)
         at com.ibm.etools.commonarchive.impl.ModuleFileImpl.getDeploymentDescriptorResource(ModuleFileImpl.java:65)
         at com.ibm.etools.archive.impl.XmlBasedImportStrategyImpl.primLoadDeploymentDescriptor(XmlBasedImportStrategyImpl.java:35)
         at com.ibm.etools.archive.impl.EjbJar11ImportStrategyImpl.loadDeploymentDescriptor(EjbJar11ImportStrategyImpl.java:73)
         at com.ibm.etools.archive.impl.EjbJar11ImportStrategyImpl.importMetaData(EjbJar11ImportStrategyImpl.java:68)
         at com.ibm.etools.commonarchive.impl.EJBJarFileImpl.getDeploymentDescriptor(EJBJarFileImpl.java:152)
         at com.ibm.etools.commonarchive.impl.EJBJarFileImpl.getStandardDeploymentDescriptor(EJBJarFileImpl.java:212)
         at com.ibm.etools.commonarchive.impl.EARFileImpl.getDeploymentDescriptor(EARFileImpl.java:446)
         at com.ibm.etools.commonarchive.impl.ModuleRefImpl.getDeploymentDescriptor(ModuleRefImpl.java:525)
         at com.ibm.ws.runtime.component.DeployedModuleImpl.open(DeployedModuleImpl.java:113)
         at com.ibm.ws.runtime.component.DeployedModuleImpl.initialize(DeployedModuleImpl.java:277)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.initializeModule(DeployedApplicationImpl.java:700)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.initialize(DeployedApplicationImpl.java:402)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.initializeApplication(ApplicationMgrImpl.java:135)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:203)
         at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:343)
         at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)
         at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:117)
         at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:343)
         at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)
         at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:182)
         at com.ibm.ws.runtime.WsServer.start(WsServer.java:135)
         at com.ibm.ws.runtime.WsServer.main(WsServer.java:232)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
         at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:105)
    [6/24/05 15:33:45:047 IST] 5cc01505 WsServer E WSVR0009E: Error occurred during startup
    Retheesh R

    While installing a new application, I am facing a problem that getting an exception
    ApplicationMg W WSVR0100W: An error occurred initializing, PROMPT
    com.ibm.ws.exception.ConfigurationWarning: Failed to open C:\Program Files\WebSphere\AppServer\config\cells\CCR-7F0556\applications\PROMPT.ear\deployments\PROMPT
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.initialize(DeployedApplicationImpl.java:390)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.initializeApplication(ApplicationMgrImpl.java:135)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:444)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.tivoli.jmx.modelmbean.MMBInvoker.invoke(MMBInvoker.java:46)
         at com.tivoli.jmx.modelmbean.MMBInvoker.invokeOperation(MMBInvoker.java:115)
         at com.tivoli.jmx.modelmbean.DynamicModelMBeanSupport.invoke(DynamicModelMBeanSupport.java:409)
         at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:323)
         at com.tivoli.jmx.GenericMBeanSupport.invoke(GenericMBeanSupport.java:178)
         at com.tivoli.jmx.MBeanAccess.invoke(MBeanAccess.java:113)
         at com.tivoli.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:290)
         at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:655)
         at com.ibm.ws.console.core.mbean.MBeanHelper.invoke(MBeanHelper.java:137)
         at com.ibm.ws.console.appdeployment.ApplicationDeploymentCollectionAction.perform(ApplicationDeploymentCollectionAction.java:239)
         at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1791)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:258)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:872)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:491)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:173)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199)
         at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
         at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
         at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331)
         at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
         at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
         at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)
    ---- Begin backtrace for nested exception
    com.ibm.etools.archive.exception.DeploymentDescriptorLoadException: META-INF/application.xml
    Stack trace of nested exception:
    com.ibm.etools.archive.exception.ResourceLoadException: IWAE0007E Could not load resource "META-INF/application.xml" in archive "C:\Program Files\WebSphere\AppServer\config\cells\CCR-7F0556\applications\PROMPT.ear\deployments\PROMPT"
    Stack trace of nested exception:
    com.ibm.etools.archive.exception.ArchiveRuntimeException: Invalid binaries path: D:/basf/prompt/PROMPT.ear
         at com.ibm.etools.archive.impl.LoadStrategyImpl.checkLoosePathsValid(LoadStrategyImpl.java:358)
         at com.ibm.etools.archive.impl.LoadStrategyImpl.setLooseArchive(LoadStrategyImpl.java(Inlined Compiled Code))
         at com.ibm.etools.archive.impl.DirectoryArchiveLoadStrategyImpl.getLooseArchive(DirectoryArchiveLoadStrategyImpl.java(Compiled Code))
         at com.ibm.etools.archive.impl.LoadStrategyImpl.primGetResourcesPath(LoadStrategyImpl.java:133)
         at com.ibm.etools.archive.impl.LoadStrategyImpl.initializeContext(LoadStrategyImpl.java:241)
         at com.ibm.etools.archive.impl.LoadStrategyImpl.getContext(LoadStrategyImpl.java(Inlined Compiled Code))
         at com.ibm.etools.archive.impl.LoadStrategyImpl.getResourceSet(LoadStrategyImpl.java(Inlined Compiled Code))
         at com.ibm.etools.archive.impl.LoadStrategyImpl.getMofResource(LoadStrategyImpl.java(Compiled Code))
         at com.ibm.etools.commonarchive.impl.ArchiveImpl.getMofResource(ArchiveImpl.java(Compiled Code))
         at com.ibm.etools.commonarchive.impl.ModuleFileImpl.getDeploymentDescriptorResource(ModuleFileImpl.java:65)
         at com.ibm.etools.archive.impl.XmlBasedImportStrategyImpl.primLoadDeploymentDescriptor(XmlBasedImportStrategyImpl.java:35)
         at com.ibm.etools.archive.impl.Ear12ImportStrategyImpl.loadDeploymentDescriptor(Ear12ImportStrategyImpl.java:74)
         at com.ibm.etools.archive.impl.Ear12ImportStrategyImpl.importMetaData(Ear12ImportStrategyImpl.java:69)
         at com.ibm.etools.commonarchive.impl.EARFileImpl.getDeploymentDescriptor(EARFileImpl.java(Compiled Code))
         at com.ibm.etools.commonarchive.impl.EARFileImpl.initializeModuleExtensions(EARFileImpl.java:789)
         at com.ibm.etools.commonarchive.impl.EARFileImpl.initializeAfterOpen(EARFileImpl.java:780)
         at com.ibm.etools.commonarchive.impl.CommonarchiveFactoryImpl.openSpecificArchive(CommonarchiveFactoryImpl.java:633)
         at com.ibm.etools.commonarchive.impl.CommonarchiveFactoryImpl.openEARFile(CommonarchiveFactoryImpl.java:469)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.open(DeployedApplicationImpl.java:168)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.initialize(DeployedApplicationImpl.java:386)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.initializeApplication(ApplicationMgrImpl.java:135)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:444)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.tivoli.jmx.modelmbean.MMBInvoker.invoke(MMBInvoker.java:46)
         at com.tivoli.jmx.modelmbean.MMBInvoker.invokeOperation(MMBInvoker.java:115)
         at com.tivoli.jmx.modelmbean.DynamicModelMBeanSupport.invoke(DynamicModelMBeanSupport.java:409)
         at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:323)
         at com.tivoli.jmx.GenericMBeanSupport.invoke(GenericMBeanSupport.java:178)
         at com.tivoli.jmx.MBeanAccess.invoke(MBeanAccess.java:113)
         at com.tivoli.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:290)
         at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:655)
         at com.ibm.ws.console.core.mbean.MBeanHelper.invoke(MBeanHelper.java:137)
         at com.ibm.ws.console.appdeployment.ApplicationDeploymentCollectionAction.perform(ApplicationDeploymentCollectionAction.java:239)
         at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1791)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:258)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:872)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:491)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:173)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199)
         at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
         at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
         at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331)
         at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
         at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
         at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)
    Please guide me to resole this problem.
    Regards,
    Jayaprakash

  • Problem in parsing

    Hi i am trying to parse a HTML document, but i am not able to that correctly...
    here is my source cose
    package com.wolfram.nutch.parse;
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    import org.apache.nutch.parse.HTMLMetaTags;
    import org.apache.nutch.parse.HtmlParseFilter;
    import org.apache.nutch.parse.Parse;
    import org.apache.nutch.protocol.Content;
    import java.util.Enumeration;
    import java.util.Properties;
    import org.apache.hadoop.conf.Configuration;
    import org.w3c.dom.DocumentFragment;
    import org.w3c.dom.*;
    import org.xml.*;
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.transform.stream.*;
    import java.io.*;
    import org.apache.xerces.parsers.DOMParser;
    /** Adds basic searchable fields to a document. */
    public class WolframHtmlParseFilter implements HtmlParseFilter {
         public static final Log LOG = LogFactory
                   .getLog(WolframHtmlParseFilter.class);
         private Configuration conf;
         public static final String META_KEYWORDS_NAME = "keywords";
         public static final String META_SUMMARY_NAME = "summary";
        public static final String META_SYNONYMS_NAME = "synonyms";
         public Parse filter(Content content, Parse parse, HTMLMetaTags metaTags,
                   DocumentFragment doc) {
              // Trying to find the document's recommended term
              String keywords = null;
              String summary = null;
            String synonyms = null;
            Document d = doc.getOwnerDocument();
          String htmlfile = content.toString();
          //String htmlfile = "<html><title></title><img /> <img /><img /></html>";
          Reader reader;
          Document actualdoc = null;
          DOMParser parser = new DOMParser();
          try {
    //           Create a factory
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    //           Use document builder factory
              DocumentBuilder builder = factory.newDocumentBuilder();
    //          Parse the document
              reader=new CharArrayReader(htmlfile.toCharArray());
              parser.parse(new org.xml.sax.InputSource(new StringReader(htmlfile)));
              actualdoc = parser.getDocument();
          catch(Exception e) {
              System.err.println(e);
          System.out.println("the string is" + actualdoc);
          NodeList images = actualdoc.getElementsByTagName("img");
          int length = images.getLength();
          System.out.println("the length is" + length);
          for(int i = 0;i<length;i++)
              Node image = images.item(i);
              String nodename = image.getNodeName();
              String alttext = image.getAttributes().getNamedItem("alt").getNodeValue();
              System.out.println(alttext);
              if (!metaTags.getNoIndex()) {
                   Properties generalMetaTags = metaTags.getGeneralTags();
                   for (Enumeration tagNames = generalMetaTags.propertyNames(); tagNames
                             .hasMoreElements();) {
                        Object element = tagNames.nextElement();
                        if (element.equals("keywords")) {
                             keywords = generalMetaTags.getProperty("keywords");
                        if (element.equals("dc.keywords")) {
                             keywords = generalMetaTags.getProperty("dc.keywords");
                        if (element.equals("description")) {
                             summary = generalMetaTags.getProperty("description");
                        if (element.equals("dc.description")) {
                             summary = generalMetaTags.getProperty("dc.description");
                             System.out.println("in dc.Description");
                    if (element.equals("synonyms")){
                        synonyms = generalMetaTags.getProperty("synonyms");
                   if (keywords != null) {
                        parse.getData().getParseMeta()
                                  .set(META_KEYWORDS_NAME, keywords);
                   if (summary != null) {
                        parse.getData().getParseMeta().set(META_SUMMARY_NAME, summary);
                if (synonyms != null){
                    parse.getData().getParseMeta().set(META_SYNONYMS_NAME, synonyms);
              return parse;
         public void setConf(Configuration conf) {
              this.conf = conf;
         public Configuration getConf() {
              return this.conf;
    and the error i am getting is[Fatal Error] :1:1: Content is not allowed in prolog.
    org.xml.sax.SAXParseException: Content is not allowed in prolog.
    the string isnull
    any ideas please....i am stuck on this problem from last 3 days.....
    any help is highly appreciated...thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Obviously, don't use an XML parser for something that isn't XML. Either switch over to using an HTML parser that produces a DOM, or clean up the HTML beforehand so that it's well-formed XHTML.
    Look at JTidy and TagSoup.

  • Problem in converting ASCII value in Dev. and Production

    Hi...
    The ASCII values for # differ in the development and the production system.
    The code below (value 0009 ) populates # in the variable lv_sep.
    DATA: lv_sep TYPE x.
    FIELD-SYMBOLS : <field> TYPE x.
    ASSIGN lv_sep TO <field> CASTING TYPE x.
    <field> = 0009.
    The the development # = 0009 and in production # = 1000.
    Need to know why is this happening.

    How do you get the XML document? Do you use XSU? You can use:
    String str = qry.getXMLString();
    to get the result XML document in String.
    XSU will escape all of the < and >. Or the the XML document in
    one of the column will make the result XML doc not well-formed.
    Not quite understand your problem. You can send me your test
    case.
    i have an application that needs to send an XML document
    over the wire. For this reason, I need to convert the
    doc into a String at the sending side and back to Doc
    at the receiving side. This document is stored in a "CLOB"
    column in a table in the database. I use XDK to retrieve
    this entire row (including the CLOB - hence this is an XML
    document which has a column that itself is an xml document in
    string format - this is just the clob read in by XDK).
    Thus the row looks like
    <ROWSET>
    <ROW>
    <col1> A <col1>
    <CLOB_COL> ..clob value of an xml doc..</CLOB_COL>
    </ROW>
    </ROWSET>
    When I convert this document into String and back, one of the "<"
    tags in the clob column document gets changed to "<" and hence
    the parsing fails! I have used the latest label of the XDK build
    to get the latest parser jar but still i have the same problem.
    I am using the following routines for the conversion.
    /* for converting document to string */
    public static String convertToString(XMLDocument xml) throws
    IOException
    StringWriter sw = new StringWriter();
    PrintWriter pw = new PrintWriter(sw);
    xml.print(pw);
    String result = sw.toString();
    return result;
    /* for converting string to document */
    public static XMLDocument convertToXml(String xmlStr)
    throws
    IOException,SAXException
    ByteArrayInputStream inStream = new
    ByteArrayInputStream(xmlStr.getBytes());
    DOMParser parser = new DOMParser();
    parser.setPreserveWhitespace(false);
    parser.parse(inStream);
    return parser.getDocument();

  • DOMParser.parse(URL) hangs

    Anytime I call DOMParser.parse(URL) where URL is of type "http://", the parse call hangs (as near as I can tell) indefinitely. Are URLs of this type not supported? Is there a work around to this problem?

    No. Within the same class, the following DOES work:
    DOMParser dp = new DOMParser();
    dp.setErrorStream(new PrintWriter(errs));
    // Set Schema Object for Validation
    dp.setXMLSchema((XMLSchema)((new XSDBuilder()).build(schema.location)));
    Note that schema.location is a String like "http://www.wherever.com/file.xsd" which points to the web server that is hanging on DOMParser.parse(URL);

  • How to use DOMParser from an Applet / Or, how to parse XML from an Applet?

    Hey,
    As stating in the subject line, I wonder how to do it without getting an �Access Denied� error.
    I would like to parse a XML file that has external DTD pointing to a SYSTEM location. Yes, I can change it to a public location. However, in either way, I have problems to use DOMBuilder to parse the xml file. The application always throws the security exception.
    I tried to use the DOMParser from org.apache.xerces.parsers to parse the xml file. I set the DOMParser to ignore parsing the external DTD, and use the DOMParser.parse(InputSource) to parse the xml file from a giving URL. However, I get null of the result document.
    Does anyone know how to parse the XML from an Applet? Or, does anyone know how to use the DOMParser from an Applet?
    Thank you very much,

    If the document resides on the local filesystem, you will need to sign a CAB or JAR for the applet to circumvent the sandbox's security restrictions. There are dozens of posts on how to do this. Basically, that will turn the applet into an application, from a Java security perspective.
    - Saish
    "My karma ran over your dogma." - Anon

  • DOM: parsing problem, inputstream

    Hi,
    We are developing a simple server that translates a XML query to a SQL query, sends that SQL query to the database, translates the result to a XML resultset and sends it back to the connecting client.
    We are using DOM to interpret the XML in order to build the XML query, since DOM builds a tree (that we use as a buffer), instead of SAX that has to be interpreted realtime.
    Our problem is as follows: the inputstream of the socket act as the input stream for DOM. No exception occures, but at the point when we call domParser.parse();, the thread hangs. When we close the connection, the local output (at the server) is done; the thread continues.
    We assume that the following causes the problem: the inputstream is used to read the XML from. But when the XML is sent over the stream, the stream is not closed. Somehow the parser still expects something. When the clientconnection is closed, the stream is closed and the thread can continue; the parser know that the input is ended.
    Do you know how to solve this? We cannot just close the connection, because we need to receive the result. Does the parser expects some end indicator? For the inputstream for the parser we use a BufferedReader (otherwise we are getting a NullPointerException).
    Thanks! And cheers,
    Jeroen Oosterlaar

    personaly, for doing a similar stuff, on the server I accumulate the XML lines received over the socket, until I bump into a pre-defined stop line, then I send the accumulated XML data to the parser.
    but it might not be the most elegant solution!

  • DOM Parsing problems... (newbie in trouble)

    I am trying to get a DOM Parser contruct a DOM Object from an XML file... I am having trouble getting the code validate against my XML Schema: <p>
    <?xml version="1.0" encoding="UTF-8"?> <
    <!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by Fedro E. Ponce de Leon Luengas (ASI Consulores, S.A. de C.V.) -->
    <xs:schema targetNamespace="http://palaciohierro.com.mx/mde/expe" xmlns="http://palaciohierro.com.mx/mde/expe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="existencia-peticion" type="epType">
    <xs:annotation>
    <xs:documentation>Peticion de existencias para la Mesa de Eventos Web</xs:documentation>
    </xs:annotation>
    </xs:element>
    <xs:complexType name="epType">
    <xs:annotation>
    <xs:documentation>peticion de existencia</xs:documentation>
    </xs:annotation>
    <xs:sequence>
    <xs:element name="articulo" type="articuloType" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="articuloType">
    <xs:annotation>
    <xs:documentation>articulo</xs:documentation>
    </xs:annotation>
    <xs:attribute name="id_articulo" type="IdentifierType" use="required"/>
    <xs:attribute name="sku" type="skuType" use="required"/>
    </xs:complexType>
    <xs:simpleType name="IdentifierType">
    <xs:annotation>
    <xs:documentation>identificador</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:long">
    <xs:minInclusive value="0"/>
    <xs:maxInclusive value="999999999999999999"/>
    <xs:totalDigits value="22"/>
    <xs:fractionDigits value="0"/>
    </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="skuType">
    <xs:annotation>
    <xs:documentation>sku</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
    <xs:minLength value="11"/>
    <xs:maxLength value="20"/>
    <xs:pattern value="\d{11,20}"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:schema>
    taking this sample XML file:
    <?xml version="1.0" encoding="UTF-8"?>
    <!--Sample XML file generated by XML Spy v4.4 U (http://www.xmlspy.com)-->
    <expe:existencia-peticion xmlns:expe="http://palaciohierro.com.mx/mde/expe" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://palaciohierro.com.mx/mde/expe
    C:\oracle\Oracle9iDS\jdev\mywork\testCompra\MesaEventos\src\ph\mesaeventos\schema\existencia-peticion.xsd">
    <articulo id_articulo="450" sku="12245110021"/>
    <articulo id_articulo="15" sku="45421213223"/>
    <articulo id_articulo="12" sku="121131231858"/>
    <articulo id_articulo="74" sku="4101031234545"/>
    <articulo id_articulo="871" sku="022324563212"/>
    </expe:existencia-peticion>
    with the following code:
    public Document getDOM( String existenciapeticionXML ) throws Exception
    // Obtain parser instance and parse the document
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setValidating( true );
    factory.setNamespaceAware( true );
    DocumentBuilder builder = factory.newDocumentBuilder();
    byte buf[] = existenciapeticionXML.getBytes();
    ByteArrayInputStream stream = new ByteArrayInputStream( buf );
    Document doc = builder.parse( stream );
    return doc;
    I am getting the following Exception:
    oracle.xml.parser.v2.XMLParseException: Element 'expe:existencia-peticion' used but not declared.
    void oracle.xml.parser.v2.XMLError.flushErrors()
    XMLError.java:145
    void oracle.xml.parser.v2.NonValidatingParser.parseDocument()
    NonValidatingParser.java:263
    void oracle.xml.parser.v2.XMLParser.parse(org.xml.sax.InputSource)
    XMLParser.java:141
    org.w3c.dom.Document oracle.xml.jaxp.JXDocumentBuilder.parse(org.xml.sax.InputSource)
    JXDocumentBuilder.java:96
    org.w3c.dom.Document javax.xml.parsers.DocumentBuilder.parse(java.io.InputStream)
    DocumentBuilder.java:119
    org.w3c.dom.Document ph.mesaeventos.mesa.xml.ExistenciaPeticionDOM.getDOM(java.lang.String)
    ExistenciaPeticionDOM.java:26
    void ph.mesaeventos.mesa.xml.Test.main(java.lang.String[])
    Test.java:38
    What am I doing wrong? I am clueless... please help!
    Thanks,

    I finally managed to make it work.... well quite!
    Having an XML Doc like this:
    <?xml version="1.0"?>
    <existencia-peticion xmlns = "http://palaciohierro.com.mx/mde/expe">
    <articulo id_articulo="10" sku="00000000010"></articulo>
    <articulo id_articulo="11" sku="00000000011"></articulo>
    <articulo id_articulo="12" sku="00000000012"></articulo>
    <articulo id_articulo="13" sku="00000000013"></articulo>
    </existencia-peticion>
    with an schema like:
    <?xml version="1.0" encoding="UTF-8"?>
    <schema targetNamespace="http://palaciohierro.com.mx/mde/expe"
    xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:expe="http://palaciohierro.com.mx/mde/expe"
    elementFormDefault="qualified">
    <annotation>
    <documentation xml:lang="es">
    Esquema de peticion de existencias para la Mesa de Eventos Web
    Copyright 2002 palaciodehierro.com.mx. Todos los derechos reservados.
    </documentation>
    </annotation>
    <element name="existencia-peticion" type="expe:epType">
    <unique name="id_articulo">
    <selector xpath="expe:articulo"/>
    <field xpath="@id_articulo"/>
    </unique>
    <unique name="sku">
    <selector xpath="expe:articulo"/>
    <field xpath="@sku"/>
    </unique>
    </element>
    <complexType name="epType">
    <annotation>
    <documentation>peticion de existencias</documentation>
    </annotation>
    <sequence>
    <element name="articulo" type="expe:articuloType" maxOccurs="unbounded"/>
    </sequence>
    </complexType>
    <complexType name="articuloType">
    <annotation>
    <documentation>articulo</documentation>
    </annotation>
    <attribute name="id_articulo" type="expe:IdentifierType" use="required"/>
    <attribute name="sku" type="expe:skuType" use="required"/>
    </complexType>
    <simpleType name="IdentifierType">
    <annotation>
    <documentation>identificador</documentation>
    </annotation>
    <restriction base="long">
    <minInclusive value="0"/>
    <maxInclusive value="999999999999999999"/>
    <totalDigits value="18"/>
    <fractionDigits value="0"/>
    </restriction>
    </simpleType>
    <simpleType name="skuType">
    <annotation>
    <documentation>sku</documentation>
    </annotation>
    <restriction base="string">
    <minLength value="11"/>
    <maxLength value="20"/>
    <pattern value="\d{11,20}"/>
    </restriction>
    </simpleType>
    </schema>
    and with the following class:
    public class XMLValidator
    // Instancia singleton
    private static XMLValidator validator = new XMLValidator();
    * Constructor privado
    private XMLValidator()
    * Mitodo para acceder a la instancia Singleton de XMLValidator
    * @regresa <b>XMLValidator</b> La instancia de esta clase
    public static XMLValidator getValidator()
    return validator;
    public boolean validaEsquema( String docXML, String esquema ) throws Exception
    // Establece el URL correcto para el documento de esquema
    XSDBuilder builder = new XSDBuilder();
    URL url = createURL( esquema );
    // Construye el objecto del Schema XML
    try
    XMLSchema schemadoc = (XMLSchema)builder.build( url );
    // Valida el documento XML procesandolo contra el esquema
    return validate( docXML, schemadoc );
    catch( XMLParseException e )
    throw new Exception( "Error al analizar el documento XML: " + e.getMessage() );
    catch( Exception e )
    throw new Exception( "No es posible validar con el esquema: " + e.getMessage() );
    private static boolean validate(String docXML, XMLSchema schemadoc) throws Exception
    boolean isValid = false;
    // Crea un objeto Parser DOM de XML
    DOMParser dp = new DOMParser();
    // Establece el objeto Schema XML para la validacion
    dp.setXMLSchema( schemadoc );
    dp.setValidationMode( XMLParser.SCHEMA_VALIDATION );
    dp.setPreserveWhitespace( true );
    // Establece la salida de errores
    dp.setErrorStream( System.out );
    // Recupera los datos del documento XML en un objeto InputStream
    byte[] docbytes = docXML.getBytes();
    ByteArrayInputStream in = new ByteArrayInputStream( docbytes );
    // Parsea el documento y validalo contra el esquema
    try
    dp.parse( in );
    isValid = true;
    catch( Exception e )
    // Devuelve el documento XML DOM construido durante el parseo
    return isValid;
    I am able to validate when invoking with the XML and schemas in the parameters...
    Problem is that I have to include the attribute xmlns = "http://palaciohierro.com.mx/mde/expe" in my XML doc.
    What I really need is to be able to validate de XML doc against a stablished schema, when the XML doc does not include the
    xmlns attribute.

  • XML problem with getPayload

    Hi,
    I have come across an obscure but annoying xml bug in the bpel (collaxa?) implementation. I need to use xs:extension elements in the schema for the payload contents, which then of course requires a declaration of the xsi namespace. The payload is saved fine, and when I view the contents in the bpelconsole, it is there (as shown below). However, when I get the task and call getPayload, the xsi declaration is missing from the element, which then crashes JAXB.
    This is what is shown in the BPELConsole audit:
    <payload>
      <process-request xmlns="urn:ch.bedag.pef.iflow.process" user="ea91" process-name="Wohnadresse">
        <person xmlns="urn:ch.bedag.pef.iflow.core">
          <angestellter>
            <anstellung/>
            <wohnadresse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns1:AdresseSchweiz">
              <adresszusatz>c/o Bedag Informatik</adresszusatz>
              <strasse>Gutenbergstrasse 1</strasse>
              <ort>Bern</ort>
              <plz>
                <plz>3000</plz>
              </plz>
            </wohnadresse>
          </angestellter>
          <name>Prince</name>
          <personalnummer>
            <personalnummer>111111</personalnummer>
          </personalnummer>
          <vorname>John</vorname>
        </person>
      </process-request>
    </payload>And this is what I get when I call getPayload:
    <process-request xmlns="urn:ch.bedag.pef.iflow.process" user="ea91" process-name="Wohnadresse">
      <person xmlns="urn:ch.bedag.pef.iflow.core">
        <angestellter>
          <anstellung/>
          <wohnadresse type="ns1:AdresseSchweiz">
            <adresszusatz>c/o Bedag Informatik</adresszusatz>
            <strasse>Gutenbergstrasse 1</strasse>
            <ort>Bern</ort>
            <plz>
              <plz>3000</plz>
            </plz>
          </wohnadresse>
        </angestellter>
        <name>Prince</name>
        <personalnummer>
          <personalnummer>111111</personalnummer>
        </personalnummer>
        <vorname>John</vorname>
      </person>
    </process-request>The only difference is in the wohnadresse element, which has the correct xsi:type attribute, but the xsi: namespace declaration is missing.
    Any chance of fixing this? Otherwise I will have to convert the payload to a string, fix the problem, back to xml and then pass it off to jaxb. Very irritating...
    I don't know if it will help, but I did see the same problem when I tried converting a string to xml using a DOMResult and a Transformer. I switched to DOMParser and and InputSource and the problem went away.
    Thanks
    John

    Hi
    After a lot of experimenting, it looks like there are two problems:
    1. If I call IDeliveryService.post with a NormalizedMessage constructed with a String, bpel is not completely reliable with the namespaces (it converts them all to default namespaces defined on particular elements, but it missed the namespace within the xsi:type declaration). I fixed this by using DOMUtil to convert the string to a CubeDOMElement, which is then correctly converted to the input variable.
    2. The CubeDOMElement also makes mistakes if you use Element.getElementsByTagNameNS(ns, name). Even when all the information was there, the method removed one of the namespace declarations (actually a duplicate, but necessary because the prefix was used in the document).
    I got round this by calling the CubeDOMElement method getContentAsXml, which bizarrely returns the full xml of the child nodes, with all namespaces correctly defined and used, and then converting the xml string into a normal org.w3c.Element.
    It looks like a few more test cases are needed for the collaxa xml implementation...
    Best wishes
    John

Maybe you are looking for

  • Windows Installer Error when I attempt to install BlackBerry Desktop Software XP Pro

    When I attempt to install Desktop Manager I get the following error... Windows ® Installer. V 3.01.4000.1823 msiexec /Option <Required Parameter> [Optional Parameter] Install Options </package | /i> <Product.msi> Installs or configures a product /a <

  • PE51 - Displaying LTA Balance Pending in Pay Slip

    Hello ,   I have created a new Pay Slip Using transaction PE51. In that Pay slip I have to Display LTA Balance pending with that employee for this year which he/ she can claim. I tried to find Wage type for it , but I was unable to.I hope their is no

  • BUG: Deadlock in JDeveloper Studio Edition 11.1.1.5.0

    I encountered the deadlock when saving a Java source file (the one named in the error message below). I had just removed a method from the class and hit Ctrl + S to save the file. I'm afraid the behaviour is not readily reproducilble, as it seems to

  • Could Sweat Mess Up The Controls on My Buds?

    I use my Touch when I work out. I always rest the Touch on a shelf on the treadmill so it doesn't get sweaty or jarred. This morning I had troubles -- music skipping, the display showing stuff about Voice Control, etc. I turned it off and completed m

  • Restore from Time Machine backup is failing

    The internal drive on my daughter's iMac has failed for the second time in less than two years. I'm not able to restore from the Time Machine backup. The Time Machine restore process failed last time as well. Not surprisingly I'm now questioning whet