You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Cybexion <cy...@email.de> on 2008/03/25 17:51:10 UTC

Integration Test: UnknownHostException

Hi,

I tried to do an integration test, similar to the camel example.
The problem is, that (you guess it) it is not working and results in an
exception.

My spring.xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:sm="http://servicemix.apache.org/config/1.0" xsi:schemaLocation="
  http://www.springframework.org/schema/beans
  http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
  http://servicemix.apache.org/config/1.0
 
http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/servicemix/servicemix-core/3.2/servicemix-core-3.2.xsd">
  <sm:container generateRootDir="true">
    <sm:deployments>
      <sm:installSharedLibrary groupId="org.apache.servicemix"
artifactId="servicemix-shared"
        version="3.3-SNAPSHOT"/>
      <sm:deployServiceAssembly groupId="my.components.order.service"
        artifactId="orderservice-cxf-sa" version="1.0-SNAPSHOT"/>
    </sm:deployments>
  </sm:container>
</beans>

Here is the error:
2008-03-25 17:44:29,218 [main           ] DEBUG ManagementContext             
- Registering system service:
org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=InstallationService
2008-03-25 17:44:29,218 [main           ] DEBUG ManagementContext             
- Registering system service:
org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=DeploymentService
2008-03-25 17:44:29,218 [main           ] INFO  DeploymentService             
- Restoring service assemblies
2008-03-25 17:44:29,218 [main           ] DEBUG ManagementContext             
- Registering system service:
org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=AutoDeploymentService
2008-03-25 17:44:29,234 [main           ] DEBUG AutoDeploymentService         
- State file doesn't exist:
D:\java\Workspaces\eclipse\soa\adfusion\components\order\service\orderservice-cxf-sa-itest\target\rootDirs\rootDir1\install.xml
2008-03-25 17:44:29,234 [main           ] DEBUG AutoDeploymentService         
- State file doesn't exist:
D:\java\Workspaces\eclipse\soa\adfusion\components\order\service\orderservice-cxf-sa-itest\target\rootDirs\rootDir1\deploy.xml
2008-03-25 17:44:29,234 [main           ] DEBUG ManagementContext             
- Registering system service:
org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=AdminCommandsService
2008-03-25 17:44:29,234 [main           ] INFO  InstallSharedLibrary          
- Deploying shared library:
file://d:/java/.m2/repository/org/apache/servicemix/servicemix-shared/3.3-SNAPSHOT/servicemix-shared-3.3-SNAPSHOT-installer.zip
2008-03-25 17:44:38,343 [main           ] ERROR InstallationService           
- Deployment failed
javax.jbi.management.DeploymentException: java.net.UnknownHostException: d
	at
org.apache.servicemix.jbi.framework.AutoDeploymentService.unpackLocation(AutoDeploymentService.java:595)
	at
org.apache.servicemix.jbi.framework.InstallationService.installSharedLibrary(InstallationService.java:213)
	at
org.apache.servicemix.jbi.framework.AdminCommandsService.installSharedLibrary(AdminCommandsService.java:104)
	at
org.apache.servicemix.jbi.container.InstallSharedLibrary.doDeploy(InstallSharedLibrary.java:37)
	at
org.apache.servicemix.jbi.container.DeploySupport.deploy(DeploySupport.java:58)
	at
org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:111)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1118)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1085)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:429)
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:273)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)
	at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:92)
	at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:77)
	at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:68)
	at
my.components.orderservice.OrderServiceITest.createApplicationContext(OrderServiceITest.java:35)
	at
my.components.orderservice.OrderServiceITest.setUp(OrderServiceITest.java:21)
	at junit.framework.TestCase.runBare(TestCase.java:125)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
	at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
	at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:285)
	at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:976)
Caused by: java.net.UnknownHostException: d
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
	at java.net.Socket.connect(Socket.java:519)
	at java.net.Socket.connect(Socket.java:469)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
	at sun.net.NetworkClient.openServer(NetworkClient.java:118)
	at sun.net.ftp.FtpClient.openServer(FtpClient.java:488)
	at sun.net.ftp.FtpClient.openServer(FtpClient.java:475)
	at
sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:270)
	at
sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:352)
	at java.net.URL.openStream(URL.java:1009)
	at org.apache.servicemix.jbi.util.FileUtil.unpackArchive(FileUtil.java:154)
	at
org.apache.servicemix.jbi.framework.AutoDeploymentService.unpackLocation(AutoDeploymentService.java:582)
	... 40 more
2008-03-25 17:44:38,343 [main           ] INFO  InstallSharedLibrary          
- Deploying shared library:
file://d:/java/.m2/repository/net/adlinkgroup/adfusion/components/order/service/orderservice-cxf-sa/1.0-SNAPSHOT/orderservice-cxf-sa-1.0-SNAPSHOT.zip
2008-03-25 17:44:38,515 [main           ] ERROR DeploymentService             
- Error deploying service assembly
java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
<task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>Unable to unpack archive:
file://d:/java/.m2/repository/net/adlinkgroup/adfusion/components/order/service/orderservice-cxf-sa/1.0-SNAPSHOT/orderservice-cxf-sa-1.0-SNAPSHOT.zip</loc-message>
</msg-loc-info>
</task-status-msg>
<exception-info>
<nesting-level>1</nesting-level>
<loc-token/>
<loc-message>java.net.UnknownHostException: d</loc-message>
<stack-trace><![CDATA[javax.jbi.management.DeploymentException:
java.net.UnknownHostException: d

	at
org.apache.servicemix.jbi.framework.AutoDeploymentService.unpackLocation(AutoDeploymentService.java:595)

	at
org.apache.servicemix.jbi.framework.DeploymentService.deploy(DeploymentService.java:185)

	at
org.apache.servicemix.jbi.framework.AdminCommandsService.deployServiceAssembly(AdminCommandsService.java:212)

	at
org.apache.servicemix.jbi.container.DeployServiceAssembly.doDeploy(DeployServiceAssembly.java:57)

	at
org.apache.servicemix.jbi.container.DeploySupport.deploy(DeploySupport.java:58)

	at
org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:111)

	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1118)

	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1085)

	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:429)

	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)

	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)

	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)

	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)

	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:273)

	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)

	at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:92)

	at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:77)

	at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:68)

	at
my.components.orderservice.OrderServiceITest.createApplicationContext(OrderServiceITest.java:35)

	at
my.components.orderservice.OrderServiceITest.setUp(OrderServiceITest.java:21)

	at junit.framework.TestCase.runBare(TestCase.java:125)

	at junit.framework.TestResult$1.protect(TestResult.java:106)

	at junit.framework.TestResult.runProtected(TestResult.java:124)

	at junit.framework.TestResult.run(TestResult.java:109)

	at junit.framework.TestCase.run(TestCase.java:118)

	at junit.framework.TestSuite.runTest(TestSuite.java:208)

	at junit.framework.TestSuite.run(TestSuite.java:203)

	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)


It complains, that it can't find this file:
file://d:/java/.m2/repository/org/apache/servicemix/servicemix-shared/3.3-SNAPSHOT/servicemix-shared-3.3-SNAPSHOT-installer.zip
However, if i copy the URL into the windows explorer, the file is there.
My maven repository points to
d:/java/.m2/repository

I'm working on windows with jdk 1.5, SM 3.3 trunk from last week.


Thanks in advance for helping!



-- 
View this message in context: http://www.nabble.com/Integration-Test%3A-UnknownHostException-tp16278375s12049p16278375.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Integration Test: UnknownHostException

Posted by Bruce Snyder <br...@gmail.com>.
On Wed, Mar 26, 2008 at 3:10 PM, Cybexion <cy...@email.de> wrote:
>
>  I just checked the sources of CxfBcConsumer.
>  There is a getter and a setter for locationURI.
>  I also decompiled the generated jar of SM. Both seems ok, so what could be
>  the problem?

So you built ServiceMix from the trunk today, you're using the
distribution in distributions/apache-servicemix/target correct?

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/

Blog: http://bruceblog.org/

Re: Integration Test: UnknownHostException

Posted by Cybexion <cy...@email.de>.
I just checked the sources of CxfBcConsumer.
There is a getter and a setter for locationURI.
I also decompiled the generated jar of SM. Both seems ok, so what could be
the problem?



Cybexion wrote:
> 
> OK, I just took the latest 3.3 sources from svn and the build works fine
> now.
> 
> However, the problem is still there and does not seem to have been fixed.
> 
> BeanCreationException: Error creating bean with name
> 'org.apache.servicemix.cxfbc.CxfBcConsumer' defined in file
> [D:\java\Workspaces\eclipse\soa\adfusion\components\order\service\orderservice-cxf-sa-itest\target\rootDirs\rootDir1\service-assemblies\orderservice-cxf-sa\version_1\sus\servicemix-cxf-bc\orderservice-cxfbc-su\xbean.xml]:
> Error setting property values; nested exception is
> org.springframework.beans.NotWritablePropertyException: Invalid property
> 'locationURI' of bean class [org.apache.servicemix.cxfbc.CxfBcConsumer]:
> Bean property 'locationURI' is not writable or has an invalid setter
> method. Does the parameter type of the setter match the return type of the
> getter?
> 
> Any help would be appreciated
> 
> Details:
> 2008-03-26 21:31:36,093 [main           ] ERROR DeploymentService             
> - Error deploying service assembly
> java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
> version="1.0">
> <jbi-task-result>
> <frmwk-task-result>
> <frmwk-task-result-details>
> <task-result-details>
> <task-id>deploy</task-id>
> <task-result>FAILED</task-result>
> <message-type>ERROR</message-type>
> </task-result-details>
> </frmwk-task-result-details>
> </frmwk-task-result>
> <component-task-result
> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
> 	<component-name>servicemix-cxf-bc</component-name>
> 	<component-task-result-details>
> 		<task-result-details>
> 			<task-id>deploy</task-id>
> 			<task-result>FAILED</task-result>
> 			<message-type>ERROR</message-type>
> 			<task-status-msg>
> <msg-loc-info>
> <loc-token/>
> <loc-message>Could not deploy xbean service unit</loc-message>
> </msg-loc-info>
> </task-status-msg>
> 			<exception-info>
> 				<nesting-level>1</nesting-level>
> 				<msg-loc-info>
> 					<loc-token/>
> 					<loc-message>org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'org.apache.servicemix.cxfbc.CxfBcConsumer'
> defined in file
> [D:\java\Workspaces\eclipse\soa\adfusion\components\order\service\orderservice-cxf-sa-itest\target\rootDirs\rootDir1\service-assemblies\orderservice-cxf-sa\version_1\sus\servicemix-cxf-bc\orderservice-cxfbc-su\xbean.xml]:
> Error setting property values; nested exception is
> org.springframework.beans.NotWritablePropertyException: Invalid property
> 'locationURI' of bean class [org.apache.servicemix.cxfbc.CxfBcConsumer]:
> Bean property 'locationURI' is not writable or has an invalid setter
> method. Does the parameter type of the setter match the return type of the
> getter?</loc-message>
> 				
> <stack-trace><![CDATA[org.apache.xbean.kernel.ServiceRegistrationException:
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'org.apache.servicemix.cxfbc.CxfBcConsumer' defined in file
> [D:\java\Workspaces\eclipse\soa\adfusion\components\order\service\orderservice-cxf-sa-itest\target\rootDirs\rootDir1\service-assemblies\orderservice-cxf-sa\version_1\sus\servicemix-cxf-bc\orderservice-cxfbc-su\xbean.xml]:
> Error setting property values; nested exception is
> org.springframework.beans.NotWritablePropertyException: Invalid property
> 'locationURI' of bean class [org.apache.servicemix.cxfbc.CxfBcConsumer]:
> Bean property 'locationURI' is not writable or has an invalid setter
> method. Does the parameter type of the setter match the return type of the
> getter?
> 	at
> org.apache.xbean.kernel.standard.ServiceManagerRegistry.registerService(ServiceManagerRegistry.java:424)
> 	at
> org.apache.xbean.kernel.standard.StandardKernel.registerService(StandardKernel.java:220)
> 	at
> org.apache.xbean.server.spring.loader.SpringLoader.load(SpringLoader.java:152)
> 	at
> org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:83)
> 	at
> org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)
> 	at
> org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
> 	at
> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508)
> 	at
> org.apache.servicemix.jbi.framework.DeploymentService.deploy(DeploymentService.java:206)
> 	at
> org.apache.servicemix.jbi.framework.AdminCommandsService.deployServiceAssembly(AdminCommandsService.java:212)
> 	at
> org.apache.servicemix.jbi.container.DeployServiceAssembly.doDeploy(DeployServiceAssembly.java:57)
> 	at
> org.apache.servicemix.jbi.container.DeploySupport.deploy(DeploySupport.java:58)
> 	at
> org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:111)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1118)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1085)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:429)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)
> 	at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)
> 	at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:273)
> 	at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)
> 	at
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:92)
> 	at
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:77)
> 	at
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:68)
> 	at
> my.components.orderservice.OrderServiceITest.createApplicationContext(OrderServiceITest.java:42)
> 	at
> my.components.orderservice.OrderServiceITest.setUp(OrderServiceITest.java:28)
> 	at junit.framework.TestCase.runBare(TestCase.java:125)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:118)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at
> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
> 	at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
> 	at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
> 	at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:285)
> 	at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:976)
> Caused by: org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'org.apache.servicemix.cxfbc.CxfBcConsumer'
> defined in file
> [D:\java\Workspaces\eclipse\soa\adfusion\components\order\service\orderservice-cxf-sa-itest\target\rootDirs\rootDir1\service-assemblies\orderservice-cxf-sa\version_1\sus\servicemix-cxf-bc\orderservice-cxfbc-su\xbean.xml]:
> Error setting property values; nested exception is
> org.springframework.beans.NotWritablePropertyException: Invalid property
> 'locationURI' of bean class [org.apache.servicemix.cxfbc.CxfBcConsumer]:
> Bean property 'locationURI' is not writable or has an invalid setter
> method. Does the parameter type of the setter match the return type of the
> getter?
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1030)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:809)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)
> 	at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)
> 	at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:273)
> 	at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)
> 	at
> org.apache.xbean.server.spring.configuration.SpringConfiguration.<init>(SpringConfiguration.java:63)
> 	at
> org.apache.xbean.server.spring.configuration.SpringConfigurationServiceFactory.createService(SpringConfigurationServiceFactory.java:106)
> 	at
> org.apache.xbean.kernel.standard.ServiceManager.start(ServiceManager.java:420)
> 	at
> org.apache.xbean.kernel.standard.ServiceManager.initialize(ServiceManager.java:200)
> 	at
> org.apache.xbean.kernel.standard.RegistryFutureTask$RegisterCallable.call(RegistryFutureTask.java:110)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> 	at
> org.apache.xbean.kernel.standard.ServiceManagerRegistry.registerService(ServiceManagerRegistry.java:409)
> 	... 46 more
> Caused by: org.springframework.beans.NotWritablePropertyException: Invalid
> property 'locationURI' of bean class
> [org.apache.servicemix.cxfbc.CxfBcConsumer]: Bean property 'locationURI'
> is not writable or has an invalid setter method. Does the parameter type
> of the setter match the return type of the getter?
> 	at
> org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:748)
> 	at
> org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:606)
> 	at
> org.springframework.beans.AbstractPropertyAccessor.setPropertyValue(AbstractPropertyAccessor.java:49)
> 	at
> org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:74)
> 	at
> org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:57)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory.applyPropertyValues(AbstractBeanFactory.java:840)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1026)
> 	... 62 more
> ]]></stack-trace>
> 				</msg-loc-info>
> 			</exception-info>
> 		</task-result-details>
> 	</component-task-result-details>
> </component-task-result>
> <component-task-result
> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
> 	<component-name>servicemix-cxf-se</component-name>
> 	<component-task-result-details>
> 		<task-result-details>
> 			<task-id>deploy</task-id>
> 			<task-result>SUCCESS</task-result>
> 		</task-result-details>
> 	</component-task-result-details>
> </component-task-result>
> <component-task-result
> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
> 	<component-name>servicemix-saxon</component-name>
> 	<component-task-result-details>
> 		<task-result-details>
> 			<task-id>deploy</task-id>
> 			<task-result>SUCCESS</task-result>
> 		</task-result-details>
> 	</component-task-result-details>
> </component-task-result>
> </jbi-task-result>
> </jbi-task>
> 
> 	at
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
> 	at
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
> 	at
> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:543)
> 	at
> org.apache.servicemix.jbi.framework.DeploymentService.deploy(DeploymentService.java:206)
> 	at
> org.apache.servicemix.jbi.framework.AdminCommandsService.deployServiceAssembly(AdminCommandsService.java:212)
> 	at
> org.apache.servicemix.jbi.container.DeployServiceAssembly.doDeploy(DeployServiceAssembly.java:57)
> 	at
> org.apache.servicemix.jbi.container.DeploySupport.deploy(DeploySupport.java:58)
> 	at
> org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:111)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1118)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1085)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:429)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)
> 	at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)
> 	at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:273)
> 	at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)
> 	at
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:92)
> 	at
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:77)
> 	at
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:68)
> 	at
> my.components.orderservice.OrderServiceITest.createApplicationContext(OrderServiceITest.java:42)
> 	at
> my.components.orderservice.OrderServiceITest.setUp(OrderServiceITest.java:28)
> 	at junit.framework.TestCase.runBare(TestCase.java:125)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:118)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at
> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
> 	at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
> 	at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
> 	at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:285)
> 	at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:976)
> 

