Hi Benjamin,
Thanks very much for your help. They are very encouraging. However,
I tried all of things you suggested and I still have the same problem.
I had especially tried the checklist in the FAQ website. The result
is still the same.
I want to try the following suggestion in FAQ :-
<init-param>
<param-name>commandline</param-name>
<param-value>-console</param-value>
</init-param>
You may want to add a port after -console in unix environments, you can
then telnet to the OSGi console.
However, I do not know the syntax to add a port to the console.
Would you be able to help?
The following is the config.ini in the my deployment.
#Eclipse Runtime Configuration File
osgi.bundles= au.com.b2b.jobentry@start,\
com.ibm.icu.base@start,\
org.eclipse.core.commands@start,\
org.eclipse.core.contenttype@start,\
org.eclipse.core.expressions@start,\
org.eclipse.core.jobs@start,\
org.eclipse.core.runtime@start,\
org.eclipse.equinox.app@start,\
org.eclipse.equinox.common@2:start,\
org.eclipse.equinox.http.registry@start,\
org.eclipse.equinox.http.servletbridge@start,\
org.eclipse.equinox.http.servlet@start,\
org.eclipse.equinox.preferences@start,\
org.eclipse.equinox.registry@start,\
org.eclipse.osgi.services@start,\
org.eclipse.rap.jface@start,\
org.eclipse.rap.rwt.q07,\
org.eclipse.rap.rwt@start,\
org.eclipse.rap.ui.forms@start,\
org.eclipse.rap.ui.views@start,\
org.eclipse.rap.ui.workbench@start,\
org.eclipse.rap.ui@start,\
org.eclipse.equinox.servletbridge.extensionbundle
osgi.bundles.defaultStartLevel=4
Thanks very much for your help.
Regards
Kay Chee Cheung
"Benjamin Muskalla" <bmuskalla@xxxxxxxxxxxxxxxxx> wrote in message
news:h7oi75$f8j$1@xxxxxxxxxxxxxxxxxxxx
Hi Kay,
the key you need to select an entrypoint is the url is "startup", not
"entry". Maybe this already solves your problem.
eg. http://localhost/jobentry/rap (which delegates to "default" if
nothing is specificed)
or
http://localhost/jobentry/rap?startup=myentrypointparameter
There are several other things you need to take into account if the
deployment does not work. See
http://wiki.eclipse.org/RAP/FAQ#Exported_.war_does_not_work
Greets,
Ben
Eclipse Corner wrote:
Hi,
I was trying to deploy my first RAP application. I followed the
instruction given in RAP Development Guide under "WAR Deployment". I
had just successfully deployed the Demo application, following the
instruction.
When I deployed my own RAP application, I got the following error
when trying to access the application using the URL
http://127.0.0.1:8080/jobentry/rap?entry=default :-
2009?9?3? ??10:43:59 org.apache.catalina.core.StandardWrapperValve
invoke
Exception: Servlet.service() for servlet equinoxbridgeservlet threw
exception
java.lang.IllegalArgumentException: An entry point named 'default' does
not exist.
at
org.eclipse.rwt.internal.lifecycle.EntryPointManager.createUI(EntryPointManager.java:77)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:231)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:119)
at java.lang.Thread.run(Thread.java:619)
The following is the portion of the plugin.xml for my plugin,
showing the "default" entrypoint:-
<?xml version="1.0" encoding="UTF-8" ?>
<?eclipse version="3.4"?>
- <plugin>
- <extension point="org.eclipse.rap.ui.entrypoint">
<entrypoint class="au.com.b2b.jobentry.Application"
parameter="default" id="au.com.b2b.jobentry.Application" />
</extension>
At first, my application does not have an entry point named
"default". So I change the name of the entry point to "default" and
make other changes so that the application can successfully run as RAP
application in Eclipse IDE. When I deploy the application again, I
still got the same error.
Any help would be much appreciated.
Regards
Kay Chee Cheung