Re: Very Strange 404 to JSP with getRequestDispatcher().forward()

2015-12-24 Thread Konstantin Kolinko
2015-12-24 18:12 GMT+03:00 Marc Boorshtein :
>>
>> You have to provide the actual source code.
>>
>> There is an example in the examples webapp that performs forwarding to
>> a JSP and it works,
>>
>> \webapps\examples\WEB-INF\classes\ServletToJsp.java
>>
>>
> So the good news is that I got it to work by getting rid of any of the
> methods that were overiding the implementation with a call to the child
> request.  Here's the links to the code that does NOT work : (I haven't
> checked in the working code yet):
>
> https://github.com/TremoloSecurity/OpenUnison/blob/1.0.6-Dev/unison/unison-server-core/src/main/java/com/tremolosecurity/proxy/ProxyRequest.java
>
> https://github.com/TremoloSecurity/OpenUnison/blob/1.0.6-Dev/unison/unison-server-core/src/main/java/com/tremolosecurity/embedd/LocalSessionRequest.java

Your request wrappers store their own reference to a
HttpServletRequest in addition to the one stored by the
ServletRequestWrapper class.


My guess is that your issue will be solved if you either override
ServletRequestWrapper.setRequest() to update your request field,  or
use ServletRequestWrapper.getRequest() method to access the wrapped
object, instead of storing it by yourself.


Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Very Strange 404 to JSP with getRequestDispatcher().forward()

2015-12-24 Thread Marc Boorshtein
>
>
>
> Your request wrappers store their own reference to a
> HttpServletRequest in addition to the one stored by the
> ServletRequestWrapper class.
>
>
> My guess is that your issue will be solved if you either override
> ServletRequestWrapper.setRequest() to update your request field,  or
> use ServletRequestWrapper.getRequest() method to access the wrapped
> object, instead of storing it by yourself.
>
>
Sounds like good advise.

Thanks


Re: Very Strange 404 to JSP with getRequestDispatcher().forward()

2015-12-24 Thread Konstantin Kolinko
2015-12-24 17:37 GMT+03:00 Marc Boorshtein :
> All,
>
> I'm having a very strange issue with
> request.getServletContext().getRequestDispatcher().forward().  It gives me
> a 404 on a JSP page that if I go to directly, works fine.  This is with
> tomcat 8.0.30 on OSX on JDK :
>
> ava version "1.7.0_65"
>
> Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
>
> Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
>
> What makes this a bit different is that the request object is wrapped with
> a couple of implementations of HttpRequestWrapper.  The methods that seem
> to matter (getAttribute and setAttribute) are just passthroughs.  After
> doing some debugging, I've traced the main issue to the JspServlet where
> the jspUri variable is being set to the original URI
> (/auth/idp/MyIdP/completeFed) not the forwarded URI
> (/auth/fed/postauthnresp.jsp).  The request being passed into the
> JspServlet's service method is the same request object as is being sent to
> the forward method.
>
> This code works perfectly well under Jetty as a frame of reference.  Any
> help would be greatly appreciated.


You have to provide the actual source code.

There is an example in the examples webapp that performs forwarding to
a JSP and it works,

\webapps\examples\WEB-INF\classes\ServletToJsp.java


Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Very Strange 404 to JSP with getRequestDispatcher().forward()

2015-12-24 Thread Marc Boorshtein
>
> You have to provide the actual source code.
>
> There is an example in the examples webapp that performs forwarding to
> a JSP and it works,
>
> \webapps\examples\WEB-INF\classes\ServletToJsp.java
>
>
So the good news is that I got it to work by getting rid of any of the
methods that were overiding the implementation with a call to the child
request.  Here's the links to the code that does NOT work : (I haven't
checked in the working code yet):

https://github.com/TremoloSecurity/OpenUnison/blob/1.0.6-Dev/unison/unison-server-core/src/main/java/com/tremolosecurity/proxy/ProxyRequest.java

https://github.com/TremoloSecurity/OpenUnison/blob/1.0.6-Dev/unison/unison-server-core/src/main/java/com/tremolosecurity/embedd/LocalSessionRequest.java

 Thanks
Marc


RE: very strange. SOLVED

2006-05-24 Thread Asensio, Rodrigo
Hi all, FYI, 
There was a callback function that was trying to execute after the
window was closed. For that reason, the screen stays blank.

Regards.

Rodrigo Asensio

