*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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>
*********************************************************************
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sun JavaeeTutorial jaxB examples
 
Similar Threads
Need help setting classpath to run JAXB
Anybody ever faced this problem running client of chapter 2 of pro ejb 3 java persistence api
Why 'gen-src\primer.po is not found'?
@WebMethod not found
compiling with non-standard classes