Application Server Solutions for Microsoft IIS and ASP.NET
       solutions   products   partners   company   support   downloads         store
ServletExec Self-Help: FAQ
Back to Search >  Back to Search Results

Faq ID 142
Product ServletExec
Category Installation
Question When I try to run a servlet or a JSP, my browser prompts me to download a file. What is wrong?
Answer This can occur if running ServletExec with the IIS web server, and the Virtual Directory [VD] (usually named 'Scripts') that is defined in the IIS website and which points to the ServletExec DLL, either does not exist, or does not have the proper permissions.
Note that this is not a physical folder on your hard drive whose permissions are set via Windows Explorer. This is a virtual folder that is defined in the IIS website and therefore viewable and editable via the Microsoft Management Console (a.k.a. Internet Services Manager).
  • For Windows 2000 the permission must be:
    "Scripts and Executables"
  • For Windows NT the permission must be:
    "Execute (including script)"

NOTE: These permission settings are NOT checkboxes. Here is what to do (with IIS 5 or IIS 6 for EXAMPLE):

  1. Right-click on "My Computer" and choose "Manage"
  2. Expand "Services & Applications"
  3. Expand "Web Sites"
  4. Expand your specific website
  5. Right-click on the Virtual Directory and choose "Properties"
  6. Access the "Home Directory" Tab.
  7. Locate the next to last drop-down list (it is labeled "Execute Permissions" and configured it as described above.
  8. Save the change and then re-request the servlet or JSP


When this problem occurs, check ServletExecNative.log and/or DBMON for a message indicating that the VD does not have the right permissions. Step #7 of SE FAQ #7 also discusses how to do this, as does the ServletExec Installation Guide.

Note that other symptoms of the VD not existing, or not being configured properly may include:
  • A response that indicates "System Path is not Found"
  • A 404-Not Found response coming from IIS
  • In general... you request something from ServletExec (a servlet or JSP) and the response indicates that it was IIS that tried to serve what was requested and of course... failed in some manner.


An additional resource is FAQ #191

If none of the above helps you get past this problem, then try deleting the Virtual Directory from your IIS website and then recreating it with the same name, pointing it to the same place, and giving it the required permission settings.



   
company media information terms of use privacy policy contact us