Claus The only jaxb library I can see missing is jaxb-xjc.
Manifest (split up class path) Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: Apache Maven Built-By: johnrobens Build-Jdk: 1.6.0_17 Main-Class: au.com.hearing.server.AhsMessageRouter Class-Path: camel-core-2.2.0.jar commons-logging-api-1.1.jar commons-management-1.0.jar camel-jms-2.2.0.jar camel-spring-2.2.0.jar spring-context-2.5.6.jar aopalliance-1.0.jar commons-logging-1.1.1.jar spring-beans-2.5.6.jar spring-core-2.5.6.jar spring-aop-2.5.6.jar spring-tx-2.5.6.jar spring-jms-2.5.6.jar commons-pool-1.3.jar spring-context-support-2.5.6.jar geronimo-jms_1.1_spec-1.1.1.jar camel-rss-2.2.0.jar camel-atom-2.2.0.jar abdera-core-0.4.0-incubating.jar abdera-i18n-0.4.0-incubating.jar geronimo-activation_1.0.2_spec-1.1.jar commons-codec-1.3.jar abdera-parser-0.4.0-incubating.jar axiom-impl-1.2.5.jar axiom-api-1.2.5.jar jaxen-1.1.1.jar xercesImpl-2.6.2.jar xml-apis-1.3.04.jar geronimo-stax-api_1.0_spec-1.0.1.jar wstx-asl-3.2.9.jar rome-1.0.jar jdom-1.0.jar activemq-camel-5.3.0.jar camel-web-2.0.0-classes.jar camel-groovy-2.0.0.jar groovy-all-1.6.3.jar ant-1.7.1.jar ant-launcher-1.7.1.jar jline-0.9.94.jar camel-ruby-2.0.0.jar jruby-1.2.0.jar jersey-spring-1.1.1-ea.jar jersey-server-1.1.1-ea.jar jersey-core-1.1.1-ea.jar jsr311-api-1.1.jar asm-1.5.3.jar spring-2.5.6.jar spring-web-2.5.6.jar jersey-json-1.1.1-ea.jar jettison-1.2.jar stax-api-1.0.1.jar jaxb-impl-2.1.12.jar jaxb-api-2.1.jar stax-api-1.0-2.jar activation-1.1.jar jackson-asl-0.9.4.jar jersey-atom-1.1.1-ea.jar sitemesh-2.3.jar jstl-1.1.2.jar standard-1.1.2.jar slf4j-api-1.5.6.jar slf4j-log4j12-1.5.6.jar log4j-1.2.15.jar activemq-core-5.3.0.jar activeio-core-3.1.2.jar geronimo-j2ee-management_1.1_spec-1.0.1.jar kahadb-5.3.0.jar activemq-protobuf-1.0.jar geronimo-j2ee-management_1.0_spec-1.0.jar commons-net-2.0.jar activemq-pool-5.3.0.jar geronimo-jta_1.0.1B_spec-1.0.1.jar camel-stream-2.2.0.jar camel-sql-2.2.0.jar spring-jdbc-2.5.6.jar postgresql-8.3-603.jdbc4.jar ojdbc14-10.2.0.3.0.jar camel-jpa-2.2.0.jar geronimo-jpa_3.0_spec-1.1.1.jar spring-orm-2.5.6.jar camel-jaxb-2.2.0.jar camel-juel-2.2.0.jar geronimo-el_1.0_spec-1.0.1.jar juel-2.1.2.jar camel-esper-1.0.jar esper-1.11.0.jar antlr-2.7.6.jar cglib-full-2.0.2.jar mysql-connector-java-3.1.14.jar jencks-amqpool-2.2.jar camel-xstream-2.2.0.jar xstream-1.3.1.jar xpp3_min-1.1.4c.jar xalan-2.7.1.jar serializer-2.7.1.jar hibernate-entitymanager-3.4.0.GA.jar ejb3-persistence-1.0.2.GA.jar hibernate-commons-annotations-3.1.0.GA.jar hibernate-annotations-3.4.0.GA.jar hibernate-core-3.3.0.SP1.jar commons-collections-3.2.1.jar dom4j-1.6.1.jar jta-1.1.jar javassist-3.4.GA.jar hibernate-3.2.7.ga.jar ehcache-1.2.3.jar asm-attrs-1.5.3.jar cglib-2.1_3.jar hsqldb-1.8.0.10.jar geronimo-jta_1.1_spec-1.1.1.jar xbean-spring-3.5.jar aspectjrt-1.6.2.jar aspectjweaver-1.6.2.jar asm-util-1.5.3.jar commons-beanutils-1.7.0.jar On 23 February 2010 07:34, john robens <[email protected]> wrote: > Claus > > Java is java version "1.6.0_17" - macos. Was getting the same result on > linux. > > Thanks > John > > > On 23 February 2010 04:10, Claus Ibsen <[email protected]> wrote: > >> Hi >> >> No I have not seen this before. Are you using jdk 1.5 or 1.6? >> If 1.5 are you sure all the JAXB classes is included in the classpath? >> >> >> >> On Mon, Feb 22, 2010 at 1:46 PM, john robens <[email protected]> >> wrote: >> > Hi >> > >> > I have this error - which seems relatively common except that my twist >> seems >> > to happen when am running camel from a jar file not from the mvn:camel >> > target. >> > >> >> Works fine when run under "mvn camel:run" >> >> Fails when run java -jar >> > target/server-1.0-SNAPSHOT-jar-with-dependencies.jar >> > >> > Is this a known thing, or do I need debugging hints to delve into a >> > classpath? Look at the camel converters? >> > >> > >> > Caused by: [org.apache.camel.NoTypeConversionAvailableException - No >> type >> > converter available to convert from type: >> > org.apache.camel.component.file.GenericFile to the required type: >> > au.com.hearing.server.domain.Client with value >> GenericFile[pclient99981]] >> > >> > a) XML file is defined in directory >> > b) Bean defined with @XmlRootElement(name = "notice") >> > c) POM file has camel-jaxb (camel 2.2.0) >> > d) route is as per ETL >> > example: >> from("file:../../../data/notice?noop=true").convertBodyTo(Notice.class).to("jpa:au.com.interlated.server.domain.Notice"); >> > e) camel-maven-plugin has no particular arguments >> > f) maven-assembly-plugin used to build a jar file: >> > >> > >> > <plugin> >> > <artifactId>maven-assembly-plugin</artifactId> >> > <configuration> >> > <descriptorRefs> >> > >> <descriptorRef>jar-with-dependencies</descriptorRef> >> > </descriptorRefs> >> > <archive> >> > <manifest> >> > <!-- >> > >> > <mainClass>org.apache.camel.spring.Main</mainClass> >> > --> >> > >> > <mainClass>au.com.interlated.server.AhsMessageRouter</mainClass> >> > </manifest> >> > </archive> >> > </configuration> >> > <executions> >> > <execution> >> > <phase>package</phase> >> > <goals> >> > <goal>single</goal> >> > </goals> >> > </execution> >> > </executions> >> > </plugin> >> > >> > >> > g) I can see jaxb in the resulting jar file: 0 02-10-10 23:25 >> > org/apache/camel/converter/jaxb/ >> > >> > >> > >> > Thanks >> > John >> > >> > >> > >> > -- >> > http://interlated.com.au >> > 0434 996 607 >> > >> >> >> >> -- >> Claus Ibsen >> Apache Camel Committer >> >> Author of Camel in Action: http://www.manning.com/ibsen/ >> Open Source Integration: http://fusesource.com >> Blog: http://davsclaus.blogspot.com/ >> Twitter: http://twitter.com/davsclaus >> > > > > -- > http://interlated.com.au > 0434 996 607 > -- http://interlated.com.au 0434 996 607
