How can I use a 3rd party XML parser such as xerces with OC4J ?

Hi all tech experts,
I am using Oracle Application Server 10g Release 2 (10.1.2) and i have
installed Portal and Wireless and OracleAS Infrastructure on the same
computer.
i tried all the solutions on this thread
Use of Xerces Parser in out application with Oracle App Server 9.0.4
but still fighting.
I have also posted this query on OTN on following thread
How can I use a 3rd party XML parser such as xerces with OC4J?
but no reply....
Please help me on this issue.
Since OC4J is preconfigured to use the Oracle XML parser which is xmlparserv2.jar.
i have read the following article which states that
OC4J is preconfigured to use the Oracle XML parser. The Oracle XML parser is fully JAXP 1.1 compatible and will serve the needs of applications which require JAXP functionality. This approach does not require the download, installation, and configuration of additional XML parsers.
The Oracle XML parser (xmlparserv2.jar) is configured to load as a system level library of OC4J through it's inclusion as an entry in the Class-Path entry of the oc4j.jar Manifest.mf file. This results in the Oracle XML parser being used for all common deployment and packaging situations. You are not permitted to modify the Manifest.mf file of oc4j.jar.
It must be noted that configuring OC4J to run with any additional XML parser or JDBC library is not a supported configuration. We do know customers who have managed to successfully replace the system level XML parser and the Oracle JDBC drivers that ship with the product, but we do not support this type of configuration due to the possibility of unexpected system behavior and system errors that might occur from replacing the tested and certified libraries.
If you absolutely must use an additional XML parser such as xerces, then you have to start OC4J such that the xerces.jar file is loaded at a level above the OC4J system classpath. This can be accomplished using the -Xbootclasspath flag of the JRE.
i have also run the following command
java -Xbootclasspath/a:d:\xerces\xerces.jar -jar oc4j.jar
but no success.
How could i utilize my jar's like xerces.jar and xalan.jar for parsing instead of OC4J in-built parser ?
All reply will be highly appreciated.
Thnx in advance to all.
Neeraj Sidhaye
try_catch_finally @ Y !

Hi Neeraj Sidhaye,
I am trying to deploy a sample xform application to the Oracle Application Server (10.1.3). However, I encountered the class loader issue that is similar to your stuation. I tried all the three solutions but the application is still use the Oracle xml paser class. I am wondering if you have any insight about this?
Thanks for your help.
Xingsheng Qian
iPass Inc.
Here is the error message I got.
Message:
java.lang.ClassCastException: oracle.xml.parser.v2.XMLElement
Stack Trace:
org.chiba.xml.xforms.exception.XFormsException: java.lang.ClassCastException: oracle.xml.parser.v2.XMLElement
     at org.chiba.xml.xforms.Container.dispatch(Unknown Source)
     at org.chiba.xml.xforms.Container.dispatch(Unknown Source)
     at org.chiba.xml.xforms.Container.initModels(Unknown Source)
     at org.chiba.xml.xforms.Container.init(Unknown Source)
     at org.chiba.xml.xforms.ChibaBean.init(Unknown Source)
     at org.chiba.adapter.servlet.ServletAdapter.init(ServletAdapter.java:153)
     at org.chiba.adapter.servlet.ChibaServlet.doGet(ChibaServlet.java:303)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)
     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
     at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
     at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)
     at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)
     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
     at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassCastException: oracle.xml.parser.v2.XMLElement
     at org.chiba.xml.xforms.Instance.iterateModelItems(Unknown Source)
     at org.chiba.xml.xforms.Bind.initializeModelItems(Unknown Source)
     at org.chiba.xml.xforms.Bind.init(Unknown Source)
     at org.chiba.xml.xforms.Initializer.initializeBindElements(Unknown Source)
     at org.chiba.xml.xforms.Model.modelConstruct(Unknown Source)
     at org.chiba.xml.xforms.Model.performDefault(Unknown Source)
     at org.chiba.xml.xforms.XFormsDocument.performDefault(Unknown Source)
     at org.chiba.xml.xforms.XFormsDocument.dispatchEvent(Unknown Source)
     at org.apache.xerces.dom.NodeImpl.dispatchEvent(Unknown Source)
     ... 18 more

