Provider com.sun.xml.parser.DocumentBuilderFactoryImpl not found

During the deployment process using deploy tool i frequently get this error :
Exception is:
java.lang.RuntimeException: javax.xml.parsers.FactoryConfigurationError: Provider com.sun.xml.parser.DocumentBuilderFactoryImpl not found.
and when i restart the server then the home page of the server displays the following message:
com.sap.engine.services.servlets_jsp.server.exceptions.WebDeploymentException: Error in starting application sap.com/com.sap.engine.docs.examples
Can anybody please help in rectifying this problem .It is urgent.

Alezander,
First off thanks for resposnding. Following are the further details.
1. Engine version: 6.30
2. No, I tried even simple applications which doesnot have any XML parsing at all.
3. Bellow is the full stack track
04/07/08 15:16:23 -  ***********************************************************
04/07/08 14:52:08 -  Start updating EAR file...
04/07/08 14:52:08 -  EAR file updated successfully for 265ms.
04/07/08 14:52:08 -  Start deploying ...
04/07/08 14:52:08 -  EAR file uploaded to server for 78ms.
04/07/08 14:52:08 -  ERROR: NOT deployed. Deploy Service returned ERROR:
                     For detailed information see the log file of Deploy Service.
                     Exception is:
                     java.lang.RuntimeException: javax.xml.parsers.FactoryConfigurationError: Provider com.sun.xml.parser.DocumentBuilderFactoryImpl not found
                          at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:99)
                          at com.sap.engine.lib.xml.StandardDOMParser.<init>(StandardDOMParser.java:68)
                          at com.sap.engine.services.deploy.ear.jar.EARReader.getDescriptor(EARReader.java:190)
                          at com.sap.engine.services.deploy.ear.jar.EARReader.<init>(EARReader.java:89)
                          at com.sap.engine.services.deploy.server.application.DeploymentTransaction.<init>(DeploymentTransaction.java:127)
                          at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:452)
                          at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1511)
                          at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:268)
                          at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:165)
                          at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:102)
                          at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
                          at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
                          at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                          at java.security.AccessController.doPrivileged(Native Method)
                          at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
                          at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:140)
                          at com.sap.engine.lib.xml.StandardDOMParser.<init>(StandardDOMParser.java:81)
                          at com.sap.engine.services.deploy.ear.jar.EARReader.getDescriptor(EARReader.java:190)
                          at com.sap.engine.services.deploy.ear.jar.EARReader.<init>(EARReader.java:89)
                          at com.sap.engine.services.deploy.server.application.DeploymentTransaction.<init>(DeploymentTransaction.java:127)
                          at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:452)
                          at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1511)
                          at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:268)
                          at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:165)
                          at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:102)
                          at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
                          at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
                          at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                          at java.security.AccessController.doPrivileged(Native Method)
                          at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
                          at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:140)
04/07/08 14:52:08 -  ***********************************************************
04/07/08 14:57:38 -  Start updating EAR file...
04/07/08 14:57:38 -  EAR file updated successfully for 187ms.
04/07/08 14:57:38 -  Start deploying ...
04/07/08 14:57:39 -  EAR file uploaded to server for 140ms.
04/07/08 14:57:39 -  ERROR: NOT deployed. Deploy Service returned ERROR:
                     For detailed information see the log file of Deploy Service.
                     Exception is:
                     java.lang.RuntimeException: javax.xml.parsers.FactoryConfigurationError: Provider com.sun.xml.parser.DocumentBuilderFactoryImpl not found
                          at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:99)
                          at com.sap.engine.lib.xml.StandardDOMParser.<init>(StandardDOMParser.java:68)
                          at com.sap.engine.services.deploy.ear.jar.EARReader.getDescriptor(EARReader.java:190)
                          at com.sap.engine.services.deploy.ear.jar.EARReader.<init>(EARReader.java:89)
                          at com.sap.engine.services.deploy.server.application.DeploymentTransaction.<init>(DeploymentTransaction.java:127)
                          at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:452)
                          at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1511)
                          at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:268)
                          at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:165)
                          at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:102)
                          at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
                          at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
                          at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                          at java.security.AccessController.doPrivileged(Native Method)
                          at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
                          at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:140)
                          at com.sap.engine.lib.xml.StandardDOMParser.<init>(StandardDOMParser.java:81)
                          at com.sap.engine.services.deploy.ear.jar.EARReader.getDescriptor(EARReader.java:190)
                          at com.sap.engine.services.deploy.ear.jar.EARReader.<init>(EARReader.java:89)
                          at com.sap.engine.services.deploy.server.application.DeploymentTransaction.<init>(DeploymentTransaction.java:127)
                          at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:452)
                          at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1511)
                          at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:268)
                          at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:165)
                          at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:102)
                          at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
                          at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
                          at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                          at java.security.AccessController.doPrivileged(Native Method)
                          at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
                          at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:140)
04/07/08 14:57:39 -  ***********************************************************
04/07/08 14:57:57 -  Start updating EAR file...
04/07/08 14:57:58 -  EAR file updated successfully for 187ms.
04/07/08 14:57:58 -  Start deploying ...
04/07/08 14:57:58 -  EAR file uploaded to server for 78ms.
04/07/08 14:57:58 -  ERROR: NOT deployed. Deploy Service returned ERROR:
                     For detailed information see the log file of Deploy Service.
                     Exception is:
                     java.lang.RuntimeException: javax.xml.parsers.FactoryConfigurationError: Provider com.sun.xml.parser.DocumentBuilderFactoryImpl not found
                          at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:99)
                          at com.sap.engine.lib.xml.StandardDOMParser.<init>(StandardDOMParser.java:68)
                          at com.sap.engine.services.deploy.ear.jar.EARReader.getDescriptor(EARReader.java:190)
                          at com.sap.engine.services.deploy.ear.jar.EARReader.<init>(EARReader.java:89)
                          at com.sap.engine.services.deploy.server.application.DeploymentTransaction.<init>(DeploymentTransaction.java:127)
                          at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:452)
                          at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1511)
                          at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:268)
                          at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:165)
                          at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:102)
                          at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
                          at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
                          at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                          at java.security.AccessController.doPrivileged(Native Method)
                          at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
                          at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:140)
                          at com.sap.engine.lib.xml.StandardDOMParser.<init>(StandardDOMParser.java:81)
                          at com.sap.engine.services.deploy.ear.jar.EARReader.getDescriptor(EARReader.java:190)
                          at com.sap.engine.services.deploy.ear.jar.EARReader.<init>(EARReader.java:89)
                          at com.sap.engine.services.deploy.server.application.DeploymentTransaction.<init>(DeploymentTransaction.java:127)
                          at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:452)
                          at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1511)
                          at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:268)
                          at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:165)
                          at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:102)
                          at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
                          at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
                          at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                          at java.security.AccessController.doPrivileged(Native Method)
                          at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
                          at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:140)
