• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 936
  • Last Modified:

Provider com.bea.xml.stream.MXParserFactory not found


Sorry to come back.

I set the class path as follows XMLBEANDIR C:\tech\struts\Contribution\lib\xbean.jar;
Here below the code

public class main
   public  static void  main (String  [ ] args) throws IOException,  XMLStreamException
     String nick = "neliw";
     String file = "neliw";
        ContsProcessor processor = new ContsProcessor (nick);
        // Use the reference implementation for the XML input factory
       // Create the XML input factory
     XMLInputFactory factory = XMLInputFactory.newInstance();
         // Create the XML event reader
      FileReader reader = new FileReader(file);
     XMLStreamReader r =    factory.createXMLStreamReader (reader);
        ForumDocument doc = processor.parseDocument (r);
        System.out.println (doc);
1 Solution
Nguyen Huu PhuocSenior ManagerCommented:
Please check your classpath if com.bea.xml.stream.MXParserFactory is included
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now