Anyone knew setting up JAXP, please come in!

Hi, all,
I got an TransformerFactoryConfigurationError error when invoking TransformerFactory.newInstance() in the jaxp.jar.
The code as following:
public static void saveDocAsFile(Document doc, String fname) {
try {
TransformerFactory tfFac = TransformerFactory.newInstance();
Transformer tf = tfFac.newTransformer();
tf.transform(new DOMSource(doc), new StreamResult(new FileWriter(fname)));
} catch (IOException ioe) {
ioe.printStackTrace();
} catch (TransformerException e) {
System.out.println("Transformer throws an exception");
e.printStackTrace();
The error message:
javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found
at javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:110)... ...
Anyone can tell me where is the problem of my environment setting(cause I really don't think the code has anything wrong)? Many many thanks!!!
Kevin

you need the xalan.jar, sax.jar and the dom.jar

Similar Messages

  • HT201320 I want to have all the facilities of my Ipad obtained for my e mail address, available for another e mail address belonging to my wife. Anyone know how I set this up please?

    I want to have all the facilities of my Ipad obtained for my e mail address, available for another e mail address belonging to my wife. Anyone know how I set this up please? I am a new user and long in the tooth so any help would be much appreciated.

    What do you mean by "facilities of my Ipad obtained for my e mail address"?
    Do you mean you want to setup your wife's email account on your iPad? Or something else?

  • Hi i was wondering, my iphone(iOS 7.0.3) cant sync or cannot be read on my itunes(11.1.3.8) on my windows 8.1. So i was wondering if anyone knew when will windows and itunes be compatible officially? or is there another way to fix without waiting?

    Hi anyone can help? Cause i cannot sync my iphone(iOS 7.03) on my itunes(11.1.3.8) on windows 8.1? I heard that it is because windows 8.1 and itunes 11.1 " ain't compatible. So i was wondering if anyone knew when will they be compatible or is there another method without me doing much"harm" to my itunes or windows? Please your help is most wanted!!!

    I have 8.1 and iTunes and its working. My cloud doesn't so I had to remove the 'sync contacts and calendar to the cloud' and to back to the old say, but I just synced my iPad and iPos (both running 7.0.3) last night and it worked.
    There are features with 8.1 that may be messing things up. For example there's a setting when you upgrade to 8.1 where you can turn off the automatic install of drivers. With devices, every time the iOS and iTunes updates there is a new driver to make your device visible on a computer. If you turn off that auto install then you may have blocked your computer from getting that driver.
    In addition, with iOS7 there came the 'do you trust this computer' which is a choice you have to make on your device. If you tell your device no, then it may have issues connecting to your computer.

  • HT3500 My iMac (running Lion 10.7.3) is connected wirelessly to a Laserjet 2550.  This has operated fine for a long time, but now th printer cannot be found when TimeMachine back ups are taking place.  Does anyone know the cause & remedy please?

    My iMac (running Lion 10.7.3) is connected wirelessly to a Laserjet 2550.  This has operated fine for a long time, but now the printer cannot be found when Time Machine back ups are taking place - Bonjour does not show any devices being available when Time Machine is running.  Does anyone know the cause & remedy please?

    Your points match mine pretty well,though here are some thoughts:
    1. I thought about this theory myself this morning (iTunes possibly causing more issues), but I haven't been able to verify it.
    2. When I set up a new user it seemed better for a while, but the issue croppped back up. Yesterday I fully wiped the machine and reinstalled from scratch. I did not reimport my user from TimeMachine, but the problem has come back. My thinking was that I might have some really old software or prefs hanging around causing the issue. No dice.
    3. This is my current theory of the issue, so my next step will be to pull the RAM from Crucial and see how the system behves. IF that doesn't eliminate the problem, I'll pull the factory installed RAM and replace it with the 3rd party RAM. The odd thing is how many people seem to have similar issues - I know two personally, and have seen several posts on forums. I think the most common point for this happening was the 10.7.2 update, which would point to software as the culprit.
    4. That matches my experience.
    My hope is that this will be repaired in the forthcoming 10.7.3 release (current production version is 10.7.2), but otuside of what I noted above, I'm at a loss.

  • I just bought my ipod touch and i didnt mean to mess the password up but i did and now it is disabled and itunes wont let me restore it and it stops in the middle of the restoring process can anyone help??? please

    ok im in need of some help i had just bought a brand new ipod touch from walmart and when i got it home i was trying to cope with all the new things on it and i was just fooling around like figuring where things where at and i put a passcode on my ipod and i must of not typed it in right and now my ipods disabled because i tryed to many times and im at my tenth time and i misspelled it obvi and now i need help i plugged it into intunes put it into recovrey mode and then restored it and it stopped in the middle of the restore mode and now it wont finish and im still locked out of my ipod and i need help i mean i just got it and it would be nice if anyone knew that could help me.???? please i cannot  figure this out and usually i am very good at ipods and stuff but this time i am stummped and i dont want to call apple to hasel anyone ...anything thats helpful im grateful to hear thanks soo much
    -Kara :/

    Follow the instructions to the letter here >    iPhone and iPod touch: Unable to update or restore

  • We used to get a 'whooshing' noise when we sent an eMail using mac Mail. This no longer happens. We recently updated to Mountain Lion 10.8.1  Can anyone throw light  on this please?    David

    We used to get a 'whooshing' noise when we sent an eMail using mac Mail. This no longer happens. We recently updated to Mountain Lion 10.8.1  Can anyone throw light  on this please?    David

    Hi
    I am sorry to see you are having problems with your BT Service
    I suggest you contact the forum mods they should be able to get this problem sorted for you this is a link to them http://bt.custhelp.com/app/contact_email/c/4951
    They normally reply by email or phone directly to you within 3 working days they will take personal ownership of your problem until resolved and will keep you informed of progress
    They are a UK based BT specialist team who have a good record at getting problems solved
    This is a customer to customer self help forum the only BT presence here are the forum moderators
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

  • TS3276 I am not able to Mobile Me email account to connect with iCloud or my Apple Mail program. Don't know if my settings are correct or not. Can anyone help me with this please?

    I am not able to Mobile Me email account to connect with iCloud or my Apple Mail program. Don't know if my settings are correct or not. Can anyone help me with this please?

    http://support.apple.com/kb/HT5922
    If you want to mirror your desktop, see:
    http://support.apple.com/kb/HT5404
    Regards.

  • I have a brand new MacBookProo and I can not open PDF files from my desktop. Can anyone help me with this please?

    I have a brand new MacBookProo and I can not open PDF files from my desktop. Can anyone help me with this please?

    A new Mac comes with 90 days of free tech support from AppleCare.
    AppleCare: 1-800-275-2273

  • BLOCKED PLUG IN ADOBE FLASH PLAYER, CANNOT ENABLE? ANYONE ABLE TO HELP ME PLEASE?

    I AM TRYING TO ENABLE ADOBE FLASH PLAYER TO BY PAYY THE BLOCKED PLUG IN.
    HAVE UPDATED WITH ADOBE, BUT DOESN'T SHOW USING ADOBE WEB SITE THAT LATEST VERSION WAS DOWNLOADED.
    WENT TO SAFARI PREFERENCES AND FOLLOWED PROMPTS, ENABLED BLOCKED PLUG INS, BUT STILL UNABLE TO GET ADOBE FLASH PLAYER
    TO WORK.
    ANYONE ABLE TO ASSIST ME PLEASE? THANKS!
    TRYING TO ENABLE BLOCK PLUG INS THRU SAFARI PREFERENCES.

    1. System Preferences >  Flash Player > Advanced >  Delete  All
         Press the "Delete All" button.
         Install Adobe Flash Player.
        http://get.adobe.com/flashplayer/
       Download it first.
       The next step is important.
       Click Safari in the menubar and select “Quit Safari”.
        Follow the prompts and install it.
        Restart computer. Relaunch Safari.
    2.  Allow  Plug-ins
        Safari > Preferences > Security
        Internet Plug-ins >  "Allow  plug-ins"
        Enable it.

  • TS1398 my i pod touch is in recovery mode and it keeps saying i cant restore because my internet setting are incorrect please help.

    my i pod touch is in recovery mode and it keeps saying i cant restore because my internet setting are incorrect please help.

    Try disabling the computer's antivirus and firewall during the download and  restore. If still problem come back with the exact wording of the error message.

  • The cellular data services have disappeared from my settings. Can anyone help me restore it please?

    The cellular data services have disappeared from my settings. Can anyone help me restore it please?

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased. http://support.apple.com/kb/ht1430
     Cheers, Tom

  • I have just dowloaded an audiobook from amazon to itunes.  I have synched my iphone 4s but cannot find the audio book on my phone.  Can anyone help me locate it please?

    I have just downloaded an audio book from amazon to itunes.  I have synchronised my iphone 4s, but cannot locate the book!  Amazon says to tap the ipod icon but i do not have one!! Can anyone help me locate it please?

    kikuyujen wrote:
    Could anyone help me find an article called Switch 101 that helps people converting from Windows to Mac.
    Just Googled "Switch 101."
    http://www.apple.com/support/switch101/

  • When printing from aperture my margins are unequal, even if i set my margins they come out bigger one side  and not the other. i am using a macbook pro running osx lion and printing with a canon pro 9000

    when printing from aperture my margins are unequal, even if i set my margins they come out bigger one side  and not the other. i am using a macbook pro running osx lion and printing with a canon pro 9000.
    please can anbody help or advise?

    You didn't mention any color calibration being done on your monitor.  This is an essential part of any color-correct workflow.  What are you using to calibrate your monitor (and your printer)?
    Print profiles (for soft-proofing as well as printing) are for specific combinations of paper & printer.  The nine you have are each, most likely, for a common paper (perhaps mfr'd by Canon) to be used with your printer.
    I don't know what you mean when you say "I choose a high standard print option".
    Have you read the User Manual chapter on printing?
    Printing Your Images
    There is also a good appendix on calibration:
    Calibrating Your Aperture System

  • Problem opening mail attachments...were opening seamlessly on os 7.0...get an error   Filename Office open XML document/presentation File size   Does anyone have a solution? Please help.

    problem opening mail attachments...were opening seamlessly on os 7.0...get an error
    Filename
    Office open XML document/presentation
    File size
    Does anyone have a solution? Please help.

    Hi Charlotte,
    You don't say what your version of Windows you have. Assuming XP, go to Start | Run, type DXDIAG and click OK. Click the Sound tab and run the tests to eliminate a hardware problem first of all. If you don't hear anything, check your cables first of all. Also make sure "Mute" isn't checkmarked in your sound setup. You'll find that in Windows Control Panel.
    Which browser do you use? If you have Firefox 4, sign up to the HTML5 trial @ http://www.youtube.com/html5
    HTML5 is the latest video standard and doesn't require Flash player. Google is in the process of converting all its files to work with the new format. It may solve you problem. If you don't have Firefox 4, you can get it from here: http://www.mozilla.com/en-US/firefox/fx/
    IE8 doesn't support HTML5.
    To clean out your temp files, go to Start | Run, type: CLEANMGR and click OK. Click OK again to start the utility. Tick all the boxes except "Compress old files" because the latter takes too long, and then click OK. You can run this utility any time you wish by the way.
    The above steps will hopefully fix your problem. If not, post here again please.

  • I have had my apple tv 2 for about 3 months which work perfectly fine when I use it with my iPad 3 ー all of the sudden I get the HDCP Error!  I read the forms and done everything!  Apple I name a loyal customer, please come out with an update soon!

    I have had my apple tv 2 for about 3 months which work perfectly fine when I use it with my iPad 3 ー all of the sudden I get the HDCP Error!  I read the forms and done everything!  Apple I name a loyal customer, please come out with an update soon!

    That's one of the weird things.. it recognizes it maybe 10% of the time. And usually, only after I do the two-button reset. Problem is.. since it won't charge above 2%, anytime I try to do a restore or anything like that using iTunes, my device shuts off and I lose whatever progress I'd made.
    So, an update... after reading through a bunch of similar complaints (there are literally 1000's of them so there's NO WAY this isn't somehow ios7 related, thanks a lot APPLE ) I decided to try a restore in recovery mode. After 3 hours and several disconnections... I ended up having to just set it up as a new iPad, as the restore did nothing. Weirdly though... as I was doing the restore in recovery mode.. I noticed I'd gotten up to a 10% charge.. higher than it's been since September, so after setting it up as a new device, I turned it off and plugged it in using the wall charger. 2 hours later and I was up to 38%. Still not great, as my iPad, before ios7 could've fully charged twice in the amount of time it took for me to now get 28% more of a charge. And that's with a fully cleaned out device.. so that really ***** and I'm now more confused than ever.
    But I'm gonna leave it overnight charging and see what I come up with tomorrow. Sadly, when I paid $600 for it in February, I never expected to have to play "wait and see" with it...

Maybe you are looking for