Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » deploying/running RAP: get NoClassDefFoundError: org/xml/sax/SAXException
deploying/running RAP: get NoClassDefFoundError: org/xml/sax/SAXException [message #89302] Thu, 22 May 2008 03:07 Go to next message
David Donohue is currently offline David DonohueFriend
Messages: 104
Registered: July 2009
Senior Member
Hello! I followed Elias' excellent instructions on deploying a standalone
RAP application (with Jetty) here:
http://rapblog.innoopract.com/2007/11/rap-deployment-part-1- deploying-your.html

It works great for Windows. The trouble is, how to deploy & run on Linux
or Mac? Inside cygwin, I run this on the command line
java -jar org.eclipse.osgi_3.3.2.R33x_v20080105.jar -configuration
config-linux -consoleLog -debug -clean -dev -console

and I get the below error. I find this error to be a common problem
plaguing deployment of Eclipse ECP and RAP applications.
Thanks,
David

!ENTRY org.eclipse.rwt.widgets.upload 4 0 2008-05-21 22:57:36.685
!MESSAGE Could not register themeable widget
'org.eclipse.rwt.widgets.Upload'.
!STACK 0
java.lang.NoClassDefFoundError: org/xml/sax/SAXException
at
org.eclipse.ui.internal.servlet.EngineConfigWrapper.register Themeable
Widgets(EngineConfigWrapper.java:261)
at
org.eclipse.ui.internal.servlet.EngineConfigWrapper.<init>(EngineConf
igWrapper.java:83)
at
org.eclipse.ui.internal.servlet.RequestHandler.init(RequestH andler.ja
va:40)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.init(Se
rvletRegistration.java:64)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.regis terServle
t(ProxyServlet.java:142)
at
org.eclipse.equinox.http.servlet.internal.HttpServiceImpl.re gisterSer
vlet(HttpServiceImpl.java:50)
at
org.eclipse.ui.internal.servlet.HttpServiceTracker.addingSer vice(Http
ServiceTracker.java:41)
at
org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(Ser viceTrack
er.java:1064)
at
org.osgi.util.tracker.ServiceTracker$Tracked.track(ServiceTr acker.jav
a:1042)
at
org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged( ServiceTr
acker.java:967)
at
org.eclipse.osgi.framework.internal.core.FilteredServiceList ener.serv
iceChanged(FilteredServiceListener.java:94)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEv
ent(BundleContextImpl.java:1224)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventM
anager.java:195)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv entSynchr
onous(ListenerQueue.java:141)
at
org.eclipse.osgi.framework.internal.core.Framework.publishSe rviceEven
tPrivileged(Framework.java:1603)
at
org.eclipse.osgi.framework.internal.core.Framework.publishSe rviceEven
t(Framework.java:1578)
at
org.eclipse.osgi.framework.internal.core.ServiceRegistration Impl. <ini
t>(ServiceRegistrationImpl.java:103)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.c reateServ
iceRegistration(BundleContextImpl.java:657)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.r egisterSe
rvice(BundleContextImpl.java:609)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.r egisterSe
rvice(BundleContextImpl.java:675)
at
org.eclipse.equinox.http.servlet.internal.Activator.register HttpServi
ce(Activator.java:78)
at
org.eclipse.equinox.http.servlet.internal.Activator.addProxy Servlet(A
ctivator.java:57)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.init( ProxyServ
let.java:39)
at
org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHtt
pServiceServlet.init(HttpServerManager.java:247)
at
org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletH older.jav
a:383)
at
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder. java:243)

at
org.mortbay.jetty.servlet.ServletHandler.initializeServlets( ServletHa
ndler.java:446)
at
org.mortbay.jetty.servlet.ServletHandler.doStart(ServletHand ler.java:
415)
at org.mortbay.util.Container.start(Container.java:72)
at
org.mortbay.http.HttpContext.startHandlers(HttpContext.java: 1704)
at org.mortbay.http.HttpContext.doStart(HttpContext.java:1675)
at org.mortbay.util.Container.start(Container.java:72)
at org.mortbay.http.HttpServer.doStart(HttpServer.java:708)
at org.mortbay.util.Container.start(Container.java:72)
at
org.eclipse.equinox.http.jetty.internal.HttpServerManager.up dated(Htt
pServerManager.java:94)
at
org.eclipse.equinox.http.jetty.internal.Activator.start(Acti vator.jav
a:53)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(Bund
leContextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActiv
ator(BundleContextImpl.java:993)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(Bund
leContextImpl.java:974)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(Bundl
eHost.java:346)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(Abstra
ctBundle.java:350)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Frame
work.java:1118)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBund
les(StartLevelManager.java:634)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(St
artLevelManager.java:508)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStart
Level(StartLevelManager.java:282)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEv
ent(StartLevelManager.java:468)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventM
anager.java:195)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread .run(Even
tManager.java:297)
ERROR: Could not register themeable widget
'org.eclipse.rwt.widgets.Upload'. Rea
son: org/xml/sax/SAXException

