You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Gordon Dickens <gd...@anexinet.com> on 2007/07/10 15:42:00 UTC
BeanCreationException on Server Startup
Hello,
I pulled the latest code for ServiceMix and attempted to build with
Maven using the Step1/Step2 approach as per
http://incubator.apache.org/servicemix/building.html. Step 1 completes
successfully, however Step2 fails with the following message:
[INFO] Executing XFire WsGen task with url:
file:/C:/code/java/servicemix/samples/wsdl-first/wsdl-first-jsr181-su/src/main/resources/person.wsd
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] command execution failed
Embedded error: java.lang.ClassNotFoundException: step2
[INFO]
------------------------------------------------------------------------
Subsequently, I executed the build using the standard:
mvn -Dmaven.test.skip=true install
The build completes successfully but when I try to start the server with
no configuration changes, I get the following:
Starting Apache ServiceMix ESB: 3.2-incubating-SNAPSHOT
Loading Apache ServiceMix from servicemix.xml on the CLASSPATH
Caught: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name
'org.apache.servicemix.jbi.jmx.ConnectorServerFactoryBean' defined
in class path resource [jmx.xml]: Invocation of init method failed;
nested exception is javax.management.MalformedObjectNameException:
Invalid ObjectName value type [javax.xml.namespace.QName]: only
ObjectName and String supported.
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name
'org.apache.servicemix.jbi.jmx.ConnectorServerFactoryBean' defined
in class path resource [jmx.xml]: Invocation of init method failed;
nested exception is javax.management.MalformedObjectNameException:
Invalid ObjectName value type [javax.xml.namespace.QName]: only
ObjectName and String supported.
Caused by: javax.management.MalformedObjectNameException: Invalid
ObjectName value type [javax.xml.namespace.QName]: only ObjectName
and String supported.
at
org.springframework.jmx.support.ObjectNameManager.getInstance(ObjectNameManager.java:58)
at
org.springframework.jmx.support.ConnectorServerFactoryBean.setObjectName(ConnectorServerFactoryBean.java:104)
at
org.apache.servicemix.jbi.jmx.ConnectorServerFactoryBean.afterPropertiesSet(ConnectorServerFactoryBean.java:186)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:284)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:161)
at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:51)
at org.apache.servicemix.Main.main(Main.java:51)
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:585)
at
org.codehaus.classworlds.Launcher.launchStandard(Launcher.java:410)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:344)
at org.codehaus.classworlds.Launcher.main(Launcher.java:461)
Is anyone else experiencing this? Any suggestions?
Regards,
Gordon Dickens
Re: BeanCreationException on Server Startup
Posted by Gert Vanthienen <ge...@skynet.be>.
Gordon,
The exception below has already been reported, I think
(https://issues.apache.org/activemq/browse/SM-996). I'll try to look
into it tomorrow...
Gert
Gordon Dickens wrote:
>
> Hello,
>
> I pulled the latest code for ServiceMix and attempted to build with
> Maven using the Step1/Step2 approach as per
> http://incubator.apache.org/servicemix/building.html. Step 1
> completes successfully, however Step2 fails with the following message:
>
> [INFO] Executing XFire WsGen task with url:
>
> file:/C:/code/java/servicemix/samples/wsdl-first/wsdl-first-jsr181-su/src/main/resources/person.wsd
>
> [INFO]
>
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
>
> ------------------------------------------------------------------------
> [INFO] command execution failed
>
> Embedded error: java.lang.ClassNotFoundException: step2
> [INFO]
>
> ------------------------------------------------------------------------
>
>
>
> Subsequently, I executed the build using the standard: mvn
> -Dmaven.test.skip=true install
>
> The build completes successfully but when I try to start the server
> with no configuration changes, I get the following:
>
> Starting Apache ServiceMix ESB: 3.2-incubating-SNAPSHOT
>
> Loading Apache ServiceMix from servicemix.xml on the CLASSPATH
> Caught: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name
> 'org.apache.servicemix.jbi.jmx.ConnectorServerFactoryBean' defined
> in class path resource [jmx.xml]: Invocation of init method failed;
> nested exception is javax.management.MalformedObjectNameException:
> Invalid ObjectName value type [javax.xml.namespace.QName]: only
> ObjectName and String supported.
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name
> 'org.apache.servicemix.jbi.jmx.ConnectorServerFactoryBean' defined
> in class path resource [jmx.xml]: Invocation of init method failed;
> nested exception is javax.management.MalformedObjectNameException:
> Invalid ObjectName value type [javax.xml.namespace.QName]: only
> ObjectName and String supported.
> Caused by: javax.management.MalformedObjectNameException: Invalid
> ObjectName value type [javax.xml.namespace.QName]: only ObjectName
> and String supported.
> at
>
> org.springframework.jmx.support.ObjectNameManager.getInstance(ObjectNameManager.java:58)
>
> at
>
> org.springframework.jmx.support.ConnectorServerFactoryBean.setObjectName(ConnectorServerFactoryBean.java:104)
>
> at
>
> org.apache.servicemix.jbi.jmx.ConnectorServerFactoryBean.afterPropertiesSet(ConnectorServerFactoryBean.java:186)
>
> at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201)
>
> at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
>
> at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
>
> at
>
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
>
> at
>
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
>
> at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
>
> at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
>
> at
>
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:284)
>
> at
>
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
>
> at
>
> org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:161)
>
> at
>
> org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:51)
>
> at org.apache.servicemix.Main.main(Main.java:51)
> 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:585)
> at
> org.codehaus.classworlds.Launcher.launchStandard(Launcher.java:410)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:344)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:461)
>
>
> Is anyone else experiencing this? Any suggestions?
>
> Regards,
> Gordon Dickens
>