Skip to main content


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 11:40 Go to next message
John Gymer is currently offline John GymerFriend
Messages: 279
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 07:38 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 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 13:19 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
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 15:56 Go to previous messageGo to next message
John Gymer is currently offline John GymerFriend
Messages: 279
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 10:41 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
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 10:20 Go to previous messageGo to next message
Tiburon T is currently offline Tiburon TFriend
Messages: 61
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 10:24 Go to previous message
John Gymer is currently offline John GymerFriend
Messages: 279
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:IE8 access denied in iframe
Next Topic:Installation of dropdown2.2 (incubation) fails
Goto Forum:
  


Current Time: Fri Apr 19 19:47:28 GMT 2024

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

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

Back to the top