Hi and thanks for the quick replies.
QM wrote:
-or you could search the archives. ;) Your question comes up regularly.
Yes, I should have. I am sorry. I did not imagine my problem was that
common...
For Tomcat 4.x and later, investigate the ContextListener class.
Looks exactly like what I was mis
(ideally even before requests to it get served).
Is there a neat way to do this? Any clued would be very appreciated.
Thanks in advance,
Philipp Taprogge
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
Hi!
TK wrote:
1. Can I install and run Apache and Tomcat on the same machine? Or, at
the first place, do I need to do so if Tomcat alone can be used as a
Web server?
Yes, you can and no, you don't have to if your setup does not require
it. Often sites use apache for serving static content (due to
Hi!
Parsons Technical Services wrote:
Harry DID start his own. He may have used the same subject line as an old
message, but nothing existing in the last few months.
I am sorry, but he did not. Quoting from the headers:
Philipp Taprogge wrote:
Subject: Programmatically deploying webapps
Message
Hi!
Harry Mantheakis wrote:
Does anyone know if it is possible to use the Tomcat Manager tasks in Ant
over HTTPS?
Now I am running my own server, and I have got to bite this bullet. Any
pointers would be much appreciated!
Firstly, it would be nice if you could start your own thread next time
ins
Hi!
I am stuck here :-/
Perhaps anyone could give me a poke in the right direction.
What is want to do is this: I am writing an "installer" for my web
application. It is intended to ask the user for hostnames/IP-addresses
for tomcat and a db-server, edit the context.xml to reflect the
datasourc
Hi!
zhicheng wang wrote:
hi, my colleague has find the solution is here:
http://archives.real-time.com/pipermail/tomcat-users/2003-June/115025.html
Just for the record: it is at least questionable (from the rfc's point
of view) to have your server respond to a TRACE with a 3xx and
especially a
Hi!
zhicheng wang wrote:
can any one tell me how to disbale the TRACE|TRACK
method in tomcat (4.1.27 i am using)
any suggesstions are welcome
Well then, here goes.
I don't know if there's a configuration option in tomcat somewhere (I
never needed to disable a method), but could you not just write
Hi and thanks for your response!
Shapira, Yoav wrote:
These are private support classes of the Servlet API. They're still
present, but they're file-private inner classes and thus no in the
JavaDoc (intentionally).
I thought so, that's why I asked.
The class name you're quoting for them is
wrong
Hi all!
While I was reading some mail archives today, I stumbles stumbled over
a few postings discribing problems with webapplications referring to a
class called javax.servlet.http.NoBodyResponse and sometimes
javax.servlet.http.NoBodyOutputStream. I was curious, so I browsed
through the java
Hi!
Mathew wrote:
For me it looks like my program is not able to
read tags in server.xml to get driver class info. Any help is really
appreciated.
If sure looks that way, but without further information one can't be sure.
It would really help matters if you could post the relevant parts of
your s
Hi!
Jerald Powel wrote:
Thanks for that. can you tell me then the purpose of jessionid - (methods encodeURL and getRequestedSessionId)?
It seems a bit strange to pass the session around while in the session.
As far as I understand, the only purpose of jsessionid and the above
methods is to allow
Hi!
Sale Rahul wrote:
Dear All Gurus,
We need to make one utility class which needs to run
on its own in the tomcat.We donot want to make it as
servlet or so.
Is there any way with which we can do that ?
might...
But it is very hard to advise you with so little information. What
purpose is this c
Hi!
Parsons Technical Services wrote:
The
better way is to clear the form or send them to another page. That's all
client side.
Not necessarily. What I do in such situations is this: have a servlet
process the form data and then send something else (e.g. an "update
successfull"-page) as response
Hi!
Peter Guyatt wrote:
I have a problem where a user enters data into a form and then submits this
to the server, which in turn wrights this content into a database.
The problem I have is that if the user then refreshes the page via F5 then
it adds the same data in again.
Is there any way to ens
Hi!
Mark Matthews wrote:
On most versions of Windows, using JDBC and MySQL with named pipes will
give you a 50-60% performance improvement.
Which IMO is by no way an intidator of Win's greatness in named pipes
but rather of it's bad TCP implementation. Instead of relying on named
pipes one shoul
Hi!
Eric Prévost wrote:
I'm using Tomcat 5.0.18 on Linux. My database server is Microsoft SQL Server 2000.
I'm using Microsoft's JDBC driver.
When I stress-test my application with JMeter, I can see over 80 connections on my
database server, and they are not
released until I stop tomcat... Is
Hi!
I don't know if this will help you, but I use the ImageIO classes for
exactly the same purpose. Works great for me. I first create a
BufferedImage and then write it to the response.
The code looks something like this:
BufferedImage bi; //make your BufferedImage from whatever
response.setCon
Hi!
Shapira, Yoav wrote:
Can you clarify something for me? You are referring to tomcat starting
child processes and not changing the uid, correct?
I don't understand what you're asking.
I am not entirely sure, either, but I think you two are talking
cross-purposes. If I am not mistaken, the OP w
Hi!
Werner van Mook wrote:
Can I continue on this which is OT?
Which standard users can start tomcat on port 80?
except for root?
This very much depends on the platform tomcat runs on.
On Linux and most Un*x-like operationg systems, no user except root
(i.e. anyone with effective uid 0) may open
Hi!
Shapira, Yoav wrote:
Howdy,
Should be taken care of now. Maybe one or two more circulating, but
that's it I hope.
Hmm... I still getting those failure notices... at least 5 or so every
minute... :-/
Phil
-
To unsubscribe
Hi!
Robert Priest wrote:
How can I pass a byte[] down to my client, without calling
"response.getOutputStream" explicitly?
Here is my problem:
I want to pass a file down to the client via a jsp page.
At first glance, I can't tell you why you get this error, but IMHO you
could save yourself a l
Hi!
Avinash Sridhar wrote:
Thanks for the suggestion,I did as you told and echo %CLASSPATH% going into the
directory,
but still the errors as below.
And the result was... what?
The compiler errors can be interpreted in only one way: the
servlet-api is _not_ in your classlath. Hence there can be
Hi!
Josh Rehman wrote:
> Note: This issue has been fixed in Sun JDK 1.4.x.
Thanks for pointing out. I thought a fix was implemented only recently
in the latest java version. My mistake obviously.
Phil
-
To unsubscribe, e-mai
Hi!
I don't know if this applies to your webapp, but there is an issue
with the java compiler having a memory leak which can lead to OOM
errors when tomcat has to compile many jsps over and over. A remidy
for this is either to use jikes instead of javac entirely or to set
the fork attribute of
Hi all!
Peter Lin wrote:
then I will throw major load at it for 48hrs generating a couple million page views.
Just out of curiosity: what is the best way to generate page views for
such a benchmark? What tools do you use?
Thanks
Phil
--
Hi!
Jon Belinfante wrote:
Does anyone know how in a Web App one can read parameter info from
server.xml. Basically I am looking for a way to read port numbers from the
app. Is this possible. ? I presume not - but I ask just in case there is
something I may of missed.
It is neither possible nor des
Hi!
Avinash Sridhar wrote:
this is regarding a certain problem that I am facing and not able to find an answer to
it.
As the case is,I am using tomcat 5.0.16 on Windows Xp home edition.I have made a
directory as
sampleapp in the CATALINA_HOME/webapps directory.
the directory structure is as foll
Hi!
Michael Duffy wrote:
I think it's a better idea to make those app resources
local instead of global. If your app is the only one
that needs that data source, by all means it should
not be global. That's the way I prefer to do it.
Keep those apps uncoupled and isolated from each
other. - MOD
Hi!
Burgess, Jay S wrote:
Thanks for the feedback. Maybe my problem does have something to do
with context visibility, but since I'm defining the resource within
SERVER.XML's , I was under the impression that
these resources were available to all contexts.
I had a similar problem. It seems, th
Hi!
Adam Hardy wrote:
If I go to my webserver with a linux shell and use Lynx, the download
page at java.sun.com gets truncated.
wget and curl don't work either because they're not interactive so you
can't click on the 'accept terms' submit button.
This is a problem I often run into as well. A
Hi!
Philipp von dem Bussche wrote:
does anybody know, if it's possible, to access information about a
tomcat connection pool through the tomcat api. I am looking for a way to
ask my container, how much connections are still left.
Since pooling is not a feature of the container, this very much
Ha... just got another one... if complained about my message having
"different SMTP-To: and MIME-To: headers". I am not sure if that's
what you got as well.
Phil
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comma
Hi!
Merrill Cornish wrote:
In the last day or two, each message I send to this mailing list gets a
response with the subject line "Symantec Mail Security detected that you
sent a message containing prohibited content" I initially assumed it
thought the XML fragments I was including in my post
Hi!
Jeremy Nix wrote:
We have an instance where tomcat instance (A) is communicating with
tomcat instance (B), where instance (B) is located at another site.
Instance (A) formulates a request to instance (B) and instance (B)
responds with some valid response. Now, my question is, from a
standpoin
Hi!
Without knowing your setup better, I can't be entirely certain here,
but my best guess is that your servlet's attempt to open a connection
to the outside world is denied by it's sandbox's security manager.
Check the console of your client vm for any security related errors.
You might have
Hi!
Simone Chiaretta wrote:
the libXp.so lib is a lib from X server...
But I'm running the webserver on a just text server, so, no Xfree...
I'm wondering if X is needed to use some awt methods (like the
Toolkit.getImage())... or JPEGEncoder
the piece of code that seems to generate the error is:
Hi!
Shapira, Yoav wrote:
This is a common misconception: System.gc() is merely a suggestion to
the VM to run collection. The VM is not obliged to run it then, i.e.
this is not a hard directive. It should never be relied upon. With JDK
1.4, there's a runtime parameter to ignore System.gc() call
Hi!
Dor Orgad wrote:
Im having a great deal of trouble getting tomcat to see my OracleDriver
for the JDBC class. I have tried putting it the file classes.jar in
both my tomcat/jakarta-tomcat-4.1.29/common/lib/ directory and my
WEB-INF/lib directory in my docroot, and nothing seems to work. It
Hi!
Robert Bowen wrote:
Hello all. I recently had to un-install and re-install Tomcat. Now when I run it (either as a service,
or using startup.bat or catalina.bat) it fails with this error:
java.lang.NoClassDefFoundError: com/sun/jmx/mbeanserver/GetPropertyAction
... I can't seem to find any
Hi!
Justin Walters wrote:
http://website.com/subdir/script.jsp/more/pathinfo
Currently, it looks like it just assumes script.jsp is another
subdirectory, and so this request doesn't work, you get a 404. Is there
a way for me to configure Tomcat such that it loads script.jsp?
AFAIK this is not
Hi!
I don't know MSSQL in particular, but in princible it should be as
simple as adding ?autoreconnect=true to the driver URL.
Phil
Derek Mahar wrote:
How can I configure Tomcat 5.0.16 to reconnect to a Microsot SQL Server
after a server restart? I have configured Tomcat to use JNDI
datasourc
Hi!
Jeff Greenland wrote:
Thanks, I'll go through and see if anything in here gives me some hints.
However, I'm not getting "ClassNotFound" exceptions -- my files are not
even compiling because the compiler "Cannot Resolve Symbol". My problem
lies in that the compiler (jasper) cannot find my comp
Hi!
FRANCOIS Dufour wrote:
whicht database should i use under tomcat
That does not so much depend on tomcat but rather on the needs of your
application. Today almost any major RDBMS has a JDBC driver and that's
all you need. If you want a database that is simple to administrate
but comes with r
Hi!
FRANCOIS Dufour wrote:
ok in french traducted i got many option there like follow user variable
(name of curent user)new,modifie,delete /system variable new, modifie,
delete,
If you want the java_home to be system wide (for all users) click on
"new" next to "system variable", if you want it
Hi!
FRANCOIS Dufour wrote:
win xp home tomcat 4.0 jdk 1.3 i have video chat aplication running but
the forum aplication
ask mee too set a java home path and cant figure were
Perhaps you should ask someone who has a french version of WIN XP
available. On an english installation, you go to proper
Hi again!
David Strupl wrote:
Also the code was running for several
years in tomcat 3.x without any problem. After migrating to tomcat 4.x
the nightmare began.
Have you changed the JRE as well or are you running the tomcat 4
instance in the same VM as the tomcat 3 before? Just to make sure you
Hi!
David Strupl wrote:
I have tomcat 4.1.29, JDK1.4.2. Also my app was completely ok with
tomcat 3.x.x. The 100% of processor time occurs in my case only after
the OOME. Before the OOME all the threads (both tomcat's and mine) are
happy.
The processor usage is not too surprising. When your mac
Hi!
Teja Jo wrote:
Hello everyone,
Can anyone tell me how the back and forward button of browser be controlled
- as disabled for example or specifying the url it should go to - thru
the requests made to servlet?
Thanks and regards,
It is (thankfully) not possible to control a user's browser from t
Hi!
Riaan Oberholzer wrote:
This is not a Tomcat issue, but I've tried desperately
and could find no answer elsewhere... can someone
please tell me how to get Tomcat working with
ZoneAlarm (free version) as firewall?
In general, it is very advisable to know what a firewall does and how
it works b
Hi!
George Sexton wrote:
This is a really bad idea because of the implementation of
StringBuffer.toString() and setLength().
Well, Ok. But this is (IMHO correctly) regarded a bug in the current
StringBuffer implementation; a bug that, with luck, will be fixed some
day. Or you could write your o
Hi!
I was just working on a little project of mine when a thought sprang
to my mind...
In my servlets I often have to assemble Strings like SQL statements
and the like. I use StringBuffers for this as they offer much better
performance than concat. Now I was wondering: would it make any sense
Hi!
Luis Daniel Alvarez wrote:
What about the others 50 or 70 java process with 50M of memory comsuption
too?
You must understand that the java runtime on linux implements java
threads by forking separate processes which if the preferred way on
un*xes to do things. What you are seeing with top a
Hi!
[EMAIL PROTECTED] wrote:
Question:
What do I have to change in order to enable admintool to save changes to
server.xml?
I am not entirely sure here, but from what I have read so far I recon
that the admin webapp is for making changes to the running tomcat
instance _only_. If you know in adv
Hi!
David Ramsey wrote:
I've not used DBCP specifically but are you sure you are committing
your writes? Most pools will default rollback connections returned to
the pool, if I am not mistaken.
Isn't there a parameter autocommit in the ConnectionFactory? I am not
sure if it's viable to call setAu
Hi!
Sebastian Klenk wrote:
actually i thought that tomcat was supposed to close the connection
after all data has been send - if not this explains a lot!
It does, but TCP handshakes are no one-way street.
I can only do wild guesses from here, but what I think is happening is
this: after tomcat s
Hi!
Sebastian Klenk wrote:
I didn't do anything ... the only problem I have is that my app. is not
very fast, and that is because it has to wait for tomcat to close the
connection, but tomcat closes the connection a lot later (ca 1 minute).
My question is now if there is a way to tell tomcat tha
Hi!
Ferreira, André wrote:
Can someone please explain to me what does "Connection reset by peer" means?
Does it mean the server does not recognize the connection attempt from
Tomcat or are there some other explanations.
Or is there some port not available...:-(.
Since TCP is a connection-less
Hi!
Hart, Justin wrote:
Quick question. I see that one can configure a JDBC datasource in their server.xml file and their web.xml file.
> What does this get you? Every example that I have read tells me
that I need to open a JDBC connection just about
the same as I would from any other java appl
Hi!
Kwok Peng Tuck wrote:
Isn't removeAbandoned deprecated ? If so is it still usable ?
I can't find a word about it being deprecated on
http://jakarta.apache.org/commons/dbcp/configuration.html
I am using this parameter quite successfully.
Phil
--
Kausik Dey wrote:
Hi Guys,
Currently I am using 5.0.5 in production. I was trying to upgrade to 5.0.15 or 5.0.16.
I made necessary changes to server.xml
> to create informix DBCP. Unfortunately, I am getting "Connection
Pool Exhausted" error while trying to obtain the connection
from Datasource.
Hi!
Dick Steflik wrote:
If you use a different
compiler does the problem go away.
I think so. I often hear that using jikes instead of javac would get
rid of the problem, which, if true, rises the question why tomcat does
not use jikes by default...
Phil
---
ar in /common/lib as well?
Thanks
Philipp Taprogge
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi!
Find the default web.xml in $CATALINA_HOME/conf and change the appropriate
parameter for the jsp servlet to true. At least in Tomcat5 this file comes
with very good documentation.
Philipp Taprogge
> Hi,
>
> How do I turn the fork to be true?
>
> Regards,
>
Hi!
Dick Steflik wrote:
I'm on W2000, just for the record. With this in mind which way should
the fork be set; true ot false.
Concidering that this poor excuse for an OS does not even know the
meaning of fork(), I'd say you set it to true. W2K should then start a
completely new process from sc
Hi!
David Rees wrote:
BTW, there is a bug with Tomcat which will cause it to run out of memory
after a number of restarts. You will probably run into this with 30
students uploading new classes. You will also want to make sure that
the fork attribute for the JspServlet is set to true as well
Hi!
In tomcat 4 you have to either restart tomcat after you drop the war
in it's webapps directory or manually install the webapp using the
tomcat manager (the path to war file should be relative to the webapps
dir, so if you drop the war there, you can just enter it's name and
press install b
Hi!
Jacob Kjome wrote:
You can also use a repository selector. BTW, do you have log4j.jar
*and* commons-logging.jar (not commons-logging-api.jar) in WEB-INF/lib?
Yes, I do, but I have tried several scenarios with and without either of
them in my WEB-INF/lib.
Also I tried putting/removing them i
right was one.
'Till later
Phil
Philipp Taprogge wrote:
Hi!
I have a very disgusting problem here... I am developing a webapp which
uses commons-logging and log4j.
All I do is use the commons' Log and LogFactory in my application and
place a log4j.properties file in my WEB-INF/cl
ile, which firstly
slows down my machine (no wonder) and secondly grows the logfile to a
few MBs just from startup.
What the heck am I doing wrong here? This setup worked perfectly in
the last tomcat4.
Can anyone advice?
Philipp Taprogge
--
"I love deadlines, I love the whooshing noise they mak
Hi!
Nadia Kunkov wrote:
Thanks. I did http://localhost:8080/manager/install?war=test and got the error: "Access to
the specified resource has been denied/forbidden". What does that mean? In
$Tomcat_Home/conf/tomcat_users.xml I have this:
(I'm not logged in to the machine as Tomcat but I thi
Hi!
Antonio Fiol Bonnín wrote:
My guess:
req and res are attributes of the Servlet, like in:
public class TestServlet extends HttpServlet {
private HttpServletRequest req;
private HttpServletResponse res;
[...]
}
So you are calling "forward(s)" for a request once req and res have been
overwritt
can, of course, provide a complete server.xml or other files.
Thanks in advance for any help you have to offer.
Philipp Taprogge
--
"I love deadlines, I love the whooshing noise they make as they go by"
- Douglas Adams
--
73 matches
Mail list logo