Skip to main content

Hybrid OSGi/WS application and Glassfish 3.1

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
7 replies [Last post]
mkwapisz
Offline
Joined: 2007-01-31

Hi,
recently I found very interesting examples of deploying WS as OSGi bundles in GF. You can find them here:
http://blogs.sun.com/arungupta/entry/totd_130_invoking_a_osgi
and here
http://weblogs.java.net/blog/ss141213/archive/2010/04/08/jax-ws-web-serv...
Theses examples works well on GF 3.0.1. I can install and run them as OSGi bundles and standard JEE WS applications. The problem is with GF3.1, where these applications installed as OSGi bundles do not work. This is realy strange, because they work well when deployed as JEE WS applications. My system configuration is Windows7 x64, JDK 1.6u24.
Is this a kind of bug or something with project configuration?

Regards
Marcin

And the stacktrace:
INFO: Installed  D:\JavaDev\appservers\glassfish31\glassfish\domains\domain1\autodeploy\bundles\OsgiJsfWebApp.war  INFO: Started bundle:  file:/D:/JavaDev/appservers/glassfish31/glassfish/domains/domain1/autodeploy/bundles/OsgiJsfWebApp.war  INFO: Started bundle:  file:/D:/JavaDev/appservers/glassfish31/glassfish/domains/domain1/autodeploy/bundles/OsgiJsfWebApp.war  INFO: Expanded at  file:/D:/Users/tewi/AppData/Local/Temp/osgiapp2752586488930258943/ INFO:  WS10010: Web service endpoint deployment events listener registered  successfully. INFO: WS00018: Webservice Endpoint deployed  WebBundleWS   listening at address at <a title="http://TEWI-367:8080/usluga/WebBundleWSService" href="../../../../../../external?url=http://TEWI-367:8080/usluga/WebBundleWSService">http://TEWI-367:8080/usluga/WebBundleWSService</a>  INFO: WS10001: Loading WS-TX Services. Please wait. INFO: WS00018:  Webservice Endpoint deployed  ParticipantPortTypeImpl  listening at  address at <a title="http://TEWI-367:8080/__wstx-services/ParticipantPortType" href="../../../../../../external?url=http://TEWI-367:8080/__wstx-services/ParticipantPortType">http://TEWI-367:8080/__wstx-services/ParticipantPortType</a> INFO: WS00018: Webservice Endpoint deployed  CoordinatorPortTypePortImpl  listening at address at <a title="http://TEWI-367:8080/__wstx-services/CoordinatorPortType11" href="../../../../../../external?url=http://TEWI-367:8080/__wstx-services/CoordinatorPortType11">http://TEWI-367:8080/__wstx-services/CoordinatorPortType11</a> INFO: WS00018: Webservice Endpoint deployed  RegistrationRequesterPortTypePortImpl  listening at address at <a title="http://TEWI-367:8080/__wstx-services/RegistrationRequesterPortType11" href="../../../../../../external?url=http://TEWI-367:8080/__wstx-services/RegistrationRequesterPortType11">http://TEWI-367:8080/__wstx-services/RegistrationRequesterPortType11</a> INFO: WS00018: Webservice Endpoint deployed  RegistrationPortTypeRPCPortImpl  listening at address at <a title="http://TEWI-367:8080/__wstx-services/RegistrationPortTypeRPC11" href="../../../../../../external?url=http://TEWI-367:8080/__wstx-services/RegistrationPortTypeRPC11">http://TEWI-367:8080/__wstx-services/RegistrationPortTypeRPC11</a> INFO: WS00018: Webservice Endpoint deployed  RegistrationPortTypeImpl  listening at address at <a title="http://TEWI-367:8080/__wstx-services/RegistrationPortTypeRPC" href="../../../../../../external?url=http://TEWI-367:8080/__wstx-services/RegistrationPortTypeRPC">http://TEWI-367:8080/__wstx-services/RegistrationPortTypeRPC</a> INFO: WS00018: Webservice Endpoint deployed  ParticipantPortTypePortImpl  listening at address at <a title="http://TEWI-367:8080/__wstx-services/ParticipantPortType11" href="../../../../../../external?url=http://TEWI-367:8080/__wstx-services/ParticipantPortType11">http://TEWI-367:8080/__wstx-services/ParticipantPortType11</a> INFO: WS00018: Webservice Endpoint deployed  RegistrationRequesterPortTypeImpl  listening at address at <a title="http://TEWI-367:8080/__wstx-services/RegistrationRequesterPortType" href="../../../../../../external?url=http://TEWI-367:8080/__wstx-services/RegistrationRequesterPortType">http://TEWI-367:8080/__wstx-services/RegistrationRequesterPortType</a> INFO: WS00018: Webservice Endpoint deployed  CoordinatorPortTypeImpl  listening at address at <a title="http://TEWI-367:8080/__wstx-services/CoordinatorPortType" href="../../../../../../external?url=http://TEWI-367:8080/__wstx-services/CoordinatorPortType">http://TEWI-367:8080/__wstx-services/CoordinatorPortType</a>  INFO: total number of classes with faces annotation = 0 INFO: Metro  monitoring rootname successfully set to:  amx:pp=/mon/server-mon[server],type=WSEndpoint,name=/__wstx-services-WSATCoordinator-Participant  INFO: Metro monitoring rootname successfully set to:  amx:pp=/mon/server-mon[server],type=WSEndpoint,name=/__wstx-services-WSAT11Service-CoordinatorPort  INFO: Metro monitoring rootname successfully set to:  amx:pp=/mon/server-mon[server],type=WSEndpoint,name=/__wstx-services-RegistrationService_V11-RegistrationRequesterPort  INFO: Metro monitoring rootname successfully set to:  amx:pp=/mon/server-mon[server],type=WSEndpoint,name=/__wstx-services-RegistrationService_V11-RegistrationPort  INFO: Metro monitoring rootname successfully set to:  amx:pp=/mon/server-mon[server],type=WSEndpoint,name=/__wstx-services-Coordinator-Registration  INFO: Metro monitoring rootname successfully set to:  amx:pp=/mon/server-mon[server],type=WSEndpoint,name=/__wstx-services-WSAT11Service-ParticipantPort  INFO: Metro monitoring rootname successfully set to:  amx:pp=/mon/server-mon[server],type=WSEndpoint,name=/__wstx-services-Coordinator-RegistrationRequester  INFO: Metro monitoring rootname successfully set to:  amx:pp=/mon/server-mon[server],type=WSEndpoint,name=/__wstx-services-WSATCoordinator-Coordinator  INFO: WEB0671: Loading application [wstx-services] at  [/__wstx-services] INFO: WS10002: WS-TX Services successfully started.  INFO: total number of classes with faces annotation = 0 INFO:  Initializing Mojarra 2.1.0 (FCS 2.1.0-b11) for context '/usluga' INFO:  Faces Config uris excluding the ones named as faces-config.xml = []  INFO: Facelet Config uris = [] WARNING: Deployment failed  javax.xml.ws.WebServiceException: class  pl.zsk.osgi.jaxws.HelloWorldResponse do not have a property of the name  return         at  com.sun.xml.ws.server.sei.EndpointResponseMessageBuilder$DocLit.(EndpointResponseMessageBuilder.java:211)          at  com.sun.xml.ws.server.sei.EndpointMethodHandler.createResponseMessageBuilder(EndpointMethodHandler.java:206)          at  com.sun.xml.ws.server.sei.EndpointMethodHandler.(EndpointMethodHandler.java:112)          at  com.sun.xml.ws.server.sei.SEIInvokerTube.(SEIInvokerTube.java:87)          at  com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:223)          at  com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:513)          at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:568)          at  org.glassfish.webservices.WSServletContextListener.registerEndpoint(WSServletContextListener.java:260)          at  org.glassfish.webservices.WSServletContextListener.contextInitialized(WSServletContextListener.java:99)          at  org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4690)          at  com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:534)          at  org.apache.catalina.core.StandardContext.start(StandardContext.java:5305)          at com.sun.enterprise.web.WebModule.start(WebModule.java:500)          at  org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)          at  org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)          at  org.apache.catalina.core.StandardHost.addChild(StandardHost.java:755)          at  com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1980)          at  com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1630)          at  com.sun.enterprise.web.WebApplication.start(WebApplication.java:100)          at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)          at  org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)          at  org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:286)          at  com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)          at  com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)          at  org.glassfish.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:183)          at  org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:118)          at  org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:121)          at  org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)          at  org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:107)          at  org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)          at  org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:151)          at  org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:148)          at  java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)          at java.util.concurrent.FutureTask.run(FutureTask.java:138)          at  java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)          at  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)          at java.lang.Thread.run(Thread.java:662) Caused by:  javax.xml.bind.JAXBException: return is not a valid property on class  pl.zsk.osgi.jaxws.HelloWorldResponse         at  com.sun.xml.bind.v2.runtime.JAXBContextImpl.getElementPropertyAccessor(JAXBContextImpl.java:988)          at  com.sun.xml.ws.server.sei.EndpointResponseMessageBuilder$DocLit.(EndpointResponseMessageBuilder.java:208)          ... 36 more  SEVERE: PWC1306: Startup of context /usluga failed  due to previous errors SEVERE: PWC1305: Exception during cleanup after  start failed org.apache.catalina.LifecycleException: PWC2769: Manager  has not yet been started         at  org.apache.catalina.session.StandardManager.stop(StandardManager.java:872)          at  org.apache.catalina.core.StandardContext.stop(StandardContext.java:5509)          at com.sun.enterprise.web.WebModule.stop(WebModule.java:529)          at  org.apache.catalina.core.StandardContext.start(StandardContext.java:5323)          at com.sun.enterprise.web.WebModule.start(WebModule.java:500)          at  org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)          at  org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)          at  org.apache.catalina.core.StandardHost.addChild(StandardHost.java:755)          at  com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1980)          at  com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1630)          at  com.sun.enterprise.web.WebApplication.start(WebApplication.java:100)          at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)          at  org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)          at  org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:286)          at  com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)          at  com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)          at  org.glassfish.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:183)          at  org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:118)          at  org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:121)          at  org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)          at  org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:107)          at  org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)          at  org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:151)          at  org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:148)          at  java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)          at java.util.concurrent.FutureTask.run(FutureTask.java:138)          at  java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)          at  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)          at java.lang.Thread.run(Thread.java:662)  SEVERE:  ContainerBase.addChild: start:  org.apache.catalina.LifecycleException:  java.lang.RuntimeException: Servlet web service endpoint '' failure          at  org.apache.catalina.core.StandardContext.start(StandardContext.java:5328)          at com.sun.enterprise.web.WebModule.start(WebModule.java:500)          at  org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)          at  org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)          at  org.apache.catalina.core.StandardHost.addChild(StandardHost.java:755)          at  com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1980)          at  com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1630)          at  com.sun.enterprise.web.WebApplication.start(WebApplication.java:100)          at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)          at  org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)          at  org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:286)          at  com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)          at  com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)          at  org.glassfish.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:183)          at  org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:118)          at  org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:121)          at  org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)          at  org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:107)          at  org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)          at  org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:151)          at  org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:148)          at  java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)          at java.util.concurrent.FutureTask.run(FutureTask.java:138)          at  java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)          at  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)          at java.lang.Thread.run(Thread.java:662) Caused by:  java.lang.RuntimeException: Servlet web service endpoint '' failure          at  org.glassfish.webservices.WSServletContextListener.contextInitialized(WSServletContextListener.java:104)          at  org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4690)          at  com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:534)          at  org.apache.catalina.core.StandardContext.start(StandardContext.java:5305)          ... 25 more Caused by: javax.xml.ws.WebServiceException: class  pl.zsk.osgi.jaxws.HelloWorldResponse do not have a property of the name  return         at  com.sun.xml.ws.server.sei.EndpointResponseMessageBuilder$DocLit.(EndpointResponseMessageBuilder.java:211)          at  com.sun.xml.ws.server.sei.EndpointMethodHandler.createResponseMessageBuilder(EndpointMethodHandler.java:206)          at  com.sun.xml.ws.server.sei.EndpointMethodHandler.(EndpointMethodHandler.java:112)          at  com.sun.xml.ws.server.sei.SEIInvokerTube.(SEIInvokerTube.java:87)          at  com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:223)          at  com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:513)          at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:568)          at  org.glassfish.webservices.WSServletContextListener.registerEndpoint(WSServletContextListener.java:260)          at  org.glassfish.webservices.WSServletContextListener.contextInitialized(WSServletContextListener.java:99)          ... 28 more Caused by: javax.xml.bind.JAXBException: return is  not a valid property on class pl.zsk.osgi.jaxws.HelloWorldResponse          at  com.sun.xml.bind.v2.runtime.JAXBContextImpl.getElementPropertyAccessor(JAXBContextImpl.java:988)          at  com.sun.xml.ws.server.sei.EndpointResponseMessageBuilder$DocLit.(EndpointResponseMessageBuilder.java:208)          ... 36 more  WARNING: java.lang.IllegalStateException:  ContainerBase.addChild: start: org.apache.catalina.LifecycleException:  java.lang.RuntimeException: Servlet web service endpoint '' failure  java.lang.IllegalStateException: ContainerBase.addChild: start:  org.apache.catalina.LifecycleException: java.lang.RuntimeException:  Servlet web service endpoint '' failure         at  org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:921)          at  org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)          at  org.apache.catalina.core.StandardHost.addChild(StandardHost.java:755)          at  com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1980)          at  com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1630)          at  com.sun.enterprise.web.WebApplication.start(WebApplication.java:100)          at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)          at  org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)          at  org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:286)          at  com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)          at  com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)          at  org.glassfish.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:183)          at  org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:118)          at  org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:121)          at  org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)          at  org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:107)          at  org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)          at  org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:151)          at  org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:148)          at  java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)          at java.util.concurrent.FutureTask.run(FutureTask.java:138)          at  java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)          at  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)          at java.lang.Thread.run(Thread.java:662)  SEVERE: Exception  while invoking class com.sun.enterprise.web.WebApplication start method  java.lang.Exception: java.lang.IllegalStateException:  ContainerBase.addChild: start: org.apache.catalina.LifecycleException:  java.lang.RuntimeException: Servlet web service endpoint '' failure          at  com.sun.enterprise.web.WebApplication.start(WebApplication.java:130)          at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)          at  org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)          at  org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:286)          at  com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)          at  com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)          at  org.glassfish.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:183)          at  org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:118)          at  org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:121)          at  org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)          at  org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:107)          at  org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)          at  org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:151)          at  org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:148)          at  java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)          at java.util.concurrent.FutureTask.run(FutureTask.java:138)          at  java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)          at  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)          at java.lang.Thread.run(Thread.java:662)  SEVERE: Exception  while loading the app INFO: Deleted  D:\Users\tewi\AppData\Local\Temp\osgiapp2752586488930258943 SEVERE:  Failed while deploying bundle pl.tewi.prototype.OsgiJsfWebApp [320]  INFO: Removed bundle 320 against context path usluga  WARNING: Failed to  deploy bundle pl.tewi.prototype.OsgiJsfWebApp [320]  org.glassfish.osgijavaeebase.DeploymentException: Deployment of  pl.tewi.prototype.OsgiJsfWebApp [320] failed because of following  reason: Failed while deploying bundle pl.tewi.prototype.OsgiJsfWebApp  [320] : java.lang.RuntimeException: Failed to deploy bundle [  pl.tewi.prototype.OsgiJsfWebApp [320] ], root cause: Exception while  loading the app         at  org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:125)          at  org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)          at  org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:107)          at  org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)          at  org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:151)          at  org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:148)          at  java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)          at java.util.concurrent.FutureTask.run(FutureTask.java:138)          at  java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)          at  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)          at java.lang.Thread.run(Thread.java:662) Caused by:  java.lang.RuntimeException: Failed to deploy bundle [  pl.tewi.prototype.OsgiJsfWebApp [320] ], root cause: Exception while  loading the app         at  org.glassfish.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:196)          at  org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:118)          at  org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:121)          ... 10 more Caused by: java.lang.Exception:  java.lang.IllegalStateException: ContainerBase.addChild: start:  org.apache.catalina.LifecycleException: java.lang.RuntimeException:  Servlet web service endpoint '' failure         at  com.sun.enterprise.web.WebApplication.start(WebApplication.java:130)          at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)          at  org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)          at  org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:286)          at  com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)          at  com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)          at  org.glassfish.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:183)          ... 12 more

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
arungupta
Online
Joined: 2003-06-13

