RE: Tomcat 5.0.18 with connector to IIS?
The one on the Apache site has NEVER worked for me except the origional Connector. Search the list for the ISAPI Connecter 2 and you will find several notes on this. I have a IIS6 server running with the connector compiled by someone else and it works, the only problem is that the Connector virtual directory can not be in a seperate appdomain, but that is the only limitation I have found so far. Let me know if more info or help is needed. Also if the connector binary for download from Apache works nowm someone please correct me. I have never gotten it to work for me. Sincerely, Richard Norman Web/Application Developer Web Site: http://www.Jazzynupe.net/ Web Site: http://Jazzynupe.no-ip.com/ Original Message Follows From: "Allistair Crossley" <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Subject: RE: Tomcat 5.0.18 with connector to IIS? Date: Fri, 6 Feb 2004 14:07:48 - MIME-Version: 1.0 Received: from mail.apache.org ([208.185.179.12]) by mc12-f11.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Fri, 6 Feb 2004 06:09:46 -0800 Received: (qmail 54652 invoked by uid 500); 6 Feb 2004 14:07:49 - Received: (qmail 54449 invoked from network); 6 Feb 2004 14:07:48 - Received: from unknown (HELO mail3.qas.com) (195.172.82.234) by daedalus.apache.org with SMTP; 6 Feb 2004 14:07:48 - Received: from orion.qas.com (orion.qas.com [150.150.100.34]) by mail3.qas.com (Content Technologies SMTPRS 4.3.12) with ESMTP id <[EMAIL PROTECTED]>; Fri, 6 Feb 2004 14:07:48 + X-Message-Info: JGTYoYF78jF/uBGXt/cy0UmA/uI3Uq64 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:[EMAIL PROTECTED]> List-Subscribe: <mailto:[EMAIL PROTECTED]> List-Help: <mailto:[EMAIL PROTECTED]> List-Post: <mailto:[EMAIL PROTECTED]> List-Id: "Tomcat Users List" Delivered-To: mailing list [EMAIL PROTECTED] X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message Message-ID: <[EMAIL PROTECTED]> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Tomcat 5.0.18 with connector to IIS? Thread-Index: AcPss7sjHbt4eeqyReunmewN4ahUfgABs7SQ X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 06 Feb 2004 14:09:46.0694 (UTC) FILETIME=[E0411660:01C3ECBA] Yes. Use the JK2 connector available on the download index. -Original Message- From: Andrzej Jan Taramina [mailto:[EMAIL PROTECTED] Sent: 06 February 2004 13:20 To: [EMAIL PROTECTED] Subject: Tomcat 5.0.18 with connector to IIS? Has anyone got Tomcat 5.0.18 front-ended with IIS using a connector? If so, which connector/version are you using. Any config info and hints on how to set this up (the docs on connectors are pretty confusing sometimes) would be very much appreciated. Please copy responses to [EMAIL PROTECTED] if you could. Many thanks! Andrzej Jan Taramina Chaeron Corporation: Enterprise System Solutions http://www.chaeron.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- QAS Ltd. Developers of QuickAddress Software http://www.qas.com";>www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Create your own personal Web page with the info you use most, at My MSN. http://click.atdmt.com/AVE/go/onm00200364ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: IIS6 connection toTomcat on Win 2003 Server
only the ISAPI and the 1.0 keys are not created), create string values as follows serverRoot (should equal tomcat home directory), extension_uri (http path to ISAPI DLL file configured previously), log_file (path and filename where logfile should be created), worker_file (path to workers.properties file), worker_mount_file (path to uriworkermap.properties file), log_level (one of 4 levels, debug, info, error, or emerg) *** In IIS *** step13: Configure an ISAPI extension named anything you wish. As the executable select the ISAPI redirector you wish (isapi_redirector2.dll or isapi_redirect.dll). step14: once complete, try to navigate to a JSP context you configured (such as /admin or /jsp-examples) Let me know if any of this helps you. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 8:23 PM To: Tomcat Users List Subject: RE: IIS6 connection toTomcat on Win 2003 Server Really appreciate you all hang in there. Windows 2003 Server IIS 6.0.. (5.0 isolation mode) j2sdk1.4.2_03 Jakarta Tomcat 5.0.16 Well I think I'm making progress here but I'm not there yet. http://localhost:8080/jsp-examples/index.html and its links work fine. http://localhost/jsp-examples/index.html and its links work fine and the IIS log file indicates that /jakarta/isapi_redirector2 is being run on port 80 and gives a 200 0 0 status from the connection. That all seems to be working. I put a examples directory under c:\inetpub\wwwroot. Copied the servlet examples (html) files from the servlet-examples directory under tomcat_home. http://localhost/examples/index.html which works and I have access to the links click the hello world link and I get the url http://localhost/examples/servlet/HelloWorldExample with The page cannot be found or a 404 0 3 status message in the IIS log file. The IIS log file also indicates that jakarta/isapi_redirector2.dll is not being accessed or run at the time the link is clicked. Where did I take the wrong turn. Your help would be greatly appreciated. Thanks Stew > My configuration link seems to be dead, but the suggested link below > should work, however, I did not turn on Isolation mode. I wanted the > full IIS6 capabilities. It still works fine for me. > > Try it and see what you get. > > Richard Norman > > -Original Message- > From: Jeff Greenland [mailto:[EMAIL PROTECTED] > Sent: Monday, December 29, 2003 9:13 PM > To: Tomcat Users List > Subject: RE: IIS6 connection toTomcat on Win 2003 Server > > This is a good resource that I've found: > http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html > Not sure if it'll help you out or not, but it's worth a shot. > > Jeff > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, December 29, 2003 7:17 PM > To: Tomcat Users List > Subject: RE: IIS6 connection toTomcat on Win 2003 Server > > > isapi_redirect2.dll is/was added/in the Web Service Extensions. My gut > feeling is its something in the server.xml, workers2.properties, > jk2.properties or some other file(s) I may have left out.. Where does > the web.xml fall in to all of this? > > Web, tomcat and java directories have read execute permissions for the > IUSR user. Is there any reason to bump that up to write create? Log > files seem to be getting updated ok and there isn't any scarie log > entries that point to any thing. > > Really appreciate your help and getting back. > Thanks. > > >> It *looks* like the guide you followed did not include the changes to >> web service extensions to allow the ISAPI application to run. >> >> In the IIS manager, click on the "Web Service Extensions" folder. On >> the right side, click on the "Add a new Web service extension" link. >> Type in any Extension name you want (I used "Jakarta-Tomcat"), then >> click the "Add" button and add the "isapi_redirect2.dll" file. Then >> check the "Set extension status to Allowed" box at the bottom and >> click "OK". You'll have to restart IIS (right click on your computer >> name in the IIS Manager, then click "All Tasks --> Restart IIS") >> before it'll take effect. >> >> Give that a shot! >> >> Jeff >> >> >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> Sent: Monday, December 29, 2003 4:56 PM >> To: [EMAIL PROTECTED] >> Subject: IIS6 connection toTomcat on Win 2003 Server >> >> Greetings. >> >> Windows 2003 server running IIS 6.0. (IIS 5.0 isolation mode) >> j2sdk1.4.2_03 Jakarta Tomcat 5.0.16 >> isapi_redirector2.dll >> >>
RE: IIS6 connection toTomcat on Win 2003 Server
My configuration link seems to be dead, but the suggested link below should work, however, I did not turn on Isolation mode. I wanted the full IIS6 capabilities. It still works fine for me. Try it and see what you get. Richard Norman -Original Message- From: Jeff Greenland [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 9:13 PM To: Tomcat Users List Subject: RE: IIS6 connection toTomcat on Win 2003 Server This is a good resource that I've found: http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html Not sure if it'll help you out or not, but it's worth a shot. Jeff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 7:17 PM To: Tomcat Users List Subject: RE: IIS6 connection toTomcat on Win 2003 Server isapi_redirect2.dll is/was added/in the Web Service Extensions. My gut feeling is its something in the server.xml, workers2.properties, jk2.properties or some other file(s) I may have left out.. Where does the web.xml fall in to all of this? Web, tomcat and java directories have read execute permissions for the IUSR user. Is there any reason to bump that up to write create? Log files seem to be getting updated ok and there isn't any scarie log entries that point to any thing. Really appreciate your help and getting back. Thanks. > It *looks* like the guide you followed did not include the changes to > web service extensions to allow the ISAPI application to run. > > In the IIS manager, click on the "Web Service Extensions" folder. On > the right side, click on the "Add a new Web service extension" link. > Type in any Extension name you want (I used "Jakarta-Tomcat"), then > click the "Add" button and add the "isapi_redirect2.dll" file. Then > check the "Set extension status to Allowed" box at the bottom and > click "OK". You'll have to restart IIS (right click on your computer > name in the IIS Manager, then click "All Tasks --> Restart IIS") > before it'll take effect. > > Give that a shot! > > Jeff > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, December 29, 2003 4:56 PM > To: [EMAIL PROTECTED] > Subject: IIS6 connection toTomcat on Win 2003 Server > > Greetings. > > Windows 2003 server running IIS 6.0. (IIS 5.0 isolation mode) > j2sdk1.4.2_03 Jakarta Tomcat 5.0.16 > isapi_redirector2.dll > > New to Java and I did fry finding answers before subscribing. > > When I found > > http://www.rit.edu/~ack5504/tomcat-iis6-howto/narantugs-sengee-guide.h > tm > l > > I really thought I'd made it. > > IIS is serving pages normal with the WWW service in IIS 5.0 isolation > mode. Virtual dir for the dll is configured. Web Service extensions > status for the dll is set to allow the dll. > > Registry contains the required reg entrys per www.rit.edu > > Tomcat is working fine on the url/:8080. jsp and servlets all work on > 8080. server.xml > > http://localhost/examples/index.html or > serverdrive:\inetpub\wwwroot\examples\index.html > displays ok. > > When one of the example links is selected I get The page cannot be > displayed error message. Expected to receive a tomcat error msg. It > was the regular MS error page.. > > Have been thru the server.xml and workers2.properties several times. > What else can I do? > > Any ideas would really be appreciated. > Thanks > Happy New Year > Stew > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: IIS6 connection toTomcat on Win 2003 Server
Also, the ISAPI redirector that is prebuilt is not working properly... I had to download the redirector from David Boner http://www.mail-archive.com/[EMAIL PROTECTED]/msg109748.html The 2.0.2 version did not work at all. I was able to get IIS6 and JK2 working with the above version from David. That's how it worked out for me.. Richard Norman -Original Message- From: Jeff Greenland [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 9:13 PM To: Tomcat Users List Subject: RE: IIS6 connection toTomcat on Win 2003 Server This is a good resource that I've found: http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html Not sure if it'll help you out or not, but it's worth a shot. Jeff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 7:17 PM To: Tomcat Users List Subject: RE: IIS6 connection toTomcat on Win 2003 Server isapi_redirect2.dll is/was added/in the Web Service Extensions. My gut feeling is its something in the server.xml, workers2.properties, jk2.properties or some other file(s) I may have left out.. Where does the web.xml fall in to all of this? Web, tomcat and java directories have read execute permissions for the IUSR user. Is there any reason to bump that up to write create? Log files seem to be getting updated ok and there isn't any scarie log entries that point to any thing. Really appreciate your help and getting back. Thanks. > It *looks* like the guide you followed did not include the changes to > web service extensions to allow the ISAPI application to run. > > In the IIS manager, click on the "Web Service Extensions" folder. On > the right side, click on the "Add a new Web service extension" link. > Type in any Extension name you want (I used "Jakarta-Tomcat"), then > click the "Add" button and add the "isapi_redirect2.dll" file. Then > check the "Set extension status to Allowed" box at the bottom and > click "OK". You'll have to restart IIS (right click on your computer > name in the IIS Manager, then click "All Tasks --> Restart IIS") > before it'll take effect. > > Give that a shot! > > Jeff > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, December 29, 2003 4:56 PM > To: [EMAIL PROTECTED] > Subject: IIS6 connection toTomcat on Win 2003 Server > > Greetings. > > Windows 2003 server running IIS 6.0. (IIS 5.0 isolation mode) > j2sdk1.4.2_03 Jakarta Tomcat 5.0.16 > isapi_redirector2.dll > > New to Java and I did fry finding answers before subscribing. > > When I found > > http://www.rit.edu/~ack5504/tomcat-iis6-howto/narantugs-sengee-guide.h > tm > l > > I really thought I'd made it. > > IIS is serving pages normal with the WWW service in IIS 5.0 isolation > mode. Virtual dir for the dll is configured. Web Service extensions > status for the dll is set to allow the dll. > > Registry contains the required reg entrys per www.rit.edu > > Tomcat is working fine on the url/:8080. jsp and servlets all work on > 8080. server.xml > > http://localhost/examples/index.html or > serverdrive:\inetpub\wwwroot\examples\index.html > displays ok. > > When one of the example links is selected I get The page cannot be > displayed error message. Expected to receive a tomcat error msg. It > was the regular MS error page.. > > Have been thru the server.xml and workers2.properties several times. > What else can I do? > > Any ideas would really be appreciated. > Thanks > Happy New Year > Stew > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ISAPI_REDIRECTOR2 assistance...
Never mind... I got an updated version and it works... Thank You David Boyer ( http://web.bvu.edu/staff/david/index.jsp?section=software ) Just as a note, everyone BUILD from SOURCE. The 2.0.2 version would not connect at all. I updated to the version listed on David's site and it worked. the original ISAPI worked on IIS6 as well, but I wanted to update to the latest connector and technology architecture. My basic configuration is still the same as listed here... http://216.239.37.104/search?q=cache:LKW7BXJbBqUJ:www.reynir.net/tomcat/tomcat_IIS_service_jk2.html+%2BTomcat+%2BIIS+%2B%22isapi_redirector2%22&hl=en&ie=UTF-8 IF anyone needs assistance with IIS6, let me know. Thanks to David Boyer!!!!! Richard Norman Web/Application Developer Original Message Follows From: "Richard Norman" <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: ISAPI_REDIRECTOR2 assistance... Date: Wed, 12 Nov 2003 14:29:20 -0800 In doing further tests, the original redirector works, but the second version does not. Would this line from my stdout.log file indicate that the APR port is not running? Nov 12, 2003 12:55:08 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 2 Nov 12, 2003 12:55:08 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on localhost/127.0.0.1:40100 Nov 12, 2003 12:55:08 PM org.apache.jk.server.JkMain start INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: no jkjni in java.library.path Nov 12, 2003 12:55:08 PM org.apache.jk.server.JkMain start If that is so, what is the JAR file or class path that is necessary to be sure it is found? I finally got my worker2.properties file configured some what based upon the following page: http://216.239.37.104/search?q=cache:LKW7BXJbBqUJ:www.reynir.net/tomcat/tomcat_IIS_service_jk2.html+%2BTomcat+%2BIIS+%2B%22isapi_redirector2%22&hl=en&ie=UTF-8 I am jsut trying to get the JSP examples to run and I keep getting an error page. Sincerely, Richard Norman Web/Application Developer Web Site: http://Jazzynupe.no-ip.com/ _ Send a QuickGreet with MSN Messenger http://www.msnmessenger-download.com/tracking/cdp_games - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Sincerely, Richard Norman Web/Application Developer Web Site: http://Jazzynupe.no-ip.com/ _ Frustrated with dial-up? Get high-speed for as low as $26.95. https://broadband.msn.com (Prices may vary by service area.) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ISAPI_REDIRECTOR2 assistance...
In doing further tests, the original redirector works, but the second version does not. Would this line from my stdout.log file indicate that the APR port is not running? Nov 12, 2003 12:55:08 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 2 Nov 12, 2003 12:55:08 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on localhost/127.0.0.1:40100 Nov 12, 2003 12:55:08 PM org.apache.jk.server.JkMain start INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: no jkjni in java.library.path Nov 12, 2003 12:55:08 PM org.apache.jk.server.JkMain start If that is so, what is the JAR file or class path that is necessary to be sure it is found? I finally got my worker2.properties file configured some what based upon the following page: http://216.239.37.104/search?q=cache:LKW7BXJbBqUJ:www.reynir.net/tomcat/tomcat_IIS_service_jk2.html+%2BTomcat+%2BIIS+%2B%22isapi_redirector2%22&hl=en&ie=UTF-8 I am jsut trying to get the JSP examples to run and I keep getting an error page. Sincerely, Richard Norman Web/Application Developer Web Site: http://Jazzynupe.no-ip.com/ _ Send a QuickGreet with MSN Messenger http://www.msnmessenger-download.com/tracking/cdp_games - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Why should I use Tomcat vs .NET?
What portions of FPSE (FrontPage Server Extensions) requires registration? I have not run into that before. So far my experience has been the oppsite. My job gets the MSDN Universal Subscription so VS is free along with all the platforms. In terms of going from ASP to ASP.NET, you have to change your thinking form the classical "script and go" method, to one of creating classes, methods and properties. That is the main trick I have found. Both are interesting to me (JSP and .NET) but I find that in .NET there are certain things I can get done faster (probably also cause my job has purchased the MSDN Universal :-) ). You could also use #Develop, Eclipse (has a plugin for C#) or WebMatrix if you need free IDE tools. And then there's Mono (http://www.go-mono-org/ ) for a platform on *nix machines. It is not "final" but you can find out a lot about the platfdorm there too. But you know it just depends on the skills of the developers you have and your immediate needs. If you need wide platform adoption and your developers are comfortable with Java, then Java is the way to go. .NET is just not there yet in the platform department. If you need to leverage a better (IMHO) webService platform, or need to get the most out of Windows machines quickly with people who had previous experience in VB, then .NET is better for you. Just depends on you overall environment. Here (my job) people are mostly VB developers with a little C/C++ knowledge (the Perl guy left). I am probably one of the first well rounded programmers they hired in years (I've done C/C++, VB, JavaScript, some Java, a little Perl, and some batch programming). Pretty much sit me in front of a program, tell me what you need and give me the tools to do it, and I can get it done. So for them .NET was the better move cause a lot of what they knew of VB was still there to an extent. Just some changes underneath and a much larger library to work with. So good luck to you Eduardo, while not exactly what you would like, it maybe something you can learn from and incorporate into your toolset :-) Richard Norman P.S. - Please no flames, just answering the question honestly with my opinion. I do like Java, but it did have some little things that I just wondered why they did the way the did. Original Message Follows From: "Goehring, Chuck Mr., RCI - San Diego" Reply-To: "Tomcat Users List" To: "Tomcat Users List" Subject: RE: Why should I use Tomcat vs .NET? Date: Mon, 13 Oct 2003 12:30:34 -0700 Eduardo, A couple interesting points involves myself and my coworker. He has about ten years of VB programming experience. None of his code can be migrated to vb.net without major rewriting because there is no semblance of backward compatibility. It wouldn't be practical for the customer to pay him to convert the app to dot.net, so he's stuck in 1998. All the VB programmers have been screwed by Microsoft this way. With me, I've been doing Java and perl for about 6 years. Because of the contracting environment I'm in, it looked like my work was going to dry up. An opportunity came along for me within the company. They wanted to do ASP 2.0 web development because they had to meet a variety of government requirements and ASP had been approved for use. Thinking I was going to have to do that project, I checked into it. Firstly, the ASP code they were going to write is totally incompatible with ASP.net, so it was going down a dead path. To cover all the bases, I did some research into upgrading my copy of Visual C++ 6.0 to Visual Studio.net. MS wanted $450 for the upgrade. That's a lot for me to fork over to start over with a completely different system that has limited uses. Fortunately, I didn't have to go that route, but it came close. Comparing that to continuing with Tomcat and Eclipse or NetBeans or JCreator (free version), I can't see why anyone would choose to go the dot.net route. MS has also done a powerplay on the folks that use Frontpage Extensions. The Frontpage 200x now requires that you subscribe to a service from Microsoft to enable important features of the product. It is a lot like extortion. I like using the free products because I can dump any of them at any time without feeling guilty about wasting the company's money. Once you spend thousands to use a proprietary product, you may never be able to escape. I still have to support an ancient Developer 2000 product that can't be cost-effectively be migrated to a newer version and has all kinds of compatibility issues when used with newer products. Chuck -Original Message- From: Eduardo Vazquez [mailto:[EMAIL PROTECTED] Sent: Monday, October 13, 2003 10:48 AM To: 'Tomcat Users List' Subject: RE: Why should i use Tomcat vs .NET? Up front I do need to say that the support of this user group has been more than outstandi
RE: IIS 5.1 and Tomcat 4
The attached TXT file is what I used to get it to work for me. I wrote it step by step when I was configuring my server here. I kept getting errors with the ISAPI_Redirector2.dll file, so I went back to the older version and it worked fine for me with Tomcat 5.0.12 The TXT file is a little sparse and not 100% cleaned up, but you should get the general idea. Whenever I tried to use the ISAPI2 redirector, it would just come back with a Server connection or DNS error, but when I changed it to the older version of the ISAPI DLL, it worked fine. See if this helps you at all. Richard Norman Web/Application Developer Original Message Follows From: "Januski, Ken" <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> To: Tomcat Users List <[EMAIL PROTECTED]> Subject: RE: IIS 5.1 and Tomcat 4 Date: Tue, 23 Sep 2003 14:31:36 -0400 Jon, I think that the log is telling you just what it should. Tomcat looks for a mapping of server name to servlet in web.xml. So it won't find one for localhost or machine name but that's really not important. It will find nothing for them and move on. What it should find and does is the mapping from servlet name to servlet. So it seems to me that it is finding the mapping correctly. The problem is that nothing is happening after that. Have you looked at the IIS logs to see what they say? They should include line for isapi_redirect or isapi_redirecto2.dll and SHOULD have a 200 as server response, e.g. POST /jakarta/isapi_redirector2.dll - 200 0 4096 690 When I was trying this it took me forever to get it to change from 400/500 to 200 I believe. Unfortunately this won't solve your problem but it may move you further toward a solution. Ken -Original Message- From: Jon Skeet [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 5:42 AM To: Tomcat Users List Subject: RE: IIS 5.1 and Tomcat 4 > It seems like /mobilizer/mobilizer/ finds its way through, > but the path /localhost/mobilizer/mobilizer doesn't. Is that correct? What > is the path starting with /localhost, is this really your intention? There shouldn't be any path starting with /localhost. I'm visiting the URL http://localhost/mobilizer/mobilizer but the localhost part is the servername, not the path. This appears to be consistent with the log I get when I use the name of the computer rather than localhost, eg: [Tue Sep 23 10:40:11 2003] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Tue Sep 23 10:40:11 2003] [jk_uri_worker_map.c (368)]: Attempting to map URI '/treebeard/mobilizer/mobilizer/' [Tue Sep 23 10:40:11 2003] [jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match My guess is that it's something IIS is doing for the sake of virtual hosting, but I wouldn't like to say for sure. The /mobilizer/mobilizer path is the correct one - but I don't know why it's then not getting any further than it is doing. Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Sincerely, ^ { Richard Norman } { Big Brother "Jazzy"} { } { "The Brother with the Smooth } {moves and Mellow grooves"} { } {Kappa Alpha Psi Fraternity, Inc. } { Beta Omega Chapter } { } { Nemesis - "Kan't Be Faded!!!" } { Ace Klub - Fall 94 } # "Training For Leadership!!!" "Many are Kalled but Few are Chosen!!" WebSite (new): http://Jazzynupe.no-ip.com _ Add MSN 8 Internet Software to your existing Internet access and enjoy patented spam protection and more. Sign up now! http://join.msn.com/?page=dept/byoa Install Tomcat to work with IIS as web server [EMAIL PROTECTED] step 1: Install Tomcat From my example I installed to c:\Tomcat\Tomcat-[version] Step 2: Copy ISAPI extension to bin\ISAPI folder (you must create the ISAPI folder) You can copy both versions if you wish for easy switching (isapi_redirector2.dll and isapi_redirect.dll) Step 3: Create this folder as a web virtual directory named "jakarta" with "Run executables" permissions *** In conf\server.xml file *** Step 4: configure host to include IIS root as appBase *** example *** *** use forward slashes instead of back slashes for directory seperation. Step 5: Include any other Application contexts you wish *** example *** *** Step 6: configure the AJP 1.3 listener to listen on the
Re: escaping problems--ha!
This is one I think I can answer... :-) What you want to do is first escape the back slash, then escape the apostraphe... so you want to have a string that looks like this: var name = '\\\''; That should get what you are looking for. you may need to create a string parsing or regular expression routine to get what you are looking for. Richard Norman Web/Application Developer Original Message Follows From: "Koes, Derrick" <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> Subject: escaping problems--ha! Date: Wed, 10 Sep 2003 16:59:24 -0400 My scenario involves a user who wishes to enter \' in an html input field. I must then convert that to a javascript variable (for any number of reasons). However, when I attempt to escape backslashes then attempt to escape apostrophes, I end up with a javascript error: Unterminated string constant. I can see the source on my page has the javascript variable something like: var name = '\\''. What are the correct steps to correctly escape data such as \' or any number of backslashes or apostrophes. Thanks, Derrick _ Get 10MB of e-mail storage! Sign up for Hotmail Extra Storage. http://join.msn.com/?PAGE=features/es - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JK2 Question...
I have read the information and configured my server as specified at the following URL... http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/jk2/installhowto.html The thing I think is going on is that the port is not open fully cause every time I try to connect to a JSP page from IIS, I get the "Can not find server or DNS Error" message. If I go directly to tomcat on the port I set up, everything works (4). in the startup sequence it says in the log file the following * INFO: Starting Coyote HTTP/1.1 on port 4 Sep 10, 2003 1:22:09 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:40100 Sep 10, 2003 1:22:09 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/250 config=C:\Tomcat\Tomcat-5.0\conf\jk2.properties Sep 10, 2003 1:22:09 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 6797 ms * Here is my workers2.properties file * [channel.socket:localhost:40100] port=40100 host=127.0.0.1 # define the worker [ajp13:localhost:40100] channel=channel.socket:localhost:40100 # Map the Tomcat examples webapp to the Web server uri space [uri:/jsp-examples/*] info=Map the whole webapp * Here is my jk2.properties file * # Set the desired handler list handler.list=request,channelSocket # # Override the default port for the socketChannel channelSocket.port=40100 channelSocket.address=127.0.0.1 request.tomcatAuthentication=true * and here is the connector entry in my server.xml file * * Any ideas anyone? THis is the last step to get everything working 100% for me... Richard Norman Web/Application Developer _ Compare Cable, DSL or Satellite plans: As low as $29.95. https://broadband.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0.9 appBase and docBase questions...
Thanks for the timely response.. I've been scratching my head over this for the past day and a half thinking I am just not getting this right. Are there any other active gotcha's I need to watch out for? I am using this for testing and some "getting my feet wet" work in JSP 2.0. By the way, is there any further documentation on the JK2 interface for IIS? I am curious to see if there have been any improvements in speed or manageability since Tomcat 4 was updated. Thanks again... Now I feel a little less silly.. ;-) Richard Norman Web/Application Developer -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2003 11:42 PM To: Tomcat Users List Subject: Re: Tomcat 5.0.9 appBase and docBase questions... Richard Norman wrote: > I have a question and I have looked all through the documentation and > have not found the solution. > > Firstly I wanted to know if there is a source to go to about using > Tomcat 5.0.9 with IIS on Windows. Particularly the JK2 connector and > ISAPI connector? > > If not, then is there some sore of direction I can be given to test > out this new version? > > Secondly, is there some parts of the configuration not working > properly for Tomcat 5.0.9? I am able to set the appBase of a Host > properly, however whenever I try to set a context with a different > drive for the docBase, or try to have the admin.xml and manager.xml > files configure their context, I get the following error... > > Again, here is my Host command in server.xml > > * > unpackWARs="true" autoDeploy="true" reloadable="true"> > > And my Admin.xml is as follows > * > debug="4" privileged="true"> > > prefix="localhost_admin_log." suffix=".txt" > timestamp="true"/> > > > * > > The error I receive is this (long entry)... > * > Sep 8, 2003 5:01:48 PM org.apache.catalina.core.StandardHostDeployer > install > INFO: Processing Context configuration file URL > file:C:\Tomcat\Tomcat-5.0\conf\Catalina\localhost\admin.xml > Sep 8, 2003 5:01:48 PM org.apache.commons.digester.Digester > startElement > SEVERE: Begin event threw exception > java.io.IOException: The filename, directory name, or volume label > syntax is incorrect > at java.io.WinNTFileSystem.canonicalize0(Native Method) > at java.io.Win32FileSystem.canonicalize(Unknown Source) > at java.io.File.getCanonicalPath(Unknown Source) > at java.io.File.getCanonicalFile(Unknown Source) > at > org.apache.catalina.startup.SetDocBaseRule.begin(SetDocBaseRule.java:137) > at org.apache.commons.digester.Rule.begin(Rule.java:200) > at > org.apache.commons.digester.Digester.startElement(Digester.java:1273) > at > org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown > Source) > at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown > Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement > (Unknown > Source) > at > org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRo > otElementHook(Unknown > Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentD > ispatcher.dispatch(Unknown > Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unk > nown > Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > at org.apache.commons.digester.Digester.parse(Digester.java:1567) > at > org.apache.catalina.core.StandardHostDeployer.install(StandardHostDepl > oyer.java:515) > > at org.apache.catalina.core.StandardHost.install(StandardHost.java:866) > at > org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.ja > va:529) > > at > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474) > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008) > at > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:399) > at > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycle > Support.java:166) > > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1135) > at or
Tomcat 5.0.9 appBase and docBase questions...
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1135) at org.apache.catalina.core.StandardHost.start(StandardHost.java:792) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1127) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:502) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2311) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:394) * It is almost as if the appbase changes the context for the entire server and not just that one host entry. The funny thing is if I place a context entry, Tomcat will not even start. It is as though the change in drive is not allowed or something. Have I come across a bug or is this just beginner stupidity? If I leave the appBase as the webapps folder, it all seems to work just fine. the Admin and Manager XML files are processed fine. As soon as I change the appBase or add an absolute path in the appBase or contex entry, I get errors... Thanks for your time and help... Richard Norman Web/Application Developer _ Fast, faster, fastest: Upgrade to Cable or DSL today! https://broadband.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]