Hello,
It would be very helpful if some guidance is pointed to figure out this
situation:

Working on a maven2 project, some domain entities classes/interfaces uses
the following JAXB annotations:
...
import com.sun.xml.internal.bind.v2.runtime.RuntimeUtil.ToStringAdapter;

/**
 * The Interface SearchTypeDescriptor.
 */
@XmlType
@XmlJavaTypeAdapter(value = ToStringAdapter.class)
public interface SearchTypeDescriptor {
.......

We do not generate .java file from a schema, we have already built .java
domain entities and we needed an xml representation of that entity on
runtime for which we decided to go with JAXB

while trying to run from command line:
mvn compile
It fails and prompt this error:
.............SearchTypeDescriptor.java:[6,55]
package com.sun.xml.internal.bind.v2.runtime.RuntimeUtil does not exist

Same error is thrown from hudson CI on same dev PC

My .m2 repo includes jaxb .jar libraries, pom.xml file also include jaxb as
dependencies

<dependency>
                        <groupId>javax.xml.bind</groupId>
                        <artifactId>jaxb-api</artifactId>
                        <version>2.1</version>
                </dependency>
                <dependency>
                        <groupId>com.sun.xml.bind</groupId>
                        <artifactId>jaxb-impl</artifactId>
                        <version>2.1.3</version>
                </dependency>

maven compile plugin uses sources & target = 1.5 (I also tried 1.6 with and
without above mentioned dependencies in pom.xml file with same unsuccessful
results)

My dev environment:
Windows Vista JDK 1.6 (latest as of 06/10/2008), maven 2.0.9

I also tried FreeBSD 6.3 using jdk 1.5 and jdk 1.6 with latest patches built
from FreeBSD ports collection. I made sure .m2 repo in this environment also
include JAXB libraries. Hudson and Continuum (while testing another CI app)
failed with same error

On dev environment Eclipse works fine though. I'm able to start jetty, run
webapp and see/process xml "view"/stream of the entities.

Any help/guidance will be appreciated,
Orlando
-- 
View this message in context: 
http://www.nabble.com/Compile-project-that-uses-JAXB-tp17778612p17778612.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to