|
Re: deploying/running RAP: get NoClassDefFoundError: org/xml/sax/SAXException [message #89452 is a reply to message #89302] |
Thu, 22 May 2008 21:46 |
David Donohue 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
|
|
|
Powered by
FUDForum. Page generated in 0.03748 seconds