You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Jonathan Anstey (JIRA)" <ji...@apache.org> on 2007/02/09 20:21:05 UTC
[jira] Commented: (CXF-409) samples/streamInterceptor server fails
to start
[ https://issues.apache.org/jira/browse/CXF-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471792 ]
Jonathan Anstey commented on CXF-409:
-------------------------------------
The patch I attached for http://issues.apache.org/jira/browse/CXF-416 also fixes this issue.
> samples/streamInterceptor server fails to start
> -----------------------------------------------
>
> Key: CXF-409
> URL: https://issues.apache.org/jira/browse/CXF-409
> Project: CXF
> Issue Type: Bug
> Components: Configuration
> Affects Versions: 2.0-RC
> Reporter: Fred Dushin
> Assigned To: unrealjiang
>
> Running off revision 504256, I built a kit and installed it in /tmp. The server fails to start due to a ClassNotFound exception, presumably relating to config:
> /tmp/cxf/cxf-2.0-incubator-RC-SNAPSHOT/samples/streamInterceptor> ant server
> Buildfile: build.xml
> maybe.generate.code:
> generate.code:
> [echo] Generating code using wsdl2java...
> [mkdir] Created dir: /private/tmp/cxf/cxf-2.0-incubator-RC-SNAPSHOT/samples/streamInterceptor/build/classes
> [mkdir] Created dir: /private/tmp/cxf/cxf-2.0-incubator-RC-SNAPSHOT/samples/streamInterceptor/build/src
> [java] wsdl2java -verbose -d /private/tmp/cxf/cxf-2.0-incubator-RC-SNAPSHOT/samples/streamInterceptor/build/src /private/tmp/cxf/cxf-2.0-incubator-RC-SNAPSHOT/samples/streamInterceptor/wsdl/hello_world.wsdl
> [java] wsdl2java - 2.0-incubator-RC-SNAPSHOT
> [touch] Creating /private/tmp/cxf/cxf-2.0-incubator-RC-SNAPSHOT/samples/streamInterceptor/build/src/.CODEGEN_DONE
> compile:
> [javac] Compiling 17 source files to /private/tmp/cxf/cxf-2.0-incubator-RC-SNAPSHOT/samples/streamInterceptor/build/classes
> build:
> server:
> [java] Starting Server
> [java] Exception in thread "main" org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.apache.cxf.bus.spring.SpringBusImpl] for bean with name 'cxf' defined in class path resource [server.xml]; nested exception is java.lang.ClassNotFoundException: org.apache.cxf.bus.spring.SpringBusImpl
> [java] Caused by: java.lang.ClassNotFoundException: org.apache.cxf.bus.spring.SpringBusImpl
> [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> [java] at java.security.AccessController.doPrivileged(Native Method)
> [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
> [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> [java] at org.springframework.util.ClassUtils.forName(ClassUtils.java:177)
> [java] at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:313)
> [java] at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:912)
> [java] at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:165)
> [java] at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:687)
> [java] at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:397)
> [java] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:330)
> [java] at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:71)
> [java] at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:59)
> [java] at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:50)
> [java] at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:67)
> [java] at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:56)
> [java] at org.apache.cxf.jaxws.spi.ProviderImpl.createEndpoint(ProviderImpl.java:56)
> [java] at org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:66)
> [java] at javax.xml.ws.Endpoint.publish(Endpoint.java:156)
> [java] at demo.stream.server.Server.<init>(Server.java:31)
> [java] at demo.stream.server.Server.main(Server.java:35)
> [java] Java Result: 1
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.