Missing MDE4UML plug-in org.apache.xerces for Eclipse

Hello,
I have the following problem that I would really appreciate some help with.
Background
1. I have set up Eclipse 3.0.2
2. I downloaded MDE4UML 3.1.3 (namely file mde-studio-eclipse-3.0-plugin-3.1.3.zip) from m1global.org
3. Everything seems to be working ok (although I havent done much work within MDE).
Problem
When I try to obtain or update software using Help > Software Updates > Find and Install > Search for new features to install, and select any new feature, the following error message is detailed
Model-driven Development Environment Studio (3.1.3) requires plug-in "org.apache.xerces".
What is the solution to this problem? I could comment out the following line in the feature.xml file for this plugin
<import plugin="org.apache.xerces"/>
but I'm not sure if it is the right thing to do.
Thanks for the help in advance.

Hi,
I think you need to check the plugin folder of the eclipse so that it contains the folder "org.apache.xerces_<version>".
This is the API plugin is for XML processing.
if you don't find it than create a folder with name "org.apache.xerces_<version>" in the plugin directory. and then add <b>xmlParserAPIs.jar,xercesImpl.jar</b> to this folder and the create two files with following contains in the same folder.
<b>plugin.xml</b>
<i><?xml version="1.0" encoding="UTF-8"?>
<plugin
  name="%pluginName"
  id="org.apache.xerces"
  version="4.0.13" 
  provider-name="%providerName">
  <!-- This is an IBM maintenance branch of xerces 2.0.0  -->
     <runtime>
          <library name="xmlParserAPIs.jar">
               <export name="*"/>
               <packages prefixes="javax.xml,org.w3c.dom,org.xml.sax"/>
          </library>
          <library name="xercesImpl.jar">
               <export name="*"/>
               <packages prefixes="org.apache,org.w3c.dom"/>
          </library>
     </runtime>
</plugin></i>
<b>plugin.properties</b>
<i>pluginName = Xerces Based XML Parser
providerName = Eclipse.org</i>
you will get the jar files at apache's site

