dev@glassfish.java.net

Failed to load org.glassfish.webservices.WebServicesSniffer error

From: Bhakti Mehta <Bhakti.Mehta_at_Sun.COM>
Date: Fri, 29 Aug 2008 14:51:01 -0700

Sahoo/Richard/Jerome,
Pls can you help My jsr109impl bundle cannot load the
WebServicesSniffer. I do not know what I am missing.
I can start the bundle refresh it however if I do packages <id>
I get INFO: JSR-109 implementation to deploy Metro (120): No active
exported packages
Why is this happening even if org.glassfish.webservices is there in
exported and imported packages. I have attached MANIFEST.MF

Even if I did packages for gf-web-connector I see the same thing
No active exported packages. Why did the exports stop showing up?

What am I missing?
Regards,
Bhakti

Instructions to reproduce
1. Take latest gf
2. Copy 2 metro osgi bundles from
http://hudson.sfbay.sun.com/job/wsit-javanet/3466/artifact/dist/image/metro/for_v3/
to glassfish/modules
3. Copy to glassfish/modules
http://hudson.sfbay/job/jsr109-impl/50/org.glassfish.webservices$jsr109-impl/artifact/org.glassfish.webservices/jsr109-impl/10.0-SNAPSHOT/jsr109-impl-10.0-SNAPSHOT.jar
4. Deploy a basic jaxws war
http://javaweb.sfbay/~bhakti/webaug21/wsit-jaxws-fromwsdl.war



SEVERE: Error during deployment : Failed to load
org.glassfish.webservices.WebSe
rvicesSniffer from org.jvnet.hk2.osgiadapter.OSGiModuleImpl$1$1_at_2eb6fb
org.jvnet.hk2.component.ComponentException: Failed to load
org.glassfish.webserv
ices.WebServicesSniffer from
org.jvnet.hk2.osgiadapter.OSGiModuleImpl$1$1_at_2eb6fb

        at
com.sun.hk2.component.LazyInhabitant.fetch(LazyInhabitant.java:94)
        at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:106)
        at
com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantIm
pl.java:60)
        at org.jvnet.hk2.component.Habitat$1.get(Habitat.java:243)
        at java.util.AbstractList$Itr.next(AbstractList.java:422)
        at
com.sun.enterprise.v3.server.SnifferManager.createSnifferParentCL(Sni
fferManager.java:150)
        at
com.sun.enterprise.v3.server.SnifferManager.createSnifferParentCL(Sni
fferManager.java:161)
        at
com.sun.enterprise.v3.deployment.DeployCommand.execute(DeployCommand.
java:238)
        at
com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.jav
a:286)
        at
com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.jav
a:130)
        at
org.glassfish.deployment.autodeploy.AutoOperation.run(AutoOperation.j
ava:118)
        at
org.glassfish.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.
java:526)
        at
org.glassfish.deployment.autodeploy.AutoDeployer.deployAll(AutoDeploy
er.java:409)
        at
org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.jav
a:341)
        at
org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.jav
a:329)
        at
org.glassfish.deployment.autodeploy.AutoDeployService$1.run(AutoDeplo
yService.java:200)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
Caused by: java.lang.ClassNotFoundException:
org.glassfish.webservices.WebServic
esSniffer
        at
org.jvnet.hk2.osgiadapter.OSGiModuleImpl$1$1.loadClass(OSGiModuleImpl
.java:266)
        at
com.sun.hk2.component.LazyInhabitant.fetch(LazyInhabitant.java:91)
        ... 17 more
Aug 29, 2008 1:44:12 PM
org.glassfish.deployment.autodeploy.AutoOperation run


Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: 1.5.0_06 (Sun Microsystems Inc.)
Built-By: hudson
Build-Jdk: 1.5.0_06
Extension-Name: jsr109-impl
Specification-Vendor: Sun Microsystems, Inc.
Implementation-Vendor: Sun Microsystems, Inc.
Implementation-Title: jsr109-impl
Implementation-Version: 10.0-SNAPSHOT
HK2-Bundle-Name: org.glassfish.webservices:jsr109-impl
HK2-Import-Bundles: org.glassfish.core:kernel, org.glassfish.deploymen
 t:dol, org.glassfish.common:common-util, org.glassfish.deployment:dep
 loyment-common, org.glassfish.common:glassfish-api, org.glassfish.com
 mon:internal-api, org.glassfish.common:container-common, org.glassfis
 h.web:web-glue, javax.xml:webservices-api, org.glassfish:javax.javaee
 , com.sun.xml.ws:webservices-rt, com.sun.tools.ws:webservices-tools
HK2-Class-Path-Id: com.sun.enterprise:auto-depends:jar:0.3.16 com.sun.
 enterprise:config:jar:0.3.16 com.sun.enterprise:hk2-core:jar:0.3.16 c
 om.sun.enterprise:tiger-types-osgi:jar:0.3.16
Class-Path: auto-depends-0.3.16.jar config-0.3.16.jar hk2-core-0.3.16.
 jar tiger-types-osgi-0.3.16.jar
Bundle-License: https://glassfish.dev.java.net/nonav/public/CDDL+GPL.h
 tml
