Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP Deployment JBoss 4.2.2 GA Linux
RAP Deployment JBoss 4.2.2 GA Linux [message #494762] Mon, 02 November 2009 15:09 Go to next message
Christian Fink is currently offline Christian FinkFriend
Messages: 6
Registered: November 2009
Junior Member
Successfully deployed RAP Application on Windows using Tomcat and JBoss.

The same WAR archive doesn't work on Linux. The plugin "org.eclipse.equinox.common" is not listed on the OSGi console. So all dependent plugins are not started. I don't understand, where is the difference for windows and linux.

RAPDemo works on linux and windows.

Does anyone have an idea?
Re: RAP Deployment JBoss 4.2.2 GA Linux [message #494776 is a reply to message #494762] Mon, 02 November 2009 15:43 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 338
Registered: July 2009
Senior Member
Hi Christian,

are there any preceding errors/exceptions in the log? Did you try to
start with "-consolelog"?


Christian Fink wrote:
> Successfully deployed RAP Application on Windows using Tomcat and JBoss.
>
> The same WAR archive doesn't work on Linux. The plugin
> "org.eclipse.equinox.common" is not listed on the OSGi console. So all
> dependent plugins are not started. I don't understand, where is the
> difference for windows and linux.
>
> RAPDemo works on linux and windows.
>
> Does anyone have an idea?


--
Benjamin Muskalla | EclipseSource Karlsruhe
http://www.eclipsesource.com | http://twitter.com/eclipsesource
Re: RAP Deployment JBoss 4.2.2 GA Linux [message #496533 is a reply to message #494776] Tue, 10 November 2009 13:18 Go to previous messageGo to next message
Christian Fink is currently offline Christian FinkFriend
Messages: 6
Registered: November 2009
Junior Member
The hint to start with "-consolelog" helped to find out the problem on linux respective the difference to windows.

It was a deployment problem. I tried out different versions, plugins, etc... And the combination lead to a successful deployment.

To avoid duplicate plugins or wrong versions, I added the commandline option "-clean". Now it doesn't work on linux and windows, which is at least more understandable.


Now the following error occured:
org.osgi.framework.BundleException: Exception in org.eclipse.equinox.http.servletbridge.internal.Activator.start() of bundle org.eclipse.equinox.http.servletbridge.
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:805)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:754)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:370)
	at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1068)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:557)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:464)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:248)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:445)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330)
Caused by: java.lang.IncompatibleClassChangeError: Class org.apache.catalina.core.StandardWrapperFacade does not implement the requested interface javax.servlet.ServletConfig
	at org.eclipse.equinox.http.servlet.internal.Activator.registerHttpService(Activator.java:67)
	at org.eclipse.equinox.http.servlet.internal.Activator.addProxyServlet(Activator.java:58)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.init(ProxyServlet.java:42)
	at org.eclipse.equinox.http.servlet.HttpServiceServlet.init(HttpServiceServlet.java:74)
	at org.eclipse.equinox.servletbridge.BridgeServlet.registerServletDelegate(BridgeServlet.java:225)
	at org.eclipse.equinox.http.servletbridge.internal.Activator.start(Activator.java:25)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:782)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:773)
	... 10 more
Root exception:
java.lang.IncompatibleClassChangeError: Class org.apache.catalina.core.StandardWrapperFacade does not implement the requested interface javax.servlet.ServletConfig
	at org.eclipse.equinox.http.servlet.internal.Activator.registerHttpService(Activator.java:67)
	at org.eclipse.equinox.http.servlet.internal.Activator.addProxyServlet(Activator.java:58)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.init(ProxyServlet.java:42)
	at org.eclipse.equinox.http.servlet.HttpServiceServlet.init(HttpServiceServlet.java:74)
	at org.eclipse.equinox.servletbridge.BridgeServlet.registerServletDelegate(BridgeServlet.java:225)
	at org.eclipse.equinox.http.servletbridge.internal.Activator.start(Activator.java:25)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:782)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:773)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:754)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:370)
	at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1068)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:557)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:464)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:248)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:445)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330)


According to the rapdemo, I removed the javax.servlet plugin from my distribution, but this leads to the following error:
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: javax.servlet; version="[2.3.0,2.5.0)"
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1313)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1297)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:309)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:370)
	at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1068)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:557)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:464)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:248)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:445)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330)


This is the list of the included plugins ("<custom>" is just a replacement for my plugins name):
Framework is launched.

id	State       Bundle
0	ACTIVE      org.eclipse.osgi_3.5.0.v20090520
	            Fragments=22
