Xerces Parser... Please Help.

Hello,
I have a problem when I use the XERCES Parser.
I want to generate a Option FieldType of a HTMLForm.
My code is:
Element select = sourceDoc.createElement("select");
   select.setAttribute("name", name);
   select.setAttribute("required", required);
   if (Numitems > 0){
    for(int k=0;k<Numitems;k++){
       Element option = sourceDoc.createElement("option");
       option.setAttribute("value", items[k]);
     select.appendChild(option);
}and then generate:
<select name="form/camp1" required="true" value="">
<option value="hola"/>
<option value="adeu"/>
<option value="peich"/>
</select>
But I want that the parser result could be:
<select name="form/camp1" required="true" value="">
<option value="hola" HOLA </option>
<option value="adeu" ADEU </option>
<option value="peich" PEICH </option>
</select>
How can I do it??
Thank you.
PD:Excuse me my English.

As I understand you want to add a text to your node.
option.appendChild(sourceDoc.createTextNode(items[k]));
that should do it

Similar Messages

  • Encoding error using Oracle SAX Parser, please help

    Hi, All,
    I have problem while I am trying to parse an XML file using Oracle SAX Parser.
    The following is from the trace file:
    java.io.UTFDataFormatException: Invalid UTF8 encoding.
    java.io.UTFDataFormatException: Invalid UTF8 encoding.
    at java.lang.Throwable.&lt;init&gt;(Compiled Code)
    at java.lang.Exception.&lt;init&gt;(Compiled Code)
    at java.io.IOException.&lt;init&gt;(Compiled Code)
    at java.io.UTFDataFormatException.&lt;init&gt;(Compiled Code)
    at oracle.xml.parser.v2.XMLUTF8Reader.checkUTF8Byte(Compiled Code)
    at oracle.xml.parser.v2.XMLUTF8Reader.readUTF8Char(Compiled Code)
    at oracle.xml.parser.v2.XMLUTF8Reader.fillBuffer(Compiled Code)
    at oracle.xml.parser.v2.XMLByteReader.saveBuffer(Compiled Code)
    at oracle.xml.parser.v2.XMLReader.fillBuffer(Compiled Code)
    at oracle.xml.parser.v2.XMLReader.tryRead(Compiled Code)
    at oracle.xml.parser.v2.XMLReader.scanXMLDecl(Compiled Code)
    at oracle.xml.parser.v2.XMLReader.pushXMLReader(Compiled Code)
    at oracle.xml.parser.v2.XMLReader.pushXMLReader(Compiled Code)
    at oracle.xml.parser.v2.XMLParser.parse(Compiled Code)
    at data_loader.main(Compiled Code)
    The XML file is a pure ascii text file, with encoding set to UTF-8.
    I can parse the file correctly on NT, but I got problem when I ran the code on a SUN solaris 2.6 machine.
    The parser version is 9.0.2.
    Thanks in advance.
    Peter

    You are right, I modified the codes and got it to work on Oracle
    But when I did your suggestion:
    <cftransaction>
      <cfstoredproc ...>
      <cfquery>
        SELECT ...
      </cfquery>
    </cftransaction>
    I got the same error as before which is:
    Error Executing Database Query.
    [Macromedia][Oracle JDBC Driver]Unhandled sql type
    But this time it points to the CF callling the str proc using cfprocparam
    Here is how I call the str. proc:
         <CFTRANSACTION>   
              <cfstoredproc procedure="MyReport" datasource="#Trim(application.dsn)#" returncode="True">  
                  <cfprocparam type="In" cfsqltype="CF_SQL_VARCHAR" variable="ins_name" value="#Trim(session.instname)#">
                  <cfprocparam type="In" cfsqltype="CF_SQL_VARCHAR" variable="aca_year" value="#Trim(ayr)#"> <------- POINT TO THIS LINE
              </cfstoredproc>
         </CFTRANSACTION>

  • How to use Xerces parser in my code

    Hello all,
    This is my first time in the forumn. I am a beginer to xml. I am trying to use xerces SAX parser to parse the xml document. I have downloaded xerces 2.6.2 in the c drive. Can you please guide me how can I use it in my piece of code and how to execute. I tried using the parser available on my system. This code works fine. But I am confused with how can modify my code to parse using Xerces parser.
    Help appreciated!
    import javax.xml.parsers.SAXParserFactory;//This class creates instances of SAX parser factory
    import javax.xml.parsers.SAXParser;//factory returns the SAXParser
    import javax.xml.parsers.ParserConfigurationException;//if the parser configuration does not match throws exception
    /*2 statements can be substituted by import org.xml.sax.*;
         This has interfaces we use for SAX Parsers.
         Has Interfaces that are used for SAX Parser.
    import org.xml.sax.XMLReader;
    import org.xml.sax.SAXException;
    import java.io.*;
    import java.util.*;
    public class CallSAX_18 {
         public static void main (String []args)
                   throws SAXException,
                   ParserConfigurationException
                   IOException {
         /*     3 statement below can be substitued by this below 1 statement when using other parser
    XMLReader xmlReader = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
              SAXParserFactory factory = SAXParserFactory.newInstance();
              SAXParser saxParser = factory.newSAXParser();
              XMLReader xmlReader = saxParser.getXMLReader();
              /*/MyContentHandler has callback methods that the SAX parser will use.This class implements startElement() endElement() etc methods.
              DBContentHandler dbcontent = new DBContentHandler();
              xmlReader.setContentHandler(dbcontent);
              xmlReader.parse(new File(args[0]).toURL().toString());

    Well, I am not too familiar with SAX, but I know my DOMs 8-)
    is there a reason you are using SAX to parse versus DOM?
    what is your final objective that you want to accomplish? Perhaps
    DOM might be better? Are you trying to parsing XML into nodes?

  • Can't run very simple DOM parsing source on my machine - please help :(

    Hi Guys,
    I am trying to run the following very simple program on my machine to parse a very simple XML file.
    It just returns Document object NULL.
    Same code is working fine on another machine.
    Note: there is no silly mistake. i have valid xml file at valid place.
    Please help.
    import org.apache.xerces.parsers.*;
    import org.w3c.dom.*;
    import org.xml.sax.*;
    import java.io.*;
    class XML
         public static void main(String[] args)
              try{
                   String caseFile = "c:\\case-config\\config.xml";
                   DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                   factory.setValidating(true);
                   DocumentBuilder builder = factory.newDocumentBuilder();
                   Document doc = builder.parse(caseFile);
                   System.out.println("\n\n----" + doc);
              }catch(Exception e)
                   e.printStackTrace();
    }

    You could also work with JDOM, which I find easier to use than regular DOM:
    import org.xml.sax.InputSource;
    import java.io.FileReader;
    import org.jdom.input.SAXBuilder;
    import org.jdom.Document;
    String caseFile = "c:/case-config/config.xml";
    InputSource inputSource = new InputSource(new FileReader(caseFile));
    SAXBuilder builder= new SAXBuilder();
    Document document = builder.build(inputSource);Just an alternate suggestion.

  • Urgent - please help with parsing HTML

    Hi,
    I'm very new to Java - i'm a biology major, actually, but taking this class for fun. Unfortunately, I'm having quite a bit of trouble with it. I've written a class that downloads a web page, converts it to a string, and then sends the string to another class, called BankRecord.
    The web page string looks something like this:
    bodylinks101>Prime Mortgage</a><br><span class=bodytext101>(909) 369-1012</span></td><td bgcolor=#e4e4e4 valign=top align=center><span class=bodytext101>4/18/2003</span><br><span class=bodytext101>10:15</td><td bgcolor=#e4e4e4 valign=top align=center><span class=bodytext101>5.875%</span>
    So, what I am trying to do is parse the HTML so that it returns, as a string, the appropriate information. For example, in the above HTML, I want "Prime Mortgage (909) 369-1012 4/18/2003" etc.
    The above is just one record, with several fields (bank name, phone number, date). The entire web page has quite a few records, for different banks, and I need to extract all of them. I think I've figured out how to find the start and end of the first record, but I don't know how to go about looking for more records. I'm guessing a loop? Also, how do I go about distinguish between the fields in each record (i.e., how to distinguish between phone number and date fields) Here is the code I have so far:
    import java.util.*;
    public class BankRecord
        //  Set up variables
        private String strContent;
        private Integer intPos;
        //  Constructor
        public BankRecord (String strVar)
             strContent = strWebPage;  // set strContent to incoming string
             intPos = 1;  // initialize intPos to 1
        public getNextRecord()
        // uses findBankStart to find next bank record; if found, return true.
        private findBankStart(intPos)
        // accept an integer indicating a place to start looking for beginning of each
        // bank record.  If there are no more records, return a -1; otherwise, return
        // starting position
             // Find beginning of record
             int intRecStart = strContent.indexOf("bodylinks101>",intRecStart);
             // Find end of record
             int intRecEnd = strContent.indexOf("bodylinks101>Apply",intRecEnd);
             // Find beginning of first field in record
             int FldStart = intRecStart + 13;
             // Find end of field in record
             int FldEnd = strContent.indexOf("<",intFldStart);
        public getField(intFldNum)
             // return the field asked for by number as a string.
    }PLEASE help as soon as possible...thank you very much.

    Thuyker,
    Here are 2 approaches:
    If you have a fixed format, parse via delimiters. For example, if each "record" is as follows:
    <span>Name</span><span>Acct No</span><span>balance</span>
    each "field" of the record is delimited by <span>...</span> tags. Thus, you could use regular old string functions such as indexOf() to read through the HTML string, and to pick apart the data you need.
    Alternatively, get a HTML parser, and let it do the work for you. A SAX-like one that I've used successfully is at http://www.quiotix.com/downloads/html-parser/
    --A                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Uloading ebook using iProducer rec'd error: ERROR ITMS-9000: "Unable to parse nav file: toc.ncx" at Book. I don't understand and need help fixing it. Please Help

    Uloading ebook using iProducer rec'd error: ERROR ITMS-9000: "Unable to parse nav file: toc.ncx" at Book. I don't understand and need help fixing it. Please Help if you've the knowledge.
    Many Thanks

    Yep, i just did it again. The entire scroll-bar widget, complete with formatted text, graphics, etc., pasted itself nicely in another book. Two different files, the same widget.
    I use the scroll-bar widgets for most of my texts. (I have audio buttons on the side, and the scripts are within the widget, to the side). My only text is within widgets, and text boxes, naturally. 
    I am following your recommendation: cleaning files, etc. I am remaking the book anew. I need to convince the EPUB bot or whatever that my file looks and works nicely on all my devices. You would expect an error message when previewing the book: 'Hey Amigo, your file is flawed, stop working on it, and get back to the drawing board." Should be able to try again next Monday.

  • XML parsing error where none should be...please help!

    From Oracle 10g, I am calling web service running in ASP.NET 1.1 on IIS 6.0 to print a document and return a simple 'PRINTED' message via soap.
    The SOAP message I'm back from the web service is simply this:
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <PrintBOLResponse xmlns="http://tempuri.org/">
    <PrintBOLResult>PRINTED</PrintBOLResult>
    </PrintBOLResponse>
    </soap:Body>
    </soap:Envelope>
    And the code and XPATH I am using to extract the message is:
    -- Remove the <?xml version="1.0" encoding="utf-8"?> header
    soap_respond := SUBSTR (soap_respond, 39, 10000);
    -- Create an XMLType variable containing the Response XML
    resp := XMLTYPE.createxml (soap_respond);
    -- Attempt to extract the message that should be returned by the web service
    resp := resp.EXTRACT ('/soap:Envelope/soap:Body/*/*/child::node()');
    And it gives me this error:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00601: Invalid token in: '/soap:Envelope/soap:Body/*/*/child::node()
    When I test it out here: http://www.whitebeam.org/library/guide/TechNotes/xpathtestbed.rhtm
    it parses just fine, and I cannot find any useful information on this LPX-00601 error.
    Please help?

    I'm sorry, the full response from the web service is:
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    &#09;<soap:Body>
    &#09;&#09;<PrintBOLResponse xmlns="http://tempuri.org/">
    &#09;&#09;&#09;<PrintBOLResult>PRINTED</PrintBOLResult>
    &#09;&#09;</PrintBOLResponse>
    &#09;</soap:Body>
    </soap:Envelope>

  • Parse into array using JDOM! please help

    hey,
    i've managed to parse an xml document using JDOM
    i[b] need to be able to parse it and store the text (the value of each node) into an array, and then insert into db etc.
    the problem is with the recursive function listChildren which calls itself... can someone tell me where do i insert the block of code such that i can store it into an array of string.
    here's the code:
    public static void parse(String stock) throws SQLException
    SAXBuilder builder = new SAXBuilder();
    Reader r = new StringReader(stock);
    Document doc = builder.build(r);
    Element root = doc.getRootElement();
    listChildren(root, 0);
    public static void listChildren(Element current, int depth) throws Exception
    String nodes = current.getName();
    System.out.println(nodes + " : " + current.getText());
    List children = current.getChildren();
    Iterator iterator = children.iterator();
    while(iterator.hasNext())
    Element child = (Element) iterator.next();
    listChildren(child, depth+1);
    i'm looking for something like:
    a=current.getText();
    but i donno where to include this line of code, please help
    cheers,
    Shivek Sachdev

    hi, I suggest you make an array of byte arrays
    --> Byte[][] and use one row for each number
    you can do 2 things,
    take each cipher of one number and put one by one in each column of the row correspondent to that number. of course it may take too much room if the int[] is too big, but that is the easiest way I think
    the other way is dividing your number into bitsets(class BitSet) with sizes of 8 bits and then you can save each bit into each column of your array. and you still have one number in each row. To put your numbers back use the same class.
    Maybe someone has an easier way, I couldnt think of any.

  • Very Urgent Please Help Me with XML parsing(DOM parser)

    Hi
    Please help me with the following code.
    I have an XML file
    <catalog>
    <book id="101">
    <title>First Ex With ID 101</title>
    <ID>500</ID>
    <author>RAJU</author>
    <price>39.95</price>
    </book>
    <book id="121">
    <ID>501</ID>
    <title>First Ex With ID 121</title>
    <author>RAJU1</author>
    <price>19.95</price>
    </book>
    </catalog>
    By using DOM parser I have to retrive ID values .After getting this ID values i have to pass these values in someother method of someother class.What i suppose to do?Can anyone help me with this regards ,if possible plese write the code..
    Regards
    Raju G

    Well first up all create a parser class where u parse the document using DOm and get the id node and assigen it to a String sat str.
    Now whatever processiong u want to do , u write in a separate class (say Process.java) in one method say doProcess(String str)
    Now from parser class u just call the doProcess() method with passing str as a parameter.
    eg.
    Process p = new Process();
    p.doProcess(str);
    Hope this will help u.
    ....yogesh

  • Please help: question about eclipse & xerces

    hi,
    i have eclipse 3.0 and am trying to get the xerces java package (ver 2.6.2) to work for it. i downloaded xerces from this link: http://www.apache.org/dist/xml/xerces-j/
    there are so many different files in there, i'm not entirely sure if you download everything or just one. anyway, the one i downloaded was the fourth one down, called xerces.j.bin.2.6.2.zip (5.6m in size).
    i've unzipped it, but am unsure how i go about configuring eclipse 3.0 so that i can import and make use of xerces in my java apps. could anyone who has experience with this please help me?
    thanks,
    ramsey

    it's OK guys, took me ages but i got it sorted.

  • Parsing xml from forms6i,can anyone please help me

    Can anyone please help me.I need to parse a xml file from a directory.The parsing should help me in giving a structure for two things.
    1) i should be able to read the nodes( values between the tags) and display the values at my front-end textboxex
    2) whenever the user changes the front-end content it should change the corresponding value in the xml node.
    when it is finished i should be able to save the structure back as a xml file.This file is actually a blob object in the oracle database and is it wise to convert it into a file in dos directory and parse it from there or use oracle utilities from form6i and parse it from oracle utilities.
    Please if someone can find help on this ,it would really help me.

    No the password isn't your apple id password.
    You encrypted your backup with a password, if you don't remember the password, then i'm sorry you won't be able to use it.

  • Error: Serious Error Please Help Somebody/anubody

    Hi,
    The below Text are the error im getting while using the jasper reports in my project. I have included all the libraries in my add library field in my net beans.
    Please help as soon as possible
    Thanking You
    R.Muthu Kumar
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet execution threw an exception
    root cause
    java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap
         net.sf.jasperreports.engine.JRPropertiesMap.<init>(JRPropertiesMap.java:57)
         net.sf.jasperreports.engine.base.JRBaseDataset.<init>(JRBaseDataset.java:71)
         net.sf.jasperreports.engine.design.JRDesignDataset.<init>(JRDesignDataset.java:154)
         net.sf.jasperreports.engine.design.JasperDesign.<init>(JasperDesign.java:100)
         net.sf.jasperreports.engine.xml.JasperDesignFactory.createObject(JasperDesignFactory.java:48)
         org.apache.commons.digester.FactoryCreateRule.begin(FactoryCreateRule.java:389)
         org.apache.commons.digester.Digester.startElement(Digester.java:1286)
         com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
         com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:767)
         com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1357)
         com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDriver.scanRootElementHook(XMLDocumentScannerImpl.java:1289)
         com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3084)
         com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:912)
         com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
         com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
         com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
         com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
         com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
         com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
         com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
         org.apache.commons.digester.Digester.parse(Digester.java:1572)
         net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:239)
         net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:226)
         net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:214)
         reportpackage.printerproductionreport.execute(printerproductionreport.java:69)
         org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.
    Apache Tomcat/6.0.14

    The Jasper documentation probably tells you exactly what you need.
    But anyway it looks like the class might come from the Jakarta Commons collections library. Google for it. It'll be on apache.org someplace.

  • PLEASE HELP! Using Apache SOAP with WL61

    Hi,
    I am trying to run the Apache soap within the WL61.
    I have the Apache soap servlet deployed under WL61.
    I am trying to use org.apache.soap.server.ServiceManagerClient
    to deploy the sample AddressBook service. I get the following error: "Unable to
    resolve namespace URI for 'xsd'".
    Now, the Apache SOAP faq says, I need to use the 1.3.0 xeces.jar
    on both server and client to solve this problem.
    However, WL61 server wont come up with the 1.3.0 xerces.jar file
    I am in a catch 22 situation, please help.
    thanks

    I had exactly this problem and by following the advice below I got it to work using
    crimson.jar from apache.
    Step 1: put crimson.jar frst in classpath
    Step 2: put the following in config.xml
    <XMLRegistry DocumentBuilderFactory="org.apache.crimson.jaxp.DocumentBuilderFactoryImpl"
    Name="Xerces JAXP" SAXParserFactory="org.apache.crimson.jaxp.SAXParserFactoryImpl"
    />
    Step 3: updated Server entry in config.xml to point to "Xerces JAXP" as explained
    below.
    I know this does not add a lot to the idea below but it is an alternative.
    Thanks,
    George
    Manoj Cheenath <[email protected]> wrote:
    >
    This is something i found in apache soap mailing list:
    ------- Original Message --------That fixed it! Thanks, Stefan!
    -----Original Message-----
    From: Stefan Dube [mailto:[email protected]]
    Sent: Wednesday, June 13, 2001 4:15 AM
    To: [email protected]
    Subject: RE: compatibility with weblogic 6.1 beta
    Hi!
    I believe the problem is that SOAP 2.2 uses JAXP and WL uses their
    bundled
    xerces as JAXP parser.
    To override this you have to modify the config.xml like this: (or
    use the web
    console)
    Add following element as child of the <Domain> element:
    <XMLRegistry
    DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"
    Name="Xerces JAXP"
    SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl"
    />
    and modify the <Server> element like this:
    <Server
    InstrumentStackTraceEnabled="true"
    ListenPort="80"
    LogRemoteExceptionsEnabled="true"
    Name="myServer"
    NativeIOEnabled="true"
    XMLRegistry="Xerces JAXP" <-- only this line is important
    >
    Hope that helps,
    -sd
    -----Original Message-----
    From: Erik Onnen [mailto:[email protected]]
    Sent: Wednesday, June 13, 2001 1:33 AM
    To: '[email protected] '
    Subject: RE: compatibility with weblogic 6.1 beta
    The "unable to resolve namespace" problem is because BEA in
    their infinite
    wisdom chose to mesh Xerces into their own libraries.
    Unfortunately they
    used an old version and because it is so embedded, you can't
    just replace a
    JAR. I was able to get 2.1 working on 6.0 sp1 by moving
    Xerces to the front
    of the classpath in the startup script. Ed, when WL won't
    start, what is the
    error you get? I haven't heard of that happening before.
    Steve, when you say
    Xerces is in your classpath, is it at the front, before weblogic.jar?
    -----Original Message-----
    From: Steve Livingston
    To: [email protected]
    Sent: 6/12/01 6:46 PM
    Subject: RE: compatibility with weblogic 6.1 beta
    1) I get the same error (with NT, soap-2.2 and wl-6.1beta) andhave
    found no solution:
    E:\apache\soap-2_2\samples\addressbook>java
    org.apache.soap.server.ServiceManagerClient
    http://slivings:7001/soap/servlet/rpcrouter list
    Deployed Services:
    E:\apache\soap-2_2\samples\addressbook>java
    org.apache.soap.server.ServiceManagerClient
    http://slivings:7001/soap/servlet/rpcrouter deploy dd.xml
    Ouch, the call failed:
    Fault Code = SOAP-ENV:Client
    Fault String = Unable to resolve namespace URI for 'ns2'.
    2) My wl-6.1b will start with xerces in classpath, but same error
    occurs.
    Can anyone help?
    Steve
    -----Original Message-----
    From: Ed Keen [mailto:[email protected]]
    Sent: Monday, June 11, 2001 6:36 PM
    To: '[email protected]'
    Subject: compatibility with weblogic 6.1 beta
    Has anyone gotten Apache soap version 2.2 to work with Weblogic6.1
    beta?
    There seems to be a xerces incompatibility. The weblogic.jarfile
    contains
    the xerces library. If you put xerces.jar first in the classpath,
    weblogic
    won't even start. However, if you put weblogic.jar first in the
    classpath,
    you get this error when attempting to deploy services using the
    ServiceManagerClient: "Unable to resolve namespace URI for 'ns2.'"
    This obviously seems to be a xerces parsing issue. Does
    anyone know of
    a
    workaround for this?
    Thanks,
    EdSanjeev Hegde wrote:
    Hi,
    I am trying to run the Apache soap within the WL61.
    I have the Apache soap servlet deployed under WL61.
    I am trying to use org.apache.soap.server.ServiceManagerClient
    to deploy the sample AddressBook service. I get the following error:"Unable to
    resolve namespace URI for 'xsd'".
    Now, the Apache SOAP faq says, I need to use the 1.3.0 xeces.jar
    on both server and client to solve this problem.
    However, WL61 server wont come up with the 1.3.0 xerces.jar file
    I am in a catch 22 situation, please help.
    thanks

  • Urgently!! Please Help Me

    I use SAP(JCO for AIX 64bit) connect WebSphere (IBM AIX Version 5.0).
    I want to develop webservices with JCO by calling BAPI
    But,System shows error follow below.Please Help me I can't find any solution.
    30 ?.?. 2550 15:39:41 org.apache.axis.utils.JavaUtils isAttachmentSupported
    WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
    AxisFault
    faultCode: Server.generalException
    faultSubcode:
    faultString: java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
    JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [/usr/IBM/WebSphere/AppServer/java/jre/bin/libsapjcorfc.so: load ENOENT on shared library(s) /usr/IBM/WebSphere/AppServer/java/jre/bin/libsapjcorfc.so]. java.library.path [/usr/IBM/WebSphere/AppServer/java/jre/bin:/usr/IBM/WebSphere/AppServer/java/jre/bin/classic:/usr/IBM/WebSphere/AppServer/java/jre/bin:/opt/IBM/itcam/WebSphere/DC_TrueDev01/toolkit/lib/aix-64:/usr/IBM/WebSphere/AppServer/java/jre/bin:/usr/IBM/WebSphere/AppServer/java/jre/bin/classic:/usr/IBM/WebSphere/AppServer/java/jre/bin:/usr/IBM/WebSphere/AppServer/bin:/usr/mqm/java/lib:/usr/opt/wemps/lib:/usr/lib]; nested exception is:
    java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
    JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [/usr/IBM/WebSphere/AppServer/java/jre/bin/libsapjcorfc.so: load ENOENT on shared library(s) /usr/IBM/WebSphere/AppServer/java/jre/bin/libsapjcorfc.so]. java.library.path [/usr/IBM/WebSphere/AppServer/java/jre/bin:/usr/IBM/WebSphere/AppServer/java/jre/bin/classic:/usr/IBM/WebSphere/AppServer/java/jre/bin:/opt/IBM/itcam/WebSphere/DC_TrueDev01/toolkit/lib/aix-64:/usr/IBM/WebSphere/AppServer/java/jre/bin:/usr/IBM/WebSphere/AppServer/java/jre/bin/classic:/usr/IBM/WebSphere/AppServer/java/jre/bin:/usr/IBM/WebSphere/AppServer/bin:/usr/mqm/java/lib:/usr/opt/wemps/lib:/usr/lib]
    faultActor:
    faultNode:
    faultDetail:
    hostname:tagdvtrat1
    java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
    JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [/usr/IBM/WebSphere/AppServer/java/jre/bin/libsapjcorfc.so: load ENOENT on shared library(s) /usr/IBM/WebSphere/AppServer/java/jre/bin/libsapjcorfc.so]. java.library.path [/usr/IBM/WebSphere/AppServer/java/jre/bin:/usr/IBM/WebSphere/AppServer/java/jre/bin/classic:/usr/IBM/WebSphere/AppServer/java/jre/bin:/opt/IBM/itcam/WebSphere/DC_TrueDev01/toolkit/lib/aix-64:/usr/IBM/WebSphere/AppServer/java/jre/bin:/usr/IBM/WebSphere/AppServer/java/jre/bin/classic:/usr/IBM/WebSphere/AppServer/java/jre/bin:/usr/IBM/WebSphere/AppServer/bin:/usr/mqm/java/lib:/usr/opt/wemps/lib:/usr/lib]; nested exception is:
    java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
    JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [/usr/IBM/WebSphere/AppServer/java/jre/bin/libsapjcorfc.so: load ENOENT on shared library(s) /usr/IBM/WebSphere/AppServer/java/jre/bin/libsapjcorfc.so]. java.library.path [/usr/IBM/WebSphere/AppServer/java/jre/bin:/usr/IBM/WebSphere/AppServer/java/jre/bin/classic:/usr/IBM/WebSphere/AppServer/java/jre/bin:/opt/IBM/itcam/WebSphere/DC_TrueDev01/toolkit/lib/aix-64:/usr/IBM/WebSphere/AppServer/java/jre/bin:/usr/IBM/WebSphere/AppServer/java/jre/bin/classic:/usr/IBM/WebSphere/AppServer/java/jre/bin:/usr/IBM/WebSphere/AppServer/bin:/usr/mqm/java/lib:/usr/opt/wemps/lib:/usr/lib]
    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
    at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
    at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(Unknown Source)
    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)>>
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    at org.apache.axis.client.Call.invoke(Call.java:2767)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at com.pda.IssueBAPISoapBindingStub.doIssue201(IssueBAPISoapBindingStub.java:144)
    at com.pda.testWS.main(testWS.java:12)

    the way that how you will do it
    http://www.i-barile.it/SDN/JCoTutorial.pdf
    <a href="http://www.i-barile.it/SDN/JCoTutorial.pdf">JCO Help</a>

  • Statspack Problem(Please Help)

    Hi,
    I got the below error from Statspack report run. It runs after every one hour and the database version is 9.2.0.8. Please help how to resolve it.
    ERROR: Database/Instance does not exist in STATS$DATABASE_INSTANCE
    ERROR: Begin Snapshot Id specified does not exist for this database/instance
    ERROR: End Snapshot Id specified does not exist for this database/instance
    WARNING: timed_statitics setting changed between begin/end snaps: TIMINGS ARE IN
    VALID
    ERROR: Snapshots chosen span an instance shutdown: RESULTS ARE INVALID
    ERROR: Session statistics are for different sessions: RESULTS NOT PRINTED
    begin
    ERROR at line 1:
    ORA-20100: Missing Init.ora parameter db_block_size
    ORA-06512: at "PERFSTAT.STATSPACK", line 727
    ORA-06512: at "PERFSTAT.STATSPACK", line 1126
    ORA-06512: at line 2
    STATSPACK report for
    DB Name DB Id Instance Inst Num Release Cluster Host
    :ela := ;
    ERROR at line 4:
    ORA-06550: line 4, column 17:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> avg
    count current exists max min prior sql stddev sum variance
    execute forall merge time timestamp interval date
    <a string literal with character set specification>
    <a number> <a single-quoted SQL string> pipe
    The symbol "null" was substituted for ";" to continue.
    ORA-06550: line 6, column 16:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> avg
    count current exists max min prior sql stddev su
    Cache Sizes (end)
    ~~~~~~~~~~~~~~~~
    Buffer Cache: M Std Block Size: K
    Shared Pool Size: M Log Buffer: K
    Load Profile
    ~~~~~~~~~~~ Per Second Per Transaction
    Redo size:
    Logical reads:
    Block changes:
    Physical reads:
    Physical writes:
    User calls:
    Parses:
    Hard parses:
    Sorts:
    Logons:
    Executes:
    Transactions:
    % Blocks changed per Read: Recursive Call %:
    Rollback per transaction %: Rows per Sort:
    Instance Efficiency Percentages (Target 100%)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Buffer Nowait %: Redo NoWait %:
    Buffer Hit %: In-memory Sort %:
    Library Hit %: Soft Parse %:
    Execute to Parse %: Latch Hit %:
    Parse CPU to Parse Elapsd %: % Non-Parse CPU:
    SGA Memory Summary for DB: Instance: Snaps: 23410 -23412
    SGA regions Size in Bytes
    sum
    End of Report
    UNDO Usage
    Free space in GB 29.52
    USED space in GB 75.2
    TEMP_TABLESPACE MB_TOTAL MB_USED MB_FREE
    TEMP 208162 6 208156
    WHS_CUBES_TEMP 33000 0 33000
    WHS_VIEWER_TEMP 67688 0 67688
    HP-UX eesci007 B.11.11 U 9000/800 08/18/10
    04:00:44 %usr %sys %wio %idle
    04:00:49 57 29 13 2
    04:00:54 57 24 17 2
    04:00:59 57 29 11 2
    04:01:04 54 31 13 3
    04:01:09 51 33 13 3
    Average 55 29 14 2
    procs memory page faults cpu
    r b w avm free re at pi po fr de sr in sy cs us sy id
    5 6

    user605926 wrote:
    Hi,
    I got the below error from Statspack report run. It runs after every one hour and the database version is 9.2.0.8. Please help how to resolve it.
    ERROR: Database/Instance does not exist in STATS$DATABASE_INSTANCE
    ERROR: Begin Snapshot Id specified does not exist for this database/instance
    ERROR: End Snapshot Id specified does not exist for this database/instance
    WARNING: timed_statitics setting changed between begin/end snaps: TIMINGS ARE IN
    VALID
    ERROR: Snapshots chosen span an instance shutdown: RESULTS ARE INVALID
    ERROR: Session statistics are for different sessions: RESULTS NOT PRINTED
    begin
    ERROR at line 1:
    ORA-20100: Missing Init.ora parameter db_block_size
    ORA-06512: at "PERFSTAT.STATSPACK", line 727
    ORA-06512: at "PERFSTAT.STATSPACK", line 1126
    ORA-06512: at line 2
    You might want to take a look at the docs: http://download.oracle.com/docs/cd/B10500_01/server.920/a96533/statspac.htm#21708
    Note:
    It is not correct to specify begin and end snapshots where the begin snapshot and end snapshot were taken from different instance startups. In other words, the instance must not have been shutdown between the times that the begin and end snapshots were taken.
    At the first part of the report the database id is given. Do a select * from STATS$DATABASE_INSTANCE and verify that the DBID present matches the database/instance you are attempting to run the reprot upon. The report should be ran from the same instance in which the snapshots were taken.

