Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SimpleFileServlet restricted by file type

10 views
Skip to first unread message

Michael Strickler

unread,
Jun 26, 2001, 7:53:43 AM6/26/01
to
I have a need to serve some files from the SimpleFileServlet and some
files from the Web Server, because some are actually ASP pages that need
to be processed by IIS. Is there a way of limiting match string that
SimpleFileServlet will allow. I've tried changing the server web path
list to something like *.html, but that didn't work. Are there some
init parameters that can be specified on the Advanced tab to do this?

Any ideas would be appreciated.

David Artus

unread,
Jun 26, 2001, 12:42:35 PM6/26/01
to

Any servlet should only respond to requests that match the patterns
you specify. When you say that this didn't work what behaviour did
you see? When you made your changes did you check that your plugin
config was updated accordingly? I'd restart everything after making
the change.

Michael Strickler

unread,
Jun 26, 2001, 4:40:32 PM6/26/01
to
I set the Servlet Web Path List to default_host/app_name/*.html
Then, I regenerated the plugin and started the server. Then, I try to display
the file html/Not_Logged_In.html and the error I get is something like this...

Error 403

An error has occured while processing
request:http://localhost/app_name/html/Not_Logged_In.html

Message: File not found: null


Target Servlet: File Serving EnablerClone
StackTrace:

Root Error-1: File not found: null

com.ibm.servlet.engine.webapp.WebAppErrorReport: File not found: null
at javax.servlet.ServletException.<init>(ServletException.java:107)
at
com.ibm.websphere.servlet.error.ServletErrorReport.<init>(ServletErrorReport.java:31)

at
com.ibm.servlet.engine.webapp.WebAppErrorReport.<init>(WebAppErrorReport.java:20)

at
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(WebAppDispatcherResponse.java:97)

at
com.ibm.servlet.engine.webapp.SimpleFileServlet.doGet(SimpleFileServlet.java:214)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

0 new messages