Win a copy of Pragmatic AI this week in the Artificial Intelligence forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

problem with jSF and Filter  RSS feed

 
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

 
Bartender
Posts: 19673
92
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!