Maybe you are looking for

  • Can 10.1.2 an 10.1.3 relese JDevelopers be on the same computer?

    Hi, I have Developer Suite 10.1.2 (and relevant OC4J with Reports and Forms services, and JDeveloper, namely) on my WinXP Computer and I now plan to install JDeveloper 10.1.3 can I do this wihtout unistall of my present developer suite? Well - the ma

  • Sharepoint 2010 webpart database connectivity.

    Im developing a web part that allows users to create help-desk tickets. I'm developing using Visual studio 2012. Ive created some text boxes and drop down lists. I want to link my drop down lists to a database where the user can choose names from the

  • Cross-section option sometimes missing on 3D PDFs

    I publish 3D PDFs of complex mechanisms for my subscribers. Sometimes Adobe Reader will offer a cross-section option and sometimes not. The 3D PDFx are not made by Acrobat Pro but with an embedded PDF generator inside my mechanical CAD software. I do

  • Cant add an ASA firewall on the Cisco Network Assistant community

    I've tried to add my ASA firewall on the modify button of my current community and after i entered the ip of the ASA it prompted me to accept the certificate and enter my credentials but after all that it returned an error "unsupported device type: U

  • ITunes "previews list" songs missing?

    All of my iTunes "previews list" songs from before July 22, 2013 are missing and I don't know why. Has this happened to anybody else?