Can't build JAXB examples using ant

I'm getting the following errors when trying to build the JAXB sampls using ant. I've followed all the instructions, not sure what the prob is.
I'm using JDK 1.6 and JWSDP 2.0 on Windows XP.
Any ideas?
C:\Sun\jwsdp-2.0\jaxb\samples\unmarshal-read>ant
Buildfile: build.xml
compile:
[echo] Compiling the schema...
[xjc] C:\Sun\jwsdp-2.0\jaxb\samples\unmarshal-read\gen-src\primer.po is not found and thus excluded from the dependency check
[xjc] Compiling file:/C:/Sun/jwsdp-2.0/jaxb/samples/unmarshal-read/po.xsd
BUILD FAILED
C:\Sun\jwsdp-2.0\jaxb\samples\unmarshal-read\build.xml:34: java.lang.IllegalArgumentException: Expected class javax.xml.bind.annotation.XmlAccessType but found class javax.xml.bind.annotation.AccessType

I'm getting the following errors when trying to build
the JAXB sampls using ant. I've followed all the
instructions, not sure what the prob is.
I'm using JDK 1.6 and JWSDP 2.0 on Windows XP.
Any ideas?
C:\Sun\jwsdp-2.0\jaxb\samples\unmarshal-read>ant
Buildfile: build.xml
compile:
[echo] Compiling the schema...
[xjc]
C:\Sun\jwsdp-2.0\jaxb\samples\unmarshal-read\gen-src\
rimer.po is not found and thus excluded from the
dependency check
[xjc] Compiling
file:/C:/Sun/jwsdp-2.0/jaxb/samples/unmarshal-read/po
xsd
BUILD FAILED
C:\Sun\jwsdp-2.0\jaxb\samples\unmarshal-read\build.xml
:34: java.lang.IllegalArgumentException: Expected
class javax.xml.bind.annotation.XmlAccessType but
found class javax.xml.bind.annotation.AccessTypeI'm having the same problem only using 1.5.0.10 jdk running windows XP, I'm not using ant, just command line...

Similar Messages

  • Problem in deployment of ISA B2B after building the app using ant buildtool

    Hi
    I've a problem with building ISA B2B App after modification.
    I've ISAWAC640SP11 and ant buildtool to build the application.
    I've setup a customer project in NWDS.
    I've build the application using build tool but when i try to deploy it
    on SAP J2EE 6.4 using SDM i get a weird message stating
    <b>"com.sap.sdm.util.sduread.IllFormattedSduFileException: The archive must be deployed with a 6.20 SDM, which has a SDM-SDA compatible version 1 or greater."</b>
    Does anyone know what is the exact proecess to build the application in
    SAP J2EE 6.4.
    Do we have to use the ant build tool or we can directly build the app using NWDS
    default build process ?
    Also can some one suggest me to setup a customer project for extension and
    modification of ISA B2B 640 on NWDS and SAP J2EE 6.4....
    Thanks & Regards
    Sandeep Solanki

    Guys please help  !!!
    atleast gimme some idea or suggestions.. !!!
    Regards
    Sandeep

  • Building J2EE examples with Ant 1.3 on WinXP

    I just installed J2EE 1.3.1 and set all environment variables according to J2EE/Ant documentation. I am trying to build the examples with Ant 1.3 and just before it tries to compile the first example, I get a "NTVDM.EXE Error while setting up environment" error window. This occurs every time I try this examples build. After I close this error window, the compiles fail mostly because the javax.ejb package classes cannot be found.
    Have I overlooked something here? Can anyone shed some insight on this problem?
    -Ryan

    Didn't think I'd be replying to so many of my own messages :-) ..., but anyway the problem with the NTVDM.EXE error message does not go away. I found that it's happens when Ant reads the system environment in the "property" task in build.xml under examples directory:
    <property environment="myenv" />
    <!--
    references to ${myenv.J2EE_HOME} and so on
    -->
    So I replaced occurences of ${myenv.<J2EE_HOME>} with the literal value, in my case, "C:\j2sdkee1.3.1" and now it works. Hope this helps.
    Cheers,
    Lakshmi.

  • Can I build a database, using my Contacts and then email them?

    Can I build a database, using my Contacts and then email them?

    If you mean email them as a group you need to get a group messaging app first. If you mean email the database you need to take a screen shot and email the photo.

  • JSP precompilation and my .java files compilation issues /  building WAR file using ANT

    Hello.
    I am new to working with WAR files and the whole process of it. A little
    background on what we are using. We are using, WLS 6.1 SP3. I am using the
    ant.bat that is supplied in the bin directory of the WLS install.
    I am trying to work with ANT and getting it to build the file. I am making
    progress, but at a point where I am having trouble getting my java code
    files to compile using ant. I am having one issue and looking to do one
    other item.
    1) I would like to precompile the JSPs if possible prior to putting into the
    WAR file. Not sure if this is done or not, but there was a utility when I
    was working with ibm's app server that gave us the ability to do a batch
    complile. Was thinking that maybe a similair concept is possibly here.
    2) Having issue getting ant to compile code properly. In the compile
    section of the build.xml file for ant, I tell it where the source files are,
    and the destionation folder for the compiled class files. I then try to set
    the classpath so that it finds the .jar files that are necessary for my
    source files to complile. But, it won't find them. And not sure how come.
    I may be going about this all wrong, but dont know. Here is the compile
    section of the build.xml I am using:
    <target name="compile" depends="prepare">
    <javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
    classpath="$(lib.home)"
    debug="on" optimize="on" deprecation="off"/>
    </target>
    One note, I've tried many different items in the classpath line, which
    don't work. if I do *.jar it fails at complie time, invalid argument. As
    well as if I use *.* and so on. if I list the explicit file names, it still
    doesn't seem to find them.
    I was wondering if anyone could help, if you need anymore information let me
    know, I can send the entire build.xml if necessary. I may be missing
    items, seeing that this is my first try at using ANT.
    Any help is appreciated and thanks in advance. Hopefully not sounding too
    off the wall. Hopefully get some clarification and understanding.
    Thank you.
    Kevin.

    Kevin Price wrote:
    Hello.
    I am new to working with WAR files and the whole process of it. A little
    background on what we are using. We are using, WLS 6.1 SP3. I am using the
    ant.bat that is supplied in the bin directory of the WLS install.
    I am trying to work with ANT and getting it to build the file. I am making
    progress, but at a point where I am having trouble getting my java code
    files to compile using ant. I am having one issue and looking to do one
    other item.
    1) I would like to precompile the JSPs if possible prior to putting into the
    WAR file. Not sure if this is done or not, but there was a utility when I
    was working with ibm's app server that gave us the ability to do a batch
    complile. Was thinking that maybe a similair concept is possibly here.you can use weblogic.jspc
    http://e-docs.bea.com/wls/docs70/jsp/reference.html#57794
    or just set the precompile flag in weblogic.xml
    You can configure WebLogic Server to precompile your JSPs when a Web
    Application is deployed or re-deployed or when WebLogic Server starts up
    by setting the precompile parameter to true in the <jsp-descriptor>
    element of the weblogic.xml deployment descriptor.
    >
    2) Having issue getting ant to compile code properly. In the compile
    section of the build.xml file for ant, I tell it where the source files are,
    and the destionation folder for the compiled class files. I then try to set
    the classpath so that it finds the .jar files that are necessary for my
    source files to complile. But, it won't find them. And not sure how come.
    I may be going about this all wrong, but dont know. Here is the compile
    section of the build.xml I am using:
    <target name="compile" depends="prepare">
    <javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
    classpath="$(lib.home)"
    debug="on" optimize="on" deprecation="off"/>
    </target>
    maybe because you are not using curly braces there on lib.home??
    if you do it the way above, you would have to list all your jars
    classpath="$(lib.home)\lib1.jar:$(lib.home)\lib2.jar"
    or you can nest
    <javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
    debug="on" optimize="on" deprecation="off">
         <classpath>
              <fileset dir="${lib.home}" includes="*.jar" />
         </classpath>
    </javac>
    One note, I've tried many different items in the classpath line, which
    don't work. if I do *.jar it fails at complie time, invalid argument. As
    well as if I use *.* and so on. if I list the explicit file names, it still
    doesn't seem to find them.
    I was wondering if anyone could help, if you need anymore information let me
    know, I can send the entire build.xml if necessary. I may be missing
    items, seeing that this is my first try at using ANT.
    Any help is appreciated and thanks in advance. Hopefully not sounding too
    off the wall. Hopefully get some clarification and understanding.
    Thank you.
    Kevin.

  • Bug: Can't build TopLink10g Examples

    Hi,
    I am new to TopLink and tried to run the examples which come with Toplink 10g. I downloaded the source code (http://otn.oracle.com/products/ias/toplink/preview/examples.htm) and started the ANT build process (configureExample.s.cmd).
    Problem: ANT can't find class org.apache.tools.ant.taskdefs.MultipleCopy .
    BUILD FAILED
    file:D:/oracle/ora92/toplink/examples/build.xml:12: taskdef class org.apache.tools.ant.taskdefs.MultipleCopy cannot be found
    A quick search reveals that Apache does not provide that class!
    Who can help me to build the examples?
    Is a workaround available?
    Thanx in advance,
    Markus

    Hi, after installing ANT copy the <ORACLE_HOME>/toplink/examples/resources/toplink_customtasks.jar to your <ANT_INSTALL>/lib directory.

  • How do u include relevant api's in build.xml when using Ant ?

    I am attempting to move from using KToolbar to using Ant to build my midlets.
    I have succesfully built a simple midlet but need to know how to modify the build.xml file to include specific api's my application may use such as:
    WMA, J2ME Web Services, MMAPI, or specific phone api's like Nokia.
    Can anyone help?

    You need to specify the wtk.midpapi so that it points to the classes you need:
    <property name="wtk.home" value="[fill in the path to the appropiate SDK's class library]]"/>shmoove

  • Can't start weblogic server using Ant

    Hello,
    I can't start the WL Portal after installation.
    On a Windows 2000 Server SP2 : - I installed WebLogic Server 6.1 SP2 with the examples
    - I installed WebLogic Portal 4.0 SP2 (giving the same password as during the WL
    Server installation) -I installed EBCC 4.0 SP2 .
    I updated the license with UpdateLicense.cmd
    Now If I run - run the default WL server, both from the menu and as a service -
    enter the WL server console (on port 7001) - run the EBCC .
    When I try to start the WL Portal, from the program menu I am able to start the
    WP server properly , But I I try to start it from an ant wlrun then I get the error
    an IllegalAccessError (with the same password I gave during installation and I use
    to enter the server console): The WebLogic Server did not start up properly. Exception
    raised: java.lang.IllegalAccessError: try to access method weblogic/management/internal/Helper.preloadMBeanInfos()V
    from class weblogic/management/Admin at weblogic.management.Admin.initialize(Admin.java:210)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:362) at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:202)
    at weblogic.Server.main(Server.java:35) Reason: Fatal initialization exception
    Any idea ?

    Hi VG,
    thank u a lot for ur answer. But there are no files at the Admin Server boot.properties path.
    and at the BI Server boot.properties path there is no security folder. Do u have any idea why i cant found anything at this directions ? Also I tried again the command "./startWeblogic.sh " and get a new error message which I post below. I am rlly worry about this. Is there maybe a way to reset the OBIEE and undo all changes ?
    <Oct 30, 2013 10:00:47 AM CET> <Warning> <EJB> <BEA-010001> <While deploying EJB 'AsyncAdminService_AsyncRequestProcessorMDB', class oracle.j2ee.ws.server.jaxws.AsyncRequestProcessorMDB was loaded from the system classpath. As a result, this class cannot be reloaded while the server is running. To prevent this behavior in the future, make sure the class is not located in the server classpath.>
    <Oct 30, 2013 10:00:47 AM CET> <Warning> <EJB> <BEA-010001> <While deploying EJB 'AsyncAdminService_AsyncResponseProcessorMDB', class oracle.j2ee.ws.server.jaxws.AsyncResponseProcessorMDB was loaded from the system classpath. As a result, this class cannot be reloaded while the server is running. To prevent this behavior in the future, make sure the class is not located in the server classpath.>
    <Oct 30, 2013 10:00:48 AM CET> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application em is not versioned.>
    ^C<Oct 30, 2013 10:39:50 AM CET> <Notice> <WebLogicServer> <BEA-000388> <JVM called WLS shutdown hook. The server will force shutdown now>
    <Oct 30, 2013 10:39:50 AM CET> <Alert> <WebLogicServer> <BEA-000396> <Server shutdown has been requested by <WLS Kernel>>
    <Oct 30, 2013 10:39:50 AM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>

  • Please please help error trying to install JWSDP example using ant

    Hello,
    I'm very new to Java programming and desperately need some help. I'm trying to run the Duke's bookstore example in the web services tutorial. When I build it using the Ant tool it says "build successful", however when I come to install it it gives the following error:
    BUILD FAILED
    file:C:/jwsdp-1.2/jwsdp-1_2-tutorial/jwstutorial12/examples/common/targets.xml:1
    5: java.io.IOException: Server returned HTTP response code: 401 for URL: http://
    localhost:8080/manager/install?path=%2Fbookstore1&war=file%3A%2Fjwstutorial12%2F
    examples%2Fweb%2Fbookstore1%2Fbuild
    Any help would be gratefully received.
    Thanks

    From:
    ftp://ftp.isi.edu/in-notes/rfc2616.txt
    10.4.2 401 Unauthorized
    The request requires user authentication. The response MUST include a
    WWW-Authenticate header field (section 14.47) containing a challenge
    applicable to the requested resource. The client MAY repeat the
    request with a suitable Authorization header field (section 14.8). If
    the request already included Authorization credentials, then the 401
    response indicates that authorization has been refused for those
    credentials. If the 401 response contains the same challenge as the
    prior response, and the user agent has already attempted
    authentication at least once, then the user SHOULD be presented the
    entity that was given in the response, since that entity might
    include relevant diagnostic information. HTTP access authentication
    is explained in "HTTP Authentication: Basic and Digest Access
    Authentication" [43].
    Sounds like you need to check a username/password somewhere in the targets.xml file? Hope this helps. Cheers, Neil

  • Instead of using the make file can you build nirlpk.sys using MS WDK 8.0 on VS2012?

    After downloading the NI nimhddk_windowsWDM-2 and -1
    Instead of using the make file I built nirlpk.sys using MS WDK 8.0 on VS2012
    I copied the source files out of the dir /nirlpk to the MS template for WDM drivers
    It built after turning warnings as errors off.
    After uninstalling the NI_DMX driver I tried to install the RLP driver that consisted of nirlp.inf and nirlpk.sys
    I got this message:
    Windows found driver software for your device but encounted and error while attempting to install it.
    PCI-6602 RLP WDM
    Driver is not intended for this platform
    Is the nirlp.inf file correct for loading on Windows 7 64 bit?
    Any ideas?

    I have now altered the example along lines
    suggested by ghaneman*, who pointed out that
    a trusted application did not need to use the
    FileOpenService/FileContents just to get an
    InputStream.
    * Mentioned on 'File associations / sandboxed app.'
    http://forum.java.sun.com/thread.jspa?threadID=785224
    The altered code is..
    /** Load a file into the editing area.
    @param path A string representing the path to the desired file. */
    public void loadFile(String path) {
        // first try as if this were a trusted application..
        if (!path.equals(".")) {
            try {
                FileInputStream inputStream = new
                    FileInputStream(path);
                loadFile(inputStream);
            } catch (Exception e) {
                // we do not have trust, use the FileOpenService
                loadFileByFileService(path);
        } else {
            // we only have a directory, use the FileOpenService
            loadFileByFileService(path);
    public void loadFileByFileService(String path) {
        try {
            if (fileOpenService==null) {
                fileOpenService = (FileOpenService)ServiceManager.
                    lookup("javax.jnlp.FileOpenService");
            fileContents = fileOpenService.openFileDialog(path, xtns);
            // the user may have cancelled the action..
            if (fileContents!=null) {
                loadFile( fileContents.getInputStream() );
        } catch(UnavailableServiceException use) {
            use.printStackTrace();
        } catch(IOException ioe) {
            ioe.printStackTrace();
    }If the user launches the trusted version, and
    selects 'always trust' for the (self signed)
    certificate, the end user can thereafter double
    click a file and see it appear in the application's
    editing area with no further user interaction.

  • How can we build CQ authoring using backbone.js framework

    How can we use backbone.js and build CQ page and then author the content for such page? Backbone.js framework is a typical framework that includes all the HTML in javascript and I am not sure how we can create CQ pages with authoring features in it. Any pointers would be much appreciated.
    Thanks
    Murali

    Thank you, that works for me too!
    At first I was worried because, when I ran configure it said:
    checking build system type... i386-apple-darwin9.3.0
    checking host system type... i386-apple-darwin9.3.0
    checking target system type... i386-apple-darwin9.3.0
    But I went ahead and ran make anyway, and here's what I ended up with:
    apache-2.0/mod_jk.so: Mach-O 64-bit bundle x86_64
    which I could install and test. It even works!
    Where did you find this information? I did a lot of digging too, but I must have been digging in the wrong places. I always like to go back to the source and see what else I can learn. Maybe then I can take another run at building a universal binary.

  • Can't build code that uses cpc_event_t

    Hello;
    I'm running on:
    69: uname -a
    SunOS chroma 5.10 Generic sun4u sparc SUNW,Sun-Fire-V490
    70: CC -V
    CC: Sun C++ 5.7 2005/01/07
    71:
    I can't think of why my program fails to build. This little test program has the same problem though:
    489: cat cpc_example.cpp
    #include <libcpc.h>
    main()
    cpc_event_t event;
    int cpuver = cpc_getcpuver();;
    char *setting = "pic0=EC_ref,pic1=EC_hit";
    cpc_strtoevent(cpuver, setting, &event);
    490: CC -lcpc cpc_example.cpp -o cpc_example -lcpc
    "cpc_example.cpp", line 5: Error: The type "_cpc_event" is incomplete.
    "cpc_example.cpp", line 7: Warning: String literal converted to char* in initialization.
    1 Error(s) and 1 Warning(s) detected.
    I greped under the /usr/include tree and my compiler installation tree and only found one reference for cpcevent.. It's used to define cpc_event_t in libcpc.h but doesn't seem to be defined any place.
    Thoughts?
    Kevin

    This seems a bug in Solaris 10 as the error didn't show up in Solaris 9. Please install all the recent Solaris 10 patches and see whether it goes away.
    Or try posting your question on Solaris OS forum at: http://forum.sun.com/category.jspa?categoryID=2
    Rose

  • Can't find ejbc when using ant

    When I am doing the ejb-jar task with iplanet extension I get the error:
    [ejbjar] java.io.IOException: CreateProcess: D:\apps\AppServer7\appserv\lib\bin\ejbc -sl -gs -classpath <snipped classpath> com.randomwalk.sun.pop.server.MarketDataServiceBean error=3
    I am running on Windows 2000

    <ejbjar srcdir="${build}"
    descriptordir="${config.dir}"
    classpath="${client}"
    basejarname="../../${dist}/portfolio-ejbs">
    <iplanet destdir="${ejb}"
    iashome="${ias_home}"
    debug="no"
    keepgenerated="yes" >
    <classpath>
    <pathelement path="." />
    <pathelement path="${build}" />
    <fileset dir="${ias_lib}">
    <include name="**/*.jar"/>
    </fileset>
    </classpath>
    </iplanet>
    <include name="**/ejb-jar.xml"/>
    <exclude name="**/weblogic*.xml"/>
    <support dir="${client}">
    <include name="**/*.class"/>
    </support>
    </ejbjar>

  • Problem in building app using ant.

    Hi,
    I downloaded JWSDP EA1 and trying to build, deploy and run the sample application programs using tutorial. while building the app using "ant build" command I get an error saying class org.apache.catalina.ant.InstallTask not found. when I removed this class from build.xml, it was able to build the application,but, then "ant install" failed saying that install not found, which means that I must get this InstallTask class. my classpath is ok.
    Somebody please tell me where can get this class ? I could not get on jakarta.apache.org site as well.
    Thanks a lot.

    The install task is only available in JWSDP EA2, not EA1.

  • Flex 2 SDK; Can't Build Examples

    I recently down loaded the Flex 2 (Flex_SDK_2) software.
    After downloading it, it further required the down loading of an
    JAVA SDK (I chose Java™ SE Development Kit 5 {jdkl.6.0_01}
    from Sun based upon what I think you guys recommended).
    I have included
    “C:\Program Files\Java\jdk1.6.0_01\bin” or
    “C:\Program Files\Java\jdk1.6.0_01\jre\bin” in
    the system path.
    However, when I try and build the examples using the provided
    batch file which uses “.\bin\mxmlc” I get
    Error: could not find JRE
    Error: could not find Java 2 Runtime Environment.
    I confirmed that the path was set properly by simply
    executing “Java” or “Java-RMI” from the dos
    prompt where the “mxmlc.exe” resides.
    At the moment, I don’t know what to do next.
    A point of clarification, it was my understanding that
    “The free Flex Software Development Kit (SDK)” does not
    have a 30-day trial period.

    It turns out this was a syntax issue. I assumed “Ensure
    that Java SDK is installed on the computer and that the
    java_home/bin directory is defined in the system path.”,
    meant
    Set Path=C:\Program Files\Java\jdk1.6.0_01\bin;….
    not
    Set java_home=C:\Program Files\Java\jdk1.6.0_01

Maybe you are looking for

  • I cannot restore ipad after upgrading to itunes 10.2.2.14

    Since upgrading my Ipad to latest revision of Itunes,  I can no longer sync and it now requires a restore.  I took the Ipad to Best Buy and they restored it,  but when I connected it back onto my PC,  same thing happens.  When I goto restore screen a

  • Mail: Sending, with recipient names sorted alphabetically

    When sending to a large group, after typing a group name in the cc/bcc field, I want to remove some recipients. It is much easier to do this if the recipients are sorted alphabetically. How do I force alphabetical sort (either ascending or decending)

  • LG-32" Class / 1080p / LCD HDTV-32LD4​00

    I just got a  LG-32" Class / 1080p / LCD HDTV-32LD400 and when you hook it from the HDMI port I get no signal I havecheck ever thing. My receiver is ok as I switched it out with my 47" Samsong and it works fine any ideas

  • SAP Archive process

    Hi all, How to archive the data from SAP when the data have a delete tag? can any one please explain the archive process in SAP? we have to delete production order data? Thanks in advance. Regards, veera Edited by: Veerab on Oct 3, 2011 9:52 AM

  • Facing problem in DAC for Null data

    Set Refresh date null in DAC not working as expected. We want to do a full load for a stagging table and we set the refresh date as null for that DS table However the parameter file which gets generated still contain the date of last run instead of N