-- 
View this message in context: http://www.nabble.com/Integration-Test%3A-UnknownHostException-tp16278375s12049p16316204.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Integration Test: UnknownHostException

Posted by Cybexion <cy...@email.de>.
OK, I just took the latest 3.3 sources from svn and the build works fine now.

However, the problem is still there and does not seem to have been fixed.

BeanCreationException: Error creating bean with name
'org.apache.servicemix.cxfbc.CxfBcConsumer' defined in file
[D:\java\Workspaces\eclipse\soa\adfusion\components\order\service\orderservice-cxf-sa-itest\target\rootDirs\rootDir1\service-assemblies\orderservice-cxf-sa\version_1\sus\servicemix-cxf-bc\orderservice-cxfbc-su\xbean.xml]:
Error setting property values; nested exception is
org.springframework.beans.NotWritablePropertyException: Invalid property
'locationURI' of bean class [org.apache.servicemix.cxfbc.CxfBcConsumer]:
Bean property 'locationURI' is not writable or has an invalid setter method.
Does the parameter type of the setter match the return type of the getter?

Any help would be appreciated

Details:
2008-03-26 21:31:36,093 [main           ] ERROR DeploymentService             
- Error deploying service assembly
java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
<component-task-result
xmlns="http://java.sun.com/xml/ns/jbi/management-message">
	<component-name>servicemix-cxf-bc</component-name>
	<component-task-result-details>
		<task-result-details>
			<task-id>deploy</task-id>
			<task-result>FAILED</task-result>
			<message-type>ERROR</message-type>
			<task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>Could not deploy xbean service unit</loc-message>
</msg-loc-info>
</task-status-msg>
			<exception-info>
				<nesting-level>1</nesting-level>
				<msg-loc-info>
					<loc-token/>
					<loc-message>org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'org.apache.servicemix.cxfbc.CxfBcConsumer'
defined in file
[D:\java\Workspaces\eclipse\soa\adfusion\components\order\service\orderservice-cxf-sa-itest\target\rootDirs\rootDir1\service-assemblies\orderservice-cxf-sa\version_1\sus\servicemix-cxf-bc\orderservice-cxfbc-su\xbean.xml]:
Error setting property values; nested exception is
org.springframework.beans.NotWritablePropertyException: Invalid property
'locationURI' of bean class [org.apache.servicemix.cxfbc.CxfBcConsumer]:
Bean property 'locationURI' is not writable or has an invalid setter method.
Does the parameter type of the setter match the return type of the
getter?</loc-message>
				
<stack-trace><![CDATA[org.apache.xbean.kernel.ServiceRegistrationException:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.apache.servicemix.cxfbc.CxfBcConsumer' defined in file
[D:\java\Workspaces\eclipse\soa\adfusion\components\order\service\orderservice-cxf-sa-itest\target\rootDirs\rootDir1\service-assemblies\orderservice-cxf-sa\version_1\sus\servicemix-cxf-bc\orderservice-cxfbc-su\xbean.xml]:
Error setting property values; nested exception is
org.springframework.beans.NotWritablePropertyException: Invalid property
'locationURI' of bean class [org.apache.servicemix.cxfbc.CxfBcConsumer]:
Bean property 'locationURI' is not writable or has an invalid setter method.
Does the parameter type of the setter match the return type of the getter?
	at
org.apache.xbean.kernel.standard.ServiceManagerRegistry.registerService(ServiceManagerRegistry.java:424)
	at
org.apache.xbean.kernel.standard.StandardKernel.registerService(StandardKernel.java:220)
	at
org.apache.xbean.server.spring.loader.SpringLoader.load(SpringLoader.java:152)
	at
org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:83)
	at
org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)
	at
org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
	at
org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508)
	at
org.apache.servicemix.jbi.framework.DeploymentService.deploy(DeploymentService.java:206)
	at
org.apache.servicemix.jbi.framework.AdminCommandsService.deployServiceAssembly(AdminCommandsService.java:212)
	at
org.apache.servicemix.jbi.container.DeployServiceAssembly.doDeploy(DeployServiceAssembly.java:57)
	at
org.apache.servicemix.jbi.container.DeploySupport.deploy(DeploySupport.java:58)
	at
org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:111)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1118)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1085)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:429)
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:273)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)
	at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:92)
	at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:77)
	at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:68)
	at
my.components.orderservice.OrderServiceITest.createApplicationContext(OrderServiceITest.java:42)
	at
my.components.orderservice.OrderServiceITest.setUp(OrderServiceITest.java:28)
	at junit.framework.TestCase.runBare(TestCase.java:125)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
	at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
	at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:285)
	at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:976)
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'org.apache.servicemix.cxfbc.CxfBcConsumer' defined
in file
[D:\java\Workspaces\eclipse\soa\adfusion\components\order\service\orderservice-cxf-sa-itest\target\rootDirs\rootDir1\service-assemblies\orderservice-cxf-sa\version_1\sus\servicemix-cxf-bc\orderservice-cxfbc-su\xbean.xml]:
Error setting property values; nested exception is
org.springframework.beans.NotWritablePropertyException: Invalid property
'locationURI' of bean class [org.apache.servicemix.cxfbc.CxfBcConsumer]:
Bean property 'locationURI' is not writable or has an invalid setter method.
Does the parameter type of the setter match the return type of the getter?
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1030)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:809)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:273)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)
	at
org.apache.xbean.server.spring.configuration.SpringConfiguration.<init>(SpringConfiguration.java:63)
	at
org.apache.xbean.server.spring.configuration.SpringConfigurationServiceFactory.createService(SpringConfigurationServiceFactory.java:106)
	at
org.apache.xbean.kernel.standard.ServiceManager.start(ServiceManager.java:420)
	at
org.apache.xbean.kernel.standard.ServiceManager.initialize(ServiceManager.java:200)
	at
org.apache.xbean.kernel.standard.RegistryFutureTask$RegisterCallable.call(RegistryFutureTask.java:110)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at
org.apache.xbean.kernel.standard.ServiceManagerRegistry.registerService(ServiceManagerRegistry.java:409)
	... 46 more
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid
property 'locationURI' of bean class
[org.apache.servicemix.cxfbc.CxfBcConsumer]: Bean property 'locationURI' is
not writable or has an invalid setter method. Does the parameter type of the
setter match the return type of the getter?
	at
org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:748)
	at
org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:606)
	at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValue(AbstractPropertyAccessor.java:49)
	at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:74)
	at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:57)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.applyPropertyValues(AbstractBeanFactory.java:840)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1026)
	... 62 more
]]></stack-trace>
				</msg-loc-info>
			</exception-info>
		</task-result-details>
	</component-task-result-details>
</component-task-result>
<component-task-result
xmlns="http://java.sun.com/xml/ns/jbi/management-message">
	<component-name>servicemix-cxf-se</component-name>
	<component-task-result-details>
		<task-result-details>
			<task-id>deploy</task-id>
			<task-result>SUCCESS</task-result>
		</task-result-details>
	</component-task-result-details>
</component-task-result>
<component-task-result
xmlns="http://java.sun.com/xml/ns/jbi/management-message">
	<component-name>servicemix-saxon</component-name>
	<component-task-result-details>
		<task-result-details>
			<task-id>deploy</task-id>
			<task-result>SUCCESS</task-result>
		</task-result-details>
	</component-task-result-details>
</component-task-result>
</jbi-task-result>
</jbi-task>

	at
org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
	at
org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
	at
org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:543)
	at
org.apache.servicemix.jbi.framework.DeploymentService.deploy(DeploymentService.java:206)
	at
org.apache.servicemix.jbi.framework.AdminCommandsService.deployServiceAssembly(AdminCommandsService.java:212)
	at
org.apache.servicemix.jbi.container.DeployServiceAssembly.doDeploy(DeployServiceAssembly.java:57)
	at
org.apache.servicemix.jbi.container.DeploySupport.deploy(DeploySupport.java:58)
	at
org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:111)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1118)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1085)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:429)
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:273)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)
	at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:92)
	at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:77)
	at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:68)
	at
my.components.orderservice.OrderServiceITest.createApplicationContext(OrderServiceITest.java:42)
	at
my.components.orderservice.OrderServiceITest.setUp(OrderServiceITest.java:28)
	at junit.framework.TestCase.runBare(TestCase.java:125)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
	at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
	at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:285)
	at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:976)
-- 
View this message in context: http://www.nabble.com/Integration-Test%3A-UnknownHostException-tp16278375s12049p16316158.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Integration Test: UnknownHostException