Similar Messages

  • Can I use a C/C++ xml parser in my java program?

    Hi,
    How can I use a C/C++ xml parser in my java program?
    Elvis.

    You would still need to convert the XML data structure into a Java data structure to import it into Java.
    Don't assume you need C++ to do anything. I woudl write it in Java first, then profile the application to see where the bottle necks are and then optimise them
    Don't optimise code unless you have proof it needs to be optimised.
    If you want to improve the speed of reading XML, try XMLbooster

  • Can i use a 3rd party superdrive with my Macbook Air?

    Hi,
    As my title says, Can i use a 3rd party superdrive with my Macbook Air rather than the Apple drive?
    Thanks.

    Mark Thornton wrote:
    Hi,
    As my title says, Can i use a 3rd party superdrive with my Macbook Air rather than the Apple drive?
    Thanks.
    This one works just awesome:
    http://www.newegg.com/Product/Product.aspx?Item=N82E16827136201&cmre=external_dvd_burner_usb-_-27-136-201--Product

  • How can I use a firewire hard drive on a new Macbook with one USB-C only?

    How can I use a firewire hard drive on a new MacBook with only one USB-C?

    kaz-k is correct about FireWire not being supported by any possible connector or adaptor to USB-C and never will.  However, there is no such thing as a FireWire Hard Drive.  There are only SATA (or if it is a really old one, ATA,) drives in a FireWire enclosure.  If you can remove the drive from the case/enclosure - bust it open somehow if it is a glued-up unit - then the drive can be placed into a regular USB3 enclosure. Then it can connect to the new MacBook via any one of the adaptors Apple sells.

  • How can I use JTA in my business logic and execute process with PAPI?

    HI All,
    How can I use JTA in my business logic and execute process with PAPI?
    When my business logic has exception, the process will rollback.
    or the process has some exceptions, my business logic also will rollback.
    I don't know how to do it.
    Does anyone know how to do it?

    Thank you for your reply, Daniel.
    But I think I did not express my mind clearly.
    There is a scene that I have 2 Application Server.
    My business code is deployed in one Server.
    The BPM is deployed in another Server.
    I want to execute Task use PAPI.(ProcessServiceSession.runActivity)
    In my business code, I will do something before execute Task.
    I need my business logic and Task in same transaction.
    To ensure them "all-or-nothing" .
    As you say, if The transactions are managed by Oracle BPM.
    then can I retrieve OBPM transcaction in my business code?

  • How can i use Nikon D 7100 and Panasonic Lumix DMC-LF1 with Photoshop CS 5 Camera Raw?

    How can i use Nikon D 7100 and Panasonic Lumix DMC-LF1 with Photoshop CS 5 Camera Raw?

    The one needs 7.4 (or better), the other 8.1, so Photoshop CS5 with ACR6 is not up to the task.
    The free DNG Converter could be used to convert the RAW images to DNG which your version of ACR should be able to process.

  • How can i add a 3rd monitor to my brand new macbook with thunderbolt?

    I have just bought a new 13" macbook pro and already have one screen attached.  How can I add a 3rd.  I'm told it is capable of running several at once???

    You can add a third display using a USB video adapter such as this:
    http://eshop.macsales.com/item/NewerTech/VIDU2DVIA/
    Note that video performance on a USB-connected monitor is limited by the slowness of the USB connection. Such a monitor won't be suitable for gaming or fast-action video, but will be fine for business applications, basic photo editing, etc.

  • How Can i Use two Different Public IP Addresses no my DMZ with ASA Firewall.

    How To Using Two Different Public IP Address on My DMZ with ASA 5520
    Postado por jorge decimo decimo em 28/Jan/2013 5:51:28
    Hi everyone out there.
    can any one please help me regarding this situation that im looking for a solution
    My old range of public ip address are finished, i mean (the 41.x.x.0 range)
    So now i still need to have in my DMZ another two servers that will bring some new services.
    Remember that those two server, will need to be accessable both from inside and from outside users (Internet users) as well.
    So as i said, my old range of public ip address is finished and we asked the ISP to gives some additional public
    ip address to address the need of the two new servers on DMZ. and the ISP gave us the range of 197.216.1.24/29
    So my quation is, on reall time world (on the equipment) how can i Use two different public ip address on the same DMZ
    on Cisco ASA 5520 v8??
    How my configuration should look like?
    I was told about implementing static nat with Sub Interfaces on both Router and ASA interface
    Can someone please do give me a help with a practical config sample please. i can as well be reached at [email protected]
    attached is my network diagram for a better understanding
    I thank every body in advance
    Jorge

    Hi,
    So looking at your picture you have the original public IP address range configured on the OUTSIDE and its used for NAT for different servers behind the ASA firewall.
    Now you have gotten a new public IP address range from the ISP and want to get it into use.
    How do you want to use this IP address range? You want to configure the public IP addresses directly on the servers or NAT them at the ASA and have private IP addresses on the actual servers (like it seems to be for the current server)?
    To get the routing working naturally the only thing needed between your Router and Firewall would be to have a static route for the new public network range pointing towards your ASA OUTSIDE IP address. The routing between your Router and the ISP core could either be handled with Static Routing or Dynamic Routing.
    So you dont really need to change the interface configuration between the Router and ASA at all. You just need a Static route pointing the new public IP address towards the ASA outside IP address.
    Now when the routing is handled between the ISP - ISP/Your Router - Your Firewall, you can then consider how to use those IP addresses.
    Do you want to use the public IP addresses DIRECTLY on the HOSTS behind the firewall?This would require you to either configure a new physical interface with the new public IP address range OR create a new subinterface with the new public IP addresses range AND then configure the LAN devices correspondingly to the chosen method on the firewall
    Do you want to use the public IP addresses DIRECLTY on the ASA OUTSIDE as NAT IP addresses?This would require for you to only start configuring Static NAT for the new servers between the inside/dmz and outside interface of the ASA. The format would be no different from the previous NAT configuration other than for the different IP addresses ofcourse
    Of the above ways
    The first way is good because the actual hosts will have the public IP addresses. Therefore you wont run into problems with DNS when the LAN users are trying to access the server.
    The second way is the one requiring the least amount of configurations/changes on the ASA. In this case though you might run into problem with DNS (to which I refer above) as the server actually has a private IP address but the public DNS might reply to the LAN hosts with a public IP address and therefore connections from LAN could fail. This is because LAN users cant connect to the servers OUTSIDE NAT IP address (unless you NAT the server to public IP address towards LAN also)
    Hopefully the above was helpfull. Naturally ask more specific questions and I'll answer them. Hopefully I didnt miss something. But please ask more
    I'm currently at Cisco Live! 2013 London so in the "worst case" I might be able to answer on the weekend at earliest.
    - Jouni

  • How can i control a 3rd party stepper motor driver

    I want to control a 3rd party stepper motor hardware driver througt labview.The company has given me a C program.Can somebody help.I'm new to labview.
    Thanks in advance
    Rajan

    Hi Rajan,
    The LabVIEW may be able to control the motor depends on the bus used for communication and what the C program does.
    For example, if you connect to the motor using a simple bus, such as RS-232 (serial), then you could use LabVIEW to send the commands to the instrument. For this you need the motor's command set, which should be in the motor's documentation. You can also look into the C example program you were giving and determine if commands are being sent directly using the serial port.
    Another way the manufacturer might provide conectivity is using a driver. In this case, the manufacturer provides you with a library of functions that reflect the functionality of the device. You don't need to worry about the specifics of the communication bu
    s. You just call the functions from this library. In this case, you can use LabVIEW's Library Function Call Node, which allows you to call C functions in dlls.
    If you can include more information on how the motor is connected to the instrument and what the C code does, I could probably provide more details.
    DiegoF
    National Instruments.

  • How can i use an airport base station and multiple airport expresses with U-verse and still use wireless tv boxes?

    I just got uverse, and when I put my Airport Base Station in Bridge mode I lose access to the 4 airport express stations I have. Can anyone tell me how to turn off the u-verse wireless, set up a network with all the apple stations and still have wireless u-verse tv boxes work? Thanks!

    Can I relocate the airport base station to downstairs and connect it to the Sawtooth there for receiving wireless from the Verizon router and broadcast further to its wireless network?
    Sorry but no the AirPort Extreme base station (AEBS) will not wirelessly connect to the network provided by the Verizon FiOS router.
    What you could do is get another AEBS, an AX, or a Time Capsule and place that downstairs. Then use that device to wirelessly connect to the wireless network provided by your current AEBS. If your current AEBS is not 802.11n capable then you would need to use WDS to make this happen. One bad thing about WDS is that each WDS link cuts your affective wireless bandwidth in half.

  • How can I use applescript for OCR of a bunch of files - with Acrobat XI?

    Hi there,
    Iwant to write a script (eg applescript) that can be used as a droplet or has a menu to open a folder of scanned pdf-files to conduct OCR. And - I want to use Acrobat XI (as this is my version), German verison.
    As Acrobat XI is not recordable with the applescript-editor and I do not find a manual of objects and methods I googled a script that worked with Acrobat 9 but not with Acrobat XI. Here you define a "Action Assistant"-Script e.g. called "OCR this" and "click" the item. But as in Acrobat XI this Item is noch in the main-sbubmenu anymore it seems not to work.
    Here is a Screenshot:
    And this is theapplescrpt, tha opens the "Aktionsassistent":
    click the menu item "Aktionsassistent" of menu "Werkzeuge" of menu item "Werkzeuge" of menu "Anzeige" of menu bar item "Anzeige" of menu bar 1
    Butr then I cannot reach "OCR this".
    If any body has a hint - either for clicking "OCR this" or to sript  an OCR on an opened pdf.file with applescript this would be great.
    Thanks,
    Maritn

    AppleScript is documented in the Acrobat SDK. But there is no method for this.

  • How can i use my 3rd Generation iPod as a portable harddrive for files...

    now that i have a brand new 5th Generation 60Gig iPod, i want to use my old 3rd Generation iPod as a portable storage devise for files and whatever else. not for listening to music anymore. what do i have to do to make this so?
    i can just go ahead and use the firewire cable that came with it right? and will i actually be able to upload files to it, and then download them again? like word documents and photo files or spreadsheet or whatever?
    will it be cross platform then? meaning will i be able to take it to my friends pc (i use a mac) and download my resume or spreadsheet or whatever else to his machine (of course i would have to use the usb cable then).
    know what i mean? i want to use this think like an external harddrive.
    please advise.
    iBook and Macbook Pro   Mac OS X (10.3)   and OSX 10.4 on the MBP

    i think ipods are generally set to enable disc mode, so you can use it as a storage device, by default (if yours isnt, plug your ipod in, and go into options to select enable disc mode). just connect the ipod with whatever cord it came with to your computer, then look into the m.. is it called "my harddrive" or "harddrive"? and you should see the ipod connected there on the left side of the window with "network" and "music" etc. if you click on the ipod icon, you can drag and drop files into your ipod just as you would any other folder and use it as a harddrive.
    the tricky thing is using it for both pc and mac. i think if its formatted for a pc, you can use it on both macs and pcs. but if you have it formatted for a mac, then only macs can read it.
    so if you want to use it on your friends pc as well, format your ipod on a pc first so you can use it on both platforms.
    chris

  • How can I use SAX to Read XML in JSP?

    I created a class which extend DefaultHandler of SAX. I can use java to call this class and read XML data without any problems. But I can't call this class through JSP. Looks it didn't active startElement() when I called from JSP. Do you have any ideas on this case?
    ======================This is java call and works==============
    import java.io.*;
    import java.util.*;
    import ReadXmlSax;
    public class ReadElement
         public static void main(String argv[])
              ReadXmlSax r = new ReadXmlSax();
              Enumeration e = r.getAttribute("dre.xml","server","name");
              try{
                   while (e.hasMoreElements()) {
                   System.out.println((String)e.nextElement());}
              }catch(Throwable t){
                   t.printStackTrace();
    ======================================================================
    ========================This is jsp call but doesn't work=============
    <%@ page import = "java.util.*" %>
    <%@ page import = "java.io.*" %>
    <%@ page import = "ReadXmlSax" %>
    <html>
    <head><title>SAX Reader</title></head>
    <body>
    <%
    ReadXmlSax r = new ReadXmlSax();
    Enumeration e = r.getAttribute("dre.xml","server","name");
    while (e.hasMoreElements()) {
    out.println(e.nextElement());
    out.println("<br>");
    %>
    </body>
    </html>
    ======================================================================

    maybe you just simply can't reach dre.xml from your web server!

  • Can I use a 3rd party external hard drive to backup my iMac?

    I use my iMac to backup all our iOS devices, but I don't have a back up for the iMac. I have a 500MB harddrive but am only using about 200MB. Do I have to buy a Time Capsule or is there a smaller external hard drive that I could use instead? Any other suggestions would be appreciated. Thank you!

    Some drive-combos seem to be more troublesome.  Western Digital "comination units" (the cases that come as a drive in a case that has its own interface card.  WD is reported by forum users to choose interface cards that go bad and tank your backups as they die.  Then you need to extract the drive and put it in your own enclosure and reformat.
    LaCie seems to make good product.
    You can also buy external enclousres at macsales.com (type "enclosures" in the search box) to get a good Firewire enclosure and then buy a WD "Black" drive to put in it.
    Make sure your backup is self-powered and not USB-powered ... nothing worse during a disaster recovery than your Mac being unable to power the recovery disk,

  • How can I use Paypal only when I check the box "pay with Paypal" and not when I check "pay cash" or "pay on my bank account number"

    Hello,
    Thanks for your time if you can help me solving this problem.
    I have used Fromscentral for a long time now and it's really working fine but I can't find a solution for a simple problem I'll try to explain below.
    Ok, My students can check which subscription they want :
    1 art class 25€
    3 month subscription 250€
    6 month subscription 500€
    When they have made that choice (only one) they can proceed and pay by Paypal.
    But what happens if they want to pay their subscription at the studio in cash or if they want to wire the money on my bank account?
    Well, it's not possible to select either of those two options and by doing so inactivate Paypal.
    That's the problem.
    Thanks to let me know how to do this
    Phil

    Hi,
    In this scenario, I would suggest you to create another form for the cash and wire payments. This form can be embedded to the current form you have, students who wants to pay via cash or wire transfers; they can click on the link and fill their application separately.
    Unfortunately, it is not possible to disable Paypal; using the conditional form elements.
    Regards,
    Nakul

Maybe you are looking for

  • DUMP in MFBF transcation

    Hi Folks, Users getting the frequent dumps in production systems. actaully we observed that dumps are coming when the users accessing the MFBF transaction manually when the batch job was running for backflush and NRIV (number ranges) table is getting

  • Fresh Install HCM 9.1 but Links not working. Help please

    Dear All, I'm trying to make a switch from SAP to PeopleSoft. I tought it easier to install PSFT since the number of source to install is much less than SAP. However, I kept getting same error where the links not working no matter which environment I

  • Using a scanner to parse a text file

    Hi, I'm running into some difficulties using a pattern for my scanner (java.util.Scanner). I need to scan a text file which consists of records. Each record has a keyword and a value (like property files): Example: FACILITY=TEST LOT=1234567 DEVICE=ab

  • Use of decision table in Oracle Business Rule

    hello, I am using Oracle Business Rule beta version to develop a rule base application. I want to know that how i can make use of table to make decision on the basis of table data . thanx saleem

  • ASA 8.6(1)12 Outlook SSLVPN issue

    Hello, We're running an ASA 5515-X cluster 8.6(1)12 and we're having problems with OWA (Outlook Web Access) being accessed through the ASA SSLVPN Portal. We're able to login and get to OWA but the layout of the page is only displayed properly in Chro