Solved

ServletExec and IIS: file.java not recognized as servlet!?

Posted on 2002-04-29
3
268 Views
Last Modified: 2006-11-17
I've installed ServletExec on IIS 5.0/Win2k and am having problems getting servlets to run.  First off, this was working; we've had ServletExec, IIS5, and ArcIMS(Map Software) playing nicely, but it appears to be a VERY fragile arrangement.  So today, someone made unknown changes to IIS, trying to affect a misdiagnosed problem with scripting, and now my site which uses ServletExec will not load.  The best description of the problem I can muster, is that when you try to load the TestServlet or Admin servlets, as suggested by New Atlanta, going to http://servername/servlet/admin or TestServlet, instead of executing the file, it prompts to download or open it from it's current location.  Of course if you try to open the file, Win2k doesn't know what the hell it is.  Tried reinstalling ServletExec to no avail.  Permissions are wide open(Everyone Full Access) on New Atlanta\ServletExec ISAPI\ Directory.  Any Ideas?
0
Comment
Question by:benhanson
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
pssiew earned 250 total points
ID: 6979700
Try to make the folder where the file is executable from the IIS Console.

I am not familiar with the ServletExec software, but your problem looks like the application's executable file is not made executable in IIS hence when browsed, it is prompts for download.

Check for a .exe file location
0
 
LVL 12

Author Comment

by:benhanson
ID: 6981492
This was the case.  Actually, the file in question is a .dll, but the Scripts folder in IIS still needed permission to run "Scripts and Executables", so IIS must consider the Java servlets executables.  The actual steps involved:  Open IIS Managager, open properties on <servername>:Default Web Site:Scripts, go to Virtual Directory tab, and change Execute Permissions setting to "Scripts and Executables"  This got me to the point that the example and admin servlets worked, then I was able to work out the remaining ServletExec wierdness, which involved re-entering Serial number, the info was blown away during reinstall(Its in a file, not the registry), re-adding a Virtual Machine:Class Path to ServletExec through the Admin servlet, then re-copying Connector\Servlet\ Files from ArcIMS install directory.  Each of these steps require a restart of IIS, though if they are done all together they would probably only require one restart.  Thanks for the help pssiew.
0
 
LVL 2

Expert Comment

by:pssiew
ID: 6984941
No problem Ben. Glad that you managed to solve it.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question