Posted by Bruce Snyder <br...@gmail.com>.
On Wed, Mar 26, 2008 at 7:25 AM, Cybexion <cy...@email.de> wrote:
>
>  Hi Guillaume ,
>
>  I took the latest source from SVN and tried to build, unfortunatelly without
>  success.
>  Two poms where out of date.
>  I just saw that you checked them in and retried.
>  Now step 1 of the build process works.
>  However, there is still something missing.
>  Step 2 fails with the following errors during compile:
>
>  ...
>  [INFO] [jbi:generate-jbi-component-descriptor]
>  [INFO] Generating jbi.xml
>  [INFO] [resources:resources]
>  [INFO] Using default encoding to copy filtered resources.
>  [INFO] [compiler:compile]
>  [INFO] Compiling 21 source files to
>  D:\java\Workspaces\eclipse\soa\smx3\deployables\serviceengines\servicemix-bean\target\classes
>  [INFO]
>  ------------------------------------------------------------------------
>  [ERROR] BUILD FAILURE
>  [INFO]
>  ------------------------------------------------------------------------
>  [INFO] Compilation failure
>
>  D:\java\Workspaces\eclipse\soa\smx3\deployables\serviceengines\servicemix-bean\src\main\java\org\apache\servicemix\bean\support\BeanInfo.java:[178,27]
>  cannot find symbol
>  symbol  : method prefix()
>  location: interface java.lang.annotation.Annotation
>
>  D:\java\Workspaces\eclipse\soa\smx3\deployables\serviceengines\servicemix-bean\src\main\java\org\apache\servicemix\bean\support\BeanInfo.java:[178,62]
>  cannot find symbol
>  symbol  : method uri()
>  location: interface java.lang.annotation.Annotation
>
>  D:\java\Workspaces\eclipse\soa\smx3\deployables\serviceengines\servicemix-bean\src\main\java\org\apache\servicemix\bean\support\BeanInfo.java:[179,16]
>  cannot find symbol
>  symbol  : class DefaultNamespaceContext
>  location: class org.apache.servicemix.bean.support.BeanInfo
>
>  D:\java\Workspaces\eclipse\soa\smx3\deployables\serviceengines\servicemix-bean\src\main\java\org\apache\servicemix\bean\support\BeanInfo.java:[179,50]
>  cannot find symbol
>  symbol  : class DefaultNamespaceContext
>  location: class org.apache.servicemix.bean.support.BeanInfo
>
>  D:\java\Workspaces\eclipse\soa\smx3\deployables\serviceengines\servicemix-bean\src\main\java\org\apache\servicemix\bean\support\BeanInfo.java:[180,34]
>  cannot find symbol
>  symbol  : method prefix()
>  location: interface java.lang.annotation.Annotation
>
>  D:\java\Workspaces\eclipse\soa\smx3\deployables\serviceengines\servicemix-bean\src\main\java\org\apache\servicemix\bean\support\BeanInfo.java:[180,55]
>  cannot find symbol
>  symbol  : method uri()
>  location: interface java.lang.annotation.Annotation
>
>
>  [INFO]
>  ------------------------------------------------------------------------
>  [INFO] For more information, run Maven with the -e switch
>  [INFO]
>  ------------------------------------------------------------------------
>  [INFO] Total time: 2 minutes 11 seconds
>  [INFO] Finished at: Wed Mar 26 14:18:58 CET 2008
>  [INFO] Final Memory: 58M/104M
>  [INFO]
>  ------------------------------------------------------------------------
>
>
>  Could you please check?

A fix has been committed for this breakage and I just verified that it
builds successfully.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/

Blog: http://bruceblog.org/

Re: Integration Test: UnknownHostException

Posted by Cybexion <cy...@email.de>.
Hi Guillaume ,

I took the latest source from SVN and tried to build, unfortunatelly without
success.
Two poms where out of date.
I just saw that you checked them in and retried.
Now step 1 of the build process works.
However, there is still something missing.
Step 2 fails with the following errors during compile:

...
[INFO] [jbi:generate-jbi-component-descriptor]
[INFO] Generating jbi.xml
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 21 source files to
D:\java\Workspaces\eclipse\soa\smx3\deployables\serviceengines\servicemix-bean\target\classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure

D:\java\Workspaces\eclipse\soa\smx3\deployables\serviceengines\servicemix-bean\src\main\java\org\apache\servicemix\bean\support\BeanInfo.java:[178,27]
cannot find symbol
symbol  : method prefix()
location: interface java.lang.annotation.Annotation

D:\java\Workspaces\eclipse\soa\smx3\deployables\serviceengines\servicemix-bean\src\main\java\org\apache\servicemix\bean\support\BeanInfo.java:[178,62]
cannot find symbol
symbol  : method uri()
location: interface java.lang.annotation.Annotation

D:\java\Workspaces\eclipse\soa\smx3\deployables\serviceengines\servicemix-bean\src\main\java\org\apache\servicemix\bean\support\BeanInfo.java:[179,16]
cannot find symbol
symbol  : class DefaultNamespaceContext
location: class org.apache.servicemix.bean.support.BeanInfo

D:\java\Workspaces\eclipse\soa\smx3\deployables\serviceengines\servicemix-bean\src\main\java\org\apache\servicemix\bean\support\BeanInfo.java:[179,50]
cannot find symbol
symbol  : class DefaultNamespaceContext
location: class org.apache.servicemix.bean.support.BeanInfo

D:\java\Workspaces\eclipse\soa\smx3\deployables\serviceengines\servicemix-bean\src\main\java\org\apache\servicemix\bean\support\BeanInfo.java:[180,34]
cannot find symbol
symbol  : method prefix()
location: interface java.lang.annotation.Annotation

D:\java\Workspaces\eclipse\soa\smx3\deployables\serviceengines\servicemix-bean\src\main\java\org\apache\servicemix\bean\support\BeanInfo.java:[180,55]
cannot find symbol
symbol  : method uri()
location: interface java.lang.annotation.Annotation


