Package com.bea.xml does not exist

Hello all,
I would like to try the nice features of XMLBeans, but I am not able to import
the package com.bea.xml in my first Java XMLBeans demo program, which I tried
to create.
The error message is "package com.bea.xml does not exist", even when the path
"C:\LocalProgFiles\Bea\xkit" (where the file xbean.jar is located) is included
in the CLASSPATH. Also the environemt variable XMLBEANDIR is set correctly to
"C:\LocalProgFiles\Bea\xkit".
Has anyone an idea, what is wrong?
Thanx in advance
Stefan

Hey, Stefan:
I am having the same problem as you were but I'm using Eclipse and I think I've set up the environment properly. Except I cannot, for the life of me, figure out where the Package, "com.bea.xml.stream.MXParserFactory", either resides on my computer or is located for download or is included in some other utility.
We found an example that used the following code:
System.setProperty("javax.xml.stream.XMLInputFactory","com.bea.xml.stream.MXParserFactory");
So, I included that line just before I create a new instance of the XMLInputFactory, which I have included here:
XMLInputFactory factory = XMLInputFactory.newInstance();
When my application tries to execute this statement I get the error below. Am I supposed to have this package on my computer? I don't even have a bea directory. What am I doing wrong?
Thank you,
Patricia
javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.MXParserFactory not found
     at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72)
     at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:120)
     at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
     at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
     at VSTEP.XMLFile.ReadInputStream(XMLFile.java:88)
     at VSTEP.XMLFile.openFile(XMLFile.java:39)
     at VSTEP.RoadmapApp.openFile(RoadmapApp.java:257)
     at VSTEP.FileChooser.<init>(FileChooser.java:44)
     at VSTEP.RMInitialDialog$ButtonHandler.actionPerformed(RMInitialDialog.java:131)
     at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
     at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
     at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
     at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
     at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
     at java.awt.Component.processMouseEvent(Unknown Source)
     at java.awt.Component.processEvent(Unknown Source)
     at java.awt.Container.processEvent(Unknown Source)
     at java.awt.Component.dispatchEventImpl(Unknown Source)
     at java.awt.Container.dispatchEventImpl(Unknown Source)
     at java.awt.Component.dispatchEvent(Unknown Source)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
     at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
     at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
     at java.awt.Container.dispatchEventImpl(Unknown Source)
     at java.awt.Window.dispatchEventImpl(Unknown Source)
     at java.awt.Component.dispatchEvent(Unknown Source)
     at java.awt.EventQueue.dispatchEvent(Unknown Source)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.run(Unknown Source)