Marcin,

I've not tried these bundles but they should work fine.

What errors do you see ?

-Arun

On 4/5/11 2:34 AM, forums@java.net wrote:
> Hi,
> recently I found very interesting examples of deploying WS as OSGi
> bundles in
> GF. You can find them here:
> http://blogs.sun.com/arungupta/entry/totd_130_invoking_a_osgi [1]
> and here
> http://weblogs.java.net/blog/ss141213/archive/2010/04/08/jax-ws-web-serv...
> [2]
> Theses examples works well on GF 3.0.1. I can install and run them as OSGi
> bundles and standard JEE WS applications. The problem is with GF3.1, where
> these applications installed as OSGi bundles do not work. This is realy
> strange, because they work well when deployed as JEE WS applications. My
> system configuration is Windows7 x64, JDK 1.6u24.
>
> Is this a kind of bug or something with project configuration?
>
> Regards
> Marcin
>
> And the stacktrace:
> INFO: Installed
> D:\JavaDev\appservers\glassfish31\glassfish\domains\domain1\autodeploy\bundles\OsgiJsfWebApp.war
>
> INFO: Started bundle:
> file:/D:/JavaDev/appservers/glassfish31/glassfish/domains/domain1/autodeploy/bundles/OsgiJsfWebApp.war
>
> INFO: Started bundle:
> file:/D:/JavaDev/appservers/glassfish31/glassfish/domains/domain1/autodeploy/bundles/OsgiJsfWebApp.war
>
> INFO: Expanded at
> file:/D:/Users/tewi/AppData/Local/Temp/osgiapp2752586488930258943/ INFO:
> WS10010: Web service endpoint deployment events listener registered
> successfully. INFO: WS00018: Webservice Endpoint deployed WebBundleWS
> listening at address at http://TEWI-367:8080/usluga/WebBundleWSService [3]
> INFO: WS10001: Loading WS-TX Services. Please wait. INFO: WS00018:
> Webservice
> Endpoint deployed ParticipantPortTypeImpl listening at address at
> http://TEWI-367:8080/__wstx-services/ParticipantPortType [4] INFO: WS00018:
> Webservice Endpoint deployed CoordinatorPortTypePortImpl listening at
> address
> at http://TEWI-367:8080/__wstx-services/CoordinatorPortType11 [5] INFO:
> WS00018: Webservice Endpoint deployed RegistrationRequesterPortTypePortImpl
> listening at address at
> http://TEWI-367:8080/__wstx-services/RegistrationRequesterPortType11 [6]
> INFO: WS00018: Webservice Endpoint deployed RegistrationPortTypeRPCPortImpl
> listening at address at
> http://TEWI-367:8080/__wstx-services/RegistrationPortTypeRPC11 [7] INFO:
> WS00018: Webservice Endpoint deployed RegistrationPortTypeImpl listening at
> address at http://TEWI-367:8080/__wstx-services/RegistrationPortTypeRPC [8]
> INFO: WS00018: Webservice Endpoint deployed ParticipantPortTypePortImpl
> listening at address at
> http://TEWI-367:8080/__wstx-services/ParticipantPortType11 [9] INFO:
> WS00018:
> Webservice Endpoint deployed RegistrationRequesterPortTypeImpl listening at
> address at
> http://TEWI-367:8080/__wstx-services/RegistrationRequesterPortType
> [10] INFO: WS00018: Webservice Endpoint deployed CoordinatorPortTypeImpl
> listening at address at
> http://TEWI-367:8080/__wstx-services/CoordinatorPortType [11] INFO: total
> number of classes with faces annotation = 0 INFO: Metro monitoring rootname
> successfully set to:
> amx:pp=/mon/server-mon[server],type=WSEndpoint,name=/__wstx-services-WSATCoordinator-Participant
>
> INFO: Metro monitoring rootname successfully set to:
> amx:pp=/mon/server-mon[server],type=WSEndpoint,name=/__wstx-services-WSAT11Service-CoordinatorPort
>
> INFO: Metro monitoring rootname successfully set to:
> amx:pp=/mon/server-mon[server],type=WSEndpoint,name=/__wstx-services-RegistrationService_V11-RegistrationRequesterPort
>
> INFO: Metro monitoring rootname successfully set to:
> amx:pp=/mon/server-mon[server],type=WSEndpoint,name=/__wstx-services-RegistrationService_V11-RegistrationPort
>
> INFO: Metro monitoring rootname successfully set to:
> amx:pp=/mon/server-mon[server],type=WSEndpoint,name=/__wstx-services-Coordinator-Registration
>
> INFO: Metro monitoring rootname successfully set to:
> amx:pp=/mon/server-mon[server],type=WSEndpoint,name=/__wstx-services-WSAT11Service-ParticipantPort
>
> INFO: Metro monitoring rootname successfully set to:
> amx:pp=/mon/server-mon[server],type=WSEndpoint,name=/__wstx-services-Coordinator-RegistrationRequester
>
> INFO: Metro monitoring rootname successfully set to:
> amx:pp=/mon/server-mon[server],type=WSEndpoint,name=/__wstx-services-WSATCoordinator-Coordinator
>
> INFO: WEB0671: Loading application [wstx-services] at [/__wstx-services]
> INFO: WS10002: WS-TX Services successfully started. INFO: total number of
> classes with faces annotation = 0 INFO: Initializing Mojarra 2.1.0 (FCS
> 2.1.0-b11) for context '/usluga' INFO: Faces Config uris excluding the ones
> named as faces-config.xml = [] INFO: Facelet Config uris = [] WARNING:
> Deployment failed javax.xml.ws.WebServiceException: class
> pl.zsk.osgi.jaxws.HelloWorldResponse do not have a property of the name
> return at
> com.sun.xml.ws.server.sei.EndpointResponseMessageBuilder$DocLit.(EndpointResponseMessageBuilder.java:211)
>
> at
> com.sun.xml.ws.server.sei.EndpointMethodHandler.createResponseMessageBuilder(EndpointMethodHandler.java:206)
>
> at
> com.sun.xml.ws.server.sei.EndpointMethodHandler.(EndpointMethodHandler.java:112)
>
> at com.sun.xml.ws.server.sei.SEIInvokerTube.(SEIInvokerTube.java:87) at
> com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:223)
>
> at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:513) at
> com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:568) at
> org.glassfish.webservices.WSServletContextListener.registerEndpoint(WSServletContextListener.java:260)
>
> at
> org.glassfish.webservices.WSServletContextListener.contextInitialized(WSServletContextListener.java:99)
>
> at
> org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4690)
>
> at
> com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:534)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:5305)
> at com.sun.enterprise.web.WebModule.start(WebModule.java:500) at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
>
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901) at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:755) at
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1980) at
>
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1630) at
>
> com.sun.enterprise.web.WebApplication.start(WebApplication.java:100) at
> org.glassfish.internal.data.EngineRef.start(EngineRef.java:130) at
> org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269) at
> org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:286)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
>
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
>
> at
> org.glassfish.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:183)
>
> at
> org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:118)
>
> at
> org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:121)
>
> at
> org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)
> at
> org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:107)
> at
> org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)
>
> at
> org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:151)
>
> at
> org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:148)
>
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at
> java.util.concurrent.FutureTask.run(FutureTask.java:138) at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>
> at java.lang.Thread.run(Thread.java:662) Caused by:
> javax.xml.bind.JAXBException: return is not a valid property on class
> pl.zsk.osgi.jaxws.HelloWorldResponse at
> com.sun.xml.bind.v2.runtime.JAXBContextImpl.getElementPropertyAccessor(JAXBContextImpl.java:988)
>
> at
> com.sun.xml.ws.server.sei.EndpointResponseMessageBuilder$DocLit.(EndpointResponseMessageBuilder.java:208)
>
> ... 36 more SEVERE: PWC1306: Startup of context /usluga failed due to
> previous errors SEVERE: PWC1305: Exception during cleanup after start
> failed
> org.apache.catalina.LifecycleException: PWC2769: Manager has not yet been
> started at
> org.apache.catalina.session.StandardManager.stop(StandardManager.java:872)
> at
> org.apache.catalina.core.StandardContext.stop(StandardContext.java:5509) at
> com.sun.enterprise.web.WebModule.stop(WebModule.java:529) at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:5323) at
>
> com.sun.enterprise.web.WebModule.start(WebModule.java:500) at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
>
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901) at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:755) at
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1980) at
>
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1630) at
>
> com.sun.enterprise.web.WebApplication.start(WebApplication.java:100) at
> org.glassfish.internal.data.EngineRef.start(EngineRef.java:130) at
> org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269) at
> org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:286)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
>
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
>
> at
> org.glassfish.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:183)
>
> at
> org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:118)
>
> at
> org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:121)
>
> at
> org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)
> at
> org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:107)
> at
> org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)
>
> at
> org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:151)
>
> at
> org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:148)
>
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at
> java.util.concurrent.FutureTask.run(FutureTask.java:138) at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>
> at java.lang.Thread.run(Thread.java:662) SEVERE: ContainerBase.addChild:
> start: org.apache.catalina.LifecycleException: java.lang.RuntimeException:
> Servlet web service endpoint '' failure at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:5328) at
>
> com.sun.enterprise.web.WebModule.start(WebModule.java:500) at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
>
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901) at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:755) at
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1980) at
>
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1630) at
>
> com.sun.enterprise.web.WebApplication.start(WebApplication.java:100) at
> org.glassfish.internal.data.EngineRef.start(EngineRef.java:130) at
> org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269) at
> org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:286)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
>
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
>
> at
> org.glassfish.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:183)
>
> at
> org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:118)
>
> at
> org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:121)
>
> at
> org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)
> at
> org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:107)
> at
> org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)
>
> at
> org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:151)
>
> at
> org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:148)
>
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at
> java.util.concurrent.FutureTask.run(FutureTask.java:138) at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>
> at java.lang.Thread.run(Thread.java:662) Caused by:
> java.lang.RuntimeException: Servlet web service endpoint '' failure at
> org.glassfish.webservices.WSServletContextListener.contextInitialized(WSServletContextListener.java:104)
>
> at
> org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4690)
>
> at
> com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:534)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:5305)
> ... 25 more Caused by: javax.xml.ws.WebServiceException: class
> pl.zsk.osgi.jaxws.HelloWorldResponse do not have a property of the name
> return at
> com.sun.xml.ws.server.sei.EndpointResponseMessageBuilder$DocLit.(EndpointResponseMessageBuilder.java:211)
>
> at
> com.sun.xml.ws.server.sei.EndpointMethodHandler.createResponseMessageBuilder(EndpointMethodHandler.java:206)
>
> at
> com.sun.xml.ws.server.sei.EndpointMethodHandler.(EndpointMethodHandler.java:112)
>
> at com.sun.xml.ws.server.sei.SEIInvokerTube.(SEIInvokerTube.java:87) at
> com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:223)
>
> at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:513) at
> com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:568) at
> org.glassfish.webservices.WSServletContextListener.registerEndpoint(WSServletContextListener.java:260)
>
> at
> org.glassfish.webservices.WSServletContextListener.contextInitialized(WSServletContextListener.java:99)
>
> ... 28 more Caused by: javax.xml.bind.JAXBException: return is not a valid
> property on class pl.zsk.osgi.jaxws.HelloWorldResponse at
> com.sun.xml.bind.v2.runtime.JAXBContextImpl.getElementPropertyAccessor(JAXBContextImpl.java:988)
>
> at
> com.sun.xml.ws.server.sei.EndpointResponseMessageBuilder$DocLit.(EndpointResponseMessageBuilder.java:208)
>
> ... 36 more WARNING: java.lang.IllegalStateException:
> ContainerBase.addChild:
> start: org.apache.catalina.LifecycleException: java.lang.RuntimeException:
> Servlet web service endpoint '' failure java.lang.IllegalStateException:
> ContainerBase.addChild: start: org.apache.catalina.LifecycleException:
> java.lang.RuntimeException: Servlet web service endpoint '' failure at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:921)
>
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901) at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:755) at
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1980) at
>
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1630) at
>
> com.sun.enterprise.web.WebApplication.start(WebApplication.java:100) at
> org.glassfish.internal.data.EngineRef.start(EngineRef.java:130) at
> org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269) at
> org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:286)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
>
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
>
> at
> org.glassfish.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:183)
>
> at
> org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:118)
>
> at
> org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:121)
>
> at
> org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)
> at
> org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:107)
> at
> org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)
>
> at
> org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:151)
>
> at
> org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:148)
>
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at
> java.util.concurrent.FutureTask.run(FutureTask.java:138) at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>
> at java.lang.Thread.run(Thread.java:662) SEVERE: Exception while invoking
> class com.sun.enterprise.web.WebApplication start method
> java.lang.Exception:
> java.lang.IllegalStateException: ContainerBase.addChild: start:
> org.apache.catalina.LifecycleException: java.lang.RuntimeException: Servlet
> web service endpoint '' failure at
> com.sun.enterprise.web.WebApplication.start(WebApplication.java:130) at
> org.glassfish.internal.data.EngineRef.start(EngineRef.java:130) at
> org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269) at
> org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:286)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
>
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
>
> at
> org.glassfish.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:183)
>
> at
> org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:118)
>
> at
> org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:121)
>
> at
> org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)
> at
> org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:107)
> at
> org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)
>
> at
> org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:151)
>
> at
> org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:148)
>
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at
> java.util.concurrent.FutureTask.run(FutureTask.java:138) at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>
> at java.lang.Thread.run(Thread.java:662) SEVERE: Exception while loading
> the
> app INFO: Deleted
> D:\Users\tewi\AppData\Local\Temp\osgiapp2752586488930258943
> SEVERE: Failed while deploying bundle pl.tewi.prototype.OsgiJsfWebApp [320]
> INFO: Removed bundle 320 against context path usluga WARNING: Failed to
> deploy bundle pl.tewi.prototype.OsgiJsfWebApp [320]
> org.glassfish.osgijavaeebase.DeploymentException: Deployment of
> pl.tewi.prototype.OsgiJsfWebApp [320] failed because of following reason:
> Failed while deploying bundle pl.tewi.prototype.OsgiJsfWebApp [320] :
> java.lang.RuntimeException: Failed to deploy bundle [
> pl.tewi.prototype.OsgiJsfWebApp [320] ], root cause: Exception while
> loading
> the app at
> org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:125)
>
> at
> org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)
> at
> org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:107)
> at
> org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)
>
> at
> org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:151)
>
> at
> org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:148)
>
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at
> java.util.concurrent.FutureTask.run(FutureTask.java:138) at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>
> at java.lang.Thread.run(Thread.java:662) Caused by:
> java.lang.RuntimeException: Failed to deploy bundle [
> pl.tewi.prototype.OsgiJsfWebApp [320] ], root cause: Exception while
> loading
> the app at
> org.glassfish.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:196)
>
> at
> org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:118)
>
> at
> org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:121)
>
> ... 10 more Caused by: java.lang.Exception:
> java.lang.IllegalStateException:
> ContainerBase.addChild: start: org.apache.catalina.LifecycleException:
> java.lang.RuntimeException: Servlet web service endpoint '' failure at
> com.sun.enterprise.web.WebApplication.start(WebApplication.java:130) at
> org.glassfish.internal.data.EngineRef.start(EngineRef.java:130) at
> org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269) at
> org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:286)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
>
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
>
> at
> org.glassfish.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:183)
>
> ... 12 more
>
>
> [1]
> ../../../../../../external?url=http://blogs.sun.com/arungupta/entry/totd_130_invoking_a_osgi
>
> [2]
> http://weblogs.java.net/blog/ss141213/archive/2010/04/08/jax-ws-web-serv...
>
> [3]
> ../../../../../../external?url=http://TEWI-367:8080/usluga/WebBundleWSService
>
> [4]
> ../../../../../../external?url=http://TEWI-367:8080/__wstx-services/ParticipantPortType
>
> [5]
> ../../../../../../external?url=http://TEWI-367:8080/__wstx-services/CoordinatorPortType11
>
> [6]
> ../../../../../../external?url=http://TEWI-367:8080/__wstx-services/RegistrationRequesterPortType11
>
> [7]
> ../../../../../../external?url=http://TEWI-367:8080/__wstx-services/RegistrationPortTypeRPC11
>
> [8]
> ../../../../../../external?url=http://TEWI-367:8080/__wstx-services/RegistrationPortTypeRPC
>
> [9]
> ../../../../../../external?url=http://TEWI-367:8080/__wstx-services/ParticipantPortType11
>
> [10]
> ../../../../../../external?url=http://TEWI-367:8080/__wstx-services/RegistrationRequesterPortType
>
> [11]
> ../../../../../../external?url=http://TEWI-367:8080/__wstx-services/CoordinatorPortType
>
>
> --
>
> [Message sent by forum member 'mkwapisz']
>
> View Post: http://forums.java.net/node/788645
>
>

--
Blog: http://blogs.sun.com/arungupta
Twitter: http://twitter.com/arungupta

mkwapisz
Offline
Joined: 2007-01-31

You can see the error in the stacktrace. It starts from the line below:
Deployment failed javax.xml.ws.WebServiceException: class pl.zsk.osgi.jaxws.HelloWorldResponse do not have a property of the name return at
com.sun.xml.ws.server.sei.EndpointResponseMessageBuilder$DocLit.(EndpointResponseMessageBuilder.java:211)

First of all, I suspected an incompatibility between GF and JDK jaxws/jaxb implementations, but this application can be intalled in GF3.1 web container without any problems.
Regards
Marcin

ss141213
Offline
Joined: 2005-03-30

Hi Marcin,

I am very sorry for not responding earlier. There seems to be a
regression in GF3.1. Would you mind filing a bug under osgi-javaee
subcategory in our JIRA? I have already started investigating in the
meanwhile.

Thanks much,
Sahoo

On Saturday 09 April 2011 11:37 PM, forums@java.net wrote:
> You can see the error in the stacktrace. It starts from the line below:
>
> Deployment failed javax.xml.ws.WebServiceException: class
> pl.zsk.osgi.jaxws.HelloWorldResponse do not have a property of the name
> return at
> com.sun.xml.ws.server.sei.EndpointResponseMessageBuilder$DocLit.(EndpointResponseMessageBuilder.java:211)
>
>
>
> First of all, I suspected an incompatibility between GF and
> JDK jaxws/jaxb
> implementations, but this application can be intalled in GF3.1 web
> container
> without any problems.
>
> Regards
>
> Marcin
>
>
> --
>
> [Message sent by forum member 'mkwapisz']
>
> View Post: http://forums.java.net/node/788645
>
>

