problem launching the demos [message #85701] |
Thu, 01 May 2008 07:59 |
Eclipse User |
|
|
|
Originally posted by: rlagoue.yahoo.fr
Hi,
i'm new to RAP and would like to write an application with it. But as i
tried the demos (like in the video), the application threw an exception.
Here is the complete text printed out
osgi> 30.04.2008 22:38:13 org.mortbay.http.HttpServer doStart
INFO: Version Jetty/5.1.x
30.04.2008 22:38:13 org.mortbay.util.Container start
INFO: Started org.mortbay.jetty.servlet.ServletHandler@9a9b65
30.04.2008 22:38:13 org.mortbay.util.Container start
INFO: Started HttpContext[/,/]
30.04.2008 22:38:13 org.mortbay.http.SocketListener start
INFO: Started SocketListener on 0.0.0.0:51850
30.04.2008 22:38:13 org.mortbay.util.Container start
INFO: Started org.mortbay.http.HttpServer@1d36dfe
30.04..2008 22:38:15 org.mortbay.jetty.servlet.ServletHandler handle
SCHWERWIEGEND: /rap?startup=default:
org.eclipse.rwt.internal.resources.ResourceRegistrationExcep tion: Failed
to register resource 'qx.js'.
at
org.eclipse.rwt.internal.resources.ResourceManagerImpl.doReg ister(ResourceManagerImpl.java:411)
at
org.eclipse.rwt.internal.resources.ResourceManagerImpl.regis ter(ResourceManagerImpl.java:224)
at
org.eclipse.ui.internal.servlet.ResourceManagerFactory$Resou rceManagerWrapper.register(ResourceManagerFactory.java:135)
at
org.eclipse.swt.internal.widgets.displaykit.QooxdooResources Util.register(QooxdooResourcesUtil.java:229)
at
org.eclipse.swt.internal.widgets.displaykit.QooxdooResources Util.registerResources(QooxdooResourcesUtil.java:141)
at
org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.write Libraries(DisplayLCA.java:217)
at
org.eclipse.rwt.internal.lifecycle.DisplayUtil.writeLibrarie s(DisplayUtil.java:66)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getLibraries(LifeCycleServiceHandlerConfigurer.java:2 02)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getTemplateOfStartupPage(LifeCycleServiceHandlerConfi gurer.java:60)
at
org.eclipse.rwt.internal.service..BrowserSurvey.load(Browser Survey.java:123)
at
org.eclipse.rwt.internal.service.BrowserSurvey.renderScript( BrowserSurvey.java:90)
at
org.eclipse.rwt.internal.service.BrowserSurvey.sendBrowserSu rvey(BrowserSurvey.java:51)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler.int ernalService(LifeCycleServiceHandler.java:180)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler.acc ess$1(LifeCycleServiceHandler.java:168)
at
org.eclipse.rwt.internal..service.LifeCycleServiceHandler$Li feCycleServiceHandlerSync.doService(LifeCycleServiceHandler. java:133)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.serviceInternal(RWTLifeCycleServiceHandlerSync.java:45 )
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.service(RWTLifeCycleServiceHandlerSync.java:34)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler.ser vice(LifeCycleServiceHandler.java:140)
at
org.eclipse.rwt.internal.service.ServiceManager$HandlerDispa tcher.service(ServiceManager.java:100)
at
org.eclipse..rwt.internal.engine.RWTDelegate.doPost(RWTDeleg ate.java:61)
at
org.eclipse.ui.internal.servlet.RequestHandler.service(Reque stHandler.java:52)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet..proc essAlias(ProxyServlet.java:111)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:59)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:270)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:428)
at
org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHan dler.java:677)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:568)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java: 820)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.ja va:986)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 37)
at
org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
Caused by: java.io.IOException: Access is denied
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:850)
at
org.eclipse.rwt.internal.resources.ResourceManagerImpl.creat eFile(ResourceManagerImpl.java:448)
at
org.eclipse.rwt.internal.resources..ResourceManagerImpl.doRe gister(ResourceManagerImpl.java:427)
at
org.eclipse.rwt.internal.resources.ResourceManagerImpl.doReg ister(ResourceManagerImpl.java:407)
... 38 more
Can somebody tell me where the problem is?
thanks
|
|
|
Re: problem launching the demos [message #85749 is a reply to message #85701] |
Fri, 02 May 2008 09:07 |
Eclipse User |
|
|
|
Originally posted by: rsternberg.innoopract.com
Hi Rodrigue,
seems you have to check the file system permissions of your runtime
workspace. You can also set it to something you have write access to in
your launch configuration, tab "Arguments".
Rodrigue wrote:
> [...]
> Caused by: java.io.IOException: Access is denied
> at java.io.WinNTFileSystem.createFileExclusively(Native Method)
> at java.io.File.createNewFile(File.java:850)
> at
> org.eclipse.rwt.internal.resources.ResourceManagerImpl.creat eFile(ResourceManagerImpl.java:448)
Ralf
|
|
|
Re: problem launching the demos [message #85794 is a reply to message #85749] |
Fri, 02 May 2008 14:31 |
Eclipse User |
|
|
|
Originally posted by: rlagoue.yahoo.fr
Thanks for the help.
I solved the problem and got another exception this one:
java.lang.UnsupportedClassVersionError:
org/eclipse/rap/demo/controls/ControlsDemo (Unsupported major.minor
version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.def ineClass(DefaultClassLoader.java:165)
It seems like RAP only works with code compiled with the version 1.4*, and
throws this exception for any code compiled with the version 1.5 and more
Is it really the case?
thanks for any help
|
|
|
Re: problem launching the demos [message #85837 is a reply to message #85794] |
Sat, 03 May 2008 06:23 |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
which RAP version do you use? RAP is indeed compiled against 1.4. But
your problem sounds like you are trying to run Java 5 compliant byte
code in a Java 1.4 VM, so please check if your compile and runtime
settings are fitting. Maybe the launch config uses a 1.4 VM, while your
code is compiled against Java 5 or higher.
Ciao
Frank
-----Ursprüngliche Nachricht-----
Von: Rodrigue [mailto:rlagoue@yahoo.fr]
Bereitgestellt: Freitag, 2. Mai 2008 16:32
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: problem launching the demos
Betreff: Re: problem launching the demos
Thanks for the help.
I solved the problem and got another exception this one:
java.lang.UnsupportedClassVersionError:
org/eclipse/rap/demo/controls/ControlsDemo (Unsupported major.minor
version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.def ineClass(Def
aultClassLoader.java:165)
It seems like RAP only works with code compiled with the version 1.4*,
and throws this exception for any code compiled with the version 1.5 and
more
Is it really the case?
thanks for any help
|
|
|
Powered by
FUDForum. Page generated in 0.03369 seconds