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>
*********************************************************************