Import-Package: com.sun.enterprise.container.common.impl.util;version=
 "10.0.0.SNAPSHOT",com.sun.enterprise.container.common.spi.util;versio
 n="10.0.0.SNAPSHOT",com.sun.enterprise.deployment;version="10.0.0.SNA
 PSHOT",com.sun.enterprise.deployment.runtime.common;version="10.0.0.S
 NAPSHOT",com.sun.enterprise.deployment.util;version="10.0.0.SNAPSHOT"
 ,com.sun.enterprise.module;version="0.3",com.sun.enterprise.util;vers
 ion="10.0.0.SNAPSHOT",com.sun.enterprise.util.i18n;version="10.0.0.SN
 APSHOT",com.sun.enterprise.web;version="10.0.0.SNAPSHOT",com.sun.logg
 ing;version="10.0.0.SNAPSHOT",com.sun.tools.ws.spi,com.sun.tools.ws.u
 til.xml,com.sun.xml.bind.api,com.sun.xml.ws.api,com.sun.xml.ws.api.me
 ssage,com.sun.xml.ws.api.model,com.sun.xml.ws.api.model.wsdl,com.sun.
 xml.ws.api.pipe,com.sun.xml.ws.api.pipe.helper,com.sun.xml.ws.api.ser
 ver,com.sun.xml.ws.assembler,com.sun.xml.ws.developer,com.sun.xml.ws.
 transport.http,com.sun.xml.ws.transport.http.servlet,javax.annotation
 ;version="1.0",javax.enterprise.deploy.shared;version="1.2",javax.jws
 ;version="1.1",javax.servlet;version="3.0",javax.servlet.http;version
 ="3.0",javax.xml.bind;version="2.1",javax.xml.namespace,javax.xml.par
 sers,javax.xml.soap;version="1.3",javax.xml.transform,javax.xml.trans
 form.stream,javax.xml.ws;version="2.1",javax.xml.ws.handler;version="
 2.1",javax.xml.ws.handler.soap;version="2.1",javax.xml.ws.soap;versio
 n="2.1",org.glassfish.api.deployment;version="10.0",org.glassfish.dep
 loyment.common;version="10.0.0.SNAPSHOT",org.glassfish.internal.api;v
 ersion="10.0.0.SNAPSHOT",org.glassfish.internal.deployment;version="1
 0.0.0.SNAPSHOT",org.glassfish.webservices;version="10.0.0.SNAPSHOT",o
 rg.glassfish.webservices.monitoring;version="10.0.0.SNAPSHOT",org.jvn
 et.hk2.annotations;version="0.3",org.jvnet.hk2.component;version="0.3
 ",org.w3c.dom,org.xml.sax
Bnd-LastModified: 1220041594181
Export-Package: org.glassfish.webservices;uses:="com.sun.enterprise.de
 ployment,javax.xml.ws.handler,javax.servlet.http,com.sun.enterprise.d
 eployment.runtime.common,javax.xml.namespace,com.sun.xml.ws.api.pipe.
 helper,com.sun.xml.ws.transport.http.servlet,javax.servlet,javax.xml.
 parsers,com.sun.logging,com.sun.xml.ws.api.pipe,javax.xml.ws,javax.xm
 l.ws.soap,org.jvnet.hk2.component,com.sun.xml.ws.api.model,com.sun.xm
 l.bind.api,com.sun.enterprise.container.common.impl.util,com.sun.ente
 rprise.container.common.spi.util,com.sun.xml.ws.api.message,org.jvnet
 .hk2.annotations,com.sun.enterprise.util,com.sun.xml.ws.api.server,or
 g.glassfish.deployment.common,com.sun.xml.ws.api,com.sun.xml.ws.devel
 oper,javax.xml.bind,com.sun.enterprise.util.i18n,org.glassfish.intern
 al.api,com.sun.tools.ws.spi,javax.xml.ws.handler.soap,org.glassfish.i
 nternal.deployment,com.sun.enterprise.web,com.sun.tools.ws.util.xml,o
 rg.xml.sax,org.w3c.dom,com.sun.enterprise.deployment.util,org.glassfi
 sh.api.deployment,javax.xml.soap,com.sun.xml.ws.transport.http,org.gl
 assfish.webservices.monitoring,javax.enterprise.deploy.shared,com.sun
 .xml.ws.api.model.wsdl,javax.annotation,com.sun.enterprise.module,jav
 ax.jws,com.sun.xml.ws.assembler";version="10.0.0.SNAPSHOT",org.glassf
 ish.webservices.monitoring;uses:="com.sun.enterprise.deployment,com.s
 un.tools.ws.spi,javax.servlet.http,javax.xml.namespace,com.sun.xml.bi
 nd.api,javax.xml.transform,javax.xml.soap,org.glassfish.webservices,j
 avax.servlet,com.sun.enterprise.util,javax.enterprise.deploy.shared,j
 avax.jws,com.sun.logging,javax.xml.ws,javax.xml.transform.stream";ver
 sion="10.0.0.SNAPSHOT"
Bundle-Version: 10.0.0.SNAPSHOT
Bundle-Name: JSR-109 implementation to deploy Metro
Bundle-DocURL: http://www.sun.com
Bundle-ManifestVersion: 2
Bundle-Vendor: Sun Microsystems, Inc.
Bundle-SymbolicName: org.glassfish.webservices.jsr109-impl
Tool: Bnd-0.0.255
DestinationFile: /files/hudson/workspace/jsr109-impl/webservices/jsr10
 9-impl/target/classes/wsgen
SourceFile: /files/hudson/workspace/jsr109-impl/webservices/jsr109-imp
 l/src/main/resources/wsgen