Hi!
Maybe it's a container configuration, but i can not decide where my
applications are deployed. This is an application for an intranet in a bank.
They'd rather kill me instead of giving my application access to Internet :-)
Unfortunately your advice works only in part. If i put the dtd in the WEB-INF
directory the web application starts and it works almost fine.
But i still have a problem trying to redirect to a non-jsf page inside my
web-app. This problem disappears when i reenable internet connection.
The exception i see is:
[19/07/06 10.21.55:435 CEST] 00000035 SystemErr R
java.lang.NullPointerException
at
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1046)
at
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1057)
at
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1057)
at
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1057)
at
org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState(JspStateManagerImpl.java:221)
at
org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:287)
at
org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:255)
at
org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:141)
at
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1282)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1239)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:136)
at
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:670)
at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)
at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1802)
at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:84)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:469)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:408)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:286)
at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201)
at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103)
at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
at
com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
I'm working with Websphere 6, on Windows 2000, tomahawk 1.1.3,
myfaces-api-1.1.3, myfaces-impl-1.1.3.
Any idea? How can i help you solving this problem? Thank you for the help!
Gabriele Contini.
-----Original Message-----
From: Mike Kienenberger (JIRA) [mailto:[EMAIL PROTECTED]
Sent: venerdì 14 luglio 2006 16.42
To: [EMAIL PROTECTED]
Subject: [jira] Closed: (TOMAHAWK-545) Tomahawk doesn't work without
internet connection. Security issue.
[ http://issues.apache.org/jira/browse/TOMAHAWK-545?page=all ]
Mike Kienenberger closed TOMAHAWK-545.
--------------------------------------
Resolution: Invalid
This is a container configuration issue, not a bug.
For most containers, all you need to do is copy the DTD into your WEB-INF
directory, and it will be fetched from there instead of from the internet.
> Tomahawk doesn't work without internet connection. Security issue.
> ------------------------------------------------------------------
>
> Key: TOMAHAWK-545
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-545
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Affects Versions: 1.1.3
> Reporter: Gabriele Contini
>
> Tomahawk library references an external dtd in META-INF/faces-config.xml
> <!DOCTYPE faces-config PUBLIC
> "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
> "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
> If there is no network connection (for instance a site deployed on an
> intranet) it's necessary to modify the tomahawk installation in order to
> remove those dependencies.
> What if the site java.sun.com becomes unavailable, for instance a DOS
> attack?... all the JSF/Tomahawk applications would stop working immediatly.
> I think this is a major security issue.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira