• 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:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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: 19993
95
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!