Mikolaj Rydzewski wrote:
Seth Ladd wrote:
The frequency is so much that the uptime of all of our applications is
affected as we continually take down Tomcat servers in production to
deploy a new application (or new version of the application). Because
hot deploy does not work (the old
Allistair Crossley wrote:
we used to just schedule updates and let all our staff know there would be a
small amount of downtime (for our intranet) but you can't do this on external
production servers, so you need to go with either load balancing/clustering
that allows you to close a node down
Asad Habib wrote:
.NET and PHP may have better development/deployment environments, but
quite frankly I would rather use Java than C# or PHP to develop web
applications. Just look at the robust Java open-source frameworks that
exist (i.e. Spring, Turbine, Struts, JSF) just to name a few. Also,
Hello,
We are finding outselves hosting more and more individual webapps, all
running on Tomcat 5.5.9 w/ JDK 1.5. Each of these webapps is developed
and deployed on a separate schedule, and the number and frequency of app
deployments is increasing.
The frequency is so much that the uptime
Dave Morrow wrote:
Thanks Seth. I have been reading the documentation on it and it looks
like it will give me what I am seeking.
One question though, to save time, you wouldn't happen to know where I
might find a list of OID's which I could point MRTG at?
Just search for JVM MIB on google,
Paul Wallace wrote:
Hi All,
I would like server A (TC 5.5) to 'push' streams of data to server B
(TC 5.5) at random points in time, and for server B to accept the data when
it is received. This is not using request / response, hence I am new to this
topic. A couple of questions - what
Paul Wallace wrote:
Hi Seth,
Thanks. And must I open a socket on the client (server B)? Do I
attach a listener to it?
Forget sockets, we're at a higher level w/ HTTP and URLs. Use the JDK's
URLConnection classes (for starters) to open a URL connection. Create a
Servlet on Server B
Paul Wallace wrote:
Thanks,
I have most of that in place already. Currently, server A has a
HttpURLConnection open and is talking to the Servlet. I can receive data
presumably from an InputStream. How do I write data to the Servlet using the
connection I have open?
Use the
Dave Morrow wrote:
Does anyone know how to use SNMP tools to monitor a Tomcat server? Are
there any open source tools to assist or add this ability?
With JDK 5 you can enable the builtin SNMP agent. This can export all
the standard JMX attributes of the VM. I don't think there's a way to
Gabriel Belingueres wrote:
Hi,
In my JSP pages I put the following tags to avoid the browser cache the pages.
head
meta http-equiv=Expires content=0 /
meta http-equiv=Pragma content=no-cache /
meta http-equiv=Cache-Control content=no-cache /
I wouldn't trust this way. I would always use the
Mark Thomas wrote:
Seth Ladd wrote:
I am not able to lookup the default simpleValue environment variable
form JNDI with a simple JSP file. Is there anything else I have to do
to move an Environment variable, from GlobalNamingResources, into the
scope of a webapp?
Any advice on how
Hello,
I have a stock Tomcat 5.5.9 with JDK 1.5. This is a fresh install,
nothing has changed.
I am not able to lookup the default simpleValue environment variable
form JNDI with a simple JSP file. Is there anything else I have to do
to move an Environment variable, from
Hello,
I've setup a ObjectFactory for Tomcat's JNDI and Resource system. I'd
like that that ObjectFactory to respond to the Tomcat Server shutting
down. It appears that a new ObjectFactory is created for every request
for the Object, so ObjectFactory itself is not a singleton. That's OK
for
Shapira, Yoav wrote:
Hi,
Why go through all this? The point of the JNDI Resources part of the
Servlet Specification is to allow portable interaction with external
resources. Your approach loses all the portability (it's
Tomcat-specific) without gaining much of anything. You could do the
same
Shapira, Yoav wrote:
Hi,
So while we could put all the classes into common/lib and use a
singleton pattern, I wouldn't have a way to cleanly shut down the
service on app server shutdown (I could be wrong here).
You could use a JVM shutdown hook. At least that's portable and not
Tomcat-specific.
Shapira, Yoav wrote:
Hi,
The comp:env JNDI context is read-only for webapps.
Thanks for the reply! Any chance webapps will be able to bind objects
into global JNDI in the future? I've been using Tomcat 5.0.x.
Otherwise, any recommendations for sharing objects across webapps that
can't be
That's why we give you a shared classloader repository:
$CATALINA_HOME/shared/classes and shared/lib, as explained in the
classloader how-to. Things in there are visible to all webapps. You
can further enforce patterns like a Singleton so that only one instance
of a class exist and is shared
Vy Ho wrote:
With SP2 of Windows XP, the computer previously can't handle 50 threads
can handle 200 threads now. More than that, I got connection refused
error.
I've had terrible performance on SP2 (my development box). Unless this
is your deployment environment, don't trust or worry about
Norris Shelton wrote:
We have the manager app for each of our contexts set-up to use
the DB to authenticate users. Unfortunately, it is using TONS
of connections. Over an 8 min period, it used 1200 connections.
We have 2 boxes, each with 16 contexts with their own manager
context. Here is what
Hello,
Is it possible to bind objects into global JNDI from within web
application code? For instance, I'd like to bind some objects into
global JNDI from one webapp so that other webapps will see them.
Any tips or tricks would be greatly appreciated!
Thanks very much!
Seth
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello,
I'm having a difficult time running Tomcat managed error-pages through a
filter. I'm hoping someone might be able to lend a tip. I've been
reassured that this is not a bug, so it gives me hope this is possible. :)
from web.xml:
filter-mapping
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Jerald Powel wrote:
| Hi all,
|
| I am experiencing problems with memory management. I load up my
app in 10 or 15 browsers where various stuff is put on a session each
time. In Windows Task Manager I can see java.exe incrementing by an
amount of
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello,
I've been precompiling my JSPs w/ ant, and I would like to include the
web.xml snippet that results from the ant task into my web.xml.
All of the examples of using a DOCTYPE ENTITY I've see are for servlet
spec 2.3, which uses a DTD.
Is there a
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Shapira, Yoav wrote:
| Howdy,
|
|
|Wow, OK, thanks for the great insight. In other words, it's safe to
|assume to always restart Tomcat when deploying webapps. That, of
|course, is less than ideal. For testing, that just makes the
|development time
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello,
We are running Tomcat 5.0.18 w/ jdk 1.4.2 on Linux. We deploy our wars
with the catalina deployer and ant. We automate our builds and
deployments for every 30 minutes. So, every half an hour we build and
deploy our war to tomcat.
This
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
|
| Out of curiosity, why every half hour?
Seemed like a good round number. No real reason, we just wanted things
current. :)
|
| So there's a memory leak somewhere.
Yes, no doubt. I'm trying to discover if it's my app (very well could
be) or Tomcat.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Philipp Taprogge wrote:
| 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
|
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
| There are some problems with certain webapps (Struts based webapps in
| particular).
| http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26135
|
| More generally, there's no way to force the VM to discard a classloader,
| so I think it is unwise to
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Keshav Sarin wrote:
| Does anyone know how to start tomcat 5 using ant target?
I do this:
~ target name=server.start depends=init
~ exec dir=${tool.tomcat}
executable=${basedir}/${tool.tomcat}/bin/startup.sh
~
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ro, Jean S wrote:
| Hi,
|
| I use the following url:
|
| http://mydomainname.com:8081/mywebapp/
|
| But I don't want the user to see the port information so I want to
remove it
| from url:
|
| http://mydomainname.com/mywebapp/
|
| How do I do that?
You
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello,
I'm not sure what's really the issue here, and hopefully someone can
help explain this. I'm using Tomcat 5.0.16, Suse9, and Sun's JDK 1.4.2.
~ I'm using Ant 1.5.4 and the JSPC tasks from Tomcat.
I originally had a single JSP 2.0 file that had
Tim Funk wrote:
You won't be able to get the servlet reference. A possibility is to
define the filter multiple times with different parameters. For example,
here is the same class name defined 4 times as 4 different filters.
Good idea. Thanks for the helpful response. Since I can't get a
Hello,
I don't think this is possible, but I'm giving it a shot anyway. :)
I'd like to get ahold of a servlet reference from within a filter. Is
there a way?
I have a filter that creates objects and places them within the request
scope, but it does it differently for each end-result servlet.
PROTECTED]
To: Seth Ladd [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
References: [EMAIL PROTECTED]
Seth,
I believe that Sitemesh runs fine under Tomcat 4, but it hasn't been
tested yet on Tomcat 5.
From the stack trace, it looks like a Tomcat 5 bug - you should always
be able to get a writer from
34 matches
Mail list logo