Here is what is the source of my JSP (generated by the <t:inputCalendar>):
<html> <head> <base href="http://localhost:8080/webcore.base/"></base> </head> <body> <div style="position: absolute; top: 150.0em; left: 27.0em; right: 35px; "> <input id="_idJsp0" name="_idJsp0" type="text" onfocus="selectText('null', '_idJsp0')" onclick="selectText('null', '_idJsp0')" /><script type="text/javascript"><!-- _5FidJsp0CalendarVar=new org_apache_myfaces_PopupCalendar(); _5FidJsp0CalendarVar.initData.imgDir = "/webcore.base/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11819403/calendar.HtmlCalendarRenderer/DB/"; _5FidJsp0CalendarVar.initData.monthName = new Array("January","February","March","April","May","June","July","August","September","October","November","December"); _5FidJsp0CalendarVar.initData.dayName = new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat"); _5FidJsp0CalendarVar.initData.startAt = 0; _5FidJsp0CalendarVar.dateFormatSymbols.weekdays = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"); _5FidJsp0CalendarVar.dateFormatSymbols.shortWeekdays = new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat"); _5FidJsp0CalendarVar.dateFormatSymbols.shortMonths = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); _5FidJsp0CalendarVar.dateFormatSymbols.months = new Array("January","February","March","April","May","June","July","August","September","October","November","December"); _5FidJsp0CalendarVar.dateFormatSymbols.eras = new Array("BC","AD"); _5FidJsp0CalendarVar.dateFormatSymbols.ampms = new Array("AM","PM"); _5FidJsp0CalendarVar.initData.popupLeft = false; _5FidJsp0CalendarVar.init(document.getElementById('_idJsp0Span')); //--></script> /webcore.base/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11819403/calendar.HtmlCalendarRenderer/images/calendar.gif </div> </body> </html> I apologize for the awful formatting. Is the base href correct? Mike Kienenberger wrote: > > Well, if the app server is both generating the correct references to > the resources and serving the resources, then I don't know what else > to suggest. It must be something specific to your environment, or > maybe has to do with Spring. > > On 6/15/07, weull <[EMAIL PROTECTED]> wrote: >> >> I entered the following url into my browser: >> http://localhost:8080/webcore.base/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11819395/calendar.HtmlCalendarRenderer/DB/close.gif >> >> and I was able to see the image. >> >> >> >> Mike Kienenberger wrote: >> > >> > This is the entry that would control that >> > >> > >> > <!-- extension mapping for serving page-independent resources >> (javascript, >> > stylesheets, images, etc.) --> >> > <filter-mapping> >> > <filter-name>MyFacesExtensionsFilter</filter-name> >> > <url-pattern>/faces/myFacesExtensionResource/*</url-pattern> >> > </filter-mapping> >> > >> > I don't see anything wrong with what you posted. >> > >> > Normally, you'd list this filter mapping first since there's no reason >> > to have requests for resources to be processed by any of the other >> > filters, but it shouldn't change the behavior, only the performance. >> > >> > You might try manually constructing a url and see if you can fetch a >> > resource that way. >> > >> > On 6/15/07, weull <[EMAIL PROTECTED]> wrote: >> >> >> >> The references look correct, the extension filter resources are not >> being >> >> served. >> >> >> >> >> >> >> >> Mike Kienenberger wrote: >> >> > >> >> > Are you saying that none of the generated html has references to the >> >> > extension filter resources (check the header in view source)? >> >> > >> >> > Or are you saying that the extension filter resources are not being >> >> > served by your application? >> >> > >> >> > >> >> > On 6/15/07, weull <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> Ack, I'm sorry, it seems to be a false positive... On closer >> >> inspection, >> >> >> it >> >> >> seems that none of the css/javascript is being loaded. Sticking >> this >> >> >> back >> >> >> into the web.xml: >> >> >> <context-param> >> >> >> >> >> >> <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name> >> >> >> <param-value>true</param-value> >> >> >> </context-param> >> >> >> >> >> >> gives me back the ExtensionFilter not correctly configured >> exception. >> >> >> I've >> >> >> done a compare of the jars in my classpath with the ones in the >> >> >> tomahawk-examples.war and they're exactly the same. I'm stumped. >> Any >> >> >> other >> >> >> ideas? >> >> >> >> >> >> >> >> >> >> >> >> Mike Kienenberger wrote: >> >> >> > >> >> >> > Great! I thought it might be a classpath issue. Glad you got >> it >> >> it >> >> >> > working. >> >> >> > >> >> >> > On 6/15/07, weull <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> Awesome! It's working. Using the second context-param you gave >> me >> >> >> >> showed >> >> >> >> that I was missing the commons-lang-2.1 jar in my classpath. I >> >> added >> >> >> >> that >> >> >> >> jar, and it works like a charm! >> >> >> >> >> >> >> >> Thank you so much for your time Mike! >> >> >> >> >> >> >> >> >> >> >> >> Mike Kienenberger wrote: >> >> >> >> > >> >> >> >> > One other thing you can try is to disable the extension filter >> >> >> check. >> >> >> >> > Perhaps the errors that occur after that will provide more >> >> insight. >> >> >> >> > >> >> >> >> > <context-param> >> >> >> >> > >> >> >> >> > >> >> <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name> >> >> >> >> > <param-value>false</param-value> >> >> >> >> > </context-param> >> >> >> >> > >> >> >> >> > Here's another one that might help -- I don't remember what >> this >> >> one >> >> >> >> does >> >> >> >> > >> >> >> >> > <context-param> >> >> >> >> > <description>For JSF 1.1</description> >> >> >> >> > <param-name>org.apache.myfaces.validate</param-name> >> >> >> >> > <param-value>true</param-value> >> >> >> >> > </context-param> >> >> >> >> > >> >> >> >> > >> >> >> >> > On 6/15/07, Mike Kienenberger <[EMAIL PROTECTED]> wrote: >> >> >> >> >> No, having your jsp files inside WEB-INF should not matter. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> On 6/15/07, weull <[EMAIL PROTECTED]> wrote: >> >> >> >> >> > >> >> >> >> >> > The url I'm returning from my Spring controller is: >> >> >> >> >> > /WEB-INF/jsp/welcome.faces >> >> >> >> >> > >> >> >> >> >> > Does it have something to do with the JSP being behind >> inside >> >> the >> >> >> >> >> WEB-INF? >> >> >> >> >> > >> >> >> >> >> > >> >> >> >> >> > >> >> >> >> >> > Mike Kienenberger wrote: >> >> >> >> >> > > >> >> >> >> >> > > The web.xml file you posted below looks correct. I'd say >> it >> >> >> was a >> >> >> >> >> > > classpath issue but you previously posted that the >> generated >> >> >> html >> >> >> >> is >> >> >> >> >> > > pointing to the correct resources. >> >> >> >> >> > > >> >> >> >> >> > > Also, are you accessing your pages via a url ending >> .faces? >> >> >> Don't >> >> >> >> >> > > access the url using .jsp. >> >> >> >> >> > > >> >> >> >> >> > > On 6/15/07, weull <[EMAIL PROTECTED]> wrote: >> >> >> >> >> > >> >> >> >> >> >> > >> I've redone the web.xml and copied from >> >> >> >> >> > >> http://myfaces.apache.org/tomahawk/extensionsFilter.html >> >> >> >> >> > >> verbatim, but I still get the >> >> >> "java.lang.IllegalStateException: >> >> >> >> >> > >> ExtensionsFilter not correctly configured." exception. >> >> Here >> >> >> is >> >> >> >> my >> >> >> >> >> new >> >> >> >> >> > >> web.xml: >> >> >> >> >> > >> >> >> >> >> >> > >> <?xml version="1.0" encoding="UTF-8"?> >> >> >> >> >> > >> >> >> >> >> >> > >> <!-- This is where Servlets are configured and mapped. >> --> >> >> >> >> >> > >> >> >> >> >> >> > >> <web-app id="WebApp_ID" version="2.4" >> >> >> >> >> > >> xmlns="http://java.sun.com/xml/ns/j2ee" >> >> >> >> >> > >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> >> >> >> >> > >> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee >> >> >> >> >> > >> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> >> >> >> >> >> > >> <filter> >> >> >> >> >> > >> >> >> >> >> <filter-name>MyFacesExtensionsFilter</filter-name> >> >> >> >> >> > >> >> >> >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class> >> >> >> >> >> > >> <init-param> >> >> >> >> >> > >> <description>Set the size limit for >> >> uploaded >> >> >> >> files. >> >> >> >> >> > >> Format: 10 - 10 bytes >> >> >> >> >> > >> 10k - 10 KB >> >> >> >> >> > >> 10m - 10 MB >> >> >> >> >> > >> 1g - 1 GB >> >> >> >> >> > >> </description> >> >> >> >> >> > >> <param-name>maxFileSize</param-name> >> >> >> >> >> > >> <param-value>20m</param-value> >> >> >> >> >> > >> </init-param> >> >> >> >> >> > >> </filter> >> >> >> >> >> > >> >> >> >> >> >> > >> <!-- extension mapping for adding <script/>, >> >> <link/>, >> >> >> and >> >> >> >> >> other >> >> >> >> >> > >> resource >> >> >> >> >> > >> tags to JSF-pages --> >> >> >> >> >> > >> <filter-mapping> >> >> >> >> >> > >> >> >> <filter-name>MyFacesExtensionsFilter</filter-name> >> >> >> >> >> > >> <!-- servlet-name must match the name of >> your >> >> >> >> >> > >> javax.faces.webapp.FacesServlet entry --> >> >> >> >> >> > >> <servlet-name>Faces Servlet</servlet-name> >> >> >> >> >> > >> </filter-mapping> >> >> >> >> >> > >> >> >> >> >> >> > >> <!-- extension mapping for serving >> page-independent >> >> >> >> >> resources >> >> >> >> >> > >> (javascript, >> >> >> >> >> > >> stylesheets, images, etc.) --> >> >> >> >> >> > >> <filter-mapping> >> >> >> >> >> > >> >> >> <filter-name>MyFacesExtensionsFilter</filter-name> >> >> >> >> >> > >> >> >> >> >> >> <url-pattern>/faces/myFacesExtensionResource/*</url-pattern> >> >> >> >> >> > >> </filter-mapping> >> >> >> >> >> > >> >> >> >> >> >> > >> <listener> >> >> >> >> >> > >> >> >> >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> >> >> >> >> >> > >> </listener> >> >> >> >> >> > >> >> >> >> >> >> > >> <listener> >> >> >> >> >> > >> >> >> >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> <listener-class>de.mindmatters.faces.spring.context.ContextLoaderListener</listener-class> >> >> >> >> >> > >> </listener> >> >> >> >> >> > >> >> >> >> >> >> > >> <servlet> >> >> >> >> >> > >> <servlet-name>WebCore</servlet-name> >> >> >> >> >> > >> >> >> >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> >> >> >> >> >> > >> <load-on-startup>1</load-on-startup> >> >> >> >> >> > >> </servlet> >> >> >> >> >> > >> >> >> >> >> >> > >> <servlet-mapping> >> >> >> >> >> > >> <servlet-name>WebCore</servlet-name> >> >> >> >> >> > >> <url-pattern>*.html</url-pattern> >> >> >> >> >> > >> </servlet-mapping> >> >> >> >> >> > >> >> >> >> >> >> > >> <servlet> >> >> >> >> >> > >> <servlet-name>Faces >> Servlet</servlet-name> >> >> >> >> >> > >> >> >> >> >> >> > >> >> >> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> >> >> >> >> >> > >> <load-on-startup>1</load-on-startup> >> >> >> >> >> > >> </servlet> >> >> >> >> >> > >> >> >> >> >> >> > >> <servlet-mapping> >> >> >> >> >> > >> <servlet-name>Faces Servlet</servlet-name> >> >> >> >> >> > >> <url-pattern>*.faces</url-pattern> >> >> >> >> >> > >> </servlet-mapping> >> >> >> >> >> > >> </web-app> >> >> >> >> >> > >> >> >> >> >> >> > >> Thanks for your time! >> >> >> >> >> > >> >> >> >> >> >> > >> >> >> >> >> >> > >> Mike Kienenberger wrote: >> >> >> >> >> > >> > >> >> >> >> >> > >> > It's not set up correctly. >> >> >> >> >> > >> > >> >> >> >> >> > >> > The first filter mapping must point to the same thing >> as >> >> >> your >> >> >> >> >> faces >> >> >> >> >> > >> > servlet. >> >> >> >> >> > >> > The second filter mapping must point to a specific >> url: >> >> >> >> >> > >> > /faces/myFacesExtensionResource/* >> >> >> >> >> > >> > >> >> >> >> >> > >> > You can find the detailed directions for setting it up >> >> here. >> >> >> >> >> > >> > >> >> >> >> >> > >> > >> http://myfaces.apache.org/tomahawk/extensionsFilter.html >> >> >> >> >> > >> > >> >> >> >> >> > >> > >> >> >> >> >> > >> > On 6/15/07, weull <[EMAIL PROTECTED]> wrote: >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> Changing the filter to map to *.faces give me this: >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> <?xml version="1.0" encoding="UTF-8"?> >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> <!-- This is where Servlets are configured and >> mapped. >> >> --> >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> <web-app id="WebApp_ID" version="2.4" >> >> >> >> >> > >> >> xmlns="http://java.sun.com/xml/ns/j2ee" >> >> >> >> >> > >> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> >> >> >> >> > >> >> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee >> >> >> >> >> > >> >> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> >> >> >> <display-name>com.p21csi.webcore.base</display-name> >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> <filter> >> >> >> >> >> > >> >> >> >> <filter-name>MyFacesExtensionsFilter</filter-name> >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class> >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> <init-param> >> >> >> >> >> > >> >> <description>Set the size limit for >> uploaded >> >> >> files. >> >> >> >> >> > >> >> Format: 10 - 10 bytes >> >> >> >> >> > >> >> 10k - 10 KB >> >> >> >> >> > >> >> 10m - 10 MB >> >> >> >> >> > >> >> 1g - 1 GB >> >> >> >> >> > >> >> </description> >> >> >> >> >> > >> >> <param-name>maxFileSize</param-name> >> >> >> >> >> > >> >> <param-value>20m</param-value> >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> </init-param> >> >> >> >> >> > >> >> </filter> >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> <!-- extension mapping for adding <script/>, >> >> >> <link/>, >> >> >> >> and >> >> >> >> >> > >> other >> >> >> >> >> > >> >> resource >> >> >> >> >> > >> >> tags to JSF-pages --> >> >> >> >> >> > >> >> <filter-mapping> >> >> >> >> >> > >> >> >> >> >> <filter-name>MyFacesExtensionsFilter</filter-name> >> >> >> >> >> > >> >> <!-- servlet-name must match the name of >> >> your >> >> >> >> >> > >> >> javax.faces.webapp.FacesServlet entry --> >> >> >> >> >> > >> >> <url-pattern>*.faces</url-pattern> >> >> >> >> >> > >> >> </filter-mapping> >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> <!-- extension mapping for serving >> >> page-independent >> >> >> >> >> resources >> >> >> >> >> > >> >> (javascript, >> >> >> >> >> > >> >> stylesheets, images, etc.) --> >> >> >> >> >> > >> >> <filter-mapping> >> >> >> >> >> > >> >> >> >> >> <filter-name>MyFacesExtensionsFilter</filter-name> >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> >> <url-pattern>/faces/myFacesExtensionResource/*</url-pattern> >> >> >> >> >> > >> >> </filter-mapping> >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> <listener> >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> >> >> >> >> >> > >> >> </listener> >> >> >> >> >> > >> >> <listener> >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class> >> >> >> >> >> > >> >> </listener> >> >> >> >> >> > >> >> <listener> >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> <listener-class>de.mindmatters.faces.spring.context.ContextLoaderListener</listener-class> >> >> >> >> >> > >> >> </listener> >> >> >> >> >> > >> >> <servlet> >> >> >> >> >> > >> >> <servlet-name>WebCore</servlet-name> >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> >> >> >> >> >> > >> >> <load-on-startup>1</load-on-startup> >> >> >> >> >> > >> >> </servlet> >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> <servlet-mapping> >> >> >> >> >> > >> >> <servlet-name>WebCore</servlet-name> >> >> >> >> >> > >> >> <url-pattern>*.html</url-pattern> >> >> >> >> >> > >> >> </servlet-mapping> >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> <servlet> >> >> >> >> >> > >> >> <servlet-name>Faces Servlet</servlet-name> >> >> >> >> >> > >> >> >> >> >> >> >> >> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> >> >> >> >> >> > >> >> <load-on-startup>1</load-on-startup> >> >> >> >> >> > >> >> </servlet> >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> <servlet-mapping> >> >> >> >> >> > >> >> <servlet-name>Faces Servlet</servlet-name> >> >> >> >> >> > >> >> <url-pattern>*.faces</url-pattern> >> >> >> >> >> > >> >> </servlet-mapping> >> >> >> >> >> > >> >> </web-app> >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> Which unfortunately throws the same "ExtensionsFilter >> >> not >> >> >> >> >> configured >> >> >> >> >> > >> >> correctly" exception. >> >> >> >> >> > >> >> -- >> >> >> >> >> > >> >> View this message in context: >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> http://www.nabble.com/Help-With-Tomahawk-and-web.xml-tf3925209.html#a11138912 >> >> >> >> >> > >> >> Sent from the MyFaces - Users mailing list archive at >> >> >> >> Nabble.com. >> >> >> >> >> > >> >> >> >> >> >> >> > >> >> >> >> >> >> >> > >> > >> >> >> >> >> > >> > >> >> >> >> >> > >> >> >> >> >> >> > >> -- >> >> >> >> >> > >> View this message in context: >> >> >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> http://www.nabble.com/Help-With-Tomahawk-and-web.xml-tf3925209.html#a11142511 >> >> >> >> >> > >> Sent from the MyFaces - Users mailing list archive at >> >> >> Nabble.com. >> >> >> >> >> > >> >> >> >> >> >> > >> >> >> >> >> >> > > >> >> >> >> >> > > >> >> >> >> >> > >> >> >> >> >> > -- >> >> >> >> >> > View this message in context: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> http://www.nabble.com/Help-With-Tomahawk-and-web.xml-tf3925209.html#a11144083 >> >> >> >> >> > Sent from the MyFaces - Users mailing list archive at >> >> Nabble.com. >> >> >> >> >> > >> >> >> >> >> > >> >> >> >> >> >> >> >> >> > >> >> >> >> > >> >> >> >> >> >> >> >> -- >> >> >> >> View this message in context: >> >> >> >> >> >> >> >> >> >> http://www.nabble.com/Help-With-Tomahawk-and-web.xml-tf3925209.html#a11144854 >> >> >> >> Sent from the MyFaces - Users mailing list archive at >> Nabble.com. >> >> >> >> >> >> >> >> >> >> >> > >> >> >> > >> >> >> >> >> >> -- >> >> >> View this message in context: >> >> >> >> >> >> http://www.nabble.com/Help-With-Tomahawk-and-web.xml-tf3925209.html#a11145190 >> >> >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> >> >> >> >> >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Help-With-Tomahawk-and-web.xml-tf3925209.html#a11147004 >> >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> >> >> >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Help-With-Tomahawk-and-web.xml-tf3925209.html#a11147276 >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> > > http://www.nabble.com/file/p11147592/index.txt index.txt -- View this message in context: http://www.nabble.com/Help-With-Tomahawk-and-web.xml-tf3925209.html#a11147592 Sent from the MyFaces - Users mailing list archive at Nabble.com.