I got that same message myself many times.
Are you trying from the root context?
If so, you'll need
resource-ref
descriptionDB Connection/description
res-ref-namejdbc/root/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref
in web.xml
Well, my JNDI name for the resource is jdbc/gatep5 and that is what I
have as the ResourceParams name=jdbc/gatep5. Then I translated that
name into the web.xml which is under the ROOT directory of
$Tomcat/webapps. Shouldn't this be ok?
Keith
On Mon, 2002-12-30 at 02:03, shawn wrote:
I got
just like the example, I should think that would be ok.
my point was
Context path=/root docBase=root
debug=5 reloadable=true crossContext=true
and not sililar to the following which I found in server.xml
!-- Tomcat Root Context --
!--
Context path= docBase=ROOT
These are typical 'code red' (afaik?) entries in your log..
Some infected server is still trying to infect your server,
not that it will be infected but it will try for a certain
amount of times at least. You could create a valid link to
a null sized file to handle it. Which causes less load
Hi,
for me the mysql driver worked fine, i used the Mark Matthews JDBC Driver for MySQL,
put in under WEB-INF/lib of my application, and it got connected the first time..
- Original Message -
From: Keith Pemberton
To: Tomcat Users List
Sent: Monday, December 30, 2002 1:39 PM
With export JAVA_HOME=/path/to/java
Without the quotes..
And if you want to set this for your login,
echo export JAVA_HOME=/path/to/java ~/.bash_profile
WITH the quotes this time :-)
or edit your ~/.bash_profile with your favourite editor
and copy the top line into that file.
There are
Hi,
I installed Apache Tomcat/4.1.18, Everthing runs fine
but i don't see a Dos Window which i had in Apache
Tomcat/4.0 on Windows XP system.
I'm Using JSP and printing some statements out, which
i need to see in the window, but i don't have a dos
window/consloe to see it.
How do i activate
I am little concerned about Warning messages I see in my
catalina.out file. The pages appear to be fine but I get these
messages quite a bit. Are these session timeout and restart messages?
Dec 29, 2002 6:33:10 PM org.apache.jk.common.ChannelSocket processConnection
WARNING: server has closed the
Hi all,
I have recently been facing a strange problem. Tomcat has been going
down along with MySQL and I can't find any log entries for this. Tomcat
is configured to use the mysql database for user and group verification.
Even if the backend mysql goes down, tomcat is not suppose to crash
Could be the VM garbage collecting ?
How often does this happen ?
Jim D.
- Original Message -
From: Ben Glorie [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 27, 2002 12:59 PM
Subject: Tomcat stability problem
We're running Tomcat 4.1.12 on a dual-proc PIII with 512MB
David-
It looks like something strange is happening with your configuration. I am
not familiar with the example that you are talking about, but if you look at
the exception, it looks like it is trying to connect to port 25 (smtp) of
localhost, and not your verizon SMTP server. Localhost
Hi Friends,
I am receiving the sam eproblem which you have put on the site.I am following MVC
architecture and working with IBM WPOrtal server.I have my JSP packaged within the par
file(PORTLET ARCHIVE).I have a code in my JSP which writes some zip content to the
browser using servletoutput
Hello,
I just want to precompile jsp files with duplicate name files.
For example, I have two files named:
/hello.jsp
/test/hello.jsp.
When I use a code like this (using Ant):
=
target name=jspCC
mkdir dir=${jsp.java}/
mkdir dir=${jsp.class}/
Hi,
Here I am getting kernel out of memery killing java process in syslog
messages(/var/log/messages) not in catalina.out. Here I tried with max heap size
too(-Xms256m -Xmx256m), ending with no result.
What I thoght is sun jvm is not properly handling memory allocation/dealloctaion
On that note, if you're using Windows 2000 and XP Professional, you can
simply install a SMTP service on your computer. It's part of IIS, though,
which means you'll have to install that if you haven't already.
If you want to see if you have it installed, goto Start-Control
Panel-Administrative
You run the risk of getting duplicate session id's. However, across
contexts you'll have
separate Managers, and therefore different sets of sessions. So, you
don't run the risk
of one context gaining access to another context's sessions.
The risk is the one discussed in the other session id
Hi,
Has anybody tried running tomcat as a non-root user in Linux? If so, how do you
proceed (ie. making script setuid doesn't work for me). Pls advice.
Thanks alot!
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
I got it to work finally. I actually had to use the
Context path= docBase=ROOT debug=5 reloadable=true
crossContext=true
As soon as I did that everything was fine. Thanks for the help and
suggestions.
Keith
On Mon, 2002-12-30 at 02:39, shawn wrote:
just like the example, I should think
I have Linux redhat 7.3, Apapche 1.3.27 + mod_jk2
and configure it to use jni.
When apache starts up calling jk2_init() twice so
second VM initialization failed.
Anybody knows why?
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
I have a howto document in pdf and sxw (Open Office) format that may be of
help.
http://www.atsga.com/docs/
Mike
-Original Message-
From: waimun [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 30, 2002 10:25 AM
To: [EMAIL PROTECTED]
Subject: running tomcat as a non-root user?
Hi,
Hello. I have 1 Gig of Ram on my Linux server and was running 4.0.1. Tomcat
and never had any problems with memory
Now, I just upgraded to Tomcat 4.1.18 and I keep getting Out of Memory
errors! Here's the memory at certain intervals:
at the time of out of memory error
CPU states: 3.5% user,
Oops, I almost forget to send out the catalina logHere it is:
Dec 30, 2002 11:08:29 AM org.apache.jk.common.ChannelSocket
processConnection
INFO: server has been restarted or reset this connection
Dec 30, 2002 11:08:34 AM org.apache.tomcat.util.log.CommonLogHandler log
SEVERE: Caught
have you increase the maximum memory for the jvm?
with -Xmx256mb as a example.
cu Torsten Fohrer
On Monday 30 December 2002 17:51, you wrote:
Oops, I almost forget to send out the catalina logHere it is:
Dec 30, 2002 11:08:29 AM org.apache.jk.common.ChannelSocket
processConnection
Where is that setting?
-Original Message-
From: Torsten Fohrer [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 30, 2002 11:08 AM
To: Tomcat Users List
Subject: Re: New Version 4.1.18 Out of Memory Errors...continued...
have you increase the maximum memory for the jvm?
with -Xmx256mb
This happens anywhere between a few hours and a few days after a restart of
Tomcat. On quiet days as well as on busy days.
I have set -Xincgc (despite the performance decrease that this is likely to
cause) but need more time to know if that helps. I have also found a few
places where I can
That's wonderful and all, but it still doesn't change the fact that
Tomcat doesn't run as a service with 1.4.1_01. I also have this
problem.
-B
[EMAIL PROTECTED] 12/26/02 09:49AM
We use the Java Wrapper Service with JDK 1.4 to run Tomcat as an NT
service. You can find it at:
Waimun:
I run Tomcat as non-root.
Apache has to be run as root if you use the default port 80, but Tomcat
has no such requirement.
If you installed Tomcat as root, use chown to change owner for all
files and subdirectores of your tomcat installation, then you should be
able to run it as
Hi there,
I need to setup virtual hosting with Tomcat. We are not running the
full Apache server, just Tomcat and its web piece. Can this be done?
Everything I have found so far refers to Apache not Tomcat on its own.
Any help would be greatly appreciated.
Thanks,
Mike
--
To unsubscribe,
That's funny, I have had it running as a service on Win2K for nearly 3
weeks. Guess I better tell the user's its not working.
To answer the original question; no, there are no known issues. I don't use
the wrapper, I simply select the Run as service option when I install
Tomcat.
-Original
I'd say to just send requests directly to Tomcat on it's port..usually 8180
or 8080
http://yoursite.com:8180
then edit the server.xml file to point to where you want it to serve your
webpages. Here's an example config:
Host name=yoursite.com
Context path= docBase=/home/mydirectory/public_html
Please verify the exact version of Java and Tomcat you've got on that
machine.
Thanks
-B
[EMAIL PROTECTED] 12/30/02 09:37AM
That's funny, I have had it running as a service on Win2K for nearly 3
weeks. Guess I better tell the user's its not working.
To answer the original question; no, there
Parker,
Hi. What a surprise to get a reply from someone I actually know. I
solved the problem, but I forgot to notify the list. It turned out
that Tomcat wasn't actually shut down and restarted properly. Now, it
works fine. Have a happy New Year!
David
Burden, Parker wrote:
David-
It
Tomcat 4.0.4 and Java 1.4.1_01-b01 in production.
Tomcat 4.0.6 and Java 1.4.1_01-b01 for development.
-Original Message-
From: Becky Phaneuf [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 30, 2002 12:41 PM
To: [EMAIL PROTECTED]
Subject: RE: tomcat as service
Please verify the exact
I resolved the problem. It turns out that I had not really stopped and
restarted the Tomcat service after reconfiguring server.xml, even though
I thought I had. Now, it works fine. Thanks everyone!
David
Burden, Parker wrote:
David-
It looks like something strange is happening with your
Virtual hosting in Tomcat can be achieved using the Host element (see
server.xml). Also for this to work, the host name must be registered in the
DNS server.
See http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html for
details.
Also see Host name Aliases (referred in the above doc).
Hello Becky,
So, you haven't gotten it to work and, therefore, it doesn't?
Hmmm..., don't be so quick with your conclusions. Works fine for me
with j2sdk1.4.1_01 and Tomcat-4.1.18 on Win2k (sp3).
http://www.mattkelli.com/tech/tomcat/ntservice.htm
Jake
Monday, December 30, 2002, 11:19:34 AM,
There's the difference. We are using Tomcat 4.1.18.
I didn't see the problem in earlier Tomcat versions either.
-B
[EMAIL PROTECTED] 12/30/02 09:48AM
Tomcat 4.0.4 and Java 1.4.1_01-b01 in production.
Tomcat 4.0.6 and Java 1.4.1_01-b01 for development.
-Original Message-
From: Becky
assume a user named 'tomcat' already created, and a group named 'tomcat'
already created.
at a command prompt, as root:
chown -R tomcat:tomcat $CATALINA_HOME
su - tomcat
$CATALINA_HOME/bin/startup.sh
exit
Note that if you are running Tomcat on port 80, it must run as root. You
shouldn't have
Are you sure? I setup Apache and Tomcat with 1.4.1_01 last Friday night and
it works like a charm on XP Pro.
Apache 2.0.43
Tomcat 4.1.18
JDK 1.4.1_01
Apache and Tomcat running as services. I created a HOWTO for the process:
http://www.johnturner.com/howto
John
-Original Message-
I'm using 2.0.43, 4.1.18, and JDK 1.4.1_01, XP Pro. Works like a charm,
though it's just a desktop...I haven't done anything serious with it, or put
it under extreme loads.
John
-Original Message-
From: Becky Phaneuf
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: 12/30/02 1:07 PM
SP2 here, and a fresh installation of Tomcat 4.1.18 and JDK 1.4.1_01.
Yeah, of course I'm going to assume it doesn't work. All my environment
variables are configured properly and I've installed Tomcat at least 5
times now on other machines so I know how it goes. Runs fine when
started via the
We're not running XP Pro, but I'll give your how to a shot.
-B
[EMAIL PROTECTED] 12/30/02 10:17AM
Are you sure? I setup Apache and Tomcat with 1.4.1_01 last Friday
night and
it works like a charm on XP Pro.
Apache 2.0.43
Tomcat 4.1.18
JDK 1.4.1_01
Apache and Tomcat running as services. I
I'm running Apache 2.0.43, Tomcat 4.1.18, and JDK 1.4.1_01 on Win2k(SP3) and
it fired up as a service out of the box. I'm only using it as a test
machine but have deployed some .war's against it and it worked as
advertised.
Regards,
Drew
-Original Message-
From: Becky Phaneuf
On Mon, 30 Dec 2002, Mohan Radhakrishnan wrote:
Date: Mon, 30 Dec 2002 09:52:15 +0530
From: Mohan Radhakrishnan [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: application context loaded twice
Hi,
Why would
Additionally, you can add the su tomcat -c in a wrapper script that
calls the startup.sh file. Mine looks like this:
case $1 in
start)
echo -n Starting Tomcat...
/bin/su tomcat -c /usr/local/tomcat1/bin/startup.sh
/bin/su tomcat -c /usr/local/tomcat2/bin/startup.sh
;;
That
We are implementing the Tomcat 4.1.12 connection pooling. We have 4
different datasources bound to different databases with the same
connection pooling parameters except for the database url. We are into a
strange problem where Tomcat closes the connection after a period of
inactivity(around 2
I'm using security-constraint to restrict access to the manager and
other applications. I've had no trouble using both Memory and JNDI
realms when accessing through the Coyote HTTP/1.1 Connector, but not
when I use IIS and the isapi_redirector.dll (or isapi_redirector2.dll).
With the ISAPI filter,
Additionally, you can add the su tomcat -c in a wrapper script
That is basically what I do. It has the advantage that you can put
different tomcats under different users (and thus enforce file system
access).
Even better would be to chroot tomcat. I don't have that worked out (yet).
Hi,
I'm using Apache 1.3.26 and 3 tomcat 4.0.4 instances with AJP13 loadbalancing .
Our application is a CMS where all the published articles are generated offline as
JSP-Files, one jsp per article.
We had hige problems with the memory footprint. Due to the fact that every jsp is
generated as
I have succesfully been able to configure tomcat
4.1.18 LE to work with IIS 4.0/JDK1.4 using sockets. I
would like to configure it to use JNI though and
that's where I am running into a problem. When I
configure with JNI, it is able to successully load the
example webapps, but not my webapp. The
Having trouble to make ajp13 connector work (jk2 with Apache 2).
Tomcat fails connecting initializing with the following error:
SEVERE: Can't create apr
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
As a consequence of this problem (I think it is related), I cannot
I don't have an answer to your exact question, but given the numbers you
cite I would try to come up with an alternative design.
Perhaps you can create one JSP page that uses dynamic includes to
incorporate the text of the article?
Just a thought.
-Original Message-
From: Julian
Ladies and Gentlemen:
I'm using Apache 2.0.43 and Tomcat 4.1.12 with JK on Win2K. I'm using the
JkMount directives to send all requests to /servlets/ and /*.jsp to Tomcat.
However, I need to know where in the server processing JK actually
intercepts those requests and shoots them off to tomcat,
Could this be also related to the leaks of the java compiler?
Did you try to precompile the JSPs before deploying them (using JSPC) ?
Perhaps does that help?
Jerome
On Mon, 2002-12-30 at 20:37, Julian Löffelhardt wrote:
Hi,
I'm using Apache 1.3.26 and 3 tomcat 4.0.4 instances with AJP13
If I'd only known about this problem a few months earlier
Sad truth is that I can't change this (too) jsp-centric design.
llap,
julian
- Original Message -
From: Wagoner, Mark [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, December 30, 2002 8:48 PM
Hi,
I use jikes to compile the pages.
Since raising the JVM permanent segment size delays the error the problem
seems to come from the sheer size of the loaded class files.
So theorectically it shouldn't matter wheter the pages are precompiled or
not.
Anyway I 'm about to set up a test
On Monday 30 December 2002 02:37 pm, Julian Löffelhardt wrote:
Hi,
I'm using Apache 1.3.26 and 3 tomcat 4.0.4 instances with AJP13
loadbalancing . Our application is a CMS where all the published articles
are generated offline as JSP-Files, one jsp per article.
We had hige problems with
Mine worked out of the box as well. However, after stopping the NT
service, starting the server using the batch file, deploying a war,
shutting the server down via batch, restarting it via batch, confirming
it runs without errors, shutting it down via batch, and THEN attempting
to starting it as
Julian,
I would have to agree that creating a JSP per article is a bit
much. How did you or your group arrive at using this solution? The
other possible solutions I have seen would include a single JSP that
pulls the data from a database or creating XML files that are
formatted with XSLT
Paul Yunusov wrote:
On Monday 30 December 2002 02:37 pm, Julian Löffelhardt wrote:
Hi,
I'm using Apache 1.3.26 and 3 tomcat 4.0.4 instances with AJP13
loadbalancing . Our application is a CMS where all the published articles
are generated offline as JSP-Files, one jsp per article.
We had
On Mon, 30 Dec 2002, Julian Löffelhardt wrote:
Date: Mon, 30 Dec 2002 20:37:10 +0100
From: Julian Löffelhardt [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: reducing tomcat jasper memory footprint
Hi,
I'm using Apache
One question with regard to using jsp files as included content:
I'm having a requirement to include files with more or less simple html
content. That's in order to make editing easier for other users. I
currently keep some html content in files which I reference by a
database id.
So a view jsp
On Mon, 30 Dec 2002, Johnson, Garrett wrote:
Ladies and Gentlemen:
I'm using Apache 2.0.43 and Tomcat 4.1.12 with JK on Win2K. I'm
using the JkMount directives to send all requests to /servlets/ and
/*.jsp to Tomcat.
However, I need to know where in the server processing JK actually
ROFLMAO
John
-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 30, 2002 3:54 PM
To: Tomcat Users List
Subject: Re: Apache HTTPD Tomcat: Where does mod_jk step in?
On Mon, 30 Dec 2002, Johnson, Garrett wrote:
Ladies and Gentlemen:
I'm using
I believe there is an O'Reilly book on using Ant.
Gee Jee wrote:
Hi,
I've been sort of using the Tomcat library for Ant custom tasks. I got some of
it to work by using the information on the Tomcat website. However, I did not
find a consise overview of this library. Is this available
Not sure if this is what you're looking for, but you can go here:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/index.html
and click on the org.apache.catalina.ant package link.
BTW, a good Ant book is Java Development withAnt.
Mark
At 12/30/2002 01:59 PM, you wrote:
I
the a bad thing is that the jasper generated code creates for each request all
string object new. So hundred unneeded String objects consuming a lot off
memory. And so big pages with many poor texts without codeneeds a big
amount of memory.
Torsten Fohrer
On Monday 30 December 2002
Could you explain this further? What exactly is the many poor 'texts'?
Thanks Torsten.
-Dan
-Original Message-
From: Torsten Fohrer [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 30, 2002 4:39 PM
To: Tomcat Users List
Subject: Re: reducing tomcat jasper memory footprint
the a bad
Hi,
I have a ServletContextListener which loads application resources from an Oracle
database when application is installed. But a SQLException(see below) is thorwn becase
DBCP cannot load JDBC driver. The JDBC driver(ojdbc14.jar) is installed in the
${CATALINA_HOME}/common/lib according to
Some other books
Java Tools for ExtermeProgramming
also handles EE and Junit etc
I think the Java Development with Ant is way far better
than O'reilly book.
The project documentation is actually pretty good too.
At 05:18 PM 12/30/2002 -0500, you wrote:
Not sure if this is what you're looking
Hi,
My problem isin't javac memory leakes. Due to the apache/tomcat
documentation I was aware of this an setup jikes as my jsp compiler. I'm
also using JDK 1.4.1 so the javac issues should be solved, nonetheless.
The main problem is as follows:
1. Every article every page in general is a jsp
Just to confirm,
If I send use RequestDispatcher.forward(request, response) and send it
to another context, that session will be newly managed under the new
context (or by the original context) and therefore there is no risk of
duplicate id's.
The other issue is to be patched.
Shawn
Sorry to
How can i intergate JBulder 8 with Sun J2EE Server?
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Thanks to all those who responded; John, Mike, Jerry, Ben, Noel. Yes, I got it working.
Season greetings.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Can anyone suggest what's wrong? As a relative newbie, I've been
modifying and using the example build.xml file provided with the
tomcat-docs. I am using it from Intellij IDEA. It's working fine,
except I can't get the install target to work. The catalina-ant.jar
file has been added to the
Did you update conf/web.xml to add a manager username/password/role?
401 means unathorized access to a password protected page
At 12:21 AM 12/31/2002 -0500, you wrote:
Can anyone suggest what's wrong? As a relative newbie, I've been modifying and using
the example build.xml file provided with
I see that there is a manager application, but this only manages one
instance of tomcat...
How about a tool that would create multiple instances of tomcat, with a
virtual host, etc that is templated version of tomcat.
In this manner, I can create 10 different instances of tomcat, without
Hi,
We would like to read up on the context declarations in the server.xml.
Our application context listener is called twice. What is the best way
to debug this short of plowing through the source code?
Context path= docBase=SmartManage debug=0...
This type of context
The first one is usually just that the client hit the stop button in the
browser. At the moment, the AJP13 protocol doesn't support out-of-band
messages to tell Tomcat about this, so it just drops the connection instead.
The second one is just a warning (which will at least be correct in 4.1.19
Now that we are done attacking clones :)
The workflow is pretty simple. In the map-to-storage hook, mod_jk detects
that the request should be handled by Tomcat, and registers itself as the
handler. Later, when the handler hook is called (I forget the name for
Apache2, and don't feel like
You should not ever attempt to use an OutputStream from a JSP page. The
entire point of JSP pages is to output text! JSP pages will always grab the
Writer (per the spec), before your code has a chance to execute.
I'd suggest converting your JSP to a Servlet (not hard, based on the code
below).
Hi all,
When I used Java Web Server, it ran in the console, and
if I had a statement like System.out.println(someValue) in my servlet, I was
able to see the output on the console. Where does all this output go in Tomcat?
I am not able to see anything printed by System.out.println().
Thanks,
82 matches
Mail list logo