Hi,
I am using tomcat 5.5.15 to host 2 applications (2 contexts). I am
trying to figure out how to monitor the application statistics using the
tomcat manager.
I noticed that when I restart the tomcat server the "Active Sessions"
count for one of the applications remains the same as it was b
> From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
> Subject: RE: subdirectories of WEB-INF/lib
>
> > Is it possible to place .jar files in subdirectories of
> WEB-INF/lib?
>
> Yes.
Sorry, that's an incomplete answer. Any jars not directly in
WEB-INF/lib would have to be handled by a cu
> From: Micah Wedemeyer [mailto:[EMAIL PROTECTED]
> Subject: subdirectories of WEB-INF/lib
>
> Is it possible to place .jar files in subdirectories of WEB-INF/lib?
Yes.
> Honestly, I have searched for this information quite a bit and found
> nothing.
You could try looking at the spec - it's
On 10/11/06, Micah Wedemeyer <[EMAIL PROTECTED]> wrote:
Is it possible to place .jar files in subdirectories of WEB-INF/lib?
I'd like to organize my .jar files a little because there are quite a
few. I tried making a META-INF/MANIFEST.MF file and monkeying around
with the classpath, but it didn'
Is it possible to place .jar files in subdirectories of WEB-INF/lib?
I'd like to organize my .jar files a little because there are quite a
few. I tried making a META-INF/MANIFEST.MF file and monkeying around
with the classpath, but it didn't seem to work. Has this approach
worked for anyone
Hello,
I have a question using native JNI shared objects within a servlet running
under Tomcat 5.5. Our servlet code depends on some shared .dll files (for
windows, and .so files for Linux). so we have classes that have code such as:
public class Abc {
public native static boolean nativeF
I am trying to get Tomcat to connect to a MS SQL2000 Named instance
rather than the default instance.
Using the following it connects to the database TWO on the default
server KEYSTONE with no problems.
jdbc:sqlserver://KEYSTONE;databaseName=TWO
When I try to access the MS SQL2000 named instanc
Riz,
> here is the thread dump from when the app hung.
> Any insights?
Well, a quick run-through of the thread dump suggests that your DBCP was
definitely stalled for some reason.
I counted about 70 idle threads, about 30 threads waiting on database
connections, and maybe 15 doing other things (
Gregor,
I believe you've got it backwards. The correct syntax for Tomcat 5.5 is your
"working context.xml".
See:
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
-Original Message-
From: Gregor Schneider [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 11, 200
I am using JspC to precompile a large number of JSPs (1000ish). I want to
take advantage of the servlet-mapping generation/merge into web.xml that is
available using the syntax; however, I have been unsuccessful in my efforts to
fork a new JVM (since there is apparently no exposed command-line ar
thanks! i think that was it.
Kim :-)
On 10/11/06, Gregor Schneider <[EMAIL PROTECTED]> wrote:
Hi Kim,
You can specify session-timeout either in the deplyment-descriptor of your
web-app (web.xml) or in the web.xml of Tomcat itself, which is located at
tomcat/conf/web.xml
I bet my bottom penn
Hi Kim,
You can specify session-timeout either in the deplyment-descriptor of your
web-app (web.xml) or in the web.xml of Tomcat itself, which is located at
tomcat/conf/web.xml
I bet my bottom penny that in there you'll find an entry like
30
If you want to have the same session-tim
I will be out of the office starting 10/11/2006 and will not return until
10/16/2006.
I can not check emails while away and will respond to your message when I
return.
**Confidentiality Notice**
The information contained in this transmission contains confidential
information. The informati
Hello -- I set the web.xml to specify a 45 minute time out... but sessions
are still timing out at 30 minutes...
We are using tomcat 5.0.30, and have tomcat clustering between two servers.
The entry that I placed in the web.xml file is:
45
Does anyone see anything else that nee
Hi list,
a simple question, where I hope somebody could shed some light upon my head:
I've specified [webapp]/META-INF/context.xml, where I defined the
connection-pool and the datasource that should be used.
However, when I'm using the old format of the element "Resource", everything
runs smoo
very bad practice to return a blank page, or worse no response at all.
your 404 shouldn't contain information that is 'best kept secret' anyway.
given that you can customise the error response, you could just return a
really simple page (but bear in mind the IE error page file size
'feature'). y
Hi Shankar,
I am not using System.out commands in my webapps.
for some reason, the log4j messages are being appended to catalina.out
I have log4j set up in my application which sends logging output to a
specified file, but it also gets sent to catalina.out
How do I stop this?
also, is there a
Rizwan Merchant wrote:
So how do I stop tomcat from logging to catalina.out and into a
different file?
For the webapps themselves, their should have
swallowOutput="true".
Better still, don't do System.out.println() from your webapps..
-
Thanks for the response.
So how do I stop tomcat from logging to catalina.out and into a
different file?
Basically I want to send all tomcat output to a file that can roll on a
daily basis.
Any ideas or examples?
Thanks,
-Riz.
David Smith wrote:
Catalina.out is the redirected standard output
> From: Aynalem, Seblewengel (Trawick)
> [mailto:[EMAIL PROTECTED]
> Subject: RE: The value for the useBean class attribute... is invalid
I don't think any of the following will resolve your immediate problem,
but there are a couple of odd things in your app deployment and
configuration.
> WEB-
Martin,
Isn't dbcp connection pooling ?? I think I am missing something, I am
not clear on why you are advocating a separate pooling mechanism.
Can you elaborate on this a little ?
thanks
rick
>>> "Martin Gainty" <[EMAIL PROTECTED]> 10/11/2006 9:15 AM >>>
If you have 1000 connections then you w
Thanks a lot all of you!
I'll keep you posted.
Guillaume de Vinzelles
DSI/PFS Neuf Cegetel
Altran Technologies
[EMAIL PROTECTED]
01 70 18 21 64
-Message d'origine-
De : Martin Gainty [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 11 octobre 2006 17:16
À : Tomcat Users List
Objet : Re: J
I remebered originally my file structure was as follows:
webapps\isotrackingtest
isotrackingtest\isotracking
isotrackingtest\META-INF
isotrackingtest\WEB-INF
isotrackingtest\index.jsp
isotracking\isotracking
isotracking\index.jsp
isotracking\isotracking\*.jsp and *.html
META-INF\context.xml
Wow, thanks for all those advices, we're going to clean up our code following
your guidelines. I'll also check the Oracle driver capabilities. Hope it will
fix our problem.
Thanks again!
Guillaume de Vinzelles
DSI/PFS Neuf Cegetel
Altran Technologies
[EMAIL PROTECTED]
01 70 18 21 64
-
If you have 1000 connections then you would be well advised to use connection
pooling
more specifically you need to separate the activities of
settingup a connection from
getting the connection
you also need to separate the activities of
freeing the connection from
connection teardown
connect
Il giorno mer, 11/10/2006 alle 16.02 +0200, DE VINZELLES, Guillaume
(ext.) ha scritto:
> Hello there,
>
> We are running a Tomcat 5.5.17 on a Sun Solaris system (SunFire V240) with a
> Sun JVM 1.5, and we are facing unavoidable JDBC pool exhaustions. We are
> using an Oracle 9i database.
>
> He
Seems to be good except:
finally {
try {
if (result != null) {
result.close();
result = null;
}
if (oCmd != null) {
oCmd.close();
oCmd = null;
Hi,
I am looking for a way to globally change the error pages on
java.lang.Exception (stacktrace) and 404 because they contain
information that is best kept secret on production servers. I
realise you can do this on a per application basis with WEB-INF/
web.xml but I'm looking at this mor
Guillaume,
> For Christopher and Alberty, here is an example of how we connect to the
> database.
> I'm quite sure we are using the JDBC pool.
From your DataSource configuration, it looks like you are using the
Oracle driver directly. Does that have built-in pooling? If not, it
looks like you m
I will consider this option, thanks !
Guillaume de Vinzelles
DSI/PFS Neuf Cegetel
Altran Technologies
[EMAIL PROTECTED]
01 70 18 21 64
-Message d'origine-
De : Mikolaj Rydzewski [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 11 octobre 2006 16:46
À : Tomcat Users List
Objet : Re: JDBC P
DE VINZELLES, Guillaume (ext.) wrote:
finally {
try {
if (result != null) {
result.close();
result = null;
}
if (oCmd != null) {
oCmd.close();
oC
For Christopher and Alberty, here is an example of how we connect to the
database. I'm quite sure we are using the JDBC pool.
My next step is to try to log the Connection objects life, and I hope to find
some memory leaks!
I got to say that we were using the same application with a Tomcat 4 and a
Juan,
what you also could do is, adjusting your code as follows:
public void sessionCreated(HttpSessionEvent e){
System.out.println("sessionCreated - id = " + e.getSession().getId());
e.getSession().setAttribute("test", new String("testValue"));
}
add this line
System.o
Juan,
> public class HttpTestListener implements HttpSessionListener {
>
>public void sessionCreated(HttpSessionEvent e){
>e.getSession().setAttribute("test", new String("testValue");
>}
Okay. I assume that there's an extra ")" end the end, otherwise your
code doesn't compile. I'
Stupid questions (sorry):
- Are you sure that you are using the tomcat connection pool ?
- have you dump (by logging or by a simple system.out.println) your
connection objets to see if you are reusing the same or a new one ?
Good luck
On 10/11/06, DE VINZELLES, Guillaume (ext.)
<[EMAIL PROTECTED
Guillaume,
> type="javax.sql.DataSource"
> driverClassName="oracle.jdbc.driver.OracleDriver"
>
> The Tomcat manager shows around 1000 sessions on the server, which
> seems to be pertinent.
What is your connection allocation strategy? Meaning: do you allocate a
Connection object to each session
Guillaume-
Use Connection Pool
an excellent tutorial available at
http://www.webdevelopersjournal.com/columns/connection_pool.html
config max connnections to suit your requirement
M-
This e-mail communication and any attachments may contain confidential and
privileged information for the use of t
We've checked it two weeks ago, but we got to be sure, so we are doing it again
today (and tomorrow, I expect).
Thanks for the advice.
Guillaume de Vinzelles
DSI/PFS Neuf Cegetel
Altran Technologies
[EMAIL PROTECTED]
01 70 18 21 64
-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[
Check your code to unclosed connections (and statments) first !
On 10/11/06, DE VINZELLES, Guillaume (ext.)
<[EMAIL PROTECTED]> wrote:
Hello there,
We are running a Tomcat 5.5.17 on a Sun Solaris system (SunFire V240) with a
Sun JVM 1.5, and we are facing unavoidable JDBC pool exhaustions. We
Hello there,
We are running a Tomcat 5.5.17 on a Sun Solaris system (SunFire V240) with a
Sun JVM 1.5, and we are facing unavoidable JDBC pool exhaustions. We are using
an Oracle 9i database.
Here is the JDBC entry from our server.xml:
The Tomcat manager shows around 1000 sessions on the ser
Larry,
We tried the "shared.loader" suggestion and it seems to be working fine.
Thanks very much for the suggestion.
Fran
Larry Isaacs wrote:
>
> Since you are using Tomcat 5, check out the "shared.loader"
> property specified in the catalina.properties file of your
> Tomcat instances. Yo
I'm going to try to explain it better, if my English allows me.
I have this classe:
...
public class HttpTestListener implements HttpSessionListener {
public void sessionCreated(HttpSessionEvent e){
e.getSession().setAttribute("test", new String("testValue");
}
...
In my web.xml I
message was cutoff
which object are you attempting to recover?
Servlet?
SessionListener?
Session?
SessionAttribute?
also you will not set any object in Session thru getAttribute as this is an
accessor method and not a mutator
Martin --
This e-mail communication and any attachments may contain
I have used a sevlet filter and translte from ISO8859_1 to UTF8 just works
through all application.
> > 1) there are 20 results for Djavax.servlet.request.encoding in google ^^
> > (but am really not sure this parameter really exists in tomcat)
>
> My bad. I kept the "-" in front which, of course
Riz,
> We are using BasicDataSource from apache dbcp for pooling, and the
> methods to set the debug options you mentioned have been deprecated.
Check out
http://wiki.apache.org/jakarta-commons/DBCP#head-735f1d0347421ab736748d8c6ed547ab5050e450
They seem to indicate that (in spite of deprecating
Riz,
> I had to restart tomcat, but I am not sure if there was a simpler way to
> solve the problem at that time.
> There were threads that were waiting on loading user from db (for
> authentication), which explains why I couldnt login.
They were waiting on loading the user data? Or, they were wa
Well... the last thought I have is to check file permissions to be sure
the tomcat service has read access to the class. Seems like if that
was the case there would be some kind of exception in the logs when the
webapp started though.
The link I posted below actually came from near the top o
SessionBean is declared public and it has a public default constructor with no
agrument... but still shows "the value for the useBean class attribute
ISOTracking.SessionBean is invalid" error.
What could be wrong? Any help or hint is highly appreciated.
Thanks,
Seble.
-Original Message-
Hi,
I'm trying to create a listener in my application. I have created a
listener class that implements HttpSessionLister and I have put the element
in my web.xml.
My listener class only sets a object in the session
(getSession().getAttribute("k", "kk")), but when I try to recover this
Catalina.out is the redirected standard output (Console output in log4j
parlance) of tomcat. I don't think you can roll it in log4j. Best bet
is to steer as much logging as possible away from catalina.out into a
file logger you can roll.
--David
Rizwan Merchant wrote:
Hi,
We are trying t
Good Morning Sean-
Error 2 is directory program or file not found
Send us the whole stack dump so we can see the specific message on what is
missing
Martin --
This e-mail communication and any attachments may contain confidential and
privileged information for the use of the
designated recipient
David Delbecq wrote:
> Hi mark, not at all
>
> 1) there are 20 results for Djavax.servlet.request.encoding in google ^^
> (but am really not sure this parameter really exists in tomcat)
My bad. I kept the "-" in front which, of course, suppressed the
results. The option isn't in the spec and isn'
Hello List
i just upgraded my tomcat to 5.5.17 mdk , since we wanted to test the
replication mechanism of the tomcat 5.5 .
after i added the definitions in the server.xml i get the
following error :
3543 [main] ERROR org.apache.catalina.mbeans.ServerLifecycleListener -
Exception handling Nami
Hi mark, not at all
1) there are 20 results for Djavax.servlet.request.encoding in google ^^
(but am really not sure this parameter really exists in tomcat)
2) URIEncoding="UTF-8" set the encoding used for html link, the default
is platform dependent.
I "suppose" the Zis wanted to set the default
Hi,
I want to create my own Realm (for tomcat 5.5) with webservice call for
authentication.
I have develop a class to implement my own Realm. It works fine, but not
the service call (axis api).
Here we are the error log :
11 oct. 2006 11:07:00
org.apache.axis.configuration.EngineConfigurationF
Same problem here.
Any idea ?
On 3/29/06, Sean O'Reilly <[EMAIL PROTECTED]> wrote:
I hope someone can help me with this.
I have been searching the archives for similar problems and have found
a few but with no solutions.
Running Fedora core 4, apache2.2 and tomcat5.5 jdk1.5 and am getting the
hello
I am trying to read a file (xml file ) from a simple java programe which
will be called in a jsp page .Now i am getting the
error
java.io.FileNotFoundException:
The code for the java programe is like
String fileName = "/home/mpw/testdir/account.xml"
BufferedReader in = new BufferedReade
57 matches
Mail list logo