04/07/08 14:57:58 -  ***********************************************************
04/07/08 15:04:16 -  Start updating EAR file...
04/07/08 15:04:16 -  EAR file updated successfully for 266ms.
04/07/08 15:04:16 -  Start deploying ...
04/07/08 15:04:16 -  EAR file uploaded to server for 94ms.
04/07/08 15:04:16 -  ERROR: NOT deployed. Deploy Service returned ERROR:
                     For detailed information see the log file of Deploy Service.
                     Exception is:
                     java.lang.RuntimeException: javax.xml.parsers.FactoryConfigurationError: Provider com.sun.xml.parser.DocumentBuilderFactoryImpl not found
                          at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:99)
                          at com.sap.engine.lib.xml.StandardDOMParser.<init>(StandardDOMParser.java:68)
                          at com.sap.engine.services.deploy.ear.jar.EARReader.getDescriptor(EARReader.java:190)
                          at com.sap.engine.services.deploy.ear.jar.EARReader.<init>(EARReader.java:89)
                          at com.sap.engine.services.deploy.server.application.DeploymentTransaction.<init>(DeploymentTransaction.java:127)
                          at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:452)
                          at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1511)
                          at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:268)
                          at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:165)
                          at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:102)
                          at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
                          at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
                          at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                          at java.security.AccessController.doPrivileged(Native Method)
                          at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
                          at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:140)
                          at com.sap.engine.lib.xml.StandardDOMParser.<init>(StandardDOMParser.java:81)
                          at com.sap.engine.services.deploy.ear.jar.EARReader.getDescriptor(EARReader.java:190)
                          at com.sap.engine.services.deploy.ear.jar.EARReader.<init>(EARReader.java:89)
                          at com.sap.engine.services.deploy.server.application.DeploymentTransaction.<init>(DeploymentTransaction.java:127)
                          at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:452)
                          at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1511)
                          at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:268)
                          at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:165)
                          at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:102)
                          at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
                          at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
                          at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                          at java.security.AccessController.doPrivileged(Native Method)
                          at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
                          at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:140)
04/07/08 15:04:16 -  ***********************************************************
04/07/08 15:16:23 -  Start updating EAR file...
04/07/08 15:16:23 -  EAR file updated successfully for 204ms.
04/07/08 15:16:23 -  Start deploying ...
04/07/08 15:16:24 -  EAR file uploaded to server for 62ms.
04/07/08 15:16:24 -  ERROR: NOT deployed. Deploy Service returned ERROR:
                     For detailed information see the log file of Deploy Service.
                     Exception is:
                     java.lang.RuntimeException: javax.xml.parsers.FactoryConfigurationError: Provider com.sun.xml.parser.DocumentBuilderFactoryImpl not found
                          at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:99)
                          at com.sap.engine.lib.xml.StandardDOMParser.<init>(StandardDOMParser.java:68)
                          at com.sap.engine.services.deploy.ear.jar.EARReader.getDescriptor(EARReader.java:190)
                          at com.sap.engine.services.deploy.ear.jar.EARReader.<init>(EARReader.java:89)
                          at com.sap.engine.services.deploy.server.application.DeploymentTransaction.<init>(DeploymentTransaction.java:127)
                          at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:452)
                          at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1511)
                          at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:268)
                          at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:165)
                          at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:102)
                          at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
                          at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
                          at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                          at java.security.AccessController.doPrivileged(Native Method)
                          at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
                          at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:140)
                          at com.sap.engine.lib.xml.StandardDOMParser.<init>(StandardDOMParser.java:81)
                          at com.sap.engine.services.deploy.ear.jar.EARReader.getDescriptor(EARReader.java:190)
                          at com.sap.engine.services.deploy.ear.jar.EARReader.<init>(EARReader.java:89)
                          at com.sap.engine.services.deploy.server.application.DeploymentTransaction.<init>(DeploymentTransaction.java:127)
                          at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:452)
                          at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1511)
                          at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:268)
                          at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:165)
                          at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:102)
                          at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
                          at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
                          at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                          at java.security.AccessController.doPrivileged(Native Method)
                          at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
                          at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:140)
04/07/08 15:16:24 -  ***********************************************************
Thanks,
Abilash

