. 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
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
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
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
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
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
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
[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
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
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
(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
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,
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
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
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
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
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
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
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
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
of searches, admittedly).
Thanks,
Jon Skeet
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
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
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
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
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]
want to.
Thanks for reading,
Jon Skeet - [EMAIL PROTECTED]
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
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
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
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
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
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
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.
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
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
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:
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
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
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
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
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
43 matches
Mail list logo