Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Problem in deploying my first RAP application
Problem in deploying my first RAP application [message #483882] Thu, 03 September 2009 13:24 Go to next message
Kay Chee Cheung is currently offline Kay Chee CheungFriend
Messages: 8
Registered: July 2009
Junior Member
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.createU I(EntryPointManager.java:77)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWT LifeCycle.java:231)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.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
Re: Problem in deploying my first RAP application [message #483890 is a reply to message #483882] Thu, 03 September 2009 14:01 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 338
Registered: July 2009
Senior Member
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.createU I(EntryPointManager.java:77)
>
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWT LifeCycle.java:231)
>
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.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
Re: Problem in deploying my first RAP application [message #484157 is a reply to message #483890] Fri, 04 September 2009 13:09 Go to previous messageGo to next message
Kay Chee Cheung is currently offline Kay Chee CheungFriend
Messages: 8
Registered: July 2009
Junior Member
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@eclipsesource.com> wrote in message
news:h7oi75$f8j$1@build.eclipse.org...
> 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.createU I(EntryPointManager.java:77)
>> at
>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWT LifeCycle.java:231)
>> at
>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.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
Re: Problem in deploying my first RAP application [message #484161 is a reply to message #484157] Fri, 04 September 2009 13:22 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 338
Registered: July 2009
Senior Member
Hi Kay,

to listen on a specific port, just add the port number after the console
command.

<init-param>
<param-name>commandline</param-name>
<param-value>-console 9988</param-value>
</init-param>

Login to the OSGi console and use "ss" and "diag <bundleid>" to find out
what is missing.

Regards,
Ben

Eclipse Corner wrote:
> 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@eclipsesource.com> wrote in message
> news:h7oi75$f8j$1@build.eclipse.org...
>> 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.createU I(EntryPointManager.java:77)
>>> at
>>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWT LifeCycle.java:231)
>>> at
>>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.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
>
Re: Problem in deploying my first RAP application [message #484269 is a reply to message #484161] Sat, 05 September 2009 01:45 Go to previous messageGo to next message
Kay Chee Cheung is currently offline Kay Chee CheungFriend
Messages: 8
Registered: July 2009
Junior Member
Hi Benjamin,
Thanks very much for your help.
I use the "diag<bundleid>" command and found out that the plugin for
my JDBC driver was not resolved.
My JDBC driver plugin was created using default setting for Eclipse
platform. I created another plugin for OSGi platform. It is working now!
Appreciate your help very much!

Regards
Kay Chee Cheung

"Benjamin Muskalla" <bmuskalla@eclipsesource.com> wrote in message
news:h7r4ap$6ue$1@build.eclipse.org...
> Hi Kay,
>
> to listen on a specific port, just add the port number after the console
> command.
>
> <init-param>
> <param-name>commandline</param-name>
> <param-value>-console 9988</param-value>
> </init-param>
>
> Login to the OSGi console and use "ss" and "diag <bundleid>" to find out
> what is missing.
>
> Regards,
> Ben
>
> Eclipse Corner wrote:
>> 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@eclipsesource.com> wrote in message
>> news:h7oi75$f8j$1@build.eclipse.org...
>>> 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.createU I(EntryPointManager.java:77)
>>>> at
>>>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWT LifeCycle.java:231)
>>>> at
>>>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.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
>>
Re: Problem in deploying my first RAP application [message #791809 is a reply to message #484269] Mon, 06 February 2012 09:39 Go to previous message
no name no name is currently offline no name no nameFriend
Messages: 28
Registered: February 2012
Junior Member
Hi Benjamin
As you have mentioned in this forum
Login to the OSGi console and use "ss" and "diag <bundleid>" to find out
what is missing.


I am also getting same problem
Can you please tell me the syntax for login ths same osgi console?
Previous Topic:Deploying RAP Application
Next Topic:Custom Widget (Flash) and IE
Goto Forum:
  


Current Time: Thu Apr 25 21:18:10 GMT 2024

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

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

Back to the top