Home » Eclipse Projects » Plugin Development Environment (PDE) » OSGi running my own embedded Jetty, dependent plugins not starting?
OSGi running my own embedded Jetty, dependent plugins not starting? [message #591788] |
Tue, 10 February 2009 18:23 |
David Wynter Messages: 4624 Registered: July 2009 |
Senior Member |
|
|
Hi,
I cannot use the version of Jetty that is available in Eclipse. So I
embedded the latest Jetty version. This all runs fine when running under
Eclipse debug. I put together a OSGi configuration that seems to work,
partially, my BundleActivator class starts Jetty, it is listening on
port 8081 as specified.
Here is the stack when started via Debug OSGi Framework in Eclispe
org.eclipse.equinox.launcher.Main at localhost:4723
Thread [main] (Running)
Thread [OSGi Console] (Running)
Daemon Thread [State Data Manager] (Running)
Daemon Thread [Framework Event Dispatcher] (Running)
Daemon Thread [Start Level Event Dispatcher] (Running)
Thread [Worker-0] (Running)
Daemon Thread [Timer-0] (Running)
Thread [btpool0-0 - Acceptor0 SelectChannelConnector@0.0.0.0:8081]
(Running)
Thread [btpool0-1 - Acceptor0 SslSocketConnector@0.0.0.0:8443] (Running)
The trouble is that it never responds to a URL
http://localhost:8081/secm/index.html
That otherwise works while under debug.
Here is the stack under debug
com.stpware.secm.jetty.JettyLauncher at localhost:4785
Thread [main] (Running)
Daemon Thread [Timer-0] (Running)
Thread [btpool0-0 - Acceptor0 SelectChannelConnector@0.0.0.0:8081]
(Running)
Daemon Thread [Timer-1] (Running)
Daemon Thread [Store org.hibernate.cache.UpdateTimestampsCache Spool
Thread] (Running)
Daemon Thread [Store org.hibernate.cache.UpdateTimestampsCache Expiry
Thread] (Running)
Daemon Thread [Store org.hibernate.cache.StandardQueryCache Spool
Thread] (Running)
Daemon Thread [Store org.hibernate.cache.StandardQueryCache Expiry
Thread] (Running)
Daemon Thread [H2 File Lock Watchdog
D:\workspace\SecmSecurity\db\secmsecurity.lock.db] (Running)
Daemon Thread [H2 Log Writer SECMSECURITY] (Running)
Daemon Thread [Store org.hibernate.cache.UpdateTimestampsCache Spool
Thread] (Running)
Daemon Thread [Store org.hibernate.cache.UpdateTimestampsCache Expiry
Thread] (Running)
Daemon Thread [Store org.hibernate.cache.StandardQueryCache Spool
Thread] (Running)
Daemon Thread [Store org.hibernate.cache.StandardQueryCache Expiry
Thread] (Running)
Thread [pool-1-thread-1] (Running)
Thread [pool-2-thread-1] (Running)
Thread [btpool0-1 - Acceptor0 SslSocketConnector@0.0.0.0:8443] (Running)
It looks like the 2 of my plugins it is dependent on are not starting.
One has all the Hibernate jars etc, and the other provides a service.
Both have their MANIFEST.MF setup to export the required interfaces and
classes.
Here are the 3 MANIFEST.MF
This one
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: GenSec2; singleton:=true
Bundle-Version: 1.0.0
Bundle-ClassPath:
..,.\web\WEB-INF\lib\jetty-6.1.9.jar,.\web\WEB-INF\lib\c3p0- 0.9.1.2.jar,.\web\WEB-INF\lib\commons-beanutils-1.8.0.jar,.\ web\WEB-INF\lib\commons-lang-2.4.jar,.\web\WEB-INF\lib\ehcac he-1.6.0-beta2.jar,.\web\WEB-INF\lib\jetty-util-6.1.9.jar,.\ web\WEB-INF\lib\servlet-api-2.5.jar
Bundle-Activator: com.stpware.secm.SecmActivator
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-1.6,
OSGi/Minimum-1.1
Export-Package: com.stpenable.gensec,
com.stpenable.gensec.impl,
com.stpenable.gensec.util
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.4.0",
org.eclipse.emf.ecore;bundle-version="2.4.1";visibility:=reexport,
org.eclipse.emf.ecore.xmi;bundle-version="2.4.1";visibility:=reexport,
org.eclipse.emf.teneo.hibernate;bundle-version="1.0.1";visibility:=reexport,
hibernate3;bundle-version="1.0.0",
SecmSec;bundle-version="1.0.0"
Eclipse-LazyStart: true
Is dependent on this one
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: SecmSec;singleton:=true
Bundle-Version: 1.0.0
Bundle-ClassPath: .
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Export-Package: com.stpware.secmsecurity,
com.stpware.secmsecurity.impl,
com.stpware.secmsecurity.manager,
com.stpware.secmsecurity.util
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.emf.ecore;visibility:=reexport,
org.eclipse.emf.ecore.xmi;visibility:=reexport,
org.eclipse.emf.teneo.hibernate;bundle-version="1.0.1";visibility:=reexport,
hibernate3;bundle-version="1.0.0"
Bundle-ActivationPolicy: lazy
Both are dependent on this one
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Hibernate3 Plug-in
Bundle-SymbolicName: hibernate3;singleton:=true
Bundle-Version: 1.0.0
Bundle-ClassPath: .,
antlr-2.7.6.jar,
commons-collections-3.1.jar,
commons-logging-1.0.4.jar,
db2jcc.jar,
dom4j-1.6.1.jar,
dwr.jar,
ehcache-1.2.3.jar,
h2-1.1.107.jar,
hibernate3.jar,
javassist-3.4.GA.jar,
jaxen-1.1-beta-7.jar,
jdbc2_0-stdext.jar,
jta-1.1.jar,
log4j-1.2.15.jar,
mysql-connector-java-3.1.10-bin.jar,
slf4j-api-1.5.2.jar,
slf4j-log4j12-1.5.2.jar,
xml-apis.jar
Export-Package: COM.ibm.db2.app,
COM.ibm.db2os390.sqlj.custom,
COM.ibm.db2os390.sqlj.jdbc,
antlr,
antlr.ASdebug,
antlr.actions.cpp,
antlr.actions.csharp,
antlr.actions.java,
antlr.actions.python,
antlr.build,
antlr.collections,
antlr.collections.impl,
antlr.debug,
antlr.debug.misc,
antlr.preprocessor,
com.ibm.db2.jcc,
com.ibm.db2.jcc.a,
com.ibm.db2.jcc.b,
com.ibm.db2.jcc.resources,
com.ibm.db2.jcc.sqlj,
com.ibm.db2.jcc.t2,
com.ibm.db2.jcc.t2zos,
com.ibm.db2.jcc.t4,
com.ibm.db2.jcc.uw,
com.ibm.db2.jcc.uw.a,
com.ibm.db2.jcc.uw.classloader,
com.mysql.jdbc,
com.mysql.jdbc.integration.c3p0,
com.mysql.jdbc.integration.jboss,
com.mysql.jdbc.jdbc2.optional,
com.mysql.jdbc.log,
com.mysql.jdbc.profiler,
com.mysql.jdbc.util,
javassist,
javassist.bytecode,
javassist.bytecode.annotation,
javassist.compiler,
javassist.compiler.ast,
javassist.convert,
javassist.expr,
javassist.runtime,
javassist.scopedpool,
javassist.tools,
javassist.tools.reflect,
javassist.tools.rmi,
javassist.tools.web,
javassist.util,
javassist.util.proxy,
javax.sql,
javax.transaction,
javax.transaction.xa,
javax.xml.parsers,
javax.xml.transform,
javax.xml.transform.dom,
javax.xml.transform.sax,
javax.xml.transform.stream,
jsx3,
jsx3.app,
jsx3.chart,
jsx3.gui,
jsx3.gui.matrix,
jsx3.html,
jsx3.lang,
jsx3.net,
jsx3.util,
jsx3.vector,
jsx3.xml,
net.sf.ehcache,
net.sf.ehcache.bootstrap,
net.sf.ehcache.config,
net.sf.ehcache.constructs.asynchronous,
net.sf.ehcache.constructs.blocking,
net.sf.ehcache.constructs.concurrent,
net.sf.ehcache.constructs.web,
net.sf.ehcache.constructs.web.filter,
net.sf.ehcache.distribution,
net.sf.ehcache.event,
net.sf.ehcache.hibernate,
net.sf.ehcache.store,
net.sf.ehcache.util,
org.apache.commons.collections,
org.apache.commons.collections.bag,
org.apache.commons.collections.bidimap,
org.apache.commons.collections.buffer,
org.apache.commons.collections.collection,
org.apache.commons.collections.comparators,
org.apache.commons.collections.functors,
org.apache.commons.collections.iterators,
org.apache.commons.collections.keyvalue,
org.apache.commons.collections.list,
org.apache.commons.collections.map,
org.apache.commons.collections.set,
org.apache.commons.logging,
org.apache.commons.logging.impl,
org.apache.log4j,
org.apache.log4j.chainsaw,
org.apache.log4j.config,
org.apache.log4j.helpers,
org.apache.log4j.jdbc,
org.apache.log4j.jmx,
org.apache.log4j.lf5,
org.apache.log4j.lf5.util,
org.apache.log4j.lf5.viewer,
org.apache.log4j.lf5.viewer.categoryexplorer,
org.apache.log4j.lf5.viewer.configure,
org.apache.log4j.net,
org.apache.log4j.nt,
org.apache.log4j.or,
org.apache.log4j.or.jms,
org.apache.log4j.or.sax,
org.apache.log4j.spi,
org.apache.log4j.varia,
org.apache.log4j.xml,
org.apache.xmlcommons,
org.directwebremoting,
org.directwebremoting.annotations,
org.directwebremoting.bayeux,
org.directwebremoting.beehive,
org.directwebremoting.contrib,
org.directwebremoting.convert,
org.directwebremoting.create,
org.directwebremoting.dwrp,
org.directwebremoting.event,
org.directwebremoting.export,
org.directwebremoting.extend,
org.directwebremoting.faces,
org.directwebremoting.filter,
org.directwebremoting.fluent,
org.directwebremoting.guice,
org.directwebremoting.guice.spring,
org.directwebremoting.hibernate,
org.directwebremoting.impl,
org.directwebremoting.io,
org.directwebremoting.jms,
org.directwebremoting.json,
org.directwebremoting.proxy,
org.directwebremoting.proxy.browser,
org.directwebremoting.proxy.dwr,
org.directwebremoting.proxy.io,
org.directwebremoting.proxy.jsx3,
org.directwebremoting.proxy.jsx3.app,
org.directwebremoting.proxy.jsx3.chart,
org.directwebremoting.proxy.jsx3.gui,
org.directwebremoting.proxy.jsx3.html,
org.directwebremoting.proxy.jsx3.lang,
org.directwebremoting.proxy.jsx3.net,
org.directwebremoting.proxy.jsx3.util,
org.directwebremoting.proxy.jsx3.vector,
org.directwebremoting.proxy.jsx3.xml,
org.directwebremoting.proxy.scriptaculous,
org.directwebremoting.servlet,
org.directwebremoting.spring,
org.directwebremoting.struts,
org.directwebremoting.util,
org.directwebremoting.webwork,
org.dom4j,
org.dom4j.bean,
org.dom4j.datatype,
org.dom4j.dom,
org.dom4j.dtd,
org.dom4j.io,
org.dom4j.jaxb,
org.dom4j.rule,
org.dom4j.rule.pattern,
org.dom4j.swing,
org.dom4j.tree,
org.dom4j.util,
org.dom4j.xpath,
org.dom4j.xpp,
org.gjt.mm.mysql,
org.hibernate,
org.hibernate.action,
org.hibernate.bytecode,
org.hibernate.bytecode.cglib,
org.hibernate.bytecode.javassist,
org.hibernate.bytecode.util,
org.hibernate.cache,
org.hibernate.cache.access,
org.hibernate.cache.entry,
org.hibernate.cache.impl,
org.hibernate.cache.impl.bridge,
org.hibernate.cache.jbc2,
org.hibernate.cache.jbc2.access,
org.hibernate.cache.jbc2.builder,
org.hibernate.cache.jbc2.collection,
org.hibernate.cache.jbc2.entity,
org.hibernate.cache.jbc2.query,
org.hibernate.cache.jbc2.timestamp,
org.hibernate.cache.jbc2.util,
org.hibernate.cfg,
org.hibernate.classic,
org.hibernate.collection,
org.hibernate.connection,
org.hibernate.context,
org.hibernate.criterion,
org.hibernate.dialect,
org.hibernate.dialect.function,
org.hibernate.dialect.lock,
org.hibernate.engine,
org.hibernate.engine.loading,
org.hibernate.engine.query,
org.hibernate.engine.query.sql,
org.hibernate.engine.transaction,
org.hibernate.event,
org.hibernate.event.def,
org.hibernate.exception,
org.hibernate.hql,
org.hibernate.hql.antlr,
org.hibernate.hql.ast,
org.hibernate.hql.ast.exec,
org.hibernate.hql.ast.tree,
org.hibernate.hql.ast.util,
org.hibernate.hql.classic,
org.hibernate.id,
org.hibernate.id.enhanced,
org.hibernate.id.insert,
org.hibernate.impl,
org.hibernate.intercept,
org.hibernate.intercept.cglib,
org.hibernate.intercept.javassist,
org.hibernate.jdbc,
org.hibernate.jdbc.util,
org.hibernate.jmx,
org.hibernate.loader,
org.hibernate.loader.collection,
org.hibernate.loader.criteria,
org.hibernate.loader.custom,
org.hibernate.loader.custom.sql,
org.hibernate.loader.entity,
org.hibernate.loader.hql,
org.hibernate.lob,
org.hibernate.mapping,
org.hibernate.metadata,
org.hibernate.param,
org.hibernate.persister,
org.hibernate.persister.collection,
org.hibernate.persister.entity,
org.hibernate.pretty,
org.hibernate.property,
org.hibernate.proxy,
org.hibernate.proxy.dom4j,
org.hibernate.proxy.map,
org.hibernate.proxy.pojo,
org.hibernate.proxy.pojo.cglib,
org.hibernate.proxy.pojo.javassist,
org.hibernate.repackage.cglib.asm,
org.hibernate.repackage.cglib.asm.attrs,
org.hibernate.repackage.cglib.beans,
org.hibernate.repackage.cglib.core,
org.hibernate.repackage.cglib.proxy,
org.hibernate.repackage.cglib.reflect,
org.hibernate.repackage.cglib.transform,
org.hibernate.repackage.cglib.transform.hook,
org.hibernate.repackage.cglib.transform.impl,
org.hibernate.repackage.cglib.util,
org.hibernate.secure,
org.hibernate.sql,
org.hibernate.stat,
org.hibernate.tool.hbm2ddl,
org.hibernate.tool.instrument,
org.hibernate.tool.instrument.cglib,
org.hibernate.tool.instrument.javassist,
org.hibernate.transaction,
org.hibernate.transform,
org.hibernate.tuple,
org.hibernate.tuple.component,
org.hibernate.tuple.entity,
org.hibernate.type,
org.hibernate.usertype,
org.hibernate.util,
org.jaxen,
org.jaxen.dom,
org.jaxen.dom4j,
org.jaxen.expr,
org.jaxen.expr.iter,
org.jaxen.function,
org.jaxen.function.ext,
org.jaxen.function.xslt,
org.jaxen.javabean,
org.jaxen.jdom,
org.jaxen.pattern,
org.jaxen.saxpath,
org.jaxen.saxpath.base,
org.jaxen.saxpath.helpers,
org.jaxen.util,
org.jaxen.xom,
org.slf4j,
org.slf4j.helpers,
org.slf4j.impl,
org.slf4j.spi,
org.w3c.dom,
org.w3c.dom.css,
org.w3c.dom.events,
org.w3c.dom.html,
org.w3c.dom.ranges,
org.w3c.dom.stylesheets,
org.w3c.dom.traversal,
org.w3c.dom.views,
org.xml.sax,
org.xml.sax.ext,
org.xml.sax.helpers,
sqlj.runtime,
sqlj.runtime.error,
sqlj.runtime.profile,
sqlj.runtime.profile.ref,
sqlj.runtime.profile.util,
sqlj.runtime.ref,
sqlj.runtime.util,
uk.ltd.getahead.dwr,
uk.ltd.getahead.dwr.compat
Bundle-ActivationPolicy: lazy
I am not quite sure where to start looking next. Any pointers?
Thx.
David
|
|
|
Goto Forum:
Current Time: Thu Mar 28 15:28:21 GMT 2024
Powered by FUDForum. Page generated in 0.03347 seconds
|