spring-webmvc-portlet annotations: File quot;/WEB-INF/servlet/viewquot; not found

2010-06-30 Thread Norris Shelton
(ViewRendererServlet.java:86)
 ~[spring-webmvc-3.0.3.RELEASE.jar:3.0.3.RELEASE]
at 
org.springframework.web.servlet.ViewRendererServlet.doGet(ViewRendererServlet.java:66)
 ~[spring-webmvc-3.0.3.RELEASE.jar:3.0.3.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) 
[servlet-api.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 
[servlet-api.jar:na]
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 [catalina.jar:na]
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 [catalina.jar:na]
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
 [catalina.jar:na]
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
 [catalina.jar:na]
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
 [catalina.jar:na]
at 
com.vignette.portal.portlet.jsrcontainer.internal.standardcontainer.invocation.apiimpl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:323)
 ~[na:na]
... 63 common frames omitted



Here is my web.xml

 
Displays the weather portlet. The main page (widget) page displays the 
current conditions. The detail
page shows weather alerts, the forecast, current regional radar.
 Weather Portlet 
 ViewRendererServlet org.springframework.web.servlet.ViewRendererServlet 1  
 ViewRendererServlet /WEB-INF/servlet/view   
org.springframework.web.context.ContextLoaderListener  


here is my portlet.xml

 
 Displays the weather portlet. The main page (widget) page displays the 
current conditions. The
detail page shows weather alerts, the forecast, current regional 
radar.
 weather Weather Portlet 
org.springframework.web.portlet.DispatcherPortlet  text/html VIEW 
NORMAL MAXIMIZED  
en 
 Weather Portlet Weather Portlet weather   









 
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Shelton Consulting, LLC
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton



  

spring-webmvc-portlet annotations: File quot;/WEB-INF/servlet/viewquot; not found

2010-06-30 Thread Norris Shelton
I have compared the configuration to multiple examples and it appears to be 
set-up correctly.  There is another question similar to this with the exact 
problem, also on Tomcat/Vignette.  


Attached are the files, since the pasting earlier did not work.





 
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Shelton Consulting, LLC
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton



  2010-06-28 16:08:32  DEBUG - DispatcherPortlet with name 'weather' received 
render request 
org.springframework.web.portlet.DispatcherPortlet.doRenderService:694
2010-06-28 16:08:32  DEBUG - Testing handler map 
[org.springframework.web.portlet.mvc.annotation.defaultannotationhandlermapp...@20f764]
 in DispatcherPortlet with name 'weather' 
org.springframework.web.portlet.DispatcherPortlet.getHandler:988
2010-06-28 16:08:32  DEBUG - Key [view] - handler 
[{=com.bhsi.portlet.weather.weatherviewcontrol...@ad1c36}] 
org.springframework.web.portlet.handler.AbstractMapBasedHandlerMapping.getHandlerInternal:74
2010-06-28 16:08:32  DEBUG - Testing handler adapter 
[org.springframework.web.portlet.mvc.annotation.annotationmethodhandleradap...@51e1ff]
 org.springframework.web.portlet.DispatcherPortlet.getHandlerAdapter:1029
2010-06-28 16:08:32  DEBUG - Invoking model attribute method: public 
org.springframework.ui.ModelMap 
com.bhsi.portlet.weather.WeatherViewController.getNormalModel() 
org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod:154
2010-06-28 16:08:32  DEBUG - !! Found a cached modelMap 
com.bhsi.portlet.weather.WeatherViewController.getNormalModel:108
2010-06-28 16:08:32  DEBUG - Invoking request handler method: public 
org.springframework.web.portlet.ModelAndView 
com.bhsi.portlet.weather.WeatherViewController.renderNormal(org.springframework.ui.ModelMap)
 
