Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Start Equinox programmatically within web app
Start Equinox programmatically within web app [message #500267] Wed, 25 November 2009 14:29
No real name is currently offline No real nameFriend
Messages: 1
Registered: November 2009
Junior Member

I have written a command line OSGi Eqinox application and now would like to create a web-based user interface for it.

In order to do so, I would like to programmatically start equniox within the web application.

I tried this by calling following code within a (JSF) managed bean:

Properties properties = new Properties();
EclipseStarter.startup(new String[] { "-clean" }, null);

unfortunately this results in following excetion:

_ErrorPageWriter: An exception occurred 
java.lang.IllegalStateException: No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions!
If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml.
A typical config looks like this;

	at javax.faces.FactoryFinder.getFactory(
	at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(
	at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(
	at org.apache.myfaces.lifecycle.LifecycleImpl.render(
	at javax.faces.webapp.FacesServlet.service(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
	at org.apache.catalina.core.StandardWrapperValve.invoke(
	at org.apache.catalina.core.StandardContextValve.invoke(
	at org.apache.catalina.core.StandardHostValve.invoke(
	at org.apache.catalina.valves.ErrorReportValve.invoke(
	at org.apache.catalina.core.StandardEngineValve.invoke(
	at org.apache.catalina.connector.CoyoteAdapter.service(
	at org.apache.coyote.http11.Http11Processor.process(
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(

I read here, that this problem might be related to some class loading issue.

What do I need to do to get this working?

Many thanks in advance!

[Updated on: Wed, 25 November 2009 15:40]

Report message to a moderator

Previous Topic:OSGI Web Container
Next Topic:Eclipse-BuddyPolicy: global question
Goto Forum:

Current Time: Wed May 23 01:41:07 GMT 2018

Powered by FUDForum. Page generated in 0.02500 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top