Hi, I know it can be done, I just can't remember how to do it - how do I
make tomcat use a different server.xml file on startup?
Cheers,
-Josh
--
[ Josh 'G' McDonald ][ 0415 784 825 ][ http://www.gfunk007.com/ ]
-
To
Hi,
My servlet is placed at:
C:\Program Files\Apache Group\Tomcat
4.1\webapps\Tracking_system\WEB-INF\classes\com\scheduler
with the name addDataServlet
My web.xml is as follows:
web-app
servlet
servlet-name
addDataServlet
/servlet-name
servlet-class
Hi,
My servlet is placed at:
C:\Program Files\Apache Group\Tomcat
4.1\webapps\Tracking_system\WEB-INF\classes\com\scheduler
with the name addDataServlet
My web.xml is as follows:
web-app
servlet
servlet-name
addDataServlet
/servlet-name
servlet-class
Hi all,
After this has gotten on my nerves I can't hold up any longer...
My web app depends on a third party component that uses JNI. My
development env is Tomcat 4.1.18 with JRE 1.4.0_02 on XP.
The app runs without a flaw as long as I don't publish new servlets or
JSP and reload Tomcat. After
I recall there was an issue with some version of IE: it had
a feature: if the error page is less then x bytes then IE showes
its ugly default error page. But if the error page is large
enough (in terms of bytes) then it showes that.
(Anton Tagunov)
You are right! IE shows its default error
I just took a quick look in the CVS, and it looks like you are right. I
don't know why the batch file doesn't run.
At least it's not me then:-)
You could try:
set JAVA_HOME=c:\progra~1\jdk1.3.1_09
and see if it helps.
Tried that and it didn't work. Same message as before.
Thanks for
You have not mapped your servlet to the /com/scheduler/addDataServlet URL.
Try adding the following to your web.xml, before your welcome-file-list:
servlet-mapping
servlet-nameaddDataServlet/servlet-name
url-pattern/com/scheduler/addDataServlet/url-pattern
/servlet-mapping
You
and this is mine (guaranteed to work! well, maybe... ;) ) It's in my
context for the particular app.
Did somebody say removeAbandoned was depracated?
Resource name=jdbc/LinkLibDB
auth=Container
type=javax.sql.DataSource
/Resource
ResourceParams name=jdbc/LinkLibDB
parameter
hi :)
As far as i can tell you are missing a servlet-mapping in your web.xml.
A servlet uri should also be mapped to a specific servlet.
Try including:
servlet-mapping
servlet-nameaddDataServlet/servlet
url-pattern/com/scheduler/addDataServlet/url-pattern
/servlet-mapping
in your web.xml
I recall there was an issue with some version of IE: it had
a feature: if the error page is less then x bytes then IE showes
its ugly default error page. But if the error page is large
enough (in terms of bytes) then it showes that.
(Anton Tagunov)
You are right! IE shows its default
I have tried the suggested remedies. My application's web.xml has the
following addition:
servlet-mapping
servlet-nameaddDataServlet/servlet-name
url-pattern/com/scheduler/addDataServlet/url-pattern
/servlet-mapping
and I have uncommented the server's web.xml to
servlet-mapping
Howdy,
Also keep in mind that 4.1.28, like any other release, could have
regression bugs ;) You'd have to test on it anyhow before going to
production and finishing documentation. Unless you really need a fix
from 4.1.27, you could just stick to 4.1.24 without a hotfix.
I can appreciate
I don't think you should disable the default invoker servlet. afaik this
is the standard servlet to invoke servlets in the /servlet/ context path...
anunay ashish wrote:
I have tried the suggested remedies. My application's web.xml has the
following addition:
servlet-mapping
Hi Dave,
I changed the DNS settings with my ISP and that has fixed the problem.
Thanks,
John
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
I have a problem regarding my servlet.
The JSP file calling the servlet is having the following code:
HTML
HEAD
TITLE Page format /TITLE
META NAME=Generator CONTENT=EditPlus
META NAME=Author CONTENT=
META NAME=Keywords CONTENT=
META NAME=Description CONTENT=
/HEAD
BODY
%@ page
Hi all,
I'm using Tomcat 4.1.24 et i want after it fails it restarts automatically
to have a high availability.
Is it possible with only Tomcat ?
Thanks
--
Slimane AMAR Mail: [EMAIL PROTECTED]
GENIGRAPHURL :
I have implemented a Valve, and configured it in
%tomcat_home%\conf\server.xml . When I run catalina
start, this valve work perfectly.
I have integrated tomcat and jonas, since Jonas is my
preferred ejb-container. But, when i use jonas
start, my valve doesn't seem to be functioning.
I even
Any text editor will do.
http://jakarta.apache.org/site/source.html#Patches
-Tim
Adam Hardy wrote:
Oh I see - you mean I can edit the docs by editing the xml file, and
then uploading a patch to bugzilla?
What's the best way of editing the xml - just in a bog-standard text
editor?
On
Yes and no.
No - the tomcat people don't provide this functionality but you can do it
yourself.
[Assuming Unix]
Way 1 - Set $CATALINA_PID before staarting tomcat. Then have a cron job run
occasasionally to look at the value in the file pointed at by $CATALINA_PID.
If the process doesn't exist
mmillson I have always heard it's better to compile Apache from
mmillson source vs. using the rpms, but no one has ever quantified
mmillson the advantages to doing this. Until someone does, and the
mmillson advantages of compiling from source outweigh the advantages
mmillson I've listed below for
Hello.
I have Tomcat 4.0.4 in a Windows 2000 SP3 ( and a Oracle DataBase ) working fine
and with good performance.
When installing the Service Pack 4 in the Windows 2000, all continue working OK,
but wit a great loss of performance.
If I uninstall the SP4, the performance
My machine too have this problem. Any solutions. I am using JDK 1.4.1 ,
Tomcat 4.1.27 and Oracle 8i.
- Original Message -
From: Benito Garcia [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, October 06, 2003 5:33 PM
Subject: Tomcat performance issues with W2k - SP4
Tomcat isn't the only application. IIS suffers as well. Are you using
Server or Advanced Server? There are some major problems with Advanced
Server after installing the patch. I think you should ask MS about
this. Also check with your VM manufacturer. We have some ISAPI
applications that run
I have been a tomcat user for a while and have no trouble installing it on
NT machines.
However we have just moved over to Windows xp. I have just tried installing
version 4.1.27 and 4.1.24 and I get the error attached to this mail.
I have java 1.4.1 and 1.4.2 installed and tried using both and
What I have found is that I can run a web application without taglibs if
I am not in an context other than the default with path. I created a
jsp directory under this context and changed the path to blank, and then
the taglibs worked fine. So, I guess the question is. Do you have to
have the
Define point to a directory on another machine. If you are trying to
use UNC paths then use //servername/share/dir (don't use back slashes).
If you don't then create a drive map since you are on windows. If you
are on unix you can mount a directory to a NFS server and path.
Wade
-Original
Hi Mercieca,
I am running Tomcat 4.1.27 on XP..
Did u set JAVA_HOME before starting it..
you can also try running setClasspath.bat before starting tomcat.
And try using the cmd startup to start tomcat.
Regards
Mitul
Try not to install Tomcat in the Program Files path. The path to Tomcat
installation SHOULD NOT have any space in between.
By the way, have you already checked if the installation of Tomcat was
indeed successful by bringing up the Tomcat page with
http://localhost:your_port_number ?
If you are
Please read my reply to your previous post on the same subject.
- Original Message -
From: anunay ashish [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, October 06, 2003 01:31 AM
Subject: Unable to open the servlet.
Hi,
My servlet is placed at:
C:\Program
What happens if CATALINA_HOME doesn't have the trailing slash?
The script generated CATALINA_TMPDIR has a double slash in it... Tomcat
probably isn't generating the classpath properly.
Mercieca David wrote:
I have been a tomcat user for a while and have no trouble installing it on
NT machines.
Nice one Tom - that did the trick - seems to be different to NT as I checked
my old box and am using the backslash there.
Thanks
David
-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED]
Sent: 06 October 2003 14:04
To: Tomcat Users List
Subject: Re: Errors installing
One thing copy a web.xml file from one of the examples and use that.
Reason being validation and DTD tags. I had a problem similar to that
once.
-Original Message-
From: epyonne [mailto:[EMAIL PROTECTED]
Sent: Monday, October 06, 2003 8:58 AM
To: Tomcat Users List
Subject: Re: Unable to
Hi,
I already posted following question on 26th Sep but the replies did not
refer to my problem but another one.
Maybe someone has a helpful hint for me!?
Thx
Volker
-
I have a problem running Jakarta Tomcat 4.1 port under FreeBSD 4.4 with
Blackdown Java
I have installed Tomcat 5.0.12 on Win 2000 using j2sdk1.4.2_01 but it will
not run.
Should I be havving a problem? Toncat 5.0.11 was fine.
- Original Message -
From: Wade Chandler [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, October 06, 2003 2:19 PM
Subject:
Hi,
since the installation of TomCat I have trouble with other web
applications that are located in a directory www.MyDomain/admin
Each time I call such a site via my browser I am redirected to the
TomCat Admin Tool site and NOT to www.MyDomain/admin.
What can or will I have to do in order to
I found that on Tomcat 5.0.12, contexts can find database JNDI resources
listed under DefaultContext, but not GlobalNamingResources, even with a
ResourceLink to the resource in a Context in server.xml. Does adding a
ResourceLink to a context file in conf/Catalina/localhost work any
better?
Derek
The application is not accepting absolute paths for some reason...hence
looking for some other way to get around it.
Any ideas?
Thanks for your response, though.
-Abby
On Sun, 05 Oct 2003 14:47:12 -0400, Dov Rosenberg
[EMAIL PROTECTED] wrote :
Instead of using relative paths in your
I don't have a problem in 5.0.12 with GlobalNamingResources and a
ResourceLink in the context.
Adam
On 10/06/2003 03:50 PM Derek Mahar wrote:
I found that on Tomcat 5.0.12, contexts can find database JNDI resources
listed under DefaultContext, but not GlobalNamingResources, even with a
Hi!
I have two instances of the same application running on one tomcat4 server.
The only difference is, that they use a different database. The
applications have different names of course. My webapps dir looks like that:
webapp1 dir
webapp1.xml
webapp2 dir
webapp2.xml
The idea is to define the
Hello Anton,
I finally succeeded (I hope !) in finding the cause of my
initialization problem. However it is not clear to me whether
it is a bug or a feature :)
The problem occurs only for a virtual host, the default host behaves
as expected.
Here is the simplified configuration virtual host
Just a wild guess is the Tomcat 5.0.11 still running? Did you change
the port number for Tomcat 5.0.12?
What error message did you get?
- Original Message -
From: John Bell [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, October 06, 2003 08:43 AM
Subject:
IIRC, the admin webapp is hardcoded for the /admin/ path.
-Tim
Volker wrote:
Hi,
since the installation of TomCat I have trouble with other web
applications that are located in a directory www.MyDomain/admin
Each time I call such a site via my browser I am redirected to the
TomCat Admin Tool
Would you mind run netstat to see what kind of connection they are, e.g.
port, host, status?
-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: October 3, 2003 11:52 AM
To: 'Tomcat Users List'
Subject: RE: Datasource connections not released when reloading context
I
Thanks,
I installed jwsdp-1.2 which includes a Tomcat 5 installation ...that
must have confused the issue ..
John
- Original Message -
From: epyonne [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, October 06, 2003 3:47 PM
Subject: Re: Unable to run Tomcat
What is the error message thrown?
Andoni.
- Original Message -
From: anunay ashish [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, October 06, 2003 11:07 AM
Subject: Servlet and JSP.
Hi,
I have a problem regarding my servlet.
The JSP file calling the servlet
erm. Can't you just monkey around with the admin.xml in the webapps dir?
Tim Funk wrote:
IIRC, the admin webapp is hardcoded for the /admin/ path.
-Tim
Volker wrote:
Hi,
since the installation of TomCat I have trouble with other web
applications that are located in a directory
I was hoping the original poster already did that. On quick source grep it
does look like the admin webapp can be mounted to any directory.
-Tim
Jon Wingfield wrote:
erm. Can't you just monkey around with the admin.xml in the webapps dir?
Tim Funk wrote:
IIRC, the admin webapp is hardcoded
Hi, I have a problem with the format parameter of AccesLogInterceptor. I
need the response.getContentLenght in my Log. I have the param value to
combined such as Apache but, in the log I see a ? or others characters
in the position of getContentLenght.
My tomcat's version is 3.3.1 Final and my
Hi
I'm using log4j in my
web app, which is deployed in Tomcat.
By default,
log4j generates the log file user's directory i.e., "C:\Documents and
Settings\drathi\Start Menu\Programs\Apache Tomcat 4.1".
How can I make log4j to generate
thislog file at some other place?
thanks,
Naresh
Patrik,
So I am not alone.
Here are the possible soultions I came up with, hopefully they help.
1. If just a few cgi scripts and they are simple, port them to Java.
2. Integrate Tomcat with Apache, then you don't need to modify the cgi scripts.
However, the server configuration becomes more
Dear all,
I have a problem setting the name value for the virtual host entry. Suppose my domain
name is my.company.net and the ip is 233.333.333.33. If I set the virtual host as my
domain name, I can not access the website using the ip. And if I set it as the IP, I
can not visit the website
Hi together,
I have a problem with the definition of a GlobalNamingResource.
I tried to follow the instructions of the
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html
bur it will not work...
What I want is the following:
I will have a shared Instance of a class which I
On Mon, October 6, 2003 at 9:20 am, Lawence sent the following
I have a problem setting the name value for the virtual host entry.
Suppose my domain name is my.company.net and the ip is 233.333.333.33. If
I set the virtual host as my domain name, I can not access the website
using the ip. And
In my case option 1 is the easiest. I already tried some things here and I
don't run into the same problem.
-Original Message-
From: Lawence [mailto:[EMAIL PROTECTED]
Sent: Monday, October 06, 2003 9:15 AM
To: Tomcat Users List
Subject: RE: Send mail cgi script doesn't work under tomcat?
Can you send the Tomcat process a -QUIT signal so we can see what the
state of the JVM is?
It sounds like a JVM bug, and Java on FreeBSD is less than heavily used...
Try a different JVM if you can.
-Dave
On Mon, October 6, 2003 at 6:37 am, Volker sent the following
Hi,
I already posted
On Sun, October 5, 2003 1at 1:29 pm, Josh G sent the following
Hi, I know it can be done, I just can't remember how to do it - how do I
make tomcat use a different server.xml file on startup?
RTFM: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txt
(RTFM is going to be my answer of
Hi,
I am using tomcat 3.3.1a. Now when i type sin the url http://localhost:8080/
http://localhost:8080/ I can see the directory listing. Is there any way
to prevent this. Could you please let me know about this if there is a way.
Thanks and Regards
Denver Saldanha
Hi all,
I 'm using Tomcat server 1.4.1.27 and Java Web start.
I have a little application webpad.war that can be launched via the web
page http://localhost:8080/webpad/index.html
I try to launch it via the java web start GUI and i get this a
socketConnecion error with a bad signature error..!!
Hi, I have a problem with the format parameter of AccesLogInterceptor. I
need the response.getContentLenght in my Log. I have the param value to
combined such as Apache but, in the log I see a ? or others characters
in the position of getContentLenght.
My tomcat's version is 3.3.1 Final and my
Were you running Tomcat 5.0.11 on jdk 1.4.2? I had an issue with tomcat
on that VM and switched to 1.4.1_2
-Original Message-
From: John Bell [mailto:[EMAIL PROTECTED]
Sent: Monday, October 06, 2003 9:44 AM
To: Tomcat Users List
Subject: Re: Unable to run Tomcat 5.0.12
I have installed
On Tomcat 5.0.12, should context /bondtest have access to the following
DataSourceRealm? Tomcat complains that it cannot perform the
authentication because the name jdbc is not bound in the context.
However, as you can see below, Context directly includes the resource
jdbc/BondTest. If I replace
In the web.xml under the conf directory, change the listings parameter to false for
the default servlet. This is for 4.1.27, don't know if the same applies to 3.3.1a
servlet
servlet-namedefault/servlet-name
servlet-class
org.apache.catalina.servlets.DefaultServlet
Yeah the Aliasipaddress/Alias tag. Also, you'll notice that you'll
have to create extra Host tags if you use anything other than www. As
the prefix for your domain name. I have yet to figure that one out.
But, am planning on looking at the Alias source code. Has anyone else
had this type of a
after using development server for a month or two, constantly refreshing .jsp pages
under development, Tomcat starts taking 2-5 minutes to dish out pages from non-root
web app.
anyone have any idea why this might happen?
-paul lomack
java jdk 1.4
jakarta-tomcat-4.1.27-LE-jdk14.exe
Is there a way to implement meta http-equiv=refresh content=60
tag in HTML and still have the ability to timeout a session after X
number of minutes ? Would there have to be some logic in place for the
servlet that changes the session timeout for every refresh?
thanks.
Just a guess but have you tried configuring the realm to use
dataSourceName=BondTest
?
Adam
On 10/06/2003 07:36 PM Derek Mahar wrote:
On Tomcat 5.0.12, should context /bondtest have access to the following
DataSourceRealm? Tomcat complains that it cannot perform the
authentication because the
I've having this same issue with Tomcat 4.1.27 - has anyone gotten this to
work? My resource name is jdbc/appfuse and I've tried:
java:/comp/env/jdbc/appfuse
jdbc/appfuse
appfuse
And none of them work - the same error:
Name java is not bound in this context
Name jdbc is not bound in this
I came across this article and wondered if this is an issue with
4.1.24. Thanks for any thoughts on this issue.
http://www.fawcette.com/javapro/2002_11/online/servletsjsp_bkurniawan_11_08_02/default_pf.aspx
-
To
Yes, it is best to use the appropriate mapping in your
application's web.xml.
/mde/
just my two cents . . . .
--- Mark W. Webb [EMAIL PROTECTED] wrote:
I came across this article and wondered if this is
an issue with
4.1.24. Thanks for any thoughts on this issue.
On Mon, October 6, 2003 1at 1:12 am, Mark W. Webb sent the following
Is there a way to implement meta http-equiv=refresh content=60
tag in HTML and still have the ability to timeout a session after X
number of minutes ? Would there have to be some logic in place for the
servlet that changes the
On Tue, 07 Oct 2003 07:34, Matt Raible wrote:
I've having this same issue with Tomcat 4.1.27 - has anyone gotten this to
work? My resource name is jdbc/appfuse and I've tried:
java:/comp/env/jdbc/appfuse
jdbc/appfuse
appfuse
And none of them work - the same error:
Name java is not bound
After downloading and installing a clean tomcat 4.1.27, I just add the below
realm to the server.xml file and I get the below exception at start time:
REALM
-
Realm className=org.apache.catalina.realm.JDBCRealm debug=99
driverName=oracle.jdbc.driver.OracleDriver
Hi Peter,
re bugzilla, if you log on and then click on the link at the bottom
called 'my bugs', you get shown all your open bugs, albeit not
unconfirmed ones. You can then click on 'edit this query' and just
select all bug status codes, and you will see any bugs you have ever
posted. :)
Adam
Hello all. Is there an easy way to instantiate a bean
as soon as tomcat starts? Basically, I want a bean to
be instantiated and available to all sessions as soon
tomcat starts. Any ideas?
ben
__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
Hi,
I have a webapp with a welcome file called index.jsp.
When i visit my site http://www.mysite.com/ , it convert the url in
http://www.mysite.com/index.jsp !!
I don't want to see index.jsp but only /
Can you help me ? Thanx
You did not say which Tomcat version you are using, but if you are using 4.0 or higher
you should be able to use a listener that can
do whatever you want at startup.
Check the web.xml docs or the servlet spec.
- Richard
-Original Message-
From: Benjamin Swanson [mailto:[EMAIL
Check the archives, I'm pretty sure it was discussed recently.
http://www.mail-archive.com
On 10/06/2003 11:13 PM GL wrote:
Hi,
I have a webapp with a welcome file called index.jsp.
When i visit my site http://www.mysite.com/ , it convert the url in
http://www.mysite.com/index.jsp !!
I don't
We are getting some really strange exceptions like the ones below.
can someone explain what they mean and how do I fix it?
I am getting them in my logs and I am not sure if they are affecting
the users, since they do not complain for some reason, but my gut feeling
is that there are problems, I
Is there a way to catch thread death in tomcat/java? We have a
threadlocal database connection and obviously we don't want to leak
connections when threads die / tomcat is stopped. Any pointers?
Cheers,
-Josh
--
[ Josh 'G' McDonald ][ 0415 784 825 ][ http://www.gfunk007.com/ ]
Josh G wrote:
Is there a way to catch thread death in tomcat/java? We have a
threadlocal database connection and obviously we don't want to leak
connections when threads die / tomcat is stopped. Any pointers?
Cheers,
-Josh
Never mind, I'm a spastic.
--
[ Josh 'G' McDonald ][ 0415 784 825 ][
How to format a double in JSP or java ?
for example :
10/3=3.3
I want to format it to 3.33.
I'm using Tomcat 4.1.24 et i want after it fails it restarts
automatically to have a high availability.
[Assuming Unix]
Way 1 - Set $CATALINA_PID before staarting tomcat. Then have a cron
job run occasasionally to look at the value in the file pointed at
by $CATALINA_PID. If the process
Ricard de la Vega [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi, I have a problem with the format parameter of AccesLogInterceptor. I
need the response.getContentLenght in my Log. I have the param value to
combined such as Apache but, in the log I see a ? or others characters
Look into the java.text package, you'll find a Number formatter there.. or
if you dont want a String, use Math.round()
- Original Message -
From: Lee Chin Khiong [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, October 06, 2003 6:37 PM
Subject: How to format
I agree with Adam. I have also tried the removeAbandonedTimeout parameter and
nothing changed at all. It seems that its not working... (tomcat 4.1.17 though)
Jose
On Fri, Oct 03, 2003 at 11:11:43AM -0500, Matt Raible wrote:
Actually, I was looking at the wrong count - it was the total number
Hello all. Is there an easy way to instantiate a bean
as soon as tomcat starts? Basically, I want a bean to
be instantiated and available to all sessions as soon
tomcat starts. Any ideas?
There is no such thing as Tomcat scope for variables, so you're hosed. Not just with
Tomcat...
Why
86 matches
Mail list logo