Entrypoint issue with RAP 1.5 M6 [message #832914] |
Fri, 30 March 2012 14:54  |
Eclipse User |
|
|
|
Hi,
I'm currently migrating a RAP application from 1.4.x to 1.5M6. With that milestone the parameter attribute for an EntryPoint is deprecated, so I tried to use the new path attribute.
I removed the parameter and set the path to /cadmin. Within the run configuration I removed the Startup Parameter and set the Context Path instead. The following URL is suggested:
[http:]//127.0.0.1:10180/cadmin/servletpath
When I try to run my application I cannot access the app. I get an error (HTTP ERROR: 404). The log says: java.lang.IllegalArgumentException: Entry point not found: default
Now I just added the old parameter again, so path is set to /cadmin and parameter to cadmin. With that configuration I can access the app using the URL [http:]//127.0.0.1:10180/cadmin/servletpath
Any hints what I've done wrong?
Thanks.
Regards
Karsten
|
|
|
|
|
Re: Entrypoint issue with RAP 1.5 M6 [message #832986 is a reply to message #832972] |
Fri, 30 March 2012 16:35  |
Eclipse User |
|
|
|
Karsten,
just tested the scenario and it's working for me.
<entrypoint
class="entrypoint.CAdminEntryPoint"
id="cadmin.entrypoint"
path="/cadmin">
</entrypoint>
With Run Configuration: Startup Parameter is empty, Servlet Path is
"/cadmin", Context Path is empty.
You didn't mention anything about Servlet Path?
Best,
Ivan
On 3/30/2012 11:06 PM, Karsten Voigt wrote:
> I just retested the entrypoint stuff:
>
>
> <entrypoint
> class="entrypoint.CAdminEntryPoint"
> id="cadmin.entrypoint"
> path="/cadmin">
> </entrypoint>
>
>
> With Run Configuration: Startup Parameter is null; Context Path is
> cadmin ==> does not work.
>
>
> <entrypoint
> class="entrypoint.CAdminEntryPoint"
> id="cadmin.entrypoint"
> parameter="cadmin"
> path="/cadmin">
> </entrypoint>
>
>
> With Run Configuration: Startup Parameter is null; Context Path is
> cadmin ==> does work.
>
> And now (at least for me) the surprising one:
>
>
> <entrypoint
> class="entrypoint.CAdminEntryPoint"
> id="cadmin.entrypoint"
> parameter="cadmin">
> </entrypoint>
>
>
> With Run Configuration: Startup Parameter is null; Context Path is
> cadmin ==> does work.
--
Ivan Furnadjiev
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
Powered by
FUDForum. Page generated in 0.07859 seconds