aspose file tools*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Sun JavaeeTutorial jaxB examples Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Sun JavaeeTutorial jaxB examples" Watch "Sun JavaeeTutorial jaxB examples" New topic
Author

Sun JavaeeTutorial jaxB examples

ahsan mir
Ranch Hand

Joined: Jul 17, 2006
Posts: 42
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>
*********************************************************************
 
 
subject: Sun JavaeeTutorial jaxB examples