Similar Messages

  • Package com.bruceeckel.simpletest does not exist.import com.bruceeckel.simp

    Sorry that I write again about this problem, but I can't manage with it.
    When I'm trying to compile the program (Assigment.java) from book code appears an error:
    D:\Java\Code\c03\Assignment.java:5: package com.bruceeckel.simpletest does not exist
    import com.bruceeckel.simpletest.*;
    It's not easy!! :(
    I have SDk in c:\j2sdk1.4.2_05\
    my projects are in d:\java
    and the source code from the book: d:\java\code\
    i copied the whole catalog com\bruceeckel\ into c:\j2sdk1.4.2_05\
    I JCreator in options->JDK Profiles->j2sdk1.4.2_05(edit)->sources I added path c:\j2sdk1.4.2_05
    And I don't know what else??
    Please Help Me!!

    Edna's #1 rule for Java Newbies... Never
    ever use an IDE
    Now you have introduced a new variable to the problem.
    Assuming com.bruceeckel is in some jar file called
    bruce.jar (I like that), just add the the following
    to you class path
    <path to bruce.jar>/bruce.jarI take it that you are working through Bruce Eckel's Thinking in Java book ( or online )... I checked it out myself not to long ago, and following the instructions, found that I had to do somethings prior to using his code samples and exercises...
    One is to download his source code at http://mindview.net/Books/TIJ/#SourceCode
    Two, when you read the page, it tell you that you need to compile the downloaded source code to run the examples in the book... follow the directions given in the above link...
    Once its all compiled, then it will be ready for use, well after you set the classpath as per instructions...
    and leave the IDE alone for now, once you get a better understanding of Java, then you can take the time to learn how to use the IDE, but for now, it will probable just confuse you more... But that only my opinion...
    Any way, download, compile, set the classpath and your on your way...
    - MaxxDmg...
    - ' He who never sleeps... '

  • Package com.bruceeckel.simpletest does not exist

    I have a problem with source book code. Exactly with c03\Assignment.java. When I'm try to compile the programm there is an error: D:\Java\Code\c03\Assignment.java:5: package com.bruceeckel.simpletest does not exist
    import com.bruceeckel.simpletest.*;
    I don't know how can I fix this.

    Add the com.bruceeckel.simpletest.* package or the jar file containing the classes you need to your classpath.
    Javapedia: Classpath
    Setting the class path (Windows)
    How Classes are Found

  • Build error :package com.sun.javadoc does not exist

    Question from a Turing machine expert who is new to Java.
    Trying to run a sample program from Richardson's book "Java JDK 5 Edition" Chapter 1.
    In Netbeans 5.5 receive build error :package com.sun.javadoc does not exist
    for "import com.sun.javadoc.*;"
    Believe missing classes are in tools.jar in C:\Sun\SDKee5SDK\jdk\lib
    How do I define this to Netbeans and/or JDK?
    Using java_ee_sdk-5_01
    and netbeans-5_5-windows downloads.
    Platform is XP.
    Netbeans has been updated to date.
    Appreciate.

    sony_tj wrote:
    D:\Xyz.java:22: package com.sun.javadoc does not exist
    import com.sun.javadoc.*;After getting this error, I have set my classpath to C:\Program Files\Java\jdk1.5.0_03\lib\tools.jar. But still the error persists. Could anyone please tell me how do I solve this problem.You have failed in setting your classpath in that case.

  • Package com.businessobjects.samples does not exist

    <p>I am trying to run a jsp with parameters passed to a rpt file but Iam getting an error: package com.businessobjects.samples does not exist, import com.businessobjects.samples.*; //[ /Sample Reports/E2ECompliance-SelectionPage-viewer.jsp; Line: 6]<br /></p><p>Does anybody know where this package is and why eclipse or the jsp is not finding it. I can run other jsp examples fine.</p><p>Thx</p><p>Vibhi</p>

    U will find them in pojosamples.jar.
    If you have any doubts regarding usage of pojo, contact me at [email protected]

  • Package com.sun.javadoc does not exist

    D:\Xyz.java:22: package com.sun.javadoc does not exist
    import com.sun.javadoc.*;After getting this error, I have set my classpath to C:\Program Files\Java\jdk1.5.0_03\lib\tools.jar. But still the error persists. Could anyone please tell me how do I solve this problem.

    sony_tj wrote:
    D:\Xyz.java:22: package com.sun.javadoc does not exist
    import com.sun.javadoc.*;After getting this error, I have set my classpath to C:\Program Files\Java\jdk1.5.0_03\lib\tools.jar. But still the error persists. Could anyone please tell me how do I solve this problem.You have failed in setting your classpath in that case.

  • Error package com.darwinsys.util does not exist

    Hi,
    i keep getting the following error:
    "error package com.darwinsys.util does not exist"
    its refering to one of the libraries ive placed in my code. Ive downloaded this library but i dont know where to install it.
    Can anyone help?
    its really urgent
    thanx
    cybersurfur

    java -cp .;c:\scientists\darwin.jar
    MyProgramam i supposed to place the above code where i had
    previous put
    import com.darwinsys.util.*;
    No. The command above is how you run your program. I assumed you had already compiled it. To compile it you need the command
    javac -classpath .;c:\javacooksrc2\javacooksrc2.jar MyProgramAll the classpath does is tell the java compiler or the JVM where to find classes that are needed to compile/run your program.

  • Package com.sun.j3d does not exist (Linux - Fedora Core 6)

    I posted this on the 3d forums also, but it really has nothing to do with 3d but the classpath (I assume) so posting it here might work better.
    Here's the thing.
    I realize it's probably a classpath issue, but I don't know where to put the libraries. Compiling non-3d code works fine, which leads me to believe that running the j3d installer in the right place ought to put the libraries in the right place and let me use them. Clearly this is not the case.
    Now I've tried to fiddle with the classpath, specifically I've put this into my .bash_profile:
    CLASSPATH=.:$CLASSPATH:$HOME/Libraries/ext:$HOME/Libraries/i386
    export CLASSPATH
    And stored the jars in a libraries folder on my home directory
    Odd thing: echo $CLASSPATH sends out empty, like CLASSPATH isn't even defined. How do I fix that? And if that's true, why is the regular javac working?

    Use
    . .bash_profile
    P.S. Where did you find the information to use
    .bash_profile. I would expect you to set the
    classpath in .bashrc, .profile or, to allow all to
    get the same environment, in /etc/bashrc .I tried . .bash_profile and got this answer:
    bash: CLASSPATH: command not foundAnd I don't recall how I decided to use .bash_profile, but .profile doesn't exist and I don't understand the syntax in .bashrc and it frightens me.

  • Package com.sun.j3d does not exist (Linux - Fedora Core 6 - jdk 5.0)

    Here's the thing.
    I realize it's probably a classpath issue, but I don't know where to put the libraries. Compiling non-3d code works fine, which leads me to believe that running the j3d installer in the right place ought to put the libraries in the right place and let me use them. Clearly this is not the case.
    Now I've tried to fiddle with the classpath, specifically I've put this into my .bash_profile:
    CLASSPATH=.:$CLASSPATH:$HOME/Libraries/ext:$HOME/Libraries/i386
    export CLASSPATH
    And stored the jars in a libraries folder on my home directory
    Odd thing: echo $CLASSPATH sends out empty, like CLASSPATH isn't even defined. How do I fix that? And if that's true, why is the regular javac working?

    Duplicate, answered here
    http://forum.java.sun.com/thread.jspa?threadID=5197667

  • Error msg "package org.apache.xmlrpc does not exist ... "

    Hi everybody,
    I am new to java. While creating build through cruise control Error Msg comes
    BUILD FAILED
    Ant Error Message:      C:\Program Files\CruiseControl\projects\Myproject\build.xml:47: Compile failed; see the compiler error output for details.
    C:\Program Files\CruiseControl\projects\Myproject\src\org\xtpl\admin\common\CallBack.java:9: package org.apache.xmlrpc does not exist
    import org.apache.xmlrpc.*;
    C:\Program Files\CruiseControl\projects\Myproject\src\org\xtpl\admin\common\CallBack.java:18: cannot find symbol
    symbol : class XmlRpcClient
    location: class org.xtpl.admin.common.CallBack
    XmlRpcClient rpcClient = new XmlRpcClient();
    Can anyone help me out!
    Thanks,
    Sunil Braroo

    check your classpath.

  • Configuration file "config\jazn.xml" does not exist

    I have just installed 10g and am trying to setup iSQL*PLUS/dba. I found directions here http://download-west.oracle.com/docs/cd/B12037_01/server.101/b12170/ch3.htm#BCEIHEJF, however, when I try to start the JAZN shell or run the command line to create the dba user, I receive this error:
    oracle.security.jazn.JAZNRuntimeException: Configuration file "config\jazn.xml"
    does not exist. Check your JAAS configuration settings.
    at oracle.security.jazn.JAZNConfig.getJAZNProperties(Unknown Source)
    at oracle.security.jazn.JAZNConfig.access$100(Unknown Source)
    at oracle.security.jazn.JAZNConfig$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jazn.JAZNConfig.getJAZNPropertiesNoCheck(Unknown Source)
    at oracle.security.jazn.JAZNConfig.<init>(Unknown Source)
    at oracle.security.jazn.JAZNConfig.initJAZNSingleton(Unknown Source)
    at oracle.security.jazn.JAZNConfig.getJAZNConfig(Unknown Source)
    at oracle.security.jazn.util.Dbg$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jazn.util.Dbg.getJAZNProperty(Unknown Source)
    at oracle.security.jazn.util.Dbg.getBoolJAZNAndSystemProperty(Unknown Source)
    at oracle.security.jazn.util.Dbg.<clinit>(Unknown Source)
    at oracle.security.jazn.JAZNConfig.fileExists(Unknown Source)
    at oracle.security.jazn.JAZNConfig.getDefaultJAZNConfigFilePath(Unknown
    Source)
    at oracle.security.jazn.JAZNConfig.access$000(Unknown Source)
    at oracle.security.jazn.JAZNConfig$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jazn.JAZNConfig.getJAZNPropertiesNoCheck(Unknown Source)
    at oracle.security.jazn.JAZNConfig.<init>(Unknown Source)
    at oracle.security.jazn.JAZNConfig.initJAZNSingleton(Unknown Source)
    at oracle.security.jazn.JAZNConfig.getJAZNConfig(Unknown Source)
    at oracle.security.jazn.tools.Admintool.refresh(Unknown Source)
    at oracle.security.jazn.tools.Admintool.init(Unknown Source)
    at oracle.security.jazn.tools.Admintool.main(Unknown Source)
    User does not exist in system.
    Has anyone run in to this and found a solution? Is there something more that I need to do? I know nothing about JAAS.

    I have the same problem. Did you resolve this problem?

  • Error:    package javax.servlet.http does not exist

    Hi all,
    How do I import javax.servlet?
    package com.example.web;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class BeerSelect extends HttpServlet {
      public void doPost(HttpServletRequest request,
                         HttpServletResponse response)
                         throws IOException, ServletException {
        response.setContentType("text/html");
        PrintWriter out = response.getWrite();
        out.println ("Beer Selection Advide<br>");
        String c = request.getParameter("color");
        out.println ("<br>Got beer color " + c);
    }What does this error mean? The error message:
    Compiling 1 source file to C:\Program Files\Apache Software Foundation\MyProjects\J2EE\build\classes
    C:\Program Files\Apache Software Foundation\MyProjects\J2EE\src\com\example\web\BeerSelect.java:3:
    package javax.servlet does not exist
    import javax.servlet.*;
    C:\Program Files\Apache Software Foundation\MyProjects\J2EE\src\com\example\web\BeerSelect.java:4:
    package javax.servlet.http does not exist
    import javax.servlet.http.*;
    C:\Program Files\Apache Software Foundation\MyProjects\J2EE\src\com\example\web\BeerSelect.java:7:
    cannot find symbol
    symbol: class HttpServlet
    public class BeerSelect extends HttpServlet {
    C:\Program Files\Apache Software Foundation\MyProjects\J2EE\src\com\example\web\BeerSelect.java:8:
    cannot find symbol
    symbol  : class HttpServletRequest
    location: class com.example.web.BeerSelect
      public void doPost(HttpServletRequest request,
    C:\Program Files\Apache Software Foundation\MyProjects\J2EE\src\com\example\web\BeerSelect.java:9:
    cannot find symbol
    symbol  : class HttpServletResponse
    location: class com.example.web.BeerSelect
                         HttpServletResponse response)
    C:\Program Files\Apache Software Foundation\MyProjects\J2EE\src\com\example\web\BeerSelect.java:10:
    cannot find symbol
    symbol  : class ServletException
    location: class com.example.web.BeerSelect
                         throws IOException, ServletException {
    6 errors
    BUILD FAILED (total time: 0 seconds)Thank you.

    Hi,
    The file servlet-api.jar / servlet.jar is not available in your classpath.
    To compile an Servlet you need the jar file to be in classpath.
    The jar file can be found in your webserver / application server lib folder.
    Regards,
    Zack

  • Error: package sun.java2d.cmm does not exist

    I started to use Netbeans IDE 7.0.1 with jdk 7u9. I have an issue with
    import sun.java2d.cmm.ColorTransform;
    import sun.java2d.cmm.PCMM;
    etc.
    If I import from the package sun.java2d.cmm I can run but I can NOT build my project because of error: package sun.java2d.cmm does not exist.
    Please help.

    java -cp .;c:\scientists\darwin.jar
    MyProgramam i supposed to place the above code where i had
    previous put
    import com.darwinsys.util.*;
    No. The command above is how you run your program. I assumed you had already compiled it. To compile it you need the command
    javac -classpath .;c:\javacooksrc2\javacooksrc2.jar MyProgramAll the classpath does is tell the java compiler or the JVM where to find classes that are needed to compile/run your program.

  • Package javax.servlet.http does not exists

    Hi,
    I am new to J2EE and am writing my first servlet. I tried to compile a servlet I wrote and got the following error.
    "package javax.servlet.http does not exists".
    What do i do to correct this error?
    Also is there any links which has a complete servlet tutorial.
    Please advice
    Thanx

    Most probably you need to include the servlet-api library in your classpath when compiling.
    You should find this file in the lib directory of your container.
    It will be called servlet-api.jar (Tomcat) or j2ee.jar (Suns J2EE server) or something along those lines.
    The j2ee tutorial is a decent place to start learning about servlets...
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/
    Good luck,
    evnafets

  • Package javax.servlet.http does not exist & package javax.servlet does not

    Hello!
    I am trying to compile this file:
    /* serv2.java 29 Sep 04 */
    import java.util.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class serv2 extends HttpServlet
         protected void doPost(HttpServletRequest req, HttpServletResponse res)
                                  throws ServletException, IOException
              res.setContentType("text/html");
              PrintWriter out = res.getWriter();
              out.println("<HTML><HEAD><TITLE>Sample Servlet</TITLE></HEAD>"+'\n'+
                                  "<BODY BGCOLOR='lightgreen'>"+'\n'+
                                  "<H1 ALIGN=CENTER>Heading</H1>" + '\n' +
                                  "<P><H2 ALIGN=CENTER>Message</H2");
              out.println("</BODY></HTML>");
    }And I am getting this error message:
    C:\Program Files\Apache Tomcat 4.0\webapps\ROOT\WEB-INF\classes\serv2.java:4: package javax.servlet does not exist
    import javax.servlet.*;
    ^
    C:\Program Files\Apache Tomcat 4.0\webapps\ROOT\WEB-INF\classes\serv2.java:5: package javax.servlet.http does not exist
    import javax.servlet.http.*;
    ^
    C:\Program Files\Apache Tomcat 4.0\webapps\ROOT\WEB-INF\classes\serv2.java:7: cannot resolve symbol
    symbol : class HttpServlet
    location: class serv2
    public class serv2 extends HttpServlet
    ^
    C:\Program Files\Apache Tomcat 4.0\webapps\ROOT\WEB-INF\classes\serv2.java:9: cannot resolve symbol
    symbol : class HttpServletRequest
    location: class serv2
         protected void doPost(HttpServletRequest req, HttpServletResponse res)
    ^
    C:\Program Files\Apache Tomcat 4.0\webapps\ROOT\WEB-INF\classes\serv2.java:9: cannot resolve symbol
    symbol : class HttpServletResponse
    location: class serv2
         protected void doPost(HttpServletRequest req, HttpServletResponse res)
    ^
    C:\Program Files\Apache Tomcat 4.0\webapps\ROOT\WEB-INF\classes\serv2.java:10: cannot resolve symbol
    symbol : class ServletException
    location: class serv2
                                  throws ServletException, IOException
    ^
    6 errors
    Tool completed with exit code 1
    I have tried setting CLASSPATH lib/servlet.jar but it still will not work.
    Please help me!!!

    Please check this page,
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/classpath.html
    and also
    serv2 -> set it to Serv2
    another nice to read :-)
    http://java.sun.com/docs/codeconv/html/CodeConventions.doc8.html
    +"Class names should be nouns, in mixed case with the first letter of each internal word capitalized"+
    Another thing,
    Put your class in a package, thanks =)
    regards and goodluck,
    jie

Maybe you are looking for

  • Internally required memory is not available in SMQ2

    Hi All, In our XI Production server one message in SMQ2 (Inbound) has been stucked. Error details "Internally required memory is not available ". This IDOC is having a size of 552 MB, when I checked the sap fourms I found that there is one instance p

  • Execution of inbound idocs to creat a SO

    Hi All, I am trying to create a SO using a IDOC which has 190 Line items, but when i see the SO after IDOC has created it, i am seeing only 150 line items, which leads to mismatch in IDOC line items to VA03 tc. Now my client want's to delete the SO a

  • The new update, IOS 8.0 worked fine, but today it changed why

    I updated my iphone 5.S a few days ago, it worked fine, I loved the message changes, where it gave you allot of choices, when you type your words, but today it went away, why, I want it back. how do I get it back.

  • How to customize the return button

    Hi; I need to validate if 'Return' button functionality can restore previous page with the data that had been entered. Example. Header page is table format with header ID , header status and two input fields. Users can enter dates on many rows, then,

  • Where are config.py type scripts located for 11g?

    Not sure if this is the right forum, but I just installed OEPE which includes the WLS 10.3 server, and I can't seem to find the config.py and config.properties scripts used to build servers. Where are these located now or what do I need to install? U