[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 minutes 11 seconds
[INFO] Finished at: Wed Mar 26 14:18:58 CET 2008
[INFO] Final Memory: 58M/104M
[INFO]
------------------------------------------------------------------------


Could you please check?


-- 
View this message in context: http://www.nabble.com/Integration-Test%3A-UnknownHostException-tp16278375s12049p16301039.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Integration Test: UnknownHostException

Posted by Guillaume Nodet <gn...@gmail.com>.
Support for the locationURI attribute has been added as part of
https://issues.apache.org/activemq/browse/SM-1210 and has not been released
yet.  You may want to try with a 3.2.2-SNAPSHOT or 3.3-SNAPSHOT build of the
CXF component.

On Wed, Mar 26, 2008 at 11:08 AM, Cybexion <cy...@email.de> wrote:

>
> Thanks Bruce, that helped.
> Took me a bit to figure out where the file:/// protocol comes from,
> because
> I did not specify it directly.
> The solution was, that I had the following Maven variable set:
> MAVEN_OPTS=-Duser.home=d:/java -Xmx768m
> after chaning it to
> MAVEN_OPTS=-Duser.home=/d:/java -Xmx768m
> it worked (so far)
>
> I had to add additional components to my springBeans.xml which now looks
> like this:
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>  xmlns:sm="http://servicemix.apache.org/config/1.0" xsi:schemaLocation="
>  http://www.springframework.org/schema/beans
>  http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>  http://servicemix.apache.org/config/1.0
>
>
> http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/servicemix/servicemix-core/3.2/servicemix-core-3.2.xsd
> ">
>
>  <sm:container generateRootDir="true">
>    <sm:deployments>
>      <sm:installSharedLibrary groupId="org.apache.servicemix"
> artifactId="servicemix-shared"
>        version="3.3-SNAPSHOT"/>
>       <sm:installComponent groupId="org.apache.servicemix"
> artifactId="servicemix-cxf-bc"
>        version="3.3-SNAPSHOT"/>
>      <sm:installComponent groupId="org.apache.servicemix"
> artifactId="servicemix-cxf-se"
>        version="3.3-SNAPSHOT"/>
>      <sm:installComponent groupId="org.apache.servicemix"
> artifactId="servicemix-saxon"
>         version="3.3-SNAPSHOT"/>
>      <sm:deployServiceAssembly groupId="my.components.order.service"
>        artifactId="orderservice-cxf-sa" version="1.0-SNAPSHOT"/>
>    </sm:deployments>
>  </sm:container>
> </beans>
>
> Now the next problem. If I start my test it fails and gives the following
> output:
>
>
> ...
> 2008-03-26 10:39:18,703 [main           ] DEBUG
> ileSystemXmlApplicationContext - Publishing event in context [xbean]:
> org.springframework.context.event.ContextRefreshedEvent[source=
> org.apache.xbean.spring.context.FileSystemXmlApplicationContext:
> display name [xbean]; startup date [Wed Mar 26 10:39:18 CET 2008]; root of
> context hierarchy]
> 2008-03-26 10:39:18,703 [main           ] DEBUG SaxonComponent
> - Service unit deployed
> 2008-03-26 10:39:18,703 [main           ] DEBUG CxfSeComponent
> - Undeploying service unit
> 2008-03-26 10:39:18,703 [main           ] DEBUG CxfSeComponent
> - Shutting down service unit
> 2008-03-26 10:39:18,703 [main           ] DEBUG CxfSeComponent
> - Looking for
>
> D:\java\Workspaces\eclipse\soa\adfusion\components\order\service\orderservice-cxf-sa-itest\target\rootDirs\rootDir1\service-assemblies\orderservice-cxf-sa\version_1\sus\servicemix-cxf-se\orderservice-cxfse-su\xbean.xml:
> true
> 2008-03-26 10:39:18,718 [main           ] INFO
> ileSystemXmlApplicationContext - Closing application context [xbean]
> 2008-03-26 10:39:18,718 [main           ] DEBUG
> ileSystemXmlApplicationContext - Publishing event in context [xbean]:
> org.springframework.context.event.ContextClosedEvent[source=
> org.apache.xbean.spring.context.FileSystemXmlApplicationContext:
> display name [xbean]; startup date [Wed Mar 26 10:39:16 CET 2008]; root of
> context hierarchy]
> 2008-03-26 10:39:18,718 [main           ] INFO  DefaultListableBeanFactory
> - Destroying singletons in
> {org.springframework.beans.factory.support.DefaultListableBeanFactory
> defining beans
> [my.common.util.spring.StagePropertiesPlaceholderConfigurer,
> my.common.util.spring.StagePropertiesPlaceholderConfigurer#1
> ,jbiWrapper,orderStateMapper,transformationService,dummyResponses,orderResponse,requestValidator,crmOrderValidator,baseValidator,errorHandler,
> org.apache.servicemix.cxfse.CxfSeEndpoint
> ,orderTransformer,dateUtil,crmProxy,mptProxy,dartProxy,baseProxy];
> parent: org.apache.servicemix.common.xbean.SimpleBeanFactory@1849daf}
> 2008-03-26 10:39:18,718 [main           ] DEBUG CxfSeComponent
> - Service unit undeployed
> 2008-03-26 10:39:18,750 [main           ] INFO  DeploymentService
> - UnDeployed ServiceUnit orderservice-cxfse-su from Component:
> servicemix-cxf-se
> 2008-03-26 10:39:18,750 [main           ] DEBUG SaxonComponent
> - Undeploying service unit
> 2008-03-26 10:39:18,750 [main           ] DEBUG SaxonComponent
> - Shutting down service unit
> 2008-03-26 10:39:18,750 [main           ] DEBUG SaxonComponent
> - Looking for
>
> D:\java\Workspaces\eclipse\soa\adfusion\components\order\service\orderservice-cxf-sa-itest\target\rootDirs\rootDir1\service-assemblies\orderservice-cxf-sa\version_1\sus\servicemix-saxon\orderservice-saxon-su\xbean.xml:
> true
> 2008-03-26 10:39:18,750 [main           ] INFO
> ileSystemXmlApplicationContext - Closing application context [xbean]
> 2008-03-26 10:39:18,750 [main           ] DEBUG
> ileSystemXmlApplicationContext - Publishing event in context [xbean]:
> org.springframework.context.event.ContextClosedEvent[source=
> org.apache.xbean.spring.context.FileSystemXmlApplicationContext:
> display name [xbean]; startup date [Wed Mar 26 10:39:18 CET 2008]; root of
> context hierarchy]
> 2008-03-26 10:39:18,750 [main           ] INFO  DefaultListableBeanFactory
> - Destroying singletons in
> {org.springframework.beans.factory.support.DefaultListableBeanFactory
> defining beans
> [org.apache.servicemix.saxon.XsltEndpoint,
> org.apache.servicemix.saxon.XsltEndpoint#1];
> root of BeanFactory hierarchy}
> 2008-03-26 10:39:18,750 [main           ] DEBUG SaxonComponent
> - Service unit undeployed
> 2008-03-26 10:39:18,765 [main           ] INFO  DeploymentService
> - UnDeployed ServiceUnit orderservice-saxon-su from Component:
> servicemix-saxon
> 2008-03-26 10:39:18,796 [main           ] ERROR DeploymentService
> - Error deploying service assembly
> java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
> version="1.0">
> <jbi-task-result>
> <frmwk-task-result>
> <frmwk-task-result-details>
> <task-result-details>
> <task-id>deploy</task-id>
> <task-result>FAILED</task-result>
> <message-type>ERROR</message-type>
> </task-result-details>
> </frmwk-task-result-details>
> </frmwk-task-result>
> <component-task-result
> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>         <component-name>servicemix-cxf-bc</component-name>
>        <component-task-result-details>
>                 <task-result-details>
>                        <task-id>deploy</task-id>
>                        <task-result>FAILED</task-result>
>                        <message-type>ERROR</message-type>
>                        <task-status-msg>
> <msg-loc-info>
> <loc-token/>
> <loc-message>Could not deploy xbean service unit</loc-message>
> </msg-loc-info>
> </task-status-msg>
>                        <exception-info>
>                                <nesting-level>1</nesting-level>
>                                 <msg-loc-info>
>                                        <loc-token/>
>                                         <loc-message>
> org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'org.apache.servicemix.cxfbc.CxfBcConsumer'
> defined in file
>
> [D:\java\Workspaces\eclipse\soa\adfusion\components\order\service\orderservice-cxf-sa-itest\target\rootDirs\rootDir1\service-assemblies\orderservice-cxf-sa\version_1\sus\servicemix-cxf-bc\orderservice-cxfbc-su\xbean.xml]:
> Error setting property values; nested exception is
> org.springframework.beans.NotWritablePropertyException: Invalid property
> 'locationURI' of bean class [org.apache.servicemix.cxfbc.CxfBcConsumer]:
> Bean property 'locationURI' is not writable or has an invalid setter
> method.
> Does the parameter type of the setter match the return type of the
> getter?</loc-message>
>
> <stack-trace><![CDATA[org.apache.xbean.kernel.ServiceRegistrationException
> :
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean
> with name 'org.apache.servicemix.cxfbc.CxfBcConsumer' defined in file
>
> [D:\java\Workspaces\eclipse\soa\adfusion\components\order\service\orderservice-cxf-sa-itest\target\rootDirs\rootDir1\service-assemblies\orderservice-cxf-sa\version_1\sus\servicemix-cxf-bc\orderservice-cxfbc-su\xbean.xml]:
> Error setting property values; nested exception is
> org.springframework.beans.NotWritablePropertyException: Invalid property
> 'locationURI' of bean class [org.apache.servicemix.cxfbc.CxfBcConsumer]:
> Bean property 'locationURI' is not writable or has an invalid setter
> method.
> Does the parameter type of the setter match the return type of the getter?
>        at
> org.apache.xbean.kernel.standard.ServiceManagerRegistry.registerService(
> ServiceManagerRegistry.java:424)
>        at
> org.apache.xbean.kernel.standard.StandardKernel.registerService(
> StandardKernel.java:220)
>        at
> org.apache.xbean.server.spring.loader.SpringLoader.load(SpringLoader.java
> :152)
>        at
> org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(
> AbstractXBeanDeployer.java:83)
> ...
>         at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java
> :976)
> Caused by: org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'org.apache.servicemix.cxfbc.CxfBcConsumer'
> defined
> in file
>
> [D:\java\Workspaces\eclipse\soa\adfusion\components\order\service\orderservice-cxf-sa-itest\target\rootDirs\rootDir1\service-assemblies\orderservice-cxf-sa\version_1\sus\servicemix-cxf-bc\orderservice-cxfbc-su\xbean.xml]:
> Error setting property values; nested exception is
> org.springframework.beans.NotWritablePropertyException: Invalid property
> 'locationURI' of bean class [org.apache.servicemix.cxfbc.CxfBcConsumer]:
> Bean property 'locationURI' is not writable or has an invalid setter
> method.
> Does the parameter type of the setter match the return type of the getter?
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues
> (AbstractAutowireCapableBeanFactory.java:1030)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean
> (AbstractAutowireCapableBeanFactory.java:809)
>        ... 46 more
> Caused by: org.springframework.beans.NotWritablePropertyException: Invalid
> property 'locationURI' of bean class
> [org.apache.servicemix.cxfbc.CxfBcConsumer]: Bean property 'locationURI'
> is
> not writable or has an invalid setter method. Does the parameter type of
> the
> setter match the return type of the getter?
>        at
> org.springframework.beans.BeanWrapperImpl.setPropertyValue(
> BeanWrapperImpl.java:748)
>        at
> org.springframework.beans.BeanWrapperImpl.setPropertyValue(
> BeanWrapperImpl.java:606)
>        ... 62 more
> ]]></stack-trace>
>                                </msg-loc-info>
>                        </exception-info>
>                </task-result-details>
>        </component-task-result-details>
> </component-task-result>
> <component-task-result
> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>         <component-name>servicemix-cxf-se</component-name>
>        <component-task-result-details>
>                 <task-result-details>
>                        <task-id>deploy</task-id>
>                         <task-result>SUCCESS</task-result>
>                </task-result-details>
>        </component-task-result-details>
> </component-task-result>
> <component-task-result
> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>         <component-name>servicemix-saxon</component-name>
>        <component-task-result-details>
>                 <task-result-details>
>                        <task-id>deploy</task-id>
>                         <task-result>SUCCESS</task-result>
>                </task-result-details>
>        </component-task-result-details>
> </component-task-result>
> </jbi-task-result>
> </jbi-task>
>
>        at
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(
> ManagementSupport.java:125)
> ...
> 2008-03-26 10:39:18,796 [main           ] INFO  DefaultListableBeanFactory
> - Destroying singletons in
> {org.springframework.beans.factory.support.DefaultListableBeanFactory
> defining beans [org.apache.servicemix.jbi.container.SpringJBIContainer];
> root of BeanFactory hierarchy}
> 2008-03-26 10:39:18,843 [ix ShutdownHook] INFO  JBIContainer
> - Shutting down ServiceMix JBI Container (ServiceMix) stopped
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG JBIContainer
> - Caught exception, must be shutting down: java.lang.IllegalStateException
> :
> Shutdown in progress
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG ManagementContext
> - Unregistering system service:
> org.apache.servicemix:ContainerName=ServiceMix
> ,Type=SystemService,Name=AdminCommandsService
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG ManagementContext
> - Unregistering system service:
> org.apache.servicemix:ContainerName=ServiceMix
> ,Type=SystemService,Name=AutoDeploymentService
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG ManagementContext
> - Unregistering system service:
> org.apache.servicemix:ContainerName=ServiceMix
> ,Type=SystemService,Name=DeploymentService
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG ManagementContext
> - Unregistering system service:
> org.apache.servicemix:ContainerName=ServiceMix
> ,Type=SystemService,Name=InstallationService
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG SedaFlow
> - Called Flow stop
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG JBIContainer
> - Removing listener: class
> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow$1
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG SedaFlow
> - Called Flow shutdown
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG DeliveryChannelImpl
> - Closing DeliveryChannel DeliveryChannel{#SubscriptionManager#}
> 2008-03-26 10:39:18,843 [ix ShutdownHook] INFO  JBIContainer
> - Deactivating component #SubscriptionManager#
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG SedaFlow
> - Called Flow stop
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG ManagementContext
> - Unregistering system service:
> org.apache.servicemix:ContainerName=ServiceMix
> ,Type=SystemService,Name=DefaultBroker
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG SaxonComponent
> - Stopping component
> 2008-03-26 10:39:18,843 [-saxon-thread-1] DEBUG SaxonComponent
> - Polling thread will stop
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG SaxonComponent
> - Component stopped
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG SaxonComponent
> - Shutting down component
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG SaxonComponent
> - Component shut down
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG DeliveryChannelImpl
> - Closing DeliveryChannel DeliveryChannel{servicemix-saxon}
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG CxfSeComponent
> - Stopping component
> 2008-03-26 10:39:18,843 [cxf-se-thread-1] DEBUG CxfSeComponent
> - Polling thread will stop
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG CxfSeComponent
> - Component stopped
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG CxfSeComponent
> - Shutting down component
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG CxfSeComponent
> - Component shut down
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG DeliveryChannelImpl
> - Closing DeliveryChannel DeliveryChannel{servicemix-cxf-se}
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG CxfBcComponent
> - Stopping component
> 2008-03-26 10:39:18,843 [cxf-bc-thread-1] DEBUG CxfBcComponent
> - Polling thread will stop
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG CxfBcComponent
> - Component stopped
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG CxfBcComponent
> - Shutting down component
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG CxfBcComponent
> - Component shut down
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG DeliveryChannelImpl
> - Closing DeliveryChannel DeliveryChannel{servicemix-cxf-bc}
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG ManagementContext
> - Unregistering system service:
> org.apache.servicemix:ContainerName=ServiceMix
> ,Type=SystemService,Name=Registry
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG ManagementContext
> - Unregistering system service:
> org.apache.servicemix:ContainerName=ServiceMix
> ,Type=SystemService,Name=ClientFactory
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG ManagementContext
> - Unregistering system service:
> org.apache.servicemix:ContainerName=ServiceMix
> ,Type=SystemService,Name=EnvironmentContext
> 2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG ManagementContext
> - Unregistering system service:
> org.apache.servicemix:ContainerName=ServiceMix
> ,Type=SystemService,Name=ManagementContext
> 2008-03-26 10:39:18,843 [ix ShutdownHook] INFO  ConnectorServerFactoryBean
> - Stopping JMX connector server:
> javax.management.remote.rmi.RMIConnectorServer@6458a6
> 2008-03-26 10:39:18,859 [ix ShutdownHook] INFO  JBIContainer
> - ServiceMix JBI Container (ServiceMix) stopped
>
> As I understand, the core error is
> NotWritablePropertyException: Invalid property 'locationURI' of bean class
> [org.apache.servicemix.cxfbc.CxfBcConsumer]
>
>
> Looks like it should be set from one of my xbean.xml which looks like
> this:
> <?xml version="1.0" encoding="UTF-8"?>
> <beans
>   xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
>  xmlns:order="http://my.company/orderservice/v1/">
>
>  <!-- Loads the configuration-->
>  <bean
>    class="my.common.util.spring.StagePropertiesPlaceholderConfigurer"/>
>
>  <cxfbc:consumer
>    wsdl="classpath:orderService.wsdl"
>    targetService="order:OrderService"
>    targetInterface="order:orderServicePort"
>    locationURI="${my.components.order.service.soapurl}"
>    />
> </beans>
>
> So, again stuck. Any idea?
>
>
> --
> View this message in context:
> http://www.nabble.com/Integration-Test%3A-UnknownHostException-tp16278375s12049p16299141.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>


-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Re: Integration Test: UnknownHostException

Posted by Cybexion <cy...@email.de>.
Thanks Bruce, that helped.
Took me a bit to figure out where the file:/// protocol comes from, because
I did not specify it directly.
The solution was, that I had the following Maven variable set:
MAVEN_OPTS=-Duser.home=d:/java -Xmx768m
after chaning it to
MAVEN_OPTS=-Duser.home=/d:/java -Xmx768m
it worked (so far)

I had to add additional components to my springBeans.xml which now looks
like this:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:sm="http://servicemix.apache.org/config/1.0" xsi:schemaLocation="
  http://www.springframework.org/schema/beans
  http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
  http://servicemix.apache.org/config/1.0
 
http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/servicemix/servicemix-core/3.2/servicemix-core-3.2.xsd">

  <sm:container generateRootDir="true">
    <sm:deployments>
      <sm:installSharedLibrary groupId="org.apache.servicemix"
artifactId="servicemix-shared"
        version="3.3-SNAPSHOT"/>
      <sm:installComponent groupId="org.apache.servicemix"
artifactId="servicemix-cxf-bc"
        version="3.3-SNAPSHOT"/>
      <sm:installComponent groupId="org.apache.servicemix"
artifactId="servicemix-cxf-se"
        version="3.3-SNAPSHOT"/>
      <sm:installComponent groupId="org.apache.servicemix"
artifactId="servicemix-saxon"
        version="3.3-SNAPSHOT"/>
      <sm:deployServiceAssembly groupId="my.components.order.service"
        artifactId="orderservice-cxf-sa" version="1.0-SNAPSHOT"/>
    </sm:deployments>
  </sm:container>
</beans>

Now the next problem. If I start my test it fails and gives the following
output:


...
2008-03-26 10:39:18,703 [main           ] DEBUG
ileSystemXmlApplicationContext - Publishing event in context [xbean]:
org.springframework.context.event.ContextRefreshedEvent[source=org.apache.xbean.spring.context.FileSystemXmlApplicationContext:
display name [xbean]; startup date [Wed Mar 26 10:39:18 CET 2008]; root of
context hierarchy]
2008-03-26 10:39:18,703 [main           ] DEBUG SaxonComponent                
- Service unit deployed
2008-03-26 10:39:18,703 [main           ] DEBUG CxfSeComponent                
- Undeploying service unit
2008-03-26 10:39:18,703 [main           ] DEBUG CxfSeComponent                
- Shutting down service unit
2008-03-26 10:39:18,703 [main           ] DEBUG CxfSeComponent                
- Looking for
D:\java\Workspaces\eclipse\soa\adfusion\components\order\service\orderservice-cxf-sa-itest\target\rootDirs\rootDir1\service-assemblies\orderservice-cxf-sa\version_1\sus\servicemix-cxf-se\orderservice-cxfse-su\xbean.xml:
true
2008-03-26 10:39:18,718 [main           ] INFO 
ileSystemXmlApplicationContext - Closing application context [xbean]
2008-03-26 10:39:18,718 [main           ] DEBUG
ileSystemXmlApplicationContext - Publishing event in context [xbean]:
org.springframework.context.event.ContextClosedEvent[source=org.apache.xbean.spring.context.FileSystemXmlApplicationContext:
display name [xbean]; startup date [Wed Mar 26 10:39:16 CET 2008]; root of
context hierarchy]
2008-03-26 10:39:18,718 [main           ] INFO  DefaultListableBeanFactory    
- Destroying singletons in
{org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans
[my.common.util.spring.StagePropertiesPlaceholderConfigurer,my.common.util.spring.StagePropertiesPlaceholderConfigurer#1,jbiWrapper,orderStateMapper,transformationService,dummyResponses,orderResponse,requestValidator,crmOrderValidator,baseValidator,errorHandler,org.apache.servicemix.cxfse.CxfSeEndpoint,orderTransformer,dateUtil,crmProxy,mptProxy,dartProxy,baseProxy];
parent: org.apache.servicemix.common.xbean.SimpleBeanFactory@1849daf}
2008-03-26 10:39:18,718 [main           ] DEBUG CxfSeComponent                
- Service unit undeployed
2008-03-26 10:39:18,750 [main           ] INFO  DeploymentService             
- UnDeployed ServiceUnit orderservice-cxfse-su from Component:
servicemix-cxf-se
2008-03-26 10:39:18,750 [main           ] DEBUG SaxonComponent                
- Undeploying service unit
2008-03-26 10:39:18,750 [main           ] DEBUG SaxonComponent                
- Shutting down service unit
2008-03-26 10:39:18,750 [main           ] DEBUG SaxonComponent                
- Looking for
D:\java\Workspaces\eclipse\soa\adfusion\components\order\service\orderservice-cxf-sa-itest\target\rootDirs\rootDir1\service-assemblies\orderservice-cxf-sa\version_1\sus\servicemix-saxon\orderservice-saxon-su\xbean.xml:
true
2008-03-26 10:39:18,750 [main           ] INFO 
ileSystemXmlApplicationContext - Closing application context [xbean]
2008-03-26 10:39:18,750 [main           ] DEBUG
ileSystemXmlApplicationContext - Publishing event in context [xbean]:
org.springframework.context.event.ContextClosedEvent[source=org.apache.xbean.spring.context.FileSystemXmlApplicationContext:
display name [xbean]; startup date [Wed Mar 26 10:39:18 CET 2008]; root of
context hierarchy]
2008-03-26 10:39:18,750 [main           ] INFO  DefaultListableBeanFactory    
- Destroying singletons in
{org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans
[org.apache.servicemix.saxon.XsltEndpoint,org.apache.servicemix.saxon.XsltEndpoint#1];
root of BeanFactory hierarchy}
2008-03-26 10:39:18,750 [main           ] DEBUG SaxonComponent                
- Service unit undeployed
2008-03-26 10:39:18,765 [main           ] INFO  DeploymentService             
- UnDeployed ServiceUnit orderservice-saxon-su from Component:
servicemix-saxon
2008-03-26 10:39:18,796 [main           ] ERROR DeploymentService             
- Error deploying service assembly
java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
<component-task-result
xmlns="http://java.sun.com/xml/ns/jbi/management-message">
	<component-name>servicemix-cxf-bc</component-name>
	<component-task-result-details>
		<task-result-details>
			<task-id>deploy</task-id>
			<task-result>FAILED</task-result>
			<message-type>ERROR</message-type>
			<task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>Could not deploy xbean service unit</loc-message>
</msg-loc-info>
</task-status-msg>
			<exception-info>
				<nesting-level>1</nesting-level>
				<msg-loc-info>
					<loc-token/>
					<loc-message>org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'org.apache.servicemix.cxfbc.CxfBcConsumer'
defined in file
[D:\java\Workspaces\eclipse\soa\adfusion\components\order\service\orderservice-cxf-sa-itest\target\rootDirs\rootDir1\service-assemblies\orderservice-cxf-sa\version_1\sus\servicemix-cxf-bc\orderservice-cxfbc-su\xbean.xml]:
Error setting property values; nested exception is
org.springframework.beans.NotWritablePropertyException: Invalid property
'locationURI' of bean class [org.apache.servicemix.cxfbc.CxfBcConsumer]:
Bean property 'locationURI' is not writable or has an invalid setter method.
Does the parameter type of the setter match the return type of the
getter?</loc-message>
				
<stack-trace><![CDATA[org.apache.xbean.kernel.ServiceRegistrationException:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.apache.servicemix.cxfbc.CxfBcConsumer' defined in file
[D:\java\Workspaces\eclipse\soa\adfusion\components\order\service\orderservice-cxf-sa-itest\target\rootDirs\rootDir1\service-assemblies\orderservice-cxf-sa\version_1\sus\servicemix-cxf-bc\orderservice-cxfbc-su\xbean.xml]:
Error setting property values; nested exception is
org.springframework.beans.NotWritablePropertyException: Invalid property
'locationURI' of bean class [org.apache.servicemix.cxfbc.CxfBcConsumer]:
Bean property 'locationURI' is not writable or has an invalid setter method.
Does the parameter type of the setter match the return type of the getter?
	at
org.apache.xbean.kernel.standard.ServiceManagerRegistry.registerService(ServiceManagerRegistry.java:424)
	at
org.apache.xbean.kernel.standard.StandardKernel.registerService(StandardKernel.java:220)
	at
org.apache.xbean.server.spring.loader.SpringLoader.load(SpringLoader.java:152)
	at
org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:83)
...
	at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:976)
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'org.apache.servicemix.cxfbc.CxfBcConsumer' defined
in file
[D:\java\Workspaces\eclipse\soa\adfusion\components\order\service\orderservice-cxf-sa-itest\target\rootDirs\rootDir1\service-assemblies\orderservice-cxf-sa\version_1\sus\servicemix-cxf-bc\orderservice-cxfbc-su\xbean.xml]:
Error setting property values; nested exception is
org.springframework.beans.NotWritablePropertyException: Invalid property
'locationURI' of bean class [org.apache.servicemix.cxfbc.CxfBcConsumer]:
Bean property 'locationURI' is not writable or has an invalid setter method.
Does the parameter type of the setter match the return type of the getter?
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1030)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:809)
	... 46 more
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid
property 'locationURI' of bean class
[org.apache.servicemix.cxfbc.CxfBcConsumer]: Bean property 'locationURI' is
not writable or has an invalid setter method. Does the parameter type of the
setter match the return type of the getter?
	at
org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:748)
	at
org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:606)
	... 62 more
]]></stack-trace>
				</msg-loc-info>
			</exception-info>
		</task-result-details>
	</component-task-result-details>
