I got it to work on my own, but I still have 1 major question.
This is what I did:
I made 1 unified workers.properties file which contains:
workers.tomcat_home=/export/home/prod/tomcat3.2.4
workers.java_home=/export/home/prod/jdk-1.3.1
ps=/
worker.list=ajp12prod, ajp12beta
I am using Apache 1.3.28, mod_jk, Tomcat 3.2.4.
I have Apache running with 2 virtual hosts (www1, www2).
I want them to connect to different instances of tomcat.
I have 2 completely different tomcat installs, one for www1
and one for www2.
This does not work because both virtual hosts connect
to
I have a login JSP that does a session.setAttribute and all
subsequent pages do a session.getAttribute to ensure the
user is logged in. The login page uses HTTPS and then
redirects to HTTP for subsequent pages. This worked in
Tomcat 3.2.4 but fails in Tomcat 4.0.6, 4.1.24, and 5 alpha.
BUT THE
on session status when I use IE but have the same
pages operate perfectly under NetScape.
Murray
-Original Message-
From: Dan Lipofsky [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 29 July 2003 06:54
To: [EMAIL PROTECTED]
Subject: HTTPS session strangeness with Tomcat 4.0.6
I have
If I don't use apache at all, how do I disable directory listing in
Tomcat?
Depends on the version of tomcat. Someone already gave the TC4 answer.
For TC3 set the suppress flag in server.xml
!-- default handler - static files and dirs. Set the
suppress property to true
Hello All,
Tomcat 4 logs all System.out or System.err messages to Catalina.out by
default. How would I do this in a Tomcat 3.2.3 environment. As of now, it
prints on to the window Tomcat was started. I would like to save the
messages on a file. Please help.
Sincerely,
Vijay
You don't
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html
tells about using the Context element in server.xml to configure a webapp.
Scroll down and note the Logger entry under Nested Components. I hope this
helps.
I have the same question as Luc.
I set up a Context with a Logger
To properly handle logging, you might want to check out log4j.org or
commons-logging. It's one of the first things I setup for a project, it
makes debugging extremely smooth.
I agree, and I have converted all the backend stuff to use log4j.
But the 400 JSP files that already exist would take
for lack of a better description the names are radmonized. This is because
they are in a hash.
if you need them in a given order, you may want to number them.
If it is a GET request you can do request.getQueryString()
and parse the query string by hand. A bit painful and it
doesn't work for
The following code works fine in Tomcat 3.2.4
but fails in Tomcat 4.0.6 and throws a MalformedURLException.
%@page import=java.net.URL%
%
java.security.Security.
addProvider(new com.sun.net.ssl.internal.ssl.Provider());
System.getProperties().put(java.protocol.handler.pkgs,
We do the switch, using Apache1.3.20/Tomcat3.2.4 on Solaris.
We just use an absolute URL when doing the switch.
No problems with lost sessions.
- Dan
- Original Message -
I've read the list archives and I'm aware of the security issue, but I
still want to switch from HTTPS to HTTP.
Yes,
You onlu have to run tomcat like this: (I did this in Tomcat 3.3)
nohup tomcat.sh start nohup.out
So in the nohup.out file Tomcat will store all the console messages.
In fact, it's a unix patch... :-)
The syntax I use is
nohup tomcat.sh start
nohup already redirects everything to
From my server.xml:
Context path=/myapp docBase=myapp debug=0
reloadable=true crossContext=true
Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_myapp_log. suffix=.txt
timestamp=true/
Resources
Is there a way to control this?
Suppose I do want to put log4j.jar in common/lib (because I
don't want to wrap it in the war and reinstall it every time).
But I want it only to be used by my application.
Can I do this?
- Dan
There's a library called common-lib that uses any of log systems you
This solution involves writing more code and
puts the burden on log4j. I would prefer the
solution of simply telling tomcat not to use log4j
for its internal logging. Is this possible? Since
tomcat is capable of using different loggers and
has some mechanism to choose which one it uses,
how
You have to call PropertyConfigurator.configure().
I have a JSP which gets run when tomcat starts.
It has a jspInit() method which calls an init class
I wrote which initializes log4j like this:
URL url = Init.class.getResource(filename);
PropertyConfigurator.configure(url);
To
Mine is in tomcat/bin.
Did you scan your drive to try and find it?
Try setting TOMCAT_OPTS=-Dlog4j.debug
for tomcat3 (or use CATALINA_OPTS for tomcat 4).
It outputs lots of info which should at least show you
if the property file is getting parsed as you expect.
Also try adding a
i must have broke something in my 4.1.10 build, because I was able to
use symlinks without a problem
I downloaded the 4.1.10 binaries and symlinks didn't work.
They were off by default in 4.1.12 but worked after I made
the appropriate modifications. I never tired building it myself.
- Dan
The file name, which the tomcat (JSP Servlet) is trying to create is too
long to be saved on Win-2000, so, I think, it is unable to create the
file.
Is there any way that we can configure the Tomcat to not to generate the
very long file names such as putting _0002e, _00025f etc., If we
When doing development I usually have log4j appenders on
the root category at the DEBUG level. This hasn't been a
problem with earlier versions of tomcat but under 4.1.12
I get megabytes of debug messages generated by tomcat.
A small sample is below. Does anyone know what is up
or how to
The webapp called ROOT has the behavior you desire.
Is it possible for you to just use that one?
I am afraid I don't know how to make something else
behave like ROOT or even if it is possible.
- Dan
Is it possible, from Apache 1.3 and Tomcat 4.1.10
(tied together w/ mod_jk)
to make a webapp
In server.xml set suppress=true for StaticInterceptor like below
RequestInterceptor
className=org.apache.tomcat.request.StaticInterceptor
debug=0 suppress=true /
- Dan
How do I avoid listing the directory files when users type the url in
tomcat 3.2.4?
Thanks
--
To unsubscribe,
We have several developers using the same Solaris machine.
Each has their own install of tomcat in their home directory,
and of course their own setting for CATALINA_HOME
in their .profile file. We have no problems with it.
- Dan
I tried that... but I get some kind of conflict with
If I understand your question you can just use
java.net.URL.getContent()
- Original Message -
I'm trying to capture the page source of a remote web page trought a
JSP file and display it into a textbox.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands,
I have a symbolic link from webapps/nuserve/images to a directory
outside of the tomcat directory tree. This worked fine under
tomcat 3.2.4 but I can't see my images under tomcat 4.1.10.
Does anyone know why this is, and if I can get tomcat 4.1 to
follow my symbolic links?
(symbolic links
Set the timeout in web.xml inside the web-app tags like this
session-config
session-timeout
720 !-- 720 minutes = 12 hrs --
/session-timeout
/session-config
To check for the timeout, store something in the session
when they log in, like this
In my tomcat log, I see a LOT of repetitions of this message:
2002-08-29 10:37:13 - Ctx( ): 400 R( /) null
2002-08-29 10:37:54 - Ctx( ): 400 R( /) null
What does this mean?
How can I suppress these messages?
I also get a lot of the following message,
which I would like suppress, or at least
In most cases, this is true ... but I think everyone can agree that there
is nothing more frustrating than filling out some web-based form with lots
of information (takes a long time to complete), attempting to submit,
running into a session timeout, and not being able to get back to the
If you are setting it after you login, it only holds for that login
session.
If you logout or restart the server, it is gone.
If you need it to stick around, you can put it in /etc/profile if you want
it to apply to every person who logs in, or put it in your .profile
($HOME/.profile) file
I have a similar but different problem.
Running 4.0.3 on solaris 8 standalone with jdk 1.4
Occasionally, tomcat dies with no error message in any log file. It is as
if
someone has kill -9'ed the jvm.
Has anyone seen anything like this?
People here are getting very wary of tomcat. I need
I am using tomcat 3.2.4. I would like my error handler JSP
to be able to print out the page that the user originally
requested. Is there a way to do this?
For example, test1.jsp forwards to test2.jsp, which then
throws an exception which takes it to ErrorHandler.jsp.
I am printing out
We do this where I work.
The only thing you need to do is modify the server.xml file
so that each server is listening on different ports. Look for
the Connector ../Connector entries. There is the
basic HTTP socket, the HTTPS socket (which you can
just leave commented out if you don't need
I am using log4j 1.1.3 with tomcat 3.2.4.
I am getting repeats of every message that log4j prints out.
Some are in the format I specified in my config file, and some
are in the default format. It would appear that tomcat is adding
some appenders on its own to the root category. Is this true?
If
I have this problem in tomcat-3.3 but not in tomcat-3.2.4.
I am using tomcat for JSP and weblogic server 6.1 for EJB.
The EJB throws an exception like com.mycompany.FoobarException
but it shows up in my JSP page nested inside a
weblogic.rmi.extensions.RemoteRuntimeException.
I am using the same
34 matches
Mail list logo