Hi,
You mentioned you test in SMX4. I don't think you can start embeded
smx container with configure file like
<sm:container id="jbi" embedded="true" createMBeanServer="false"
monitorInstallationDirectory="false">...
in smx4.
Are you sure you want to test against SMX4?
SMX4 is osgi based container, so if you want to test such JBI endpoint
in SMX4, you should follow the example [1], basically you need add
endpoint bundes for your test.
And if you actually want to write testcase against SMX3, take a look
at this example [2], you may also need go through the pom.xml and
spring.xml[3] used for this test.
[1]https://svn.apache.org/repos/asf/servicemix/smx4/features/trunk/examples/itests/tests/src/test/java/org/apache/servicemix/examples/CXFNMRIntegrationTest.java
[2]https://svn.apache.org/repos/asf/servicemix/smx3/branches/servicemix-3.2/deployables/serviceengines/servicemix-cxf-se/src/test/java/org/apache/servicemix/cxfse/CxfSeSpringTest.java
[3]https://svn.apache.org/repos/asf/servicemix/smx3/branches/servicemix-3.2/deployables/serviceengines/servicemix-cxf-se/src/test/resources/org/apache/servicemix/cxfse/spring.xml
Freeman
On 2009-7-8, at 下午9:18, TheWinch wrote:
I have the same error with CXF-SE:
org.springframework.beans.factory.BeanDefinitionStoreException:
Unrecognized
xbean namespace mapping: http://servicemix.apache.org/cxfse/1.0
I have the following in my pom.xml (I have copied the jar in D:\):
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.3</version>
<configuration>
<additionalClasspathDependencies>
<additionalClasspathDependency>file://D:/servicemix-cxf-
se-2009.01.jar</additionalClasspathDependency>
</additionalClasspathDependencies>
</configuration>
</plugin>
and in my spring.xml I basically replaced all references to JSR181
with
references to CXF-SE:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:sm="http://servicemix.apache.org/config/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
xmlns:test="urn:test"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://servicemix.apache.org/cxfse/1.0
http://servicemix.apache.org/schema/servicemix-cxfse-2009.01.xsd">
<sm:container id="jbi" embedded="true" createMBeanServer="false"
monitorInstallationDirectory="false">
<sm:deployments>
<sm:installSharedLibrary groupId="org.apache.servicemix"
artifactId="servicemix-shared"/>
<sm:installComponent groupId="org.apache.servicemix"
artifactId="servicemix-cxf-se"/>
</sm:deployments>
<sm:activationSpecs>
<sm:activationSpec>
<sm:component>
<cxfse:component>
<cxfse:endpoints>
<cxfse:endpoint service="test:service"
endpoint="endpoint">
<cxfse:pojo>
<bean
class="eu.diva.tis.thinkingtool.resource.ResourceFinder">
<property name="context" ref="context"/>
</bean>
</cxfse:pojo>
</cxfse:endpoint>
</cxfse:endpoints>
</cxfse:component>
</sm:component>
</sm:activationSpec>
</sm:activationSpecs>
</sm:container>
</beans>
--
View this message in context:
http://www.nabble.com/Error-during-integration-testing-with-Eclipse-tp24389307p24391387.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com