org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod:172
2010-06-28 16:08:32  DEBUG - ** Entered renderNormal ** 
com.bhsi.portlet.weather.WeatherViewController.renderNormal:118
2010-06-28 16:08:32  DEBUG - Setting portlet response content type to 
view-determined type [text/html;charset=ISO-8859-1] 
org.springframework.web.portlet.DispatcherPortlet.render:1086
2010-06-28 16:08:32  DEBUG - Added model object 'NORMAL' of type 
[org.springframework.ui.ModelMap] to request in view with name 'normal' 
org.springframework.web.servlet.view.AbstractView.exposeModelAsRequestAttributes:328
2010-06-28 16:08:32  DEBUG - Added model object 'lastUpdateFormatted' of type 
[java.lang.String] to request in view with name 'normal' 
org.springframework.web.servlet.view.AbstractView.exposeModelAsRequestAttributes:328
2010-06-28 16:08:32  DEBUG - Added model object 'detailUrl' of type 
[java.lang.String] to request in view with name 'normal' 
org.springframework.web.servlet.view.AbstractView.exposeModelAsRequestAttributes:328
2010-06-28 16:08:32  DEBUG - Added model object 
'org.springframework.validation.BindingResult.currentWeather' of type 
[org.springframework.validation.BeanPropertyBindingResult] to request in view 
with name 'normal' 
org.springframework.web.servlet.view.AbstractView.exposeModelAsRequestAttributes:328
2010-06-28 16:08:32  DEBUG - Added model object 'compassDirection' of type 
[java.lang.String] to request in view with name 'normal' 
org.springframework.web.servlet.view.AbstractView.exposeModelAsRequestAttributes:328
2010-06-28 16:08:32  DEBUG - Added model object 'feelsLike' of type 
[java.lang.String] to request in view with name 'normal' 
org.springframework.web.servlet.view.AbstractView.exposeModelAsRequestAttributes:328
2010-06-28 16:08:32  DEBUG - Added model object 
'org.springframework.validation.BindingResult.NORMAL' of type 
[org.springframework.validation.BeanPropertyBindingResult] to request in view 
with name 'normal' 
org.springframework.web.servlet.view.AbstractView.exposeModelAsRequestAttributes:328
2010-06-28 16:08:32  DEBUG - Added model object 'skyImageUrl' of type 
[java.lang.String] to request in view with name 'normal' 
org.springframework.web.servlet.view.AbstractView.exposeModelAsRequestAttributes:328
2010-06-28 16:08:32  DEBUG - Added model object 'currentWeather' of type 
[com.bhsi.portlet.weather.currentweather.CurrentWeather] to request in view 
with name 'normal' 
org.springframework.web.servlet.view.AbstractView.exposeModelAsRequestAttributes:328
2010-06-28 16:08:32  DEBUG - Including resource [/WEB-INF/jsp/normal.jsp] in 
InternalResourceView 'normal' 
org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel:227
2010-06-28 16:08:32  ERROR - Could not complete request 
org.springframework.web.portlet.FrameworkPortlet.processRequest:559 
javax.portlet.PortletException: javax.servlet.ServletException: File 
quot;/WEB-INF/servlet/viewquot; not found
at 
com.vignette.portal.portlet.jsrcontainer.internal.standardcontainer.invocation.apiimpl.PortletRequestDispatcherImpl.include

Re: spring-webmvc-portlet annotations: File /WEB-INF/servlet/view not found

2010-06-30 Thread Norris Shelton
Sorry, none of my files were included.  I sent another email with all of the 
files as attachments.

 
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Shelton Consulting, LLC
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton





From: Norris Shelton norrisshel...@yahoo.com
To: users@tomcat.apache.org
Sent: Wed, June 30, 2010 9:06:18 AM
Subject: spring-webmvc-portlet annotations: File 
quot;/WEB-INF/servlet/viewquot; not found

I am using:
Tomcat 6.0.20
Vignette Portal Server 8.0
spring-webmvc-portlet  3.0.3.RELEASE

I get the following error when the portal is requested. 

Here is my log

2010-06-28 16:08:32  DEBUG - DispatcherPortlet with name 'weather' received 
render request 
org.springframework.web.portlet.DispatcherPortlet.doRenderService:694
2010-06-28 16:08:32  DEBUG - Testing handler map 
[org.springframework.web.portlet.mvc.annotation.defaultannotationhandlermapp...@20f764]
 in DispatcherPortlet with name 'weather' 
org.springframework.web.portlet.DispatcherPortlet.getHandler:988
2010-06-28 16:08:32  DEBUG - Key [view] - handler 
[{=com.bhsi.portlet.weather.weatherviewcontrol...@ad1c36}] 
org.springframework.web.portlet.handler.AbstractMapBasedHandlerMapping.getHandlerInternal:74
2010-06-28 16:08:32  DEBUG - Testing handler adapter 
[org.springframework.web.portlet.mvc.annotation.annotationmethodhandleradap...@51e1ff]
 org.springframework.web.portlet.DispatcherPortlet.getHandlerAdapter:1029
2010-06-28 16:08:32  DEBUG - Invoking model attribute method: public 
org.springframework.ui.ModelMap 
com.bhsi.portlet.weather.WeatherViewController.getNormalModel() 
org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod:154
2010-06-28 16:08:32  DEBUG - !! Found a cached modelMap 
com.bhsi.portlet.weather.WeatherViewController.getNormalModel:108
2010-06-28 16:08:32  DEBUG - Invoking request handler method: public 
org.springframework.web.portlet.ModelAndView 
com.bhsi.portlet.weather.WeatherViewController.renderNormal(org.springframework.ui.ModelMap)
 
