Some pointers:
1) The mod_jk.so version supplied with the Tomcat RPM's
at http://rpmized.free.fr should work just fine with RedHat 6.2 regardless
of whatever messages it may spew out, as long as you stick to the standard
Red Hat 6.2 rpms for Apache (no self-compiled Apache - mod_jk is very
I'm not sure what you're trying to do.
Do you mean that you originally added a new webapp and it's still there
after you deleted
it from the server.xml file?
By default Tomcat 3.2.1 will find all webapps in your $TOMCAT_HOME/webapps
directory,
even if they are not identified in the server.xml
At 11:18 PM 4/24/01 +0200, GOMEZ Henri wrote:
Make me a favour, switch to mod_jk and ajp13 which is faster and
support much more servers (Apache, IIS, IPlanet/NES, jni).
And that the part of the connector area which is the more activelly
maintained.
ajp13 used to have a bug that caused
I compiled Apache 1.3.19 a couple of weeks ago.
I set up a script to do my configuration.
This is the contents of my script file:
#!/bin/sh
./configure \
--with-layout=GNU \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--sysconfdir=/etc/httpd \
--datadir=/var/www \
--logfiledir=/var/log/httpd \
At 11:39 AM 4/19/01 -0400, you wrote:
I am using Tomcat 3.2.1. I would like to know if there is any way to deploy
a webapp as a war file and setup Tomcat so that the war is not unpacked in
the webapps directory but only in the work directory.
Tomcat 3.2.1 wants to unpack the war file in the
I don't know where there's a list, but the question has been asked before,
so you can try searching the archives.
We're planning on getting into the business ourselves,
so keep us in mind.
Ed
([EMAIL PROTECTED])
At 01:08 PM 4/19/01 -0700, John Gentilin wrote:
I asked this question before but I
d then put the
jar file in the classes/ directory. By doing this, Tomcat doesn't find my
servlet and send me a HTTP 404 error. Does anyone how to specifiy to
Tomcat
that the servlets are in a jar file?
Thanks a lot
David.
--
Ed Gomolka
([EMAIL PROTECTED])
The WAR file doesn't stay packed. It is simply a deployment mechanism.
At startup Tomcat will take any WAR file that it finds in the webapps
directory, and unpack it
into a directory which has the name of the WAR file.
For example, lets say that you have an existing context called "oldContext".
Platform: Linux Mandrake 7.2/Apache 1.3-19/Tomcat 3.2.1
Can somebody clarify a security manager issue for me?
We have an application that allows the user to upload GIF/JPEG images.
This has worked fine in development, but has stopped working since we
started tightening up security
in the
At 04:03 PM 4/17/01 -0400, you wrote:
does anyone know how can i force java to use green threads?
thanks
I don't know how, but why would you want to do it?
The native thread use should be more efficient. The only drawback is the
the way that the
ps command displays the threads, but it is only
At 02:02 PM 4/17/01 -0700, you wrote:
the user who owns the Tomcat process doesn't have the OS permission for the
file
this can be fixed using the "chmod" command
Filip
Thanks for the suggestion. That would be the logical first thing to check,
and I've certainly made
my share of mistakes of
I've figured out the solution to my problem, so I'm replaying to my own
message on the off
chance that anyone's interested in the solution.
There was a mismatch between the way that I had the permissions set in
the security manager, and the way that the Java code was verifying permissions.
I had
.)
If you need a more comprehensive approach to logging,
check out the log4j project on the Apache Jakarta site.
A lot of people are using it with Tomcat.
I haven't tried it yet personally... it's on my todo list.
Ed
--
Ed Gomolka
([EMAIL PROTECTED])
At 02:46 PM 4/5/01 -0400, Hong-Bing Chen wrote:
Hi,
I am trying to compile tomcat-apache plugin for Solaris and it fails. The
versions are Apache 1.3.19, SunOs 5.8 and Perl 5.6.0.
The error message is :
"gcc -DSOLARIS -DUSE_EXPAT -I../lib/expat-lite -I/usr/apache1.3.19/include
-I../common
de, obtain the servlet context, and then write a log
statement along the lines of:
servletContext.log("Querying the database");
Any logging you do using the servlet API's logging facility will end up in
Tomcat's servlet log.
Check the Javadoc for the servlet API for more info.
--
Ed Gomolka
([EMAIL PROTECTED])
);
servletContext = config.getServletContext();
String contextPath = servletContext.getRealPath("/");
String imagesDirectory = contextPath + "images";
}
--
Ed Gomolka
([EMAIL PROTECTED])
Here's an excerpt from the notes I made when I did this for SunOS 5.7 a few
months ago. I hope it helps:
"For the Solaris 7 server with the gcc compiler, the command was:
/usr/local/apache/bin/apxs -o mod_jk.so -c -I /usr/java/include -I
/usr/java/include/solaris -I ../jk -DSOLARIS -l posix4
Can anyone tell me how to generate time-stamps in the mod_jk.log?
I assume that this is an Apache configuration issue, and I've been
looking through the Apache docs, but I haven't been able to figure it out.
Thanks in advance.
Ed ([EMAIL PROTECTED])
, in mod_jk.conf
JkLogStampFormat "[%Y/%m/%d %H:%M:%S]"
-Original Message-----
From: Ed Gomolka [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 04, 2001 11:08 PM
To: [EMAIL PROTECTED]
Subject: timestamps for mod_jk log
Can anyone tell me how to generate time-stamps in the mod_
:27 PM 4/4/01 +0200, GOMEZ Henri wrote:
I've commited code to add time-stamp in mod_jk.log.
Set the new directive, JkLogStampFormat, in mod_jk.conf
JkLogStampFormat "[%Y/%m/%d %H:%M:%S]"
-Original Message-
From: Ed Gomolka [mailto:[EMAIL PROTECTED]]
Sent: Wednesday
I'm using the Sun jdk1.30_02 on Linux Mandrake 7.2 with no problems.
Ed
At 05:20 PM 4/4/01 -0700, Brandon Cruz wrote:
I installed jdk1.3.0_02 onto my machine and changed the path to the bin
directory. When I try to run that java command, I get the following
error...
[admin@ns1 bin]$
--
Ed Gomolka
([EMAIL PROTECTED])
file:
ContextInterceptor className="org.apache.tomcat.context.AutoSetup" /
--
Ed Gomolka
([EMAIL PROTECTED])
Oops. I meant "comment out" in my last post, rather than "uncomment".
Sorry about that.
Ed
On Sunday 01 April 2001 15:38, Ed Gomolka wrote:
On Sunday 01 April 2001 11:48, Amir Nuri wrote:
Hi
I have two tomcat instances , each one of them has it's own server.xml
file an
to access all the features of the admin context, you will need
to create a user name and password, and enter them in the file
$TOMCAT_HOME/conf/tomcat-users.xml, and assign them a role of "admin".
Ed
--
Ed Gomolka
([EMAIL PROTECTED])
.
With reagrd to reporting it, I think there is something on the
jakarta page
but I don't know.
Neil
-Original Message-
From: Ed Gomolka [mailto:[EMAIL PROTECTED]]
Sent: 17 January 2001 22:18
To: [EMAIL PROTECTED]
Subject: RE: Security Manager Problems
I had this problem
I had this problem.
There's a bug in tomcat.sh.
Find the following lines in tomcat.sh:
if [ "$1" = "-security" ] ; then
echo Starting with a SecurityManager
Then add a "shift" command, as follows:
if [ "$1" = "-security" ] ; then
shift
echo Starting with a SecurityManager
If
I saw some items about this on the JBoss list.
I think that what you need is the JBoss 2.1 code, which is currently
only available in the CVS tree.
Basically, jBoss 2.0final is set up to work with mod_jserv, and mod_jk
support is in devleopment.
I've just started looking at JBoss, so I haven't
You need to start Xvfb. It should have been installed on your machine as
part of XFree86.
Do a search through the archives for Xvfb, and you'll get a bunch of
references.
I assume that when you state that you must be logged in as root,
you are starting the server
Sounds like you don't have the
Title: RE: Apache
I've
been playing around with the war files as well.
Tomcat
will build the webapp's directory structure from the war file if the directory
doesn't already
exist;
however, it does nothing if the directory structure is already
there.
I have
a mixed environment, where
IOException ex) {
ex.printStackTrace();
// do what ?
}
Anyone know why it's done this way?
Thx,
Ed
-Original Message-
From: Ed Gomolka [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 16, 2001 3:57 PM
To: [EMAIL PROTECTED]
Subje
This is what worked for me with that same configuration:
The order of arguments was critical, as were the apxs settings.
This was the command that worked:
/usr/local/apache/bin/apxs -o mod_jk.so -c -I /usr/java/include -I
/usr/java/include/solaris -I ../jk -DSOLARIS -l posix4 *.c ../jk/*.c
If you're using mod_jk with binary multipart/form-data, avoid AJP13,
as it has a bug. Use AJP12.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 9:11 AM
To: [EMAIL PROTECTED]
Subject: RE: Multipart/form-data
I posted a
Title: RE: How to detect Tomcat running on linux?/.
Tomcat
is just another Java process.
You
need to enter:
ps
-ef|grep java.
The
command output doesn't explicitly tell you that Tomcat is running, but it will
list whatever options
you
added to the java command, so you should have enough
I recall having a problem like this a month ago on Solaris 5.7.
mod_jk compiled cleanly, but it was actually missing something.
I rearranged the order of the parameters used to call apxs, and got another
clean compile, which produced a noticeably larger binary.
This one worked.
I'm afraid that I
I have
tried setting up multiple Tomcat instances standalone, but I have not tried to
connect them to Apache,
so
Imay notbe able to help you all the way, but here
goes:
First,
change the port references in the server.xml and workers.properties files, and
rename these files to something
If you start Tomcat from an Xterm it will pick up the X environment, but if
you start
it via telnet or as part of your boot process, it won't pick it up.
In that case you'll need Xvfb (X virtual frame buffer), in order to provide
a native
graphics enivronment, so that you can build your gif.
Xvfb
I struggled with this one for half a day.
The order of arguments was critical, as were the apxs settings.
This was the command that worked:
/usr/local/apache/bin/apxs -o mod_jk.so -c -I /usr/java/include -I
/usr/java/include/solaris -I ../jk -DSOLARIS -l posix4 *.c ../jk/*.c
Here is the
worker.servlet3.type=ajp12
worker.servlet4.port=8013
worker.servlet4.host=localhost
worker.servlet4.type=ajp12
- Original Message -
From:
Ed
Gomolka
To: [EMAIL PROTECTED]
Sent: Tuesday, January 09, 2001 10:35
AM
Subject: RE
Copy mod_jk.conf-auto to another filename (mod_jk.conf perhaps?),
edit it appropriately, and include the new file in httpd.conf instead of the
auto-generated file.
It sounds like you've already made the appropriate changes to
server.xml and workers.properties, so you should be done at this point.
Are you using AJP12 or AJP13? AJP13 has a bug in this area.
We encountered this with uploaded JPEG files, and also got the zero bytes
error,
but resolved it with no other changes after switching back to AJP12.
-Original Message-
From: Bill Fox [mailto:[EMAIL PROTECTED]]
Sent: Monday,
This message thread just saved our butt on an image upload
problem we were having (thank God for the mailing list archives).
In any case, the AJP13 problem still exists in Tomcat-3.2.1.
Is there a Tomcat-3.2.2 coming out that will fix the AJP13 problem, or
should we stick
with AJP12 until
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 03, 2001 12:29 PM
To: [EMAIL PROTECTED]
Subject: Re: multiple instances of Tomcat
Amy Roh wrote:
Does tomcat allow multiple instances running on the same machine?
You can do
I don't think that Apache is the problem.
It's mod_jk.so.
Try compiling mod_jk.so from the sources.
It's a pain, but it will probably clear up your problem.
-Original Message-
From: NSB)Hiroshi Kasamatsu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 28, 2000 7:51 PM
To: [EMAIL
Look in the $TOMCAT_HOME/work.
You will find subdirectories for each webapp.
For example, if you are running Tomcat on port 8080 as per the default,
you will find a subdirectory for the delivered examples, called
"localhost_8080%2Fexamples".
You will find the Java source and class files from the
At 07:51 PM 12/14/00 -0800, you
wrote:
To:
"'[EMAIL PROTECTED]'"
[EMAIL PROTECTED]Subject: RE: mod_jk.sotry this sitehttp://www.ccl.net/cca/software/UNIX/apache/solaris-t3.2/files/mod_jk.so
Excellent! I didn't realize that there was a binary for
Solaris.
It
seems odd that there isn't one
in class org.apache.jasper.compiler.ClassName.
[javac] realClassName = ClassName.getClassName(
getClassFileName() );
[javac] ^
[javac]
--
Ed Gomolka
([EMAIL PROTECTED])
make my FreeBSD
mod_jk.so available to people who want
it.
Dave
- Original Message -
From:
Ed
Gomolka
To: [EMAIL PROTECTED]
Sent: Friday, December 15, 2000 12:05
PM
Subject: RE: mod_jk.so (for
Solaris)
At 07:51 PM 12/14
Try here for RPM's:
http://rpmized.free.fr
-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 11, 2000 6:46 PM
To: [EMAIL PROTECTED]
Subject: Re: Question about Linux install of Tomcat 3.2 (is there an RPM
yet)
Tomcat is a pure Java
has any suggestions or
opinions on what I
should be looking at to resolve this, I'd appreciate them.
Thanks in advance.
Ed
--
Ed Gomolka
([EMAIL PROTECTED])
There's a file called tools.jar that must be in your
classpath.
Add a
line to your "tomcat.bat file", as follows:
set
CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar
Ed
I'm new to Tomcat
/ Apache and trying to get the example JSP pages working. I'm running W2K,
Tomcat 3.1, and JDK
Your
classpath statements look good. The only thing that I can advise at this point
is to doublecheck your JAVA_HOME value, and ensure
that
it's pointing to the right place. I have sometimes seen cases where JAVA_HOME
was pointing to the JRE, but the JAR file was in the JDK's
Java
lib
I'm sure that the following has nothing to do with the original problem
in this thread, but I have to disagree with the idea that Java doesn't
have memory leaks.
Java memory leaks are different from C++ memory leaks, but they are very
real,
and can be a serious pain in the butt.
The easiest way
53 matches
Mail list logo