Tim,
This looks like a problem in WebLogics.  Tomcat does not have this problem.

Paul Spencer

Sakach, Tim wrote:

> Yes, there is a problem with jsp's located under /WEB-INF when running
> weblogic 6.0: the url http://127.0.0.1:7001/jetspeed returns a null
> response. Velocity macros work with no problem, and when a context is
> created in tomcat to the same folder, the same exact jsp templates work in
> tomcat with no problem.
> 
> After tracing the request http://127.0.0.1:7001/jetspeed through the turbine
> classes, the handleRequest method of TurbineJspServlet
> attempts to include /WEB-INF/templates/jsp/layouts/html/en/default.jsp in
> the request with the following statement:
> 
>                 dispatcher.include(data.getRequest(), data.getResponse());
> 
> Here are some findings in regard to jsp handling in weblogic:
> 
> Tracing through the weblogic code starting from the include method of
> weblogic.servlet.internal.RequestDispatcherImpl, the getSource method of
> class weblogic.servlet.internal.WarFinder is eventually invoked (even if the
> jsp in not in a war file). Null is returned if the path to the jsp contains
> WEB-INF.
> 
>     public Source getSource(String s, boolean flag)
>     {
>         char c = File.separatorChar;
>         boolean flag1 = false;
>         if(s.startsWith("/"))
>         {
>             s = s.substring(1);
>             flag1 = true;
>         }
>         boolean flag2 = false;
>         if(flag)
>         {
>             String s1 = s.toUpperCase();
>             if(s1.indexOf("WEB-INF") != -1 ||
> s1.toUpperCase().indexOf("META-INF") != -1)
>                 return null;
> 
> ....
> 
> -----Original Message-----
> From: Paul Spencer [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 14, 2001 11:54 AM
> To: Jetspeed Users List
> Subject: Re: Weblogic/jsp templates
> 
> 
> Tim,
> The JSPs located under WEB-INF/template/jsp are not intended to be 
> viable to a user, thus the should be private.  They are only called by 
> the Jetspeed servlet.  Any JSP that will be called DIRECTLY from the 
> user's browser should located elsewhere.
> 
> That said.  Is their a problem using JSP layouts and portlet with WebLogics?
> 
> Paul Spencer
> 
> Sakach, Tim wrote:
> 
> 
>>Hi,
>>
>>I ran into a problem running the jsp's in /WEB-INF/templates/jsp under
>>weblogic. The result is a null response with no error messages. After
>>digging through the weblogic docs, there was a comment about everything
>>under the /WEB-INF folder being "private" and not accesible to the user.
>>
> In
> 
>>weblogic ( as well as other app servers ), jsp's under /WEB-INF are simply
>>ignored.
>>
>>The solution is to move the jsp's to the root folder and change the
>>services.JspService.templates property in the TurbineResources.properties
>>file, such as:
>>
>>services.JspService.templates = /templates/jsp
>>
>>
>>
>>
>>
> 
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to