-
1. Re: Integrating Tomahawk with Seam
atao Apr 20, 2007 6:13 PM (in response to aront54)
I was thinking perhaps we need to add the configuration to JBoss not our app, since the MyFaces stuff is in JBoss but I couldnt find anything on the JBoss site except in some forums people say they do have this configured.
Tomahawk works fine with application configuration. I put this in web.xml:<!-- MyFaces : Tomahawk extension --> <filter> <filter-name>MyFacesExtensionsFilter</filter-name> <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class> <init-param> <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 --> <!-- keep only the mappingwith url-pattern <filter-mapping> <filter-name>MyFacesExtensionsFilter</filter-name> <servlet-name>Faces Servlet</servlet-name> </filter-mapping> --> <filter-mapping> <filter-name>MyFacesExtensionsFilter</filter-name> <url-pattern>*.seam</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/*</url-pattern> </filter-mapping>
-
2. Re: Integrating Tomahawk with Seam
aront54 Apr 20, 2007 11:58 PM (in response to aront54)As noted in my post, I added the mappings to my web.xml and that just made my application crash. I tried both the "servlet-name" alternative and the "url-pattern" one. Does the tomahawk,jar have to be in the web-inf/lib director or is it sufficient that its in the server-->jbossas-tomcat--> lib directory?
-
3. Re: Integrating Tomahawk with Seam
atao Apr 21, 2007 9:10 AM (in response to aront54)As noted in my post, I added the mappings to my web.xml and that just made my application crash.
yes but your error message states thatExtensionsFilter not correctly configured
so...
And abouttomahawk,jar have to be in the web-inf/lib
I think it's ok in the war/WEB-INF/lib directory.
In my configuration, I put it in the root of the ear archive and I add its reference in the classpath of war/META-INF/MANIFEST.MF -
4. Re: Integrating Tomahawk with Seam
aront54 Apr 21, 2007 1:51 PM (in response to aront54)Thanks atao for your comments. However, the error message you note is BEFORE we added the filter. That's how we knew we needed a filter. After we added the filter the app crashes at startup and the exception we get is:
13:41:08,379 ERROR [ExceptionFilter] exception root cause
java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileUpload
Perhaps we are missing some jar? -
5. Re: Integrating Tomahawk with Seam
christian.bauer Apr 21, 2007 2:04 PM (in response to aront54)Well yes, you missing some commons-*.jar. Check the dependencies of Tomahawk.