[Resin-interest] Tiles issues on 4.0.x

2012-09-25 Thread Matt Pangaro

Hi all,
I'm working to try and diagnose some issues we're seeing with an 
existing application that's being moved from Resin 3.1.7a to Resin 4. So 
far we have tested on versions 4.0.20 and 4.0.31 and have seen the same 
issue.


The application uses Spring 3.0.4 and Struts 1.2.8 with Tiles. It 
currently uses c:import tags to insert tiles content in some cases, 
which worked fine in Resin 3.1.7a, but has caused exceptions in both 
Resin 4 versions. The error messages look something like:


[15:24:10,597] FATAL - Error ID: Error Msg:Unhandled exception 
'javax.servlet.jsp.JspException: ServletException in 
'/pages/tiles/page1.jsp': ServletException in 
'/tiles/search/search.jsp': c:import status code 401 recieved while 
serving /tiles/search/page2.jsp' for request '/admin/page'


As you can see, there's a  bunch of nesting going on. Using a 
jsp:include instead of the c:import clears up the issue, but we're 
trying to get to the root cause before we settle on a solution. We were 
hoping somebody else might have seen this.


Thanks,
Matt Pangaro

___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Tiles issues on 4.0.x

2012-09-25 Thread Scott Ferguson

On 09/24/2012 11:11 PM, Matt Pangaro wrote:

Hi all,
I'm working to try and diagnose some issues we're seeing with an 
existing application that's being moved from Resin 3.1.7a to Resin 4. 
So far we have tested on versions 4.0.20 and 4.0.31 and have seen the 
same issue.


The application uses Spring 3.0.4 and Struts 1.2.8 with Tiles. It 
currently uses c:import tags to insert tiles content in some cases, 
which worked fine in Resin 3.1.7a, but has caused exceptions in both 
Resin 4 versions. The error messages look something like:


[15:24:10,597] FATAL - Error ID: Error Msg:Unhandled exception 
'javax.servlet.jsp.JspException: ServletException in 
'/pages/tiles/page1.jsp': ServletException in 
'/tiles/search/search.jsp': c:import status code 401 recieved while 
serving /tiles/search/page2.jsp' for request '/admin/page'


As you can see, there's a  bunch of nesting going on. Using a 
jsp:include instead of the c:import clears up the issue, but we're 
trying to get to the root cause before we settle on a solution. We 
were hoping somebody else might have seen this.




Can you run this with a level=finer?

401 is an authentication issue. It's conceivable that some information 
isn't getting passed to the child request using c:import.


-- Scott


Thanks,
Matt Pangaro



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] Question about EL in JSPX

2012-09-25 Thread Matt Pangaro
We have a number of JSPX files that work properly in 3.1.7a, but are failing 
now in versions 4.0.20 and 4.0.31 with problems in the encoding. The question 
is whether the source JSPX file needs to be parsed properly as XML prior to 
processing, or after. The example below illustrates it:

This code works in 3.1.7a, but not 4.0.20/31:
c:if test=${variable eq 'Value'  !variable2 eq 'value2'}

Giving the error msg:
[11:34:11.125] {resin-port-8080-54} invalid expression `variable eq 'Value'  
!variable2 eq 'value2''

Note that the  are missing.

Changing  to and will make it work again in Resin 4.0.x:
 c:if test=${variable eq 'Value' and !variable2 eq 'value2'}

We also have a small number of scriptlet tags that use amp; or #38; for this. 
We just want to confirm the order parsing/processing, per the spec, and see 
whether the behavior we're seeing is expected.

Matt Pangaro
Lokitech  software . strategy . design
http://www.lokitech.com
m. 1.301.728.6906
f. 1.815.364.0656
e. ma...@lokitech.com



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest