Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Entrypoint issue with RAP 1.5 M6
Entrypoint issue with RAP 1.5 M6 [message #832914] Fri, 30 March 2012 14:54 Go to next message
Eclipse UserFriend
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 #832935 is a reply to message #832914] Fri, 30 March 2012 15:13 Go to previous messageGo to next message
Eclipse UserFriend
Karsten,
did you change you entry point declaration (the extension point)? Set
"path" attribute to "/cadmin" there and (optional) remove the
"parameter" attribute.
HTH,
Ivan

On 3/30/2012 9:54 PM, Karsten Voigt wrote:
> 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

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Entrypoint issue with RAP 1.5 M6 [message #832972 is a reply to message #832935] Fri, 30 March 2012 16:06 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: Entrypoint issue with RAP 1.5 M6 [message #832986 is a reply to message #832972] Fri, 30 March 2012 16:35 Go to previous message
Eclipse UserFriend
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/
Previous Topic:how to disable the scrolledform's scroll bar?
Next Topic:How to correctly cancel a running job
Goto Forum:
  


Current Time: Mon Jun 23 09:44:49 EDT 2025

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

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

Back to the top