Hi,

While playing with Sun's waf-framework I encountered the following error:

20:18:15,494 ERROR [Jetty] problem deploying 
file:/home/roman/jboss_src/3.0/jboss-all/build/output/jboss-3.0.0beta/tmp/deploy/68.einfa.war
 to /einfa
java.lang.NullPointerException
        at 
org.mortbay.jetty.servlet.ServletHandler$Context.getResource(ServletHandler.java:867)
        at de.meldebehoerde.einfa.signon.web.SignOnFilter.init(Unknown Source)
        at org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:88)
        at org.mortbay.jetty.servlet.FilterHandler.start(FilterHandler.java:152)
        at org.mortbay.http.HttpContext.startHandlers(HttpContext.java:1370)
        at 
org.jboss.jetty.JBossWebApplicationContext.startHandlers(JBossWebApplicationContext.java:220)
        at org.mortbay.http.HttpContext.start(HttpContext.java:1341)
        at 
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:428)
        at org.jboss.jetty.Jetty.deploy(Jetty.java:273)
        at org.jboss.jetty.JettyService.performDeploy(JettyService.java:284)
...


The corresponding lines from SignOnFilter.java:

public void init(FilterConfig config) throws ServletException {
        this.config = config;
        URL protectedResourcesURL = null;

        try {
            protectedResourcesURL = 
config.getServletContext().getResource("/WEB-INF/signon-config.xml");
        ...

It seems to me as if the ServletContext hasn't been created at this stage of 
deployment ('config.getServletContext()' returns null)?

Any ideas?

_________________________________________________________
View thread online: http://main.jboss.org/thread.jsp?forum=66&thread=9052

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to