> -Original Message-
> From: Angelov, Rossen [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 27, 2007 12:56 PM
> To: Tomcat Users List
> Subject: Tomcat Monitoring
>
> What is recommended for monitoring Tomcat? Or is there anything built in
> that can help monitoring the performance and
You could as a simple test write a trivial web app, where the
contextInitialized() creates a trivial Timer, where the run() method simply
logs the event, perhaps with an integer count. Run that alongside your
failing webapp and see if there is any correlation.
Tim
> -Original Message-
>
> -Original Message-
> From: Johnny Kewl [mailto:[EMAIL PROTECTED]
> Sent: Saturday, June 30, 2007 7:57 AM
> To: Tomcat Users List
> Subject: Re: order of web app initialization.
>
>
> These TC designers seem to have though of everything
> See
> 1
>
> The sub-element indicates the ord
I do not have any idea *why* you want to do this, but you can use
session.invalidate() to guarantee the next request will have a new session
ID.
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSession.html#in
validate()
Tim
> -Original Message-
> From: Bachler, Elisabeth (El
I'm not sure what the impact of Tomcat is on this, but I've used syntax
similar to this:
try {
File tf = File.createTempFile("pattern", ".suffix");
tf.deleteOnExit();
BufferedWriter out = new BufferedWriter(new FileWriter(tf));
out.write("This temporary file is deleted on close");
I've used ant to write a deploy task which is parameterized. Then I can
wrap an iteration task around it and undeploy + deploy on all n Tomcats.
It does depend on
http://ant-contrib.sourceforge.net/tasks/tasks/foreach.html
http://www.lambdaprobe.org/
> -Original Message-
> From: Sorin Juco [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 31, 2007 6:49 AM
> To: users@tomcat.apache.org
> Subject: Monitoring connection pools created by tomcat
>
>
> Hello,
>
> I use tomcat 6.0.13 with jdk 6 on windows.
>
> I
> -Original Message-
> From: Mark Thomas [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 29, 2007 1:31 AM
> To: Tomcat Users List
> Subject: Re: Tomcat Netbeans Project... WildCat
>
> Johnny Kewl wrote:
> > + One can dump the src into a Netbeans project, click compile and you
> have a wor
I wrote a webapp which displays and allows for modifying the runtime
configuration of log4j. I can send you the .war, if you'd like.
Tim
> -Original Message-
> From: Goran [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 30, 2007 7:22 AM
> To: users@tomcat.apache.org
> Subject: Log4j run
n't look like if you use one you
can't use the other.
-- Rob
Tim Lucia said the following on 05/25/2007 03:59 PM:
Your configuration file is valid. Does the user Tomcat runs as have write
permission along the output path? You could try using /tmp as a test. If
it is not permissions
Your configuration file is valid. Does the user Tomcat runs as have write
permission along the output path? You could try using /tmp as a test. If
it is not permissions, then it could be a classpath issue, but your notes
lead me to believe that not to be the case (i.e., you put them where they
s
> -Original Message-
> From: Nencho Lupanov [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 25, 2007 7:22 AM
> To: Tomcat Users List
> Subject: tomcat webapp startup order
>
> Hi all,
>
> I have vanilla tomcat 5.5 installed.
> I also have axis2 web application deploying on every startup.
ource. The only way it works is
> using port 8080 on localhost.
>
> jessica
>
> On 5/24/07, Tim Lucia <[EMAIL PROTECTED]> wrote:
> > What happens if you make the request of localhost?
> >
> > > -Original Message-
> > > From: [EMAIL PROTEC
What happens if you make the request of localhost?
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
> Jessica Johnson
> Sent: Thursday, May 24, 2007 12:31 PM
> To: users@tomcat.apache.org
> Subject: why is apache serving source for .jsp files?
>
> Hi a
virtual hosting be used here ??
I don't know. I use
ErrorDocument 503 /maintenance.html
ErrorDocument 404 /404.html
in my httpd.conf and httpd sends the custom error page for me. Maybe
someone else can offer you a different solution.
Tim
>
> Thanks and Regards:
> Quayum Sagri
>
&g
ROOT directory.
>
> Thanks for your support.
>
> On 5/17/07, Tim Lucia <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > -Original Message-
> > > From: Abdul Qayyum [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, May 17, 2007 2:01
> -Original Message-
> From: Abdul Qayyum [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 17, 2007 2:01 AM
> To: Tomcat Users List
> Subject: Re: displaying customized error page in tomcat 5.5.12
>
> Hi Tim Lucia,
>
> >>I'm guessing you can ad
Here is /etc/init.d/tomcat from a RHEL4 system:
#!/bin/bash
#
# tomcat
#
# description: Start up the Tomcat servlet engine.
#
# Source function library.
. /etc/init.d/functions
RETVAL=$?
export JAVA_HOME="/usr/java"
CATALINA_HOME="/usr/local/tomcat"
case "$1" in
start)
if [ -f $CATALIN
> -Original Message-
> From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 16, 2007 11:34 AM
> To: Tomcat Users List
> Subject: RE: Urgent: PermGen memory leak in a NetBeans developed tomcat
> application
>
> > From: Paulo Alvim [mailto:[EMAIL PROTECTED]
> > Subjec
In order for the custom error page to be used, the application must be
deployed. I.e., Tomcat can give a custom 404 for
/mycontext/badpagerequested.jsp but if there is no context "/mycontext"
because the app is not (yet) deployed, Tomcat cannot know about your custom
error page.
I'm guessing you
Sounds like this is a logic problem in your filter; hard to know exactly
what w/o seeing your code & filter definition. You could change your logic,
possibly by adding a trail of breadcrumbs so the next time through you don't
redirect. Or, you could consider changing the filter url match pattern
error, please
> notify
> the sender immediately by telephone or email and destroy the original
> message without making a copy. Thank you.
>
> - Original Message -
> From: "Tim Lucia" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'"
I have a pile of MRTG/Perl scripts which scrape together stats from the JMX
proxy in the Tomcat manager, from home-grown webapp filters, and from one or
two other sources. If you (or anyone) would like a copy, I'll send them to
you. Send me private e-mail.
Tim
> -Original Message-
> Fr
> -Original Message-
> From: Christopher Schultz [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 26, 2007 8:54 AM
> To: Tomcat Users List
> Subject: Re: Seamless transition between application updates
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Lightbulb,
>
> lightbulb432 w
At my company, we have a weekly application update. Sometimes it is more
frequent than that. We have Apache/httpd + mod_jk and three clustered
Tomcats. Updating the Tomcats one at a time causes no loss of service as
the other two pick up. Of course we do this during the periods of lowest
usage,
You can't, and generally don't want to stop Tomcat (the server) when an
application is mis-configured. Instead, you can stop (mark unavailable)
your application. One way to do this is to throw an exception inside a
ServletContextListener, if it detects wrong values inside the configuration
file:
> -Original Message-
> From: Rainer Jung [mailto:[EMAIL PROTECTED]
> Sent: Sunday, April 22, 2007 12:54 PM
> To: Tomcat Users List
> Subject: Re: Sticky sessions not changing servers
>
> Please give details:
>
> - software (apache, tomcat, mod_jk) and platform versions
> - relevant part
Sticky sessions means exactly that. Stick the session to a particular
tomcat. If you shut down that tomcat, it should fail over to the other
tomcat(s) if you have properly set up your cluster.
If you use synchronous replication you don't need sticky sessions as all
tomcats should have the sess
> -Original Message-
> From: Christopher Schultz [mailto:[EMAIL PROTECTED]
> Sent: Saturday, April 14, 2007 2:51 PM
> To: Tomcat Users List
> Subject: Re: getResourceAsStream returning blank (NOT NULL)
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> -Original Message-
> From: Johnny Kewl [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 13, 2007 2:36 AM
> To: Tomcat Users List
> Subject: Re: getResourceAsStream returning blank (NOT NULL)
>
>
> InputStream in = getClass().getResourceAsStream(sPackageNameWithSlashes);
>
> If the class
mv + java should do the trick. If you get a ClassNotFoundException, then
the jar file is utilized.
Tim
> -Original Message-
> From: Pierre Goupil [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 13, 2007 11:28 AM
> To: Tomcat Users List
> Subject: Re: unecessary JAR files
>
> Hello, Worl
You could create a file, write to it, and observe where it appears.
> -Original Message-
> From: Jasbinder Singh Bali [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 11, 2007 6:50 PM
> To: users@tomcat.apache.org
> Subject: Demonstration of Chroot when tomcat running in jail
>
> Hi,
>
java.io.NotSerializableException
I wrote a session listener / filter combination that logs all session
objects which do not implement the interface. If interested, let me know...
It was step 1 in going cluster.
Tim
> -Original Message-
> From: Yerramsetti, Naga [mailto:[EMAIL PROTECTED
If it helps at all, I just moved my company's apps from 5.5 to 6.0. The
only stumbling block was they rely on the invoker servlet. I changed the
build process to find all classes which implement HttpServlet and add an
explicit mapping to /servlet/com.mycompany.package.Servlet in web.xml.
The onl
Look in the IIS log files for a clue:
C:\WINDOWS\system32\LogFiles\W3CSVC (or something close to that -- I tossed
IIS a long time ago and use httpd.)
>From the posts it does not appear to be a port conflict as the OP says
"localhost:80" which Tomcat does not configure by default. If it was a
con
> -Original Message-
> From: dimitryous r. [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 31, 2007 8:04 AM
> To: Apache Tomcat
> Subject: Tomcat Administration
>
> Hello,
> I just finished my upgrade to Apache Tomcat/5.5.20.
>
> I know that for security reasons, using the administrati
les\Apache Software Foundation\Tomcat5.5\bin" I
> was hoping that someone had across this issue before.
>
> Jayson
>
> -Original Message-
> From: Tim Lucia [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 28, 2007 9:59 AM
> To: 'Tomcat Users List'
>
If you run Tomcat as a service on Windows, then you have what you need -- no
reason to have Catalina.bat.
Tim
> -Original Message-
> From: Jayson Enriquez [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 28, 2007 10:18 AM
> To: users@tomcat.apache.org
> Subject: Which Tomcat 5.5.23 file
Tomcat is running on a server, say tomcat.mycompany.com. The user is
sitting on their computer, say mypc.othercompany.com. The two speak http to
each other.
Thus, if you want the client (mypc.othercompany.com) to edit a file, you
must send it from the server (tomcat.mycompany.com) to the client,
I do -- here are some snippets from the configuration files:
conf.d/ssl.conf:
LoadModule ssl_module modules/mod_ssl.so
Listen 443
ServerName www.mycompanyname.com:443
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
DocumentRoot /usr/local/esped/www.mycompanyname.com
ServerA
007 12:44 PM
> To: Tomcat Users List
> Subject: RE: connection pool
>
> is testOnBorrow an attribute in the xml config? I haven't seen that in my
> version, coincidentally.
>
> -----Original Message-
> From: Tim Lucia [mailto:[EMAIL PROTECTED]
> Sent: Monday, Ma
Do you have a validation query? Is testOnBorrow set to true? Doing both of
these things will force the pool to really close and really re-open any
connection which fails the validation query.
Tim
> -Original Message-
> From: Piwoni, Andre [mailto:[EMAIL PROTECTED]
> Sent: Monday, March
> -Original Message-
> From: Natasha N Wright [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 16, 2007 6:08 AM
> To: Tomcat Users List
> Subject: Servlet Caching
>
> Hi,
>
> I have a servlet which connects to a database; once the connection is
> made I pass a connection object into anot
> -Original Message-
> From: John Cartwright [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 14, 2007 11:47 AM
> To: users@tomcat.apache.org
> Subject: list of session objects associated w/ a context
>
> Hello All,
>
> Is there a simple way to get a list of the HttpSession objects
> as
> -Original Message-
> From: Tim Funk [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 14, 2007 8:39 PM
> To: Tomcat Users List
> Subject: Re: Rationale for makeing Invoker harder to user
>
> http://tomcat.apache.org/faq/misc.html#evil
Keep in mind this opens with "This is opinions of
I wrote an application which allows you to modify the running log4j
configuration on the fly. It's a Struts app, and relies on the fact that
tomcat and all the apps are running out of common/lib/log4j*.jar and
common/classes/log4j.properties. However, you could add the servlet, jars,
and mappings
It's not necessarily bad to use Singletons. You have to be certain that
they do not hold references to themselves or their class or they cannot be
unloaded. Google for: permgen log4j.
One thing about log4j -- you should have an ServletContextListener that
shuts down log4j properly:
public class
> -Original Message-
> From: H H [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 27, 2007 1:12 AM
> To: users@tomcat.apache.org
> Subject: Tomcat monitoring
>
> Does anyone know whats the best way to monitor a tomcat application
> remotely - I have seen the mailing lists and there ar
> -Original Message-
> From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 26, 2007 4:48 PM
> To: Tomcat Users List
> Subject: connection pool - DBCP error
>
> AbandonedObjectPool is used
> ( [EMAIL PROTECTED])
>
>LogAbandoned: true
>RemoveAbandoned:
> -Original Message-
> From: Andre Prasetya [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 22, 2007 12:39 AM
> To: Tomcat Users List; jug-indonesia@yahoogroups.com
> Subject: strange log4j behaviour
>
> Hi,
>
> I m using tomcat 5.5 and we're hosting 5 application. The problem is tha
> -Original Message-
> From: Jacob Rhoden [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 22, 2007 8:44 AM
> To: Tomcat Users List
> Subject: Re: Mysql timouts...
>
> I will have to read the documents to find out why having the connection
> automatically reconnected if there was a pr
> -Original Message-
> From: Marc Farrow [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 19, 2007 3:56 PM
> To: tomcat-users
> Subject: Connection Pooling Question
>
> Slightly off topic, but the core of what I want is being done in the
> source
> code of Tomcat. I am trying to use the
On the Java tab, I have:
-Xdebug
-Xrunjdwp:transport=dt_socket,address=9876,server=y,suspend=n
I then set eclipse to launch a remote application attach. It works
flawlessly. Be sure to put one option per line as that is what delineates
the arguments.
WinXP, Eclipse 3.0/3.1.
HTH,
Tim
> -
> -Original Message-
> From: APliszka-Public [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 14, 2007 11:36 AM
> To: Tomcat Users List
> Subject: What is the best production grade connection pooling for Tomcat
> 5.5
>
> Hi,
>
> What is the best production grade connection pooling fo
> -Original Message-
> From: Tom Davis [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 08, 2007 10:35 AM
> To: users@tomcat.apache.org
> Subject: IllegalStateException in Tomcat 5.5.X
>
> Hi All.
>
> I'm getting some intermittent exceptions from Tomcat with which I would
> apprecia
> -Original Message-
> From: Rob Bugh [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 06, 2007 3:22 PM
> To: Tomcat Users List
> Subject: Re: Session Affinity and Session Replication
>
>
> Thanks, for the information. My confusion in part stems from this comment
> in the The Apache To
> -Original Message-
> From: Claudio Chiossi [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 05, 2007 5:11 AM
> To: users@tomcat.apache.org
> Subject: Differences between tomcat 5.5.9 and tomcat 5.5.20
>
> Hi,
> I'm new of this mailing list.
> I want to know the differences between tomc
> -Original Message-
> From: Bryan Basham [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 02, 2007 3:52 PM
> To: Tomcat Users List
> Subject: Re: Configuring JSF in the TOMCAT/conf/web.xml for all webapps
>
> Hello Tim,
>
> OK, but if the JSF jar files are *only* in TOMCAT/common/lib
This is almost certainly caused by the involvement of two different
classloaders. For example, if you place a driver jar such as Oracle's
classes12.jar in both places, then you'll find you cannot cast from a
com.oracle...BlobXXX to a com.oracle...BlobXXX, as the class you can see
comes from the we
> Also in V6, it seems to be using a version of dbcp associated with tomcat
> as opposed to commons. (org.apache.tomcat.dbcp.*) Has some underlying
> behavior changed as well here?
This is the standard behavior with 5.5.x -- DBCP is repackaged under the
Tomcat package (presumably) to avoid conflic
I seem to remember I had to upgrade to 1.3 of log4j in order to have the
locator information appear, at least in Chainsaw. I'm not 100% certain of
this. But, if you have a newer log4j*.jar in Eclipse, then that might
explain things.
Tim
> -Original Message-
> From: Eqbal [mailto:[EMAIL
The following works fine for me, and has for years:
public class ApplicationLifecycleListener implements ServletContextListener
{
private final static Log logger =
LogFactory.getLog(ApplicationLifecycleListener.class);
public void contextInitialized(ServletContextEvent sce)
{
FYI -- I *JUST* (as in I read the original post and wondered if I should but
did so anyway) completed an upgrade from
RHEL V.4, 1.5.8(i586) --> 1.5.10 (amd64)
And
Tomcat 5.5.12 --> 5.5.20
All my requests send along the jvmRoute properly in the JSESSIONID cookie.
Tim
> -Original Message
> -Original Message-
> From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 28, 2006 8:25 PM
> To: Tomcat Users List
> Subject: RE: session#getId changes during doGet invocation under heavy
> load
>
> > From: Peter Coppens [mailto:[EMAIL PROTECTED]
> > Subject:
My project's ant build.xml takes a 'master context' file and customizes by
build type -- dev, production, qa, etc., by taking a list of datasources
(properties) and applying it to the master context using the
task.
Creating META-INF/context.xml from
'datasources-${build.type}.propert
I have added a filter to my application, which pushed the NDC (Nested Debug
Context) which includes the username, remote IP, and other information about
the user. Then %x will display this in the log file. Of course you become
explicitly dependent on log4j if you do this.
I'm not aware of a comp
find out about the available monitoring info. Once you find the beans
you are interested in, you can make the query *:* more precise.
Tim Lucia schrieb:
> Let me now ask my own question about this -- Lambda Probe is a great tool
> for inspecting your app's current state (and Tomcat'
achine-readable
form (XML, one per line, CSV, etc.)? One that could easily be parsed with
perl for consumption by MRTG? Lambda Probe's generated HTML isn't too
easily parsed, at least for my novice perl skills.
Tim
-Original Message-
From: Tim Lucia [mailto:[EMAIL PROTECTED]
S
ant to try this out in my environment with 8 instances of tomcat each
with around 2,500 sessions per instance.
Does this sound feasible?
Also how do you monitor the cluster status?
Tim Lucia wrote:
> As a case study, I have, in production, 4 Dell 2850 servers (running Red
Hat
> Enterprise V4.)
As a case study, I have, in production, 4 Dell 2850 servers (running Red Hat
Enterprise V4.) Apache httpd on one, using JK for load balancing. The
other three are running Tomcat in a 3-way multicast cluster, multicasting
with replication on a private VLAN (192.168.x) The application accesses
sev
If all your session objects (beans) implement java.io.Serializable, then
Tomcat can persist sessions across shutdowns and restarts. If they do not,
then session cannot survive a shutdown/restart. The message is otherwise
harmless.
If you want to cluster Tomcats to serve your app, you really shou
You can use a filter:
/*
* Copyright (C) 2005 Tim Lucia.
*
* This software is distributed under the GNU General Public License (GPL).
*/
package tim.lucia;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import
ers the file content in
the browser as well.
Thanks!
Dave
David Kerber wrote:
> Thanks, Tim - I'll give that a try later today.
>
> Dave
>
>
> Tim Lucia wrote:
>
>> You could stream it directly to the user, if practical (why write to
>> a temp
>> file
You could stream it directly to the user, if practical (why write to a temp
file only to stream that back to the user?) In order to be recognized by
the browser as text and an attachment, you should:
response.setContentType("text/plain; charset=UTF-8");
response.setHeader("Content-disposition", "
Here is my deployment rule, which deposits the project war file onto the
given tomcat server, under the root context (path=/).
HTH,
Tim
Undefined: tomcat.username
Undefined: tomcat.password
Undefined: tomcatURL
Deploying ${basedir}/${project.war} to ${
[mailto:[EMAIL PROTECTED]
Sent: Sunday, September 24, 2006 10:18 PM
To: Tomcat Users List
Subject: Re: ASP.NET HttpHandler in Tomcat?!
You are Right tim much easier,
but how do you know from which url that the request have been send?
which object give you this kinda information?
On 9/24/06, Tim Lucia
Or you can simply map all the file extension URLs to the servlet of your
choice. A framework is *not* required. Google for "servlet-mapping".
Tim
-Original Message-
From: Lung Chan [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 24, 2006 10:09 AM
To: Tomcat Users List
Subject: Re: A
y via
> the workbench, there is another tool for recording lower level traffic:
> ProxySniffer
> It may help in this case.
>
> Bruno Georges
>
> Glencore International AG
> Tel. +41 41 709 3204
> Fax +41 41 709 3000
>
>
> - Original Message -
> From:
I would second the use of JMeter. I have used it pretty extensively and it
is reasonably good. I wish I could record using it as a proxy and play back
the recording. Anyone know if this is possible? How about with another
tool?
Tim
> -Original Message-
> From: Andrés González [mailto:
> -Original Message-
> From: Matt Jibson [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 14, 2006 12:15 PM
> To: users@tomcat.apache.org
> Subject: JSP declarations persisting over page loads
>
> Using Tomcat 5.5.17 and a HTML of:
>
> <%! boolean processed = false; %>
> <%=processed%>
>
One solution which is often mentioned to this question is to return a URL to
a servlet which knows how to generate the .jpg image as its response. Set
the context type appropriately, and write the JPEG bytes to the output
stream.
Tim
> -Original Message-
> From: Mohsen Saboorian [mailto:
> -Original Message-
> From: Vinod Devarajan [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 03, 2006 9:46 AM
> To: Tomcat Users List
> Subject: Re: Query regarding tomcat cluster
>
> Yes. I changed all the post numbers. I used the next different for the
> second instance.
> So should
It means only one of the two tomcats has a context named /edac. You need to
either deploy the edac.war on the 2nd tomcat, or use the farm deployer
feature of the cluster.
Tim
> -Original Message-
> From: Ralf Schneider [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 01, 2006 6:29 PM
Are you getting the connection anew after restarting the server? It looks
like you have this case:
T0 Connection x = Datasource.getConnection()
T1 Do some stuff
T2 Shutdown / restart MySQL
T3 x.prepareStatement() or other stuff
... FAIL
The connection pool will only renew the
July 17, 2006 10:03 PM
> To: Tomcat Users List
> Cc: Tim Lucia
> Subject: Re: Tomcat 5.5/Axis 1.4
> java.lang.reflect.InvocationTargetException
>
>Thanks for the reply Tim,
>
> Here is the stack trace, it does not look to me like it gives enough
> information. Of
Please post a full stack trace. TargetInvocationException should have an
underlying cause associated with it, like NullPointerException or
ClassNotFoundException.
Tim
> -Original Message-
> From: Luis Rivera [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 17, 2006 8:57 PM
> To: users@tom
> -Original Message-
> From: David Smith [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 17, 2006 10:36 AM
> To: Tomcat Users List
> Subject: Re: Tomcat on a server
>
> Yes, but Tomcat also pools threads and keeps them around between
> requests, recycling as necessary. The servlet's
I didn't see anyone else point this out (maybe they did and I missed it) but
you want to use JK now, not JK2 (it's deprecated, unsupported, ...)
Tim
> -Original Message-
> From: Madhur K Tanwani [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 14, 2006 1:15 AM
> To: Tomcat Users List
> Subj
Tomcat Users List
> Subject: Re: Getting the date/time from the client
>
> A good devil's advocate question, or was it rhetorical?
>
> Either way it's got exactly the answer you'd expect, you'll set the date
> to whatever Locale the Request returns. Obviously.
&g
Is that really appropriate?? What if I have my Locale set to France, and my
clock set to Pacific Standard Time? Then what? (assume I am on the east
coast of the USA...)
Tim
> -Original Message-
> From: Vinu Varghese [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 11, 2006 8:05 AM
> To:
> -Original Message-
> From: Seetha Rao [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 10, 2006 7:09 AM
> To: users@tomcat.apache.org
> Subject: Interrupted system call and Tomcat dies
>
> Hi,
>
> I have 2 webapps, one of them is file upload/download application. Both
> apps
> use singl
I just used the online docs (marginally) and the comments in server.xml --
no problems at all (well, except for a few bugs which have now been fixed,
and are waiting for 5.5.18)
Tim
-Original Message-
From: Sean O'Reilly [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 05, 2006 9:17 AM
T
While it is useful and important to understand the theoretical differences,
you should try all three methods and pick the one which performs the best
for your application under the expected load. I used JMeter to test our
application and settled on T[raffic] as that gets the most requests done in
est,
> HttpServletResponse response) throws ServletException,
> IOException {
> this.doPost(request, response);
> }
>
> }
>
> -END OF FILE---
>
> Am I doing something wrong? Thanks for your help!
>
> Andrea
>
> 2006/6/26,
One way is to send back a reference to a servlet that knows how to retrieve
the image. I.e., in your .jsp, say:
Where 1234 is the primary key (ID) field of the avatar in the DB. Have the
servlet set the response type to image/jpeg or image/png or whatever is
appropriate, and then stream the by
I use the following in ${CATALINA_HOME}/conf/setenv.sh:
#!/bin/sh
if [ "$1" = "start" ] ; then
CATALINA_OPTS="$CATALINA_OPTS \
-Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port=9086 \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.manage
xyzzy.jsp:
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
web.xml:
/tags/struts-bean
/WEB-INF/struts-bean.tld
Then place the actual tld file where the element says it
should be.
Tim
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thurs
This works:
8<8<8<8<8<8<8< web.xml 8<8<8<8<8<
http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
version="2.4">
404
/404.jsp
Struts comes with one.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 13, 2006 5:17 PM
To: users@tomcat.apache.org; [EMAIL PROTECTED]
Subject: where is the best place to secure a working tutorial for a web
application with struts and tomcat? I am
Without seeing actual code, we can only guess.
Have you made two consecutive calls to invalidate() [on the same thread] and
not received the documented exception?
Are you getting a different session id from getId()?
I am guessing you are making a second request, which creates a brand new
sessio
1 - 100 of 306 matches
Mail list logo