</component-task-result>
<component-task-result
xmlns="http://java.sun.com/xml/ns/jbi/management-message">
	<component-name>servicemix-cxf-se</component-name>
	<component-task-result-details>
		<task-result-details>
			<task-id>deploy</task-id>
			<task-result>SUCCESS</task-result>
		</task-result-details>
	</component-task-result-details>
</component-task-result>
<component-task-result
xmlns="http://java.sun.com/xml/ns/jbi/management-message">
	<component-name>servicemix-saxon</component-name>
	<component-task-result-details>
		<task-result-details>
			<task-id>deploy</task-id>
			<task-result>SUCCESS</task-result>
		</task-result-details>
	</component-task-result-details>
</component-task-result>
</jbi-task-result>
</jbi-task>

	at
org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
...
2008-03-26 10:39:18,796 [main           ] INFO  DefaultListableBeanFactory    
- Destroying singletons in
{org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans [org.apache.servicemix.jbi.container.SpringJBIContainer];
root of BeanFactory hierarchy}
2008-03-26 10:39:18,843 [ix ShutdownHook] INFO  JBIContainer                  
- Shutting down ServiceMix JBI Container (ServiceMix) stopped
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG JBIContainer                  
- Caught exception, must be shutting down: java.lang.IllegalStateException:
Shutdown in progress
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG ManagementContext             
- Unregistering system service:
org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=AdminCommandsService
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG ManagementContext             
- Unregistering system service:
org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=AutoDeploymentService
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG ManagementContext             
- Unregistering system service:
org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=DeploymentService
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG ManagementContext             
- Unregistering system service:
org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=InstallationService
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG SedaFlow                      
- Called Flow stop
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG JBIContainer                  
- Removing listener: class
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow$1
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG SedaFlow                      
- Called Flow shutdown
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG DeliveryChannelImpl           
- Closing DeliveryChannel DeliveryChannel{#SubscriptionManager#}
2008-03-26 10:39:18,843 [ix ShutdownHook] INFO  JBIContainer                  
- Deactivating component #SubscriptionManager#
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG SedaFlow                      
- Called Flow stop
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG ManagementContext             
- Unregistering system service:
org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=DefaultBroker
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG SaxonComponent                
- Stopping component
2008-03-26 10:39:18,843 [-saxon-thread-1] DEBUG SaxonComponent                
- Polling thread will stop
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG SaxonComponent                
- Component stopped
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG SaxonComponent                
- Shutting down component
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG SaxonComponent                
- Component shut down
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG DeliveryChannelImpl           
- Closing DeliveryChannel DeliveryChannel{servicemix-saxon}
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG CxfSeComponent                
- Stopping component
2008-03-26 10:39:18,843 [cxf-se-thread-1] DEBUG CxfSeComponent                
- Polling thread will stop
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG CxfSeComponent                
- Component stopped
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG CxfSeComponent                
- Shutting down component
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG CxfSeComponent                
- Component shut down
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG DeliveryChannelImpl           
- Closing DeliveryChannel DeliveryChannel{servicemix-cxf-se}
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG CxfBcComponent                
- Stopping component
2008-03-26 10:39:18,843 [cxf-bc-thread-1] DEBUG CxfBcComponent                
- Polling thread will stop
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG CxfBcComponent                
- Component stopped
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG CxfBcComponent                
- Shutting down component
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG CxfBcComponent                
- Component shut down
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG DeliveryChannelImpl           
- Closing DeliveryChannel DeliveryChannel{servicemix-cxf-bc}
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG ManagementContext             
- Unregistering system service:
org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=Registry
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG ManagementContext             
- Unregistering system service:
org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=ClientFactory
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG ManagementContext             
- Unregistering system service:
org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=EnvironmentContext
2008-03-26 10:39:18,843 [ix ShutdownHook] DEBUG ManagementContext             
- Unregistering system service:
org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=ManagementContext
2008-03-26 10:39:18,843 [ix ShutdownHook] INFO  ConnectorServerFactoryBean    
- Stopping JMX connector server:
javax.management.remote.rmi.RMIConnectorServer@6458a6
2008-03-26 10:39:18,859 [ix ShutdownHook] INFO  JBIContainer                  
- ServiceMix JBI Container (ServiceMix) stopped

As I understand, the core error is
NotWritablePropertyException: Invalid property 'locationURI' of bean class
[org.apache.servicemix.cxfbc.CxfBcConsumer]


Looks like it should be set from one of my xbean.xml which looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<beans
  xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
  xmlns:order="http://my.company/orderservice/v1/">

  <!-- Loads the configuration-->
  <bean
    class="my.common.util.spring.StagePropertiesPlaceholderConfigurer"/>
  
  <cxfbc:consumer
    wsdl="classpath:orderService.wsdl"
    targetService="order:OrderService"
    targetInterface="order:orderServicePort"
    locationURI="${my.components.order.service.soapurl}"
    />
</beans>

So, again stuck. Any idea?


-- 
View this message in context: http://www.nabble.com/Integration-Test%3A-UnknownHostException-tp16278375s12049p16299141.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Integration Test: UnknownHostException

Posted by Bruce Snyder <br...@gmail.com>.
On Tue, Mar 25, 2008 at 10:51 AM, Cybexion <cy...@email.de> wrote:
>
>  Hi,
>
>  I tried to do an integration test, similar to the camel example.
>  The problem is, that (you guess it) it is not working and results in an
>  exception.
>
>  My spring.xml looks like this:
>  <?xml version="1.0" encoding="UTF-8"?>
>  <beans xmlns="http://www.springframework.org/schema/beans"
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>   xmlns:sm="http://servicemix.apache.org/config/1.0" xsi:schemaLocation="
>   http://www.springframework.org/schema/beans
>   http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>   http://servicemix.apache.org/config/1.0
>
>  http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/servicemix/servicemix-core/3.2/servicemix-core-3.2.xsd">
>   <sm:container generateRootDir="true">
>     <sm:deployments>
>       <sm:installSharedLibrary groupId="org.apache.servicemix"
>  artifactId="servicemix-shared"
>         version="3.3-SNAPSHOT"/>
>       <sm:deployServiceAssembly groupId="my.components.order.service"
>         artifactId="orderservice-cxf-sa" version="1.0-SNAPSHOT"/>
>     </sm:deployments>
>   </sm:container>
>  </beans>
>
>  Here is the error:
>  2008-03-25 17:44:29,218 [main           ] DEBUG ManagementContext
>  - Registering system service:
>  org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=InstallationService
>  2008-03-25 17:44:29,218 [main           ] DEBUG ManagementContext
>  - Registering system service:
>  org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=DeploymentService
>  2008-03-25 17:44:29,218 [main           ] INFO  DeploymentService
>  - Restoring service assemblies
>  2008-03-25 17:44:29,218 [main           ] DEBUG ManagementContext
>  - Registering system service:
>  org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=AutoDeploymentService
>  2008-03-25 17:44:29,234 [main           ] DEBUG AutoDeploymentService
>  - State file doesn't exist:
>  D:\java\Workspaces\eclipse\soa\adfusion\components\order\service\orderservice-cxf-sa-itest\target\rootDirs\rootDir1\install.xml
>  2008-03-25 17:44:29,234 [main           ] DEBUG AutoDeploymentService
>  - State file doesn't exist:
>  D:\java\Workspaces\eclipse\soa\adfusion\components\order\service\orderservice-cxf-sa-itest\target\rootDirs\rootDir1\deploy.xml
>  2008-03-25 17:44:29,234 [main           ] DEBUG ManagementContext
>  - Registering system service:
>  org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=AdminCommandsService
>  2008-03-25 17:44:29,234 [main           ] INFO  InstallSharedLibrary
>  - Deploying shared library:
>  file://d:/java/.m2/repository/org/apache/servicemix/servicemix-shared/3.3-SNAPSHOT/servicemix-shared-3.3-SNAPSHOT-installer.zip
>  2008-03-25 17:44:38,343 [main           ] ERROR InstallationService
>  - Deployment failed
>  javax.jbi.management.DeploymentException: java.net.UnknownHostException: d
>         at
>  org.apache.servicemix.jbi.framework.AutoDeploymentService.unpackLocation(AutoDeploymentService.java:595)
>         at
>  org.apache.servicemix.jbi.framework.InstallationService.installSharedLibrary(InstallationService.java:213)
>         at
>  org.apache.servicemix.jbi.framework.AdminCommandsService.installSharedLibrary(AdminCommandsService.java:104)
>         at
>  org.apache.servicemix.jbi.container.InstallSharedLibrary.doDeploy(InstallSharedLibrary.java:37)
>         at
>  org.apache.servicemix.jbi.container.DeploySupport.deploy(DeploySupport.java:58)
>         at
>  org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:111)
>         at
>  org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1118)
>         at
>  org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1085)
>         at
>  org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:429)
>         at
>  org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)
>         at
>  org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
>         at
>  org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)
>         at
>  org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)
>         at
>  org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:273)
>         at
>  org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)
>         at
>  org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:92)
>         at
>  org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:77)
>         at
>  org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:68)
>         at
>  my.components.orderservice.OrderServiceITest.createApplicationContext(OrderServiceITest.java:35)
>         at
>  my.components.orderservice.OrderServiceITest.setUp(OrderServiceITest.java:21)
>         at junit.framework.TestCase.runBare(TestCase.java:125)
>         at junit.framework.TestResult$1.protect(TestResult.java:106)
>         at junit.framework.TestResult.runProtected(TestResult.java:124)
>         at junit.framework.TestResult.run(TestResult.java:109)
>         at junit.framework.TestCase.run(TestCase.java:118)
>         at junit.framework.TestSuite.runTest(TestSuite.java:208)
>         at junit.framework.TestSuite.run(TestSuite.java:203)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
>  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
>  org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
>         at
>  org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
>         at
>  org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
>  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
>  org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:285)
>         at
>  org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:976)
>  Caused by: java.net.UnknownHostException: d
>         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
>         at java.net.Socket.connect(Socket.java:519)
>         at java.net.Socket.connect(Socket.java:469)
>         at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
>         at sun.net.NetworkClient.openServer(NetworkClient.java:118)
>         at sun.net.ftp.FtpClient.openServer(FtpClient.java:488)
>         at sun.net.ftp.FtpClient.openServer(FtpClient.java:475)
>         at
>  sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:270)
>         at
>  sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:352)
>         at java.net.URL.openStream(URL.java:1009)
>         at org.apache.servicemix.jbi.util.FileUtil.unpackArchive(FileUtil.java:154)
>         at
>  org.apache.servicemix.jbi.framework.AutoDeploymentService.unpackLocation(AutoDeploymentService.java:582)
>         ... 40 more
>  2008-03-25 17:44:38,343 [main           ] INFO  InstallSharedLibrary
>  - Deploying shared library:
>  file://d:/java/.m2/repository/net/adlinkgroup/adfusion/components/order/service/orderservice-cxf-sa/1.0-SNAPSHOT/orderservice-cxf-sa-1.0-SNAPSHOT.zip
>  2008-03-25 17:44:38,515 [main           ] ERROR DeploymentService
>  - Error deploying service assembly
>  java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
>  <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
>  version="1.0">
>  <jbi-task-result>
>  <frmwk-task-result>
>  <frmwk-task-result-details>
>  <task-result-details>
>  <task-id>deploy</task-id>
>  <task-result>FAILED</task-result>
>  <message-type>ERROR</message-type>
>  <task-status-msg>
>  <msg-loc-info>
>  <loc-token/>
>  <loc-message>Unable to unpack archive:
>  file://d:/java/.m2/repository/net/adlinkgroup/adfusion/components/order/service/orderservice-cxf-sa/1.0-SNAPSHOT/orderservice-cxf-sa-1.0-SNAPSHOT.zip</loc-message>
>  </msg-loc-info>
>  </task-status-msg>
>  <exception-info>
>  <nesting-level>1</nesting-level>
>  <loc-token/>
>  <loc-message>java.net.UnknownHostException: d</loc-message>
>  <stack-trace><![CDATA[javax.jbi.management.DeploymentException:
>  java.net.UnknownHostException: d
>
>         at
>  org.apache.servicemix.jbi.framework.AutoDeploymentService.unpackLocation(AutoDeploymentService.java:595)
>
>         at
>  org.apache.servicemix.jbi.framework.DeploymentService.deploy(DeploymentService.java:185)
>
>         at
>  org.apache.servicemix.jbi.framework.AdminCommandsService.deployServiceAssembly(AdminCommandsService.java:212)
>
>         at
>  org.apache.servicemix.jbi.container.DeployServiceAssembly.doDeploy(DeployServiceAssembly.java:57)
>
>         at
>  org.apache.servicemix.jbi.container.DeploySupport.deploy(DeploySupport.java:58)
>
>         at
>  org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:111)
>
>         at
>  org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1118)
>
>         at
>  org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1085)
>
>         at
>  org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:429)
>
>         at
>  org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)
>
>         at
>  org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
>
>         at
>  org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)
>
>         at
>  org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)
>
>         at
>  org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:273)
>
>         at
>  org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)
>
>         at
>  org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:92)
>
>         at
>  org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:77)
>
>         at
>  org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:68)
>
>         at
>  my.components.orderservice.OrderServiceITest.createApplicationContext(OrderServiceITest.java:35)
>
>         at
>  my.components.orderservice.OrderServiceITest.setUp(OrderServiceITest.java:21)
>
>         at junit.framework.TestCase.runBare(TestCase.java:125)
>
>         at junit.framework.TestResult$1.protect(TestResult.java:106)
>
>         at junit.framework.TestResult.runProtected(TestResult.java:124)
>
>         at junit.framework.TestResult.run(TestResult.java:109)
>
>         at junit.framework.TestCase.run(TestCase.java:118)
>
>         at junit.framework.TestSuite.runTest(TestSuite.java:208)
>
>         at junit.framework.TestSuite.run(TestSuite.java:203)
>
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>         at
>  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
>
>  It complains, that it can't find this file:
>  file://d:/java/.m2/repository/org/apache/servicemix/servicemix-shared/3.3-SNAPSHOT/servicemix-shared-3.3-SNAPSHOT-installer.zip
>  However, if i copy the URL into the windows explorer, the file is there.
>  My maven repository points to
>  d:/java/.m2/repository
>
>  I'm working on windows with jdk 1.5, SM 3.3 trunk from last week.
>
>
>  Thanks in advance for helping!

