Compiler can not find javax.xml.bind package classes

Hi
I have quite simple (I hope) problem. I'm trying to run some jaxb example but when I try to compile it I get:
Test.java:20: package javax.xml.bind does not exist
import javax.xml.bind.JAXBContext;
                      ^
Test.java:21: package javax.xml.bind does not exist
import javax.xml.bind.Marshaller;
                      ^
Test.java:22: package javax.xml.bind does not exist
import javax.xml.bind.Unmarshaller;
                      ^
Test.java:23: package javax.xml.bind does not exist
import javax.xml.bind.Validator;
                      ^I added to my classpath all packages I found to have anything in common with jaxb:
jaxb-api.jar
jaxb-xjc.jar
jaxb-ri.jar
jaxb.libs.jar
jaxp-api.jar
sax.jar
dom.jar
xercesImpl.jar
xalan.jar
jax-qname.jar
namespace.jar
All of those are taken from jwsdp-1.6
Any ideas?
ania

Add the following .jar files to the CLASSPATH variable.
<JWSDP>/jaxb/lib/jaxb-api.jar
<JWSDP>/jaxb/lib/jaxb-impl.jar
<JWSDP>/jaxb/lib/jaxb-libs.jar
<JWSDP>/jaxb/lib/jaxb-xjc.jar
<JWSDP>/jwsdp-shared/lib/namespace.jar
<JWSDP>/jwsdp-shared/lib/jax-qname.jar
<JWSDP>/jwsdp-shared/lib/relaxngDatatype.jar
<JWSDP> is the directory in which Java Web Service Developer Pack 1.5 is installed.