1	ACTIVE      com.ibm.icu.base_4.0.1.v20090415
2	ACTIVE      <custom>_1.0.0
3	ACTIVE      <custom>_1.0.0
4	ACTIVE      <custom>_1.0.0
5	ACTIVE      org.apache.commons.logging_1.0.4.v200904062259
6	ACTIVE      org.eclipse.core.commands_3.5.0.I20090525-2000
7	ACTIVE      org.eclipse.core.contenttype_3.4.0.v20090429-1800
8	ACTIVE      org.eclipse.core.databinding.beans_1.2.0.I20090525-2000
9	ACTIVE      org.eclipse.core.databinding.observable_1.2.0.I20090604-2000
10	ACTIVE      org.eclipse.core.databinding.property_1.2.0.I20090526-2000
11	ACTIVE      org.eclipse.core.databinding_1.2.0.I20090604-2000
12	ACTIVE      org.eclipse.core.expressions_3.4.100.v20090429-1800
13	ACTIVE      org.eclipse.core.jobs_3.4.100.v20090429-1800
14	ACTIVE      org.eclipse.core.runtime_3.5.0.v20090525
15	ACTIVE      org.eclipse.equinox.app_1.2.0.v20090520-1800
16	ACTIVE      org.eclipse.equinox.common_3.5.0.v20090520-1800
17	ACTIVE      org.eclipse.equinox.http.registry_1.0.200
18	INSTALLED   org.eclipse.equinox.http.servletbridge_1.0.200
19	INSTALLED   org.eclipse.equinox.http.servlet_1.0.0
20	ACTIVE      org.eclipse.equinox.preferences_3.2.300.v20090520-1800
21	ACTIVE      org.eclipse.equinox.registry_3.4.100.v20090520-1800
22	RESOLVED    org.eclipse.equinox.servletbridge.extensionbundle_1.2.0
	            Master=0
23	ACTIVE      org.eclipse.help_3.4.1.v20090805_35x
24	ACTIVE      org.eclipse.osgi.services_3.2.0.v20090520-1800
25	ACTIVE      org.eclipse.rap.jface.databinding_1.2.0.20090616-1425
26	ACTIVE      org.eclipse.rap.jface_1.2.0.20090616-1425
27	RESOLVED    org.eclipse.rap.rwt.q07_1.2.0.20090616-1425
	            Master=28
28	ACTIVE      org.eclipse.rap.rwt_1.2.0.20090616-1425
	            Fragments=27
29	ACTIVE      org.eclipse.rap.ui.forms_1.2.0.20090616-1425
30	ACTIVE      org.eclipse.rap.ui.views_1.2.0.20090616-1425
31	ACTIVE      org.eclipse.rap.ui.workbench_1.2.0.20090616-1425
32	ACTIVE      org.eclipse.rap.ui_1.2.0.20090616-1425
33	ACTIVE      org.eclipse.update.configurator_1.0.0




Again I have no idea. Experimented with "osgi.parentClassloader=fwk" without an affect. Tried to use the servletbridge.jar from the demo...

The distribution is according to the documenation built using the PDE Feature export. The servletbridge..., equinox.http..., etc.. plugins are all checked out from the respective CVS repository.

I think it couldn't be a big problem, it's just a wrong version or configuration or something like that. After trying over and over different combinations, versions or configuration and searching differences according to the rapdemo, I'm kind of frustrated, so I'm asking again for help.

Appreciating any feedback.



Re: RAP Deployment JBoss 4.2.2 GA Linux [message #496825 is a reply to message #496533] Wed, 11 November 2009 14:01 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 338
Registered: July 2009
Senior Member
Which bundle has this constrain? Which servlet spec does JBoss 4.2.2
implement? In case JBose has a 2.5 servlet spec, this will not work as
the bundle you mention needs 2.3.0 to 2.5.0 (exclusive). Replacing the )
with a ] to include 2.5 as valid servlet spec dependency should do the
trick.

Regards,
Ben

> org.osgi.framework.BundleException: The bundle could not be resolved.
> Reason: Missing Constraint: Import-Package: javax.servlet;
> version="[2.3.0,2.5.0)"

--
Benjamin Muskalla | EclipseSource Karlsruhe
http://www.eclipsesource.com | http://twitter.com/eclipsesource
Re: RAP Deployment JBoss 4.2.2 GA Linux [message #497042 is a reply to message #496825] Thu, 12 November 2009 11:09 Go to previous message
Christian Fink is currently offline Christian FinkFriend
Messages: 6
Registered: November 2009
Junior Member
Works with JBoss (Windows, Linux) and Tomcat. Many thanks!
Previous Topic:JUnit bundle
Next Topic:Missing WidgetAdapterFacttory
Goto Forum:
  


Current Time: Thu Mar 28 12:09:17 GMT 2024

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

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

Back to the top