Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with jSF and Filter  RSS feed

 
B Cantor
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Help needed. please

I am having problems getting this filter working. The problem is that
forward in the method isSystemAvaliable does not work as expected. What happens is the
that I get a 'File not found: /subDir/DataSetProgressServlet' error where I wanted to forward to
'DataSetProgressServlet' mapped like this in web.xml:
<servlet-mapping>
<servlet-name>DataSetProgressServlet</servlet-name>
<url-pattern>/DataSetProgressServlet</url-pattern>
</servlet-mapping>

The problem only occurs when I am trying to access a Java Server Faces page all other servlets are working.

The faces servlet is mapped like this:
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>

Can anybody help me out?

Thanks

 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't seem to have mapped the logical servlet name "DataSetProgressServlet" to a Java class (e.g. org.javaranch.mystuff.DataSetProgressServlet).

Just as "Faces Servlet" has a class name mapping in web.xml, you also need one for your own servlet.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!