You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by jpepalmero <co...@joathamperezexposito.es> on 2010/03/12 16:12:42 UTC

Re: Unrecognized xbean namespace mapping: mynamespace in xbean

I finally solved the problem he had. This was that Maven Tenea no namespace I
needed (http://servicemix.myspace.org/http/1.0). So the first problem was
that maven Campas was not compiled. The way I solved it get off the tag of
the component ServiceMix http version of which corresponds with my version
of ServiceMix (690895
http://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-http
version ). Then we change the kind of names that are in pom.xml <namespaces>
my name espece </ namespaces> and run mvn clean install. This must
ejecurarse compiled without error and adds to our maven repository. When
compiling any service unit in xbean.xml indicating the namespace that we
should not produce either errors or warnings.




jpepalmero wrote:
> 
> My xbean is:
> 
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns:http="http://servicemix.mycompany.org/http/1.0"
>        xmlns:soap="http://servicemix.apache.org/soap/1.0"
>        xmlns:servicio="http://impl.mydomain.org/">
> 
> <bean id="propertyPlaceholderConfigurer"
>        
> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
>         <property name="location" value="classpath:wsvdir.properties"/>
> </bean>               
>   <http:endpoint service="servicio:MyserviceImplService" 
>                  endpoint="MyserviceSOAP"
>                  role="provider"                 
>                  locationURI="${servicio.myservice.locationURI}"
>                  soap="true"
>                  soapVersion="1.1"/>
> 
>   <http:endpoint service="servicio:MyserviceImplServicemix"
>                  endpoint="MyserviceSOAPConsumer"
>                  role="consumer"            
>                  targetService="servicio:MyserviceImplService"    
>                  targetEndpoint="MyserviceImplPort"                                    
>                  locationURI="${servicio.myservice.consumer.locationURI}"
>                  defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
> 		 wsdlResource = "${servicio.myservice.wsdlResource}?wsdl"
>                  soap="true"
>                  soapVersion="1.1">
> 		<http:policies>
> 			<soap:ws-addressing />
> 			<soap:ws-security receiveAction="UsernameToken Signature">
> 				<soap:crypto>
> 					<bean
> 					
> class="org.apache.servicemix.soap.handlers.security.StandaloneCrypto">
> 						<property name="keyStoreUrl" value="classpath:truststore.jks" />
> 						<property name="keyStoreType" value="jks" />
> 						<property name="keyStorePassword" value="changeit" />
> 						<property name="keyPassword" value="changeit" />
> 					</bean>
> 				</soap:crypto>
> 				<property name="actor"
> 					value="http://www.mycompany.org/Authentication/1.0" />
> 				<property name="domain" value="mycompany" />
> 			</soap:ws-security>
> 		</http:policies>
>   </http:endpoint>
> 
>   <http:endpoint service="servicio:OtherserviceImplService" 
>                  endpoint="OtherserviceSOAP"
>                  role="provider"                 
>                  locationURI="${servicio.myotherservice.locationURI}"
>                  soap="true"
>                  soapVersion="1.1"/>
> 
>   <http:endpoint service="servicio:OtherserviceImplServicemix"
>                  endpoint="OtherserviceSOAPConsumer"
>                  role="consumer"            
>                  targetService="servicio:OtherserviceImplService"    
>                  targetEndpoint="OtherserviceImplPort"                                    
>                 
> locationURI="${servicio.myotherservice.consumer.locationURI}"
>                  defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
> 		 wsdlResource = "${servicio.myotherservice.wsdlResource}?wsdl"
>                  soap="true"
>                  soapVersion="1.1">
> 		<http:policies>
> 			<soap:ws-addressing />
> 			<soap:ws-security receiveAction="UsernameToken Signature">
> 				<soap:crypto>
> 					<bean
> 					
> class="org.apache.servicemix.soap.handlers.security.StandaloneCrypto">
> 						<property name="keyStoreUrl" value="classpath:truststore.jks" />
> 						<property name="keyStoreType" value="jks" />
> 						<property name="keyStorePassword" value="changeit" />
> 						<property name="keyPassword" value="changeit" />
> 					</bean>
> 				</soap:crypto>
> 				<property name="actor"
> 					value="http://www.mycompany.org/Authentication/1.0" />
> 				<property name="domain" value="mycompany" />
> 			</soap:ws-security>
> 		</http:policies>
>   </http:endpoint>
> 
> </beans>
> 
> 
> Error: Caused by:
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Unrecognized xbean namespace mapping:
> http://servicemix.mycompany.org/http/1.0
> 
> 
> Thanks
> 
> 
> 
> 
> 
> 
> Freeman Fang wrote:
>> 
>> Hi,
>> 
>> Could you post your whole xbean.xml? Although I'm not sure what you  
>> want, but post whole xbean.xml is easy for more help.
>> Btw, where the namespace http://servicemix.myspace.org/http/1.0 from?
>> 
>> Freeman
>> On 2010-3-11, at 下午9:23, jpepalmero wrote:
>> 
>>>
>>> Thanks in advance. I'm working on a project and need to define an own
>>> namespace. This is not how to do it, believing it unnecessary. When  
>>> you
>>> reference from my xbean service unit in I got the following error:
>>>
>>> Caused by:  
>>> org.springframework.beans.factory.BeanDefinitionStoreException:
>>> Unrecognized xbean namespace mapping:
>>> http://servicemix.myspace.org/http/1.0
>>> :working:
>>> -- 
>>> View this message in context:
>>> http://old.nabble.com/%3Csmiley-image%3D%27anim_working.gif%27-text%3D%27%3Aworking%3A%27--%3E-Unrecognized-xbean-namespace-mapping%3A-mynamespace-in-xbean-tp27863383p27863383.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>> 
>> 
>> -- 
>> Freeman Fang
>> ------------------------
>> Open Source SOA: http://fusesource.com
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://old.nabble.com/%3Csmiley-image%3D%27anim_working.gif%27-text%3D%27%3Aworking%3A%27--%3E-Unrecognized-xbean-namespace-mapping%3A-mynamespace-in-xbean-tp27863383p27876592.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.