Which properties file should be modified for DocumentBuilderFactory

I am creating a Document object using the following lines of code. Unfortunately, the DocumentBuiderFactory, by default looks for a namespace org.xml.... Which means that I get a parsing error when I am not connected to the net. Can someone point out which properties file needs to be modified to prevent this error from occuring.
// Build the request document
DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = builderFactory.newDocumentBuilder();
Document response = builder.parse(in);
Thanks in advance
Jimmy

Did you ever figure this problem out? If so, could you provide me with some advice about it?

Similar Messages

  • Which jar files should I use for XSLT?

    I'm trying to do one of the examples from the Java/XML tutorial on this site. I can't get it to work. I started with the JAXP jar file and couldn't compile because it couldn't find one of the classes it needed. I then added the XALAN jar file to my CLASSPATH and got a clean compile but it crashes when I try to create the tranformer from the factory. It gives an error that says something like the SAX parser doesn't support the namespace. I tried various iterations of this. Could someone please tell me which jar files to include and in what sequence?
    Thanx,
    Cliff

    I have the Xerces jar followed by the Xalan jar.
    I get the following error:
    C:\JBUILDER4\JDK1.3\bin\javaw -classic -classpath "C:\JBuilder4\projects\ProjectXML\classes;C:\Java\lib\xerces.jar;C:\Java\lib\xalan.jar;C:\JBUILDER4\JDK1.3\demo\jfc\Java2D\Java2Demo.jar;C:\JBUILDER4\JDK1.3\jre\lib\i18n.jar;C:\JBUILDER4\JDK1.3\jre\lib\jaws.jar;C:\JBUILDER4\JDK1.3\jre\lib\rt.jar;C:\JBUILDER4\JDK1.3\jre\lib\sunrsasign.jar;C:\JBUILDER4\JDK1.3\lib\dt.jar;C:\JBUILDER4\JDK1.3\lib\tools.jar"  -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,address=javadebug,suspend=y com.craig.xml.util.Stylizer C:\JBuilder4\projects\ProjectXML\DataAreaDescTemplate.xsl C:\JBuilder4\projects\ProjectXML\DataAreas.xml
    javax.xml.parsers.FactoryConfigurationError: java.lang.ClassNotFoundException: org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
         at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:149)
         at com.craig.xml.util.Stylizer.main(Stylizer.java:47)
    Exception in thread "main"
    This is my code:
    package com.craig.xml.util;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.FactoryConfigurationError;
    import javax.xml.parsers.ParserConfigurationException;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.w3c.dom.Document;
    import org.w3c.dom.DOMException;
    // For write operation
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerException;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.TransformerConfigurationException;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamSource;
    import javax.xml.transform.stream.StreamResult;
    import java.io.*;
    * Title:        ProjectXML
    * Description:  Test Project for XML work
    * Copyright:    Copyright (c) 2002
    * Company:
    * @author Clifton Craig
    * @version 1.0
    public class Stylizer {
      // Global value so it can be ref'd by the tree-adapter
      static Document document;
      public Stylizer()
      public static void main(String[] argv)
        if (argv.length != 2)
          System.err.println ("Usage: java Stylizer stylesheet xmlfile");
          System.exit (1);
              DocumentBuilderFactory factory =
              DocumentBuilderFactory.newInstance();
              //factory.setNamespaceAware(true);
              //factory.setValidating(true);
              try
                   File stylesheet = new File(argv[0]);
                   File datafile = new File(argv[1]);
                   DocumentBuilder builder = factory.newDocumentBuilder();
                   document = builder.parse(stylesheet);
                   // Use a Transformer for output
                   TransformerFactory tFactory =
                   TransformerFactory.newInstance();
    //               StreamSource stylesource = new StreamSource(stylesheet);
                   StreamSource documentsource = new StreamSource(datafile);
                   DOMSource styler = new DOMSource(document);
                   Transformer transformer = tFactory.newTransformer(styler);
                   StreamResult result = new StreamResult(System.out);
                   transformer.transform(documentsource, result);
              catch (TransformerConfigurationException tce)
                   // Error generated by the parser
                   System.out.println ("\n** Transformer Factory error");
                   System.out.println(" " + tce.getMessage() );
                   // Use the contained exception, if any
                   Throwable x = tce;
                   if (tce.getException() != null)
                      x = tce.getException();
                   x.printStackTrace();
              catch (TransformerException te)
                   // Error generated by the parser
                   System.out.println ("\n** Transformation error");
                   System.out.println(" " + te.getMessage() );
                   // Use the contained exception, if any
                   Throwable x = te;
                   if (te.getException() != null)
                   x = te.getException();
                   x.printStackTrace();
              catch (SAXException sxe)
                   // Error generated by this application
                   // (or a parser-initialization error)
                   Exception x = sxe;
                   if (sxe.getException() != null)
                   x = sxe.getException();
                   x.printStackTrace();
              catch (ParserConfigurationException pce)
                   // Parser with specified options can't be built
                   pce.printStackTrace();
              catch (IOException ioe)
                   // I/O error
                   ioe.printStackTrace();
      }//End Main
    }

  • Which jar files should I use for javax.xml.transform.*?

    thanks

    You can use Apache's implementaion APIs for that. (Xalan.jar & xml-api.jar)
    http://xml.apache.org/xalan-j/trax.html

  • Which jdbc driver should be used for sqlserver 2000 and where to put it.

    hi all,
    My odi is 11g. I met the error infor "Could not load JDBC driver class [com.microsoft.sqlserver.jdbc.SQLServerDriver]" when i tried to connect to a sqlserver2000 database.
    The questions are:
    1. which jdbc driver should be used for sqlserver 2000?
    2. which folder to put it in?
    3. how to set the physical topological "Microsoft Sql Server" to use this jdbc driver?
    failed tries:
    i downloaded the driver "SQL Server 2000 Driver for JDBC Service Pack 2" and put it in the following folders:
    1. .../oracledi/drivers, and set this path to CLASSPATH.
    2. .../oracledi/userlib didn't exist, i created it and put the driver in.
    3. .../oracledi/agent/dirvers, in which a readme file exists and told me to put drivers in this folder.
    All these works were not useful. when I start odi.sh and try to connect to sqlserver2000 database, the same error infor came up.
    my environment is:
    os: Linux 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
    java: Java(TM) SE Runtime Environment (build 1.6.0_13-b03) Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)
    ODI: 11g, installed in /users/oracle/odi/
    please help me,thanks a lot.
    jun
    帖子经 Jun编辑过

    Hi,
    You should check which JVM version is required by that version of the driver, I think the 2.x versions require a 1.6 JVM
    What error are you getting? If it is the "com.sunopsis.sql.c: No suitable driver", it indicates it can't find the jar file (sqljdbc.jar) for the driver you specify.
    Drivers folder in ODI 11g is under
    C:\oracle\product\11.1.1\Oracle_ODI_1\oracledi\agent\drivers.
    if you are using the standolone version
    On windwos :
    C:\Documents and Settings\<userName>\Application Data\odi\oracledi\userlib
    on linux
    $HOME/.odi/oracledi/userlib
    Have a read of :- http://download.oracle.com/docs/cd/E14571_01/core.1111/e16453/install.htm#CHDBIFAJ
    Thanks,
    Sutirtha

  • HT4839 Which apn setting should I use for my iphone 4 on net10

    Which apn setting should I use for iphone 4 on net10

    APN Settings for Net 10
    Cellular Data
    APN: att.mvno
    Username: (Blank)
    Password:(Blank)
    MMS (Blank)
    APN: att.mvno
    Username: (Blank)
    Password: (Blank)
    MMSC: http://mmsc.cingular.com
    MMS Proxy: 66.209.11.33
    MMS Max Size: 1048576
    MMS UA Prof URL: www.apple.com/mms/uaprof.rdf
    Type exactly whats on here on your settings.
    Procedure:
    1- Turn on your phone
    2- Get paperclip take out tray and put your non working sim card in- T-moble and simple mobile sim cards work great for me on this venture.
    3. Goto Settings>General>Cellular>Cellular Network
    At this point its very critical that you do this fast, Once you change the sim card to your net 10 the option Cellular Network will only stay on for a few seconds while it's searching for service. You will need to click on cellular once the Net10 sim card is in and click on Cellular network again.
    4. Get your paperclip take out the tray put in the Net 10 sim card
    5. Goto Cellular>Cellular Network while it's searching for service
    6. Type in your settings that I list above
    7. Scroll back to your main setting (Do not press your Home Button)
    8. Once you see your service up and running try out your web and send a picture message it should work.
    9. If it does'nt work you mistype one of the settings, it has to be exact or it wont work.
    10. Do the process all over again
    Keep this information and the sim card away for a later date in case you lose your setting I have'nt turned off my phone or let my battery die to find out if I lose my settings. One thing for sure I lost it when I update to the IOS 6.0.1.

  • Which animation software should I go for?

    I have FCP 4 and I want to add some backgrounds like a big greek building or walking on the rainbow... I assume I need to make those kind of backgrounds on my own? If so, which animation software should I go for to create those kind of landscape background?? Or there may be some program that already has designed background?? Please let me know. I am learning through on my own.

    lol - Throw them in the deep end with the easy stuff first, huh Shane ?
    Have a google for video backs from Artbeats, Jump Backs, Corbis and so on - you may find some stock stuff there to use. It's not cheap.
    To learn an app like Maya is a whole other thing and others like Cinema 4D, lightwave etc, etc - developing the craft of 3D compositing is something that takes an enormous amount of time and patience. These are apps I have looked at and have never, ever found the time to be able to learn them past the most basic understanding. But if you have the inclination then go for it !
    If you have a fast current pc then you might like to look at the stuff from Serious Magic - some precomps there that might fit the bill.

  • Which mac mini should i go for: the one with AMD graphic card or Intel. I meanly going to use it for hometheater and HD movies.

    which mac mini should i go for: the one with AMD graphic card or Intel. I meanly going to use this for hometheater and HD movies.

    Intel HD 3000 graphics card can easily handle HD movies up to 1080p. But if you are looking at higher resolutions possibly 4k or 8k that are being released this summer in new TV's, I would go with the AMD card. The AMD card would be good for video and picture applications and also games. But if this is strictly to power your 1080p home theater setup then the choice is obviously the Intel HD 3000.

  • Which JRE / J2SE should be installed for tomcat 5.5?

    Does anyone know which JRE / J2SE should be installed for tomcat 5.5? Could anyone please give me the link for download?
    Thank for any suggestion
    Eric

    Does anyone know which JRE / J2SE should be installed
    for tomcat 5.5? Could anyone please give me the link
    for download?http://java.sun.com/javase/downloads/index.jsp

  • Which cluster attribute should you modify to ensure that load balancing and

    An EJB is targeted to a cluster. Remote EJB clients can therefore take advantage of WebLogic Server’s load balancing and failover capabilities.
    However, a proxy server exists between the clients and cluster, which performs IP address transaction.
    Which cluster attribute should you modify to ensure that load balancing and failover work correctly?
    A. Multicast Address
    B. Persistent Store
    C. Cluster Address
    D. Migration Basis
    E. Replication Channel

    http://docs.oracle.com/cd/E13222_01/wls/docs81/config_xml/Cluster.html
    Cluster address

  • Which kernel module should I use for Marvell Yukon 88E8001?

    Which kernel module should I use for Marvell Yukon 88E8001?
    a. sky2
    b. skge
    c. sk98lin

    I found this in the kernel''s /driver/net/Kconfig:
    config SKGE
    tristate "New SysKonnect GigaEthernet support"
    depends on PCI
    select CRC32
    ---help---
    This driver support the Marvell Yukon or SysKonnect SK-98xx/SK-95xx
    and related Gigabit Ethernet adapters. It is a new smaller driver
    with better performance and more complete ethtool support.
    It does not support the link failover and network management
    features that "portable" vendor supplied sk98lin driver does.
    This driver supports adapters based on the original Yukon chipset:
    Marvell 88E8001, Belkin F5D5005, CNet GigaCard, DLink DGE-530T,
    Linksys EG1032/EG1064, 3Com 3C940/3C940B, SysKonnect SK-9871/9872.
    It does not support the newer Yukon2 chipset: a separate driver,
    sky2, is provided for Yukon2-based adapters.
    To compile this driver as a module, choose M here: the module
    will be called skge. This is recommended.
    Looks like your module is "skge"

  • Which jar file should i use ??

    Hi,
    Which jar file should i use to import the following:
    import org.apache.commons.lang.exception.NestableRuntimeExceptionI am getting package does not exist error.
    Please help.
    Thanks !

    one of the apache commons Jar files... make sure they're in your classpath.

  • Which MacBook Pro should I go for? Which will complete my needs?

    I wanted to buy a MacBook Pro for school in September. I was just curious on which model I should go for.
    I need to do the following:
    - I need to be able to run accounting software (Simply Accounting).
    - I need to be able to Skype with friends/family.
    - I need to be able to run Adobe Suite CS5+.
    - I would like to create a home studio surrounded around this new computer.
    - I would like something portable and durable. I need to be able to carry this laptop everyday and it's going to be used in an environment that is more or less abusive.
    - I would also like a CD drive (I still find myself using CDs every once in a while).
    - And I would like to get a nice screen, the stock screen is fine on the 13 inch, but I would need the upgrade on the 15 inch.
    So, basically;
    Option 1: 15 inch MacBook Pro base (no extras)
    Option 2: 13 inch MacBook Pro with an Intel 520 240GB SSD + 8GB RAM
    Option 3: Wait until June/July for the next generation of MacBook Pro's.
    Which would you guy do?
    Thanks.

    Skip the 13", does not have the audio I/O you will need.  The 15" with as much ram as you can afford.  You can wait, keeping in mind that you will spend time working bugs ou, depending how Apple rearranges the "furnature yet again.  I have a 15" running SnowLeopard as my music production, as I do a lot of live, and it is VERY stable. (can't afford issuses)  I have a 13" Bare bones for doing light duty stuff and I'm to lazy to lug the big 15" bag of cables/adapters... with me.  Best of luck, hope I helped, and did not confuse you too much.   All the Best

  • Which HttpClient class should I use for Universal apps?

    Hi,
    I am developing a Windows Universal app for Windows phone and WinRT in C# and I would like to know which HttpClient class should i use? Should I use the System.Net.HttpClient or Windows.Web.HttpClient?

    Because the System.Net.Http and System.Net.Http.Headers namespaces might not be available in future versions of Windows for use by Windows Store apps. It is stated in the official documentation on MSDN here:
    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn469431.aspx
    "Starting with Windows 8.1 and Windows Server 2012 R2, use Windows.Web.Http.HttpClient in the Windows.Web.Http namespace and the related Windows.Web.Http.Headers and Windows.Web.Http.Filters namespaces instead for Windows Store apps."
    And the Windows.Web.Http.HttpClient class is supported from Windows Phone 8.1, Windows 8.1 and Windows Server 2012 R2:
    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/windows.web.http.httpclient.aspx
    Hope that helps.
    Please remember to close your threads by marking all helpful posts as answer and then start a new thread if you have a new question.

  • Which adobe version should be downloaded for a kindle fire 7 hd with linux?

    which version of adobe should be downloaded for a kindle fire 7 hd with linux?

    To the best of my knowledge you are restricted to what ever applications from the Kindle store. There are few Adobe products other than Reader that have been approved by Amazon for their store. In fact, they offer more apps on their andriod store for other manufacturers than they do on their own Kindle store.

  • Which g4 model should I look for?

    Hi, I need a Mac, essentially to run Avid and Final Cut Pro. I would love to get a g5, but I'm on a tight budget, so I am thinking about picking up a cheap G4 and upgrading it as best as I can. I have never had a Mac before and really don't know much about the hardware, what type of G4 should I look for, and what upgrades would I need if I plan to use it mostly for editing?

    Welcome to Apple Discussions!
    The last G4 machines were by far the best. They were also by far the noisiest. Some have even called them the windtunnel. But they and the last generation QuickSilver G4s were the only ones that could use 500 GB Parallel ATA hard drives without partitioning. As far as I know no 1 TB Parallel ATA drives exist, but Firewire ones do exist. Partitioning restricted the amount of installed software on the boot section of the hard drive.
    MDD G4s without Firewire 800 could also boot into 9 but had to use the original airport wireless, and so could QuickSilvers, but MDD G4s with Firewire 800 could use Airport Extreme wireless, and could only use Classic. Those which could only use Classic have no 9 support under 10.5, but could continue to use Classic under 10.4. Booting into 9 offered better Mac OS 9 driver support than Classic, which acts like a 9 emulator. No PowerMac G4 desktop offered built-in USB 2 support, only USB 1.1 support exists for them. iMac, eMac, aPowerbook G4s and iBook G4s after September 2003 offered USB 2. Firewire also known as IEEE 1394 is even faster than USB 2 in its earlier iteration even though specs don't suggest that it is, because of issues of sharing with other Firewire devices.
    Suggest you visit:
    http://support.apple.com/specs/#powermac
    For a better sense of what's available to you.

Maybe you are looking for

  • Different System Alias in one iView

    Hi all, I have an ESS/MSS Szenario based on EP7 SP13 and HCM (ECC 6). I have setup the business package and all is working fine. I have setup the different System Aliases like SAP_R3_HumanResources and SAP_R3_HumanResources_Meta etc. and I have a wor

  • How can you tell what song it is stuck on?

    Is there a log or a way to tell what song match it stuck on? I see a lot of generic "stuck on step 2" posts, but nothing really of any substance.  I have figured out that if I delete my "Cache.db" file it appears to rebuild the match database, but I

  • How can I edit a video clip in PE and take it out of PE to use elsewhere?

    I want to add edited video clips from PE to use in my photoshop slideshow. I would also like to use the edited clips in another programme, but I only get a file that can only be opened in PE. I have PE 4 and Photoshop 6.on a desktop PC using Vista. M

  • ITunes Won't Stop Opening .wav files...

    I want Quicktime to me the only app on my MacBook to open .wav files. I've got the MIME association checked in my Quicktime, but every time I go to open a .wav file, iTunes is the app that loads and plays the file. Any idea on how to fix this? Thanks

  • EFT file creation process

    Hi, we are implementing International HRMS and payroll becuase of out legislation not avaliable in oracle HRMS and payroll. From the international HRMS implementation manaul saying that , we need to do extra setup for implementing EFT and Payroll arc