[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[equinox-dev] Double loading of resource?

Hi,
I'm having a strange problem getting tapestry to run in the Jetty-PDE-RSP-UI scenario.

The tapestry libs are located in a special lib bundle, only .jar files, and a manifest that looks like

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Tapestry Plug-in
Bundle-SymbolicName: org.apache.tapestry;singleton:=true
Bundle-Version: 4.0.0
Bundle-ClassPath: commons-codec-1.3.jar,
 commons-fileupload-1.0.jar,
 commons-logging-1.0.4.jar,
 hivemind-1.1.1.jar,
 hivemind-lib-1.1.1.jar,
 javassist-3.0.jar,
 log4j-1.2.8.jar,
 ognl-2.6.7.jar,
 oro-2.0.8.jar,
 tapestry-4.0.1.jar,
 tapestry-annotations-4.0.1.jar,
 tapestry-contrib-4.0.1.jar,
 tapestry-portlet-4.0.1.jar
Bundle-Localization: plugin
Export-Package: javassist,
 javassist.bytecode,..........

Now, when the tapestry classloader scans the classpath, apparently there is a double resource discovered from 2 different URLs, the hivemodule.xml from the hivemind.jar:
......
DEBUG - Processing modules visible to org.apache.hivemind.impl.DefaultClassResolver@9e4585
DEBUG - Parsing bundleresource://1/META-INF/hivemodule.xml
DEBUG - Result: ModuleDescriptor[moduleId=hivemind version=1.1.0]
.
.
.

DEBUG - Parsing bundleresource://1:6/META-INF/hivemodule.xml
DEBUG - Result: ModuleDescriptor[moduleId=hivemind version=1.1.0]

resulting in

org.apache.hivemind.ApplicationRuntimeException: Error: Module hivemind is duplicated!  Definition in bundleresource://1:6/META-INF/hivemodule.xml has been ignored in favor of existing definition from bundleresource://1/META-INF/hivemodule.xml.
org.apache.hivemind.impl.StrictErrorHandler.error(StrictErrorHandler.java:39)
org.apache.hivemind.impl.RegistryInfrastructureConstructor.addModuleDescriptor(RegistryInfrastructureConstructor.java:202)
org.apache.hivemind.impl.RegistryBuilder.processModuleDescriptorProvider(RegistryBuilder.java:168)
org.apache.hivemind.impl.RegistryBuilder.constructRegistry(RegistryBuilder.java:143)
org.apache.tapestry.ApplicationServlet.constructRegistry(ApplicationServlet.java:253)
org.apache.tapestry.ApplicationServlet.init(ApplicationServlet.java:194)
org.rsp.sample.tapestry.ApplicationServlet.init(ApplicationServlet.java:15)
org.eclipse.equinox.servlet.bridge.http.internal.ServletRegistration.init(ServletRegistration.java:43)
org.eclipse.equinox.servlet.bridge.http.internal.ProxyServlet.registerServlet(ProxyServlet.java:100)
org.eclipse.equinox.servlet.bridge.http.internal.HttpServiceImpl.registerServlet(HttpServiceImpl.java:44)
org.eclipse.equinox.servlet.ext.ServletManager.added(ServletManager.java:82)
org.eclipse.equinox.servlet.ext.ExtensionPointTracker.open(ExtensionPointTracker.java:66)
org.eclipse.equinox.servlet.ext.ServletManager.start(ServletManager.java:51)
org.eclipse.equinox.servlet.ext.HttpServiceCustomizer.addingService(HttpServiceCustomizer.java:43)


The bundle 1 is the tapestry bundle. And there is no hivemodule.xml in the METAINF dir of the module, just in the JARs.
Anyone seeing what is happening?

Thanks

/peter