!ENTRY org.eclipse.osgi 4 0 2008-05-21 22:57:36.776
!MESSAGE An unexpected runtime error has occurred.
!STACK 0
java.lang.NoClassDefFoundError: org/xml/sax/SAXException
at
org.eclipse.ui.internal.servlet.EngineConfigWrapper.register Themes(En
gineConfigWrapper.java:288)
at
org.eclipse.ui.internal.servlet.EngineConfigWrapper.<init>(EngineConf
igWrapper.java:84)
at
org.eclipse.ui.internal.servlet.RequestHandler.init(RequestH andler.ja
va:40)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.init(Se
rvletRegistration.java:64)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.regis terServle
t(ProxyServlet.java:142)
at
org.eclipse.equinox.http.servlet.internal.HttpServiceImpl.re gisterSer
vlet(HttpServiceImpl.java:50)
at
org.eclipse.ui.internal.servlet.HttpServiceTracker.addingSer vice(Http
ServiceTracker.java:41)
at
org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(Ser viceTrack
er.java:1064)
at
org.osgi.util.tracker.ServiceTracker$Tracked.track(ServiceTr acker.jav
a:1042)
at
org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged( ServiceTr
acker.java:967)
at
org.eclipse.osgi.framework.internal.core.FilteredServiceList ener.serv
iceChanged(FilteredServiceListener.java:94)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEv
ent(BundleContextImpl.java:1224)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventM
anager.java:195)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv entSynchr
onous(ListenerQueue.java:141)
at
org.eclipse.osgi.framework.internal.core.Framework.publishSe rviceEven
tPrivileged(Framework.java:1603)
at
org.eclipse.osgi.framework.internal.core.Framework.publishSe rviceEven
t(Framework.java:1578)
at
org.eclipse.osgi.framework.internal.core.ServiceRegistration Impl. <ini
t>(ServiceRegistrationImpl.java:103)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.c reateServ
iceRegistration(BundleContextImpl.java:657)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.r egisterSe
rvice(BundleContextImpl.java:609)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.r egisterSe
rvice(BundleContextImpl.java:675)
at
org.eclipse.equinox.http.servlet.internal.Activator.register HttpServi
ce(Activator.java:78)
at
org.eclipse.equinox.http.servlet.internal.Activator.addProxy Servlet(A
ctivator.java:57)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.init( ProxyServ
let.java:39)
at
org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHtt
pServiceServlet.init(HttpServerManager.java:247)
at
org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletH older.jav
a:383)
at
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder. java:243)

at
org.mortbay.jetty.servlet.ServletHandler.initializeServlets( ServletHa
ndler.java:446)
at
org.mortbay.jetty.servlet.ServletHandler.doStart(ServletHand ler.java:
415)
at org.mortbay.util.Container.start(Container.java:72)
at
org.mortbay.http.HttpContext.startHandlers(HttpContext.java: 1704)
at org.mortbay.http.HttpContext.doStart(HttpContext.java:1675)
at org.mortbay.util.Container.start(Container.java:72)
at org.mortbay.http.HttpServer.doStart(HttpServer.java:708)
at org.mortbay.util.Container.start(Container.java:72)
at
org.eclipse.equinox.http.jetty.internal.HttpServerManager.up dated(Htt
pServerManager.java:94)
at
org.eclipse.equinox.http.jetty.internal.Activator.start(Acti vator.jav
a:53)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(Bund
leContextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActiv
ator(BundleContextImpl.java:993)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(Bund
leContextImpl.java:974)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(Bundl
eHost.java:346)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(Abstra
ctBundle.java:350)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Frame
work.java:1118)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBund
les(StartLevelManager.java:634)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(St
artLevelManager.java:508)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStart
Level(StartLevelManager.java:282)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEv
ent(StartLevelManager.java:468)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventM
anager.java:195)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread .run(Even
tManager.java:297)
Re: deploying/running RAP: get NoClassDefFoundError: org/xml/sax/SAXException [message #89452 is a reply to message #89302] Thu, 22 May 2008 21:46 Go to previous message
David Donohue is currently offline David DonohueFriend
Messages: 104
Registered: July 2009
Senior Member
I had to do this to get RAP (standalone with Jetty) to run in cygwin. I
hope & assume this means it will run on Linux (and Mac?)

(1) I copied bundle org.eclipse.osgi_3.3.2.R33x_v20080105.jar to my root
(2) To the root directory, I added a Linux-specific config folder, which I
call config-linux. I added a config.ini file inside this folder, with
this text:

osgi.bundles=plugins/org.eclipse.equinox.common@2:start,plugins/org.eclipse.update.configurator@3:start,plugins/org.eclipse.rap.ui@4:start,plugins/org.eclipse.equinox.http.jetty@4:start

# do not run an eclipse application
eclipse.ignoreApp=true
# don't shutdown osgi after exiting (or not running) the application
osgi.noShutdown=true

# incoming port for the server
org.osgi.service.http.port=7070

(3) In the root folder, I created run.sh, with this text:

java -Dorg.osgi.framework.bootdelegation=* -jar
org.eclipse.osgi_3.3.2.R33x_v20080105.jar -configuration config-linux
-consoleLog -debug -clean -dev -console

(4) So to run the app on cygwin or Linux, you go to the root folder and
type
sh run.sh
and this runs the application without any SAXException errors

David Donohue
Previous Topic:Applets as views
Next Topic:Combo problem about setvisibleCount
Goto Forum:
  


Current Time: Sun Oct 06 12:31:45 GMT 2024

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

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

Back to the top