Try adding another slash to the file protocol so that it's a valid URI like so:

file:///

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/

Blog: http://bruceblog.org/

Re: Integration Test: UnknownHostException

Posted by Cybexion <cy...@email.de>.
I have checked out the latest sources and build everything.
Result:
It seems to work now, at least my tests pass through.
Well done, thanks.

One small thing:
I get an exception inside my logs during startup:

2008-03-31 11:02:05,468 [main           ] DEBUG SaxonComponent                
- Service unit started
2008-03-31 11:02:05,468 [main           ] WARN  ClientFactory                 
- Cound not start ClientFactory: javax.naming.NoInitialContextException:
Need to specify class name in environment or system property, or as an
applet parameter, or in an application resource file: 
java.naming.factory.initial
2008-03-31 11:02:05,468 [main           ] DEBUG ClientFactory                 
- Could not start ClientFactory
javax.naming.NoInitialContextException: Need to specify class name in
environment or system property, or as an applet parameter, or in an
application resource file:  java.naming.factory.initial
	at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
	at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
	at
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:325)
	at javax.naming.InitialContext.bind(InitialContext.java:400)
	at
org.apache.servicemix.jbi.framework.ClientFactory.start(ClientFactory.java:86)
	at
org.apache.servicemix.jbi.container.JBIContainer.start(JBIContainer.java:629)
	at
org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:115)

But from previous posts I can ignore that, right?

Thanks again for supporting.






gnodet wrote:
> 
> This is fixed now.  If you build a new snapshot of 3.3 locally, it should
> now work.
> A wordaround is to deploy  dummy lightweight component so that you can
> still
> deploy the SU.
> 
> On Sun, Mar 30, 2008 at 7:27 PM, Guillaume Nodet <gn...@gmail.com> wrote:
> 
>> This may be related to a change I did last week (you use 3.3-SNAPSHOT,
>> right ?)
>> Usually, SU contains endpoint definitions, but in the lwcontainer case,
>> this is not always true, so i need to make sure this use case still
>> works.
>> I'll try to fix that tomorrow.
>>
>>
>> On Sat, Mar 29, 2008 at 10:44 PM, Cybexion <cy...@email.de> wrote:
>>
>> >
>> > My maven var now looks like this MAVEN_OPTS=-Xmx768m
>> > I put the path to the local repository into servicemix.xml:
>> >  <localRepository>D:/java/.m2/repository</localRepository>
>> > Interesting, the bug has disapeared :-)
>> > Looks like maven treats the settings in the variable different to the
>> > one in
>> > settings.xml
>> > But ... you might guess it ... still an issue.
>> > The next error message is this: No endpoints found
>> >
>> > 2008-03-29 15:08:40,250 [main           ] ERROR DeploymentService
>> > - Error deploying service assembly
>> > java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
>> > <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
>> > version="1.0">
>> > <jbi-task-result>
>> > <frmwk-task-result>
>> > <frmwk-task-result-details>
>> > <task-result-details>
>> > <task-id>deploy</task-id>
>> > <task-result>FAILED</task-result>
>> > <message-type>ERROR</message-type>
>> > </task-result-details>
>> > </frmwk-task-result-details>
>> > </frmwk-task-result>
>> > <component-task-result
>> > xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>> >         <component-name>servicemix-cxf-bc</component-name>
>> >         <component-task-result-details>
>> >                 <task-result-details>
>> >                        <task-id>deploy</task-id>
>> >                        <task-result>FAILED</task-result>
>> >                        <message-type>ERROR</message-type>
>> >                        <task-status-msg>
>> > <msg-loc-info>
>> > <loc-token/>
>> > <loc-message>No endpoints found</loc-message>
>> > </msg-loc-info>
>> > </task-status-msg>
>> >                 </task-result-details>
>> >        </component-task-result-details>
>> > </component-task-result>
>> > <component-task-result
>> > xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>> >         <component-name>servicemix-cxf-se</component-name>
>> >         <component-task-result-details>
>> >                 <task-result-details>
>> >                        <task-id>deploy</task-id>
>> >                        <task-result>FAILED</task-result>
>> >                        <message-type>ERROR</message-type>
>> >                        <task-status-msg>
>> > <msg-loc-info>
>> > <loc-token/>
>> > <loc-message>No endpoints found</loc-message>
>> > </msg-loc-info>
>> > </task-status-msg>
>> >                 </task-result-details>
>> >        </component-task-result-details>
>> > </component-task-result>
>> > <component-task-result
>> > xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>> >         <component-name>servicemix-saxon</component-name>
>> >         <component-task-result-details>
>> >                 <task-result-details>
>> >                        <task-id>deploy</task-id>
>> >                        <task-result>FAILED</task-result>
>> >                        <message-type>ERROR</message-type>
>> >                        <task-status-msg>
>> > <msg-loc-info>
>> > <loc-token/>
>> > <loc-message>No endpoints found</loc-message>
>> > </msg-loc-info>
>> > </task-status-msg>
>> >                 </task-result-details>
>> >        </component-task-result-details>
>> > </component-task-result>
>> > </jbi-task-result>
>> > </jbi-task>
>> >
>> > I don't know what this means.
>> > My Spring config looks like this:
>> >
>> >  <sm:container generateRootDir="true">
>> >    <sm:deployments>
>> >      <sm:installSharedLibrary groupId="org.apache.servicemix"
>> > artifactId="servicemix-shared"
>> >        version="3.3-SNAPSHOT"/>
>> >       <sm:installComponent groupId="org.apache.servicemix"
>> > artifactId="servicemix-cxf-bc"
>> >        version="3.3-SNAPSHOT"/>
>> >      <sm:installComponent groupId="org.apache.servicemix"
>> > artifactId="servicemix-cxf-se"
>> >        version="3.3-SNAPSHOT"/>
>> >      <sm:installComponent groupId="org.apache.servicemix"
>> > artifactId="servicemix-saxon"
>> >         version="3.3-SNAPSHOT"/>
>> >      <sm:deployServiceAssembly groupId="my.components.order.service"
>> >        artifactId="orderservice-cxf-sa" version="1.0-SNAPSHOT"/>
>> >    </sm:deployments>
>> >  </sm:container>
>> >
>> > Inside my orderservice-cxf-sa I use cxf-bc, se and saxon.
>> > Once again help needed, please.
>> >
>> >
>> > --
>> > View this message in context:
>> >
>> http://www.nabble.com/Integration-Test%3A-UnknownHostException-tp16278375s12049p16375022.html
>> > Sent from the ServiceMix - User mailing list archive at Nabble.com.
>> >
>> >
>>
>>
>> --
>> Cheers,
>> Guillaume Nodet
>> ------------------------
>> Blog: http://gnodet.blogspot.com/
>>
> 
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> 
> 