arungupta
Online
Joined: 2003-06-13

Hi Marcin,

I could easily reproduce the error and now will look into it.

Thanks,
-Arun

On 4/9/11 8:07 PM, forums@java.net wrote:
> You can see the error in the stacktrace. It starts from the line below:
>
> Deployment failed javax.xml.ws.WebServiceException: class
> pl.zsk.osgi.jaxws.HelloWorldResponse do not have a property of the name
> return at
> com.sun.xml.ws.server.sei.EndpointResponseMessageBuilder$DocLit.(EndpointResponseMessageBuilder.java:211)
>
>
>
> First of all, I suspected an incompatibility between GF and JDK jaxws/jaxb
> implementations, but this application can be intalled in GF3.1 web
> container
> without any problems.
>
> Regards
>
> Marcin
>
>
> --
>
> [Message sent by forum member 'mkwapisz']
>
> View Post: http://forums.java.net/node/788645
>
>

--
Blog: http://blogs.sun.com/arungupta
Twitter: http://twitter.com/arungupta

mgainty
Offline
Joined: 2004-05-21

/* com.sun.xml.ws.api.server.WSEndpoint shows these parameters */

/* @param implType
* Endpoint class(not SEI). Enpoint class must have @WebService or @WebServiceProvider
* annotation.
* have you verified your Endpoint class has @Webservice or @WebServiceProvider

* @param processHandlerAnnotation
* Flag to control processing of @HandlerChain on Impl class
* if true, processes @HandlerChain on Impl
* if false, DD might have set HandlerChain no need to parse.
* what does your DD say the processHandler annotation is

* @param invoker
* Pass an object to invoke the actual endpoint object. If it is null, a default
* invoker is created using {@link InstanceResolver#createDefault}. Appservers
* could create its own invoker to do additional functions like transactions,
* invoking the endpoint through proxy etc.
*implType param has to be spot on match correct otherwise this param chokes

* @param serviceName
* Optional service name(may be from DD) to override the one given by the
* implementation class. If it is null, it will be derived from annotations.
* optional but what is your serviceName in DD

* @param portName
* Optional port name(may be from DD) to override the one given by the
* implementation class. If it is null, it will be derived from annotations.
* optional but what is your serviceName in DD

* @param container
* Allows technologies that are built on top of JAX-WS(such as WSIT) needs to
* negotiate private contracts between them and the container
* @param binding
* JAX-WS implementation of {@link Binding}. This object can be created by
* {@link BindingID#createBinding()}. Usually the binding can be got from
* DD, {@link javax.xml.ws.BindingType}.
* what is your binding from DD

what does the DD you are using look like?

i dont have any testcases here..if we could get some binding testcases we can at least narrow down which binding is failing
arun did you find anything?

Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.

> Date: Sun, 17 Apr 2011 20:43:52 +0200
> From: arun.p.gupta...
> To: users@glassfish.java.net
> CC: forums@java.net
> Subject: Re: Hybrid OSGi/WS application and Glassfish 3.1
>
> Hi Marcin,
>
> I could easily reproduce the error and now will look into it.
>
> Thanks,
> -Arun
>
> On 4/9/11 8:07 PM, forums@java.net wrote:
> > You can see the error in the stacktrace. It starts from the line below:
> >
> > Deployment failed javax.xml.ws.WebServiceException: class
> > pl.zsk.osgi.jaxws.HelloWorldResponse do not have a property of the name
> > return at
> > com.sun.xml.ws.server.sei.EndpointResponseMessageBuilder$DocLit.(EndpointResponseMessageBuilder.java:211)
> >
> >
> >
> > First of all, I suspected an incompatibility between GF and JDK jaxws/jaxb
> > implementations, but this application can be intalled in GF3.1 web
> > container
> > without any problems.
> >
> > Regards
> >
> > Marcin
> >
> >
> > --
> >
> > [Message sent by forum member 'mkwapisz']
> >
> > View Post: http://forums.java.net/node/788645
> >
> >
>
> --
> Blog: http://blogs.sun.com/arungupta
> Twitter: http://twitter.com/arungupta

mkwapisz
Offline
Joined: 2007-01-31

mgainty wrote:
* what is your binding from DD what does the DD you are using look like? i dont have any testcases here..if we could get some binding testcases we can at least narrow down which binding is failing arun did you find anything?

Hi, in my case there was no special bindings. It was a simple "hello world" WS (a single method that returns String) that was deployed as osgi WAB . The same application deployed in Glassfish Web container works fine.
Regards
Marcin Kwapisz

arungupta
Online
Joined: 2003-06-13

Hi Marcin,

I'll try to deploy it on GlassFish 3.1 and let you know my findings.

-Arun

On 4/9/11 11:07 AM, forums@java.net wrote:
> You can see the error in the stacktrace. It starts from the line below:
>
> Deployment failed javax.xml.ws.WebServiceException: class
> pl.zsk.osgi.jaxws.HelloWorldResponse do not have a property of the name
> return at
> com.sun.xml.ws.server.sei.EndpointResponseMessageBuilder$DocLit.(EndpointResponseMessageBuilder.java:211)
>
>
>
> First of all, I suspected an incompatibility between GF and JDK jaxws/jaxb
> implementations, but this application can be intalled in GF3.1 web
> container
> without any problems.
>
> Regards
>
> Marcin
>
>
> --
>
> [Message sent by forum member 'mkwapisz']
>
> View Post: http://forums.java.net/node/788645
>
>

--
Blog: http://blogs.sun.com/arungupta
Twitter: http://twitter.com/arungupta