org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod:172
2010-06-28 16:08:32  DEBUG - ** Entered renderNormal ** 
com.bhsi.portlet.weather.WeatherViewController.renderNormal:118
2010-06-28 16:08:32  DEBUG - Setting portlet response content type to 
view-determined type [text/html;charset=ISO-8859-1] 
org.springframework.web.portlet.DispatcherPortlet.render:1086
2010-06-28 16:08:32  DEBUG - Added model object 'NORMAL' of type 
[org.springframework.ui.ModelMap] to request in view with name 'normal' 
org.springframework.web.servlet.view.AbstractView.exposeModelAsRequestAttributes:328
2010-06-28 16:08:32  DEBUG - Added model object 'lastUpdateFormatted' of type 
[java.lang.String] to request in view with name 'normal' 
org.springframework.web.servlet.view.AbstractView.exposeModelAsRequestAttributes:328
2010-06-28 16:08:32  DEBUG - Added model object 'detailUrl' of type 
[java.lang.String] to request in view with name 'normal' 
org.springframework.web.servlet.view.AbstractView.exposeModelAsRequestAttributes:328
2010-06-28 16:08:32  DEBUG - Added model object 
'org.springframework.validation.BindingResult.currentWeather' of type 
[org.springframework.validation.BeanPropertyBindingResult] to request in view 
with name 'normal' 
org.springframework.web.servlet.view.AbstractView.exposeModelAsRequestAttributes:328
2010-06-28 16:08:32  DEBUG - Added model object 'compassDirection' of type 
[java.lang.String] to request in view with name 'normal' 
org.springframework.web.servlet.view.AbstractView.exposeModelAsRequestAttributes:328
2010-06-28 16:08:32  DEBUG - Added model object 'feelsLike' of type 
[java.lang.String] to request in view with name 'normal' 
org.springframework.web.servlet.view.AbstractView.exposeModelAsRequestAttributes:328
2010-06-28 16:08:32  DEBUG - Added model object 
'org.springframework.validation.BindingResult.NORMAL' of type 
[org.springframework.validation.BeanPropertyBindingResult] to request in view 
with name 'normal' 
org.springframework.web.servlet.view.AbstractView.exposeModelAsRequestAttributes:328
2010-06-28 16:08:32  DEBUG - Added model object 'skyImageUrl' of type 
[java.lang.String] to request in view with name 'normal' 
org.springframework.web.servlet.view.AbstractView.exposeModelAsRequestAttributes:328
2010-06-28 16:08:32  DEBUG - Added model object 'currentWeather' of type 
[com.bhsi.portlet.weather.currentweather.CurrentWeather] to request in view 
with name 'normal' 
org.springframework.web.servlet.view.AbstractView.exposeModelAsRequestAttributes:328
2010-06-28 16:08:32  DEBUG - Including resource [/WEB-INF/jsp/normal.jsp] in 
InternalResourceView 'normal' 
org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel:227
2010-06-28 16:08:32  ERROR - Could not complete request 
org.springframework.web.portlet.FrameworkPortlet.processRequest:559

Re: spring-webmvc-portlet annotations: File /WEB-INF/servlet/view not found

2010-06-30 Thread Norris Shelton
After much trial an error.  I found the problem.  Vignette Portal does not map 
URLs below WEB-INF.

I had to map it to /somePublicUrl and it worked fine.





 
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Shelton Consulting, LLC
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton





From: André Warnier a...@ice-sa.com
To: Tomcat Users List users@tomcat.apache.org
Sent: Wed, June 30, 2010 10:08:51 AM
Subject: Re: spring-webmvc-portlet annotations: File 
quot;/WEB-INF/servlet/viewquot; not found

Norris Shelton wrote:
 I have compared the configuration to multiple examples and it appears to be 
 set-up correctly.  There is another question similar to this with the exact 
 problem, also on Tomcat/Vignette.  
 
 Attached are the files, since the pasting earlier did not work.
 
Norris,

I know nothing about portals, nor Vignette, nor spring or whatever, so the 
following is just a vague idea based on this portion of the logfile :

2010-06-28 16:08:32  DEBUG - Including resource [/WEB-INF/jsp/normal.jsp] in 
InternalResourceView 'normal' 
org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel:227
2010-06-28 16:08:32  ERROR - Could not complete request 
org.springframework.web.portlet.FrameworkPortlet.processRequest:559 
javax.portlet.PortletException: javax.servlet.ServletException: File 
quot;/WEB-INF/servlet/viewquot; not found
at 
com.vignette.portal.portlet.jsrcontainer.internal.standardcontainer.invocation.apiimpl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:327)
 ~[na:na]
at 
org.springframework.web.portlet.DispatcherPortlet.doRender(DispatcherPortlet.java:1137)


I doubt (but I am not sure) that a logging module would wilfully HTML-escape 
real quotation marks in a message before printing it to the logfile.

To me it thus looks like some module is trying to render some html code, in 
the course of which it is supposed to read, and interpret the file 
/WEB-INF/jsp/normal.jsp.
In that file, it finds some kind of include instruction which should give it 
the (relative?) path of another file/thing to include here.
That file/thing path should be :
/WEB-INF/servlet/view
or maybe the same between quotation marks :
/WEB-INF/servlet/view

However, instead it finds :
quot;/WEB-INF/servlet/viewquot;
which looks as if something already went through the page that contains this 
link (normal.jsp ?), and already HTML-escaped the surrounding quotation marks 
into
quot;
sequences, as if this was part of the html text of the page instead of an 
include instruction.

Of course, whatever is trying to open that to-include file/thing is never going 
to find it, because there is no file/thing starting with quot anywhere.

What does that include line look like, in the normal.jsp file ?



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