-- 
View this message in context: http://www.nabble.com/Integration-Test%3A-UnknownHostException-tp16278375s12049p16394700.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Integration Test: UnknownHostException

Posted by Guillaume Nodet <gn...@gmail.com>.
This is fixed now.  If you build a new snapshot of 3.3 locally, it should
now work.
A wordaround is to deploy  dummy lightweight component so that you can still
deploy the SU.

On Sun, Mar 30, 2008 at 7:27 PM, Guillaume Nodet <gn...@gmail.com> wrote:

> This may be related to a change I did last week (you use 3.3-SNAPSHOT,
> right ?)
> Usually, SU contains endpoint definitions, but in the lwcontainer case,
> this is not always true, so i need to make sure this use case still works.
> I'll try to fix that tomorrow.
>
>
> On Sat, Mar 29, 2008 at 10:44 PM, Cybexion <cy...@email.de> wrote:
>
> >
> > My maven var now looks like this MAVEN_OPTS=-Xmx768m
> > I put the path to the local repository into servicemix.xml:
> >  <localRepository>D:/java/.m2/repository</localRepository>
> > Interesting, the bug has disapeared :-)
> > Looks like maven treats the settings in the variable different to the
> > one in
> > settings.xml
> > But ... you might guess it ... still an issue.
> > The next error message is this: No endpoints found
> >
> > 2008-03-29 15:08:40,250 [main           ] ERROR DeploymentService
> > - Error deploying service assembly
> > java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
> > <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
> > version="1.0">
> > <jbi-task-result>
> > <frmwk-task-result>
> > <frmwk-task-result-details>
> > <task-result-details>
> > <task-id>deploy</task-id>
> > <task-result>FAILED</task-result>
> > <message-type>ERROR</message-type>
> > </task-result-details>
> > </frmwk-task-result-details>
> > </frmwk-task-result>
> > <component-task-result
> > xmlns="http://java.sun.com/xml/ns/jbi/management-message">
> >         <component-name>servicemix-cxf-bc</component-name>
> >         <component-task-result-details>
> >                 <task-result-details>
> >                        <task-id>deploy</task-id>
> >                        <task-result>FAILED</task-result>
> >                        <message-type>ERROR</message-type>
> >                        <task-status-msg>
> > <msg-loc-info>
> > <loc-token/>
> > <loc-message>No endpoints found</loc-message>
> > </msg-loc-info>
> > </task-status-msg>
> >                 </task-result-details>
> >        </component-task-result-details>
> > </component-task-result>
> > <component-task-result
> > xmlns="http://java.sun.com/xml/ns/jbi/management-message">
> >         <component-name>servicemix-cxf-se</component-name>
> >         <component-task-result-details>
> >                 <task-result-details>
> >                        <task-id>deploy</task-id>
> >                        <task-result>FAILED</task-result>
> >                        <message-type>ERROR</message-type>
> >                        <task-status-msg>
> > <msg-loc-info>
> > <loc-token/>
> > <loc-message>No endpoints found</loc-message>
> > </msg-loc-info>
> > </task-status-msg>
> >                 </task-result-details>
> >        </component-task-result-details>
> > </component-task-result>
> > <component-task-result
> > xmlns="http://java.sun.com/xml/ns/jbi/management-message">
> >         <component-name>servicemix-saxon</component-name>
> >         <component-task-result-details>
> >                 <task-result-details>
> >                        <task-id>deploy</task-id>
> >                        <task-result>FAILED</task-result>
> >                        <message-type>ERROR</message-type>
> >                        <task-status-msg>
> > <msg-loc-info>
> > <loc-token/>
> > <loc-message>No endpoints found</loc-message>
> > </msg-loc-info>
> > </task-status-msg>
> >                 </task-result-details>
> >        </component-task-result-details>
> > </component-task-result>
> > </jbi-task-result>
> > </jbi-task>
> >
> > I don't know what this means.
> > My Spring config looks like this:
> >
> >  <sm:container generateRootDir="true">
> >    <sm:deployments>
> >      <sm:installSharedLibrary groupId="org.apache.servicemix"
> > artifactId="servicemix-shared"
> >        version="3.3-SNAPSHOT"/>
> >       <sm:installComponent groupId="org.apache.servicemix"
> > artifactId="servicemix-cxf-bc"
> >        version="3.3-SNAPSHOT"/>
> >      <sm:installComponent groupId="org.apache.servicemix"
> > artifactId="servicemix-cxf-se"
> >        version="3.3-SNAPSHOT"/>
> >      <sm:installComponent groupId="org.apache.servicemix"
> > artifactId="servicemix-saxon"
> >         version="3.3-SNAPSHOT"/>
> >      <sm:deployServiceAssembly groupId="my.components.order.service"
> >        artifactId="orderservice-cxf-sa" version="1.0-SNAPSHOT"/>
> >    </sm:deployments>
> >  </sm:container>
> >
> > Inside my orderservice-cxf-sa I use cxf-bc, se and saxon.
> > Once again help needed, please.
> >
> >
> > --
> > View this message in context:
> > http://www.nabble.com/Integration-Test%3A-UnknownHostException-tp16278375s12049p16375022.html
> > Sent from the ServiceMix - User mailing list archive at Nabble.com.
> >
> >
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Re: Integration Test: UnknownHostException

Posted by Guillaume Nodet <gn...@gmail.com>.
This may be related to a change I did last week (you use 3.3-SNAPSHOT, right
?)
Usually, SU contains endpoint definitions, but in the lwcontainer case, this
is not always true, so i need to make sure this use case still works.  I'll
try to fix that tomorrow.

On Sat, Mar 29, 2008 at 10:44 PM, Cybexion <cy...@email.de> wrote:

>
> My maven var now looks like this MAVEN_OPTS=-Xmx768m
> I put the path to the local repository into servicemix.xml:
>  <localRepository>D:/java/.m2/repository</localRepository>
> Interesting, the bug has disapeared :-)
> Looks like maven treats the settings in the variable different to the one
> in
> settings.xml
> But ... you might guess it ... still an issue.
> The next error message is this: No endpoints found
>
> 2008-03-29 15:08:40,250 [main           ] ERROR DeploymentService
> - Error deploying service assembly
> java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
> version="1.0">
> <jbi-task-result>
> <frmwk-task-result>
> <frmwk-task-result-details>
> <task-result-details>
> <task-id>deploy</task-id>
> <task-result>FAILED</task-result>
> <message-type>ERROR</message-type>
> </task-result-details>
> </frmwk-task-result-details>
> </frmwk-task-result>
> <component-task-result
> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>         <component-name>servicemix-cxf-bc</component-name>
>         <component-task-result-details>
>                 <task-result-details>
>                        <task-id>deploy</task-id>
>                        <task-result>FAILED</task-result>
>                        <message-type>ERROR</message-type>
>                        <task-status-msg>
> <msg-loc-info>
> <loc-token/>
> <loc-message>No endpoints found</loc-message>
> </msg-loc-info>
> </task-status-msg>
>                 </task-result-details>
>        </component-task-result-details>
> </component-task-result>
> <component-task-result
> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>         <component-name>servicemix-cxf-se</component-name>
>         <component-task-result-details>
>                 <task-result-details>
>                        <task-id>deploy</task-id>
>                        <task-result>FAILED</task-result>
>                        <message-type>ERROR</message-type>
>                        <task-status-msg>
> <msg-loc-info>
> <loc-token/>
> <loc-message>No endpoints found</loc-message>
> </msg-loc-info>
> </task-status-msg>
>                 </task-result-details>
>        </component-task-result-details>
> </component-task-result>
> <component-task-result
> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>         <component-name>servicemix-saxon</component-name>
>         <component-task-result-details>
>                 <task-result-details>
>                        <task-id>deploy</task-id>
>                        <task-result>FAILED</task-result>
>                        <message-type>ERROR</message-type>
>                        <task-status-msg>
> <msg-loc-info>
> <loc-token/>
> <loc-message>No endpoints found</loc-message>
> </msg-loc-info>
> </task-status-msg>
>                 </task-result-details>
>        </component-task-result-details>
> </component-task-result>
> </jbi-task-result>
> </jbi-task>
>
> I don't know what this means.
> My Spring config looks like this:
>
>  <sm:container generateRootDir="true">
>    <sm:deployments>
>      <sm:installSharedLibrary groupId="org.apache.servicemix"
> artifactId="servicemix-shared"
>        version="3.3-SNAPSHOT"/>
>       <sm:installComponent groupId="org.apache.servicemix"
> artifactId="servicemix-cxf-bc"
>        version="3.3-SNAPSHOT"/>
>      <sm:installComponent groupId="org.apache.servicemix"
> artifactId="servicemix-cxf-se"
>        version="3.3-SNAPSHOT"/>
>      <sm:installComponent groupId="org.apache.servicemix"
> artifactId="servicemix-saxon"
>         version="3.3-SNAPSHOT"/>
>      <sm:deployServiceAssembly groupId="my.components.order.service"
>        artifactId="orderservice-cxf-sa" version="1.0-SNAPSHOT"/>
>    </sm:deployments>
>  </sm:container>
>
> Inside my orderservice-cxf-sa I use cxf-bc, se and saxon.
> Once again help needed, please.
>
>
> --
> View this message in context:
> http://www.nabble.com/Integration-Test%3A-UnknownHostException-tp16278375s12049p16375022.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>


-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Re: Integration Test: UnknownHostException

Posted by Cybexion <cy...@email.de>.
My maven var now looks like this MAVEN_OPTS=-Xmx768m
I put the path to the local repository into servicemix.xml:
 <localRepository>D:/java/.m2/repository</localRepository>
Interesting, the bug has disapeared :-)
Looks like maven treats the settings in the variable different to the one in
settings.xml
But ... you might guess it ... still an issue.
The next error message is this: No endpoints found

2008-03-29 15:08:40,250 [main           ] ERROR DeploymentService             
- Error deploying service assembly
java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
<component-task-result
xmlns="http://java.sun.com/xml/ns/jbi/management-message">
	<component-name>servicemix-cxf-bc</component-name>
	<component-task-result-details>
		<task-result-details>
			<task-id>deploy</task-id>
			<task-result>FAILED</task-result>
			<message-type>ERROR</message-type>
			<task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>No endpoints found</loc-message>
</msg-loc-info>
</task-status-msg>
		</task-result-details>
	</component-task-result-details>
</component-task-result>
<component-task-result
xmlns="http://java.sun.com/xml/ns/jbi/management-message">
	<component-name>servicemix-cxf-se</component-name>
	<component-task-result-details>
		<task-result-details>
			<task-id>deploy</task-id>
			<task-result>FAILED</task-result>
			<message-type>ERROR</message-type>
			<task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>No endpoints found</loc-message>
</msg-loc-info>
</task-status-msg>
		</task-result-details>
	</component-task-result-details>
</component-task-result>
<component-task-result
xmlns="http://java.sun.com/xml/ns/jbi/management-message">
	<component-name>servicemix-saxon</component-name>
	<component-task-result-details>
		<task-result-details>
			<task-id>deploy</task-id>
			<task-result>FAILED</task-result>
			<message-type>ERROR</message-type>
			<task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>No endpoints found</loc-message>
</msg-loc-info>
</task-status-msg>
		</task-result-details>
	</component-task-result-details>
</component-task-result>
</jbi-task-result>
</jbi-task>

I don't know what this means.
My Spring config looks like this:

  <sm:container generateRootDir="true">
    <sm:deployments>
      <sm:installSharedLibrary groupId="org.apache.servicemix"
artifactId="servicemix-shared"
        version="3.3-SNAPSHOT"/>
      <sm:installComponent groupId="org.apache.servicemix"
artifactId="servicemix-cxf-bc"
        version="3.3-SNAPSHOT"/>
      <sm:installComponent groupId="org.apache.servicemix"
artifactId="servicemix-cxf-se"
        version="3.3-SNAPSHOT"/>
      <sm:installComponent groupId="org.apache.servicemix"
artifactId="servicemix-saxon"
        version="3.3-SNAPSHOT"/>
      <sm:deployServiceAssembly groupId="my.components.order.service"
        artifactId="orderservice-cxf-sa" version="1.0-SNAPSHOT"/>
    </sm:deployments>
  </sm:container>

Inside my orderservice-cxf-sa I use cxf-bc, se and saxon.
Once again help needed, please.


-- 
View this message in context: http://www.nabble.com/Integration-Test%3A-UnknownHostException-tp16278375s12049p16375022.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Integration Test: UnknownHostException