-Original Message-
From: Asensio, Rodrigo [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 23, 2006 12:04 PM
To: Tomcat Users List
Subject: RE: very strange

It is getting better! It works with tomcat 5.5.12 up to 15, but not with
17

-Original Message-
From: Asensio, Rodrigo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23, 2006 10:28 AM
To: Tomcat Users List
Subject: RE: very strange

Nop, Im using DBCP with a huge Oracle, there is a lot of connections
availables.

Seems that the session get lost.

I cant call any page, servlet, not even a plain jsp file 

-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23, 2006 10:06 AM
To: Tomcat Users List
Subject: Re: very strange

Asensio, Rodrigo ha scritto:
 I have a webapp in server A and when I hit a button, It opens a new 
 window ( window.open() ) calling my servlet or any jsp in server B. It

 works few times..but there is a moment that stop working, my tomcat 
 didnt receive not even the request. The users see a blank screen 
 working.. but nothing happens.

Just a thought. This seems the typical situation in which the webapp
runs out of available db connections. Do you close all the connections
when you finish your operations?
HTH
Antonio

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This message (including any attachments) contains confidential and/or
proprietary information intended only for the addressee.  
Any unauthorized disclosure, copying, distribution or reliance on the
contents of this information is strictly prohibited and may constitute a
violation of law.  If you are not the intended recipient, please notify
the sender immediately by responding to this e-mail, and delete the
message from your system.  If you have any questions about this e-mail
please notify the sender immediately.

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This message (including any attachments) contains confidential and/or
proprietary information intended only for the addressee.  
Any unauthorized disclosure, copying, distribution or reliance on the
contents of this information is strictly prohibited and may constitute a
violation of law.  If you are not the intended recipient, please notify
the sender immediately by responding to this e-mail, and delete the
message from your system.  If you have any questions about this e-mail
please notify the sender immediately. 

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This message (including any attachments) contains confidential
and/or proprietary information intended only for the addressee.
Any unauthorized disclosure, copying, distribution or reliance on
the contents of this information is strictly prohibited and may
constitute a violation of law.  If you are not the intended
recipient, please notify the sender immediately by responding to
this e-mail, and delete the message from your system.  If you
have any questions about this e-mail please notify the sender
immediately.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: very strange

2006-05-23 Thread Antonio Petrelli

Asensio, Rodrigo ha scritto:

I have a webapp in server A and when I hit a button, It opens a new
window ( window.open() ) calling my servlet or any jsp in server B. It
works few times..but there is a moment that stop working, my tomcat
didnt receive not even the request. The users see a blank screen
working.. but nothing happens.


Just a thought. This seems the typical situation in which the webapp 
runs out of available db connections. Do you close all the connections 
when you finish your operations?

HTH
Antonio

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: very strange

2006-05-23 Thread Asensio, Rodrigo
Nop, Im using DBCP with a huge Oracle, there is a lot of connections
availables.

Seems that the session get lost.

I cant call any page, servlet, not even a plain jsp file 

-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 23, 2006 10:06 AM
To: Tomcat Users List
Subject: Re: very strange

Asensio, Rodrigo ha scritto:
 I have a webapp in server A and when I hit a button, It opens a new 
 window ( window.open() ) calling my servlet or any jsp in server B. It

 works few times..but there is a moment that stop working, my tomcat 
 didnt receive not even the request. The users see a blank screen 
 working.. but nothing happens.

Just a thought. This seems the typical situation in which the webapp
runs out of available db connections. Do you close all the connections
when you finish your operations?
HTH
Antonio

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This message (including any attachments) contains confidential
and/or proprietary information intended only for the addressee.
Any unauthorized disclosure, copying, distribution or reliance on
the contents of this information is strictly prohibited and may
constitute a violation of law.  If you are not the intended
recipient, please notify the sender immediately by responding to
this e-mail, and delete the message from your system.  If you
have any questions about this e-mail please notify the sender
immediately.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: very strange

2006-05-23 Thread Asensio, Rodrigo
It is getting better! It works with tomcat 5.5.12 up to 15, but not with
17

-Original Message-
From: Asensio, Rodrigo [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 23, 2006 10:28 AM
To: Tomcat Users List
Subject: RE: very strange

Nop, Im using DBCP with a huge Oracle, there is a lot of connections
availables.

Seems that the session get lost.

I cant call any page, servlet, not even a plain jsp file 

-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23, 2006 10:06 AM
To: Tomcat Users List
Subject: Re: very strange

Asensio, Rodrigo ha scritto:
 I have a webapp in server A and when I hit a button, It opens a new 
 window ( window.open() ) calling my servlet or any jsp in server B. It

 works few times..but there is a moment that stop working, my tomcat 
 didnt receive not even the request. The users see a blank screen 
 working.. but nothing happens.

Just a thought. This seems the typical situation in which the webapp
runs out of available db connections. Do you close all the connections
when you finish your operations?
HTH
Antonio

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This message (including any attachments) contains confidential and/or
proprietary information intended only for the addressee.  
Any unauthorized disclosure, copying, distribution or reliance on the
contents of this information is strictly prohibited and may constitute a
violation of law.  If you are not the intended recipient, please notify
the sender immediately by responding to this e-mail, and delete the
message from your system.  If you have any questions about this e-mail
please notify the sender immediately.

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This message (including any attachments) contains confidential
and/or proprietary information intended only for the addressee.
Any unauthorized disclosure, copying, distribution or reliance on
the contents of this information is strictly prohibited and may
constitute a violation of law.  If you are not the intended
recipient, please notify the sender immediately by responding to
this e-mail, and delete the message from your system.  If you
have any questions about this e-mail please notify the sender
immediately.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]