Similar Messages

  • Wsdlc: Provider com.bea.xml.stream.XMLOutputFactoryBase not found

    So I'm trying to run wsdlc in Eclipse (and as a command line, both don't work). I want to run wsdlc without having to run setDomainEnv.cmd first (painful if i'm in eclipse). I've gotten previous commands (8.1 stuff) working w/o running this first. If I add weblogic.jar to the Ant runtime classpath it also works, but again, I want to avoid this because a) i've never had to do it in the past and b) it blows up my <junitreport> task because it tries to use weblogic's SAX stuff.
    The error I get is:
    javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.XMLOutputFactoryBase not found
    Anyways, is there a way to set up the classpath within ant for just this task? I've tried adding weblogic jars into wsdlc classpaths but it doesn't seem to work.
    It seems that com.bea.xml.stream.* can't be found anywhere but weblogic.xml.stream is in there. Any way I can redirect the XStream stuff to point there? I've tried system properties but didn't seem to work.
    Any help would be appreciated.
    Andy O

    Hmm... so that works as long as i add all of those jars to the ANT runtime classpath which is what I want to avoid in the first place. I'm starting to think it's wsdlc that's not paying any attention to the classpathref's I'm giving it.
    Previous weblogic ant tasks never required the jar to be in the ANT runtime classpath and I could just pass it a classpathref to the my weblogic jars and thing worked fine.
    Any other help?

  • Problem with com.sun.xml.parser.Parser

    Hi ,
    I am using weblogic 6.01.
    In my ejb class, I am parsing a String to create XmlDocument.
    I created xml registry in weblogic server.
    In my weblogic server's xml registry,
    I have com.sun.xml.parser.DocumentBuilderFactoryImpl as
    DocumentBuilderFactory
    and com.sun.xml.parser.Parser as parser.
    I am using jaxp 1.1 for all my xml related processing. All required jars are
    in the classpath.
    following is my code
    protected Document createDocument ( String a_sXmlDocument )
    try
    ByteArrayInputStream baInputStream = new ByteArrayInputStream
    (a_sXmlDocument.getBytes ());
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance ();
    DocumentBuilder builder = factory.newDocumentBuilder ();
    Document xmlDocument = builder.parse (baInputStream);
    return xmlDocument ;
    catch (
    I get following exception at builder.parse ( baInputStream )
    Can't find bundle for base name com.sun.xml.parser.resources.Messages,
    locale en
    at com.sun.xml.parser.Parser.parseInternal(Parser.java:516)
    at com.sun.xml.parser.Parser.parse(Parser.java:284)
    at
    com.sun.xml.parser.DocumentBuilderImpl.parse(DocumentBuilderImpl.java
    :95)
    at
    weblogic.xml.jaxp.RegistryDocumentBuilder.parse(RegistryDocumentBuild
    er.java:98)
    at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:78)
    at
    com.datamap.arch.datamap.BasicTransportableDelegate.createDocument(Ba
    I would appreciate if anyone could help in this exception.
    Thank you,
    Mahendra

    Hi ,
    I am using weblogic 6.01.
    In my ejb class, I am parsing a String to create XmlDocument.
    I created xml registry in weblogic server.
    In my weblogic server's xml registry,
    I have com.sun.xml.parser.DocumentBuilderFactoryImpl as
    DocumentBuilderFactory
    and com.sun.xml.parser.Parser as parser.
    I am using jaxp 1.1 for all my xml related processing. All required jars are
    in the classpath.
    following is my code
    protected Document createDocument ( String a_sXmlDocument )
    try
    ByteArrayInputStream baInputStream = new ByteArrayInputStream
    (a_sXmlDocument.getBytes ());
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance ();
    DocumentBuilder builder = factory.newDocumentBuilder ();
    Document xmlDocument = builder.parse (baInputStream);
    return xmlDocument ;
    catch (
    I get following exception at builder.parse ( baInputStream )
    Can't find bundle for base name com.sun.xml.parser.resources.Messages,
    locale en
    at com.sun.xml.parser.Parser.parseInternal(Parser.java:516)
    at com.sun.xml.parser.Parser.parse(Parser.java:284)
    at
    com.sun.xml.parser.DocumentBuilderImpl.parse(DocumentBuilderImpl.java
    :95)
    at
    weblogic.xml.jaxp.RegistryDocumentBuilder.parse(RegistryDocumentBuild
    er.java:98)
    at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:78)
    at
    com.datamap.arch.datamap.BasicTransportableDelegate.createDocument(Ba
    I would appreciate if anyone could help in this exception.
    Thank you,
    Mahendra

  • Error in parsing: SAX2 driver class com.sun.xml.parser not found

    Hi I have this exception
    Error in parsing: SAX2 driver class com.sun.xml.parser not found
    when I try to run the examples from the book xml and java
    I have added the following jar files to the class path that i have download form java.sun.com
    xml.jar
    xalan.jar
    jaxp.jar
    crimson.jar
    Please can anyone tell me what is missing or wrong..the code must be right since written by oreilly... please have u any ideA
    XMLReaderFactory.createXMLReader(
    // "org.apache.xerces.parsers.SAXParser");
                        "com.sun.xml.parser");//
    I HAVE ONLY CHANGED THIS LINE FROM THE apache parser..to com.sun.xml.parser
    THIS IS THE ALL CODE
    import java.io.IOException;
    import org.xml.sax.Attributes;
    import org.xml.sax.ContentHandler;
    import org.xml.sax.ErrorHandler;
    import org.xml.sax.Locator;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.xml.sax.XMLReader;
    import org.xml.sax.helpers.XMLReaderFactory;
    import org.xml.sax.*;
    * <b><code>SAXParserDemo</code></b> will take an XML file and parse it using SAX,
    * displaying the callbacks in the parsing lifecycle.
    * @author Brett McLaughlin
    * @version 1.0
    public class SAXParserDemo {
    * <p>
    * This parses the file, using registered SAX handlers, and output
    * the events in the parsing process cycle.
    * </p>
    * @param uri <code>String</code> URI of file to parse.
    public void performDemo(String uri) {
    System.out.println("Parsing XML File: " + uri + "\n\n");
    // Get instances of our handlers
    ContentHandler contentHandler = new MyContentHandler();
    ErrorHandler errorHandler = new MyErrorHandler();
    try {
    // Instantiate a parser
    XMLReader parser =
    XMLReaderFactory.createXMLReader(
    // "org.apache.xerces.parsers.SAXParser");
                        "com.sun.xml.parser");// I HAVE ONLY CHANGED THIS LINE FROM THE apache parser..
    // Register the content handler
    parser.setContentHandler(contentHandler);
    // Register the error handler
    parser.setErrorHandler(errorHandler);
    // Parse the document
    parser.parse(uri);
    } catch (IOException e) {
    System.out.println("Error reading URI: " + e.getMessage());
    } catch (SAXException e) {
    System.out.println("Error in parsing: " + e.getMessage());
    * <p>
    * This provides a command line entry point for this demo.
    * </p>
    public static void main(String[] args) {
    // if (args.length != 1) {
    // System.out.println("Usage: java SAXParserDemo [XML URI]");
    // System.exit(0);
    //String uri = args[0];
    SAXParserDemo parserDemo = new SAXParserDemo();
    parserDemo.performDemo("content.xml");
    * <b><code>MyContentHandler</code></b> implements the SAX
    * <code>ContentHandler</code> interface and defines callback
    * behavior for the SAX callbacks associated with an XML
    * document's content.
    class MyContentHandler implements ContentHandler {
    /** Hold onto the locator for location information */
    private Locator locator;
    * <p>
    * Provide reference to <code>Locator</code> which provides
    * information about where in a document callbacks occur.
    * </p>
    * @param locator <code>Locator</code> object tied to callback
    * process
    public void setDocumentLocator(Locator locator) {
    System.out.println(" * setDocumentLocator() called");
    // We save this for later use if desired.
    this.locator = locator;
    * <p>
    * This indicates the start of a Document parse - this precedes
    * all callbacks in all SAX Handlers with the sole exception
    * of <code>{@link #setDocumentLocator}</code>.
    * </p>
    * @throws <code>SAXException</code> when things go wrong
    public void startDocument() throws SAXException {
    System.out.println("Parsing begins...");
    * <p>
    * This indicates the end of a Document parse - this occurs after
    * all callbacks in all SAX Handlers.</code>.
    * </p>
    * @throws <code>SAXException</code> when things go wrong
    public void endDocument() throws SAXException {
    System.out.println("...Parsing ends.");
    * <p>
    * This will indicate that a processing instruction (other than
    * the XML declaration) has been encountered.
    * </p>
    * @param target <code>String</code> target of PI
    * @param data <code>String</code containing all data sent to the PI.
    * This typically looks like one or more attribute value
    * pairs.
    * @throws <code>SAXException</code> when things go wrong
    public void processingInstruction(String target, String data)
    throws SAXException {
    System.out.println("PI: Target:" + target + " and Data:" + data);
    * <p>
    * This will indicate the beginning of an XML Namespace prefix
    * mapping. Although this typically occur within the root element
    * of an XML document, it can occur at any point within the
    * document. Note that a prefix mapping on an element triggers
    * this callback <i>before</i> the callback for the actual element
    * itself (<code>{@link #startElement}</code>) occurs.
    * </p>
    * @param prefix <code>String</code> prefix used for the namespace
    * being reported
    * @param uri <code>String</code> URI for the namespace
    * being reported
    * @throws <code>SAXException</code> when things go wrong
    public void startPrefixMapping(String prefix, String uri) {
    System.out.println("Mapping starts for prefix " + prefix +
    " mapped to URI " + uri);
    * <p>
    * This indicates the end of a prefix mapping, when the namespace
    * reported in a <code>{@link #startPrefixMapping}</code> callback
    * is no longer available.
    * </p>
    * @param prefix <code>String</code> of namespace being reported
    * @throws <code>SAXException</code> when things go wrong
    public void endPrefixMapping(String prefix) {
    System.out.println("Mapping ends for prefix " + prefix);
    * <p>
    * This reports the occurrence of an actual element. It will include
    * the element's attributes, with the exception of XML vocabulary
    * specific attributes, such as
    * <code>xmlns:[namespace prefix]</code> and
    * <code>xsi:schemaLocation</code>.
    * </p>
    * @param namespaceURI <code>String</code> namespace URI this element
    * is associated with, or an empty
    * <code>String</code>
    * @param localName <code>String</code> name of element (with no
    * namespace prefix, if one is present)
    * @param rawName <code>String</code> XML 1.0 version of element name:
    * [namespace prefix]:[localName]
    * @param atts <code>Attributes</code> list for this element
    * @throws <code>SAXException</code> when things go wrong
    public void startElement(String namespaceURI, String localName,
    String rawName, Attributes atts)
    throws SAXException {
    System.out.print("startElement: " + localName);
    if (!namespaceURI.equals("")) {
    System.out.println(" in namespace " + namespaceURI +
    " (" + rawName + ")");
    } else {
    System.out.println(" has no associated namespace");
    for (int i=0; i<atts.getLength(); i++)
    System.out.println(" Attribute: " + atts.getLocalName(i) +
    "=" + atts.getValue(i));
    * <p>
    * Indicates the end of an element
    * (<code></[element name]></code>) is reached. Note that
    * the parser does not distinguish between empty
    * elements and non-empty elements, so this will occur uniformly.
    * </p>
    * @param namespaceURI <code>String</code> URI of namespace this
    * element is associated with
    * @param localName <code>String</code> name of element without prefix
    * @param rawName <code>String</code> name of element in XML 1.0 form
    * @throws <code>SAXException</code> when things go wrong
    public void endElement(String namespaceURI, String localName,
    String rawName)
    throws SAXException {
    System.out.println("endElement: " + localName + "\n");
    * <p>
    * This will report character data (within an element).
    * </p>
    * @param ch <code>char[]</code> character array with character data
    * @param start <code>int</code> index in array where data starts.
    * @param end <code>int</code> index in array where data ends.
    * @throws <code>SAXException</code> when things go wrong
    public void characters(char[] ch, int start, int end)
    throws SAXException {
    String s = new String(ch, start, end);
    System.out.println("characters: " + s);
    * <p>
    * This will report whitespace that can be ignored in the
    * originating document. This is typically only invoked when
    * validation is ocurring in the parsing process.
    * </p>
    * @param ch <code>char[]</code> character array with character data
    * @param start <code>int</code> index in array where data starts.
    * @param end <code>int</code> index in array where data ends.
    * @throws <code>SAXException</code> when things go wrong
    public void ignorableWhitespace(char[] ch, int start, int end)
    throws SAXException {
    String s = new String(ch, start, end);
    System.out.println("ignorableWhitespace: [" + s + "]");
    * <p>
    * This will report an entity that is skipped by the parser. This
    * should only occur for non-validating parsers, and then is still
    * implementation-dependent behavior.
    * </p>
    * @param name <code>String</code> name of entity being skipped
    * @throws <code>SAXException</code> when things go wrong
    public void skippedEntity(String name) throws SAXException {
    System.out.println("Skipping entity " + name);
    * <b><code>MyErrorHandler</code></b> implements the SAX
    * <code>ErrorHandler</code> interface and defines callback
    * behavior for the SAX callbacks associated with an XML
    * document's errors.
    class MyErrorHandler implements ErrorHandler {
    * <p>
    * This will report a warning that has occurred; this indicates
    * that while no XML rules were "broken", something appears
    * to be incorrect or missing.
    * </p>
    * @param exception <code>SAXParseException</code> that occurred.
    * @throws <code>SAXException</code> when things go wrong
    public void warning(SAXParseException exception)
    throws SAXException {
    System.out.println("**Parsing Warning**\n" +
    " Line: " +
    exception.getLineNumber() + "\n" +
    " URI: " +
    exception.getSystemId() + "\n" +
    " Message: " +
    exception.getMessage());
    throw new SAXException("Warning encountered");
    * <p>
    * This will report an error that has occurred; this indicates
    * that a rule was broken, typically in validation, but that
    * parsing can reasonably continue.
    * </p>
    * @param exception <code>SAXParseException</code> that occurred.
    * @throws <code>SAXException</code> when things go wrong
    public void error(SAXParseException exception)
    throws SAXException {
    System.out.println("**Parsing Error**\n" +
    " Line: " +
    exception.getLineNumber() + "\n" +
    " URI: " +
    exception.getSystemId() + "\n" +
    " Message: " +
    exception.getMessage());
    throw new SAXException("Error encountered");
    * <p>
    * This will report a fatal error that has occurred; this indicates
    * that a rule has been broken that makes continued parsing either
    * impossible or an almost certain waste of time.
    * </p>
    * @param exception <code>SAXParseException</code> that occurred.
    * @throws <code>SAXException</code> when things go wrong
    public void fatalError(SAXParseException exception)
    throws SAXException {
    System.out.println("**Parsing Fatal Error**\n" +
    " Line: " +
    exception.getLineNumber() + "\n" +
    " URI: " +
    exception.getSystemId() + "\n" +
    " Message: " +
    exception.getMessage());
    throw new SAXException("Fatal Error encountered");

    I have seen this error when I'm executing inside one of the (j2ee sun reference implementation) server containers (either web or ejb). I believe its caused by "something" having previously loaded the "sax 1 driver class". In my case, I think the container or server is loading the sax parser from a jar that contains a sax 1 version. If you can, ensure that nothing is loading the sax 1 parser from another jar on your system. Verify that you are loading the sax parser from a jar containing the latest version so that you get the sax 2 compliant parser. Good luck!

  • Provider com.sun.xml.internal.ws.spi.ProviderImpl not found

    I'm trying to run a webservice client on jdk1.5 and gives me the following error:
    javax.xml.ws.WebServiceException: Provider com.sun.xml.internal.ws.spi.ProviderImpl not found
    Any suggestions will be appreciated.

    michallis wrote:
    I had this problem once on a Linux where i forgot that openJDK was installed.
    openJDK doesn't contain sun packages.Great, but OpenJDK exists since Java 6 and this issue is about Java 5. jtahlborn's reply is still the relevant one.

  • Provider com.sun.xml.rpc.client.ServiceFactoryImpl not found

    I'm working on a Java Aplication and when I run the Application with Jdeveloper 11 I get this error
    javax.xml.rpc.ServiceException: Provider com.sun.xml.rpc.client.ServiceFactoryImpl not found
    When I run the Application with Jdeveloper 10.1.3 and it's works fine.
    What is the cause?
    thanks

    You may wish to compare the jar files referenced in both versions of JDeveloper, I did a quick Google search and found the following page which lists the .jar files that contain this class:
    http://javacio.us/search?q=com%2Fsun%2Fxml%2Frpc%2Fclient%2FServiceFactoryImpl+more%3Ajar_files&inline=true
    Hope this helps,
    Sean

  • Error: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found

    HI.
    I embed tomcat in my application.when i start embed tomcat ,the following message appears :
    javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
    at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:99)
    at org.apache.commons.modeler.util.DomUtil.readXml(DomUtil.java:284)
    at org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute(MbeansDescriptorsDOMSource.java:130)
    at org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDescriptors(MbeansDescriptorsDOMSource.java:120)
    i set System.setProperty("javax.xml.parsers.DocumentBuilderFactory", "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl");
    ,but not work.
    by the way :my classpath include xercesImpl.jar & xmlParserAPIs.jar, when i remove them ,my application
    work well.

    by the way my classpath include xercesImpl.jar & xmlParserAPIs.jar, when i remove them ,my application work well.
    Is another jar file which has the org.apache.xerces.jaxp.DocumentBuilderFactoryImpl clas in the Classpath.?

  • Org.xml.sax.SAXParseException: com.sun.xml.parser/P-067

    this is an error I get, i tried everything to solve it, please help
    org.xml.sax.SAXParseException: com.sun.xml.parser/P-067
    at com.sun.xml.parser.Parser.fatal(Parser.java:2817)
    at com.sun.xml.parser.Parser.fatal(Parser.java:2805)
    at com.sun.xml.parser.Parser.parseInternal(Parser.java:493)
    at com.sun.xml.parser.Parser.parse(Parser.java:284)
    at ParseXML.readFile(ParseXML.java:56)
    at ParseXML.getXMLData(ParseXML.java:40)

    Googling I get this....
    P-067 = Document root element is missing.

  • Help Me what is the "Parse Error: com.sun.xml.parser/P-067"?

    OS: Window 2000 (it will be changed HP-UX 11)
    Web Server: iPlanet 4.1 SP14
    DB Server : Oracle 8i
    JDK: 1.2.2_017
    Tag Library : jakarta-taglibs-dbtags-1.0.0 (http://jakarta.apache.org/taglibs/doc/dbtags-doc/intro.html)
    DTD file: web-jsptaglib_1_1.dtd ( actually, jakarta used http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd, but that dosen't work in iPlanet 4.1 SP 14. so i changed the path of dtd location to web-jsptaglib_1_1.dtd like the following tld file.)
    How should I use Jakarta DB Tag Library in iPlanet 4.1 SP? I'm very tired to set all of thses stupid things!
    I can't use Tag Library in iPlanet 4.1 SP 14
    Any comments make me happy~!
    Please, help me~!
    &#9632; Error Message
    [15/3/2005:20:21:41] info ( 4552): Internal Info: loading servlet /test/jdbc5.jsp
    [15/3/2005:20:21:42] info ( 4552): JSP: JSP1x compiler threw exception
    org.apache.jasper.JasperException: Unable to open taglibrary http://localhost/tlds/dbtags5.jar : Parse Error in the tag library descriptor: com.sun.xml.parser/P-067
         at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java, Compiled Code)
         at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:119)
         at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java, Compiled Code)
         at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1022)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1018)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code)
         at com.netscape.server.http.servlet.NSServletEntity.load(NSServletEntity.java:231)
         at com.netscape.server.http.servlet.NSServletEntity.update(NSServletEntity.java:149)
         at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:453)
    &#9632; TLD File
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
         "http://localhost/dtd/web-jsptaglib_1_1.dtd">
    <!-- a tab library descriptor -->
    <!-- "http://java.sun.com/j2ee/dtds/jsptaglibrary_1_2.dtd" -->
    <taglib>
         <tlibversion>1.0</tlibversion>
    <jspversion>1.1</jspversion>
    <prefix>DBTag</prefix>
    <urn></urn>
    <info>
              A simple db tab library for the examples
    </info>
    <tag>
    <name>connection</name>
    <tagclass>org.apache.taglibs.dbtags.connection.ConnectionTag</tagclass>
    <teiclass>org.apache.taglibs.dbtags.connection.ConnectionTEI</teiclass>
    <bodycontent>JSP</bodycontent>
    <attribute>
    <name>id</name>
    <required>yes</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>dataSource</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>jndiName</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>url</name>
    <tagclass>org.apache.taglibs.dbtags.connection.DatabaseURLTag</tagclass>
    <bodycontent>JSP</bodycontent>
    <attribute>
    <name>initParameter</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>jndiName</name>
    <tagclass>org.apache.taglibs.dbtags.connection.JndiNameTag</tagclass>
    <bodycontent>JSP</bodycontent>
    <attribute>
    <name>initParameter</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>driver</name>
    <tagclass>org.apache.taglibs.dbtags.connection.DriverTag</tagclass>
    <bodycontent>JSP</bodycontent>
    <attribute>
    <name>initParameter</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>userId</name>
    <tagclass>org.apache.taglibs.dbtags.connection.UserIdTag</tagclass>
    <bodycontent>JSP</bodycontent>
    <attribute>
    <name>initParameter</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>password</name>
    <tagclass>org.apache.taglibs.dbtags.connection.PasswordTag</tagclass>
    <bodycontent>JSP</bodycontent>
    <attribute>
    <name>initParameter</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>closeConnection</name>
    <tagclass>org.apache.taglibs.dbtags.connection.CloseConnectionTag</tagclass>
    <bodycontent>empty</bodycontent>
    <attribute>
    <name>conn</name>
    <required>yes</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>statement</name>
    <tagclass>org.apache.taglibs.dbtags.statement.StatementImplTag</tagclass>
    <teiclass>org.apache.taglibs.dbtags.statement.StatementTEI</teiclass>
    <bodycontent>JSP</bodycontent>
    <attribute>
    <name>id</name>
    <required>yes</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>conn</name>
    <required>yes</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>escapeSql</name>
    <tagclass>org.apache.taglibs.dbtags.statement.EscapeSQLTag</tagclass>
    <bodycontent>JSP</bodycontent>
    </tag>
    <tag>
    <name>query</name>
    <tagclass>org.apache.taglibs.dbtags.statement.QueryTag</tagclass>
    <bodycontent>JSP</bodycontent>
    </tag>
    <tag>
    <name>execute</name>
    <tagclass>org.apache.taglibs.dbtags.statement.ExecuteTag</tagclass>
    <bodycontent>JSP</bodycontent>
    <attribute>
    <name>ignoreErrors</name>
    <required>no</required>
    <rtexprvalue>yes</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>preparedStatement</name>
    <tagclass>org.apache.taglibs.dbtags.preparedstatement.PreparedStatementImplTag</tagclass>
    <teiclass>org.apache.taglibs.dbtags.preparedstatement.PreparedStatementTEI</teiclass>
    <bodycontent>JSP</bodycontent>
    <attribute>
    <name>id</name>
    <required>yes</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>conn</name>
    <required>yes</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>setColumn</name>
    <tagclass>org.apache.taglibs.dbtags.preparedstatement.SetColumnTag</tagclass>
    <bodycontent>JSP</bodycontent>
    <attribute>
    <name>position</name>
    <required>yes</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>resultSet</name>
    <tagclass>org.apache.taglibs.dbtags.resultset.ResultSetTag</tagclass>
    <teiclass>org.apache.taglibs.dbtags.resultset.ResultSetTEI</teiclass>
    <bodycontent>JSP</bodycontent>
    <attribute>
    <name>id</name>
    <required>yes</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>loop</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>name</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>wasNull</name>
    <tagclass>org.apache.taglibs.dbtags.resultset.WasNullTag</tagclass>
    <bodycontent>JSP</bodycontent>
    </tag>
    <tag>
    <name>wasNotNull</name>
    <tagclass>org.apache.taglibs.dbtags.resultset.WasNotNullTag</tagclass>
    <bodycontent>JSP</bodycontent>
    </tag>
    <tag>
    <name>getColumn</name>
    <tagclass>org.apache.taglibs.dbtags.resultset.GetColumnTag</tagclass>
    <teiclass>org.apache.taglibs.dbtags.resultset.BaseGetterTEI</teiclass>
    <bodycontent>empty</bodycontent>
    <attribute>
    <name>position</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>colName</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>to</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>getNumber</name>
    <tagclass>org.apache.taglibs.dbtags.resultset.GetNumberTag</tagclass>
    <teiclass>org.apache.taglibs.dbtags.resultset.BaseGetterTEI</teiclass>
    <bodycontent>empty</bodycontent>
    <attribute>
    <name>position</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>colName</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>to</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>locale</name>
    <required>no</required>
    <rtexprvalue>yes</rtexprvalue>
    </attribute>
    <attribute>
    <name>format</name>
    <required>no</required>
    <rtexprvalue>yes</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>getTime</name>
    <tagclass>org.apache.taglibs.dbtags.resultset.GetTimeTag</tagclass>
    <teiclass>org.apache.taglibs.dbtags.resultset.BaseGetterTEI</teiclass>
    <bodycontent>empty</bodycontent>
    <attribute>
    <name>position</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>colName</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>to</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>locale</name>
    <required>no</required>
    <rtexprvalue>yes</rtexprvalue>
    </attribute>
    <attribute>
    <name>format</name>
    <required>no</required>
    <rtexprvalue>yes</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>getTimestamp</name>
    <tagclass>org.apache.taglibs.dbtags.resultset.GetTimestampTag</tagclass>
    <teiclass>org.apache.taglibs.dbtags.resultset.BaseGetterTEI</teiclass>
    <bodycontent>empty</bodycontent>
    <attribute>
    <name>position</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>colName</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>to</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>locale</name>
    <required>no</required>
    <rtexprvalue>yes</rtexprvalue>
    </attribute>
    <attribute>
    <name>format</name>
    <required>no</required>
    <rtexprvalue>yes</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>getDate</name>
    <tagclass>org.apache.taglibs.dbtags.resultset.GetDateTag</tagclass>
    <teiclass>org.apache.taglibs.dbtags.resultset.BaseGetterTEI</teiclass>
    <bodycontent>empty</bodycontent>
    <attribute>
    <name>position</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>colName</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>to</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>no</required>
    <rtexprvalue>no</rtexprvalue>
    </attribute>
    <attribute>
    <name>locale</name>
    <required>no</required>
    <rtexprvalue>yes</rtexprvalue>
    </attribute>
    <attribute>
    <name>format</name>
    <required>no</required>
    <rtexprvalue>yes</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>wasEmpty</name>
    <tagclass>org.apache.taglibs.dbtags.resultset.WasEmptyTag</tagclass>
    <bodycontent>JSP</bodycontent>
    </tag>
    <tag>
    <name>wasNotEmpty</name>
    <tagclass>org.apache.taglibs.dbtags.resultset.WasNotEmptyTag</tagclass>
    <bodycontent>JSP</bodycontent>
    </tag>
    <tag>
    <name>rowCount</name>
    <tagclass>org.apache.taglibs.dbtags.resultset.RowCountTag</tagclass>
    <bodycontent>empty</bodycontent>
    </tag>
    </taglib>

    Googling I get this....
    P-067 = Document root element is missing.

  • Missing com.sun.xml.parser in Java EE 5

    I am upgrading from J2EE 1.4 to 5. In 1.4 I was using j2ee.jar file, but after installing J2EE 5, I think the file has changed to javaee.jar. But javaee.jar is missing the package com.sun.xml.parser. Can anybody tell me where I can find it?
    Thanks
    Aditi

    I am upgrading from J2EE 1.4 to 5. In 1.4 I was using j2ee.jar file, but after installing J2EE 5, I think the file has changed to javaee.jar. But javaee.jar is missing the package com.sun.xml.parser. Can anybody tell me where I can find it?
    Thanks
    Aditi

  • Re: com.sun.faces.config.ConfigListener not found

    I am using Tomcat 4.1.24 and got the demos from EA4 working. Now I am getting an error in my own JSF WAR file about com.sun.faces.config.ConfigListener class cannot be found.
    What jar file would I be missing?
    Thank you.

    Hi All,
    I am facing the same problem on TOmcat 4.0. I copied the jsf-ri.jar from war file/lib to tomcat_home/common/lib and the problem was resolved. Can anyone from Sun address this issue please as to why this is so?
    Also, now the container is not able to access the Faces Servlet. I should mention here that this does not work only when deployed as a war file.
    regards,
    piyu

  • WebRowSet & com.sun.xml.parser.Resolver error

    Hi all,
    I have a xml file which is generated by a webrowset on the server and which is read by a webrowset object in an applet with readXml method. I know that the xml is sent in a well-formed format as I checked it in IE6.
    I also know that the applet is reading the url correctly. From my searches I have found people refering to chaning the SYTEM_ID property which keeps the location of the DTD file to point to a local copy to avoid lookup problems. I have done this and still get the error.
    I have an idea that it may be the way the XML file is being read. (See code below.)
    URL url = new URL ("http","localhost",8081,"/getXML.jsp");
    HttpURLConnection host =(HttpURLConnection)url.openConnection();
    host.connect();
    java.io.Reader tmp = new java.io.InputStreamReader(host.getInputStream());
    java.io.BufferedReader buf = new BufferedReader(tmp);
    webrs.readXml (buf);
    Any ideas or pointer appreciated.
    TIA

    Hmm. Could you perhaps post the full stack trace and error message from the exception.
    .P.

  • Com.sun.java.swing package not found

    All my other programs compile fine if they're not using that package

    yea...wrong import....
    use
    import javax.swing.*;notice the X

  • DocumentBuilderFactoryImpl not found Printing Mac OS X

    OS - Mac OS X 10.3.6
    Java - 1.4.1_01
    I'm attempting to print a report generated by Jasper Reports in a Java Application. I select the print button in the frame, and the print dialog for Mac OS X appears. I select "Print" and the following exception appears in the console ...
    Exception in thread "Thread-1" javax.xml.parsers.FactoryConfigurationError:
    Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
            at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:99)
            at net.sf.jasperreports.engine.util.JRStyledTextParser.<init>(JRStyledTextParser.java:145)
            at net.sf.jasperreports.engine.export.JRGraphics2DExporter.<init>(JRGraphics2DExporter.java:152)
            at net.sf.jasperreports.engine.print.JRPrinterAWT.print(JRPrinterAWT.java:263)
    JavaAWT: Assertion failure: Java exception thrown
    JavaAWT: File src/macosx/native/apple/awt/util/AWTException.m; Line 40
    JavaAWT: Assertion failure: _javaException
    JavaAWT: File src/macosx/native/apple/awt/util/AWTException.m; Line 48I discovered the following in the API about the FactoryConfigurationError which is seen in the stack trace..
    public class FactoryConfigurationError extends Error
    Thrown when a problem with configuration with the Parser Factories exists. This error will typically be thrown when the class of a parser factory specified in the system properties cannot be found or instantiated.
    I have included the following in the Classpath in my Manifest:
    jasperreports-0.6.2.jar itext-1.01.jar commons-logging-1.0.2.jar commons-beanutils-1.5.jar commons-digester-1.3.jar commons-collections-2.1.jar xerces.jar
    And I had been using the following System property for the parser...
    System.setProperty("org.xml.sax.driver", "org.apache.xerces.parsers.SAXParser");I have discovered though that Mac OS X JRE version 1.4.1 (bundled within the operating system itself) contains the Crimson implementation of JAXP 1.2. As indicated in this thread:
    http://forum.java.sun.com/thread.jspa?forumID=34&messageID=2031200&threadID=448102
    This may be what is causing my problem. Although the xerces jar is on the classpath, it may be that the Crimson is being used or should be used instead(?) So I tried setting the parser to use the Crimson Driver with no success..
    System.setProperty("org.xml.sax.driver", "org.apache.crimson.parser.XMLReaderImpl");Also unsuccessfully I tried explicitly setting the System property for the DocumentBuilderFactory as suggested here:
    http://developer.apple.com/documentation/WebObjects/XML_Serialization/Transformation/chapter_5_section_4.html
    System.setProperty("javax.xml.parsers.DocumentBuilderFactory",
    "org.apache.crimson.jaxp.DocumentBuilderFactoryImpl");But the same exception as previously posted is thrown.
    I have no troubles printing reports in the same manner on Windows or Linux. Usuing the same Manifest, classpath, jar files etc..I have only seen the error on Mac OS X. Any help would be appreciated. Thanks so much.

    I agree with your observation: removing xerces.jar from the classpath fixes the printing problem, but the XML parsing speed is something like 4-5 times slower (1.4.2_05, 10.3.7, PowerBook 1.5GHz, 1Gb) with the default XML parser than using Apache DOMParser explicitely... my application can print, but the rest of the XML manipulations is terribly slower. Great! : (
    --j                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to download sun XML parser/Where to find the parser itself to downloa?.

    I saw the website below. But I do not have a clue of what to download and where to store any files in my directories and how to set the classpaths to run the file below.
    http://java.sun.com/developer/earlyAccess/xml/index.html
    to run this program
    import java.io.File;
    import com.sun.xml.parser.Resolver;
    import com.sun.xml.tree.XmlDocument;
    import org.xml.sax.InputSource;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    public class Simpleparser
    public static void main (String argv [])
         InputSource input;
    XmlDocument doc;
    }

    The date on that page is 2002-10-14. It is totally obsolete. If you saw examples using a parser whose name starts with "com.sun" then those examples are totally obsolete as well.
    If you're using Java 1.4 then it already includes an XML parser. Just look for Java XML tutorials that are more recent and read them. You don't need to download anything.

Maybe you are looking for

  • Steps for File to IDOC and IDOC to file Scenario

    Settings to be done at R/3 like SM59,WE21,WE20 Setting to be done at XI Can pls somebody send good blog for it. Regards Raj

  • [SOLVED] Allowing root ssh?

    Do you guys think it would be a good idea if I allowed root ssh on a system that only allows key authentication? I gave the root user a 4096 byte (or at least I think it was byte) long key, just because I want an even smaller chance of someone gettin

  • Trusted Recon OIM Password Setup

    Hi Experts. My User profiles are stored in Oracle Data base table and I am reconciling the users every 10 minutes using the trusted reconciliation. I have done the following mapping in GTC in admin Console. Source Attribute Name = OIM Attribute Name

  • Cannot align images from photoshop

    i am importing images from photoshop and when i try and put them side by side one goes underneath. its like in microsoft word when you have the paragraphs on when you put images together. i need a option to un-wrap the images so they can go side by s

  • After upgrading to 9.1 CC getting Startup Alert re:plug-ins

    After upgrading InDesign CC to 9.1 this morning, getting two dialogs: 1) Cannot load InCopy Bridge UI.InDesignPlugin because it requires version 9.1 or later of the Username UI.InDesignPlugin plug-in. Please contact vendor for compatible version of U