Error while creating DocumentBuilderFactory object for parsing XML string

When I try to execute the following statement in an EJB class,
DocumentBuilderFactory df=DocumentBuilderFactory.newInstance();
I get the following exception:
javax.xml.parsers.FactoryConfigurationError: Provider org.apache.crimson.jaxp.DocumentBuilderFactoryImpl not found
When the same statement is executed from a standalone java class, it works fine.
The IDE used is Visual Age for Java.
The JAXP package used is JAXP 1.0.1
Can anybody please let me know how can we overcome this problem?
Thanks and Regards,
Shashi Anand B
E-Mail : [email protected]

javax.xml.parsers.FactoryConfigurationError: Provider
org.apache.crimson.jaxp.DocumentBuilderFactoryImpl not
foundI suspect that this may be due to a classpath issue and/or a Java version issue. Doe your Visual Age installation use Java 1.3? Do you have Sun Java 1.4 also installed on your system? It may be that when you are executing from a standalone Java class, that you are using the Java 1.4 runtime, which include the org.apach.crimson.* classes. Earlier version of Java do not include this, although it may be in the JAXP package.
I think that your Visual Age IDE is configured such that the DocumentBuilderFactory is unable to find the appropriate implementation.
I hope this helps!
- David

Similar Messages

  • Getting Error while creating Document object  after  parsing XML String

    Hi All,
    I have been trying to parse an XML string using the StringReader and InputSource interface but when I am trying to create Document Object using Parse() method getting error like
    [Fatal Error] :2:6: The processing instruction target matching "[xX][mM][lL]" is not allowed.
    seorg.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
    Please find the code below which i have been experimenting with:
    import java.io.BufferedReader;
    import java.io.FileNotFoundException;
    import java.io.FileReader;
    import java.io.IOException;
    import java.io.StringReader;
    import java.util.List;
    import java.util.*;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import org.xml.sax.InputSource;
    import org.xml.sax.SAXException;
    import java.io.*;
    public class TestMain {
         public static void main(String[] args) {
              String file = "";
              file = loadFileContent("C:\\Test.xml");
              System.out.println("contents >> "+file);
              parseQuickLinksFileContent(file);
    public static void parseQuickLinksFileContent(String fileContents) {
    PWMQuickLinksModelVO objPWMQuickLinksModelVO = new PWMQuickLinksModelVO();
         try {
    DocumentBuilderFactory factory =           DocumentBuilderFactory.newInstance();
         DocumentBuilder builder = factory.newDocumentBuilder();
         StringReader objRd = new StringReader(fileContents);
         InputSource objIs = new InputSource(objRd);
         Document document = builder.parse(objIs); // HERE I am getting Error.
         System.out.println(document.toString());
    What is happening while I am using builder.parse() method ???
    Thanks,
    Rajendra.

    Getting following error
    [Fatal Error] :2:6: The processing instruction target matching "[xX][mM][lL]" is not allowed.
    seorg.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.

  • Error while creating Temse Object (W2 form in PU19)

    Team,
    When i try to create the w2 in PU19, i am getting the error statingthat ERROR WHILE CREATING TEMSE OBJECT HRLUS01A100900109026.Please advise me in this.(We are maintaining the HRSP-42).It is veryurgent,Expecting your valuable Guidance.Points sure for the answers.
    Regards
    Priya.K

    Hi
    let me know weather r u using any reference object which contain the routinee.
    regards,
    chandra.

  • Error while creating PDF object

    We are using Adobe Interactive Forms with Guided Procedures.  Netweaver 7.0 SP14 (Dual stack Java & Abap).  All was working well it appears until we configured SSL for ADS - don't know for sure if this caused the problem but it is the only change we can identify around the time that our problems began.
    When we attempt to Create an Impersonalized Form we receive the following error -
    Cannot retrieve template structure: Execution ended in an unrecognized state
    When we attempt to test a callable object associated with an interactive form we receive -
    Error while creating PDF object: PDF object could not be created; object returned from ADS is null.
    In both cases the entries in the default trace log are the same -
    Service XMLFormService: Native process (PID=0) /usr/sap/UFD/DVEBMGS02/j2ee/os_libs/adssap/XMLFormService/bin/XMLForm.exe terminated abnormally with error code 134
    PDF object could not be created; object returned from ADS is null
    com.sap.caf.eu.gp.base.exception.EngineException: PDF object could not be created; object returned from ADS is null
    at com.sap.caf.eu.gp.model.iforms.adapter.pdf.AdobePDFAdapter.createInstanceDocument(AdobePDFAdapter.java:542)
    at com.sap.caf.eu.gp.model.iforms.preproc.FormPreprocessor.execute(FormPreprocessor.java:507)
    Like I mentioned earlier this functionality was working successfully in our environment at one time.
    Any guidance in this matter would be greatly appreciated.
    Thanks,
    Joe

    Joe,
    If you originally configured ADS without SSL, I would recommend going back through the ADS Configuration Guide for your NetWeaver stack and make sure all the necessary changes for SSL were made.  I've seen another case where a step was missed in SSL configuration for ADS which caused a form to error.
    If everything looks good based on your SSL configuration, I would recommend creating an OSS Note.
    -Matt

  • Error while getting data objects for instance

    Hello Expert,
    I am getting some weird error - whenever there is a new process is triggered and I check context Data, I get following error -
    "Error while getting data objects for instance processinstanceid"
    Thanks is advance
    Priya

    Hi Priya,
    this is a known issue in the xml processing of the Java Virtual Machine. Please refer to the SAP Note for this issue: 1949395
    This should solve your issue.
    Best regards,
    Stefan

  • Error while creating a task for creating an generic task  /app/dac/CustomSQ

    Hi ,
    I have created a sql file in DAC server /app/dac/CustomSQLs/ ,just to fire an update sql in database
    In DAC task tab i have created a task with the following:
    Command for incremental load :/app/dac/CustomSQLs/DBNameBeforeLoad.sql
    Primary source :flatfileconnection
    target source:DBCONNECTION_OLAP
    Execution type:SQL FILE
    Task phase:GENERAL
    I created subject area and assembled ,then created a Execution plan.
    When i try to execute this EP ,it shows the following error in DAC log:
    ANOMALY INFO::: Error while creating a task for creating an generic task /app/dac/CustomSQLs/DBNameBeforeLoad.sql
    MESSAGE:::/app/dac/CustomSQLs/DBNameBeforeLoad.sql - invalide template name!
    EXCEPTION CLASS::: com.siebel.analytics.etl.etltask.TaskInitializationException
    com.siebel.analytics.etl.etltask.SQLFileTask.doInit(SQLFileTask.java:69)
    com.siebel.analytics.etl.etltask.GenericTaskImpl.init(GenericTaskImpl.java:194)
    Does my above configuration is correct ..?

    verify the following settings:
    1. mapping of ECC plant and storage location and logical system number with the appropriate availability group code since this links the stock types in EWM to ECC org elements (SPRO -> EWM -> Interfaces -> ERP Integration -> Goods movement)
    2. ensure the availability group configuration is correct (SPRO -> EWM -> GR Process -> Configure availability group for putaway) - check all applicable nodes in this configuration since the availability group code is assigned in the pertinent storage types

  • Error while creating info object

    error while creating info object a character
    Info object may be a maximum of  000060 digits...... what would be the error?
    Thanks ALL

    Hi,
    The maximum length supported by one CHAR type infoobject is 60. Check whether you have assigned more.
    If you have to load more length ( more than 60) split the total thing into different infoobjects. Create different infoobjects and split the total thing into them - like 1st 60 char in 1st infoobject, char 61-120 in 2nd infoobject and so on. Then you can again concatenate them.
    Thanks,
    Indrashis

  • Error while Creating a formula for field AZNOR (T-Code : OP17)

    Dear Experts,
    i am facing a problem in Transaction OP17 while creating a formula for field AZNOR ( No of indivual capacity in work center) in work center (T-Code : CR02) .
    It shows the error
    The data object "F" has no component called "AZNOR''..
    Please let me know the solution..
    Thanks & Regards
    Birendra Kumar

    Hi,
    I have the same problem.
    Could You tell me witch is the correct origin?
    Thanks a lot!
    Bye
    Laura

  • Linker Error while creating shared object.

    While creating shared object we got "file processing error".
    Below is our compilation line and the error out put.
    ==================
    /net/icom3/opt//SUNWspro/SC5.0/bin/CC -o fn_ctx_onc_fn_files.so.1 -G -h fn_ctx_onc_fn_files.so.1 -z text -z defs -z combreloc -norunpath -nolib -Qo
    ption ld -R/usr/lib/fn pics/FNSP_filesOrgContext_default.o pics/FNSP_filesFlatContext_default.o pics/fnsp_internal_common.o pics/FNSP_nisAddress.o
    pics/FNSP_nisOrgContext_default.o pics/FNSP_nisFlatContext_default.o pics/FNSP_hash_function.o pics/FNSP_filesHierContext.o pics/FNSP_filesDotC
    ontext.o pics/FNSP_filesFlatContext.o pics/FNSP_filesHUContext.o pics/FNSP_filesWeakSlashContext.o pics/FNSP_filesPrinternameContext.o pics/FNSP_
    filesPrinterObject.o pics/FNSP_filesOrgContext.o pics/FNSP_filesImpl.o pics/fnsp_files_internal.o pics/onc_fn_files.o -lnsl -lc -L/user/vts/X
    FN_CHECK/jnk/usr/lib/fn -lxfn -lfn_spf -lfnsp -lfn_p
    ld: fatal: File processing errors. No output written to fn_ctx_onc_fn_files.so.1
    ==================================
    Thanks in advance.
    -Lokesh MS

    Hi,
    The maximum length supported by one CHAR type infoobject is 60. Check whether you have assigned more.
    If you have to load more length ( more than 60) split the total thing into different infoobjects. Create different infoobjects and split the total thing into them - like 1st 60 char in 1st infoobject, char 61-120 in 2nd infoobject and so on. Then you can again concatenate them.
    Thanks,
    Indrashis

  • Error while creating datasource userdsn for oracle 10g Errorcode (998)

    while creating datasource userdsn for oracle 10g i am getting error "The setup routines for the oracle in OraDb10g_home1 odbc driver could not be loaded due to system error code 998" please give reply soon

    Thanks for your reply , Steve.
    I noticed that there is a default datasouce on the EM with the following parameters:
    <data-source
              class="com.evermind.sql.DriverManagerDataSource"
              name="OracleDS"
              location="jdbc/OracleCoreDS"
              xa-location="jdbc/xa/OracleXADS"
              ejb-location="jdbc/OracleDS"
              connection-driver="oracle.jdbc.driver.OracleDriver"
              username="scott"
              password="->pwForScott"
              url="jdbc:oracle:thin:@localhost:1521:oracle"
              inactivity-timeout="30"
         />
    The location and xa-location attributes that I use for my "test" data source are the same as the default one. So, could this be the issue?
    What should be the values for location and xa-location attributes from my "test" data source?
    Any help will be greatly appreciated.
    Thanks,
    Shyam

  • Error while creating logical port for Consumer Proxy in SOAMANGER

    Hi,
    While creating logical port for my consumer proxy in SOAMANGER, I am getting the error shown below
    SRT Framework exception: HTTP: Current user does not have the required authorization to access the HTTP destination
    I have searched in the forums but none of the answers helped me.
    I have specifed my PI user ID and password and the user has the followwing roles assigned to it.
    SAP_BC_WEBSERVICE_SERVICE_USER
    SAP_BC_WEBSERVICE_ADMIN_TEC
    SAP_BC_WEBSERVICE_CONSUMER
    SAP_BC_WEBSERVICE_ADMIN
    Current user in the error message refers to the PI user that i have specified or the user with which i have logged in the backend ABAP system?
    Please help me reslove this issue.
    Thanks and regards
    Sreehari Nambiar

    Hi,
    Please add the following roles as well.
    SAP_BC_WEBSERVICE_ADMIN_BIZ
    SAP_BC_WEBSERVICE_DEBUGGER
    SAP_BC_WEBSERVICE_OBSERVER
    Also make sure that you are doing the role comparison  after adding all SAP* roles in your profile.
    Let me know if this works?
    Thanks,
    Sridhar

  • Getting the following error while creating the model for webdynpro app.

    Plugin Name: Web Dynpro Model Editor Services
    Plugin ID  : com.sap.ide.webdynpro.service.modeleditor
    Class      :ap.ide.webdynpro.modeleditor.wizards.model.              creation.ModelDialog
    Method     : nextPressed
    Exception  : org.eclipse.swt.SWTException: Failed to  execute runnable (java.lang.NoClassDefFoundError)
    This is the error i am getting while creating the model for the webdynpro application. Can some one help ?
    Thanks & Regards
    Lalith

    hi
    This error occurs mainly due to the reason that particular plugin is not there in the NWDS.
    So please try to reinstall the NWDS or try tracing out whether that particular plugin is there or not.
    Thank,
    kris

  • Error while creating a subtype  for object bus2005

    hi experts,
    i am trying to create a subtype for BUS2005
    when i create IFSTATUS under interfaces for the created subtype of BUS2005
    and try to REDEFINE it i am getting an error
    "Composite Definition not allowed for local elements"
    (i am saving this under local object.)

    Hi,
    I have the same problem.
    Could You tell me witch is the correct origin?
    Thanks a lot!
    Bye
    Laura

  • Error while creating Business Object

    Hello All,
    I am creating one business object for the Chapter ID. But while creating API method the error message is coming up as "Parameter <parametername> does not have a reference structure".
    But I already defined BAPI Structure which has the required fields and also i follow the Std. naming convenions.
    Kindly guide me for the same.
    Egarly Waiting for the reply.
    Regards
    Nilesh Shete

    Hi Nilesh,
    could you please go a bit more into detail?
    Best would be to post the interesting parts of your source code here.
    At the moment I can only guess that you created an adaptive RFC model. But did you also create a context node and bind the model to it?
    What do you mean with "creating API method" and "I am creating one business object for the Chapter ID"?
    Regards
    Helmut

  • Error while creating Ear File for project Containing (WAR+MAR) in jdev

    hi,
    I am trying to deploy my adf application containing MDS customization.While creating EAR from application properties--->deploy--->deploye to EAR i am getting following error.
    Wrote MAR file to C:\JDeveloper\mywork\MDSApp\deploy\AutoGeneratedMar.mar
    [04:40:07 PM] Wrote Web Application Module to C:\JDeveloper\mywork\MDSApp\ViewController\deploy\MDSApp_ViewController_webapp1.war
    *[04:40:07 PM] Warning: Some of the customization documents under '/' are packaged as part of WAR. This metadata cannot be accessed from WAR using MDS.*
    *[04:40:07 PM] Info: Namespace '/xliffbundles' is mapped to deploy-target metadata-store-usage 'MAR_TargetRepos' in adf-config.xml but no metadata from the namespace is included in the MAR*.
    [04:40:07 PM] Wrote Enterprise Application Module to C:\JDeveloper\mywork\MDSApp\deploy\MDSApp_application1.ear
    [04:40:07 PM] Elapsed time for deployment: 4 seconds
    [04:40:07 PM] ---- Deployment finished. ----
    my adf-config.xml is as below
    <?xml version="1.0" encoding="windows-1252" ?>
    <adf-config xmlns="http://xmlns.oracle.com/adf/config"
    xmlns:adf="http://xmlns.oracle.com/adf/config/properties"
    xmlns:sec="http://xmlns.oracle.com/adf/security/config">
    <adf:adf-properties-child xmlns="http://xmlns.oracle.com/adf/config/properties">
    <adf-property name="adfAppUID" value="MDSApp-3718"/>
    </adf:adf-properties-child>
    <sec:adf-security-child xmlns="http://xmlns.oracle.com/adf/security/config">
    <CredentialStoreContext credentialStoreClass="oracle.adf.share.security.providers.jps.CSFCredentialStore"
    credentialStoreLocation="../../src/META-INF/jps-config.xml"/>
    <sec:JaasSecurityContext initialContextFactoryClass="oracle.adf.share.security.JAASInitialContextFactory"
    jaasProviderClass="oracle.adf.share.security.providers.jps.JpsSecurityContext"
    authorizationEnforce="true"
    authenticationRequire="true"/>
    </sec:adf-security-child>
    <adf-mds-config xmlns="http://xmlns.oracle.com/adf/mds/config">
    <mds-config xmlns="http://xmlns.oracle.com/mds/config" version="11.1.1.000">
    <cust-config>
    <match path="/">
    <customization-class name="oracle.model.mycompany.SiteCC"/>
    <customization-class name="oracle.adf.share.config.UserCC"/>
    </match>
    </cust-config>
    <persistence-config>
    <metadata-namespaces>
    <namespace path="/xliffbundles" metadata-store-usage="MAR_TargetRepos"/>
    </metadata-namespaces>
    <metadata-store-usages >
    <metadata-store-usage id="MAR_TargetRepos" deploy-target="true">
    <metadata-store class-name="oracle.mds.persistence.stores.db.DBMetadataStore">
    <property name="jndi-datasource" value="jdbc/mds/DEV_MDS"/>
    <property name="partition-name" value="part1"/>
    </metadata-store>
    </metadata-store-usage>
    </metadata-store-usages>
    </persistence-config>
    </mds-config>
    </adf-mds-config>
    <adf-faces-config xmlns="http://xmlns.oracle.com/adf/faces/config">
    <taglib-config>
    <taglib uri="http://xmlns.oracle.com/adf/faces/rich">
    <tag name="column">
    <attribute name="displayIndex">
    <persist-changes>true</persist-changes>
    </attribute>
    <attribute name="frozen">
    <persist-changes>true</persist-changes>
    </attribute>
    <attribute name="noWrap">
    <persist-changes>true</persist-changes>
    </attribute>
    <attribute name="selected">
    <persist-changes>true</persist-changes>
    </attribute>
    <attribute name="visible">
    <persist-changes>true</persist-changes>
    </attribute>
    <attribute name="width">
    <persist-changes>true</persist-changes>
    </attribute>
    </tag>
    <tag name="showDetailHeader">
    <attribute name="disclosed">
    <persist-changes>true</persist-changes>
    </attribute>
    </tag>
    <tag name="panelSplitter">
    <attribute name="collapsed">
    <persist-changes>true</persist-changes>
    </attribute>
    <attribute name="splitterPosition">
    <persist-changes>true</persist-changes>
    </attribute>
    </tag>
    </taglib>
    </taglib-config>
    <persistent-change-manager>
    <persistent-change-manager-class>oracle.adf.view.rich.change.MDSDocumentChangeManager</persistent-change-manager-class>
    </persistent-change-manager>
    </adf-faces-config>
    </adf-config>

    hi frank,
    If you have any idea plz reply...We r stucked with metadat-namespace path attribute.

Maybe you are looking for

  • Connecting iMac to an existing network using AirPort Extreme

    Ok, I've just switched to Macs having used PCs for years. I have an Intel iMac with a built in AirPort card but cannot connect to my wireless network. AirPort can detect that the network is there, I have the 20something didgit 128-bit Hex WEP code an

  • I want to create purchase Contract through workflow

    Hi All, I am working on Purchase contract through workflow. In that I am using business object BUS2014, But in this business BUS2014, there is no event called create, So I take copy of business object BUS2014 to ZBUS2014.And I craeted event create &

  • Server side database access with Applets?

    Does anyone know how to do this without any JDBC or any other expensive, server heavy and special requirements? Who could be interested in this? Am i the only one? Most internet hosts, rented i mean, do not give many possibilities you have PHP and no

  • Change background every N minutes broken?

    i'm running 10.5.3 on a 2.4GHz blackbook... i have my desktop background set to change every 5 minutes from a folder of about 375 pictures. it's changing the picture *at least* once a minute though, not 5 as i have set. i've updated the setting sever

  • Can I cut a video into dozens of smaller ones?

    Good day, the effect I'm trying to get is really hard to explain, the idea is that I'm trying to cut up this one big video into 2frame videos. Like this Is there any action or chance that I can do it for all of the video and not do it by hand? I've t