I have been using Mule 3 M3 and am not trying to move over to RC2 and have a couple of questions.
CXF - We build our war file for the esb using maven and use cxf for the webservice capabilities. Earlier we would declare the dependency as shown below. When I try to switch from 3.0.0-M3 to 3.0.0-RC2 I get an error that it can not find : org.mule.transports:mule-transport-cxf:jar:3.0.0-RC2. I see from the notes that the way to include cxf has changed. How do should I be setting this up?
<dependency>
<groupId>org.mule.transports</groupId>
<artifactId>mule-transport-cxf</artifactId>
<version>${mule.version}</version>
</dependency>
Also, which version of CXF is used with Mule?
Which version of Spring is being used in Mule?
thanks for your help
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
The configuration has changed too, watch the upcoming doc updates.
Spring version in use is now 3.0.3
HTH,
Andrew
Any thoughts on what could be wrong?
Thanks for your help
suneet'
SEVERE: Line 22 in XML document from openiam-mule-config.xml is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'cxf:endpoint'. One of '{"http://www.springframework.org/schema/beans":beans, "http://www.springframework.org/schema/beans":bean, "http://www.springframework.org/schema/context":property-placeholder, "http://www.mulesoft.org/schema/mule/core":global-property, "http://www.mulesoft.org/schema/mule/core":configuration, "http://www.mulesoft.org/schema/mule/core":notifications, "http://www.mulesoft.org/schema/mule/core":abstract-extension, "http://www.mulesoft.org/schema/mule/core":abstract-agent, "http://www.mulesoft.org/schema/mule/core":abstract-security-manager, "http://www.mulesoft.org/schema/mule/core":abstract-transaction-manager, "http://www.mulesoft.org/schema/mule/core":abstract-connector, "http://www.mulesoft.org/schema/mule/core":abstract-global-endpoint, "http://www.mulesoft.org/schema/mule/core":abstract-transformer, "http://www.mulesoft.org/schema/mule/core":abstract-filter, "http://www.mulesoft.org/schema/mule/core":abstract-flow-construct, "http://www.mulesoft.org/schema/mule/core":flow, "http://www.mulesoft.org/schema/mule/core":abstract-model, "http://www.mulesoft.org/schema/mule/core":abstract-interceptor-stack, "http://www.mulesoft.org/schema/mule/core":abstract-message-processor}' is expected. (org.mule.api.lifecycle.InitialisationException)
org.mule.api.config.ConfigurationException: Line 22 in XML document from openiam-mule-config.xml is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'cxf:endpoint'. One of '{"http://www.springframework.org/schema/beans":beans, "http://www.springframework.org/schema/beans":bean, "http://www.springframework.org/schema/context":property-placeholder, "http://www.mulesoft.org/schema/mule/core":global-property, "http://www.mulesoft.org/schema/mule/core":configuration, "http://www.mulesoft.org/schema/mule/core":notifications, "http://www.mulesoft.org/schema/mule/core":abstract-extension, "http://www.mulesoft.org/schema/mule/core":abstract-agent, "http://www.mulesoft.org/schema/mule/core":abstract-security-manager, "http://www.mulesoft.org/schema/mule/core":abstract-transaction-manager, "http://www.mulesoft.org/schema/mule/core":abstract-connector, "http://www.mulesoft.org/schema/mule/core":abstract-global-endpoint, "http://www.mulesoft.org/schema/mule/core":abstract-transformer, "http://www.mulesoft.org/schema/mule/core":abstract-filter, "http://www.mulesoft.org/schema/mule/core":abstract-flow-construct, "http://www.mulesoft.org/schema/mule/core":flow, "http://www.mulesoft.org/schema/mule/core":abstract-model, "http://www.mulesoft.org/schema/mule/core":abstract-interceptor-stack, "http://www.mulesoft.org/schema/mule/core":abstract-message-processor}' is expected. (org.mule.api.lifecycle.InitialisationException)
at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:54)
at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78)
at org.mule.context.DefaultMuleContextFactory.createMuleContext(DefaultMuleContextFactory.java:96)
at org.mule.config.builders.MuleXmlBuilderContextListener.createMuleContext(MuleXmlBuilderContextListener.java:135)
at org.mule.config.builders.MuleXmlBuilderContextListener.initialize(MuleXmlBuilderContextListener.java:87)
at org.mule.config.builders.MuleXmlBuilderContextListener.contextInitialized(MuleXmlBuilderContextListener.java:63)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
config file:
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jms="http://www.mulesoft.org/schema/mule/jms" xmlns:cxf="http://www.mulesoft.org/schema/mule/cxf"
xmlns:vm="http://www.mulesoft.org/schema/mule/vm" xmlns:spring="http://www.springframework.org/schema/beans"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/jms http://www.mulesoft.org/schema/mule/jms/3.0/mule-jms.xsd
http://www.mulesoft.org/schema/mule/cxf http://www.mulesoft.org/schema/mule/cxf/3.0/mule-cxf.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.0/mule.xsd
http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/3.0/mule-vm.xsd">
<!-- Connectors -->
<jms:activemq-connector name="jmsConnector"
brokerURL="vm://localhost" />
<spring:bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean">
<spring:property name="config"
value="classpath:activemq.xml" />
<spring:property name="start" value="true" />
</spring:bean>
<cxf:endpoint name="toAuthenticationService" address="${webservice.path}AuthenticationService" />
<cxf:endpoint name="toQueryService" address="${webservice.path}QueryDataWebService" />
<cxf:endpoint name="toNavigatorService" address="${webservice.path}NavigationService" />
<model name="commonService">
<service name="connectorWebService">
<inbound>
<inbound-endpoint address="http://localhost:81/openiam-idm-esb/idmsrvc/ConnectorWebService"
exchange-pattern="request-response"/>
<cxf:jaxws-service />
</inbound-endpoint>
</inbound>
<component>
<singleton-object class="org.mule.example.echo.Echo"/>
</component>
</service>
</model>
But I then get the following erorr. Any guidance on the problem would be appreciated.
suneet
rg.mule.api.config.ConfigurationException: Line 64 in XML document from openiam
mule-config.xml is invalid; nested exception is org.xml.sax.SAXParseException:
vc-complex-type.2.4.a: Invalid content was found starting with element 'cxf:jax
s-service'. One of '{"http://www.mulesoft.org/schema/mule/core":abstract-inboun
-endpoint, "http://www.mulesoft.org/schema/mule/core":abstract-inbound-router,
http://www.mulesoft.org/schema/mule/core":abstract-transformer, "http://www.mul
soft.org/schema/mule/core":splitter, "http://www.mulesoft.org/schema/mule/core"
collection-splitter, "http://www.mulesoft.org/schema/mule/core":processor, "htt
://www.mulesoft.org/schema/mule/core":custom-processor, "http://www.mulesoft.or
/schema/mule/core":abstract-catch-all-strategy}' is expected. (org.mule.api.lif
cycle.InitialisationException)
at org.mule.config.builders.AbstractConfigurationBuilder.configure(Abstr
ctConfigurationBuilder.java:54)
at org.mule.config.builders.AbstractResourceConfigurationBuilder.configu
e(AbstractResourceConfigurationBuilder.java:78)
at org.mule.context.DefaultMuleContextFactory.createMuleContext(DefaultM
leContextFactory.java:96)
at org.mule.config.builders.MuleXmlBuilderContextListener.createMuleCont
xt(MuleXmlBuilderContextListener.java:135)
at org.mule.config.builders.MuleXmlBuilderContextListener.initialize(Mul
XmlBuilderContextListener.java:87)
at org.mule.config.builders.MuleXmlBuilderContextListener.contextInitial
zed(MuleXmlBuilderContextListener.java:63)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
.java:3972)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
67)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
<mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jms="http://www.mulesoft.org/schema/mule/jms" xmlns:cxf="http://www.mulesoft.org/schema/mule/cxf"
xmlns:vm="http://www.mulesoft.org/schema/mule/vm" xmlns:spring="http://www.springframework.org/schema/beans"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/jms http://www.mulesoft.org/schema/mule/jms/3.0/mule-jms.xsd
http://www.mulesoft.org/schema/mule/cxf http://www.mulesoft.org/schema/mule/cxf/3.0/mule-cxf.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.0/mule.xsd
http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/3.0/mule-vm.xsd">
Thanks
Suneet
thanks for catching this.
suneet