• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Sun JavaeeTutorial jaxB examples

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
i have tried running the JaxB examples in the tutorial but gets the following error.I have tried generating the java classes using the xjc command and specifiying 'primer.po' package and running the main program but the same error is reported. I get the same error whether or not I have the 'primer.po' package (with the generated java classes).
I had no problem in running the JAXP(StaX) and JAXws examples.
I am using the Sun Application Server 9, and the J2EE SDK.

Any help on how to fix this would be appreciated.
***************************************************************************C:\javaeetutorial5\examples\jaxb\modify-marshal>asant
Buildfile: build.xml
Overriding previous definition of reference to classpath

-pre-init:

init:

default-ear:

-pre-compile:

bpp-actual-compilation:
[echo] Compiling modify-marshal
[javac] Compiling 1 source file to C:\javaeetutorial5\examples\jaxb\modify-m
arshal\build\classes
[javac] C:\javaeetutorial5\examples\jaxb\modify-marshal\src\modifymarshal\Ma
in.java:39: package primer.po does not exist
[javac] import primer.po.*;
[javac] ^
[javac] C:\javaeetutorial5\examples\jaxb\modify-marshal\src\modifymarshal\Ma
in.java:67: cannot find symbol
[javac] symbol : class PurchaseOrderType
[javac] location: class Main
[javac] PurchaseOrderType po = (PurchaseOrderType) poe.getValue(
);
[javac] ^
[javac] C:\javaeetutorial5\examples\jaxb\modify-marshal\src\modifymarshal\Ma
in.java:67: cannot find symbol
[javac] symbol : class PurchaseOrderType
[javac] location: class Main
[javac] PurchaseOrderType po = (PurchaseOrderType) poe.getValue(
);
[javac] ^
[javac] C:\javaeetutorial5\examples\jaxb\modify-marshal\src\modifymarshal\Ma
in.java:70: cannot find symbol
[javac] symbol : class USAddress
[javac] location: class Main
[javac] USAddress address = po.getBillTo();
[javac] ^
[javac] 4 errors

BUILD FAILED
C:\javaeetutorial5\examples\bp-project\command-line-ant-tasks.xml:89: Compile fa
iled; see the compiler error output for details.

Total time: 1 second
C:\javaeetutorial5\examples\jaxb\modify-marshal>
*********************************************************************
 
I am Arthur, King of the Britons. And this is a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic