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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] 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.
