You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Parshuram Sahoo <pa...@patni.com> on 2006/05/18 13:14:17 UTC

PROBLEM WITH tomahawk.jar

Hi 

When i am adding the tomahawk.jar file in to my project and running the application i am getting the below exception.

java.lang.IllegalStateException: org.apache.myfaces.webapp.webxml.WebXml.init must be called before!
	org.apache.myfaces.webapp.webxml.WebXml.getWebXml(WebXml.java:123)
	org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl.getServletMapping(JspTilesViewHandlerImpl.java:254)
	org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:120)
	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
	com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:268)
	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
	org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670)
	org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637)
	org.apache.jsp.jsp.index_jsp._jspService(index_jsp.java:50)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


I have also added the filter mappings to the web.xml

<!-- Extensions Filter -->
    <filter>
        <filter-name>extensionsFilter</filter-name>
        <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
        <init-param>
            <param-name>uploadMaxFileSize</param-name>
            <param-value>1g</param-value>
            <description>Set the size limit for uploaded files.
                Format: 10 - 10 bytes
                        10k - 10 KB
                        10m - 10 MB
                        1g - 1 GB
            </description>
        </init-param>
        <init-param>
            <param-name>uploadThresholdSize</param-name>
            <param-value>100k</param-value>
            <description>Set the threshold size - files
                    below this limit are stored in memory, files above
                    this limit are stored on disk.

                Format: 10 - 10 bytes
                        10k - 10 KB
                        10m - 10 MB
                        1g - 1 GB
            </description>
        </init-param>
		<!--<init-param>
            <param-name>uploadRepositoryPath</param-name>
            <param-value>/temp</param-value>
            <description>Set the path where the intermediary files will be stored.
            </description>
        </init-param>-->
    </filter>

    <filter-mapping>
        <filter-name>extensionsFilter</filter-name>
        <url-pattern>*.jsf</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>extensionsFilter</filter-name>
        <url-pattern>/faces/*</url-pattern>
    </filter-mapping>


Any body can help me out. What i need to ? Did i missed out something ..

Regards
Parshuram


http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_____________________________________________________________________

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete  this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at netadmin@patni.com and delete this mail. 
_____________________________________________________________________

Re: PROBLEM WITH tomahawk.jar

Posted by Mike Kienenberger <mk...@gmail.com>.
Are you using compatible versions of myfaces core and tomahawk?

Before 1.1.2, the versions must match.   After 1.1.2, any combination
will work provided both myfaces core and tomahawk are both at least
1.1.2 or newer.

On 5/18/06, Parshuram Sahoo <pa...@patni.com> wrote:
>
> Hi
>
> When i am adding the tomahawk.jar file in to my project and running the application i am getting the below exception.
>
> java.lang.IllegalStateException: org.apache.myfaces.webapp.webxml.WebXml.init must be called before!
>         org.apache.myfaces.webapp.webxml.WebXml.getWebXml(WebXml.java:123)
>         org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl.getServletMapping(JspTilesViewHandlerImpl.java:254)
>         org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:120)
>         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
>         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:268)
>         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
>         javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
>         org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670)
>         org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637)
>         org.apache.jsp.jsp.index_jsp._jspService(index_jsp.java:50)
>         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
>         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
>
> I have also added the filter mappings to the web.xml
>
> <!-- Extensions Filter -->
>     <filter>
>         <filter-name>extensionsFilter</filter-name>
>         <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
>         <init-param>
>             <param-name>uploadMaxFileSize</param-name>
>             <param-value>1g</param-value>
>             <description>Set the size limit for uploaded files.
>                 Format: 10 - 10 bytes
>                         10k - 10 KB
>                         10m - 10 MB
>                         1g - 1 GB
>             </description>
>         </init-param>
>         <init-param>
>             <param-name>uploadThresholdSize</param-name>
>             <param-value>100k</param-value>
>             <description>Set the threshold size - files
>                     below this limit are stored in memory, files above
>                     this limit are stored on disk.
>
>                 Format: 10 - 10 bytes
>                         10k - 10 KB
>                         10m - 10 MB
>                         1g - 1 GB
>             </description>
>         </init-param>
>                 <!--<init-param>
>             <param-name>uploadRepositoryPath</param-name>
>             <param-value>/temp</param-value>
>             <description>Set the path where the intermediary files will be stored.
>             </description>
>         </init-param>-->
>     </filter>
>
>     <filter-mapping>
>         <filter-name>extensionsFilter</filter-name>
>         <url-pattern>*.jsf</url-pattern>
>     </filter-mapping>
>     <filter-mapping>
>         <filter-name>extensionsFilter</filter-name>
>         <url-pattern>/faces/*</url-pattern>
>     </filter-mapping>
>
>
> Any body can help me out. What i need to ? Did i missed out something ..
>
> Regards
> Parshuram
>
>
> http://www.patni.com
> World-Wide Partnerships. World-Class Solutions.
> _____________________________________________________________________
>
> This e-mail message may contain proprietary, confidential or legally
> privileged information for the sole use of the person or entity to
> whom this message was originally addressed. Any review, e-transmission
> dissemination or other use of or taking of any action in reliance upon
> this information by persons or entities other than the intended
> recipient is prohibited. If you have received this e-mail in error
> kindly delete  this e-mail from your records. If it appears that this
> mail has been forwarded to you without proper authority, please notify
> us immediately at netadmin@patni.com and delete this mail.
> _____________________________________________________________________
>
>