Posted by Bruce Snyder <br...@gmail.com>.
On Sat, Mar 29, 2008 at 3:35 AM, Cybexion <cy...@email.de> wrote:
>
>  Hi,
>
>  yes, right, ARGHHH.
>  I took the latest SM trunk and installed it, but in the root pom of my
>  project, I still had the dependency to SM 3.2.1. Means the
>  servicemix-shared-3.2.1 was bundled from my local maven repository into my
>  SA.
>  I looked into the root pom of SM 3.3 trunk and checked all dependency
>  versions I saw that 3.3 now uses cxf 2.1 incubator instead 2.02 which was
>  used in SM 3.2.
>  However, when I use cxf 2.1 in my projects all my wsdl2java goals are not
>  working any more because it complains that it can't find an element which is
>  defnined in an included xsd of the wsdl. Well, it is there, but I don't know
>  what the problem is. So, I switched back to cxf 2.0.2 incubator and
>  erverything is build fine. I guess this is more cxf then SM related.
>  Now to the main point:
>  I'm pretty sure that the latest 3.3 trunk components are used, however, you
>  might guess it, still problems which look pretty simple.
>  This is (a part) of my debug logs, when I start my integration test:
>
>  ...
>  2008-03-29 01:48:36,437 [main           ] DEBUG ManagementContext
>
> - Registering system service:
>  org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=AdminCommandsService
>  2008-03-29 01:48:36,437 [main           ] INFO  InstallSharedLibrary
>  - Deploying shared library:
>  file:///d:\java\.m2\repository/org/apache/servicemix/servicemix-shared/3.3-SNAPSHOT/servicemix-shared-3.3-SNAPSHOT-installer.zip
>  2008-03-29 01:48:36,437 [main           ] ERROR InstallationService
>  - Deployment failed
>  javax.jbi.management.DeploymentException: java.net.URISyntaxException:
>  Illegal character in path at index 10:
>  file:///d:\java\.m2\repository/org/apache/servicemix/servicemix-shared/3.3-SNAPSHOT/servicemix-shared-3.3-SNAPSHOT-installer.zip
>         at
>  org.apache.servicemix.jbi.framework.AutoDeploymentService.unpackLocation(AutoDeploymentService.java:606)
>
>         at
>  org.apache.servicemix.jbi.framework.InstallationService.installSharedLibrary(InstallationService.java:213)
>         at
>  org.apache.servicemix.jbi.framework.AdminCommandsService.installSharedLibrary(AdminCommandsService.java:104)
>         at
>  org.apache.servicemix.jbi.container.InstallSharedLibrary.doDeploy(InstallSharedLibrary.java:37)
>         at
>  org.apache.servicemix.jbi.container.DeploySupport.deploy(DeploySupport.java:58)
>         at
>  org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:111)
>  ...
>
>  For me it looks like there is a problem in the URI, because at position 10
>  there is a backslash instead of a slash.
>  So, where does it come from ... I have my MAVEN_OPTS env var, but here I use
>  slashes, no backslashes:
>
> MAVEN_OPTS=-Duser.home=/d:/java -Xmx768m
>  Maybe I should change the SM code to replace backslashes with slashes in the
>  method?
>  Anyone having an idea?

This looks to be the way that the path to the local Maven repo
(file:///d:\java\.m2\repository) is being interpreted and passed along
by Maven. Try defining the localRepository element in the settings.xml
file to point to your local Maven repo.More info available here:

http://maven.apache.org/settings.html#Simple_Values

Make sure to define this in a Windows/DOS manner using backslashes and
not forward slashes.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/

Blog: http://bruceblog.org/

Re: Integration Test: UnknownHostException

Posted by Cybexion <cy...@email.de>.
Hi,

yes, right, ARGHHH.
I took the latest SM trunk and installed it, but in the root pom of my
project, I still had the dependency to SM 3.2.1. Means the
servicemix-shared-3.2.1 was bundled from my local maven repository into my
SA. 
I looked into the root pom of SM 3.3 trunk and checked all dependency
versions I saw that 3.3 now uses cxf 2.1 incubator instead 2.02 which was
used in SM 3.2. 
However, when I use cxf 2.1 in my projects all my wsdl2java goals are not
working any more because it complains that it can't find an element which is
defnined in an included xsd of the wsdl. Well, it is there, but I don't know
what the problem is. So, I switched back to cxf 2.0.2 incubator and
erverything is build fine. I guess this is more cxf then SM related.
Now to the main point:
I'm pretty sure that the latest 3.3 trunk components are used, however, you
might guess it, still problems which look pretty simple.
This is (a part) of my debug logs, when I start my integration test:

...
2008-03-29 01:48:36,437 [main           ] DEBUG ManagementContext             
- Registering system service:
org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=AdminCommandsService
2008-03-29 01:48:36,437 [main           ] INFO  InstallSharedLibrary          
- Deploying shared library:
file:///d:\java\.m2\repository/org/apache/servicemix/servicemix-shared/3.3-SNAPSHOT/servicemix-shared-3.3-SNAPSHOT-installer.zip
2008-03-29 01:48:36,437 [main           ] ERROR InstallationService           
- Deployment failed
javax.jbi.management.DeploymentException: java.net.URISyntaxException:
Illegal character in path at index 10:
file:///d:\java\.m2\repository/org/apache/servicemix/servicemix-shared/3.3-SNAPSHOT/servicemix-shared-3.3-SNAPSHOT-installer.zip
	at
org.apache.servicemix.jbi.framework.AutoDeploymentService.unpackLocation(AutoDeploymentService.java:606)
	at
org.apache.servicemix.jbi.framework.InstallationService.installSharedLibrary(InstallationService.java:213)
	at
org.apache.servicemix.jbi.framework.AdminCommandsService.installSharedLibrary(AdminCommandsService.java:104)
	at
org.apache.servicemix.jbi.container.InstallSharedLibrary.doDeploy(InstallSharedLibrary.java:37)
	at
org.apache.servicemix.jbi.container.DeploySupport.deploy(DeploySupport.java:58)
	at
org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:111)
...
	
For me it looks like there is a problem in the URI, because at position 10
there is a backslash instead of a slash.
So, where does it come from ... I have my MAVEN_OPTS env var, but here I use
slashes, no backslashes: 
MAVEN_OPTS=-Duser.home=/d:/java -Xmx768m
Maybe I should change the SM code to replace backslashes with slashes in the
method?
Anyone having an idea?



-- 
View this message in context: http://www.nabble.com/Integration-Test%3A-UnknownHostException-tp16278375s12049p16368303.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Integration Test: UnknownHostException

Posted by Bruce Snyder <br...@gmail.com>.
On Thu, Mar 27, 2008 at 1:07 PM, Cybexion <cy...@email.de> wrote:
>
>  I just did a clean and then tried again.
>  Same error.
>  However, when I look into the log file, it says:
>  ...
>  2008-03-27 20:01:32,640 [main           ] INFO  JBIContainer
>  - ServiceMix 3.2.1 JBI Container (ServiceMix) is starting
>  ...
>  (is this hardcoded?)

The version is generated by the build and placed in the manifests that
are bundled in the ServiceMix JARs. This tells me that you're
building the source code for 3.2.1 and not the trunk. The manifests
that are generated in the trunk currently list the version as
3.3-SNAPSHOT.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/

Blog: http://bruceblog.org/

Re: Integration Test: UnknownHostException

Posted by Cybexion <cy...@email.de>.
I just did a clean and then tried again.
Same error.
However, when I look into the log file, it says:
...
2008-03-27 20:01:32,640 [main           ] INFO  JBIContainer                  
- ServiceMix 3.2.1 JBI Container (ServiceMix) is starting
...
(is this hardcoded?)


But a few lines later it says:
008-03-27 20:01:37,859 [main           ] INFO  InstallSharedLibrary          
- Deploying component:
file:///d:/java/.m2/repository/org/apache/servicemix/servicemix-cxf-bc/3.3-SNAPSHOT/servicemix-cxf-bc-3.3-SNAPSHOT-installer.zip
2008-03-27 20:01:42,187 [main           ] DEBUG AutoDeploymentService         
- Unpacked archive
file:///d:/java/.m2/repository/org/apache/servicemix/servicemix-cxf-bc/3.3-SNAPSHOT/servicemix-cxf-bc-3.3-SNAPSHOT-installer.zip
to
D:\java\Workspaces\eclipse\soa\adfusion\components\order\service\orderservice-cxf-sa-itest\target\rootDirs\rootDir1\tmp\arc38199.0.tmp
2

Which means it takes the components from my local maven repo.





Freeman Fang wrote:
> 
> Hi,
> 
> Did you use "mvn clean" before you build the trunk?  If not, just clean 
> build the kit and try again. Ensure that you start servicemix from the 
> new built kit.
> 
> Regards
> 
> Freeman
> 
> Cybexion wrote:
>> Not sure what you mean with a test sa.
>> I can send you the SA I'm using:
>> orderservice-cxf-sa
>> But not here on the mailinglist.
>> The file has 2.4 MB
>> You want me to send it to gmail?
>>
>>
>> bsnyder wrote:
>>   
>>> On Wed, Mar 26, 2008 at 3:17 PM,  <cy...@email.de> wrote:
>>>     
>>>>
>>>>  yes, correct.
>>>>       
>>> Can you provide a test SA that I can deploy a fresh build from the
>>> trunk to see if I can reproduce the problem?
>>>
>>> Bruce
>>> -- 
>>> perl -e 'print
>>> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
>>> );'
>>>
>>> Apache ActiveMQ - http://activemq.org/
>>> Apache Camel - http://activemq.org/camel/
>>> Apache ServiceMix - http://servicemix.org/
>>> Apache Geronimo - http://geronimo.apache.org/
>>>
>>> Blog: http://bruceblog.org/
>>>
>>>
>>>     
>>
>>   
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Integration-Test%3A-UnknownHostException-tp16278375s12049p16331842.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Integration Test: UnknownHostException

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

Did you use "mvn clean" before you build the trunk?  If not, just clean 
build the kit and try again. Ensure that you start servicemix from the 
new built kit.

Regards

Freeman

Cybexion wrote:
> Not sure what you mean with a test sa.
> I can send you the SA I'm using:
> orderservice-cxf-sa
> But not here on the mailinglist.
> The file has 2.4 MB
> You want me to send it to gmail?
>
>
> bsnyder wrote:
>   
>> On Wed, Mar 26, 2008 at 3:17 PM,  <cy...@email.de> wrote:
>>     
>>>
>>>  yes, correct.
>>>       
>> Can you provide a test SA that I can deploy a fresh build from the
>> trunk to see if I can reproduce the problem?
>>
>> Bruce
>> -- 
>> perl -e 'print
>> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
>> );'
>>
>> Apache ActiveMQ - http://activemq.org/
>> Apache Camel - http://activemq.org/camel/
>> Apache ServiceMix - http://servicemix.org/
>> Apache Geronimo - http://geronimo.apache.org/
>>
>> Blog: http://bruceblog.org/
>>
>>
>>     
>
>   


Re: Integration Test: UnknownHostException

Posted by Guillaume Nodet <gn...@gmail.com>.
Maybe you could raise a JIRA issue and attach it there ?

On Thu, Mar 27, 2008 at 12:51 PM, Cybexion <cy...@email.de> wrote:

>
> Not sure what you mean with a test sa.
> I can send you the SA I'm using:
> orderservice-cxf-sa
> But not here on the mailinglist.
> The file has 2.4 MB
> You want me to send it to gmail?
>
>
> bsnyder wrote:
> >
> > On Wed, Mar 26, 2008 at 3:17 PM,  <cy...@email.de> wrote:
> >>
> >>
> >>
> >>  yes, correct.
> >
> > Can you provide a test SA that I can deploy a fresh build from the
> > trunk to see if I can reproduce the problem?
> >
> > Bruce
> > --
> > perl -e 'print
> > unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> > );'
> >
> > Apache ActiveMQ - http://activemq.org/
> > Apache Camel - http://activemq.org/camel/
> > Apache ServiceMix - http://servicemix.org/
> > Apache Geronimo - http://geronimo.apache.org/
> >
> > Blog: http://bruceblog.org/
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Integration-Test%3A-UnknownHostException-tp16278375s12049p16324503.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>


-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Re: Integration Test: UnknownHostException

Posted by Cybexion <cy...@email.de>.
Not sure what you mean with a test sa.
I can send you the SA I'm using:
orderservice-cxf-sa
But not here on the mailinglist.
The file has 2.4 MB
You want me to send it to gmail?


bsnyder wrote:
> 
> On Wed, Mar 26, 2008 at 3:17 PM,  <cy...@email.de> wrote:
>>
>>
>>
>>  yes, correct.
> 
> Can you provide a test SA that I can deploy a fresh build from the
> trunk to see if I can reproduce the problem?
> 
> Bruce
> -- 
> perl -e 'print
> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
> 
> Apache ActiveMQ - http://activemq.org/
> Apache Camel - http://activemq.org/camel/
> Apache ServiceMix - http://servicemix.org/
> Apache Geronimo - http://geronimo.apache.org/
> 
> Blog: http://bruceblog.org/
> 
> 

-- 
View this message in context: http://www.nabble.com/Integration-Test%3A-UnknownHostException-tp16278375s12049p16324503.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.