Similar Messages

  • Xerces j 2.4: manifest.xerces, org.apache.xerces missing

    i've tried various things involving xerces, so if you could help me with any of these issues, i'd appreciate it.
    1) xerces build: ver 2.4: windows:
    there seems to be a file (manifest.xerces) missing when i dl this from xml.apache.org. what should be in this file? i created an "empty" file to enable the build, containing
    Manifest-Version: 1.0
    Created-By: Ant 1.3
    and...
    2) org.apache.xerces does not exist. paths are set to jars. what am i doing wrong?

    thank you for responding! i have
    xercesImpl.jar
    xmlParserAPIs.jar
    xmi-apis.jar
    all in my path. mostly because they're the ones under the build dir. is there something obviously wrong?

  • Extracting elements from an xml string - org.apache.xerces.dom.DeferredText

    Hello all,
    I am new to xml, and I thought I had a handle on things until I got this problem...I am getting an xml string from the body of an e-mail message, and then I am trying to extract elements out of it. Here is an example xml string:
    <?xml version="1.0" encoding="UTF-8"?>
    <filterRoot>
       <filter action="MOVE" bool="AND" name="My Saved Filter" target="Deleted Items">
          <condition attribute="TO" bool="AND" contains="CONTAINS">
             <value>[email protected]</value>
             <value>[email protected]</value>
             <value>[email protected]</value>
             <value>[email protected]</value>
             <value>[email protected]</value>
          </condition>
       </filter>
    </filterRoot>I am trying to extract the <filter> element out and store it into a Vector of Elements (called, not surprisingly, filters). However, I am getting a class cast exception:
    java.lang.ClassCastException: org.apache.xerces.dom.DeferredTextImplIt is being called from where I trying to extract the <filter> in this way:
            filterRoot = doc.getDocumentElement(); // get topmost element
            NodeList list = filterRoot.getChildNodes();
            Vector newFilters = new Vector();
            debug("There are "+list.getLength()+" filters in document");
            for(int i=0; i<list.getLength(); i++) {
                Node n = list.item(i);
                debug("Node "+i+" getNodeValue() is "+n.getNodeValue());
                Element temp = (Element)n;
                newFilters.add(temp);
            }Perhaps my question is, how do I correctly get hold of the <filter> node so that I may cast it as an Element?
    thanks,
    Riz

    Yes, I already knew that it is not a bug.
    But, I got next step problem.
    I put "false" to "include-ignorable-whitespace" feature in xerces parser.
    But, I still found unnecessary TextNodes in my parser object.
    Feature link : http://xerces.apache.org/xerces-j/features.html.
    I use xerces-2_8_0.
    DOMParser parser = new DOMParser();
    parser.setFeature("http://apache.org/xml/features/dom/include-ignorable-whitespace", false);
    parser.parse(inputSource);
    document = ps.getDocument();
    System.out.println(document.getDocumentElement().getChildNodes().length()); // still wrong lengthIs tehre any example of usage this feature?
    What is default defination of white-space "\n "(enter with one space) or " "(juz white space) or something else?
    Thanks,

  • Java.lang.NoSuchMethodError: org.apache.xerces.parsers.SAXParser. init

    java.lang.NoSuchMethodError: org.apache.xerces.parsers.SAXParser.<init>(Lorg/apache/xerces/xni/parser/XMLParserConfiguration;)V
         at com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser$MySAXParser.(RDFXMLParser.java:55)
         at com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser.create(RDFXMLParser.java:82)
         at com.hp.hpl.jena.rdf.arp.JenaReader.(JenaReader.java:77)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at com.hp.hpl.jena.rdf.model.impl.RDFReaderFImpl.getReader(RDFReaderFImpl.java:113)
         at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:225)
         at com.hp.hpl.jena.util.FileManager.readModelWorker(FileManager.java:387)
         at com.hp.hpl.jena.util.FileManager.loadModelWorker(FileManager.java:297)
         at com.hp.hpl.jena.util.FileManager.loadModel(FileManager.java:248)
    Hi all,
    Getting above exception only in Weblogic 9.2
    JDK Version : jdk1.5.0_16
    jena-2.5.6.jar
    xercesImpl-2.6.2.jar
    SAXParser is working fine in JBoss with same jdk and jar version. But it's throwing above exception in webloigc9.2 (Windows ) and more over, if i add -Xbootclasspath and specify the xercesImpl-2.6.2.jar file it works in weblogic 9.2 also..
    Is there any other 'good' solution for this??? I feel , this issue is related to classloader but dont know how :(.
    Regards
    Anand

    Hi,
    try to add your jar to the PRE_CLASSPATH.

  • Exception :Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found

    Hi All,
    I run my application on Redhat Linux 2.4.9-e.27smp using java appname. I'm using JDK1.4.2 and am not using any app server. The app seems to run just fine for a few hours and then I start getting Exception :Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found exception out of blue. I run the app with following parameters -
    java -server -XX:+UseAdaptiveSizePolicy -Xverify:none -Xms512m -Xmx512m -XX:+UseParallelGC -XX:ParallelGCThreads=4
    I suspect this has to do with garbage collection and can't replicate this on will. I wonder if anyone has come across similar issue and is able to point me to the right direction.
    Thanks for any help,
    Vishal Bhasin

    Quick question. I am receiving the following error too:
    Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
    I am getting this error intermitently. Do you have any idea why this would happen. I am using an add on to a program.
    Thanks,
    Joe

  • Org.apache.xerces.framework

    We user xerces. I got an old code using package org.apache.xerces.framework from xerces 1.x. But this package is absent in xerces 2.x. Why is it absent? Am I missing something? How do I upgrade? Is only package change required/

    Seems to me these questions might well be answered on the Xerces site. Have you looked there?

  • Java.lang.NoClassDefFoundError: org/apache/xerces/parsers/SAXParser

    We are trying to evaluate Weblogic 6.1 Beta version.
    We have tried a setup that is working in WebLogic 6.0 sp1 version,
    but the same setup fails in the Beta version.
    We get ...
    java.lang.NoClassDefFoundError:
    org/apache/xerces/parsers/SAXParser
    We had not specified any addl. jars in the classpath
    in 6.0 sp1 version. But this fails in the Beta version.
    Could someone tell if this is a known bug in the Beta release and
    suggest a solution or tell if this will be fixed in the actual version
    when it is
    released in July?
    Thanks.
    -Arvind

    "Jeeva" <[email protected]> wrote in message
    news:3b40ecb5$[email protected]..
    >
    Alternatively u can set the parameters to look at the right parser when uneed
    it. This can be done by:
    System.setProperty("javax.xml.parsers.SAXParserFactory","org.apache.xerces.jaxp.SAXParserFactoryImpl");
    System.setProperty("javax.xml.parsers.DocumentBuilderFactory","org.apache.xerces.jaxp.DocumentBuilderFactoryImpl");
    System.setProperty("javax.xml.parsers.SAXParser","org.apache.xerces.jaxp.SAXParserImpl");
    This is far from being recommended for the following reason:
    The JAXP factories cache the classes used to instantiate the factories,
    therefore you cannot changed dynamically these properties at runtime, you
    will have absolutely NO guarantee that this will work. If a factory is
    instantiated before yours, it will use this one. Additionaly, Weblogic
    already defines these properties at startup so that they refer to their own
    factories that can look into the XML registry.
    Consider these properties as being read-only. Chance are that you will mess
    up everything if you modify them.
    If you need to define a specific parser (such as crimson), then put crimson
    in your system classpath and set the XML registry appropriately.
    If you want to take a look at jaxp strategy. Use the JVM
    property -Djaxp.debug=true.
    As well use -Dweblogic.xml.debug=true for Weblogic XML related info.
    Stéphane Bailliez
    Software Engineer, Paris - France
    iMediation - http://www.imediation.com
    Disclaimer: All the opinions expressed above are mine and not those from my
    company.

  • Org.apache.xerces.parsers.SAXParser class, where do I find it?

    I don´t know if this is the right place to ask, but maybe someone will know:
    I need the class org.apache.xerces.parsers.SAXParser that should be included in the Apache Xerces project.
    Here is the API: [http://xerces.apache.org/xerces2-j/javadocs/xerces2/|http://xerces.apache.org/xerces2-j/javadocs/xerces2/]
    and here is the download section: [http://xerces.apache.org/xerces2-j/download.cgi|http://xerces.apache.org/xerces2-j/download.cgi] . I have downloaded Xerces-J-bin.2.9.1.zip but the class isn´t included.
    My book I am reading is using that class and says it is a part of the Xerces project.

    Hi,
    Well, I do not know what you are looking at but it definitely is in the src : Xerces-J-src.2.9.1.tar.gz
    So if worst comes to worst build it from the source. However, from the bin you downloaded there are several jars and the class you need to import is in xercesImpl.jar.
    Regards.

  • 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.apache.xerces.parsers.SAXParser

    After compiling ,while trying to run my program is giving on the console window.
    "org.apache.xerces.parsers.SAXParser" instead of what it is supposed to do .
    i am using java 1.4.2 and xerces 2.7.1
    Can Anyone point what is the problem with this.
    thanks

    are you calling toString on the parser?
    'what it is supposed to do" -- you know because it worked with a previous version of xerces?
    What code is generating:
    org.apache.xerces.parsers.SAXParser
    ?

  • Eclipse won't resolve org.apache.* packages

    Hello everyone,
    I'm relatively new to java and eclipse and I am really stuck trying to use various packages.
    First a little history on what I am doing. I've created a project from existing source using the new java project wizard. This source code is obtained from the Book: XML and Java: Developing Web Applications, 2nd Edition. It's sort of dated. It uses SDK 1.3, and xerces 1.4.3 the current is 2.9.1. I have version 2.9.0 according to the Eclipse plugin registry. ( Thought I'd mention this in the event it may be relevant ).
    The problem is Eclipse will not resolve this line of code:
    import org.apache.xerces.parsers.DOMParser;
    I look at plugins and I see xerces listed:
    Provider:: eclipse.org
    Plug-in Name:: Apache Xerces-J
    Version:: 2.9.0v200909240008
    Plug-in ID:: org.appache.xerces
    However, Eclipse content assist does not list any org.apache packages and of course it won't compile without fatal errors.
    In an attempt to correct the problem I've created a classpath variable in
    Preferences > Java > Buildpath > Classpath variables:: xerces_2_9_0 - /Applicatins/Eclipse/plugins/org.apache.xerces_2.9.0.v200909240008.jar
    Then added the var to a launch configuration.
    The same error still persists::
    Exception in thread "main" java.lang.Error: Unresolved compilation problems:
    DOMParser cannot be resolved to a type
    DOMParser cannot be resolved to a type
    at chap02.SimpleParse.main(SimpleParse.java:20)
    I've also tried to add jar's to the libraries using Preferences > Java > Build Path > User Libraries but the the button on the right 'Add jars...' is not acitve.
    The complete source code is listed below. Although I don't think the problem resides there.
    Anyone who can help me in understanding this problem and resolving it would be greatly appreciated.
    ( I obviously am misunderstanding something ).
    Regards,
    gjames
    package chap02;
    * SimpleParse.java
    import org.w3c.dom.Document;
    import org.apache.xerces.parsers.DOMParser;
    import org.xml.sax.SAXException;
    import java.io.IOException;
    public class SimpleParse {
    public static void main(String[] argv) {
    if (argv.length != 1) {
    System.err.println(
    "Usage: java chap02.SimpleParse <filename>");
    System.exit(1);
    try {
    // Creates a parser object
    DOMParser parser = new DOMParser();
    // Parses an XML Document
    parser.parse(argv[0]);
    // Gets a Document object
    Document doc = parser.getDocument();
    // Does something
    } catch (SAXException se) {
    System.out.println("Parser error found: "
    +se.getMessage());
    System.exit(1);
    } catch (IOException ioe) {
    System.out.println("IO error found: "
    + ioe.getMessage());
    System.exit(1);
    }

    gmjames wrote:
    ..I'm relatively new to java and eclipse and I am really stuck trying to use various packages. 1) The Jars need to be added to the compile-time & run-time class-path of the application.
    2) You will be better off figuring how to do that in Ant or from the command line, rather than an IDE.
    3) When posting code, code snippets, HTML/XML or input/output, please use the code tags. The code tags protect the indentation and formatting of the sample. To use the code tags, select the sample and click the CODE button.
    4) For best help on Eclipse, see the [Eclipse forums|http://www.eclipse.org/forums/].

  • Xerces for XSD 1.1 Validation not working in Java Mapping

    Hi Experts,
    We are trying to use XSD 1.1 (assertion feature) validation for the XML payload in a Java mapping program. But I am getting the following exception:
    java.lang.IllegalArgumentException: http://www.w3.org/XML/XMLSchema/v1.1 at javax.xml.validation.SchemaFactory.newInstance(SchemaFactory.java:186)
    This is happing for the statement:
    SchemaFactory factory = SchemaFactory.newInstance("http://www.w3.org/XML/XMLSchema/v1.1");
    The reason (apparently) is because it is not able to instantiate the class org.apache.xerces.jaxp.validation.XMLSchema11Factory , which is the Xerces implementation of the SchemaFactory class.
    I have tried following things so far -
    1. If I try to validate an xml against an xsd 1.1 schema in a standalone program, it works perfectly fine.
    2. If I try to deploy this whole functionality on to the server through an EAR (like an adapter module), there again it works.
    3. Also tried this before instantiating the SchemaFactory -
    System.setProperty("javax.xml.validation.SchemaFactory:http://www.w3.org/XML/XMLSchema/v1.1","org.apache.xerces.jaxp.validation.XMLSchema11Factory");
    4. I tried by creating the Imported Archive objects for all the Xerces jars that we require for validation, within the same SWCV, namespace. But still I get the same exception as above (IllegalArgumentException)
    5. The link [http://help.sap.com/saphelp_nw70/helpdata/en/b6/8097f5a5edea4f8dfc87ac87082b22/content.htm ] mentions that we need to place all the necessary jars at location <SAP_J2EE_Engine_install_dir>/cluster/server/bin/ext /. But even after placing the jars there, I get the same exception.
    I am not sure how we need to handle this. Has anybody faced a similar situation? Any suggestions?
    Regards,
    Sudheer

    Hi Stefan,
    Thanks for the reply.
    We are on PI 7.1 SP 06. The standard XML tools from jdk supports only XSD 1.0, as far as I know. And XSD 1.0 does not have the Assert feature (also known as, co-occurrence constraint). More details are provided here - [http://www.ibm.com/developerworks/library/x-xml11pt2/]
    To use XSD 1.1, we need a different implementation like Xerces-J. I am not sure how we can use it without external jars. I would like to mention again that I could achieve this by using an adapter module (EAR containing the jars), but I need to do this in Java Mapping (imported archive).
    Do you know how we can achieve this in any other way? Any other suggestions welcome.
    Thanks & Regards,
    Sudheer

  • The import org.apache cannot be resolved

    Hi All,
    I am a Java\Eclipse newbie. I am trying to import the org.apache.xerces package, and the import is failing with this error:The import org.apache cannot be resolved
    I am not using Maven\Ant for building the project. I know I need to download some class files\jar files to get this to work, but I am not sure where to download these packages from. Could someone please help me out here?
    import org.w3c.dom.Node;
    import org.apache.xerces.parsers.DOMParser;
    import org.apache.xerces.dom.traversal.TreeWalkerImpl;
    import org.apache.xerces.domx.traversal.NodeFilter;
    import org.apache.xerces.dom.DocumentImpl;
    THanks a lot!

    Well, if you are in fact looking to download the JARs for the Apache Xerces project, you should be able to find them at the Apache Xerces project page.
    If you already have the JARs downloaded, you need to make sure that they appear on your CLASSPATH, otherwise your application will never find them. Since you are using an IDE, this should be as easy as adding the JARs to your project.

  • Org.apache.crimson and 1.5

    I am trying to test an application in 1.5 and am getting compile errors for crimson references in classes someone else wrote.
    Looking at the JDK src, it looks like the apache packages are not bundeled in to the 1.5 beta.
    Wth the preface that I am mostly a Swing developer my questions are...
    I know it has to do with XML, but what specific functionality did crimson bring to the tale?
    Why did Sun remove the apache libs from the distribution?
    Is there anything in 1.5 to take crimsons place.
    Thanks for your time if you answer,
    Todd

    Looking at the JDK src, it looks like the apache
    packages are not bundeled in to the 1.5 beta.That's correct. The only contract is to supply an XML processor, not a specific one. Crimson is just one; Xerces is the most popular one out there. Looks like 1.5 includes a subset of Xerces (with a different package - com.sun.org.apache.xerces.internal).
    I know it has to do with XML, but what specific
    functionality did crimson bring to the tale?Nothing special. It was just a lightweight XML implementation.
    Why did Sun remove the apache libs from the distribution?
    Is there anything in 1.5 to take crimsons place.It's just replaced them with something they felt they could maintain better.
    You should not ever be referring to Crimson classes directly. You should ONLY use org.w3c.dom or org.w3c.sax classes directly, and use the advertised Factory APIs to create or manipulate Documents, Elements, etc.
    Your best bet is to rip out all references to org.apache.crimson, and use an elementary XML textbook to replace them with references to standard org.w3c.* classes.

  • URGENT: JAXP Provider org.apache.crimson.jaxp.SAXParserFactoryImpl not foun

    Hi all
    I am having this strage problem. I am using JAXP Apis to do XSLT transformation and everything works fine.
    But when I try the samething with
    -Djava.security.manager option and
    -Djava.security.policy==$WL_HOME/weblogic.policy option set it doesn't work. Stranger still the error it gives:
    javax.xml.transform.TransformerException: javax.xml.parsers.FactoryConfigurationError: Provider org.apache.crimson.jaxp.SAXParserFactoryImpl not found
    This the command that works:
    $JAVA_HOME/java -classpath $WL_CLASSPATH -Dintegration.config=$WL_HOME/integration.cfg com.swl.integration.translation.SendPRThread 24972 451
    This one does NOT work:
    $JAVA_HOME/java -ms64m -mx64m -verbosegc -classpath $WL_CLASSPATH -Djava.security.manager -Djava.security.policy=$WL_HOME/weblogic.policy -Dintegration.config=$WL_HOME/integration.cfg com.swl.integration.translation.SendPRThread 24972 451
    I know it's something to do with Security manager/policy setting, but can't figure it out.
    Could anyone please help? It is very urgent.
    Thanks a lot
    Mak

    I have your solution... under Weblogic BEA were giving the same error, I resolved it with this code before the instantiation of SAXParserFactory:
    String key = "javax.xml.parsers.SAXParserFactory"
    String value = "org.apache.xerces.jaxp.SAXParserFactoryImpl";
    Properties props = System.getProperties();
         props.put(key, value);
         System.setProperties(props);

Maybe you are looking for

  • (Resolved - My own stupidity) Remote Desktop 8.1.3 for iOS (iOS 8.0) - Connects to Black Screen

    New version, new problems! After finally solving my problems with connecting introduced in 8.1.0 for iOS, I have updated to 8.1.3 and have a new problem! I am able to log in, but upon login, I am presented with a black screen instead of my desktop. 

  • IMac crashed, how to save previous version iPhoto files?

    hi, my late 2012 iMac crashed last week & I just got it back from the repair shop yesterday. The technician wiped everything & reinstalled all except iPhoto (I believe my original version was 9.4.2). My OS is now upgraded to 10.9.4 I'm very concerned

  • E72 Email setting

    i just got my E72 yesterday, and the email thing is kinda bugging me. i set up my hotmail and gmail account and it's just not working, there's this little cross symble on the top right hand side... do i need to have internet servies on my sim card or

  • Do not trigger output type through BAPI

    I have a custom program which modifies purchase orders using the BAPI 'BAPI_PO_CHANGE'. However, when the program modifies the POs, it also triggers the associated output types in the POs. We want to modify the purchase orders using the custom progra

  • Premiere Elements reports low disk space error right at the end

    Ok, so I wait for 5 hours for a 3 hour long video to get saved to my computer.  It goes to 99% and then I get a low disk space error.  After I clear up space, and click Ok, it starts all over again.  Firstly, why doesn't PrE calculate/predict how muc