Similar Messages

  • Error:Can not found "javax/xml/soap"

    Hi:
    I'm fairly new to Java development and I'm trying to write a wrapper class that will access a webservice. The problem I'm running into is that I keep getting this error message when I try to compile my class:
    ./STest.java:1: error:Can not found "javax/xml/soap" [JLS 7.5.2, 7.6]
    I've installed the jwsdb-1_2 and I think mh env is set up correctly.
    The above error message is generated by:
    import javax.xml.soap.*;
    Please help!

    I've searched every jar file and it doesn't seem as though any of them have the soap stuff....
    This page, http://java.sun.com/webservices/docs/1.0/api/overview-summary.html, seems to say that I need the Web Services Developer Pack, which is was the wsdp is....

  • Where to find javax.xml.bind and javax.jdo

    One of my application require import javax.xml.bind and javax.jdo packages. I could not find them. Someone can help to let me know where to download them or they come with some other toll\packages?
    Thanks
    John

    Hi John ,
    I have the same problem: Getting the javax.jdo Packge . . . .(WHERE ?)
    if you found out ow already, please tell me at: [email protected]
    thanks,
    edan

  • Where can i find "javax.xml.parsers"

    Hello Every One, H R U Doing
    I wan 2 parse XML data in JAVA Application, i found an example which was quite clear but that example uses
    import javax.xml.parsers.*;
    But at compile time exception is thrown that this package does not exist,
    Please tell me where can i find this package.
    Thanx in Advance,
    Azhar Javaid

    It's in the jaxp-api.jar from the JAXP installation.

  • Java server page compiler can not find a class defined in a java bean file

    I have a jsp file using java bean. The java bean class file is uploaded into the server and also the directory to this java bean .class file is included in the Unix environment CLASSPATH. This .jsp file is registered and should be compiled and excecuted automatically.
    WHen I try to invoke this .jsp file, the jsp compiler error, saying the class defined by java bean can not be found. I already include this path in teh CLASSPATH, I thought the jsp compiler will go to the right place according to CLASSPATH to find the referenced class.
    Can anyone tell me what I have done wrong or what should I do in order to allow jsp compiler to find the class refrenced by .jsp file and defined by java bean file?
    Thank you so much

    hello friends,
    i am also facing the same problem of not finding bean class files for both jsp and servlet though it is placed in same package. the problem of not finding bean class file for jsp is experienced in Tomcat server only whereas in Blazix, there is no such error and the file is compiled and runs successfully.
    i have checked Tomcat properly. there is no error in its configuration also servlets without the use of bean files run successfully. so please can anybody guide me about what is the problem and how to solve it. plz its urgent .

  • In jb6,It can not find javax.ejb,how can i do?

    I want to use jb6 to develop ejb beans ,
    but In my jb6,when I complile,It show "can't acess javax/ejb",and i can't find ejb in javax,how can i do?
    where ejb?

    I want to use jb6 to develop ejb beans ,
    but In my jb6,when I complile,It show "can't acess
    javax/ejb",and i can't find ejb in javax,how can i
    do?
    where ejb?Its not required to set any environment variable for EJB development with JBuilder6. If you are not using any of the JBuilder wizards for creating EJB's, then you need to add your JAR files through 'required libraries'.

  • Can not find javax.ejb.CreateException when lookup and create EJB instance.

    Hi,
        I installed SAP CE 7.2 and NWDS 7.2. When i call create() of EJB's home interface from JAVA stand alone app to create EJB instance, the complier state that it need  'javax.ejb.CreateException'. How can i find the jar that contain 'javax.ejb.CreateException' to solve this problem?
    Thank a lot,
    Thongie
    Edited by: Thongie on Jul 8, 2011 7:30 PM

    Thank a lot, I can found EJB20.jar at 'usr\sap\<sid>\<instance_id>\j2ee\j2eeclient\'

  • Problem with JBuilder and javax.xml.transform package

    Hi,
    My JBuilder 7 can not find javax.xml.transform package. i use javax.xml.parsers package but i can not access to javax.xml.transform. is there a problem or something necessary to do to access that?
    Best Wishes - WiseWarrior

    Hey WiseWarrior,
    your problem is directly related to your jar file in run time. The xml parser jar which you are using to perform transfor is not having the appropriate classes, take the latest version of xalan it has transform package and put it into your class path, it will work.
    CheerS!!
    Sandeep Raikwar

  • Can not find symbol

    i am wrting a bean which has methods and i am passing that bean
    object to the method of another class but when i compile the second class i get the error can not find symbol and the method name of bean
    which i want to acces in second class.

    i a using Role.java bean in RoleManager.java the files are as follows
    and when compiling the RoleManager.java i get the above error by showing method getOrderby() can not find symbol
    /******** Role.java (bean class) ************************/
    package com.tattva.pms.employee;
    import java.beans.*;
    public class Role implements java.io.Serializable
    /** Holds value of property code. */
    private String code;
    /** Holds value of property type. */
    private String type;
    /** Holds value of property description. */
    private String description;
         /** Holds value of property orderby */
         private String orderby;
    /** Creates new Role */
    public Role() {
    /** Getter for property code.
    * @return Value of property code.
    public String getCode() {
    return code;
    /** Setter for property code.
    * @param code New value of property code.
    public void setCode(String code) {
    this.code = code;
    /** Getter for property type.
    * @return Value of property type.
    public String getType() {
    return type;
    /** Setter for property type.
    * @param type New value of property type.
    public void setType(String type) {
    this.type = type;
    /** Getter for property description.
    * @return Value of property description.
    public String getDescription() {
    return description;
    /** Setter for property description.
    * @param description New value of property description.
    public void setDescription(String description) {
    this.description = description;
         /** Getter for property code.
    * @return Value of property code.
    public String getOrderby() {
    return orderby;
    /** Setter for property code.
    * @param code New value of property code.
    public void setOrderby(String orderby) {
    this.orderby = orderby;
    /****************************RoleManager.java*************************
    package com.tattva.pms.employee;
    import com.tattva.pms.employee.*;
    //package com.tattva.pms.dept;
    import com.tattva.pms.database.*;
    //import com.tattva.pms.dept.*;
    import java.sql.*;
    import java.util.*;
         * Insert the type's description here.
         * Creation date: (5/22/02     1:53 PM)
         * @author: Sachin Bhansali
    //public class DeptManager
    public class RoleManager
         * The Declaration of the fields
         * to be used.
         * Decleration of Global variables
    //private ConnectionPool ovPool = null;
    //     private QueryManager ovQuery     = null;
         //private ResultSet ovResultSet     = null;
         private int rowCount          = 0;
    /** Creates new DeptManager */
    // public DeptManager()
         public RoleManager()
              super();
         * Creates new JobDtlManager
         * Commented constructor
    /* public DeptManager(ConnectionPool conPool)throws SQLException{
    ovPool = conPool;
    ovQuery = new QueryManager(ovPool);
    conPool = null;
         * throws exception PMSException and the general Exception
         * @param DeptBean contaning the details.
         // public int addDept(DeptBean dept)throws PMSException, Exception
         public int addRole(Role role)throws PMSException,Exception
              ConnectionPool ovPool = null;
              Connection ovCon = null;
              Statement ovStmt = null;
    String sqlStr = null;
    // The SQL query String
         /*     sqlStr = "Insert into DEPARTMENT_MST Name (V_CODE,V_NAME,V_LOCATION,V_FUNCTIONALITY, V_CREATED_BY) values ('"
                             + dept.getDeptCode() +"','" + dept.getDeptName() + "','" + dept.getDeptLoc() + "','" + dept.getDeptFun() +
                             "','" dept.getCreatedBy()"')";
         sqlStr = "Insert into ROLE_MST Name (V_CODE,V_TYPE,V_DESCRIPTION,N_ORDERBY) values "+
                        "('"+role.getCode()+"','"+role.getType()+"','"+role.getDescription()+"','"+role.getOrderby()+"')";
    //start of try block
                   try{
                        ovPool = new ConnectionPool();
                   // ovCon = ovPool.createConnection("DeptManager: addDept(DeptBean dept)");
                        ovCon = ovPool.createConnection();
                   ovStmt = ovCon.createStatement();
                        rowCount = ovStmt.executeUpdate(sqlStr);
                   return 0;
                   }catch(PMSException pmsEx){
                        throw pmsEx;
                   }catch(SQLException sqlEx){
    return sqlEx.getErrorCode();
                   }catch(Exception e){
                        //throw new PMSException("addJob() SQLException Wrapped! " + e.getMessage());
                        throw new PMSException("addRole() SQLException Wrapped! " + e.getMessage());
                   }finally{     
                        role=null;
                                  //dept = null;
                                  if(ovStmt != null)
    ovStmt.close();
                                  ovStmt =null;
                                  ovPool.close(ovCon);
    ovCon = null;
                                       ovPool =null;
    //end of try block
    }

  • When opening a WebHelp system in Firefox, it complains that it can't find contentlist.xml--is this needed? What is it?

    When a developer called my online help system (generated in RoboHelp9 as WebHelp) from Firefox, the help seemed to work fine. But he said in Firefox "trace output it complained about 'can not find contentlist.xml’" What is it looking for, and will this cause problems with the functioning of the help?
    There is no topic in my RH9 output by that name.

    Can you replicate the error message yourself? For example, does it appear in Firefox's Error Console (Ctrl+Shift+j)?
    If you aren't getting user complaints about missing functionality, this might be a nonessential file, or it could be a spurious error related to the user's personal configuration (e.g., an add-on).
    There is a more global issue to watch for: During the past year Firefox started enforcing higher security restrictions for local web pages. Your page should be able to access files in the same folder or a subfolder. However, if the RoboHelp page is set up to access resources in a directory that requires navigation through a parent directory, that might be blocked.
    Hope this helps.

  • JWSDP 2.0/ JAX-WS 2.0: can not find com.bea.xml.stream.MXParserFactory

    Hi,
    when I invoke wsimport with Ant to create the client artifacts with the custom-client-binding file I always get an error like "javax.xml.stream.FactoryConfigurationError, can not find provider class com.bea.xml.stream.MXParserFactory".
    I can not find the BEA provider in the JWSDP 2.0.
    Who can help me?
    wolfgang

    You need an implementation of the JSR-173 API on your classpath, e.g. sjsxp.jar from the JWSDP.

  • Problems with Sun One Web Server 6.1 javax.xml.xpath package not found

    I used myeclipse to build an xml app and tested on jboss. it worked perfectly. However when i deployed it to our solaris sun one web server the app fell apart completely with the following error. I m unable to figure out what went wrong. Any help will be much appreciated.
    Thanks.
    [11/Dec/2007:22:12:37] failure (13539):      for host 121.247.233.169 trying to GET /feeds/rss.jsp, service-j2ee reports: StandardWrapperValve[jsp]: WEB2792: Servlet.service() for servlet jsp threw exception
         org.apache.jasper.JasperException: WEB4000: Unable to compile class for JSP
         /opt/SUNWwbsvr/test/ClassCache/test/_jsps/_feeds/_rss_jsp.java:8: package javax.xml.xpath does not exist
         import javax.xml.xpath.*;
         ^

    Thanks for the response. I tried to use xalan package which resolved the javax.xml.xpath package not found error (xalan.jar in WEB-INF/lib folder). However I m now getting the following error. Probably incompatible version is the reason. Please advise!
    [11/Dec/2007:23:46:28] failure (17028):      for host 121.247.233.169 trying to GET /feeds/rss.jsp, service-j2ee reports: StandardWrapperValve[jsp]: WEB2792: Servlet.service() for servlet jsp threw exception
         javax.servlet.ServletException: org.apache.xpath.XPathContext.<init>(Z)V
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)
         at _jsps._feeds._rss_jsp._jspService(_rss_new_jsp.java:627)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:687)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:459)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:375)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:580)
         ----- Root Cause -----
         java.lang.NoSuchMethodError: org.apache.xpath.XPathContext.<init>(Z)V
         at org.apache.xpath.jaxp.XPathImpl.eval(XPathImpl.java:207)
         at org.apache.xpath.jaxp.XPathImpl.evaluate(XPathImpl.java:281)
         at _jsps._feeds._rss_new_jsp._jspService(_rss_jsp.java:165)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:687)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:459)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:375)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:580)

  • I am a student who subscribed to the 9.99 photography package, I didn't realize there was a discount for students.  I would like to upgrade to the full package with the student discount.  I can not find the option for this. How do I do this?

    I am a student who subscribed to the 9.99 photography package, I didn't realize there was a discount for students.  I would like to upgrade to the full package with the student discount.  I can not find the option for this. How do I do this?

    Hi Djmontanalv,
    Please go through the link below.
    http://helpx.adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html
    Regards,
    Anand

  • I've purchased 3 bundle movie packages, Sherlock Holmes, Batman, and The Godfather, I am can not find them in my itunes. I can only see the first movie in the series.

    I've purchased 3 bundle movie packages, Sherlock Holmes, Batman, and The Godfather, I am can not find them in my itunes. I can only see the first movie in the series.

    First of all, you should always save you photos on computer like any other digital camera.
    Backup on iCloud or iTunes only backup your Camera Roll. The other photos should be already on the computer.
    Note: Photos are not saved in iTunes, it's only a conduit between your iPhone and your photo managing software on computer.
    What computer do you have?

  • ERROR: XML parse error: Error on line 1 of document: cvc-elt.1: Can not find the declaration of element 'model'. Nested exception: Can not find the declaration of element 'model'.

    I have install flash builder 4 beta 2 + blazeds 4.00.7548. While try to connect to data service and face a problem.
    When i use a beta 1 that no such probem. please help.
    ERROR: XML parse error: Error on line 1 of document: cvc-elt.1: Can not find the declaration of element ‘model’. Nested exception: Can not find the declaration of element ‘model’.

    Hello All!
    I'm just getting started with Flash Builder 4 and BlazeDS and I'm having this same issue.     I have installed the FlashBuilder 4 beta 2  Build 253292, and Blaze 4  ( blazeds-turnkey-4.0.0.14341 ).       I have also installed the livecycle_dataservices3_modelerplugin_100509.      Upon clicking Data-Connect to data/service and then Blazeds,   I can see my DAO object listed.   However, if I select it I receive the dreaded error.       Now if I code in the remote object manually, in the  .mxml file and run it, all works just fine.        It's only while trying to use the object within Flashbuilder that I have the problem.     I see lots of ideas kicked around for this, and it seems that various solutions have worked for different users.    Can somebody put together a 'cookbook' of just exactly how to set things up to make this work? 
    Thanks

Maybe you are looking for

  • [solved] ADF BC - Automatically fill in form fields

    Hi all, I think i just need pointing in the right direction. I am using ADF 11g BC. Here is the case in EMP/DEPT terms. I click a row on the DEPT table, and click add employee button. A popup launches with a form. I want to have the DEPTNO and DEPTNA

  • J1ID Querries

    In vendor excise details of J1ID what is the significance of the last column " Cenvat". When should i checked it. Similarly in plant excise details what value i should maintain in excise indicator " E" What is the importance of the it. In excise tax

  • Interpretation of the use of threads with Sessions in the JMS Specification

    Hello, I've been interacting with two JMS Providers which do a different interpretation of the JMS Specification with the use of different threads for accessing to a session and session's related objects. The question is: When a client is consuming m

  • Opening a Web Template 7.0 using filters in a link

    Hello, I have a BSP application that opens web reports using links that are dynamically configured like this: http://... (servr name & stuff) ... ?TEMPLATE=ZDHR_WT2_SITESF&FILTER_IOBJNM=ZDHR_VT&FILTER_VALUE=A&FILTER_IOBJNM_1=ZDHR_OU&FILTER_VALUE_1=CH

  • RGB values (eyedropper) where ot find in Aperture?

    Where can I find the eyedropper tool in Aperture? I want to check if in fact my greys are neutral... Can't seem to find it!