000
29.04.2008, 16:04 Uhr
~sghjk
Gast
|
Hallo,
wir lassen die Login-Verwaltung in unserer JSF-Applikation über Faces listener laufen:
C++: |
public class LoggedInCheck implements PhaseListener {
private static final long serialVersionUID = -4348548531050089251L;
public void afterPhase(PhaseEvent arg0) {
}
public void beforePhase(PhaseEvent event) { FacesContext facesContext = event.getFacesContext();
// Check if we are on the login page HttpServletRequest req = (HttpServletRequest) (facesContext .getExternalContext().getRequest()); String requestURI = req.getRequestURI(); if (requestURI.contains("unregistration.jsf") || (requestURI.contains(".jsf") && !requestURI.contains("login") && !requestURI .contains("registration"))) {
// Get the loginManager and check if logged in LoginManager loginManager = (LoginManager) facesContext .getApplication().evaluateExpressionGet(facesContext, "#{loginManager}", LoginManager.class); if ((loginManager == null) || !loginManager.getLoggedIn()) { try { facesContext.getExternalContext().redirect("login.jsf"); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } }
public PhaseId getPhaseId() { return PhaseId.RESTORE_VIEW; } }
|
Das Problem ist, dass unsere Seitenformatierung hin und wieder ignoriert wird und folgende Fehlermeldung geworfen wird, zu der wir noch keine brauchbare Hilfe finden konnten:
C++: |
SCHWERWIEGEND: Servlet.service() for servlet Faces Servlet threw exception javax.faces.FacesException: Error decode resource data at org.ajax4jsf.resource.ResourceBuilderImpl.decrypt(ResourceBuilderImpl.java:606) at org.ajax4jsf.resource.ResourceBuilderImpl.getResourceDataForKey(ResourceBuilderImpl.java:356) at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:159) at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:144) at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:265) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Caused by: java.util.zip.DataFormatException: unknown compression method at java.util.zip.Inflater.inflateBytes(Native Method) at java.util.zip.Inflater.inflate(Inflater.java:223) at java.util.zip.Inflater.inflate(Inflater.java:240) at org.ajax4jsf.resource.ResourceBuilderImpl.decrypt(ResourceBuilderImpl.java:600) ... 16 more
|
Fällt euch was dazu ein?
Vielen Dank Dirk |