[JBoss Web Services CXF] - Using CXF without JBOSS Web Services
by jayperkins
Is it possible to use CXF without using JBoss Web Services?
I deploy a war with all the necessary cxf jar files. I have a spring config file that I reference in the web.xml which configures my cxf endpoints.
When I try to start my web app, I get the following error:
Caused by: java.lang.NoClassDefFoundError: org/apache/ws/commons/schema/utils/NamespacePrefixList
at org.apache.cxf.jaxws.JaxWsServerFactoryBean.(JaxWsServerFactoryBean.java:66)
at org.apache.cxf.jaxws.EndpointImpl.(EndpointImpl.java:127)
at org.apache.cxf.jaxws.EndpointImpl.(EndpointImpl.java:131)
at org.apache.cxf.jaxws.EndpointImpl.(EndpointImpl.java:135)
at org.apache.cxf.jaxws.spring.EndpointDefinitionParser$SpringEndpointImpl.(EndpointDefinitionParser.java:164)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
I don't include a jar file that contains the NamespacePrefixList class and the version of cxf that I am using (CXF 2.1.3) does not reference this class anywhere either so I'm not sure why it is looking for it. This works fine on other appservers so I don't believe that I really need the NamespacePrefixList class.
Any ideas?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4252680#4252680
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4252680
15 years, 2 months
[JBoss Web Services CXF] - Re: JBossWS 3.2.0.GA released
by c4milo
Thanks for your quick answer Alessio.
I did grep -r jbossws-native-* * on my jboss home and I got:
Binary file server/all/deployers/jbossws.deployer/jbossws-native-core.jar matches
I removed server/all/deployers/jbossws.deployer/jbossws-native-core.jar but still no sucess
Notes about my environment:
- My current jboss has jbossws-cxf-3.1.2
- Jars after deploy of jbossws-cxf-3.2.0
asm.jar
| cxf-anttasks.jar
| cxf-api.jar
| cxf-common-schemas.jar
| cxf-common-utilities.jar
| cxf-rt-bindings-coloc.jar
| cxf-rt-bindings-corba.jar
| cxf-rt-bindings-http.jar
| cxf-rt-bindings-object.jar
| cxf-rt-bindings-soap.jar
| cxf-rt-bindings-xml.jar
| cxf-rt-core.jar
| cxf-rt-databinding-aegis.jar
| cxf-rt-databinding-jaxb.jar
| cxf-rt-frontend-jaxrs.jar
| cxf-rt-frontend-jaxws.jar
| cxf-rt-frontend-simple.jar
| cxf-rt-javascript.jar
| cxf-rt-management.jar
| cxf-rt-transports-http.jar
| cxf-rt-transports-http-jetty.jar
| cxf-rt-transports-jms.jar
| cxf-rt-transports-local.jar
| cxf-rt-ws-addr.jar
| cxf-rt-ws-policy.jar
| cxf-rt-ws-rm.jar
| cxf-rt-ws-security.jar
| cxf-tools-common.jar
| cxf-tools-java2ws.jar
| cxf-tools-validator.jar
| cxf-tools-wsdlto-core.jar
| cxf-tools-wsdlto-databinding-jaxb.jar
| cxf-tools-wsdlto-frontend-jaxws.jar
| cxf-xjc-bug671.jar
| cxf-xjc-dv.jar
| cxf-xjc-ts.jar
| FastInfoset.jar
| geronimo-javamail_1.4_spec.jar
| geronimo-ws-metadata_2.0_spec.jar
| jaxrpc-api.jar
| jaxws-api.jar
| jbossws-common.jar
| jbossws-cxf-client.jar
| jbossws-cxf-server.jar
| jbossws-framework.jar
| jbossws-jboss510.jar
| META-INF
| neethi.jar
| saaj-api.jar
| saaj-impl.jar
| spring-beans.jar
| spring-context.jar
| spring-core.jar
| wsdl4j.jar
| wss4j.jar
| xml-resolver.jar
| XmlSchema.jar
| xmlsec.jar
|
|
|
|
| Regards,
|
| Camilo Aguilar
|
|
|
|
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4252672#4252672
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4252672
15 years, 2 months
[JBoss Web Services CXF] - Re: JBossWS 3.2.0.GA released
by c4milo
"alessio.soldano(a)jboss.com" wrote : I'm happy to announce the release of JBossWS-CXF 3.2.0 GA.
|
| For a list of the new features, improvements and bug fixes, please refer the release notes available here:
| http://jboss.org/file-access/default/members/jbossws/downloads/ReleaseNot...
|
| The supported target containers for this release are JBoss 5.0.0.GA, JBoss 5.0.1.GA and JBoss 5.1.0.GA.
|
| The binaries, including the samples can be obtained here:
| http://labs.jboss.com/jbossws/downloads/
|
| Installation instructions can be found here:
| http://www.jboss.org/community/wiki/JBossWS
|
| To get started please have a look at the Quick Start and User Guide:
| http://www.jboss.org/community/wiki/JBossWS-QuickStart
| http://www.jboss.org/community/wiki/JBossWS-UserGuide
|
| Many thanks to the team and contributors making this release possible.
Hi, I've installed jbossws cxf 3.2.0 on jboss 5.1.0 GA and when I run jboss I am getting this error:
15:20:38,386 INFO [JMXKernel] Legacy JMX core initialized
15:20:40,281 INFO [ProfileServiceBootstrap] Loading profile: ProfileKey@28722969[domain=default, server=default, name=default]
15:20:41,568 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
15:20:46,986 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/opt/jboss/liferay/jboss-5.1.0.GA/server/default/deployers/jbossws.deployer/ state=PreReal mode=Manual requiredState=Real
org.jboss.deployers.spi.DeploymentException: Error deploying: vfsfile:/opt/jboss/liferay/jboss-5.1.0.GA/server/default/deployers/jbossws.deployer/
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:136)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployerWithInput.deploy(AbstractRealDeployerWithInput.java:125)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployerWithInput.internalDeploy(AbstractRealDeployerWithInput.java:102)
at org.jboss.deployers.spi.deployer.helpers.AbstractComponentDeployer.internalDeploy(AbstractComponentDeployer.java:78)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalArgumentException: Exception loading class for ScopeKey addition.
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.addBeanComponent(BeanMetaDataFactoryVisitor.java:67)
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:126)
... 34 more
Caused by: java.lang.ClassNotFoundException: org.jboss.wsf.container.jboss50.transport.DeploymentAspectHttpServer from BaseClassLoader@670b5064{VFSClassLoaderPolicy@17cb0a16{name=vfsfile:/opt/jboss/liferay/jboss-5.1.0.GA/server/default/deployers/jbossws.deployer/ domain=Cl
can anybody help me please ?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4252402#4252402
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4252402
15 years, 3 months
[JBossWS-CXF] - Standalone CXF Client sending message to jbossESB
by rkapur123
Hi,
I am not sure if I should be posting this question here - so please pardon me if it does not belong here.
I want to send a message from CXF webProject to JbossESB using ServiceInvoker. So for this I am doing the following:
I am using CXF 2.2.3 (standalone) and have a webProject - just simple helloWorld. I receive the request fine in serviceImpl but when I send this request to JbossESB (soa-p.4.3.0) - I am getting the following exception:
I think the problem may be that CXF client is unable to find "jbossesb-properties.xml" file. I have this file in /WEB-INF and I copied it in /WEB-INF/classes as well - still I get the following error:
2009-08-19 20:35:23,573 [http-9090-1] DEBUG org.jboss.soa.esb.services.registry.RegistryFactory - Going to load org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl
| org.jboss.soa.esb.listeners.message.MessageDeliverException: javax.naming.NameNotFoundException: Name InquiryService is not bound in this Context
| at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:474)
| at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:165)
| at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:146)
| at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:188)
| at net.ahm.esb.ESBMessageSender.sendMessage(ESBMessageSender.java:42)
| at net.ahm.esb.ESBClient.sendAsync(ESBClient.java:70)
| at net.ahm.cxf.SendAsync.doWork(SendAsync.java:20)
| at net.ahm.services.PixResponseImpl.sendPixResponse(PixResponseImpl.java:96)
| 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.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:166)
| at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:82)
| at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:55)
| at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:68)
| at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
| at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
| at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
| at java.util.concurrent.FutureTask.run(FutureTask.java:138)
| at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
| at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:98)
| at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
| at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:104)
| at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:99)
| at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:452)
| at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:196)
| at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:220)
| at org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(AbstractCXFServlet.java:153)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
| at org.apache.cxf.transport.servlet.AbstractCXFServlet.service(AbstractCXFServlet.java:211)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
| at java.lang.Thread.run(Thread.java:619)
If I remove the "jbossesb-properties.xml" file from /WEB-INF and /WEB-INF/classes - then I get different exception:
org.jboss.soa.esb.listeners.message.MessageDeliverException: Invocation exception. null
| at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:474)
| at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:165)
| at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:146)
| at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:188)
| at net.ahm.esb.ESBMessageSender.sendMessage(ESBMessageSender.java:42)
| at net.ahm.esb.ESBClient.sendAsync(ESBClient.java:70)
| at net.ahm.cxf.SendAsync.doWork(SendAsync.java:20)
| at net.ahm.services.PixResponseImpl.sendPixResponse(PixResponseImpl.java:96)
| 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.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:166)
| at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:82)
| at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:55)
| at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:68)
| at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
| at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
| at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
| at java.util.concurrent.FutureTask.run(FutureTask.java:138)
| at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
| at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:98)
| at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
| at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:104)
| at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:99)
| at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:452)
| at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:196)
| at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:220)
| at org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(AbstractCXFServlet.java:153)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
| at org.apache.cxf.transport.servlet.AbstractCXFServlet.service(AbstractCXFServlet.java:211)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: org.jboss.soa.esb.services.registry.RegistryException: Invocation exception. null
| at org.jboss.soa.esb.services.registry.RegistryFactory.createRegistry(RegistryFactory.java:121)
| at org.jboss.soa.esb.services.registry.RegistryFactory.getRegistry(RegistryFactory.java:86)
| at org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:220)
| at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:461)
| ... 42 more
| Caused by: java.lang.NullPointerException
| at java.lang.Class.forName0(Native Method)
| at java.lang.Class.forName(Class.java:247)
| at org.jboss.soa.esb.util.ClassUtil.forName(ClassUtil.java:65)
| at org.jboss.soa.esb.services.registry.RegistryFactory.createRegistry(RegistryFactory.java:110)
| ... 45 more
This tells me that its probably reading/finding "jbossesb-properties.xml" this file but then maybe something else is missing? Is my thinking correct?
have anybody else seen this error before?
thanks a lot for help,
rishi
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250639#4250639
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250639
15 years, 3 months