Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Entry point / not working in WAR(Root "/" entry point not working for WAR deployments)
Entry point / not working in WAR [message #1241039] Fri, 07 February 2014 06:40 Go to next message
John Gymer is currently offline John Gymer
Messages: 187
Registered: November 2012
Location: UK
Senior Member
We have taken advantage of the support for root entry points "/", which works great for stand-alone OSGi deployments, but it seems to cause issues when running in a WAR inside an AppServer. We've tried JBoss and WebLogic, both having the same problems.
The symptoms are that the request never returns, so the browser just sits there with a blank white page. No error, no messages in the AppServer console.
We have multiple entry points defined in the applications we have tested with, and they work ok as long as there isn't an "/" root entry point included.

configuration.jar something like this:

application.addEntryPoint( "/", TABRISEntryPoint_rapideapproot.class, epProps );
application.addEntryPoint( "/FT1", TABRISEntryPoint_FT1.class, epProps );
application.addEntryPoint( "/FT2", TABRISEntryPoint_FT2.class, epProps );
application.addEntryPoint( "/FT3", TABRISEntryPoint_FT3.class, epProps );
etc.

We always put the root entry point first.

Is this a known limitation of using root entry point, or is it possible we are doing something wrong?

Thanks, John


---
Just because you can doesn't mean you should
Re: Entry point / not working in WAR [message #1242869 is a reply to message #1241039] Mon, 10 February 2014 02:38 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1793
Registered: July 2009
Senior Member
Hi John,
please open a bugzilla and we will investigate the cause.
Thanks,
Ivan

--
Ivan Furnadjiev

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Entry point / not working in WAR [message #1243065 is a reply to message #1241039] Mon, 10 February 2014 08:19 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf Sternberg
Messages: 1290
Registered: July 2009
Senior Member

Hi John,

Of course, I've checked that the "/" servlet path is also working with
WAR files. However, "/" is a specific case in the servlet API and I even
found that Equinox and Felix handle servlets registered at "/" a bit
differently. So chances are that either you or us missed something.

I assume that all bundles are started and there are no exceptions logged
etc. Could you try to remote-debug the container and see where these
request threads are hanging?

Regards,
Ralf

--
Ralf Sternberg

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Entry point / not working in WAR [message #1256603 is a reply to message #1243065] Tue, 25 February 2014 10:56 Go to previous messageGo to next message
John Gymer is currently offline John Gymer
Messages: 187
Registered: November 2012
Location: UK
Senior Member
Hi Ralf,
Back on the case again with this one... I've just refreshed to the latest nightly of RAP 2.3 and still have issues with root entry point when running as a WAR under an AppServer. I've tested with JBoss and WebLogic. Standalone OSGi is still ok.
I see no messages in the console, and all bundles are resolved as normal.
Would you be able to help me understand how to do remote-debug on the container, as I'm not familiar with this?
Thanks, John


---
Just because you can doesn't mean you should
Re: Entry point / not working in WAR [message #1257363 is a reply to message #1256603] Wed, 26 February 2014 05:41 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf Sternberg
Messages: 1290
Registered: July 2009
Senior Member

Hi Austin,

[1] is a good article that helps you get started.

I'd suggest to put a breakpoint into RWTServlet.handleRequest().

HTH, Ralf


[1] http://www.eclipsezone.com/eclipse/forums/t53459.html

--
Ralf Sternberg

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Entry point / not working in WAR [message #1258380 is a reply to message #1241039] Thu, 27 February 2014 05:20 Go to previous messageGo to next message
Tiburon T is currently offline Tiburon T
Messages: 53
Registered: October 2011
Member
Hi,

since I just posted a kind of similar issue... Did you try opening the page with a trailing / in the address? We also see a white page if we omit the slash.

http://localhost:8080/example -> white page
http://localhost:8080/example/ -> our app

Maybe that helps,
Tibu
Re: Entry point / not working in WAR [message #1258384 is a reply to message #1258380] Thu, 27 February 2014 05:24 Go to previous message
John Gymer is currently offline John Gymer
Messages: 187
Registered: November 2012
Location: UK
Senior Member
Hi Tibu,
Thanks for the suggestion, but unfortunately not that simple.
I have multiple entry points registered, one of which is the / root.
None of the entry points work if / is present.
Best regards, John


---
Just because you can doesn't mean you should
Previous Topic:drop listener
Next Topic:RAP in Geronimo/EJB lookups
Goto Forum:
  


Current Time: Thu Aug 21 04:17:07 EDT 2014

Powered by FUDForum. Page generated in 0.01874 seconds