The main point to keep in mind is that Tomcat only implements the Servlet and
JSP specifications from JEE, and thus is a Servlet container and is not an EE
container. Very important part of the puzzle to keep in mind, so moving from TC
to one of the others should be very easy unless of course
See Servlet.getServletConfig() and ServletConfig.getServletContext().
Wade
- Original Message
From: Johnny Kewl [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, November 5, 2007 6:16:17 AM
Subject: Re: running! a servlet at tomcat startup
OK, now I'm
Yes, and in the listener I would then utilize some kind of other web client to
actually perform a first request. You can use something like HttpClient or one
of the command line text browsers and Runtime.exec. It would probably be easier
than trying to simulate with some other means, but I may
On that note you can get NetBeans and its profiler and then profile your code.
http://www.netbeans.org
It will tell you different things about time spent.
Wade
- Original Message
From: Leon Rosenberg [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday,
- Original Message
From: Arend P. van der Veen [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, September 17, 2007 7:43:36 AM
Subject: Re: PHP Security Vulnerability???
Wade Chandler wrote:
--- Arend P. van der Veen [EMAIL PROTECTED] wrote:
...
Hi
You can load a native library directly using System.load instead of
System.loadLibrary. All you
have to do is figure out where the library is and be able to pass a full path
to it. You can use
the servlet API to get to your WEB-INF folder and get a full path to it. It is
pretty trivial from
Does it give you any paths to this PHP application? I haven't seen anything
like it from scanners
on my server.
Wade
--- Arend P. van der Veen [EMAIL PROTECTED] wrote:
Hi,
I recently setup a server using Tomcat 5.5 on FreeBSD 6.2. I thought I
had everything locked down.
I run a
=43343
Wade
--- Christopher Schultz [EMAIL PROTECTED]
wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Wade,
Wade Chandler wrote:
Do you want to file a bug or do you want me to?
I'm
looking at the Tomcat 6.0.9 source code.
Even if nobody decides to do anything, please PLEASE
log
Well, I have a couple of web applications which suck
up a thread for such things as well. I do it so that I
can schedule processes through this single application
and the end people do not need anything else, and also
because if they had to admin their own servers in
these instances it would just
You got my attention, so I was curious.
Looking at file:
java/org/apache/catalina/session/PersistentManagerBase.java
methods:
swapIn
swapOut
writeSession
findSession
(other related)
then the different stores load and save methods it
doesn't look good.
Basically, yes, you have an issue with
Tomcat wraps HttpSession objects underlying maps using
java.util.Collections.synchronizedMap. There was a
previous issue in a version of Tomcat 5.0.x something
in which this was changed, and it raised a stink, so
it was fixed again. It had to be put back to use
synchronized as the concurrency
and the session one way or another at some
point...that or make your own session, so I don't
think with the current specifications it would be
possible for a server to be reliable for any real
usage if it did not handle the concurrency issues
itself at the lowest possible levels.
Wade
--- Wade Chandler
--- Leon Rosenberg [EMAIL PROTECTED]
wrote:
On 9/7/07, lightbulb432 [EMAIL PROTECTED]
wrote:
I'm reading some book concurrency books that talk
about potential thread
safety issues with HttpSession. Specific cases
follow:
- When the web container passivates an HttpSession
while a
Worked for me too. I read up on it, and it sounded
interesting. I'm looking forward to trying it out and
bookmarked it.
Wade
--- Steve Ochani [EMAIL PROTECTED] wrote:
The link to your site times out.
Works fine for me
http://coolharbor.100free.com/index.htm
On 8/19/07, Johnny
Exactly.
Wade
--- Hassan Schroeder [EMAIL PROTECTED]
wrote:
On 8/2/07, Vigorito, Nicholas E.
[EMAIL PROTECTED] wrote:
Here are some quotes from this person:
You are trusting that someone built the binaries
directly from the
source code without any additional modification or
My first question would be:
Do you examine every line of code in these sources you
compile?
Then:
If not, if you get the same sources and binaries from
the same location, what is the difference?
Most admins i know, who get sources and build them, do
not know all the ins and outs of the
heh heh,
from my experience with system admins, I will be
willing to bet the answer is no, unless he is telling
a big one ;-)
Wade
--- Steve Ochani [EMAIL PROTECTED] wrote:
LOL,
I would ask him if he sits there and examines all
the code of everything that
is on his system.
On 2
From a JSP page try to make a MYSQL connection using
just pure JDBC calls. It may be something to do with
your JDBC classes and the directory your JAR files are
housed. If I remember correctly I had to put my MYSQL
JAR file in the shared folder so the server could
access them. This versus having
and I can extract a
single class file.)
~Warren Halstead
-Original Message-
From: Wade Chandler
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 18, 2006 7:23
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: CGI vs SMTP vs Tomcat
The JVM security policy couldn't just
The JVM security policy couldn't just block TCP/IP
access for the Perl process. The reason being the
child process...perl in this case will not be run in
the JVM like a class which will make calls inside the
JVM space...a.k.a the JVM can't say...you are not
allow to make the call to make the
Hmm. Which user is Tomcat being run as? Are you
running Tomcat as the same user as your are running
the script? Wondering if maybe there is not some type
of a port blocker installed on your system outside of
the servers. Maybe when you ran your script or one
previously maybe quite some time
--- HALSTEAD SGT WARREN F [EMAIL PROTECTED]
wrote:
Good Afternoon,
I am running Tomcat 5 with CGI enabled. I am
attempting to use
Net::SMTP to send e-mail, and it works fine from the
command line, but
not running as a CGI script. I have scoured the
internet and found other
people
--- Alessandro Ilardo
[EMAIL PROTECTED] wrote:
back to my problem: I discovered that the kindly
network administrator
had configured two tomcat instances, one working
with apache connector
for the normal http request and the other on a
different port for the
ssl. Both instances get the
--- David Rees [EMAIL PROTECTED] wrote:
I doubt that switching to
Linux from
Windows will solve your performance problem. Have
you identified what
your performance bottleneck is now?
-Dave
Yes I would have to second that. I love Linux, but
not knowing where the real issue with your
We used AIX on a project and really didn't like the
experience. We had different issues. Some of them
are nothing more than management is not as good and
even command line editing and running
commandsLinux is just more user friendly maybe is
the way I would put it. I feel the same way
--- Avi Deitcher [EMAIL PROTECTED] wrote:
To add to it: I kept two webapps running and had
them
System.out.println(logger), where each is in the
same category/class, to
check that each one is running its own; it is. I
then removed every
webapp I could and ran it again with just the simple
--- Darryl Miles [EMAIL PROTECTED]
wrote:
Bachler, Elisabeth (Elisabeth) wrote:
Thank you to everyone. I will investigate further.
Elisabeth
Maybe this thread is related (excuse the horid
apache web interface) :
http://mail-archives.apache.org/mod_mbox/tomcat-users/200604.mbox/[EMAIL
--- Guido Schoepp [EMAIL PROTECTED] wrote:
Bachler, Elisabeth (Elisabeth) schrieb:
I have an application that uses tomcat 5.0.19. At
one point in my
application, the user has the possibility to click
on a certain link in
order to download a file.
Once the file is downloaded, I would
--- Andi Heusser [EMAIL PROTECTED] wrote:
Hi,
I have a web application where I need to load some
3rd party libraries DLLs)
and I would like to have these DLLs in a
subdirectory in my app
(webapps/MyApp/WEB-INF/lib). However when I try to
do a 'loadLibrary' it
fails to find them. I
--- Ga�l Lams [EMAIL PROTECTED] wrote:
Hi,
I wondering if it's really so good to use Tomcat
behind a real web
server like Apache or IIS.
In my Tomcat 5 book there are two reasons to do it
so:
1. Tomcat is not as secure as common web servers,
especially if you
want
--- Vijaya [EMAIL PROTECTED] wrote:
Hi,
I downloaded NetBeans 5,0 and tomcat 5.5.16. I want
to connect to a
remote SQL Server. I am using jtds. I am not
successful in using both
NB50 and Tomcat 5.5.16 together. NB5.0 comes with
bundled tomcat 5.5.9
and if I use this, I get a '404
--- Rizwan Merchant [EMAIL PROTECTED]
wrote:
We are running tomcat 5.5.16 on Fedora Core 4 OS. We
just installed
apache2.0 as a front to serve the pages using the
mod_jk connector.
There are 2 apps on tomcat (virtual hosting), one of
which needs to be
SSL enabled (lets say app1 and
--- vrinda ullas [EMAIL PROTECTED] wrote:
hi rajjev,
i am using communication api version 2.
i am trying to control a relay through serial port.I
first built ajava
application to do the same. It works fine.But on
trying to convet the
same into a web based application i don,t get any
--- Bruno Georges [EMAIL PROTECTED] wrote:
Hi Lessie
Bugzilla is not a Java based Web App, it is build
Perl/CGI, therefore you
need a web server which can parse these requests,
map and execute them.
Recently JBoss announced JBoss Web which allows you
to do exactly that
along with
--- Rocio Alfonso Pita [EMAIL PROTECTED] wrote:
El Jueves 25 Mayo 2006 18:51, Petkov, Rossen
escribi�:
The request.registerRequests=false setting goes
in the workers.properties
file. I already have that an it's not helping with
the memory leak. I plan
to upgrade Tomcat to 5.0.28 and
--- Petkov, Rossen [EMAIL PROTECTED] wrote:
Hello,
I am having a problem with Tomcat 5.0.19 on
windows with JDK
1.4.2_03.The memory that java.exe is using keeps
growing till the point
that tomcat
Runs out of memory.
Using a profiler, doesn't seem to help me much.
I can see the
--- Eric Anderson [EMAIL PROTECTED] wrote:
When I re-deploy my war file in Tomcat 5.5.16, it
fails because the
listener can't start. And when I look at the context
directory contents
all the folders are there but not the files. Anyone
know why?
Eric
I have never had any luck with
--- Peter Crowther [EMAIL PROTECTED]
wrote:
From: Dong, Roland [mailto:[EMAIL PROTECTED]
That is not an option. Thanks. I am wondering if
that can be
configured
in catalina.policy? Played with it but can't make
it work.
Not to my knowledge.
What you *could* do is the
Martin,
I'm pretty sure you want this documentation:
http://www.hibernate.org/hib_docs/v3/reference/en/html/session-configuration.html#configuration-hibernatejdbc
and the mailing list and forums can be subscribed to
here:
http://www.hibernate.org/20.html
Hope it helps,
Wade
--- Mohan2005 [EMAIL PROTECTED] wrote:
Thank you all kindly for these valuable comments and
suggestions. I have
notices somethings we have obvious problems and need
to be addressed.
We are running this 10g on a hardware RAID-5 array
(SCSI).
The 10g is at the backend of 12 tomcat
--- Martin Gainty [EMAIL PROTECTED] wrote:
I have a quick question with hibernate hsqldb
drivers
[java] 11:58:23,125 INFO SchemaExport:177 -
exporting generated schema to
database
[java] 11:58:23,125 ERROR SchemaExport:200 -
schema export unsuccessful
[java]
--- Wade Chandler [EMAIL PROTECTED]
wrote:
--- Martin Gainty [EMAIL PROTECTED] wrote:
I have a quick question with hibernate hsqldb
drivers
[java] 11:58:23,125 INFO SchemaExport:177 -
exporting generated schema to
database
[java] 11:58:23,125 ERROR SchemaExport:200
--- Richard Mixon [EMAIL PROTECTED] wrote:
Dola,
For the last couple of years I have used the Sysdeo
plugin with good
success.
But since December the all-in-one bundle of Eclipse
with the Eclipse Web
Tools Project has been available. This is a
completely integrated build that
does
--- Tomasz Nowak [EMAIL PROTECTED] wrote:
Peter Lin [EMAIL PROTECTED] wrote:
look at the dump, it looks like the permgen ran
out of space
PSPermGen total 50304K, used 50170K
[0x445f, 0x4771,
0x545f)
object space 50304K, 99% used
--- Klotz Jr, Dennis [EMAIL PROTECTED] wrote:
Greetings to all.
I hope everyone had a great weekend. :) I've run
into a problem that I
can't find any answers for and I am hopeful that one
of you has the time
to respond.
Given:
* Tomcat 5.5.15
* Applet using jvm 1.5
* An applet that
Monitoring the HTTP headers for both IE and
Firefox using
HttpAnalyzer for
IE and LiveHttpHeaders for Firefox gives the
following:
1) IE
(Request-Line):GET http://www.tophotelchoices.com/
HTTP/1.1
Accept:*/*
Accept-Language:en-gb
Accept-Encoding:gzip, deflate
-Original Message-
From: Abhilash Kumar
[mailto:[EMAIL PROTECTED]
Sent: Monday, February 13, 2006 9:45 PM
To: Tomcat Users List
Subject: RE: No of concurrent requests per session
Hello:
Thanking everyone for words of wisdom ..
I checked with firefox 1.0.7 also.
--- Lothar Krenzien [EMAIL PROTECTED] wrote:
Hi,
I'm not sure whether it is possible or not:
I have a webapp which I want to access under
different URL's with different JSP's but the same
java classes. I know that I can define the context
URL in the context.xml But how to define which
--- Anna Krajewska [EMAIL PROTECTED] wrote:
Hi
I wonder is it possible with apache tomcat to
install two web-services (axis) one on port 8080
(and only 8080) and another on 8443 (and only that)?
I have opened both porsts. Now when I install
web-service it's available on both ports - how
--- Leon Rosenberg [EMAIL PROTECTED]
wrote:
On 1/30/06, Tim Lucia [EMAIL PROTECTED] wrote:
Hibernate is not J2EE based. It just so happens
it provides a EJB-free
solution to a servlet container environment.
Hibernate does not require
J2EE.
I think hibernate supports JTA and JDBC?
--- David Tonhofer, m-plify S.A.
[EMAIL PROTECTED] wrote:
Another 2c: When doing Java, you may want to stay
clear of J2EE. I have
heard it's the Wooly Mammoth framework and I have so
far worked happily
without it. I recommend a look at Bruce Tate's
pamphlet here:
For a little bit of who really cares and what's it
really matter anyways:
http://weblogs.java.net/blog/haroldcarr/archive/2006/01/introducing_jav.html
;-)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
--- Tony LaPaso [EMAIL PROTECTED] wrote:
Certainly -- $5,000 and it's yours!
--
Tony LaPaso
- Original Message -
From: Leon Rosenberg
[EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, January 25, 2006 4:00 AM
Subject: Re: From Java to C#,
--- Davide Romanini [EMAIL PROTECTED] wrote:
Il giorno mer, 25/01/2006 alle 15.34 +, Mike
Fowler ha scritto:
Good day,
I have encountered a similar problem while
deploying webapps. In my case
I noticed that after the sixth deployment I would
encounter
OutOfMemoryError when I
--- HuangHao [EMAIL PROTECTED] wrote:
Thanks. As a requirement, my application need to
support both Tomcat 5.0
and 5.5. But my application requires JDK1.5 for some
reason.
Should be fine if it's only that you are using methods
and classes from JDK1.5 which were not available in
previous
--- HuangHao [EMAIL PROTECTED] wrote:
Hi folks,
I am going to run Tomcat 5.0.* with JDK 1.5, I
wonder whether Tomcat 5
officially support JDK1.5 yet. I found in Apache
site
http://tomcat.apache.org/tomcat-5.0-doc/appdev/installation.html
that Tomcat 5 has been extensively tested with
--- Thom Hehl [EMAIL PROTECTED] wrote:
OK, I'm using tomcat and a sevlet to launch a
background process in a
separate thread. It seems to launch just fine, but
after it runs for
maybe 30 seconds it dies, spitting out this error:
java.net.SocketException: Connection reset
at
--- Thom Hehl [EMAIL PROTECTED] wrote:
Sigh, I don't know why I keep having problems like
this. I have the
following servlet:
package rex;
/*
* Copyright 2006, Heavyweight Software. All rights
reserved.
*/
import java.io.IOException;
import javax.servlet.ServletException;
--- Ritchie Gillam [EMAIL PROTECTED] wrote:
I am trying to have all requests that come to the
Tomcat Server be redirected to another web server.
What is the best/easiest was to do this?
I have Tomcat 5.5.7 installed and I do not have or
want to install Apache.
I have did a search
--- Duan, Nick [EMAIL PROTECTED] wrote:
Well, when I was mentioning the term user session, I
was discussing from
a threading/transaction perspective, not from the
servlet object
perspective. It is the worker thread that
represents a active user
session and accesses both the session and
--- Wade Chandler [EMAIL PROTECTED]
wrote:
--- Duan, Nick [EMAIL PROTECTED] wrote:
Well, when I was mentioning the term user session,
I
was discussing from
a threading/transaction perspective, not from the
servlet object
perspective. It is the worker thread that
represents
--- Christian Stalp [EMAIL PROTECTED] wrote:
Remy Maucherat wrote:
It's deprecated because it is confusing, but it is
actually very
useful performance wise in some cases, since it
does pooling. I will
make sure this feature remains available in the
future.
That means, I still
--- Bob Hartung [EMAIL PROTECTED] wrote:
Hi all and Happy New Year
I have FC4 updated on a test server and I am new
to java, Tomcat,
etc. I was trying to install a MIRC Servr (freeware
teaching and
research case file manager from the Radiological
Society of North
America) that
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf
Of Bill Barker
Sent: Thursday, December 29, 2005 2:09 AM
To: users@tomcat.apache.org
Subject: Re: mod_jk versus mod_proxy under load ?
One of our production servers recently started to
suffer from very
--- Franklin Phan [EMAIL PROTECTED]
wrote:
I'm running Tomcat on Windows XP Pro. I'm trying to
set up PHP. How do I tell which Apache version I'm
running?
-
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional
--- Franklin Phan [EMAIL PROTECTED]
wrote:
Oh. Probably not. Do I need to install Apache to
run PHP?
Charles Baker wrote:
You may not be running apache. Installing tomcat
does not install
apache. Did you install apache?
Charles H. Baker
O: 864.422.5349 C: 864.201.8456
--- Martin Gainty [EMAIL PROTECTED] wrote:
Good Afternoon Franklin-
Running PHP on Apache would be like putting a Yugo
engine in a McLaren
..ok if your users demand sluggish performance from
their webapp server
Martin-
- Original Message -
From: Franklin Phan [EMAIL PROTECTED]
--- Khawaja Shams [EMAIL PROTECTED] wrote:
Hello all,
I am curious if anyone has ever had to write a
servlet that listens for
new files on the server and processes them upon
appearence. Basically, I
need to write a server side program that detects
when (our automated
process)
--- Daniel Blumenthal [EMAIL PROTECTED] wrote:
A related question to this is, how can you set up a
process within the
servlet that fires off at X time, or every Y
seconds? The equivalent of a
cron job inside the servlet.
If you have high enough traffic, there's an easy
hack - just store
--- David Delbecq [EMAIL PROTECTED] wrote:
100% mails would get don't know answer then,
because at there is always someone who don't know.
Commonly on mailing lists, if nobody answer, then
nobody has knowledege and/or time to answer your
question.
Regards,
Le Vendredi 16 Décembre 2005
--- Guillermo Sobrino [EMAIL PROTECTED] wrote:
I am using no context.xml so I do not set any
parameter, including antiResourceLocking.
Thanks anyway.
Guillermo
-Mensaje original-
De: Jan Behrens [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 12 de
--- Bill Barker [EMAIL PROTECTED] wrote:
Urm, something like:
tomcat.stop();
where 'tomcat' is your Embedded instance?
Oleg Lebedev [EMAIL PROTECTED] wrote in
message
news:[EMAIL PROTECTED]
Hello,
I am trying to configure, start and then shutdown
Tomcat from my Java
class. I
--- Cristian [EMAIL PROTECTED] wrote:
- Original Message -
From: Duan, Nick [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, November 28, 2005 7:30 PM
Subject: RE: heap size problems (speed) [2]
Were you using the right JVM? There were two JDK
--- Cristian [EMAIL PROTECTED] wrote:
I don't think your CPU L caches are going to
influence
the issues you are seeing...not noticeably..not
with
todays hardware. Cristian is resizing the java
heap
to allow it to get larger than it was able before
(default or the Tomcat default
--- rueh hänä [EMAIL PROTECTED] wrote:
Hi.
I used de_DE, too, same effect.. I dont know, whats
happening. The best
setting until now was UTF-8, because at least the
html-sites were displayed
correctly. The old server uses de_DE, too, and the
configs are set to
iso-8859-15. Now i set
75 matches
Mail list logo