JBoss EAP 6.1.0 OSGi unable to deploy rest bundle with CXF
anoopnair Jun 5, 2014 8:16 AMHi All,
I am creating a small application which has REST services and trying to deploy on JBoss EAP 6.1.0 which as I understand is based on JBoss AS 7.2. Below are the steps followed:
- I have installed the CXF and all required jars via the standalone-osgi.xml file (based on the features cxf-core and cxf-jaxrs from the cxf 2.7.5 features.xml that is used in Karaf).
- I then installed a small application (very basic !!) to verify whether the REST services are working.
However, on accessing the URL i get a 404 error. I am not even able to access the CXF servlet page that lists all available rest services.
Below are the URLs i tried:
http://localhost:9990/cxf/restbasic/test
http://localhost:8080/cxf/restbasic/test.
On starting the app bundle, i get the below logs which state that the service is deployed.
17:15:48,276 INFO [org.jboss.as.repository] (pool-4-thread-1) JBAS014900: Content added at location C:\jboss-eap-6.1\standalone\data\content\76\6565db6f6c623fd614e3c4e1de4d2d99367b95\content
17:15:48,286 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876: Starting deployment of "inputstream:rest.basic_1.0.0.201406021551.jar" (runtime-name: "inputstream:rest.basic_1.0.0.201406021551.jar")
17:15:48,337 INFO [org.jboss.osgi.framework] (MSC service thread 1-8) JBOSGI011001: Bundle installed: rest.basic:1.0.0.201406021551
17:15:48,346 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015970: Defer FIRST_MODULE_USE for inputstream:rest.basic_1.0.0.201406021551.jar making it NEVER
17:15:48,402 INFO [org.jboss.as.server] (pool-4-thread-1) JBAS018559: Deployed "inputstream:rest.basic_1.0.0.201406021551.jar" (runtime-name : "inputstream:rest.basic_1.0.0.201406021551.jar")
17:15:48,408 INFO [org.jboss.as.osgi] (Background Install C:\Users\anair\AppData\Local\Temp\install1401421674524291785.tmp) JBAS011916: Activate deferred module phase for: rest.basic:1.0.0.201406021551
17:15:48,454 INFO [org.jboss.osgi.framework] (MSC service thread 1-6) JBOSGI011002: Bundle started: rest.basic:1.0.0.201406021551
17:15:48,674 INFO [org.apache.cxf.management.jmx.InstrumentationManagerImpl] (Blueprint Extender: 2) registering MBean org.apache.cxf:bus.id=bus1,type=Bus,instance.id=1113817662: org.apache.cxf.bus.ManagedBus@12fbd67f
17:15:48,692 INFO [org.apache.cxf.management.jmx.InstrumentationManagerImpl] (Blueprint Extender: 2) registering MBean org.apache.cxf:bus.id=bus1,type=Bus,instance.id=1113817662: javax.management.modelmbean.RequiredModelMBean@7658920d
17:15:48,694 INFO [org.apache.cxf.management.jmx.InstrumentationManagerImpl] (Blueprint Extender: 2) registered org.apache.cxf:bus.id=bus1,type=Bus,instance.id=1113817662
17:15:48,697 INFO [org.apache.cxf.management.jmx.InstrumentationManagerImpl] (Blueprint Extender: 2) registering MBean org.apache.cxf:bus.id=bus1,WorkQueueManager=Bus.WorkQueueManager,type=WorkQueueManager,instance.id=1454344825: org.apache.cxf.bus.managers.WorkQueueManagerImplMBeanWrapper@1eac3a65
17:15:48,699 INFO [org.apache.cxf.management.jmx.InstrumentationManagerImpl] (Blueprint Extender: 2) registering MBean org.apache.cxf:bus.id=bus1,WorkQueueManager=Bus.WorkQueueManager,type=WorkQueueManager,instance.id=1454344825: javax.management.modelmbean.RequiredModelMBean@9d4b873
17:15:48,852 INFO [org.apache.cxf.endpoint.ServerImpl] (Blueprint Extender: 2) Setting the server's publish address to be /restbasic
17:15:48,854 INFO [org.apache.cxf.management.jmx.InstrumentationManagerImpl] (Blueprint Extender: 2) registering MBean org.apache.cxf:bus.id=bus1,type=Bus.Service.Endpoint,service="{http://basic.rest/}RestService",port="RestService",instance.id=19756470: org.apache.cxf.endpoint.ManagedEndpoint@4f8b0054
17:15:48,860 INFO [org.apache.cxf.management.jmx.InstrumentationManagerImpl] (Blueprint Extender: 2) registering MBean org.apache.cxf:bus.id=bus1,type=Bus.Service.Endpoint,service="{http://basic.rest/}RestService",port="RestService",instance.id=19756470: javax.management.modelmbean.RequiredModelMBean@24f99057
I am not able to figure out if the URL that i am accessing the wrong one or whether cxf is installed properly. Attaching the standalone-osgi.xml and my app bundle here for reference.
Please help me wiht the right way to go about achieving this.
Thank you.
-
standalone-osgi.xml 19.6 KB