java - JAXB transformation not working in Mule -


i following mule tutorials perform jaxb transformations. exception trace below, followed configuration

i using mule 3.6.2 ee on jdk 1.7

warn  2015-07-18 12:41:34,326 [main] org.mule.config.spring.muleartifactcontext: exception encountered during context initialization - cancelling refresh attempt org.springframework.beans.factory.beancreationexception: error creating bean name '_mulenotificationmanager': factorybean threw exception on object creation; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'jaxb_context': invocation of init method failed; nested exception javax.xml.bind.jaxbexception: provider com.sun.xml.bind.v2.contextfactory not instantiated: javax.xml.bind.jaxbexception: "com.mulesoft.training" doesnt contain objectfactory.class or jaxb.index  - linked exception: [javax.xml.bind.jaxbexception: "com.mulesoft.training" doesnt contain objectfactory.class or jaxb.index]     @ org.springframework.beans.factory.support.factorybeanregistrysupport.dogetobjectfromfactorybean(factorybeanregistrysupport.java:173) ~[spring-beans-3.2.13.release.jar:3.2.13.release]     @ org.springframework.beans.factory.support.factorybeanregistrysupport.getobjectfromfactorybean(factorybeanregistrysupport.java:102) ~[spring-beans-3.2.13.release.jar:3.2.13.release]     @ org.springframework.beans.factory.support.abstractbeanfactory.getobjectforbeaninstance(abstractbeanfactory.java:1467) ~[spring-beans-3.2.13.release.jar:3.2.13.release]     @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:246) ~[spring-beans-3.2.13.release.jar:3.2.13.release]     @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:191) ~[spring-beans-3.2.13.release.jar:3.2.13.release]     @ org.springframework.beans.factory.support.defaultlistablebeanfactory.preinstantiatesingletons(defaultlistablebeanfactory.java:632) ~[spring-beans-3.2.13.release.jar:3.2.13.release] 

my xml configuration looks below

<http:request-config name="united_rest_request_configuration" host="localhost" port="8112" basepath="essentials/united/flights" doc:name="http request configuration"/> <http:request-config name="bank_rest_request_configuration" host="training.cloudhub.io" port="80" basepath="/build/banking/rest" doc:name="http request configuration">     <http:raml-api-configuration location="http://localhost:8112/build/banking/raml"/> </http:request-config> <ws:consumer-config name="delta_web_service_consumer" wsdllocation="http://localhost:8112/essentials/delta?wsdl" service="ticketserviceservice" port="ticketserviceport" serviceaddress="http://localhost:8112/essentials/delta" doc:name="web service consumer"/> <mulexml:jaxb-context name="jaxb_context" packagenames="com.mulesoft.training" doc:name="jaxb context" />  <flow name="getdeltaflightsflow">     <http:listener config-ref="http_listener_configuration" path="/delta" allowedmethods="get" doc:name="/delta"/>     <ws:consumer config-ref="delta_web_service_consumer" operation="listallflights" doc:name="listallflightsws"/>     <mulexml:jaxb-xml-to-object-transformer returnclass="com.mulesoft.training.flightarray" jaxbcontext-ref="jaxb_context" doc:name="xml jaxb object"/>     <logger message="#[payload]" level="info" doc:name="logger"/> </flow> 

my package structure looks belowenter image description here

mule projects in eclipse (mule studio) extension of java project type. of resources in java project must go in resources-type class path entry, in short, src/main/resources these types of files must live. can create package there , place resources , should work.

this true maven mule projects got structure.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -