Non-obsolete way of running Tomcat as a Windows Service?

2005-04-11 Thread Jon Skeet
. Is there a preferred way of running Tomcat as a Wndows service? The Windows installer isn't a good option for us (as far as I can tell), as we need a customised version of Tomcat to be installed as part of another installation process. Jon Skeet Clearswift monitors, controls and protects all its messaging

RE: What does this mean?

2003-10-03 Thread Jon Skeet
Found this in my JK2 logs (Windows events): Emerg: [jk_isapi_plugin.c (426)]: HttpFilterProc [/cc200x/meta-inf/services/javax.xml.parsers.documentbuilderfactory] points to the web-inf or meta-inf directory. Somebody try to hack into the site!!! What does this mean? I believe it means

RE: What does this mean?

2003-10-03 Thread Jon Skeet
That's what I figured... However, the only one accesing the system at the moment is myself. It must be one of my servlets that places such a request. Why is there a meta-inf directory anyway? It is not reflected in the file system.? Consider a war file - that's likely to have a meta-inf

RE: IIS 5.1 and Tomcat 4

2003-09-24 Thread Jon Skeet
The module that could not be found, it seems like IIS is talking about isapi_redirect.dll. I don't know really how it all works with these isapi filters, but the file should be downloadable from a browser, so you should try pointing your browser to

RE: IIS 5.1 and Tomcat 4

2003-09-23 Thread Jon Skeet
snip log 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

RE: IIS 5.1 and Tomcat 4

2003-09-23 Thread Jon Skeet
That explains the localhost part. It worries me a bit though - I don't like the idea of paths having to *not* start with the machine name, just in case things get confused :( Then I would try with a network sniffer (or whatever they are called) to find out if IIS tries to contact tomcat at

RE: IIS 5.1 and Tomcat 4

2003-09-23 Thread Jon Skeet
I've got a port monitor which just shows connections - and it shows no sign of IIS trying to contact Tomcat. I'll try with Ethereal as well. snip Darn - Ethereal won't (as far as I can see) let me capture network activity within my own system (ie the loopback, effectively). Any ideas what

RE: IIS 5.1 and Tomcat 4

2003-09-23 Thread Jon Skeet
[Replying to two posts from Mats at once] (About not being able to sniff local packets) Correct, but can't you use a browser on another machine? Yes, but that wouldn't help - it's the IIS-Tomcat communication which is at issue here (I thought, anyway) and that would still be local. I don't

RE: IIS 5.1 and Tomcat 4

2003-09-23 Thread Jon Skeet
Please excuse my butting in mid-thread as I may have missed something. I've spent more time than I'd like getting IIS and Tomcat working in the past but unfortunately don't remember all the details. One thing I do notice from earlier thread is that you seem to be calling the host

RE: IIS 5.1 and Tomcat 4

2003-09-22 Thread Jon Skeet
I'm trying to get IIS 5.1 and Tomcat 4 to play nicely together. snip Did this question not get answered because: a) I didn't provide enough information b) Few people on the list have hooked IIS up to Tomcat c) A more interesting question (OutOfMemoryError) came in soon afterwards ? If you

RE: IIS 5.1 and Tomcat 4

2003-09-22 Thread Jon Skeet
(Thanks for replying, btw :) I think you must have this row in your workers.properties: worker.list=ajp13 I'm afraid I already have that - I must have been a bit overenthusiastic when snipping my file down to a manageable file for mailing list purposes. o isapi_redirect.dll from

RE: IIS 5.1 and Tomcat 4

2003-09-22 Thread Jon Skeet
Just checking this, my log definitely shows it's found the ajp13 stuff: [Mon Sep 22 16:22:03 2003] [jk_worker.c (82)]: Into wc_open [Mon Sep 22 16:22:03 2003] [jk_worker.c (207)]: Into build_worker_map, creating 1 workers [Mon Sep 22 16:22:03 2003] [jk_worker.c (213)]: build_worker_map,

IIS 5.1 and Tomcat 4

2003-09-19 Thread Jon Skeet
I'm trying to get IIS 5.1 and Tomcat 4 to play nicely together. So far I've not got very far. I've got: o isapi_redirect.dll from http://apache.oregonstate.edu/jakarta/tomcat-3/bin/win32/i386/ (That's the only place I could find it, and it took a while to find... should I be worried that it's

Where does tomcat-jk2.jar come from?

2003-09-08 Thread Jon Skeet
I'm still on the trail of bug 17193, and I'd quite like to see if I can fix it myself. Unfortunately, I've run into a problem at the very first hurdle - finding the source! Catalina has tomcat-jk2.jar in the server/lib directory, but where does this come from in the first place? The source

RE: Running Tomcat 4.1.27 without Jasper (or a JDK)?

2003-09-03 Thread Jon Skeet
Actually, removing Jasper from 3.3.1(a) is about the same as for 4.1.x: You just comment out the JspInterceptor element in server.xml, and voila: you've got a JSP-less Servlet-Container. I tried that at the time - I can't remember which version, I'm afraid - and if I didn't have Jasper

Interesting (?) classloader problem

2003-09-03 Thread Jon Skeet
As observant readers will have noticed, I'm migrating a webapp or two from Tomcat 3.2.3 to Tomcat 4.1. Now, our apps have a very specific version of Xerces that they currently need to use (although I'm hoping this requirement will go away). I believe the version is Xerces-J 1.4.4 (at least

RE: Interesting (?) classloader problem

2003-09-03 Thread Jon Skeet
There is a typo in the documentation - you can not override the Xerces parser used. Aha. That at least explains my confusion :) You can replace the one in /common/endorsed and see if it works - I don't recall which version tomcat requires. Have you tried your app with the version that

Can't stop tomcat with shutdown.bat - bug 17193

2003-09-03 Thread Jon Skeet
I'm running into a problem when I try to run shutdown.bat (or use the stop parameter directly). I get an exception in the main Tomcat process: java.net.BindException: Cannot assign requested address: connect snip I've had a look in Bugzilla, and this seems to be bug 17193. The process is

RE: Can't stop tomcat with shutdown.bat - bug 17193

2003-09-03 Thread Jon Skeet
I think a jk2 release (v1.2.5 I believe) is very close, and has this bug fixed. That's excellent news. When it's released, will I be able to just dump a new tomcat-jk2.jar in server/lib, and everything should spring to life, or is there more to it than that? Check the recent jk2 release

RE: Can't stop tomcat with shutdown.bat - bug 17193

2003-09-03 Thread Jon Skeet
The release that Yoav is referencing is a new mod_jk, which is an Apache DSO module, not a JAR file. So yes, I guess you will be able to sub in the new DSO as soon as you can build one or find a binary, but don't confuse it with a JAR file. In that case I can't see how it's going to help

Running Tomcat 4.1.27 without Jasper (or a JDK)?

2003-09-02 Thread Jon Skeet
of searches, admittedly). Thanks, Jon Skeet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Running Tomcat 4.1.27 without Jasper (or a JDK)?

2003-09-02 Thread Jon Skeet
I don't think you need to do anything. But you probaly want to do this: - remove $CATALINA/common/lib/jasper-compiler.jar - in $CATALINA/conf/web.xml - comment out boht jasper/jsp references If you don't use precompiled jsp's - remove $CATALINA/common/lib/jasper-runtime.jar You might

RE: Running Tomcat 4.1.27 without Jasper (or a JDK)?

2003-09-02 Thread Jon Skeet
Just out of curiosity: I'm wondering why you want to do that? The overhead of the JDK over JRE isn't that big and disk space isn't usually a problem. We distribute the JRE in our installation. I know these days you're allowed to distribute tools.jar (and javac.exe?) but the JRE we

Autodeploy to false, but still happening?

2003-09-02 Thread Jon Skeet
I should state that I'm pretty new to Tomcat 4, but have used Tomcat 3 for quite a while. In order to prevent the examples web-app from loading (which required the invoker servlet, which I've commented out completely for the moment), I thought I could just set the Host autoDeploy attribute to

RE: Autodeploy to false, but still happening?

2003-09-02 Thread Jon Skeet
There's liveDeploy too (periodic deployment), in addition to autoDeploy. Aha! Great, thanks very much. The attributes have been changed in Tomcat 5, BTW (refer to the docs). That shouldn't bother me for a while - we're only getting round to moving to Tomcat 4 now; it'll be years before we

RE: Autodeploy to false, but still happening?

2003-09-02 Thread Jon Skeet
Having managed to disable all of that, I'd really *like* to be able to use context XML files and *only* context XML files, i.e. part of autoDeploy but not the rest. I'm assuming I can't do that, which is fine - it would be nice, but it's no biggie. If I decide later on that it would be

Call for Votes: comp.lang.java.{server-side,servlet}

2001-04-30 Thread Jon Skeet
further discussion of the proposal should be carried out on the news.groups newsgroup. [Note - I myself am about to go on holiday for a week, but as soon as I come back I'll be happy to answer any questions that might arise.] Thanks for your time, Jon Skeet [EMAIL PROTECTED]

Servlet newsgroup discussion on news.groups

2001-04-06 Thread Jon Skeet
want to. Thanks for reading, Jon Skeet - [EMAIL PROTECTED]

Re: context-param: illegal char

2000-12-11 Thread Jon Skeet
apparently is an illegal character. but how do i solve this problem? i've thought of url_encoding this, but that's an ugly sollution. anybody got a better idea? No, you need to *xml* encode it - use amp; instead of . Jon

RE: How do you compile ?

2000-12-11 Thread Jon Skeet
How do I compile this servlet so it should know what where that function is? I think you'd be better off learning Java first, *then* going into servlets - trying to learn both at once may well be much trickier than learning one at a time. Jon

RE: How do you compile ?

2000-12-11 Thread Jon Skeet
I basically want to know if a servlet is using a function in another package how do you compile that servlet? What tags do I include or how do I reference the package when I compile. And what I've said, and what I'll repeat, is that you should learn Java *first*. If you knew Java, you'd know

Re: preloaded feture

2000-12-08 Thread Jon Skeet
May I know that is't tomcat have the feture that preload a servlet each time I start the tomcat? For example, every time I start the tomcat, it will automatically load a servlet (this servlet will read a properties file, and set these properties to to ServletContext). If so, how to

Re: Application Path

2000-12-08 Thread Jon Skeet
Hello All, I have a question regarding application path in Tomcat. I have loaded and application named "myapp" under 'webapps' of Tomcat. Now, is it possible to know the full path of my application "myapp"?[i.e upto and including the folder 'myapp'] Within a request, use

RE: Application Path

2000-12-08 Thread Jon Skeet
You can use the "getDocumentBase()" method to find the path/URL of your servlet. and/or "getCodeBase()" which gets the base URL. No - both of those methods are for *applets*, not servlets. Jon

Re: java.lang.ClassCastException

2000-12-07 Thread Jon Skeet
Is it perhaps due to a new classloader being used? Does this happen when the servlet is recompiled half way through the operation? No, the servlet it not compiled in the server. It's compiled on my PC and uploaded. However, thanks for the tip. I can reproduce the error consistently now.

Re: directory listing

2000-12-06 Thread Jon Skeet
Please help me.. I currently have Apache 1.3.12 passing any .jsp to Tomcat. (I'm new at this). How do I turn off the Directory listing in Tomcat? I've tried editing every file I can think of. This is getting VERY frustrating. Thanks in advance, Greg Give your StaticInterceptor in

Re: Class verify errors with large(?) JSP pages

2000-12-05 Thread Jon Skeet
I have seen in the archives several posts detailing the same problem. However I could find no response. Hence I'm posting again. OS - Win NT 4 sp6a Suns JDK 1.2.1 Tomcat 3.2 final The error occurs with JSP pages with a large number (250+) of taglib actions. The java source file is

Re: Hi folks!

2000-12-04 Thread Jon Skeet
First day in this mailing list and first question: Does anyone know something about the Basic Authentication mechanism with Tomcat? It was supposed to be fixed in this release. Did anyone try it? Is it working? Thanks, Vittorio It's working for me, *but* you need to following in web.xml:

Re: WAP Configuration

2000-11-30 Thread Jon Skeet
Second, the content type that is created by a JSP page is controlled by what your page declares in the "page" directive, not by Tomcat. If you wish to have the output treated as XML, for example, you would include a directive like this at the top of your pages: %@ page

Requesting / hangs Tomcat with no static interceptor?

2000-11-17 Thread Jon Skeet
I'm using Tomcat 3.2b7 (also happens under 3.2b6) and I'm trying to run a slightly cut-down version. In particular, I don't want to serve any static files, show any directories etc. I thought that to do this, I could remove the line: RequestInterceptor

Re: Netscape can't find css

2000-11-16 Thread Jon Skeet
I have written a servlet that uses a StyleSheet to produce an HTML Page. While the app works fine in IE5, NS4.75 returns the following error Message: Error: 404 Location: /examples/servlet/D:/jakarta-tomcat/webapps/examples/Web-inf/classes/spc.css That D:/ looks extremely odd. Why is

Re: Apache is writing 800\n to servlet response outputstream.

2000-11-15 Thread Jon Skeet
Sounds like apache is chunking the output stream, which seems a reasonable thing to do. Do the headers mention anything about chunking? What happens if you have a static image served by apache, out of interest? Jon

RE: WML postfield tomcat 3.1

2000-10-25 Thread Jon Skeet
Nope, we are using post. And note that it works if the container is JRun, but not tomcat. Ah - in that case it can't entirely be the emulator. Have you put a network sniffer on to see what's actually being sent to the server? It could be that JRun is more tolerant of broken post requests or