Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Strange URL access once deployed on Tomcat
Strange URL access once deployed on Tomcat [message #920629] Sun, 23 September 2012 08:42 Go to next message
frank b is currently offline frank bFriend
Messages: 45
Registered: July 2009
Member
Hello,

I have a RAP application that runs fine in Eclipse with this type of URL access :

http://127.0.0.1:10080/servletName?startup=application

Once deployed in Tomcat server, I have to double the servlet name in the URL to access it properly :

http://127.0.0.1:8080/servletName/servletName?startup=application

Moreover it runs me into troubles for resource/images access !!!

Why ?????? I guess it is a deployment problem but...

Thanks
Re: Strange URL access once deployed on Tomcat [message #920738 is a reply to message #920629] Sun, 23 September 2012 11:31 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Frank,
in Tomcat the first one is not the servlet name, but the context path
(the name if the deployed WAR file) where your application is deployed.
HTH,
Ivan

On 9/23/2012 11:42 AM, frank b wrote:
> Hello,
>
> I have a RAP application that runs fine in Eclipse with this type of
> URL access :
>
> http://127.0.0.1:10080/servletName?startup=application
>
> Once deployed in Tomcat server, I have to double the servlet name in
> the URL to access it properly :
>
> http://127.0.0.1:8080/servletName/servletName?startup=application
>
> Moreover it runs me into troubles for resource/images access !!!
>
> Why ?????? I guess it is a deployment problem but...
>
> Thanks

--
Ivan Furnadjiev

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Strange URL access once deployed on Tomcat [message #920782 is a reply to message #920629] Sun, 23 September 2012 12:44 Go to previous messageGo to next message
frank b is currently offline frank bFriend
Messages: 45
Registered: July 2009
Member
Hi Ivan,

Ok, thanks a lot. So I need, if I have well understood, to modify context path of my application to "/".

I've tried to add a context fragment in webapps without success.
Now I'm looking around web.xml file

If you have any advice, you're welcome ! Smile

Thks,
frank
Re: Strange URL access once deployed on Tomcat [message #920865 is a reply to message #920629] Sun, 23 September 2012 14:44 Go to previous message
frank b is currently offline frank bFriend
Messages: 45
Registered: July 2009
Member
Sorry, this point is explained in detail in RAP/FAQ :

http://wiki.eclipse.org/RAP/FAQ#How_to_specify_context_path_when_using_the_RAP_launcher.3F

which explain what was my mistake !
Previous Topic:About PaintListener on Composite
Next Topic:use Nebula Grid, table.setData (RWT.FIXED_COLUMNS, 2), does not work
Goto Forum:
  


Current Time: Fri Apr 26 02:50:19 GMT 2024

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

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

Back to the top