File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Tomcat with PWS - help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat with PWS - help" Watch "Tomcat with PWS - help" New topic
Author

Tomcat with PWS - help

Viji Bharat
Ranch Hand

Joined: Sep 18, 2000
Posts: 101
All:
I have Tomcat 3.2.1 and it works fine as a stand-alone servlet container. I am trying to integrate it with PWS on NT 4.0 using the isapi redirector plugin (also available at jakarta site). I have some difficulties in getting this to work.
I have followed the tomcat instructions but haven't been able to set isapi_redirect.dll as a "filter" in IIS/PWS web site. Anyone knows how to set this filter option? I don't see anything on the PWS MMC that lets you set the filter option. I have created the registry entries (Filter DLLs) etc.
As a result, when I try to access URLs using http://localhost/...., I get a file not found error. (These pages work fine when viewed with just Tomcat so it is the integration with PWS that has caused the problem)
If any of you have set this up without any problems and can provide me some help, that will be excellent.
Thanks
Marius Holm
Ranch Hand

Joined: Sep 11, 2000
Posts: 84
Hi Viji,
The filter/s are added to your site (in PWS MMC) by first selecting your site ('default www-site'), and then 'properties'.
Yuo will see a property page with many 'tabs' (isn't that what they're called?) on it. One of these are labeled 'ISAPI filters'. On that page you can add and configure filters.
The PWS is a functionally identical product to IIS, the server version, except for some hard-coded limitations from MS in order to have you buy the server product if you need the full functionality, for instance more then one site on your system.
Therefore you may not be able to run these two web servers as you wish. It would be nice if you would let me know if it works. Given your situation, I would like to take the opportunity to ask you for some advice too.
(I posted this earlier, but I don't know how to make a link to that, so I just copy the question here ):
Hi folks,
I'm a bit rusty in Java as my work has kept me busy with MS-tech. But now I'd like to take it up again, and I would just looove to make some servlets. So, sneaking around on Sun's pages, at last I think I'm getting close to get the stuff I need to get started. But I would be happy to get some advice here.
The system I will run this on (for development and testing only) is a MS Windows 2000 server, with MS IIS web server. The IIS does not support the servlet specs, I've heard, so I have downloaded the JRun Webserver from Allaire (it's free as a development version) which I believe I can set up as a servlet container within IIS.
For Java development I have downloaded a package called 'J2SDK1_3_0', which I believe are the core Java classes, and a zip-file called servlet2_2b.zip (which contains a zipped file called 'servlet.jar'). Will it contain all I need for developing servlets? I am a bit confused when it comes to versioning, I understand 1.3.0 is a quite new release, how is support in different browsers/systems? This package will also probably install the JRE1.3, but if not I have downloaded that too. Is that the JRE I should use? I would presume that when testing an Applet communicating with a Servlet on the same machine, that both the applet and the servlet use the same JRE to run. How will it affect execution if they run on two machines with different JRE's? And how about the 2.2b version of the servlet files? I have also downloaded an IDE from Allaire, called Kawa. I have tried that before and like it, but that's a 90 day evaluation, so if anyone knows about a free IDE I would be happy to hear it.
If there are somebody that have any tips or tricks, or experiences with servlets under Windows, or if somebody could tell me if I got all I need (and how about JDBC?) I would be very thankful.
Regards,
Marius

[This message has been edited by Marius Holm (edited January 21, 2001).]
Viji Bharat
Ranch Hand

Joined: Sep 18, 2000
Posts: 101
Marius:
Thanks for your response. I could set the ISAPI filter and http://localhost/examples.... works fine.
However, I have difficulties in running servlets from my working directory under webapps. I am working on this now.
I did see that Bill had answered your question. I have not used JRun but this is what I have been using to do some development with servlets/JSPs.
1. I downloaded Tomcat from Apache (http://jakarta.apache.org)
2. Started tomcat server (using startup command) and tried the examples using http://localhost:8080/examples... just to see the installation was correct.
3. Copied the examples directory to my working directory under webapps and created a few servlets. Changed web.xml under myworkingdir/web-inf and included new servlet and servlet-mapping tags.
4. Modified server.xml to include my working directory as a new context. (just copied the /examples context and changed it to my working directory)
5. http://localhost:8080/myworkingdirectory/<<servlets>> seems to work fine.
6. If you don't want to specify 8080, you can change the port # to 80 in server.xml. If you have any other web server (IIS/PWS etc.) running on your machine, stop that before you request http://localhost/myworkingdirectory/<<servlets>>
HTH
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat with PWS - help