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, .N
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
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
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 o
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, y
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
e
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 connection.ge
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 t
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 pro
Gabriel Belingueres wrote:
Hi,
In my JSP pages I put the following tags to avoid the browser cache the pages.
I wouldn't trust this way. I would always use the below method for
manipulating any cache control or general HTTP headers.
<%
response.setHeader("Cache-Control","no-store");
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 to
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 GlobalNamingResour
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,
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 stu
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
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
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 SP2
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 amo
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 setup
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:
sitemes
-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
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 me
-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 ti
-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 re
-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
|
| 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
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 process
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Keshav Sarin wrote:
| Does anyone know how to start tomcat 5 using ant target?
I do this:
~
~
~
~
~
~
~
~
YMMV, but it seems to work really well.
Seth
-BEGIN PGP SIGN
-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 t
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
refer
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.
Scott Farquhar <[EMAIL 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
34 matches
Mail list logo