RE:problems with cvs and ant tomcat build script (please help cvs proxy authenticate ???)

2005-09-23 Thread Bovy, Stephen J
 
My proxy server requires authentication,
please tell me how to get cvs and ant tomcat build script working ???  

C:\tomcat-sourcecvs -d
:pserver;proxy=caproxy.ca.com;proxyport=80:[EMAIL PROTECTED]:/home/cvs
public login
Logging in to :pserver:[EMAIL PROTECTED]:2401:/home/cvspublic
CVS password: ***
cvs [login aborted]: Proxy server requires authentication

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JSF Please Help with a simple question thanks ???

2005-09-03 Thread David Haynes

Bovy, Stephen J wrote:


Thank you for the clarification ...

So is Tomcat 5.x using the appache MYFACES  

Which version of jsf is included/supported by tomcat 5.x ??? 


Is there any difference between the Sun version and the appache version
???

Stephen Bovy
Computer Associates
6100 Center Drive
Suite 700
Los Angeles, CA 90045
Tel: (310) 957-3930
Fax: (310) 957-3917
e-mail: [EMAIL PROTECTED]

It's not really a question of Tomcat using MyFaces or JSF RI - they are 
really independent technologies which can work together. You choose 
which one you want to use based upon your needs and any company policies 
which might apply. Both support the same API (JSR 127). Try thinking of 
it this way. Both MyFaces and JSF RI offer you a library (jar) of 
methods which allow you to develop JSF format web pages. Each library 
offers the same standard set of capabilities - the JSR 127 API. Each 
library is written and supported by a different group. Both will run on 
Tomcat (or any other reasonable application server) since both are 
written using Java.


To integrate either with Tomcat, you simply download the library, add it 
to your project's classpath, and then write JSF-specific web pages to 
take advantage of the JSF technology.


You might find this http://www.jsfcentral.com/faq/index.html (JSF 
Central's FAQ) to be helpful as a starting point.


-david-


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JSF Please Help with a simple question thanks ???

2005-09-02 Thread Bovy, Stephen J
 
Does Tomcat 5.x have a JSF implementation 

Does JSF have to be installed separately 

Stephen Bovy
Computer Associates
6100 Center Drive
Suite 700
Los Angeles, CA 90045
Tel: (310) 957-3930
Fax: (310) 957-3917
e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JSF Please Help with a simple question thanks ???

2005-09-02 Thread David Haynes

Bovy, Stephen J wrote:



Does Tomcat 5.x have a JSF implementation 

Does JSF have to be installed separately 

Stephen Bovy
Computer Associates
6100 Center Drive
Suite 700
Los Angeles, CA 90045
Tel: (310) 957-3930
Fax: (310) 957-3917
e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 


Tomcat 5.x supports JSF.
JSF is a separate download (jar file) from either Sun 
(http://java.sun.com/j2ee/javaserverfaces/download.html) or Apache 
(http://www.myfaces.org/)



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JSF Please Help with a simple question thanks ???

2005-09-02 Thread Bovy, Stephen J
Thank you for the clarification ...

So is Tomcat 5.x using the appache MYFACES  

Which version of jsf is included/supported by tomcat 5.x ??? 

Is there any difference between the Sun version and the appache version
???

Stephen Bovy
Computer Associates
6100 Center Drive
Suite 700
Los Angeles, CA 90045
Tel: (310) 957-3930
Fax: (310) 957-3917
e-mail: [EMAIL PROTECTED]
-Original Message-
From: David Haynes [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 02, 2005 6:48 PM
To: Tomcat Users List
Subject: Re: JSF Please Help with a simple question thanks ???

Bovy, Stephen J wrote:

 
Does Tomcat 5.x have a JSF implementation 

Does JSF have to be installed separately 

Stephen Bovy
Computer Associates
6100 Center Drive
Suite 700
Los Angeles, CA 90045
Tel: (310) 957-3930
Fax: (310) 957-3917
e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  

Tomcat 5.x supports JSF.
JSF is a separate download (jar file) from either Sun
(http://java.sun.com/j2ee/javaserverfaces/download.html) or Apache
(http://www.myfaces.org/)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat5 and apache2 dont want to cooperate please help!!

2005-08-30 Thread yel
Dear list subscriber,
im now working on this since two weeks and i just can progress with it so i 
really need some urgent help on this issue
what i intent to do is to use tomcate behinde apache as a servlet container and 
i tried many howto out there on the web but none of them was  the right one for 
me :s
so i appologize for your help:
here is information about my System , Configs  and Logs tahnks in advance:

Yel

My System :
/usr/share/tomcat/conf # uname -a
Linux suseleo 2.6.11.4-21.2-default #1 Thu Apr 21 09:37:56 UTC 2005 i686 i686 
i386 GNU/Linux
Suse 9.1

JRE:
/usr/share/tomcat/conf # java -version
java version 1.4.2_06
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)

SDK:
JAVA_HOME:   /opt/IBMJava2-142

Packages I'am using:
JK connector: apache2-jakarta-tomcat-connectors-5.0.19-13.i586.rpm
Tomcat Servlets Container: jakarta-tomcat-5.0.19-13.i586.rpm

My Configs:

Workers.properties:
---
workers.CATALINA_HOME=/usr/share/tomcat
workers.java_home=$(JAVA_HOME)
ps=/
worker.list=dom4
worker.dom4.type=ajp13
worker.dom4.host=localhost
worker.dom4.port=8009
worker.dom4.lbfactor=50
worker.dom4.cachesize=10
worker.dom4.cache_timeout=600
worker.dom4.socket_keepalive=1
worker.dom4.reclycle_timeout=300


Jk2.properties:

is empty i did uncomment nothing :
## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Set the desired handler list
# handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default:
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
# shm.file=${jkHome}/work/jk2.shm

# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:

# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess
---

My mod_jk.conf (which i include in Apache2:
-
# Load mod_jk module

# Update this path to match your modules location
LoadModulejk_module  /usr/lib/apache2/mod_jk.so

# Declare the module for IfModule directive (remove this line on Apache 2.x)
##apache2   AddModule mod_jk.c
# Where to find workers.properties

# Update this path to match your conf directory location (put 
workers.properties next to httpd.conf)
JkWorkersFile /usr/share/tomcat/conf/workers.properties

# Where to put jk logs
# Update this path to match your logs directory location (put mod_jk.log next 
to access_log)
JkLogFile /usr/share/tomcat/logs/mod_jk.log

# Set the jk log level [debug/error/info]
JkLogLeveldebug

# Select the log format
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 

# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

# JkRequestLogFormat set the request format
JkRequestLogFormat %w %V %T

# Send everything for context /examples to worker named worker1 (ajp13)
 JkMount  /examples/* dom4
-

My Server.xml: (only list uncommented lines)
--
Server port=8005 shutdown=SHUTDOWN debug=0

Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

!-- Global JNDI resources --
  GlobalNamingResources

 !-- Test entry for demonstration purposes --
 Environment name=simpleValue type=java.lang.Integer value=30/

 !-- Editable user database that can also be used by
   UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
type=org.apache.catalina.UserDatabase
description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name

valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
/parameter
parameter
namepathname/name
valueconf/tomcat-users.xml/value
/parameter
/ResourceParams
/GlobalNamingResources

Service name=Catalina

!-- Define 

Please help me sir

2005-06-27 Thread Asit Basak

Sir

I have installed Jdk1.5.0 in windows 2000 server.
After that I have installed Apache Tomcat/5.0.29.
I have deployed all of my JSPs in Root directory
and all of my beans in classes.

Now after starting of the Tomcat server.
when I want to see the paged in IE6,
It is giving errors
  javac: target release 1.3 conflicts with default source release 1.5 .
Now sir please tell me what can I I do for this purpose.
Thanking you in anticipation.

Regards
Asit Basak
email - [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Please help me sir

2005-06-27 Thread Jaroslav Záruba
Hello Asit

Could it be that you write for Java 1.5 whilst your Tomcat somehow
expects Java 1.3?
Try this link:
http://blog.taragana.com/index.php/archive/how-to-run-javac-15-or-beyond-compiler-for-jsp-compilation-in-tomcat-55-with-generics-enabled-and-other-15-only-features/1/

hope it helps
have a nice day
  J.Zaruba

On 6/27/05, Asit Basak [EMAIL PROTECTED] wrote:
 Sir
 
 I have installed Jdk1.5.0 in windows 2000 server.
 After that I have installed Apache Tomcat/5.0.29.
 I have deployed all of my JSPs in Root directory
 and all of my beans in classes.
 
 Now after starting of the Tomcat server.
 when I want to see the paged in IE6,
 It is giving errors
javac: target release 1.3 conflicts with default source release 1.5 .
 Now sir please tell me what can I I do for this purpose.
 Thanking you in anticipation.
 
 Regards
 Asit Basak
 email - [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Please help with PermGen OutOfMemory error

2005-06-27 Thread Andy Kriger
After many webapp installs, I get this in my tomcat logs...

Exception in thread
ContainerBackgroundProcessor[StandardEngine[Catalina]]
java.lang.OutOfMemory
Error: PermGen space

MaxPermSize=128m, but the errors still happen. I understand that this
comes from apps not releasing all their resources. How do I track down
what part of my app is leaving these resources behind? I'm hoping for
pointers to tools/articles/blog entries - anything that'll let me
isolate this problem (hopefully to a part of my code that I can
actually fix as opposed to third party code I have no control over).

thx
andy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Please help with PermGen OutOfMemory error

2005-06-27 Thread Phillip Qin
What is the version of your tomcat? 5.5 supposed to have resolved this issue
by flush reflection cache when undeploy your web app.

-Original Message-
From: Andy Kriger [mailto:[EMAIL PROTECTED] 
Sent: June 27, 2005 12:12 PM
To: tomcat-user@jakarta.apache.org
Subject: Please help with PermGen OutOfMemory error


After many webapp installs, I get this in my tomcat logs...

Exception in thread ContainerBackgroundProcessor[StandardEngine[Catalina]]
java.lang.OutOfMemory
Error: PermGen space

MaxPermSize=128m, but the errors still happen. I understand that this comes
from apps not releasing all their resources. How do I track down what part
of my app is leaving these resources behind? I'm hoping for pointers to
tools/articles/blog entries - anything that'll let me isolate this problem
(hopefully to a part of my code that I can actually fix as opposed to third
party code I have no control over).

thx
andy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


!DSPAM:42c02542251611437718752!


Re: Please help with PermGen OutOfMemory error

2005-06-27 Thread James Black
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Phillip Qin wrote:
 What is the version of your tomcat? 5.5 supposed to have resolved this issue
 by flush reflection cache when undeploy your web app.

  I get this with 5.5.9, using jdk 1.5, under Solaris 8, when I copy my
new beehive-based webapp into my webapps directory. After about 5-8 new
versions within a few hours then I get this error and have to restart
tomcat.

- --
Love is mutual self-giving that ends in self-recovery. Fulton Sheen
James Black[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCwDZhikQgpVn8xrARAmGqAJ90O/O0HFgB6cCL/PvpcqOldhoFPQCeJ60A
kPBnA55zhnUmNtiNp6z1iqU=
=s7n+
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Please help with PermGen OutOfMemory error

2005-06-27 Thread Phillip Qin
I did see this issue happened with my tomcat 4.1/5.0. After I upgraded to
5.5, I have encountered any outofmemory even after 100 hundreds deployments.

Does your web app use struts? You can always clean up resource by adding
Introspector.flushCaches(); in your context listener's contextDestroyed
method. Otherwise, you will have to go through your web app carefully to
find out if there is any memory leak.

-Original Message-
From: James Black [mailto:[EMAIL PROTECTED] 
Sent: June 27, 2005 1:25 PM
To: Tomcat Users List
Subject: Re: Please help with PermGen OutOfMemory error


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Phillip Qin wrote:
 What is the version of your tomcat? 5.5 supposed to have resolved this 
 issue by flush reflection cache when undeploy your web app.

  I get this with 5.5.9, using jdk 1.5, under Solaris 8, when I copy my new
beehive-based webapp into my webapps directory. After about 5-8 new versions
within a few hours then I get this error and have to restart tomcat.

- --
Love is mutual self-giving that ends in self-recovery. Fulton Sheen
James Black[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCwDZhikQgpVn8xrARAmGqAJ90O/O0HFgB6cCL/PvpcqOldhoFPQCeJ60A
kPBnA55zhnUmNtiNp6z1iqU=
=s7n+
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


!DSPAM:42c03666260791431712512!


Re: Please help with PermGen OutOfMemory error

2005-06-27 Thread James Black
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Phillip Qin wrote:
 I did see this issue happened with my tomcat 4.1/5.0. After I upgraded to
 5.5, I have encountered any outofmemory even after 100 hundreds deployments.
 
 Does your web app use struts? You can always clean up resource by adding
 Introspector.flushCaches(); in your context listener's contextDestroyed
 method. Otherwise, you will have to go through your web app carefully to
 find out if there is any memory leak.

  Struts is used in my beehive-based project
(http://incubator.apache.org/beehive), but I will need to check if there
is some memory leak otherwise.

  Thanx.

- --
Love is mutual self-giving that ends in self-recovery. Fulton Sheen
James Black[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCwEduikQgpVn8xrARAooaAJsEjG6T/a52rsNyIQjIPbbOP7nm7ACfepMP
ukLUqtHP8YY5mkK41AEdcFk=
=lOrA
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Please help with PermGen OutOfMemory error

2005-06-27 Thread Anoop kumar V
As per tools - I think you can use JMeter. It gives u some pretty
useful graphs and analysis.

-Anoop

On 6/27/05, James Black [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Phillip Qin wrote:
  I did see this issue happened with my tomcat 4.1/5.0. After I upgraded to
  5.5, I have encountered any outofmemory even after 100 hundreds deployments.
 
  Does your web app use struts? You can always clean up resource by adding
  Introspector.flushCaches(); in your context listener's contextDestroyed
  method. Otherwise, you will have to go through your web app carefully to
  find out if there is any memory leak.
 
   Struts is used in my beehive-based project
 (http://incubator.apache.org/beehive), but I will need to check if there
 is some memory leak otherwise.
 
   Thanx.
 
 - --
 Love is mutual self-giving that ends in self-recovery. Fulton Sheen
 James Black[EMAIL PROTECTED]
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.1 (MingW32)
 Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
 
 iD8DBQFCwEduikQgpVn8xrARAooaAJsEjG6T/a52rsNyIQjIPbbOP7nm7ACfepMP
 ukLUqtHP8YY5mkK41AEdcFk=
 =lOrA
 -END PGP SIGNATURE-
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Thanks and best regards,
Anoop

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Please help RE: Servlet app error (runs on kaffe but not on sun jvm)

2005-05-10 Thread Gastón Simone
 On 5/6/05, Gastón Simone [EMAIL PROTECTED] wrote:
  Hi!
 
  Does anybody know how to solve this problem?
  Please excuse me if the cuestion is too stupid. I am really newbie. :)
 
  root cause
 
  java.lang.NoClassDefFoundError
  at
 com.genexus.webpanels.GXWebObjectStub.callExecute(Unknown Source)
  at com.genexus.webpanels.GXWebObjectStub.doGet(Unknown Source)

   It seems there is a lib missing in your servlet. Add the required
 jars to /WEB-INF/lib

My servlet runs perfect with kaffe. But does not run with sun's jvm.
How can I solve this?
Please help me!

Thanks a lot!

Regards,
Gaston



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 slow, it's in production, please help!

2005-05-09 Thread Jeffrey
Thanks for the advice. I will try your suggestions. I
noticed that from the server status view of the tomcat
manager, I saw some thread with the status 'S' has the
time of '24685295'. Does it mean the thread has hang
there for more than 6 hours (close to 7 hours)?



--- Parsons Technical Services
[EMAIL PROTECTED] wrote:

 I think that would be the direction I would take.
 
 If you need more proof:
 
 Sniff the connection to the server to confirm the
 lack of available 
 connections. So far it is pointing in that
 direction.
 
 Another test you might do is create a connection
 from a known IP, close the 
 browser and monitor the connection status. If it is
 hanging open then start 
 digging.
 
 I think you may also be experiencing  an issue of
 clickatosis. It occurs 
 when the client doesn't think the page is responding
 quick enough and since 
 more is better after 10 or 20 clicks they decide to
 wait or give up. Mean 
 while for each click they cause a request which can
 bog things down. 
 Wrapping this with the held connections you can get
 a scenario as such:
 
 Client hits site.
 No or slow response.
 Clicks again. Or several times.
 Often closes browser and tries over.
 This creates a new connection request.
 Snowballs from there.
 
 Think about this, do you really get over a 100k
 users in six hours? Or even 
 100k page requests? That's a lot of traffic. If the
 client machines abandons 
 the connection before the server, then establishes a
 new one, it compound 
 the problem.
 
 Find a way to have the OS let Apache handle the
 connection timeout and get 
 it down to a reasonable time.
 
 Since you are inheriting this, there may be a reason
 that the connection 
 timeout is set so high. If the original creator of
 this wanted the user to 
 be able to sit on a page for a long time without
 losing the session and 
 connection thus causing the user to have to
 re-authenticate. But then there 
 is a trade off. which you are experiencing right
 now.
 
 Get the time down until the complaint about having
 to re-login get too high 
 or until the connection speed delay is acceptable.
 
 Just my $0.015
 
 Doug
 - Original Message - 
 From: Jeffrey [EMAIL PROTECTED]
 To: Tomcat Users List
 tomcat-user@jakarta.apache.org
 Sent: Saturday, May 07, 2005 1:05 PM
 Subject: Re: Tomcat 5 slow, it's in production,
 please help!
 
 
  It seems that, at least in most cases, the main
 menu
  page after a login is loaded slow. After that
 other
  pages are loaded pretty quick. Does that mean once
 a
  connection is established, browser and server
  communication is ok. If that is the case, maybe I
  should look more at the connection timeout at the
 OS
  level (solaris 5.6) since I see a lot of TIME_WAIT
 at
  the machine using the 'netstat -n' command.
 
 
  --- Jeffrey [EMAIL PROTECTED] wrote:
 
  Please see the answer embedded below.
 
  --- Parsons Technical Services
  [EMAIL PROTECTED] wrote:
 
   127421 over what period of time?
  It's about 6 hours. But most of them are at the
  first
  hour or so.
  
   Without a profile it is impossible to say if
  Tomcat
   can handle the load. But
   if the memory consumption and the CPU usage is
 low
   (as noted) it is fairly
   safe to say that Tomcat itself is not the
 bottle
   neck.
  
   Quick question, why are you using Apache?
 
  I am using Apache SSL for SSL connections. It is
 the
  original setup by someone else.
 
  
   Also what is the time out for the connection in
   Apache?
 
  Apache's Timeout value is 300.
 MaxKeepAliveRequests
  is
  100 and KeepAliveTimeout is 15
  
   Do you get this slow reaction if you are
 hitting
   Tomcat directly?
 
  I did get the slow reaction if I hit Tomcat
 directly
  at port 8080 to the same webapp. But the tomcat
  manager web pages seem show up fairly quick.
 
  
   I may be repeating something that was covered
   because I have not been
   reading this thread in detail. So sorry if
 already
   asked and answered.
  
  
   Doug
  
  
  
   - Original Message - 
   From: Jeffrey [EMAIL PROTECTED]
   To: Tomcat Users List
   tomcat-user@jakarta.apache.org
   Sent: Saturday, May 07, 2005 10:44 AM
   Subject: Re: Tomcat 5 slow, it's in production,
   please help!
  
  
This website has many JSP pages of which each
  has
   many
JSPF included. I wonder whether or not the
  system
   is
not be able to handle this kind of  setting.
 But
strange thing is that when we experienced the
slowness, I looked at the usage of CPU and
 find
   that
almost 90% of the CPU is idle.
   
Do anyone know what kind of load a tomcat can
   handle.
I am thinking that maybe a load balancer will
   help.
But I am still puzzled by the fact of low CPU
   usage at
the time of slowness.
   
From the server status view in tomcat
 manager, I
   can
see 's Request count: 127421'
   
--- Jeffrey [EMAIL PROTECTED] wrote:
I have a apache/tomcat environment that has
  some
problems

Re: Tomcat 5 slow, it's in production, please help!

2005-05-07 Thread Oto Bossert
Yoo,

Yes switch to jk2 is faster!

set parameters in OPT_CATALINA with -server Xmx=? and Xms=?

Sorry values depend on your available memory on the server, parameters
could be different with your version, check or google for correct parameters,
should improve performance...

Another option could be your code, have a good look at it and try to optimize...

Greetings O.

On 5/6/05, Jeffrey [EMAIL PROTECTED] wrote:
 I use just mod_jk, not jk2 I believe. I do have
 connectionTimeout=2 set to AJP connector in
 server.xml
 
 Is there any performance issues with jk? Should I
 switch to jk2?
 
 Thanks.
 
 --- e [EMAIL PROTECTED] wrote:
  What JK version do you use?  To quote Mladen:
 
  You are probably using prefork mpm, so there is no
  way to
  control the number of connections to Tomcat in any
  way, trough
  mod_jk. You can limit it only by setting MaxClients
  in the httpd.conf
  to the maximum number desired.
  Because of pre-forking mechanism each child process
  will eventually
  establish a single connection to Tomcat, thus the
  number of connections
  will rise from StartServers to MaxClients.
 
  So there are two solutions for prefork.
  1. Make maxThreads==MaxClients
  2. Add connectionTimeout=2 to AJP connector.
 
  On 5/6/05, Jeffrey [EMAIL PROTECTED] wrote:
   I have a apache/tomcat environment that has some
   problems recently. The environment has the
  following:
   1.  Apache 1.3
   2.  Tomcat 5.0.28 (Max memory 384mb)
   3.  JDK 1.4.2_06
  
   My apache has MaxClient set to 256 (apache
  default).
   The maxThread for tomcat is 500. The site is a
   database driven site.
  
   It seems working fine when load is low. But when
  there
   are more than 150 threads (from the sever status
  view
   of the tomcat manager), it's response time is very
   slow (5 - 10 minutes). I have tested the database
   connections, they seem responding fairly well.
  
   Interesting thing is that most of time the slow
   response time only happens when a user login. Once
  the
   user login and get the main menu page, the user
  will
   get a good response time. Is it related to
  KeepAlive
   connections.
  
   Another strange thing is that many threads always
  show
   up in the server status view on the tomcat html
   manager page even though I am sure the request has
   gone (I tested this by making a request, then
  close
   the browser).
  
   My CPU usage is low when the slowdown is
  experienced
   (Using the top command on this solaris box which
  has
   old solaris operating system 2.6? with 1GB memory.
  
   I set the session timeout time to 5 minutes, but
  in
   the session view of tomcat manager, I see message
  30
   - 40 minutes:136 sessions. How a session that is
   more than 30 minutes is still there. Maybe I don't
   understand this message correctly.
  
   Please advice. This is a production machine. Helps
  are
   greatly appreciated.
  
   Thanks.
  
   Jeffrey.
  
   Discover Yahoo!
   Get on-the-go sports scores, stock quotes, news
  and more. Check it out!
   http://discover.yahoo.com/mobile.html
  
  
 
 -
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 slow, it's in production, please help!

2005-05-07 Thread Michael Echerer
Oto Bossert wrote:
 Yoo,
 
 Yes switch to jk2 is faster!
But unsupported! Development of mod_jk1.x is going on, but not jk2. I
wouldn't advise anyone to select something uncontinued.
I set the session timeout time to 5 minutes, but

in

the session view of tomcat manager, I see message

30

- 40 minutes:136 sessions. How a session that is
more than 30 minutes is still there. Maybe I don't
understand this message correctly.
Check whether you session-timeout is really set correctly. You can set
the timeout in the default web.xml for all apps, but you could override
it in the webapps web.xml, too. Maybe there it's still set too high.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5 slow, it's in production, please help!

2005-05-07 Thread Jeffrey
I am sorry, the box runs a Solaris 5.6 instead of 2.6
as I said before. But still you are probably right, it
would be better to get a new OS installed.

I didn't use ndd commands to set the TCP parameters.
So even though we have the session timeout set to 5
minutes at the tomcat level, that parameter is not
honored by the operating system?


--- [EMAIL PROTECTED] wrote:
 I think some of the problem is at the OS level
 
 You can set a session time at the tomcat level, but
 the default solaris TCP timeouts are hours long.   I
 hope you used the ndd commands to set the TCP
 parameters for short web sessions.
 
 Also, Solaris 2.6 has a bad thread model and there
 are numerous patches required to run it with  any
 recent Java 2 distributions.   To use the 1.4.xxx
 JVM would require about a dozen patches.
 
 It would be way better to try to get Solaris 10
 installed on this box  -- It handles the ndd setting
 for you and is way faster on the same hardware. 
 [even solaris 8...]
 
 
  -- Original message
 --
 From: [EMAIL PROTECTED]
  What does netstat -nt show?
  You may have enough connections going that old
 ones 
  have to time out before you can establish a new
 one.
  
  -Original Message-
  From: Jeffrey [mailto:[EMAIL PROTECTED]
  Sent: Friday, May 06, 2005 2:16 PM
  To: tomcat-user@jakarta.apache.org
  Subject: Tomcat 5 slow, it's in production, please
 help!
  
  
  I have a apache/tomcat environment that has some
  problems recently. The environment has the
 following:
  1.  Apache 1.3
  2.  Tomcat 5.0.28 (Max memory 384mb)
  3.  JDK 1.4.2_06
  
  My apache has MaxClient set to 256 (apache
 default).
  The maxThread for tomcat is 500. The site is a
  database driven site. 
  
  It seems working fine when load is low. But when
 there
  are more than 150 threads (from the sever status
 view
  of the tomcat manager), it's response time is very
  slow (5 - 10 minutes). I have tested the database
  connections, they seem responding fairly well.
  
  Interesting thing is that most of time the slow
  response time only happens when a user login. Once
 the
  user login and get the main menu page, the user
 will
  get a good response time. Is it related to
 KeepAlive
  connections. 
  
  Another strange thing is that many threads always
 show
  up in the server status view on the tomcat html
  manager page even though I am sure the request has
  gone (I tested this by making a request, then
 close
  the browser).
  
  My CPU usage is low when the slowdown is
 experienced
  (Using the top command on this solaris box which
 has
  old solaris operating system 2.6? with 1GB memory.
  
  I set the session timeout time to 5 minutes, but
 in
  the session view of tomcat manager, I see message
 30
  - 40 minutes:136 sessions. How a session that is
  more than 30 minutes is still there. Maybe I don't
  understand this message correctly.
  
  Please advice. This is a production machine. Helps
 are
  greatly appreciated.
  
  Thanks.
  
  Jeffrey.
  
  
  
  Discover Yahoo! 
  Get on-the-go sports scores, stock quotes, news
 and more. Check it out! 
  http://discover.yahoo.com/mobile.html
  
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
 
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5 slow, it's in production, please help!

2005-05-07 Thread Tony
As a wild guess
Browser drops the connection immediately without notice
After 5 minutes, tomcat decides to drop the connection
After 30 minutes or so, Solaris finally finishes dropping the connection.
Gives a strange meaning to Keep-Alive ;)

-Original Message-
From: Jeffrey [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 07, 2005 9:21 AM
To: Tomcat Users List
Subject: RE: Tomcat 5 slow, it's in production, please help!


I am sorry, the box runs a Solaris 5.6 instead of 2.6
as I said before. But still you are probably right, it
would be better to get a new OS installed.

I didn't use ndd commands to set the TCP parameters.
So even though we have the session timeout set to 5
minutes at the tomcat level, that parameter is not
honored by the operating system?


--- [EMAIL PROTECTED] wrote:
 I think some of the problem is at the OS level
 
 You can set a session time at the tomcat level, but
 the default solaris TCP timeouts are hours long.   I
 hope you used the ndd commands to set the TCP
 parameters for short web sessions.
 
 Also, Solaris 2.6 has a bad thread model and there
 are numerous patches required to run it with  any
 recent Java 2 distributions.   To use the 1.4.xxx
 JVM would require about a dozen patches.
 
 It would be way better to try to get Solaris 10
 installed on this box  -- It handles the ndd setting
 for you and is way faster on the same hardware. 
 [even solaris 8...]
 
 
  -- Original message
 --
 From: [EMAIL PROTECTED]
  What does netstat -nt show?
  You may have enough connections going that old
 ones 
  have to time out before you can establish a new
 one.
  
  -Original Message-
  From: Jeffrey [mailto:[EMAIL PROTECTED]
  Sent: Friday, May 06, 2005 2:16 PM
  To: tomcat-user@jakarta.apache.org
  Subject: Tomcat 5 slow, it's in production, please
 help!
  
  
  I have a apache/tomcat environment that has some
  problems recently. The environment has the
 following:
  1.  Apache 1.3
  2.  Tomcat 5.0.28 (Max memory 384mb)
  3.  JDK 1.4.2_06
  
  My apache has MaxClient set to 256 (apache
 default).
  The maxThread for tomcat is 500. The site is a
  database driven site. 
  
  It seems working fine when load is low. But when
 there
  are more than 150 threads (from the sever status
 view
  of the tomcat manager), it's response time is very
  slow (5 - 10 minutes). I have tested the database
  connections, they seem responding fairly well.
  
  Interesting thing is that most of time the slow
  response time only happens when a user login. Once
 the
  user login and get the main menu page, the user
 will
  get a good response time. Is it related to
 KeepAlive
  connections. 
  
  Another strange thing is that many threads always
 show
  up in the server status view on the tomcat html
  manager page even though I am sure the request has
  gone (I tested this by making a request, then
 close
  the browser).
  
  My CPU usage is low when the slowdown is
 experienced
  (Using the top command on this solaris box which
 has
  old solaris operating system 2.6? with 1GB memory.
  
  I set the session timeout time to 5 minutes, but
 in
  the session view of tomcat manager, I see message
 30
  - 40 minutes:136 sessions. How a session that is
  more than 30 minutes is still there. Maybe I don't
  understand this message correctly.
  
  Please advice. This is a production machine. Helps
 are
  greatly appreciated.
  
  Thanks.
  
  Jeffrey.
  
  
  
  Discover Yahoo! 
  Get on-the-go sports scores, stock quotes, news
 and more. Check it out! 
  http://discover.yahoo.com/mobile.html
  
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
 
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 slow, it's in production, please help!

2005-05-07 Thread Jeffrey
This website has many JSP pages of which each has many
JSPF included. I wonder whether or not the system is
not be able to handle this kind of  setting. But
strange thing is that when we experienced the
slowness, I looked at the usage of CPU and find that
almost 90% of the CPU is idle.

Do anyone know what kind of load a tomcat can handle.
I am thinking that maybe a load balancer will help.
But I am still puzzled by the fact of low CPU usage at
the time of slowness.

From the server status view in tomcat manager, I can
see 's Request count: 127421'

--- Jeffrey [EMAIL PROTECTED] wrote:
 I have a apache/tomcat environment that has some
 problems recently. The environment has the
 following:
 1.  Apache 1.3
 2.  Tomcat 5.0.28 (Max memory 384mb)
 3.  JDK 1.4.2_06
 
 My apache has MaxClient set to 256 (apache default).
 The maxThread for tomcat is 500. The site is a
 database driven site. 
 
 It seems working fine when load is low. But when
 there
 are more than 150 threads (from the sever status
 view
 of the tomcat manager), it's response time is very
 slow (5 - 10 minutes). I have tested the database
 connections, they seem responding fairly well.
 
 Interesting thing is that most of time the slow
 response time only happens when a user login. Once
 the
 user login and get the main menu page, the user will
 get a good response time. Is it related to KeepAlive
 connections. 
 
 Another strange thing is that many threads always
 show
 up in the server status view on the tomcat html
 manager page even though I am sure the request has
 gone (I tested this by making a request, then close
 the browser).
 
 My CPU usage is low when the slowdown is experienced
 (Using the top command on this solaris box which has
 old solaris operating system 2.6? with 1GB memory.
 
 I set the session timeout time to 5 minutes, but in
 the session view of tomcat manager, I see message
 30
 - 40 minutes:136 sessions. How a session that is
 more than 30 minutes is still there. Maybe I don't
 understand this message correctly.
 
 Please advice. This is a production machine. Helps
 are
 greatly appreciated.
 
 Thanks.
 
 Jeffrey.
 
 
   
 Discover Yahoo! 
 Get on-the-go sports scores, stock quotes, news and
 more. Check it out! 
 http://discover.yahoo.com/mobile.html
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 slow, it's in production, please help!

2005-05-07 Thread Parsons Technical Services
127421 over what period of time?
Without a profile it is impossible to say if Tomcat can handle the load. But 
if the memory consumption and the CPU usage is low (as noted) it is fairly 
safe to say that Tomcat itself is not the bottle neck.

Quick question, why are you using Apache?
Also what is the time out for the connection in Apache?
Do you get this slow reaction if you are hitting Tomcat directly?
I may be repeating something that was covered because I have not been 
reading this thread in detail. So sorry if already asked and answered.

Doug

- Original Message - 
From: Jeffrey [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Saturday, May 07, 2005 10:44 AM
Subject: Re: Tomcat 5 slow, it's in production, please help!


This website has many JSP pages of which each has many
JSPF included. I wonder whether or not the system is
not be able to handle this kind of  setting. But
strange thing is that when we experienced the
slowness, I looked at the usage of CPU and find that
almost 90% of the CPU is idle.
Do anyone know what kind of load a tomcat can handle.
I am thinking that maybe a load balancer will help.
But I am still puzzled by the fact of low CPU usage at
the time of slowness.
From the server status view in tomcat manager, I can
see 's Request count: 127421'
--- Jeffrey [EMAIL PROTECTED] wrote:
I have a apache/tomcat environment that has some
problems recently. The environment has the
following:
1.  Apache 1.3
2.  Tomcat 5.0.28 (Max memory 384mb)
3.  JDK 1.4.2_06
My apache has MaxClient set to 256 (apache default).
The maxThread for tomcat is 500. The site is a
database driven site.
It seems working fine when load is low. But when
there
are more than 150 threads (from the sever status
view
of the tomcat manager), it's response time is very
slow (5 - 10 minutes). I have tested the database
connections, they seem responding fairly well.
Interesting thing is that most of time the slow
response time only happens when a user login. Once
the
user login and get the main menu page, the user will
get a good response time. Is it related to KeepAlive
connections.
Another strange thing is that many threads always
show
up in the server status view on the tomcat html
manager page even though I am sure the request has
gone (I tested this by making a request, then close
the browser).
My CPU usage is low when the slowdown is experienced
(Using the top command on this solaris box which has
old solaris operating system 2.6? with 1GB memory.
I set the session timeout time to 5 minutes, but in
the session view of tomcat manager, I see message
30
- 40 minutes:136 sessions. How a session that is
more than 30 minutes is still there. Maybe I don't
understand this message correctly.
Please advice. This is a production machine. Helps
are
greatly appreciated.
Thanks.
Jeffrey.

Discover Yahoo!
Get on-the-go sports scores, stock quotes, news and
more. Check it out!
http://discover.yahoo.com/mobile.html

-
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 slow, it's in production, please help!

2005-05-07 Thread Jeffrey
Please see the answer embedded below.

--- Parsons Technical Services
[EMAIL PROTECTED] wrote:

 127421 over what period of time?
It's about 6 hours. But most of them are at the first
hour or so.
 
 Without a profile it is impossible to say if Tomcat
 can handle the load. But 
 if the memory consumption and the CPU usage is low
 (as noted) it is fairly 
 safe to say that Tomcat itself is not the bottle
 neck.
 
 Quick question, why are you using Apache?

I am using Apache SSL for SSL connections. It is the
original setup by someone else.

 
 Also what is the time out for the connection in
 Apache?

Apache's Timeout value is 300. MaxKeepAliveRequests is
100 and KeepAliveTimeout is 15
 
 Do you get this slow reaction if you are hitting
 Tomcat directly?

I did get the slow reaction if I hit Tomcat directly
at port 8080 to the same webapp. But the tomcat
manager web pages seem show up fairly quick.

 
 I may be repeating something that was covered
 because I have not been 
 reading this thread in detail. So sorry if already
 asked and answered.
 
 
 Doug
 
 
 
 - Original Message - 
 From: Jeffrey [EMAIL PROTECTED]
 To: Tomcat Users List
 tomcat-user@jakarta.apache.org
 Sent: Saturday, May 07, 2005 10:44 AM
 Subject: Re: Tomcat 5 slow, it's in production,
 please help!
 
 
  This website has many JSP pages of which each has
 many
  JSPF included. I wonder whether or not the system
 is
  not be able to handle this kind of  setting. But
  strange thing is that when we experienced the
  slowness, I looked at the usage of CPU and find
 that
  almost 90% of the CPU is idle.
 
  Do anyone know what kind of load a tomcat can
 handle.
  I am thinking that maybe a load balancer will
 help.
  But I am still puzzled by the fact of low CPU
 usage at
  the time of slowness.
 
  From the server status view in tomcat manager, I
 can
  see 's Request count: 127421'
 
  --- Jeffrey [EMAIL PROTECTED] wrote:
  I have a apache/tomcat environment that has some
  problems recently. The environment has the
  following:
  1.  Apache 1.3
  2.  Tomcat 5.0.28 (Max memory 384mb)
  3.  JDK 1.4.2_06
 
  My apache has MaxClient set to 256 (apache
 default).
  The maxThread for tomcat is 500. The site is a
  database driven site.
 
  It seems working fine when load is low. But when
  there
  are more than 150 threads (from the sever status
  view
  of the tomcat manager), it's response time is
 very
  slow (5 - 10 minutes). I have tested the database
  connections, they seem responding fairly well.
 
  Interesting thing is that most of time the slow
  response time only happens when a user login.
 Once
  the
  user login and get the main menu page, the user
 will
  get a good response time. Is it related to
 KeepAlive
  connections.
 
  Another strange thing is that many threads always
  show
  up in the server status view on the tomcat html
  manager page even though I am sure the request
 has
  gone (I tested this by making a request, then
 close
  the browser).
 
  My CPU usage is low when the slowdown is
 experienced
  (Using the top command on this solaris box which
 has
  old solaris operating system 2.6? with 1GB
 memory.
 
  I set the session timeout time to 5 minutes, but
 in
  the session view of tomcat manager, I see message
  30
  - 40 minutes:136 sessions. How a session that
 is
  more than 30 minutes is still there. Maybe I
 don't
  understand this message correctly.
 
  Please advice. This is a production machine.
 Helps
  are
  greatly appreciated.
 
  Thanks.
 
  Jeffrey.
 
 
 
  Discover Yahoo!
  Get on-the-go sports scores, stock quotes, news
 and
  more. Check it out!
  http://discover.yahoo.com/mobile.html
 
 
 

-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
 
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
 protection around
  http://mail.yahoo.com
 
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
  
 
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 




Discover Yahoo! 
Stay in touch with email, IM, photo sharing and more. Check it out! 
http://discover.yahoo.com/stayintouch.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 slow, it's in production, please help!

2005-05-07 Thread Jeffrey
It seems that, at least in most cases, the main menu
page after a login is loaded slow. After that other
pages are loaded pretty quick. Does that mean once a
connection is established, browser and server
communication is ok. If that is the case, maybe I
should look more at the connection timeout at the OS
level (solaris 5.6) since I see a lot of TIME_WAIT at
the machine using the 'netstat -n' command.


--- Jeffrey [EMAIL PROTECTED] wrote:

 Please see the answer embedded below.
 
 --- Parsons Technical Services
 [EMAIL PROTECTED] wrote:
 
  127421 over what period of time?
 It's about 6 hours. But most of them are at the
 first
 hour or so.
  
  Without a profile it is impossible to say if
 Tomcat
  can handle the load. But 
  if the memory consumption and the CPU usage is low
  (as noted) it is fairly 
  safe to say that Tomcat itself is not the bottle
  neck.
  
  Quick question, why are you using Apache?
 
 I am using Apache SSL for SSL connections. It is the
 original setup by someone else.
 
  
  Also what is the time out for the connection in
  Apache?
 
 Apache's Timeout value is 300. MaxKeepAliveRequests
 is
 100 and KeepAliveTimeout is 15
  
  Do you get this slow reaction if you are hitting
  Tomcat directly?
 
 I did get the slow reaction if I hit Tomcat directly
 at port 8080 to the same webapp. But the tomcat
 manager web pages seem show up fairly quick.
 
  
  I may be repeating something that was covered
  because I have not been 
  reading this thread in detail. So sorry if already
  asked and answered.
  
  
  Doug
  
  
  
  - Original Message - 
  From: Jeffrey [EMAIL PROTECTED]
  To: Tomcat Users List
  tomcat-user@jakarta.apache.org
  Sent: Saturday, May 07, 2005 10:44 AM
  Subject: Re: Tomcat 5 slow, it's in production,
  please help!
  
  
   This website has many JSP pages of which each
 has
  many
   JSPF included. I wonder whether or not the
 system
  is
   not be able to handle this kind of  setting. But
   strange thing is that when we experienced the
   slowness, I looked at the usage of CPU and find
  that
   almost 90% of the CPU is idle.
  
   Do anyone know what kind of load a tomcat can
  handle.
   I am thinking that maybe a load balancer will
  help.
   But I am still puzzled by the fact of low CPU
  usage at
   the time of slowness.
  
   From the server status view in tomcat manager, I
  can
   see 's Request count: 127421'
  
   --- Jeffrey [EMAIL PROTECTED] wrote:
   I have a apache/tomcat environment that has
 some
   problems recently. The environment has the
   following:
   1.  Apache 1.3
   2.  Tomcat 5.0.28 (Max memory 384mb)
   3.  JDK 1.4.2_06
  
   My apache has MaxClient set to 256 (apache
  default).
   The maxThread for tomcat is 500. The site is a
   database driven site.
  
   It seems working fine when load is low. But
 when
   there
   are more than 150 threads (from the sever
 status
   view
   of the tomcat manager), it's response time is
  very
   slow (5 - 10 minutes). I have tested the
 database
   connections, they seem responding fairly well.
  
   Interesting thing is that most of time the slow
   response time only happens when a user login.
  Once
   the
   user login and get the main menu page, the user
  will
   get a good response time. Is it related to
  KeepAlive
   connections.
  
   Another strange thing is that many threads
 always
   show
   up in the server status view on the tomcat html
   manager page even though I am sure the request
  has
   gone (I tested this by making a request, then
  close
   the browser).
  
   My CPU usage is low when the slowdown is
  experienced
   (Using the top command on this solaris box
 which
  has
   old solaris operating system 2.6? with 1GB
  memory.
  
   I set the session timeout time to 5 minutes,
 but
  in
   the session view of tomcat manager, I see
 message
   30
   - 40 minutes:136 sessions. How a session that
  is
   more than 30 minutes is still there. Maybe I
  don't
   understand this message correctly.
  
   Please advice. This is a production machine.
  Helps
   are
   greatly appreciated.
  
   Thanks.
  
   Jeffrey.
  
  
  
   Discover Yahoo!
   Get on-the-go sports scores, stock quotes, news
  and
   more. Check it out!
   http://discover.yahoo.com/mobile.html
  
  
  
 

-
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
  
  
  
  
 __
   Do You Yahoo!?
   Tired of spam?  Yahoo! Mail has the best spam
  protection around
   http://mail.yahoo.com
  
  
 

-
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
   
  
  
  
 

-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail

Re: Tomcat 5 slow, it's in production, please help!

2005-05-07 Thread Parsons Technical Services
I think that would be the direction I would take.
If you need more proof:
Sniff the connection to the server to confirm the lack of available 
connections. So far it is pointing in that direction.

Another test you might do is create a connection from a known IP, close the 
browser and monitor the connection status. If it is hanging open then start 
digging.

I think you may also be experiencing  an issue of clickatosis. It occurs 
when the client doesn't think the page is responding quick enough and since 
more is better after 10 or 20 clicks they decide to wait or give up. Mean 
while for each click they cause a request which can bog things down. 
Wrapping this with the held connections you can get a scenario as such:

Client hits site.
No or slow response.
Clicks again. Or several times.
Often closes browser and tries over.
This creates a new connection request.
Snowballs from there.
Think about this, do you really get over a 100k users in six hours? Or even 
100k page requests? That's a lot of traffic. If the client machines abandons 
the connection before the server, then establishes a new one, it compound 
the problem.

Find a way to have the OS let Apache handle the connection timeout and get 
it down to a reasonable time.

Since you are inheriting this, there may be a reason that the connection 
timeout is set so high. If the original creator of this wanted the user to 
be able to sit on a page for a long time without losing the session and 
connection thus causing the user to have to re-authenticate. But then there 
is a trade off. which you are experiencing right now.

Get the time down until the complaint about having to re-login get too high 
or until the connection speed delay is acceptable.

Just my $0.015
Doug
- Original Message - 
From: Jeffrey [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Saturday, May 07, 2005 1:05 PM
Subject: Re: Tomcat 5 slow, it's in production, please help!


It seems that, at least in most cases, the main menu
page after a login is loaded slow. After that other
pages are loaded pretty quick. Does that mean once a
connection is established, browser and server
communication is ok. If that is the case, maybe I
should look more at the connection timeout at the OS
level (solaris 5.6) since I see a lot of TIME_WAIT at
the machine using the 'netstat -n' command.
--- Jeffrey [EMAIL PROTECTED] wrote:
Please see the answer embedded below.
--- Parsons Technical Services
[EMAIL PROTECTED] wrote:
 127421 over what period of time?
It's about 6 hours. But most of them are at the
first
hour or so.

 Without a profile it is impossible to say if
Tomcat
 can handle the load. But
 if the memory consumption and the CPU usage is low
 (as noted) it is fairly
 safe to say that Tomcat itself is not the bottle
 neck.

 Quick question, why are you using Apache?
I am using Apache SSL for SSL connections. It is the
original setup by someone else.

 Also what is the time out for the connection in
 Apache?
Apache's Timeout value is 300. MaxKeepAliveRequests
is
100 and KeepAliveTimeout is 15

 Do you get this slow reaction if you are hitting
 Tomcat directly?
I did get the slow reaction if I hit Tomcat directly
at port 8080 to the same webapp. But the tomcat
manager web pages seem show up fairly quick.

 I may be repeating something that was covered
 because I have not been
 reading this thread in detail. So sorry if already
 asked and answered.


 Doug



 - Original Message - 
 From: Jeffrey [EMAIL PROTECTED]
 To: Tomcat Users List
 tomcat-user@jakarta.apache.org
 Sent: Saturday, May 07, 2005 10:44 AM
 Subject: Re: Tomcat 5 slow, it's in production,
 please help!


  This website has many JSP pages of which each
has
 many
  JSPF included. I wonder whether or not the
system
 is
  not be able to handle this kind of  setting. But
  strange thing is that when we experienced the
  slowness, I looked at the usage of CPU and find
 that
  almost 90% of the CPU is idle.
 
  Do anyone know what kind of load a tomcat can
 handle.
  I am thinking that maybe a load balancer will
 help.
  But I am still puzzled by the fact of low CPU
 usage at
  the time of slowness.
 
  From the server status view in tomcat manager, I
 can
  see 's Request count: 127421'
 
  --- Jeffrey [EMAIL PROTECTED] wrote:
  I have a apache/tomcat environment that has
some
  problems recently. The environment has the
  following:
  1.  Apache 1.3
  2.  Tomcat 5.0.28 (Max memory 384mb)
  3.  JDK 1.4.2_06
 
  My apache has MaxClient set to 256 (apache
 default).
  The maxThread for tomcat is 500. The site is a
  database driven site.
 
  It seems working fine when load is low. But
when
  there
  are more than 150 threads (from the sever
status
  view
  of the tomcat manager), it's response time is
 very
  slow (5 - 10 minutes). I have tested the
database
  connections, they seem responding fairly well.
 
  Interesting thing is that most of time the slow
  response time only happens when

Tomcat 5 slow, it's in production, please help!

2005-05-06 Thread Jeffrey
I have a apache/tomcat environment that has some
problems recently. The environment has the following:
1.  Apache 1.3
2.  Tomcat 5.0.28 (Max memory 384mb)
3.  JDK 1.4.2_06

My apache has MaxClient set to 256 (apache default).
The maxThread for tomcat is 500. The site is a
database driven site. 

It seems working fine when load is low. But when there
are more than 150 threads (from the sever status view
of the tomcat manager), it's response time is very
slow (5 - 10 minutes). I have tested the database
connections, they seem responding fairly well.

Interesting thing is that most of time the slow
response time only happens when a user login. Once the
user login and get the main menu page, the user will
get a good response time. Is it related to KeepAlive
connections. 

Another strange thing is that many threads always show
up in the server status view on the tomcat html
manager page even though I am sure the request has
gone (I tested this by making a request, then close
the browser).

My CPU usage is low when the slowdown is experienced
(Using the top command on this solaris box which has
old solaris operating system 2.6? with 1GB memory.

I set the session timeout time to 5 minutes, but in
the session view of tomcat manager, I see message 30
- 40 minutes:136 sessions. How a session that is
more than 30 minutes is still there. Maybe I don't
understand this message correctly.

Please advice. This is a production machine. Helps are
greatly appreciated.

Thanks.

Jeffrey.



Discover Yahoo! 
Get on-the-go sports scores, stock quotes, news and more. Check it out! 
http://discover.yahoo.com/mobile.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5 slow, it's in production, please help!

2005-05-06 Thread Tony
What does netstat -nt show?
You may have enough connections going that old ones 
have to time out before you can establish a new one.

-Original Message-
From: Jeffrey [mailto:[EMAIL PROTECTED]
Sent: Friday, May 06, 2005 2:16 PM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat 5 slow, it's in production, please help!


I have a apache/tomcat environment that has some
problems recently. The environment has the following:
1.  Apache 1.3
2.  Tomcat 5.0.28 (Max memory 384mb)
3.  JDK 1.4.2_06

My apache has MaxClient set to 256 (apache default).
The maxThread for tomcat is 500. The site is a
database driven site. 

It seems working fine when load is low. But when there
are more than 150 threads (from the sever status view
of the tomcat manager), it's response time is very
slow (5 - 10 minutes). I have tested the database
connections, they seem responding fairly well.

Interesting thing is that most of time the slow
response time only happens when a user login. Once the
user login and get the main menu page, the user will
get a good response time. Is it related to KeepAlive
connections. 

Another strange thing is that many threads always show
up in the server status view on the tomcat html
manager page even though I am sure the request has
gone (I tested this by making a request, then close
the browser).

My CPU usage is low when the slowdown is experienced
(Using the top command on this solaris box which has
old solaris operating system 2.6? with 1GB memory.

I set the session timeout time to 5 minutes, but in
the session view of tomcat manager, I see message 30
- 40 minutes:136 sessions. How a session that is
more than 30 minutes is still there. Maybe I don't
understand this message correctly.

Please advice. This is a production machine. Helps are
greatly appreciated.

Thanks.

Jeffrey.



Discover Yahoo! 
Get on-the-go sports scores, stock quotes, news and more. Check it out! 
http://discover.yahoo.com/mobile.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 slow, it's in production, please help!

2005-05-06 Thread Oto Bossert
Yoo,

Probably you already looked at it but :

1) Make sure not to use reloadable in context descriptions.
2) Start tomcat with optimal java parameters, concerning memory heap and stack
3) Make sure that connections to database are minimal, do requery if
answer is always the
same...

Good luck,

Greetings O. 

On 5/6/05, Jeffrey [EMAIL PROTECTED] wrote:
 I have a apache/tomcat environment that has some
 problems recently. The environment has the following:
 1.  Apache 1.3
 2.  Tomcat 5.0.28 (Max memory 384mb)
 3.  JDK 1.4.2_06
 
 My apache has MaxClient set to 256 (apache default).
 The maxThread for tomcat is 500. The site is a
 database driven site.
 
 It seems working fine when load is low. But when there
 are more than 150 threads (from the sever status view
 of the tomcat manager), it's response time is very
 slow (5 - 10 minutes). I have tested the database
 connections, they seem responding fairly well.
 
 Interesting thing is that most of time the slow
 response time only happens when a user login. Once the
 user login and get the main menu page, the user will
 get a good response time. Is it related to KeepAlive
 connections.
 
 Another strange thing is that many threads always show
 up in the server status view on the tomcat html
 manager page even though I am sure the request has
 gone (I tested this by making a request, then close
 the browser).
 
 My CPU usage is low when the slowdown is experienced
 (Using the top command on this solaris box which has
 old solaris operating system 2.6? with 1GB memory.
 
 I set the session timeout time to 5 minutes, but in
 the session view of tomcat manager, I see message 30
 - 40 minutes:136 sessions. How a session that is
 more than 30 minutes is still there. Maybe I don't
 understand this message correctly.
 
 Please advice. This is a production machine. Helps are
 greatly appreciated.
 
 Thanks.
 
 Jeffrey.
 
 Discover Yahoo!
 Get on-the-go sports scores, stock quotes, news and more. Check it out!
 http://discover.yahoo.com/mobile.html
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 slow, it's in production, please help!

2005-05-06 Thread Oto Bossert
Yoo, 

Sorry bas typo, in 3) I meant, do NOT requery ;)

Greetings O.


On 5/6/05, Oto Bossert [EMAIL PROTECTED] wrote:
 Yoo,
 
 Probably you already looked at it but :
 
 1) Make sure not to use reloadable in context descriptions.
 2) Start tomcat with optimal java parameters, concerning memory heap and stack
 3) Make sure that connections to database are minimal, do requery if
 answer is always the
 same...
 
 Good luck,
 
 Greetings O.
 
 On 5/6/05, Jeffrey [EMAIL PROTECTED] wrote:
  I have a apache/tomcat environment that has some
  problems recently. The environment has the following:
  1.  Apache 1.3
  2.  Tomcat 5.0.28 (Max memory 384mb)
  3.  JDK 1.4.2_06
 
  My apache has MaxClient set to 256 (apache default).
  The maxThread for tomcat is 500. The site is a
  database driven site.
 
  It seems working fine when load is low. But when there
  are more than 150 threads (from the sever status view
  of the tomcat manager), it's response time is very
  slow (5 - 10 minutes). I have tested the database
  connections, they seem responding fairly well.
 
  Interesting thing is that most of time the slow
  response time only happens when a user login. Once the
  user login and get the main menu page, the user will
  get a good response time. Is it related to KeepAlive
  connections.
 
  Another strange thing is that many threads always show
  up in the server status view on the tomcat html
  manager page even though I am sure the request has
  gone (I tested this by making a request, then close
  the browser).
 
  My CPU usage is low when the slowdown is experienced
  (Using the top command on this solaris box which has
  old solaris operating system 2.6? with 1GB memory.
 
  I set the session timeout time to 5 minutes, but in
  the session view of tomcat manager, I see message 30
  - 40 minutes:136 sessions. How a session that is
  more than 30 minutes is still there. Maybe I don't
  understand this message correctly.
 
  Please advice. This is a production machine. Helps are
  greatly appreciated.
 
  Thanks.
 
  Jeffrey.
 
  Discover Yahoo!
  Get on-the-go sports scores, stock quotes, news and more. Check it out!
  http://discover.yahoo.com/mobile.html
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 slow, it's in production, please help!

2005-05-06 Thread e
What JK version do you use?  To quote Mladen:

You are probably using prefork mpm, so there is no way to
control the number of connections to Tomcat in any way, trough
mod_jk. You can limit it only by setting MaxClients in the httpd.conf
to the maximum number desired.
Because of pre-forking mechanism each child process will eventually
establish a single connection to Tomcat, thus the number of connections
will rise from StartServers to MaxClients.

So there are two solutions for prefork.
1. Make maxThreads==MaxClients
2. Add connectionTimeout=2 to AJP connector.

On 5/6/05, Jeffrey [EMAIL PROTECTED] wrote:
 I have a apache/tomcat environment that has some
 problems recently. The environment has the following:
 1.  Apache 1.3
 2.  Tomcat 5.0.28 (Max memory 384mb)
 3.  JDK 1.4.2_06
 
 My apache has MaxClient set to 256 (apache default).
 The maxThread for tomcat is 500. The site is a
 database driven site.
 
 It seems working fine when load is low. But when there
 are more than 150 threads (from the sever status view
 of the tomcat manager), it's response time is very
 slow (5 - 10 minutes). I have tested the database
 connections, they seem responding fairly well.
 
 Interesting thing is that most of time the slow
 response time only happens when a user login. Once the
 user login and get the main menu page, the user will
 get a good response time. Is it related to KeepAlive
 connections.
 
 Another strange thing is that many threads always show
 up in the server status view on the tomcat html
 manager page even though I am sure the request has
 gone (I tested this by making a request, then close
 the browser).
 
 My CPU usage is low when the slowdown is experienced
 (Using the top command on this solaris box which has
 old solaris operating system 2.6? with 1GB memory.
 
 I set the session timeout time to 5 minutes, but in
 the session view of tomcat manager, I see message 30
 - 40 minutes:136 sessions. How a session that is
 more than 30 minutes is still there. Maybe I don't
 understand this message correctly.
 
 Please advice. This is a production machine. Helps are
 greatly appreciated.
 
 Thanks.
 
 Jeffrey.
 
 Discover Yahoo!
 Get on-the-go sports scores, stock quotes, news and more. Check it out!
 http://discover.yahoo.com/mobile.html
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 slow, it's in production, please help!

2005-05-06 Thread Jeffrey
I actually have the reloadable set to true for my
webapps. I will change it to false. Thanks for the
remind. 

What optimal java parameters in your mind are
important ?

Thanks for taking look at this.

--- Oto Bossert [EMAIL PROTECTED] wrote:
 Yoo,
 
 Probably you already looked at it but :
 
 1) Make sure not to use reloadable in context
 descriptions.
 2) Start tomcat with optimal java parameters,
 concerning memory heap and stack
 3) Make sure that connections to database are
 minimal, do requery if
 answer is always the
 same...
 
 Good luck,
 
 Greetings O. 
 
 On 5/6/05, Jeffrey [EMAIL PROTECTED] wrote:
  I have a apache/tomcat environment that has some
  problems recently. The environment has the
 following:
  1.  Apache 1.3
  2.  Tomcat 5.0.28 (Max memory 384mb)
  3.  JDK 1.4.2_06
  
  My apache has MaxClient set to 256 (apache
 default).
  The maxThread for tomcat is 500. The site is a
  database driven site.
  
  It seems working fine when load is low. But when
 there
  are more than 150 threads (from the sever status
 view
  of the tomcat manager), it's response time is very
  slow (5 - 10 minutes). I have tested the database
  connections, they seem responding fairly well.
  
  Interesting thing is that most of time the slow
  response time only happens when a user login. Once
 the
  user login and get the main menu page, the user
 will
  get a good response time. Is it related to
 KeepAlive
  connections.
  
  Another strange thing is that many threads always
 show
  up in the server status view on the tomcat html
  manager page even though I am sure the request has
  gone (I tested this by making a request, then
 close
  the browser).
  
  My CPU usage is low when the slowdown is
 experienced
  (Using the top command on this solaris box which
 has
  old solaris operating system 2.6? with 1GB memory.
  
  I set the session timeout time to 5 minutes, but
 in
  the session view of tomcat manager, I see message
 30
  - 40 minutes:136 sessions. How a session that is
  more than 30 minutes is still there. Maybe I don't
  understand this message correctly.
  
  Please advice. This is a production machine. Helps
 are
  greatly appreciated.
  
  Thanks.
  
  Jeffrey.
  
  Discover Yahoo!
  Get on-the-go sports scores, stock quotes, news
 and more. Check it out!
  http://discover.yahoo.com/mobile.html
  
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 



Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 slow, it's in production, please help!

2005-05-06 Thread Jeffrey
I use just mod_jk, not jk2 I believe. I do have
connectionTimeout=2 set to AJP connector in
server.xml

Is there any performance issues with jk? Should I
switch to jk2?

Thanks.

--- e [EMAIL PROTECTED] wrote:
 What JK version do you use?  To quote Mladen:
 
 You are probably using prefork mpm, so there is no
 way to
 control the number of connections to Tomcat in any
 way, trough
 mod_jk. You can limit it only by setting MaxClients
 in the httpd.conf
 to the maximum number desired.
 Because of pre-forking mechanism each child process
 will eventually
 establish a single connection to Tomcat, thus the
 number of connections
 will rise from StartServers to MaxClients.
 
 So there are two solutions for prefork.
 1. Make maxThreads==MaxClients
 2. Add connectionTimeout=2 to AJP connector.
 
 On 5/6/05, Jeffrey [EMAIL PROTECTED] wrote:
  I have a apache/tomcat environment that has some
  problems recently. The environment has the
 following:
  1.  Apache 1.3
  2.  Tomcat 5.0.28 (Max memory 384mb)
  3.  JDK 1.4.2_06
  
  My apache has MaxClient set to 256 (apache
 default).
  The maxThread for tomcat is 500. The site is a
  database driven site.
  
  It seems working fine when load is low. But when
 there
  are more than 150 threads (from the sever status
 view
  of the tomcat manager), it's response time is very
  slow (5 - 10 minutes). I have tested the database
  connections, they seem responding fairly well.
  
  Interesting thing is that most of time the slow
  response time only happens when a user login. Once
 the
  user login and get the main menu page, the user
 will
  get a good response time. Is it related to
 KeepAlive
  connections.
  
  Another strange thing is that many threads always
 show
  up in the server status view on the tomcat html
  manager page even though I am sure the request has
  gone (I tested this by making a request, then
 close
  the browser).
  
  My CPU usage is low when the slowdown is
 experienced
  (Using the top command on this solaris box which
 has
  old solaris operating system 2.6? with 1GB memory.
  
  I set the session timeout time to 5 minutes, but
 in
  the session view of tomcat manager, I see message
 30
  - 40 minutes:136 sessions. How a session that is
  more than 30 minutes is still there. Maybe I don't
  understand this message correctly.
  
  Please advice. This is a production machine. Helps
 are
  greatly appreciated.
  
  Thanks.
  
  Jeffrey.
  
  Discover Yahoo!
  Get on-the-go sports scores, stock quotes, news
 and more. Check it out!
  http://discover.yahoo.com/mobile.html
  
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5 slow, it's in production, please help!

2005-05-06 Thread Tony


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, May 06, 2005 3:39 PM
To: Jeffrey; Tomcat Users List
Subject: RE: Tomcat 5 slow, it's in production, please help!


There are certainly people here who understand this much better than I, but

ESTABLISHED these connections are doing something or are capable of 
doing
something

TIME WAIT   these connections are in the process of dying
CLOSE WAIT
FIN WAIT 2

They can't do anything useful but do occupy space until they are finally
gone.
If the browser just goes away and doesn't end the connection, the server has
to wait
for a while before ending it and waiting for responses that never come.

-Original Message-
From: Jeffrey [mailto:[EMAIL PROTECTED]
Sent: Friday, May 06, 2005 3:10 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Tomcat 5 slow, it's in production, please help!


Thanks for reply. With netstat -n, I got numerous
records. Please see the attached file if the following
is hard to see.


TCP
   Local AddressRemote AddressSwind Send-Q
Rwind Recv-Q  State
  - --
- -- ---
129.93.1.146.33544   129.93.1.146.12002   32768  0
32768  0 CLOSE_WAIT
129.93.1.146.33572   129.93.1.146.12002   32768  0
32768  0 CLOSE_WAIT
129.93.1.146.33573   129.93.1.146.12002   32768  0
32768  0 CLOSE_WAIT
127.0.0.1.33692  127.0.0.1.8009   32768  0
32768  0 ESTABLISHED
127.0.0.1.8009   127.0.0.1.33692  32768  0
32768  0 ESTABLISHED
127.0.0.1.33694  127.0.0.1.8009   32768  0
32768  0 ESTABLISHED
127.0.0.1.8009   127.0.0.1.33694  32768  0
32768  0 ESTABLISHED
127.0.0.1.33710  127.0.0.1.8009   32768  0
32768  0 ESTABLISHED

[snip]  too much stuff  [snip]

129.93.1.146.443 164.119.68.37.2826   64186  0
 8760  0 TIME_WAIT
129.93.1.146.443 24.27.148.239.2308   16365  0
 8760  0 ESTABLISHED
129.93.1.146.443 164.119.68.37.2919   65535  0
 8658  0 ESTABLISHED
129.93.1.146.36485   64.89.177.72.5   64677  0
 9660  0 TIME_WAIT
127.0.0.1.8007   127.0.0.1.36488  32768  0
32768  0 TIME_WAIT
129.93.1.146.36487   64.89.177.72.5   64677  0
 9660  0 TIME_WAIT
129.93.1.146.443 65.31.230.130.1206   11368  0
 8760  0 FIN_WAIT_2
129.93.1.146.443 65.31.230.12.60763   17520   1087
 8760  0 ESTABLISHED
129.93.1.146.443 129.93.120.170.1460  17520  0
 8658  0 ESTABLISHED
129.93.1.146.36489   64.89.177.72.5   64677  0
 9660  0 TIME_WAIT
127.0.0.1.36336  127.0.0.1.8009   32768  0
32768  0 TIME_WAIT
129.93.1.146.443 24.252.59.10.392316365  0
 8760  0 ESTABLISHED
129.93.1.146.443 69.20.197.189.11999112  0
 9016  0 ESTABLISHED
127.0.0.1.36491  127.0.0.1.8009   32768  0
32768  0 ESTABLISHED
127.0.0.1.8009   127.0.0.1.36491  32768  0
32768  0 ESTABLISHED
129.93.1.146.443 24.208.93.36.955425200  0
 8682  0 ESTABLISHED

--- [EMAIL PROTECTED] wrote:
 What does netstat -nt show?
 You may have enough connections going that old ones
 have to time out before you can establish a new one.

 -Original Message-
 From: Jeffrey [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 06, 2005 2:16 PM
 To: tomcat-user@jakarta.apache.org
 Subject: Tomcat 5 slow, it's in production, please
 help!


 I have a apache/tomcat environment that has some
 problems recently. The environment has the
 following:
 1.  Apache 1.3
 2.  Tomcat 5.0.28 (Max memory 384mb)
 3.  JDK 1.4.2_06

 My apache has MaxClient set to 256 (apache default).
 The maxThread for tomcat is 500. The site is a
 database driven site.

 It seems working fine when load is low. But when
 there
 are more than 150 threads (from the sever status
 view
 of the tomcat manager), it's response time is very
 slow (5 - 10 minutes). I have tested the database
 connections, they seem responding fairly well.

 Interesting thing is that most of time the slow
 response time only happens when a user login. Once
 the
 user login and get the main menu page, the user will
 get a good response time. Is it related to KeepAlive
 connections.

 Another strange thing is that many threads always
 show
 up in the server status view on the tomcat html
 manager page even though I am sure the request has
 gone (I tested this by making a request, then close
 the browser).

 My CPU usage is low when the slowdown is experienced
 (Using the top command on this solaris box which has
 old solaris operating system 2.6? with 1GB memory.

 I set the session timeout time to 5 minutes, but in
 the session view of tomcat manager, I see message
 30
 - 40 minutes:136 sessions. How a session that is
 more than 30 minutes is still there. Maybe I don't
 understand this message correctly.

 Please advice. This is a production machine. Helps

RE: Tomcat 5 slow, it's in production, please help!

2005-05-06 Thread howarddy3
I think some of the problem is at the OS level

You can set a session time at the tomcat level, but the default solaris TCP 
timeouts are hours long.   I hope you used the ndd commands to set the TCP 
parameters for short web sessions.

Also, Solaris 2.6 has a bad thread model and there are numerous patches 
required to run it with  any recent Java 2 distributions.   To use the 1.4.xxx 
JVM would require about a dozen patches.

It would be way better to try to get Solaris 10 installed on this box  -- It 
handles the ndd setting for you and is way faster on the same hardware.  [even 
solaris 8...]


 -- Original message --
From: [EMAIL PROTECTED]
 What does netstat -nt show?
 You may have enough connections going that old ones 
 have to time out before you can establish a new one.
 
 -Original Message-
 From: Jeffrey [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 06, 2005 2:16 PM
 To: tomcat-user@jakarta.apache.org
 Subject: Tomcat 5 slow, it's in production, please help!
 
 
 I have a apache/tomcat environment that has some
 problems recently. The environment has the following:
 1.  Apache 1.3
 2.  Tomcat 5.0.28 (Max memory 384mb)
 3.  JDK 1.4.2_06
 
 My apache has MaxClient set to 256 (apache default).
 The maxThread for tomcat is 500. The site is a
 database driven site. 
 
 It seems working fine when load is low. But when there
 are more than 150 threads (from the sever status view
 of the tomcat manager), it's response time is very
 slow (5 - 10 minutes). I have tested the database
 connections, they seem responding fairly well.
 
 Interesting thing is that most of time the slow
 response time only happens when a user login. Once the
 user login and get the main menu page, the user will
 get a good response time. Is it related to KeepAlive
 connections. 
 
 Another strange thing is that many threads always show
 up in the server status view on the tomcat html
 manager page even though I am sure the request has
 gone (I tested this by making a request, then close
 the browser).
 
 My CPU usage is low when the slowdown is experienced
 (Using the top command on this solaris box which has
 old solaris operating system 2.6? with 1GB memory.
 
 I set the session timeout time to 5 minutes, but in
 the session view of tomcat manager, I see message 30
 - 40 minutes:136 sessions. How a session that is
 more than 30 minutes is still there. Maybe I don't
 understand this message correctly.
 
 Please advice. This is a production machine. Helps are
 greatly appreciated.
 
 Thanks.
 
 Jeffrey.
 
 
   
 Discover Yahoo! 
 Get on-the-go sports scores, stock quotes, news and more. Check it out! 
 http://discover.yahoo.com/mobile.html
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5 slow, it's in production, please help!

2005-05-06 Thread Tony

153 ESTABLISHED connections to port 443
553 connections to port 443 in the process of dying.
1420 connections total  (Assuming I'm reading the output of wc correctly;)

[EMAIL PROTECTED] tony]$ cat netstat.txt |grep ESTABLISHED|wc
6934851   55442
[EMAIL PROTECTED] tony]$ cat netstat.txt |grep CLOSE_WAIT|wc
101 7077980
[EMAIL PROTECTED] tony]$ cat netstat.txt |grep TIME_WAIT|wc
6104270   47590
[EMAIL PROTECTED] tony]$ cat netstat.txt |grep FIN_WAIT|wc
  3  21 237
[EMAIL PROTECTED] tony]$ cat netstat.txt |wc
   14209929  112098

[EMAIL PROTECTED] tony]$ cat netstat.txt |grep 127.0.0.1.8009|grep 
ESTABLISHED|wc
5123584   40960
[EMAIL PROTECTED] tony]$ cat netstat.txt |grep 127.0.0.1.8009|grep WAIT|wc
 25 1751950
[EMAIL PROTECTED] tony]$ cat netstat.txt |grep 129.93.1.146.443|grep WAIT|wc
5533871   43222
[EMAIL PROTECTED] tony]$  cat netstat.txt |grep 129.93.1.146.443|grep 
ESTABLISHED|wc
1531071   12242

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, May 06, 2005 7:00 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Tomcat 5 slow, it's in production, please help!


I think some of the problem is at the OS level

You can set a session time at the tomcat level, but the default solaris TCP
timeouts are hours long.   I hope you used the ndd commands to set the TCP
parameters for short web sessions.

Also, Solaris 2.6 has a bad thread model and there are numerous patches
required to run it with  any recent Java 2 distributions.   To use the
1.4.xxx JVM would require about a dozen patches.

It would be way better to try to get Solaris 10 installed on this box  -- It
handles the ndd setting for you and is way faster on the same hardware.
[even solaris 8...]


 -- Original message --
From: [EMAIL PROTECTED]
 What does netstat -nt show?
 You may have enough connections going that old ones
 have to time out before you can establish a new one.

 -Original Message-
 From: Jeffrey [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 06, 2005 2:16 PM
 To: tomcat-user@jakarta.apache.org
 Subject: Tomcat 5 slow, it's in production, please help!


 I have a apache/tomcat environment that has some
 problems recently. The environment has the following:
 1.  Apache 1.3
 2.  Tomcat 5.0.28 (Max memory 384mb)
 3.  JDK 1.4.2_06

 My apache has MaxClient set to 256 (apache default).
 The maxThread for tomcat is 500. The site is a
 database driven site.

 It seems working fine when load is low. But when there
 are more than 150 threads (from the sever status view
 of the tomcat manager), it's response time is very
 slow (5 - 10 minutes). I have tested the database
 connections, they seem responding fairly well.

 Interesting thing is that most of time the slow
 response time only happens when a user login. Once the
 user login and get the main menu page, the user will
 get a good response time. Is it related to KeepAlive
 connections.

 Another strange thing is that many threads always show
 up in the server status view on the tomcat html
 manager page even though I am sure the request has
 gone (I tested this by making a request, then close
 the browser).

 My CPU usage is low when the slowdown is experienced
 (Using the top command on this solaris box which has
 old solaris operating system 2.6? with 1GB memory.

 I set the session timeout time to 5 minutes, but in
 the session view of tomcat manager, I see message 30
 - 40 minutes:136 sessions. How a session that is
 more than 30 minutes is still there. Maybe I don't
 understand this message correctly.

 Please advice. This is a production machine. Helps are
 greatly appreciated.

 Thanks.

 Jeffrey.



 Discover Yahoo!
 Get on-the-go sports scores, stock quotes, news and more. Check it out!
 http://discover.yahoo.com/mobile.html

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 slow, it's in production, please help!

2005-05-06 Thread Peter Lin
it sounds like the problem is caused by a large number of connections
dying holding things up.

peter

On 5/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
 153 ESTABLISHED connections to port 443
 553 connections to port 443 in the process of dying.
 1420 connections total  (Assuming I'm reading the output of wc correctly;)
 
 [EMAIL PROTECTED] tony]$ cat netstat.txt |grep ESTABLISHED|wc
 6934851   55442
 [EMAIL PROTECTED] tony]$ cat netstat.txt |grep CLOSE_WAIT|wc
 101 7077980
 [EMAIL PROTECTED] tony]$ cat netstat.txt |grep TIME_WAIT|wc
 6104270   47590
 [EMAIL PROTECTED] tony]$ cat netstat.txt |grep FIN_WAIT|wc
   3  21 237
 [EMAIL PROTECTED] tony]$ cat netstat.txt |wc
14209929  112098
 
 [EMAIL PROTECTED] tony]$ cat netstat.txt |grep 127.0.0.1.8009|grep 
 ESTABLISHED|wc
 5123584   40960
 [EMAIL PROTECTED] tony]$ cat netstat.txt |grep 127.0.0.1.8009|grep WAIT|wc
  25 1751950
 [EMAIL PROTECTED] tony]$ cat netstat.txt |grep 129.93.1.146.443|grep WAIT|wc
 5533871   43222
 [EMAIL PROTECTED] tony]$  cat netstat.txt |grep 129.93.1.146.443|grep 
 ESTABLISHED|wc
 1531071   12242
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 06, 2005 7:00 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: RE: Tomcat 5 slow, it's in production, please help!
 
 I think some of the problem is at the OS level
 
 You can set a session time at the tomcat level, but the default solaris TCP
 timeouts are hours long.   I hope you used the ndd commands to set the TCP
 parameters for short web sessions.
 
 Also, Solaris 2.6 has a bad thread model and there are numerous patches
 required to run it with  any recent Java 2 distributions.   To use the
 1.4.xxx JVM would require about a dozen patches.
 
 It would be way better to try to get Solaris 10 installed on this box  -- It
 handles the ndd setting for you and is way faster on the same hardware.
 [even solaris 8...]
 
  -- Original message --
 From: [EMAIL PROTECTED]
  What does netstat -nt show?
  You may have enough connections going that old ones
  have to time out before you can establish a new one.
 
  -Original Message-
  From: Jeffrey [mailto:[EMAIL PROTECTED]
  Sent: Friday, May 06, 2005 2:16 PM
  To: tomcat-user@jakarta.apache.org
  Subject: Tomcat 5 slow, it's in production, please help!
 
 
  I have a apache/tomcat environment that has some
  problems recently. The environment has the following:
  1.  Apache 1.3
  2.  Tomcat 5.0.28 (Max memory 384mb)
  3.  JDK 1.4.2_06
 
  My apache has MaxClient set to 256 (apache default).
  The maxThread for tomcat is 500. The site is a
  database driven site.
 
  It seems working fine when load is low. But when there
  are more than 150 threads (from the sever status view
  of the tomcat manager), it's response time is very
  slow (5 - 10 minutes). I have tested the database
  connections, they seem responding fairly well.
 
  Interesting thing is that most of time the slow
  response time only happens when a user login. Once the
  user login and get the main menu page, the user will
  get a good response time. Is it related to KeepAlive
  connections.
 
  Another strange thing is that many threads always show
  up in the server status view on the tomcat html
  manager page even though I am sure the request has
  gone (I tested this by making a request, then close
  the browser).
 
  My CPU usage is low when the slowdown is experienced
  (Using the top command on this solaris box which has
  old solaris operating system 2.6? with 1GB memory.
 
  I set the session timeout time to 5 minutes, but in
  the session view of tomcat manager, I see message 30
  - 40 minutes:136 sessions. How a session that is
  more than 30 minutes is still there. Maybe I don't
  understand this message correctly.
 
  Please advice. This is a production machine. Helps are
  greatly appreciated.
 
  Thanks.
 
  Jeffrey.
 
 
 
  Discover Yahoo!
  Get on-the-go sports scores, stock quotes, news and more. Check it out!
  http://discover.yahoo.com/mobile.html
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



simple deployment problem - please help

2005-05-04 Thread Guy Katz
hi;

i have tomcat 5.5.9 running with jdk1.4.2

my application is configured in a context element in the server.xml and it is 
deployed twice instead of once!!! (only one context is defined in the 
server.xml)

i have no idea why. 

if i remove the context element from the server.xml and prepare a myapp.xml 
and put it in the conf\Catalina\localhost than it is deployed once but the path 
element is ignored (per spec) and my application is a root application (should 
start when invoking localhost:8080) so its not a good solution.

below is my server.xml and a view of tomcat console output. the server.xml is 
really basic.

i hope someone can please guide me cause i am desperate here.

thanks in advance.

myserver.xml:

Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener /
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
  Listener 
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/
  GlobalNamingResources
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /
  /GlobalNamingResources
  Service name=Catalina
Connector port=8080 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /
Connector port=8009 
   enableLookups=false redirectPort=8443 protocol=AJP/1.3 /
Engine name=Catalina defaultHost=localhost
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 resourceName=UserDatabase/
  Host name=localhost appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false
Context crossContext=false path= docBase=waves debug=0 
reloadable=true
 Resource name=waves/jdbc/WavesDB auth=Container 
type=javax.sql.DataSource
 maxActive=100 maxIdle=30 maxWait=3 
removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true
 username=superadmin password=EJsec6DM 
driverClassName=com.mysql.jdbc.Driver
 
url=jdbc:mysql://localhost/waves?useUnicode=trueamp;characterEncoding=UTF-8amp;autoReconnect=trueamp;/
 ResourceParams name=waves/mail/Session 
 parameter 
   namemail.smtp.host/name 
   valuemail.xwave.co.il/value 
 /parameter
  /ResourceParams
 Realm className=org.apache.catalina.realm.DataSourceRealm debug=99
  dataSourceName=waves/jdbc/WavesDB localDataSource=true
  userTable=users userNameCol=user_name userCredCol=user_pass
  userRoleTable=user_roles roleNameCol=role_name/
/Context
  /Host
/Engine
  /Service
/Server


 

tomcat console output:

INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
04/05/2005 21:49:57 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
2005-05-04 21:50:01 [main] WARN  commons.digester.Digester  - [ConverterRule]{fa
ces-config/converter} Merge(null,java.math.BigDecimal)
2005-05-04 21:50:01 [main] WARN  commons.digester.Digester  - [ConverterRule]{fa
ces-config/converter} Merge(null,java.math.BigInteger)
2005-05-04 21:50:01 [main] WARN  commons.digester.Digester  - [ComponentRule]{fa
ces-config/component} Merge(marquee)
2005-05-04 21:50:01 [main] WARN  commons.digester.Digester  - [ValidatorRule]{fa
ces-config/validator} Merge(emailValidator)
ctx!!! [EMAIL PROTECTED]
2005-05-04 21:50:04 [main] INFO  scheduler.web.SchedulerInitializer  - scheduler
 init complete
trying to find encoding
2005-05-04 21:50:05 [main] INFO  sms.web.EncodingFilter  - encoding
2005-05-04 21:50:10 [main] WARN  commons.digester.Digester  - [ConverterRule]{fa
ces-config/converter} Merge(null,java.math.BigDecimal)
2005-05-04 21:50:10 [main] WARN  commons.digester.Digester  - [ConverterRule]{fa
ces-config/converter} Merge(null,java.math.BigInteger)
2005-05-04 21:50:10 [main] WARN  commons.digester.Digester  - [ComponentRule]{fa
ces-config/component} Merge(marquee)
2005-05-04 21:50:10 [main] WARN  commons.digester.Digester  - [ValidatorRule]{fa
ces-config/validator} Merge(emailValidator)
ctx!!! [EMAIL PROTECTED]
2005-05-04 21:50:13 [main] INFO  scheduler.web.SchedulerInitializer  - scheduler
 init complete
trying to find encoding
2005-05-04 21:50:13 [main] INFO  sms.web.EncodingFilter  - encoding 
04/05/2005 21:50:14 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
04/05/2005 21:50:14 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
04/05/2005 21:50:14 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/90  config=null
04/05/2005 21:50:15 

Re: DBCP Please Help Get Working Properly

2005-04-11 Thread David Smith
Ok, define 'no results'. In reality, the naming import isn't the only 
thing that changed. Your web.xml file *looks* like 2.3 spec from what I 
can see and you are using JSP 2.x spec syntax in your jsp. If you want 
the JSP 2.x spec features, you need to declare your web.xml file for 
servlet 2.4 spec. This should be up at the top of your web.xml (pasted 
from the specification for servlet 2.4):

?xml version=1.0 encoding=ISO-8859-1?
web-app xmlns=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
Then just put all your servlet-mappings, etc., ... after that. The 
taglib declarations need to be inside a jsp-config element for the 2.4 
spec web.xml file too. That's how I'm guessing you have a 2.3 spec 
web.xml file. The full spec can be found at 
http://www.jcp.org/en/jsr/detail?id=154

--David
Scott Purcell wrote:
Hello,
I am trying to use the DBCP features of Tomcat 5.5.7. I created a webapp named 
testDB and put it under $CATALINA_HOME/webapps/testDB. Then I created a 
testDB.xml file under $CATALINA_HOME/conf/Catalina/localhost/testDB.xml.
// here it is
Context path=/testDB docBase=testDB
   debug=5 reloadable=true crossContext=true
 Resource name=jdbc/testDB auth=Container type=javax.sql.DataSource
  maxActive=100 maxIdle=30 maxWait=1
  username=javauser password=javadude 
driverClassName=com.mysql.jdbc.Driver
  url=jdbc:mysql://localhost:3306/fritest?autoReconnect=true/
/Context
I have been following the notes from: 
http://localhost/tomcat-docs/jndi-datasource-examples-howto.html

I made sure I completed the rest of the tasks.
WEB-INF has the two tag locations, and the resource ref.
eg:
   taglib
   taglib-uri/WEB-INF/sql.tld/taglib-uri
   taglib-location/WEB-INF/sql.tld/taglib-location
   /taglib
   taglib
   taglib-uri/WEB-INF/c.tld/taglib-uri
   taglib-location/WEB-INF/c.tld/taglib-location
   /taglib
 resource-ref
 descriptionDB Connection/description
 res-ref-namejdbc/testDB/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
 /resource-ref
I finally hit my jsp page which is this:
%@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql %
%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %
sql:query var=rs dataSource=jdbc/testDB
select id, foo, bar from testdata
/sql:query
html
 head
   titleDB Test/title
 /head
 body
 h2Results/h2
 
c:forEach var=row items=${rs.rows}
   Foo ${row.foo}br/
   Bar ${row.bar}br/
/c:forEach

 /body
/html
And I get no results:
Now I am pretty sure I have all configured. Because if I use a fallback (Tomcat 
4.1) code piece I had, I get results using the same settings:
package foo;
import javax.naming.*;
import javax.sql.*;
import java.sql.*;
public class DBTest {
 String foo = Not Connected;
 int bar = -1;
   
 public void init() {
   try{
 Context ctx = new InitialContext();
 if(ctx == null ) 
 throw new Exception(Boom - No Context);

 DataSource ds = 
   (DataSource)ctx.lookup(
  java:comp/env/jdbc/testDB);

 if (ds != null) {
   Connection conn = ds.getConnection();
 
   if(conn != null)  {
   foo = Got Connection +conn.toString();
   Statement stmt = conn.createStatement();
   ResultSet rst = 
   stmt.executeQuery(
 select id, foo, bar from testdata);
   while(rst.next()) {
  System.out.println(next );
  foo=rst.getString(2);
  bar=rst.getInt(3);
   }
   conn.close();
   }
 }
   }catch(Exception e) {
 e.printStackTrace();
   }
}

public String getFoo() { return foo; }
public int getBar() { return bar;}
}
And using the above class works all day.
The only difference I see is that the class using a naming import and the jsp 
does not. Can anyone help.
Thanks,
Scott




-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Friday, April 08, 2005 1:14 PM
To: Tomcat Users List
Subject: Re: Add Context Path, Tomcat 5.5.7
Hi.
Take a look at this for where to put Context elements:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
This is new with Tomcat 5.0 and is continued in Tomcat 5.5
--David
Scott Purcell wrote:
 

Hello,
I am following the information here to add DBCP to my application.
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html
I am reading to add the Context path=/DBTest ... from the above docs. The 
instructions say to .
Configure the JNDI DataSource in Tomcat by adding a declaration for your 
resource to $CATALINA_HOME/conf/server.xml.
Add this in between the /Context tag of the examples context and the /Host 
tag closing the localhost definition.

So cool, I opened up the server.xml, but do not see any existing context or 
host tags in it. Here is my 

RE: DBCP Please Help Get Working Properly

2005-04-11 Thread Scott Purcell
Thank David for the below information.

This makes some sense, and I will try and make the changes. But this of course 
leads to a follow-up question. Why isn't there any decent documentation to get 
the DBCP running in Tomcat. I am talking about a simple example, that explains 
container versions, jsp versions, possibly better ways to use then putting the 
connection into a JSP page. Connecting in a JSP page is just plain dirty, I 
would like to connect in some class where I can call connections from. Does 
this make sense?

As I mentioned, I followed the example that comes with the documentation for my 
5.5 Tomcat that displays when you go to localhost.

So, is there any good documentation that shows how to do this, step by step?


Thanks,
Scott






-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Monday, April 11, 2005 8:18 AM
To: Tomcat Users List
Subject: Re: DBCP Please Help Get Working Properly


Ok, define 'no results'. In reality, the naming import isn't the only 
thing that changed. Your web.xml file *looks* like 2.3 spec from what I 
can see and you are using JSP 2.x spec syntax in your jsp. If you want 
the JSP 2.x spec features, you need to declare your web.xml file for 
servlet 2.4 spec. This should be up at the top of your web.xml (pasted 
from the specification for servlet 2.4):

?xml version=1.0 encoding=ISO-8859-1?

web-app xmlns=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

Then just put all your servlet-mappings, etc., ... after that. The 
taglib declarations need to be inside a jsp-config element for the 2.4 
spec web.xml file too. That's how I'm guessing you have a 2.3 spec 
web.xml file. The full spec can be found at 
http://www.jcp.org/en/jsr/detail?id=154

--David

Scott Purcell wrote:

Hello,

I am trying to use the DBCP features of Tomcat 5.5.7. I created a webapp named 
testDB and put it under $CATALINA_HOME/webapps/testDB. Then I created a 
testDB.xml file under $CATALINA_HOME/conf/Catalina/localhost/testDB.xml.

// here it is
Context path=/testDB docBase=testDB
debug=5 reloadable=true crossContext=true

  Resource name=jdbc/testDB auth=Container type=javax.sql.DataSource
   maxActive=100 maxIdle=30 maxWait=1
   username=javauser password=javadude 
 driverClassName=com.mysql.jdbc.Driver
   url=jdbc:mysql://localhost:3306/fritest?autoReconnect=true/
/Context

I have been following the notes from: 
http://localhost/tomcat-docs/jndi-datasource-examples-howto.html

I made sure I completed the rest of the tasks.
WEB-INF has the two tag locations, and the resource ref.
eg:

taglib
taglib-uri/WEB-INF/sql.tld/taglib-uri
taglib-location/WEB-INF/sql.tld/taglib-location
/taglib


taglib
taglib-uri/WEB-INF/c.tld/taglib-uri
taglib-location/WEB-INF/c.tld/taglib-location
/taglib

  resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/testDB/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref

I finally hit my jsp page which is this:
%@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql %
%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %

sql:query var=rs dataSource=jdbc/testDB
select id, foo, bar from testdata
/sql:query

html
  head
titleDB Test/title
  /head
  body

  h2Results/h2
  
c:forEach var=row items=${rs.rows}
Foo ${row.foo}br/
Bar ${row.bar}br/
/c:forEach


  /body
/html

And I get no results:

Now I am pretty sure I have all configured. Because if I use a fallback 
(Tomcat 4.1) code piece I had, I get results using the same settings:

package foo;

import javax.naming.*;
import javax.sql.*;
import java.sql.*;

public class DBTest {

  String foo = Not Connected;
  int bar = -1;

  public void init() {
try{
  Context ctx = new InitialContext();
  if(ctx == null ) 
  throw new Exception(Boom - No Context);

  DataSource ds = 
(DataSource)ctx.lookup(
   java:comp/env/jdbc/testDB);

  if (ds != null) {
Connection conn = ds.getConnection();
  
if(conn != null)  {
foo = Got Connection +conn.toString();
Statement stmt = conn.createStatement();
ResultSet rst = 
stmt.executeQuery(
  select id, foo, bar from testdata);
while(rst.next()) {
   System.out.println(next );
   foo=rst.getString(2);
   bar=rst.getInt(3);
}
conn.close();
}
  }
}catch(Exception e) {
  e.printStackTrace();
}
 }

 public String getFoo() { return foo; }
 public int getBar() { return bar;}
}

And using the above class works all day.

The only difference I see is that the class using a naming import

Re: DBCP Please Help Get Working Properly

2005-04-11 Thread David Smith
Well yes it does make a lot of sense, but is more a question answered by 
design patterns.  It's a little beyond the scope of Tomcat docs to 
address issues like separation of roles.  Both Struts and Spring 
projects address issues like this with the Model-View-Controller (MVC) 
pattern and there are innumerable books on the subject as well.  
Specific to data access methods, Hibernate also addresses this issue.

As far as step by step docs, you are best off picking a framework, 
getting a good book on it and go from there.

Hope this helps.
--David
Scott Purcell wrote:
Thank David for the below information.
This makes some sense, and I will try and make the changes. But this of course 
leads to a follow-up question. Why isn't there any decent documentation to get 
the DBCP running in Tomcat. I am talking about a simple example, that explains 
container versions, jsp versions, possibly better ways to use then putting the 
connection into a JSP page. Connecting in a JSP page is just plain dirty, I 
would like to connect in some class where I can call connections from. Does 
this make sense?
As I mentioned, I followed the example that comes with the documentation for my 
5.5 Tomcat that displays when you go to localhost.
So, is there any good documentation that shows how to do this, step by step?
Thanks,
Scott


-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Monday, April 11, 2005 8:18 AM
To: Tomcat Users List
Subject: Re: DBCP Please Help Get Working Properly
Ok, define 'no results'. In reality, the naming import isn't the only 
thing that changed. Your web.xml file *looks* like 2.3 spec from what I 
can see and you are using JSP 2.x spec syntax in your jsp. If you want 
the JSP 2.x spec features, you need to declare your web.xml file for 
servlet 2.4 spec. This should be up at the top of your web.xml (pasted 
from the specification for servlet 2.4):

?xml version=1.0 encoding=ISO-8859-1?
web-app xmlns=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
Then just put all your servlet-mappings, etc., ... after that. The 
taglib declarations need to be inside a jsp-config element for the 2.4 
spec web.xml file too. That's how I'm guessing you have a 2.3 spec 
web.xml file. The full spec can be found at 
http://www.jcp.org/en/jsr/detail?id=154

--David
Scott Purcell wrote:
 

Hello,
I am trying to use the DBCP features of Tomcat 5.5.7. I created a webapp named 
testDB and put it under $CATALINA_HOME/webapps/testDB. Then I created a 
testDB.xml file under $CATALINA_HOME/conf/Catalina/localhost/testDB.xml.
// here it is
Context path=/testDB docBase=testDB
  debug=5 reloadable=true crossContext=true
Resource name=jdbc/testDB auth=Container type=javax.sql.DataSource
 maxActive=100 maxIdle=30 maxWait=1
 username=javauser password=javadude 
driverClassName=com.mysql.jdbc.Driver
 url=jdbc:mysql://localhost:3306/fritest?autoReconnect=true/
/Context
I have been following the notes from: 
http://localhost/tomcat-docs/jndi-datasource-examples-howto.html

I made sure I completed the rest of the tasks.
WEB-INF has the two tag locations, and the resource ref.
eg:
  taglib
  taglib-uri/WEB-INF/sql.tld/taglib-uri
  taglib-location/WEB-INF/sql.tld/taglib-location
  /taglib
  taglib
  taglib-uri/WEB-INF/c.tld/taglib-uri
  taglib-location/WEB-INF/c.tld/taglib-location
  /taglib
resource-ref
descriptionDB Connection/description
res-ref-namejdbc/testDB/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref
I finally hit my jsp page which is this:
%@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql %
%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %
sql:query var=rs dataSource=jdbc/testDB
select id, foo, bar from testdata
/sql:query
html
head
  titleDB Test/title
/head
body
h2Results/h2
c:forEach var=row items=${rs.rows}
  Foo ${row.foo}br/
  Bar ${row.bar}br/
/c:forEach
/body
/html
And I get no results:
Now I am pretty sure I have all configured. Because if I use a fallback (Tomcat 
4.1) code piece I had, I get results using the same settings:
package foo;
import javax.naming.*;
import javax.sql.*;
import java.sql.*;
public class DBTest {
String foo = Not Connected;
int bar = -1;
  
public void init() {
  try{
Context ctx = new InitialContext();
if(ctx == null ) 
throw new Exception(Boom - No Context);

DataSource ds = 
  (DataSource)ctx.lookup(
 java:comp/env/jdbc/testDB);

if (ds != null) {
  Connection conn = ds.getConnection();

  if(conn != null)  {
  foo = Got Connection +conn.toString();
  Statement stmt = conn.createStatement();
  ResultSet rst = 
  stmt.executeQuery(
select id, foo, bar from testdata);
  while

DBCP Please Help Get Working Properly

2005-04-08 Thread Scott Purcell
Hello,

I am trying to use the DBCP features of Tomcat 5.5.7. I created a webapp named 
testDB and put it under $CATALINA_HOME/webapps/testDB. Then I created a 
testDB.xml file under $CATALINA_HOME/conf/Catalina/localhost/testDB.xml.

// here it is
Context path=/testDB docBase=testDB
debug=5 reloadable=true crossContext=true

  Resource name=jdbc/testDB auth=Container type=javax.sql.DataSource
   maxActive=100 maxIdle=30 maxWait=1
   username=javauser password=javadude 
driverClassName=com.mysql.jdbc.Driver
   url=jdbc:mysql://localhost:3306/fritest?autoReconnect=true/
/Context

I have been following the notes from: 
http://localhost/tomcat-docs/jndi-datasource-examples-howto.html

I made sure I completed the rest of the tasks.
WEB-INF has the two tag locations, and the resource ref.
eg:

taglib
taglib-uri/WEB-INF/sql.tld/taglib-uri
taglib-location/WEB-INF/sql.tld/taglib-location
/taglib


taglib
taglib-uri/WEB-INF/c.tld/taglib-uri
taglib-location/WEB-INF/c.tld/taglib-location
/taglib

  resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/testDB/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref

I finally hit my jsp page which is this:
%@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql %
%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %

sql:query var=rs dataSource=jdbc/testDB
select id, foo, bar from testdata
/sql:query

html
  head
titleDB Test/title
  /head
  body

  h2Results/h2
  
c:forEach var=row items=${rs.rows}
Foo ${row.foo}br/
Bar ${row.bar}br/
/c:forEach


  /body
/html

And I get no results:

Now I am pretty sure I have all configured. Because if I use a fallback (Tomcat 
4.1) code piece I had, I get results using the same settings:

package foo;

import javax.naming.*;
import javax.sql.*;
import java.sql.*;

public class DBTest {

  String foo = Not Connected;
  int bar = -1;

  public void init() {
try{
  Context ctx = new InitialContext();
  if(ctx == null ) 
  throw new Exception(Boom - No Context);

  DataSource ds = 
(DataSource)ctx.lookup(
   java:comp/env/jdbc/testDB);

  if (ds != null) {
Connection conn = ds.getConnection();
  
if(conn != null)  {
foo = Got Connection +conn.toString();
Statement stmt = conn.createStatement();
ResultSet rst = 
stmt.executeQuery(
  select id, foo, bar from testdata);
while(rst.next()) {
   System.out.println(next );
   foo=rst.getString(2);
   bar=rst.getInt(3);
}
conn.close();
}
  }
}catch(Exception e) {
  e.printStackTrace();
}
 }

 public String getFoo() { return foo; }
 public int getBar() { return bar;}
}

And using the above class works all day.

The only difference I see is that the class using a naming import and the jsp 
does not. Can anyone help.


Thanks,
Scott









-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Friday, April 08, 2005 1:14 PM
To: Tomcat Users List
Subject: Re: Add Context Path, Tomcat 5.5.7


Hi.

Take a look at this for where to put Context elements:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html

This is new with Tomcat 5.0 and is continued in Tomcat 5.5

--David

Scott Purcell wrote:

Hello,
 
I am following the information here to add DBCP to my application.
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html
 
I am reading to add the Context path=/DBTest ... from the above docs. The 
instructions say to .
 
Configure the JNDI DataSource in Tomcat by adding a declaration for your 
resource to $CATALINA_HOME/conf/server.xml.

Add this in between the /Context tag of the examples context and the /Host 
tag closing the localhost definition.

 

So cool, I opened up the server.xml, but do not see any existing context or 
host tags in it. Here is my server.xml file. Does anyone know where I put the 
Context for the DBCP stuff? Thanks,

'!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --
 
!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.
 
 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --
 
Server port=8005 shutdown=SHUTDOWN
 
  !-- Comment these entries out to disable JMX MBeans support used for the 
   administration web application --
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener /
  Listener 
 

RE: DBCP Please Help Get Working Properly

2005-04-08 Thread Jay Burgess
Do you have anything in your Tomcat log files that might help?  If not, you can
bump up the debug levels in server.xml and you might get some more info.  

I also found that adding one of the two following listeners in my server.xml
helped me debug my DBCP problems (I don't remember which one I added, but it
should be obvious):

Listener
 className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
 debug=9/
Listener 
 className=org.apache.catalina.core.NamingContextListener
 debug=9/

Jay
Vertical Technology Group
http://www.vtgroup.com/

 

-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 08, 2005 3:08 PM
To: Tomcat Users List
Subject: DBCP Please Help Get Working Properly

Hello,

I am trying to use the DBCP features of Tomcat 5.5.7. I created a webapp named
testDB and put it under $CATALINA_HOME/webapps/testDB. Then I created a
testDB.xml file under $CATALINA_HOME/conf/Catalina/localhost/testDB.xml.

// here it is
Context path=/testDB docBase=testDB
debug=5 reloadable=true crossContext=true

  Resource name=jdbc/testDB auth=Container type=javax.sql.DataSource
   maxActive=100 maxIdle=30 maxWait=1
   username=javauser password=javadude
driverClassName=com.mysql.jdbc.Driver
   url=jdbc:mysql://localhost:3306/fritest?autoReconnect=true/
/Context

I have been following the notes from: 
http://localhost/tomcat-docs/jndi-datasource-examples-howto.html

I made sure I completed the rest of the tasks.
WEB-INF has the two tag locations, and the resource ref.
eg:

taglib
taglib-uri/WEB-INF/sql.tld/taglib-uri
taglib-location/WEB-INF/sql.tld/taglib-location
/taglib


taglib
taglib-uri/WEB-INF/c.tld/taglib-uri
taglib-location/WEB-INF/c.tld/taglib-location
/taglib

  resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/testDB/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref

I finally hit my jsp page which is this:
%@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql %
%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %

sql:query var=rs dataSource=jdbc/testDB
select id, foo, bar from testdata
/sql:query

html
  head
titleDB Test/title
  /head
  body

  h2Results/h2
  
c:forEach var=row items=${rs.rows}
Foo ${row.foo}br/
Bar ${row.bar}br/
/c:forEach


  /body
/html

And I get no results:

Now I am pretty sure I have all configured. Because if I use a fallback (Tomcat
4.1) code piece I had, I get results using the same settings:

package foo;

import javax.naming.*;
import javax.sql.*;
import java.sql.*;

public class DBTest {

  String foo = Not Connected;
  int bar = -1;

  public void init() {
try{
  Context ctx = new InitialContext();
  if(ctx == null ) 
  throw new Exception(Boom - No Context);

  DataSource ds = 
(DataSource)ctx.lookup(
   java:comp/env/jdbc/testDB);

  if (ds != null) {
Connection conn = ds.getConnection();
  
if(conn != null)  {
foo = Got Connection +conn.toString();
Statement stmt = conn.createStatement();
ResultSet rst = 
stmt.executeQuery(
  select id, foo, bar from testdata);
while(rst.next()) {
   System.out.println(next );
   foo=rst.getString(2);
   bar=rst.getInt(3);
}
conn.close();
}
  }
}catch(Exception e) {
  e.printStackTrace();
}
 }

 public String getFoo() { return foo; }
 public int getBar() { return bar;}
}

And using the above class works all day.

The only difference I see is that the class using a naming import and the jsp
does not. Can anyone help.


Thanks,
Scott









-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Friday, April 08, 2005 1:14 PM
To: Tomcat Users List
Subject: Re: Add Context Path, Tomcat 5.5.7


Hi.

Take a look at this for where to put Context elements:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html

This is new with Tomcat 5.0 and is continued in Tomcat 5.5

--David

Scott Purcell wrote:

Hello,
 
I am following the information here to add DBCP to my application.
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html
 
I am reading to add the Context path=/DBTest ... from the above docs. The
instructions say to .
 
Configure the JNDI DataSource in Tomcat by adding a declaration for your
resource to $CATALINA_HOME/conf/server.xml.

Add this in between the /Context tag of the examples context and the /Host
tag closing the localhost definition.

 

So cool, I opened up the server.xml, but do not see any existing context or
host tags in it. Here is my server.xml file. Does anyone know where I put the
Context for the DBCP stuff? Thanks,

'!-- Example Server Configuration File --
!-- Note

Re: DBCP Please Help Get Working Properly

2005-04-08 Thread Robert Harrison
Aren't debug levels in TC 5.5  inactive? Will need to set up log4j.

Bob

On Apr 8, 2005 5:15 PM, Jay Burgess [EMAIL PROTECTED] wrote:
 Do you have anything in your Tomcat log files that might help?  If not, you 
 can
 bump up the debug levels in server.xml and you might get some more info.
 
 I also found that adding one of the two following listeners in my server.xml
 helped me debug my DBCP problems (I don't remember which one I added, but it
 should be obvious):
 
 Listener
  className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
  debug=9/
 Listener
  className=org.apache.catalina.core.NamingContextListener
  debug=9/
 
 Jay
 Vertical Technology Group
 http://www.vtgroup.com/
 
 
 -Original Message-
 From: Scott Purcell [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 08, 2005 3:08 PM
 To: Tomcat Users List
 Subject: DBCP Please Help Get Working Properly
 
 Hello,
 
 I am trying to use the DBCP features of Tomcat 5.5.7. I created a webapp named
 testDB and put it under $CATALINA_HOME/webapps/testDB. Then I created a
 testDB.xml file under $CATALINA_HOME/conf/Catalina/localhost/testDB.xml.
 
 // here it is
 Context path=/testDB docBase=testDB
 debug=5 reloadable=true crossContext=true
 
   Resource name=jdbc/testDB auth=Container type=javax.sql.DataSource
maxActive=100 maxIdle=30 maxWait=1
username=javauser password=javadude
 driverClassName=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/fritest?autoReconnect=true/
 /Context
 
 I have been following the notes from:
 http://localhost/tomcat-docs/jndi-datasource-examples-howto.html
 
 I made sure I completed the rest of the tasks.
 WEB-INF has the two tag locations, and the resource ref.
 eg:
 
 taglib
 taglib-uri/WEB-INF/sql.tld/taglib-uri
 taglib-location/WEB-INF/sql.tld/taglib-location
 /taglib
 
 taglib
 taglib-uri/WEB-INF/c.tld/taglib-uri
 taglib-location/WEB-INF/c.tld/taglib-location
 /taglib
 
   resource-ref
   descriptionDB Connection/description
   res-ref-namejdbc/testDB/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
   /resource-ref
 
 I finally hit my jsp page which is this:
 %@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql %
 %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %
 
 sql:query var=rs dataSource=jdbc/testDB
 select id, foo, bar from testdata
 /sql:query
 
 html
   head
 titleDB Test/title
   /head
   body
 
   h2Results/h2
 
 c:forEach var=row items=${rs.rows}
 Foo ${row.foo}br/
 Bar ${row.bar}br/
 /c:forEach
 
   /body
 /html
 
 And I get no results:
 
 Now I am pretty sure I have all configured. Because if I use a fallback 
 (Tomcat
 4.1) code piece I had, I get results using the same settings:
 
 package foo;
 
 import javax.naming.*;
 import javax.sql.*;
 import java.sql.*;
 
 public class DBTest {
 
   String foo = Not Connected;
   int bar = -1;
 
   public void init() {
 try{
   Context ctx = new InitialContext();
   if(ctx == null )
   throw new Exception(Boom - No Context);
 
   DataSource ds =
 (DataSource)ctx.lookup(
java:comp/env/jdbc/testDB);
 
   if (ds != null) {
 Connection conn = ds.getConnection();
 
 if(conn != null)  {
 foo = Got Connection +conn.toString();
 Statement stmt = conn.createStatement();
 ResultSet rst =
 stmt.executeQuery(
   select id, foo, bar from testdata);
 while(rst.next()) {
System.out.println(next );
foo=rst.getString(2);
bar=rst.getInt(3);
 }
 conn.close();
 }
   }
 }catch(Exception e) {
   e.printStackTrace();
 }
  }
 
  public String getFoo() { return foo; }
  public int getBar() { return bar;}
 }
 
 And using the above class works all day.
 
 The only difference I see is that the class using a naming import and the 
 jsp
 does not. Can anyone help.
 
 Thanks,
 Scott
 
 -Original Message-
 From: David Smith [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 08, 2005 1:14 PM
 To: Tomcat Users List
 Subject: Re: Add Context Path, Tomcat 5.5.7
 
 Hi.
 
 Take a look at this for where to put Context elements:
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
 
 This is new with Tomcat 5.0 and is continued in Tomcat 5.5
 
 --David
 
 Scott Purcell wrote:
 
 Hello,
 
 I am following the information here to add DBCP to my application.
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html
 
 I am reading to add the Context path=/DBTest ... from the above docs. The
 instructions say to .
 
 Configure the JNDI DataSource in Tomcat by adding a declaration for your
 resource to $CATALINA_HOME/conf/server.xml.
 
 Add this in between the /Context tag of the examples context and the 
 /Host
 tag

RE: DBCP Please Help Get Working Properly

2005-04-08 Thread Jay Burgess
My apologies, we're using 5.0.x and I hadn't realized they went away.  But maybe
the logs still will provide some useful info?

Jay
Vertical Technology Group
http://www.vtgroup.com/


 

-Original Message-
From: Robert Harrison [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 08, 2005 4:20 PM
To: Tomcat Users List
Subject: Re: DBCP Please Help Get Working Properly

Aren't debug levels in TC 5.5  inactive? Will need to set up log4j.

Bob

On Apr 8, 2005 5:15 PM, Jay Burgess [EMAIL PROTECTED] wrote:
 Do you have anything in your Tomcat log files that might help?  If not, you 
 can
 bump up the debug levels in server.xml and you might get some more info.
 
 I also found that adding one of the two following listeners in my server.xml
 helped me debug my DBCP problems (I don't remember which one I added, but it
 should be obvious):
 
 Listener
  className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
  debug=9/
 Listener
  className=org.apache.catalina.core.NamingContextListener
  debug=9/
 
 Jay
 Vertical Technology Group
 http://www.vtgroup.com/
 
 
 -Original Message-
 From: Scott Purcell [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 08, 2005 3:08 PM
 To: Tomcat Users List
 Subject: DBCP Please Help Get Working Properly
 
 Hello,
 
 I am trying to use the DBCP features of Tomcat 5.5.7. I created a webapp named
 testDB and put it under $CATALINA_HOME/webapps/testDB. Then I created a
 testDB.xml file under $CATALINA_HOME/conf/Catalina/localhost/testDB.xml.
 
 // here it is
 Context path=/testDB docBase=testDB
 debug=5 reloadable=true crossContext=true
 
   Resource name=jdbc/testDB auth=Container type=javax.sql.DataSource
maxActive=100 maxIdle=30 maxWait=1
username=javauser password=javadude
 driverClassName=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/fritest?autoReconnect=true/
 /Context
 
 I have been following the notes from:
 http://localhost/tomcat-docs/jndi-datasource-examples-howto.html
 
 I made sure I completed the rest of the tasks.
 WEB-INF has the two tag locations, and the resource ref.
 eg:
 
 taglib
 taglib-uri/WEB-INF/sql.tld/taglib-uri
 taglib-location/WEB-INF/sql.tld/taglib-location
 /taglib
 
 taglib
 taglib-uri/WEB-INF/c.tld/taglib-uri
 taglib-location/WEB-INF/c.tld/taglib-location
 /taglib
 
   resource-ref
   descriptionDB Connection/description
   res-ref-namejdbc/testDB/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
   /resource-ref
 
 I finally hit my jsp page which is this:
 %@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql %
 %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %
 
 sql:query var=rs dataSource=jdbc/testDB
 select id, foo, bar from testdata
 /sql:query
 
 html
   head
 titleDB Test/title
   /head
   body
 
   h2Results/h2
 
 c:forEach var=row items=${rs.rows}
 Foo ${row.foo}br/
 Bar ${row.bar}br/
 /c:forEach
 
   /body
 /html
 
 And I get no results:
 
 Now I am pretty sure I have all configured. Because if I use a fallback 
 (Tomcat
 4.1) code piece I had, I get results using the same settings:
 
 package foo;
 
 import javax.naming.*;
 import javax.sql.*;
 import java.sql.*;
 
 public class DBTest {
 
   String foo = Not Connected;
   int bar = -1;
 
   public void init() {
 try{
   Context ctx = new InitialContext();
   if(ctx == null )
   throw new Exception(Boom - No Context);
 
   DataSource ds =
 (DataSource)ctx.lookup(
java:comp/env/jdbc/testDB);
 
   if (ds != null) {
 Connection conn = ds.getConnection();
 
 if(conn != null)  {
 foo = Got Connection +conn.toString();
 Statement stmt = conn.createStatement();
 ResultSet rst =
 stmt.executeQuery(
   select id, foo, bar from testdata);
 while(rst.next()) {
System.out.println(next );
foo=rst.getString(2);
bar=rst.getInt(3);
 }
 conn.close();
 }
   }
 }catch(Exception e) {
   e.printStackTrace();
 }
  }
 
  public String getFoo() { return foo; }
  public int getBar() { return bar;}
 }
 
 And using the above class works all day.
 
 The only difference I see is that the class using a naming import and the 
 jsp
 does not. Can anyone help.
 
 Thanks,
 Scott
 
 -Original Message-
 From: David Smith [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 08, 2005 1:14 PM
 To: Tomcat Users List
 Subject: Re: Add Context Path, Tomcat 5.5.7
 
 Hi.
 
 Take a look at this for where to put Context elements:
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
 
 This is new with Tomcat 5.0 and is continued in Tomcat 5.5
 
 --David
 
 Scott Purcell wrote:
 
 Hello,
 
 I am following the information here to add DBCP to my application.

http

Nested tag problem in tomcat 5.0.29..Please help

2005-04-07 Thread Narayan, Satya


 Hi all,
 I am having problem compiling jsp pages with nested struts
 tags.
 Is this a known error ? I have a bean tag within a html tag which is
 causing a problem.
I tried the same web application in 4.1.29 it works perfectly fine but
with 5.0.29 and 5.0.28 it gives unable to compile class.

Somebody please help.

 Has anybody got this error.
 Kindly advise.
 
 Thanks and Regards,
 Satya


RE: Nested tag problem in tomcat 5.0.29..Please help

2005-04-07 Thread Folashade Adeyosoye
Can you post a sample code

-Original Message-
From: Narayan, Satya [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 07, 2005 2:10 AM
To: tomcat-user@jakarta.apache.org
Subject: Nested tag problem in tomcat 5.0.29..Please help



 Hi all,
 I am having problem compiling jsp pages with nested struts
 tags.
 Is this a known error ? I have a bean tag within a html tag which is
 causing a problem.
I tried the same web application in 4.1.29 it works perfectly fine but
with 5.0.29 and 5.0.28 it gives unable to compile class.

Somebody please help.

 Has anybody got this error.
 Kindly advise.
 
 Thanks and Regards,
 Satya


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JDBC connection - Please help

2005-02-22 Thread Reshma Bhatia
Hi,

Looks like you are using the Tomcat Connection pool.
Refer to the attached Readme.txt file and verify that you have done these
steps.
I think it should solve your problem.

Have also attached the server.xml  web.xml files which worked fine for us.
let me know whether ur problem gets solved by this.

-Original Message-
From: deepak suldhal [mailto:[EMAIL PROTECTED]
Sent: Monday, February 21, 2005 11:53 AM
To: tomcat users
Subject: JDBC connection - Please help


Please help me make my first JDBC connection
My web.xml

web-app xmlns=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
  descriptionMySQL Test App/description
  resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/TestDB/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref
/web-app

---
In server.xml I have the following context ( trying to connect to Sybase
database)
Context path=/DBTest docBase=DBTest debug=5 reloadable=true
crossContext=true
Resource name=jdbc/TestDB auth=Container
type=javax.sql.DataSource
maxActive=100 maxIdle=30 maxWait=1
username=javauser password=javadude
driverClassName=com.sybase.jdbc2.jdbc.SybDriver
url=jdbc:sybase:Tds:re2unx188:2025/
/Context

---
I have copied the JDCB drive Jar under
commons/lib
I have a test.jsp as follows

---
%@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql %
%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %
sql:query var=rs dataSource=jdbc/TestDB
select id, foo, bar from testdata
/sql:query
html
  head
titleDB Test/title
  /head
  body
  h2Results/h2

c:forEach var=row items=${rs.rows}
Foo ${row.foo}br/
Bar ${row.bar}br/
/c:forEach
  /body
/html

---
My directory structue is as follows
webapps/DBTest/WEB-INF/web.mxl
  /DBTest/test.jsp

---
And when I try the url
http://localhost:8080/DBTest/test.jsp
I am getting the following errors
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
javax.servlet.ServletException: Unable to get connection, DataSource
invalid: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC
driver of class '' for connect URL 'null'

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
mpl.java:825)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:758)
org.apache.jsp.test_jsp._jspService(test_jsp.java:82)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
24)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
javax.servlet.jsp.JspException: Unable to get connection, DataSource
invalid: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC
driver of class '' for connect URL 'null'

org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(Unk
nown Source)

org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(Unknow
n Source)

org.apache.jsp.test_jsp._jspx_meth_sql_query_0(test_jsp.java:101)
org.apache.jsp.test_jsp._jspService(test_jsp.java:58)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
24)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802


---
My console server display is as follows
eb 20, 2005 10:31:08 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 20, 2005 10:31:08 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1422 ms
Feb 20, 2005 10:31:09 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 20, 2005 10:31:09 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat

SV: JDBC connection - Please help

2005-02-21 Thread Roland Carlsson
Hi!

It sounds like the driver is not in your deployment. Either you put the
driver in your WEB-INF directory of your application or in the
tomcat-installdir/common/lib directory.

Regards
Roland Carlsson


Den 05-02-21 08.31, skrev deepak suldhal [EMAIL PROTECTED]:

 When I write a simple java class to get the driver and connection it works
 fine.
 I am able to retrive row and print them.
  
 But I am not able to get the same on Tomcat server.
 
 Note: forwarded message attached.
 
 Do you Yahoo!?
  The all-new My Yahoo! http://my.yahoo.com  – What will yours do?
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Fwd: JDBC connection - Please help

2005-02-21 Thread Edmon Begoli
Deepak,
This '' and null error means that the Tomcat is not finding the JDBC 
JNDI resource.

This is how to fix this on Tomcat 5.5:
Make sure that you have a Resource element properly configured in your 
context.xml that is in $CATALINA_HOME/conf/ directory.

 Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource
  maxActive=100 maxIdle=30 maxWait=1
  username=someuser password=somepassword driverClassName=your 
driver
  url=proper url for your db's jdbc conventions/
/Context

Make sure it is available to your web app, by setting the references in 
your web.xml.

 resource-ref
 descriptionDB Connection/description
 res-ref-namejdbc/TestDB/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
 /resource-ref

Thank you,
Edmon
http://blogs.ittoolbox.com/eai/software
deepak suldhal wrote:
When I write a simple java class to get the driver and connection it 
works fine.
I am able to retrive row and print them.
But I am not able to get the same on Tomcat server.

Note: forwarded message attached.

Do you Yahoo!?
The all-new My Yahoo! http://my.yahoo.com  What will yours do?

Subject:
JDBC connection - Please help
From:
deepak suldhal [EMAIL PROTECTED]
Date:
Sun, 20 Feb 2005 22:22:48 -0800 (PST)
To:
tomcat users tomcat-user@jakarta.apache.org
To:
tomcat users tomcat-user@jakarta.apache.org
Please help me make my first JDBC connection
My web.xml 

web-app xmlns=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 
 descriptionMySQL Test App/description 
 resource-ref 
 descriptionDB Connection/description 
 res-ref-namejdbc/TestDB/res-ref-name 
 res-typejavax.sql.DataSource/res-type 
 res-authContainer/res-auth 
 /resource-ref 
/web-app 
---
In server.xml I have the following context ( trying to connect to Sybase database)
Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true 
   Resource name=jdbc/TestDB auth=Container 
   type=javax.sql.DataSource 
   maxActive=100 maxIdle=30 maxWait=1 
   username=javauser password=javadude 
   driverClassName=com.sybase.jdbc2.jdbc.SybDriver 
   url=jdbc:sybase:Tds:re2unx188:2025/ 
/Context
---
I have copied the JDCB drive Jar under
commons/lib
I have a test.jsp as follows
--- 
%@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql %
%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %
sql:query var=rs dataSource=jdbc/TestDB
select id, foo, bar from testdata
/sql:query
html
 head
   titleDB Test/title
 /head
 body
 h2Results/h2
 
c:forEach var=row items=${rs.rows}
   Foo ${row.foo}br/
   Bar ${row.bar}br/
/c:forEach
 /body
/html
---
My directory structue is as follows
webapps/DBTest/WEB-INF/web.mxl
 /DBTest/test.jsp
---
And when I try the url
http://localhost:8080/DBTest/test.jsp
I am getting the following errors
description The server encountered an internal error () that prevented 
it from fulfilling this request. 
exception 
javax.servlet.ServletException: Unable to get connection, DataSource 
invalid: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC 
driver of class '' for connect URL 'null'
   
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
   
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
   org.apache.jsp.test_jsp._jspService(test_jsp.java:82)
   
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
   
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
   
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
   
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
   
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause 
javax.servlet.jsp.JspException: Unable to get connection, DataSource 
invalid: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC 
driver of class '' for connect URL 'null'
   
org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(Unknown Source

JDBC connection - Please help

2005-02-20 Thread deepak suldhal
Please help me make my first JDBC connection
My web.xml 
 
web-app xmlns=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 
  descriptionMySQL Test App/description 
  resource-ref 
  descriptionDB Connection/description 
  res-ref-namejdbc/TestDB/res-ref-name 
  res-typejavax.sql.DataSource/res-type 
  res-authContainer/res-auth 
  /resource-ref 
/web-app 
---
In server.xml I have the following context ( trying to connect to Sybase 
database)
Context path=/DBTest docBase=DBTest debug=5 reloadable=true 
crossContext=true 
Resource name=jdbc/TestDB auth=Container 
type=javax.sql.DataSource 
maxActive=100 maxIdle=30 maxWait=1 
username=javauser password=javadude 
driverClassName=com.sybase.jdbc2.jdbc.SybDriver 
url=jdbc:sybase:Tds:re2unx188:2025/ 
/Context
---
I have copied the JDCB drive Jar under
commons/lib
I have a test.jsp as follows
--- 
%@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql %
%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %
sql:query var=rs dataSource=jdbc/TestDB
select id, foo, bar from testdata
/sql:query
html
  head
titleDB Test/title
  /head
  body
  h2Results/h2
  
c:forEach var=row items=${rs.rows}
Foo ${row.foo}br/
Bar ${row.bar}br/
/c:forEach
  /body
/html
---
My directory structue is as follows
webapps/DBTest/WEB-INF/web.mxl
  /DBTest/test.jsp
---
And when I try the url
http://localhost:8080/DBTest/test.jsp
I am getting the following errors
description The server encountered an internal error () that prevented 
it from fulfilling this request. 
exception 
javax.servlet.ServletException: Unable to get connection, DataSource 
invalid: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC 
driver of class '' for connect URL 'null'

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.test_jsp._jspService(test_jsp.java:82)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause 
javax.servlet.jsp.JspException: Unable to get connection, DataSource 
invalid: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC 
driver of class '' for connect URL 'null'

org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(Unknown
 Source)

org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(Unknown 
Source)

org.apache.jsp.test_jsp._jspx_meth_sql_query_0(test_jsp.java:101)
org.apache.jsp.test_jsp._jspService(test_jsp.java:58)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802

---
My console server display is as follows
eb 20, 2005 10:31:08 PM org.apache.coyote.http11.Http11Protocol init 
INFO: Initializing Coyote HTTP/1.1 on http-8080 
Feb 20, 2005 10:31:08 PM org.apache.catalina.startup.Catalina load 
INFO: Initialization processed in 1422 ms 
Feb 20, 2005 10:31:09 PM org.apache.catalina.core.StandardService start 
INFO: Starting service Catalina 
Feb 20, 2005 10:31:09 PM org.apache.catalina.core.StandardEngine start 
INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 
Feb 20, 2005 10:31:09 PM org.apache.catalina.core.StandardHost start 
INFO: XML validation disabled 
Feb 20, 2005 10:31:10 PM org.apache.catalina.core.StandardHost

Fwd: JDBC connection - Please help

2005-02-20 Thread deepak suldhal
When I write a simple java class to get the driver and connection it works fine.
I am able to retrive row and print them.

But I am not able to get the same on Tomcat server. Note: forwarded message attached.
		Do you Yahoo!? 
The all-new My Yahoo! – What will yours do?---BeginMessage---
Please help me make my first JDBC connection
My web.xml 
 
web-app xmlns=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 
  descriptionMySQL Test App/description 
  resource-ref 
  descriptionDB Connection/description 
  res-ref-namejdbc/TestDB/res-ref-name 
  res-typejavax.sql.DataSource/res-type 
  res-authContainer/res-auth 
  /resource-ref 
/web-app 
---
In server.xml I have the following context ( trying to connect to Sybase 
database)
Context path=/DBTest docBase=DBTest debug=5 reloadable=true 
crossContext=true 
Resource name=jdbc/TestDB auth=Container 
type=javax.sql.DataSource 
maxActive=100 maxIdle=30 maxWait=1 
username=javauser password=javadude 
driverClassName=com.sybase.jdbc2.jdbc.SybDriver 
url=jdbc:sybase:Tds:re2unx188:2025/ 
/Context
---
I have copied the JDCB drive Jar under
commons/lib
I have a test.jsp as follows
--- 
%@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql %
%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %
sql:query var=rs dataSource=jdbc/TestDB
select id, foo, bar from testdata
/sql:query
html
  head
titleDB Test/title
  /head
  body
  h2Results/h2
  
c:forEach var=row items=${rs.rows}
Foo ${row.foo}br/
Bar ${row.bar}br/
/c:forEach
  /body
/html
---
My directory structue is as follows
webapps/DBTest/WEB-INF/web.mxl
  /DBTest/test.jsp
---
And when I try the url
http://localhost:8080/DBTest/test.jsp
I am getting the following errors
description The server encountered an internal error () that prevented 
it from fulfilling this request. 
exception 
javax.servlet.ServletException: Unable to get connection, DataSource 
invalid: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC 
driver of class '' for connect URL 'null'

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.test_jsp._jspService(test_jsp.java:82)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause 
javax.servlet.jsp.JspException: Unable to get connection, DataSource 
invalid: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC 
driver of class '' for connect URL 'null'

org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(Unknown
 Source)

org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(Unknown 
Source)

org.apache.jsp.test_jsp._jspx_meth_sql_query_0(test_jsp.java:101)
org.apache.jsp.test_jsp._jspService(test_jsp.java:58)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802

---
My console server display is as follows
eb 20, 2005 10:31:08 PM org.apache.coyote.http11.Http11Protocol init 
INFO: Initializing Coyote HTTP/1.1 on http-8080 
Feb 20, 2005 10:31:08 PM org.apache.catalina.startup.Catalina load 
INFO: Initialization processed in 1422 ms 
Feb 20, 2005 10:31:09 PM org.apache.catalina.core.StandardService start 
INFO: Starting service Catalina 
Feb

FW: Please help for a query in Tomcat. - Problem : Tomcat gets hanged

2005-02-17 Thread Reshma Bhatia

(B
(B -Original Message-
(BFrom:   Reshma Bhatia [mailto:[EMAIL PROTECTED]
(BSent:   Thursday, February 17, 2005 7:36 PM
(BTo: '[EMAIL PROTECTED]'
(BSubject:Please help for a query in Tomcat. - Problem : Tomcat gets 
(Bhanged
(B
(BHi,
(B
(BWe have designed an application which works in Java JSP - Tomcat - Oracle
(Benvironment.
(B
(BOur JSP page has two frames.
(B1). First frame : This is the top frame containing links (displayed as Tabs)
(B2). Second Frame : This is below the top frame and is updated with the
(Bselected link.
(B
(BFor each click on the link a request is submitted and the response is
(Bpopulated in the second frame.
(BThe second frame contains a search criteria and fetches data from the
(Bdatabase.
(B
(BConditions when Tomcat hangs
(B1). When we try clicking on the links very fast
(B2). While the data is being fetched from the database and manipulated and if
(Bwe click on other the links the server gets hang.
(B
(BOur analysis and understanding is :
(BThere would be some threads (requests) whose output was not allowed to be
(Bdisplayed in the second frame due to click on other links which would spawn
(Banother request for the same target.
(BThese requests remain in "Service" state as understood from the
(BTomcat-Manager status.
(BAlso, as per the information given on the link
(Bhttp://forum.java.sun.com/thread.jspa?threadID=454684messageID=2072194
(Bthese requests would "always" remain in Service State.
(B
(BPlease confirm whether our understanding is correct.
(BPlease provide a solution to this problem? Let us know in case any further
(Binformation is needed.
(B
(BThanks and regards,
(BReshma
(B
(B
(B
(Bhttp://www.patni.com
(BWorld-Wide Partnerships. World-Class Solutions.
(B_
(B
(BThis e-mail message may contain proprietary, confidential or legally
(Bprivileged information for the sole use of the person or entity to
(Bwhom this message was originally addressed. Any review, e-transmission
(Bdissemination or other use of or taking of any action in reliance upon
(Bthis information by persons or entities other than the intended
(Brecipient is prohibited. If you have received this e-mail in error
(Bkindly delete  this e-mail from your records. If it appears that this
(Bmail has been forwarded to you without proper authority, please notify
(Bus immediately at [EMAIL PROTECTED] and delete this mail. 
(B_-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: FW: Please help for a query in Tomcat. - Problem : Tomcat gets hanged

2005-02-17 Thread Antony Paul
You can try modifiying the maxProcessors in the connector  element in
conf/server.xml to a higher value to test whether increasing no of
threads solve the problem.

Post Tomcat , Java VM and OS versions.

rgds
Antony Paul


On Fri, 18 Feb 2005 10:14:15 +0530, Reshma Bhatia
[EMAIL PROTECTED] wrote:
 
 
  -Original Message-
 From:   Reshma Bhatia [mailto:[EMAIL PROTECTED]
 Sent:   Thursday, February 17, 2005 7:36 PM
 To: '[EMAIL PROTECTED]'
 Subject:Please help for a query in Tomcat. - Problem : Tomcat gets 
 hanged
 
 Hi,
 
 We have designed an application which works in Java JSP - Tomcat - Oracle
 environment.
 
 Our JSP page has two frames.
 1). First frame : This is the top frame containing links (displayed as Tabs)
 2). Second Frame : This is below the top frame and is updated with the
 selected link.
 
 For each click on the link a request is submitted and the response is
 populated in the second frame.
 The second frame contains a search criteria and fetches data from the
 database.
 
 Conditions when Tomcat hangs
 1). When we try clicking on the links very fast
 2). While the data is being fetched from the database and manipulated and if
 we click on other the links the server gets hang.
 
 Our analysis and understanding is :
 There would be some threads (requests) whose output was not allowed to be
 displayed in the second frame due to click on other links which would spawn
 another request for the same target.
 These requests remain in Service state as understood from the
 Tomcat-Manager status.
 Also, as per the information given on the link
 http://forum.java.sun.com/thread.jspa?threadID=454684messageID=2072194
 these requests would always remain in Service State.
 
 Please confirm whether our understanding is correct.
 Please provide a solution to this problem? Let us know in case any further
 information is needed.
 
 Thanks and regards,
 Reshma
 
 http://www.patni.com
 World-Wide Partnerships. World-Class Solutions.
 _
 
 This e-mail message may contain proprietary, confidential or legally
 privileged information for the sole use of the person or entity to
 whom this message was originally addressed. Any review, e-transmission
 dissemination or other use of or taking of any action in reliance upon
 this information by persons or entities other than the intended
 recipient is prohibited. If you have received this e-mail in error
 kindly delete  this e-mail from your records. If it appears that this
 mail has been forwarded to you without proper authority, please notify
 us immediately at [EMAIL PROTECTED] and delete this mail.
 _
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: FW: Please help for a query in Tomcat. - Problem : Tomcat gets hanged

2005-02-17 Thread Reshma Bhatia
Is there a way to kill the Tomcat threads which have gone into infinite loop
/ hang state.

-Original Message-
From: Antony Paul [mailto:[EMAIL PROTECTED]
Sent: Friday, February 18, 2005 10:26 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: FW: Please help for a query in Tomcat. - Problem : Tomcat gets
hanged


You can try modifiying the maxProcessors in the connector  element in
conf/server.xml to a higher value to test whether increasing no of
threads solve the problem.

Post Tomcat , Java VM and OS versions.

rgds
Antony Paul


On Fri, 18 Feb 2005 10:14:15 +0530, Reshma Bhatia
[EMAIL PROTECTED] wrote:


  -Original Message-
 From:   Reshma Bhatia [mailto:[EMAIL PROTECTED]
 Sent:   Thursday, February 17, 2005 7:36 PM
 To: '[EMAIL PROTECTED]'
 Subject:Please help for a query in Tomcat. - Problem : Tomcat gets
hanged

 Hi,

 We have designed an application which works in Java JSP - Tomcat - Oracle
 environment.

 Our JSP page has two frames.
 1). First frame : This is the top frame containing links (displayed as
Tabs)
 2). Second Frame : This is below the top frame and is updated with the
 selected link.

 For each click on the link a request is submitted and the response is
 populated in the second frame.
 The second frame contains a search criteria and fetches data from the
 database.

 Conditions when Tomcat hangs
 1). When we try clicking on the links very fast
 2). While the data is being fetched from the database and manipulated and
if
 we click on other the links the server gets hang.

 Our analysis and understanding is :
 There would be some threads (requests) whose output was not allowed to be
 displayed in the second frame due to click on other links which would
spawn
 another request for the same target.
 These requests remain in Service state as understood from the
 Tomcat-Manager status.
 Also, as per the information given on the link
 http://forum.java.sun.com/thread.jspa?threadID=454684messageID=2072194
 these requests would always remain in Service State.

 Please confirm whether our understanding is correct.
 Please provide a solution to this problem? Let us know in case any further
 information is needed.

 Thanks and regards,
 Reshma

 http://www.patni.com
 World-Wide Partnerships. World-Class Solutions.
 _

 This e-mail message may contain proprietary, confidential or legally
 privileged information for the sole use of the person or entity to
 whom this message was originally addressed. Any review, e-transmission
 dissemination or other use of or taking of any action in reliance upon
 this information by persons or entities other than the intended
 recipient is prohibited. If you have received this e-mail in error
 kindly delete  this e-mail from your records. If it appears that this
 mail has been forwarded to you without proper authority, please notify
 us immediately at [EMAIL PROTECTED] and delete this mail.
 _


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete  this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at [EMAIL PROTECTED] and delete this mail. 
_

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: FW: Please help for a query in Tomcat. - Problem : Tomcat gets hanged

2005-02-17 Thread Antony Paul
To best of my knowledge you can't. Even if you shutdown Tomcat it will
wait till the threads finish their work.

rgds
Antony Paul


On Fri, 18 Feb 2005 11:41:04 +0530, Reshma Bhatia
[EMAIL PROTECTED] wrote:
 Is there a way to kill the Tomcat threads which have gone into infinite loop
 / hang state.
 
 -Original Message-
 From: Antony Paul [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 18, 2005 10:26 AM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: Re: FW: Please help for a query in Tomcat. - Problem : Tomcat gets
 hanged
 
 You can try modifiying the maxProcessors in the connector  element in
 conf/server.xml to a higher value to test whether increasing no of
 threads solve the problem.
 
 Post Tomcat , Java VM and OS versions.
 
 rgds
 Antony Paul
 
 On Fri, 18 Feb 2005 10:14:15 +0530, Reshma Bhatia
 [EMAIL PROTECTED] wrote:
 
 
   -Original Message-
  From:   Reshma Bhatia [mailto:[EMAIL PROTECTED]
  Sent:   Thursday, February 17, 2005 7:36 PM
  To: '[EMAIL PROTECTED]'
  Subject:Please help for a query in Tomcat. - Problem : Tomcat gets
 hanged
 
  Hi,
 
  We have designed an application which works in Java JSP - Tomcat - Oracle
  environment.
 
  Our JSP page has two frames.
  1). First frame : This is the top frame containing links (displayed as
 Tabs)
  2). Second Frame : This is below the top frame and is updated with the
  selected link.
 
  For each click on the link a request is submitted and the response is
  populated in the second frame.
  The second frame contains a search criteria and fetches data from the
  database.
 
  Conditions when Tomcat hangs
  1). When we try clicking on the links very fast
  2). While the data is being fetched from the database and manipulated and
 if
  we click on other the links the server gets hang.
 
  Our analysis and understanding is :
  There would be some threads (requests) whose output was not allowed to be
  displayed in the second frame due to click on other links which would
 spawn
  another request for the same target.
  These requests remain in Service state as understood from the
  Tomcat-Manager status.
  Also, as per the information given on the link
  http://forum.java.sun.com/thread.jspa?threadID=454684messageID=2072194
  these requests would always remain in Service State.
 
  Please confirm whether our understanding is correct.
  Please provide a solution to this problem? Let us know in case any further
  information is needed.
 
  Thanks and regards,
  Reshma
 
  http://www.patni.com
  World-Wide Partnerships. World-Class Solutions.
  _
 
  This e-mail message may contain proprietary, confidential or legally
  privileged information for the sole use of the person or entity to
  whom this message was originally addressed. Any review, e-transmission
  dissemination or other use of or taking of any action in reliance upon
  this information by persons or entities other than the intended
  recipient is prohibited. If you have received this e-mail in error
  kindly delete  this e-mail from your records. If it appears that this
  mail has been forwarded to you without proper authority, please notify
  us immediately at [EMAIL PROTECTED] and delete this mail.
  _
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 http://www.patni.com
 World-Wide Partnerships. World-Class Solutions.
 _
 
 This e-mail message may contain proprietary, confidential or legally
 privileged information for the sole use of the person or entity to
 whom this message was originally addressed. Any review, e-transmission
 dissemination or other use of or taking of any action in reliance upon
 this information by persons or entities other than the intended
 recipient is prohibited. If you have received this e-mail in error
 kindly delete  this e-mail from your records. If it appears that this
 mail has been forwarded to you without proper authority, please notify
 us immediately at [EMAIL PROTECTED] and delete this mail.
 _
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: FW: Please help for a query in Tomcat. - Problem : Tomcat gets hanged

2005-02-17 Thread Caldarale, Charles R
 From: Antony Paul [mailto:[EMAIL PROTECTED]
 Subject: Re: FW: Please help for a query in Tomcat. - Problem : Tomcat gets 
 hanged
 
 To best of my knowledge you can't. Even if you shutdown Tomcat it will
 wait till the threads finish their work.

Not quite true.  You can use the kill command on UNIX/Linux to terminate the 
process, or in Windows, CTRL-c to stop the .bat file, or the Services console 
to stop the service, or Task Manager to terminate almost anything.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



please help -SEVERE: Parse error in application web.xml - webapp does not start after cpanel upgrade

2005-01-17 Thread Carlos Martins
After upgrading cpanel on the server, tomcat throws the error message
attached. I swear I did not change a thing in my web.xml file. Never the
less tomcat says I now have an error in the /servlet tag.

I forward the error and the contects of my web.xml. please help, if you
can.

Sincerely yours
Carlos

This is the error:
Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 949 ms
Jan 17, 2005 12:01:28 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 17, 2005 12:01:28 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
Jan 17, 2005 12:01:28 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.ContextConfig
defaultConfig
INFO: No default web.xml
Jan 17, 2005 12:01:28 PM org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.Container
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1340)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1189)
at
org.apache.commons.digester.SetNextRule.end(SetNextRule.java:243)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at
org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown
Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unk
nown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfi
g.java:263)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:624)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j
ava:216)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:119)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4290
)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at
org.apache.catalina.core.StandardService.start(StandardService.java:480)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.ContextConfig
applicationConfig
SEVERE: Parse error in application web.xml
java.lang.ClassNotFoundException: org.apache.catalina.Container
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:25
40)
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:25
66)
at
org.apache.commons.digester.Digester.endElement(Digester.java:1061)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown
Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unk
nown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source

Developing a large project using Tomcat, please help me

2005-01-17 Thread GPezzini
Hi,
we are developing a large java project using Tomcat.
On the same project works several persons and the project counts
serveral thousand of classes.

The project has (in few words) three big places:
- standard: the place in which are placed all the classes (not jar but
classes)
- patches: the places in which are places the bug-fixes of standard classes
- work in progress: the place in which a developer develop his own
modification to a standard class

Each developer has its own Tomcat.

Now, imagine that
- in standard classes is there a class named: helpme.class
- this class has been bug-fixed and in  patches is there the same class
- a developer is working on its own local copy of this class and he has
  places it in his own work-in-progress folder

Is possible using Tomcat to manage a situation like that?
In other word, If I develop using j2SE standard, to obtaint what i want,  I
simply set my CLASSPATH
env variable in this way;

set
CLASSPATH=x:\MyWorkInProgress\classes;x:\AllPatches\classes;x:\Standard\classes


And java default classpath ensure me that it loads helpme.class first
looking in WowkInProgress,
than, if not found, in AllPatches, than, if not found in standard

Is it possible during Tomcat runtime to have something like that (possibly
WITHOUT using jar)

Thank you very much in advance.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 startup crash, please help

2004-12-29 Thread Ben Souther
There is actually a listing in Bugzilla this.
Would you mind adding your findings to it?
http://issues.apache.org/bugzilla/show_bug.cgi?id=30052
If this is a jsvc bug, your data might help to find it.

That's a pretty old Linux distribution.
I remember having trouble with Sun's jdk on either RH7.0 or RH7.1
There was a fairly buggy release of the gclib libraries in one of them.
Are you able to try your app on a more recent Linux distribution for
comparison?










On Wed, 2004-12-29 at 01:30, Michael Kastner wrote:
 Hello Jacob,
 
 thanks for your reply,
 
 Jacob Kjome schrieb:
   A stack trace or some other error report would help.  It's a bit vague
   when you simply describe it.  Show the evidence and you will be more
   likely to get assistance.
 
 that's what I did yesterday, but got no response at all. Then I figured 
 I might have given too much information on the problem.
 
 So, here's the information on the problem:
 
 configuration: tomcat 5.0.28
 redhat linux 7.1
 vm: 1.4.2_03
 
 I'm trying to install tomcat 5.0. Everything works fine as far as using 
 the startup and shutdown scripts provided.
 
 However, when I try to start the server as a linux daemon with jsvc, the 
 server crashes.
 
 The catalina.out-log says:
 
 quote
 
 
 Another exception has been detected while we were handling last error.
 
 
 Dumping information about last error:
 ERROR REPORT FILE = (N/A)
 PC= 0x400b0646
 SIGNAL= 11
 FUNCTION NAME = (N/A)
 OFFSET= 0x
 LIBRARY NAME  = (N/A)
 Please check ERROR REPORT FILE for further information, if there is any.
 Good bye.
 pure virtual method called
 jsvc.exec error: Service exit with a return value of 255
 
 /quote
 
 But then again, if I remove the ajp connector entry in server.xml, jsvc 
 and the tomcat just work fine.
 
 If I try to start the server again after it has crashed once, the 
 catalina.out-log says:
 
 An unexpected exception has been detected in native code outside the VM.
 Unexpected Signal : 11 occurred at PC=0x400B0646
 Function=(null)+0x400B0646
 Library=/lib/i686/libc.so.6
 
 
 
 NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
 
 
 
 
 
 
 Current Java thread:
  at 
 org.apache.xerces.dom.DeferredDocumentImpl.getNodeObject(Unknown Source)
  at 
 org.apache.xerces.dom.DeferredDocumentImpl.synchronizeChildren(Unknown 
 Source)
  at 
 org.apache.xerces.dom.CoreDocumentImpl.getDocumentElement(Unknown Source)
  at 
 org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute(MbeansDescriptorsDOMSource.java:132)
  at 
 org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDescriptors(MbeansDescriptorsDOMSource.java:120)
  at org.apache.commons.modeler.Registry.load(Registry.java:819)
  at 
 org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:931)
  at 
 org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:909)
  at 
 org.apache.commons.modeler.Registry.findDescriptor(Registry.java:992)
  at 
 org.apache.commons.modeler.Registry.findManagedBean(Registry.java:696)
  at 
 org.apache.commons.modeler.Registry.findManagedBean(Registry.java:1047)
  at 
 org.apache.commons.modeler.Registry.registerComponent(Registry.java:859)
  at 
 org.apache.commons.modeler.Registry.registerComponent(Registry.java:346)
  at 
 org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1514)
  at 
 org.apache.catalina.core.StandardService.start(StandardService.java:489)
  - locked 0x44cc7428 (a [Lorg.apache.catalina.Connector;)
  at 
 org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
  - locked 0x44ce5510 (a [Lorg.apache.catalina.Service;)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at 
 org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:218)
 
 
 Does anyone have a clue?
 
 To me, this looks like a problem with jsvc and ajp.
 
 I do have another instance of 

init() method returns null for the init-param, please help

2004-12-28 Thread Raasi Potluri
I have written a simple servlet which reads a init
parameter from the web.xml file and displays on the
browser. I'm a beginner and trying to learn simple
servlets, I have reached where I can read some init
params from the web.xml file and displays on the
browser, but all the simple servlets are working
without any hassle, but reading init parameter returns
null in the servlet, because I triend to print that on
to the console, but it returns null, please help me,
awaiting a reply, regards Raasi

web.xml looks like this

[code]

?xml version=1.0 encoding=ISO-8859-1?
 
web-app xmlns=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
 
  display-nameWelcome to Tomcat/display-name
  description
 Welcome to Tomcat
  /description
 
 
!-- JSPC servlet mappings start --
 
servlet
   
servlet-nameorg.apache.jsp.index_jsp/servlet-name
   
servlet-classorg.apache.jsp.index_jsp/servlet-class
/servlet
 
 
servlet

servlet-nameInternationalizedHelloWorld/servlet-name

servlet-classcom.jspbook.InternationalizedHelloWorld/servlet-class
init-param
   param-namegreeting/param-name
   param-valueKisahairetu/param-value
/init-param
/servlet
   
 
 
servlet-mapping

servlet-nameInternationalizedHelloWorld/servlet-name

url-pattern/InternationalizedHelloWorld/url-pattern
/servlet-mapping
 
 
servlet-mapping
   
servlet-nameorg.apache.jsp.index_jsp/servlet-name
url-pattern/index.jsp/url-pattern
/servlet-mapping
 
!-- JSPC servlet mappings end --
 
/web-app
 
[/code]

[code]

and here is my servlet looks like this


package com.jspbook;
 
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
 
public class InternationalizedHelloWorld extends
HttpServlet {
 
private String greeting;
 
 
public void init(ServletConfig config) throws
ServletException {
 
// Always call super.init
 
super.init(config);
 
greeting = config.getInitParameter(greeting);
 
if (greeting == null) {
greeting = returns null;
}
 
}
 
 
public void doGet(HttpServletRequest request,
HttpServletResponse response) throws IOException,
ServletException {
 
response.setContentType(text/html);
 
PrintWriter out = response.getWriter();
 
//  String greeting;
 
//  greeting = getInitParameter(greeting);
 
//  greeting =
getServletContext().getInitParameter(greeting);
 

if(greeting != null) {
 
System.out.println(lopaliki vachav);

out.println(html);
out.println(head);
out.println(titleGreeting Servlet/title);
out.println(/head);
out.println(body);
out.println(h1 + greeting + /h1);
out.println(/body);
out.println(/html);
 
}
 
else {
 
System.out.println(bayate unnav);
 
out.println(html);
out.println(head);
out.println(titleGreeting Servlet/title);
out.println(/head);
out.println(body);
out.println(h1Emiledura Dunna/h1);
out.println(/body);
out.println(/html);


}   

 }
  }
 [/code]



__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5 startup crash, please help

2004-12-28 Thread Michael Kastner
Hello,
I am desperate, for I have been trying to find a solution to this 
problem for two weeks now. Can anybody help me with this?

Tomcat 5 crashes as it is starting up using jsvc. It does not crash if I 
start Tomcat 5 as a regular application. It could be connected to struts 
and database connections, since it seems to be starting fine until the 
applications initialize the connections.

Any hint or help is very much appreciated
Michael Kastner
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 startup crash, please help

2004-12-28 Thread Jacob Kjome
A stack trace or some other error report would help.  It's a bit vague when 
you simply describe it.  Show the evidence and you will be more likely to 
get assistance.

Jake
At 06:54 AM 12/29/2004 +0100, you wrote:
Hello,

I am desperate, for I have been trying to find a solution to this
problem for two weeks now. Can anybody help me with this?

Tomcat 5 crashes as it is starting up using jsvc. It does not crash if I
start Tomcat 5 as a regular application. It could be connected to struts
and database connections, since it seems to be starting fine until the
applications initialize the connections.

Any hint or help is very much appreciated

Michael Kastner


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 startup crash, please help

2004-12-28 Thread Michael Kastner
Hello Jacob,
thanks for your reply,
Jacob Kjome schrieb:
 A stack trace or some other error report would help.  It's a bit vague
 when you simply describe it.  Show the evidence and you will be more
 likely to get assistance.
that's what I did yesterday, but got no response at all. Then I figured 
I might have given too much information on the problem.

So, here's the information on the problem:
configuration: tomcat 5.0.28
   redhat linux 7.1
   vm: 1.4.2_03
I'm trying to install tomcat 5.0. Everything works fine as far as using 
the startup and shutdown scripts provided.

However, when I try to start the server as a linux daemon with jsvc, the 
server crashes.

The catalina.out-log says:
quote

Another exception has been detected while we were handling last error.
Dumping information about last error:
ERROR REPORT FILE = (N/A)
PC= 0x400b0646
SIGNAL= 11
FUNCTION NAME = (N/A)
OFFSET= 0x
LIBRARY NAME  = (N/A)
Please check ERROR REPORT FILE for further information, if there is any.
Good bye.
pure virtual method called
jsvc.exec error: Service exit with a return value of 255
/quote
But then again, if I remove the ajp connector entry in server.xml, jsvc 
and the tomcat just work fine.

If I try to start the server again after it has crashed once, the 
catalina.out-log says:

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x400B0646
Function=(null)+0x400B0646
Library=/lib/i686/libc.so.6

NOTE: We are unable to locate the function name symbol for the error
  just occurred. Please refer to release documentation for possible
  reason and solutions.


Current Java thread:
at 
org.apache.xerces.dom.DeferredDocumentImpl.getNodeObject(Unknown Source)
at 
org.apache.xerces.dom.DeferredDocumentImpl.synchronizeChildren(Unknown 
Source)
at 
org.apache.xerces.dom.CoreDocumentImpl.getDocumentElement(Unknown Source)
at 
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute(MbeansDescriptorsDOMSource.java:132)
at 
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDescriptors(MbeansDescriptorsDOMSource.java:120)
at org.apache.commons.modeler.Registry.load(Registry.java:819)
at 
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:931)
at 
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:909)
at 
org.apache.commons.modeler.Registry.findDescriptor(Registry.java:992)
at 
org.apache.commons.modeler.Registry.findManagedBean(Registry.java:696)
at 
org.apache.commons.modeler.Registry.findManagedBean(Registry.java:1047)
at 
org.apache.commons.modeler.Registry.registerComponent(Registry.java:859)
at 
org.apache.commons.modeler.Registry.registerComponent(Registry.java:346)
at 
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1514)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:489)
- locked 0x44cc7428 (a [Lorg.apache.catalina.Connector;)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
- locked 0x44ce5510 (a [Lorg.apache.catalina.Service;)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:218)

Does anyone have a clue?
To me, this looks like a problem with jsvc and ajp.
I do have another instance of tomcat running on this system, but I've 
changed the port numbers.

Any hint or help is very much appreciated.
Michael Kastner
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


can anybody please help me!!

2004-12-27 Thread Raasi Potluri
Dear Friends,

I have written a simple servlet which reads a init
parameter from the web.xml file and displays on the
browser. I'm a beginner and trying to learn simple
servlets, I have reached where I can read some init
params from the web.xml file and displays on the
browser, but all the simple servlets are working
without any hassle, but reading init parameter returns
null in the servlet, because I triend to print that on
to the console, but it returns null, please help me,
awaiting a reply, regards Raasi

web.xml looks like this

?xml version=1.0 encoding=ISO-8859-1?
!--
  Copyright 2004 The Apache Software Foundation

  Licensed under the Apache License, Version 2.0 (the
License);
  you may not use this file except in compliance with
the License.
  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in
writing, software
  distributed under the License is distributed on an
AS IS BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
express or implied.
  See the License for the specific language governing
permissions and
  limitations under the License.
--

web-app xmlns=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

  display-nameWelcome to Tomcat/display-name
  description
 Welcome to Tomcat
  /description


!-- JSPC servlet mappings start --

servlet
   
servlet-nameorg.apache.jsp.index_jsp/servlet-name
   
servlet-classorg.apache.jsp.index_jsp/servlet-class
/servlet

servlet-mapping
   
servlet-nameorg.apache.jsp.index_jsp/servlet-name
url-pattern/index.jsp/url-pattern
/servlet-mapping


servlet
servlet-nameHelloServlet/servlet-name
servlet-classHelloServlet/servlet-class
/servlet


servlet-mapping
servlet-nameHelloServlet/servlet-name
url-pattern/HelloServlet/url-pattern
/servlet-mapping

servlet

servlet-nameInternationalizedHelloWorld/servlet-name

servlet-classcom.jspbook.InternationalizedHelloWorld/servlet-class
init-param
   param-namegreeting/param-name
   param-valueKisahairetu/param-value
/init-param
/servlet

servlet-mapping

servlet-nameInternationalizedHelloWorld/servlet-name

url-pattern/InternationalizedHelloWorld/url-pattern
/servlet-mapping

!-- JSPC servlet mappings end --

/web-app




__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: can anybody please help me!!

2004-12-27 Thread Hardik Tank
Hi,

Are you using init() method of the servlet for
fetching init parameters like this?

String str =
getServletConfig().getInitParameter(param1);


Rgrds,
Hardik


--- Raasi Potluri [EMAIL PROTECTED] wrote:

 Dear Friends,
 
 I have written a simple servlet which reads a init
 parameter from the web.xml file and displays on the
 browser. I'm a beginner and trying to learn simple
 servlets, I have reached where I can read some init
 params from the web.xml file and displays on the
 browser, but all the simple servlets are working
 without any hassle, but reading init parameter
 returns
 null in the servlet, because I triend to print that
 on
 to the console, but it returns null, please help me,
 awaiting a reply, regards Raasi
 
 web.xml looks like this
 
 ?xml version=1.0 encoding=ISO-8859-1?
 !--
   Copyright 2004 The Apache Software Foundation
 
   Licensed under the Apache License, Version 2.0
 (the
 License);
   you may not use this file except in compliance
 with
 the License.
   You may obtain a copy of the License at
 
   http://www.apache.org/licenses/LICENSE-2.0
 
   Unless required by applicable law or agreed to in
 writing, software
   distributed under the License is distributed on an
 AS IS BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 either
 express or implied.
   See the License for the specific language
 governing
 permissions and
   limitations under the License.
 --
 
 web-app xmlns=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
 
   display-nameWelcome to Tomcat/display-name
   description
  Welcome to Tomcat
   /description
 
 
 !-- JSPC servlet mappings start --
 
 servlet


servlet-nameorg.apache.jsp.index_jsp/servlet-name


servlet-classorg.apache.jsp.index_jsp/servlet-class
 /servlet
 
 servlet-mapping


servlet-nameorg.apache.jsp.index_jsp/servlet-name
 url-pattern/index.jsp/url-pattern
 /servlet-mapping
 
 
 servlet
 servlet-nameHelloServlet/servlet-name
 servlet-classHelloServlet/servlet-class
 /servlet
 
 
 servlet-mapping
 servlet-nameHelloServlet/servlet-name
 url-pattern/HelloServlet/url-pattern
 /servlet-mapping
 
 servlet
 

servlet-nameInternationalizedHelloWorld/servlet-name
 

servlet-classcom.jspbook.InternationalizedHelloWorld/servlet-class
   init-param
  param-namegreeting/param-name
  param-valueKisahairetu/param-value
   /init-param
 /servlet
 
 servlet-mapping
 

servlet-nameInternationalizedHelloWorld/servlet-name
 

url-pattern/InternationalizedHelloWorld/url-pattern
 /servlet-mapping
 
 !-- JSPC servlet mappings end --
 
 /web-app
 
 
 
   
 __ 
 Do you Yahoo!? 
 Yahoo! Mail - Helps protect you from nasty viruses. 
 http://promotions.yahoo.com/new_mail
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 




__ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: can anybody please help me!!

2004-12-27 Thread Raasi Potluri
Hello Hardik,

thanks for your reply, yeas, I'm using the same code
as you written,

thanx eversomuch, please help me out

the code looks like this

[code]


package com.jspbook;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class InternationalizedHelloWorld extends
HttpServlet {

public void doGet(HttpServletRequest request,
HttpServletResponse response) throws IOException,
ServletException {

response.setContentType(text/html);

PrintWriter out = response.getWriter();

String greeting;

greeting =
getServletConfig().getInitParameter(greeting);

if(greeting != null) {

System.out.println(lopaliki vachav);

out.println(html);
out.println(head);
out.println(titleShabbu Bhai/title);
out.println(/head);
out.println(body);
out.println(h1 + greeting + /h1);
out.println(/body);
out.println(/html);

}

else {

System.out.println(bayate unnav);

out.println(html);
out.println(head);
out.println(titleShabbu Bhai/title);
out.println(/head);
out.println(body);
out.println(h1Emiledura Dunna/h1);
out.println(/body);
out.println(/html);


}   

 }
  }


[code]


--- Hardik Tank [EMAIL PROTECTED] wrote:

 Hi,
 
 Are you using init() method of the servlet for
 fetching init parameters like this?
 
 String str =
 getServletConfig().getInitParameter(param1);
 
 
 Rgrds,
 Hardik
 
 
 --- Raasi Potluri [EMAIL PROTECTED] wrote:
 
  Dear Friends,
  
  I have written a simple servlet which reads a init
  parameter from the web.xml file and displays on
 the
  browser. I'm a beginner and trying to learn simple
  servlets, I have reached where I can read some
 init
  params from the web.xml file and displays on the
  browser, but all the simple servlets are working
  without any hassle, but reading init parameter
  returns
  null in the servlet, because I triend to print
 that
  on
  to the console, but it returns null, please help
 me,
  awaiting a reply, regards Raasi
  
  web.xml looks like this
  
  ?xml version=1.0 encoding=ISO-8859-1?
  !--
Copyright 2004 The Apache Software Foundation
  
Licensed under the Apache License, Version 2.0
  (the
  License);
you may not use this file except in compliance
  with
  the License.
You may obtain a copy of the License at
  
http://www.apache.org/licenses/LICENSE-2.0
  
Unless required by applicable law or agreed to
 in
  writing, software
distributed under the License is distributed on
 an
  AS IS BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  either
  express or implied.
See the License for the specific language
  governing
  permissions and
limitations under the License.
  --
  
  web-app xmlns=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
  
display-nameWelcome to Tomcat/display-name
description
   Welcome to Tomcat
/description
  
  
  !-- JSPC servlet mappings start --
  
  servlet
 
 

servlet-nameorg.apache.jsp.index_jsp/servlet-name
 
 

servlet-classorg.apache.jsp.index_jsp/servlet-class
  /servlet
  
  servlet-mapping
 
 

servlet-nameorg.apache.jsp.index_jsp/servlet-name
  url-pattern/index.jsp/url-pattern
  /servlet-mapping
  
  
  servlet
  servlet-nameHelloServlet/servlet-name
 
 servlet-classHelloServlet/servlet-class
  /servlet
  
  
  servlet-mapping
  servlet-nameHelloServlet/servlet-name
  url-pattern/HelloServlet/url-pattern
  /servlet-mapping
  
  servlet
  
 

servlet-nameInternationalizedHelloWorld/servlet-name
  
 

servlet-classcom.jspbook.InternationalizedHelloWorld/servlet-class
  init-param
 param-namegreeting/param-name
 param-valueKisahairetu/param-value
  /init-param
  /servlet
  
  servlet-mapping
  
 

servlet-nameInternationalizedHelloWorld/servlet-name
  
 

url-pattern/InternationalizedHelloWorld/url-pattern
  /servlet-mapping
  
  !-- JSPC servlet mappings end --
  
  /web-app
  
  
  
  
  __ 
  Do you Yahoo!? 
  Yahoo! Mail - Helps protect you from nasty
 viruses. 
  http://promotions.yahoo.com/new_mail
  
 

-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 
   
 __ 
 Do you Yahoo!? 
 Yahoo! Mail - 250MB free storage. Do more. Manage
 less. 
 http://info.mail.yahoo.com/mail_250
 

-
 To unsubscribe, e

Re: can anybody please help me!!

2004-12-27 Thread Hardik Tank
Hi,

Use init(ServletConfig config) method of servlet for
init parameters. bcs, init parameters will be set only
once it is initialised... so, u have to do the same in
the init() method only...

thanks.

--- Raasi Potluri [EMAIL PROTECTED] wrote:

 Hello Hardik,
 
 thanks for your reply, yeas, I'm using the same code
 as you written,
 
 thanx eversomuch, please help me out
 
 the code looks like this
 
 [code]
 
 
 package com.jspbook;
 
 import java.io.*;
 import javax.servlet.*;
 import javax.servlet.http.*;
 
 public class InternationalizedHelloWorld extends
 HttpServlet {
 
 public void doGet(HttpServletRequest request,
 HttpServletResponse response) throws IOException,
 ServletException {
 
   response.setContentType(text/html);
 
   PrintWriter out = response.getWriter();
 
   String greeting;
 
   greeting =
 getServletConfig().getInitParameter(greeting);
   
   if(greeting != null) {
 
   System.out.println(lopaliki vachav);
   
   out.println(html);
   out.println(head);
   out.println(titleShabbu Bhai/title);
   out.println(/head);
   out.println(body);
   out.println(h1 + greeting + /h1);
   out.println(/body);
   out.println(/html);
 
   }
 
   else {
 
   System.out.println(bayate unnav);
 
   out.println(html);
   out.println(head);
   out.println(titleShabbu Bhai/title);
   out.println(/head);
   out.println(body);
   out.println(h1Emiledura Dunna/h1);
   out.println(/body);
   out.println(/html);
   
   
   }   
   
  }
   }
 
 
 [code]
 
 
 --- Hardik Tank [EMAIL PROTECTED] wrote:
 
  Hi,
  
  Are you using init() method of the servlet for
  fetching init parameters like this?
  
  String str =
  getServletConfig().getInitParameter(param1);
  
  
  Rgrds,
  Hardik
  
  
  --- Raasi Potluri [EMAIL PROTECTED] wrote:
  
   Dear Friends,
   
   I have written a simple servlet which reads a
 init
   parameter from the web.xml file and displays on
  the
   browser. I'm a beginner and trying to learn
 simple
   servlets, I have reached where I can read some
  init
   params from the web.xml file and displays on the
   browser, but all the simple servlets are working
   without any hassle, but reading init parameter
   returns
   null in the servlet, because I triend to print
  that
   on
   to the console, but it returns null, please help
  me,
   awaiting a reply, regards Raasi
   
   web.xml looks like this
   
   ?xml version=1.0 encoding=ISO-8859-1?
   !--
 Copyright 2004 The Apache Software Foundation
   
 Licensed under the Apache License, Version 2.0
   (the
   License);
 you may not use this file except in compliance
   with
   the License.
 You may obtain a copy of the License at
   
 http://www.apache.org/licenses/LICENSE-2.0
   
 Unless required by applicable law or agreed to
  in
   writing, software
 distributed under the License is distributed
 on
  an
   AS IS BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
   either
   express or implied.
 See the License for the specific language
   governing
   permissions and
 limitations under the License.
   --
   
   web-app xmlns=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
   
 display-nameWelcome to Tomcat/display-name
 description
Welcome to Tomcat
 /description
   
   
   !-- JSPC servlet mappings start --
   
   servlet
  
  
 

servlet-nameorg.apache.jsp.index_jsp/servlet-name
  
  
 

servlet-classorg.apache.jsp.index_jsp/servlet-class
   /servlet
   
   servlet-mapping
  
  
 

servlet-nameorg.apache.jsp.index_jsp/servlet-name
   url-pattern/index.jsp/url-pattern
   /servlet-mapping
   
   
   servlet
  
 servlet-nameHelloServlet/servlet-name
  
  servlet-classHelloServlet/servlet-class
   /servlet
   
   
   servlet-mapping
  
 servlet-nameHelloServlet/servlet-name
   url-pattern/HelloServlet/url-pattern
   /servlet-mapping
   
   servlet
   
  
 

servlet-nameInternationalizedHelloWorld/servlet-name
   
  
 

servlet-classcom.jspbook.InternationalizedHelloWorld/servlet-class
 init-param
param-namegreeting/param-name
param-valueKisahairetu/param-value
 /init-param
   /servlet
   
   servlet-mapping
   
  
 

servlet-nameInternationalizedHelloWorld/servlet-name
   
  
 

url-pattern/InternationalizedHelloWorld/url-pattern
   /servlet-mapping
   
   !-- JSPC servlet mappings end --
   
   /web-app
   
   
   
 
   __ 
   Do you Yahoo!? 
   Yahoo! Mail - Helps protect you from nasty
  viruses. 
   http://promotions.yahoo.com/new_mail

Please help me

2004-12-13 Thread Rajesh
Hai all,
i have a doubt please help me.
in my tomcat server, am developing a online shopping site.
the site is live,
i periodically upload updated pages, when uploading i donot want to down 
the server,

i use a way that creating 2 webapps, one will run, i upload the updated 
pages to webapp 2 afteruploading i go to webapp1 and point it to webapp2 
when i need to upload second time ill upload to webapp 1 and i will make 
point from webapp2 to webapp 1 .

is there any way to do this affectively ??
Please reply
Rajesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Please help me

2004-12-13 Thread VTR Ravi Kumar
I dont think u would have to shut down the server to upload files.
The context must be reloadable ie., set the reloadable = true in the context 
using the
admin page

VTR
BHEL haridwar
- Original Message - 
From: Rajesh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 13, 2004 2:25 PM
Subject: Please help me


Hai all,
i have a doubt please help me.
in my tomcat server, am developing a online shopping site.
the site is live,
i periodically upload updated pages, when uploading i donot want to down 
the server,

i use a way that creating 2 webapps, one will run, i upload the updated 
pages to webapp 2 afteruploading i go to webapp1 and point it to webapp2 
when i need to upload second time ill upload to webapp 1 and i will make 
point from webapp2 to webapp 1 .

is there any way to do this affectively ??
Please reply
Rajesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Please help me

2004-12-13 Thread Rajesh
i tryed but sometimes it gives error when i restart(restarting webapp) 
it works good

or is it possible to display a page for any request to the server or a 
perticular webapp that

site is under maintanance please visit in few minutes
is it possible?
Rajesh
VTR Ravi Kumar wrote:
I dont think u would have to shut down the server to upload files.
The context must be reloadable ie., set the reloadable = true in the 
context using the
admin page

VTR
BHEL haridwar
- Original Message - From: Rajesh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 13, 2004 2:25 PM
Subject: Please help me

Hai all,
i have a doubt please help me.
in my tomcat server, am developing a online shopping site.
the site is live,
i periodically upload updated pages, when uploading i donot want to 
down the server,

i use a way that creating 2 webapps, one will run, i upload the 
updated pages to webapp 2 afteruploading i go to webapp1 and point it 
to webapp2 when i need to upload second time ill upload to webapp 1 
and i will make point from webapp2 to webapp 1 .

is there any way to do this affectively ??
Please reply
Rajesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Please help me

2004-12-13 Thread Hari Mailvaganam
You can load balance between the two instances.

cheers,

Hari Mailvaganam


On Mon, 13 Dec 2004 16:29:16 +0530, Rajesh [EMAIL PROTECTED] wrote:
 i tryed but sometimes it gives error when i restart(restarting webapp)
 it works good
 
 or is it possible to display a page for any request to the server or a
 perticular webapp that
 
 site is under maintanance please visit in few minutes
 
 is it possible?
 
 Rajesh
 
 
 
 VTR Ravi Kumar wrote:
 
  I dont think u would have to shut down the server to upload files.
  The context must be reloadable ie., set the reloadable = true in the
  context using the
  admin page
 
 
  VTR
  BHEL haridwar
  - Original Message - From: Rajesh [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, December 13, 2004 2:25 PM
  Subject: Please help me
 
 
  Hai all,
 
  i have a doubt please help me.
 
  in my tomcat server, am developing a online shopping site.
 
  the site is live,
 
  i periodically upload updated pages, when uploading i donot want to
  down the server,
 
  i use a way that creating 2 webapps, one will run, i upload the
  updated pages to webapp 2 afteruploading i go to webapp1 and point it
  to webapp2 when i need to upload second time ill upload to webapp 1
  and i will make point from webapp2 to webapp 1 .
 
  is there any way to do this affectively ??
 
  Please reply
  Rajesh
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat5.5/xp/starting problem Please help me

2004-12-13 Thread birendar . waldiya

Hi, 
I am getting following error while starting tomcat .. beasides i have a 
lot of other issues   can anyone look and guide me  what do do ?

I  am also sending  web.xml 


Dec 14, 2004 4:43:43 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 14, 2004 4:43:43 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 860 ms
Dec 14, 2004 4:43:43 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 14, 2004 4:43:43 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.4
Dec 14, 2004 4:43:43 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Dec 14, 2004 4:43:44 PM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: 
[org.apache.webapp.balancer.RuleChain: [org.apa
che.webapp.balancer.rules.URLStringMatchRule: Target string: News / 
Redirect URL: http://www.cnn.com], [org.apache.
webapp.balancer.rules.RequestParameterRule: Target param name: paramName / 
Target param value: paramValue / Redirec
t URL: http://www.yahoo.com], 
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: 
http://jakarta.
apache.org]]
Dec 14, 2004 4:43:44 PM org.apache.tomcat.util.digester.Digester 
fatalError
SEVERE: Parse Fatal Error at line 39 column 5: The element type servlet 
must be terminated by the matching end-ta
g /servlet.
org.xml.sax.SAXParseException: The element type servlet must be 
terminated by the matching end-tag /servlet.
at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.
java:236)
at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
at 
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmen
tScannerImpl.java:1219)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatc
h(XMLDocumentFragmentScannerImpl.java:1685)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentS
cannerImpl.java:368)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)




==CONTENT OF  web.xml 
++




?xml version=1.0 encoding=ISO-8859-1?
!--
  Copyright 2004 The Apache Software Foundation

  Licensed under the Apache License, Version 2.0 (the License);
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an AS IS BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
--

web-app xmlns=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

  display-nameWelcome to Tomcat/display-name
  description Welcome to Tomcat /description

!-- ACTION SERVLET SERVLET MAPPINGS START --

 

servlet
servlet-nameaction/servlet-name
 servlet-classorg.apache.struts.action.ActionServlet/servlet-class

init-param
param-nameconfig/param-name
param-value/WEB-INF/struts-config.xml/param-value
/init-param

/init-param
param-nameapplication/param-name
 param-valuesrc.tcs.beans.ApplicationResources/param-value
/init-param

 init-param
 param-namedebug/param-name
 param-value2/param-value
 /init-param

 init-param
 param-namedetail/param-name
 param-value2/param-value
 /init-param
 
load-on-startup1/load-on-startup

/servlet

servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping

!-- JSPC servlet mappings end --


 !-- Tag Lib List --

  taglib
taglib-uri/WEB-INF/struts-html.tld/taglib-uri
 taglib-location/WEB-INF/struts-html.tld/taglib-location
  /taglib
   taglib

RE: Tomcat5.5/xp/starting problem Please help me

2004-12-13 Thread Allistair Crossley
stop this 
   /init-param

/init-param

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 14 December 2004 11:16
 To: Tomcat Users List
 Subject: Tomcat5.5/xp/starting problem Please help me
 
 
 
 Hi, 
 I am getting following error while starting tomcat .. 
 beasides i have a 
 lot of other issues   can anyone look and guide me  what do do ?
 
 I  am also sending  web.xml 
 
 
 Dec 14, 2004 4:43:43 PM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on http-8080
 Dec 14, 2004 4:43:43 PM org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 860 ms
 Dec 14, 2004 4:43:43 PM org.apache.catalina.core.StandardService start
 INFO: Starting service Catalina
 Dec 14, 2004 4:43:43 PM org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/5.5.4
 Dec 14, 2004 4:43:43 PM org.apache.catalina.core.StandardHost start
 INFO: XML validation disabled
 Dec 14, 2004 4:43:44 PM 
 org.apache.catalina.core.ApplicationContext log
 INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: 
 [org.apache.webapp.balancer.RuleChain: [org.apa
 che.webapp.balancer.rules.URLStringMatchRule: Target string: News / 
 Redirect URL: http://www.cnn.com], [org.apache.
 webapp.balancer.rules.RequestParameterRule: Target param 
 name: paramName / 
 Target param value: paramValue / Redirec
 t URL: http://www.yahoo.com], 
 [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: 
 http://jakarta.
 apache.org]]
 Dec 14, 2004 4:43:44 PM org.apache.tomcat.util.digester.Digester 
 fatalError
 SEVERE: Parse Fatal Error at line 39 column 5: The element 
 type servlet 
 must be terminated by the matching end-ta
 g /servlet.
 org.xml.sax.SAXParseException: The element type servlet must be 
 terminated by the matching end-tag /servlet.
 at 
 com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.cr
 eateSAXParseException(ErrorHandlerWrapper.
 java:236)
 at 
 com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fa
 talError(ErrorHandlerWrapper.java:215)
 at 
 com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.repor
 tError(XMLErrorReporter.java:386)
 at 
 com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.repor
 tError(XMLErrorReporter.java:316)
 at 
 com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatal
 Error(XMLScanner.java:1438)
 at 
 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentSca
 nnerImpl.scanEndElement(XMLDocumentFragmen
 tScannerImpl.java:1219)
 at 
 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentSca
 nnerImpl$FragmentContentDispatcher.dispatc
 h(XMLDocumentFragmentScannerImpl.java:1685)
 at 
 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentSca
 nnerImpl.scanDocument(XMLDocumentFragmentS
 cannerImpl.java:368)
 at 
 com.sun.org.apache.xerces.internal.parsers.XML11Configuration.
 parse(XML11Configuration.java:834)
 
 
 
 
 ==CONTENT OF  web.xml 
 ++
 
 
 
 
 ?xml version=1.0 encoding=ISO-8859-1?
 !--
   Copyright 2004 The Apache Software Foundation
 
   Licensed under the Apache License, Version 2.0 (the License);
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at
 
   http://www.apache.org/licenses/LICENSE-2.0
 
   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an AS IS BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 
 express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 --
 
 web-app xmlns=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
 
   display-nameWelcome to Tomcat/display-name
   description Welcome to Tomcat /description
 
 !-- ACTION SERVLET SERVLET MAPPINGS START --
 
  
 
 servlet
 servlet-nameaction/servlet-name
  servlet-classorg.apache.struts.action.ActionServlet/servlet-class
 
 init-param
 param-nameconfig/param-name
 param-value/WEB-INF/struts-config.xml/param-value
 /init-param
 
 /init-param
 param-nameapplication/param-name
  param-valuesrc.tcs.beans.ApplicationResources/param-value
 /init-param
 
  init-param
  param-namedebug/param-name
  param-value2/param-value
  /init-param
 
  init-param
  param-namedetail/param-name
  param-value2/param-value
  /init-param
  
 load-on-startup1/load

Re: Tomcat5.5/xp/starting problem Please help me

2004-12-13 Thread David Smith
This error can be found using an xml validator. 

Specifically:
   init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config.xml/param-value
   /init-param
   /init-param
   param-nameapplication/param-name
param-valuesrc.tcs.beans.ApplicationResources/param-value
   /init-param
Your second init-param block is opened with an ending tag.
--David
[EMAIL PROTECTED] wrote:
Hi, 
I am getting following error while starting tomcat .. beasides i have a 
lot of other issues   can anyone look and guide me  what do do ?

I  am also sending  web.xml 

Dec 14, 2004 4:43:43 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 14, 2004 4:43:43 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 860 ms
Dec 14, 2004 4:43:43 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 14, 2004 4:43:43 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.4
Dec 14, 2004 4:43:43 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Dec 14, 2004 4:43:44 PM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: 
[org.apache.webapp.balancer.RuleChain: [org.apa
che.webapp.balancer.rules.URLStringMatchRule: Target string: News / 
Redirect URL: http://www.cnn.com], [org.apache.
webapp.balancer.rules.RequestParameterRule: Target param name: paramName / 
Target param value: paramValue / Redirec
t URL: http://www.yahoo.com], 
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: 
http://jakarta.
apache.org]]
Dec 14, 2004 4:43:44 PM org.apache.tomcat.util.digester.Digester 
fatalError
SEVERE: Parse Fatal Error at line 39 column 5: The element type servlet 
must be terminated by the matching end-ta
g /servlet.
org.xml.sax.SAXParseException: The element type servlet must be 
terminated by the matching end-tag /servlet.
   at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.
java:236)
   at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
   at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
   at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
   at 
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438)
   at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmen
tScannerImpl.java:1219)
   at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatc
h(XMLDocumentFragmentScannerImpl.java:1685)
   at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentS
cannerImpl.java:368)
   at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)


==CONTENT OF  web.xml 
++


?xml version=1.0 encoding=ISO-8859-1?
!--
 Copyright 2004 The Apache Software Foundation
 Licensed under the Apache License, Version 2.0 (the License);
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
 http://www.apache.org/licenses/LICENSE-2.0
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an AS IS BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
--
web-app xmlns=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

 display-nameWelcome to Tomcat/display-name
 description Welcome to Tomcat /description
!-- ACTION SERVLET SERVLET MAPPINGS START --

   servlet
   servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
   init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config.xml/param-value
   /init-param
   /init-param
   param-nameapplication/param-name
param-valuesrc.tcs.beans.ApplicationResources/param-value
   /init-param
init-param
param-namedebug/param-name
param-value2/param-value
/init-param
init-param
param-namedetail/param-name
param-value2/param-value
/init-param
   

Please Help: Using SSL in servlets

2004-11-21 Thread Michal Ziv
Hi,
I'm a newbie to ssl, here is the scenario:
server:
linux redhat 8 
tomcat 4.1.29
axis 1.1
webservice in java
server.keystore

client:
mandrake 9.2
tomcat 4.1.29
servlet
client.keystore

when using webservice from command line it works perfectly, but when running 
the same code from a servlet, it doesn't find truststore.
in both cases the full path is given, all jars are accessible to code.
can anyone please help?
thanks 
michal

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Please Help: Using SSL in servlets

2004-11-21 Thread QM
On Sun, Nov 21, 2004 at 10:31:14AM +0200, Michal Ziv wrote:
: when using webservice from command line it works perfectly, but when running 
: the same code from a servlet, it doesn't find truststore.
: in both cases the full path is given, all jars are accessible to code.
: can anyone please help?

Yes, but you must first help us to help you: please post relevant files
(in this case, the web.xml from the app that doesn't work) and give a
more detailed problem description.

You'd be surprised how many SSL problems are caused by typos in web.xml,
e.g. trusttore instead truststore.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Please help...

2004-11-12 Thread Ken Keefe
I have been struggling with Tomcat for several days and I am at the end
of my rope. If I come across as irritated, I apologize in advance. 

I simply want to learn how to write JSP. I have a book and I want to
start working through it, but I am having trouble setting up a server to
serve JSP. I currently run Apache to serve HTML and PHP. Ideally, I'd
simply like Apache to start recognizing JSP and handling it
appropriately. Unfortunately that seems to not be an easy task... I have
tried using mod_jk to connect Tomcat and Apache, with no luck.

I finally gave up on trying to use Apache and I was just going to keep
them separate. Now, how do I tell Tomcat to serve my jsp files??? I
tried using the manager web program to add an application pointing to
the correct directory, it accepts the command, but nothing is added to
the application list and it doesn't serve the content like I expected it
to.

Finally I said screw it, I'll simply put my experiment files in the
document root of Tomcat and use that for now. Still no luck, it serves
up the same default stuff, even when I rename the file. 

My environment is the following: Fedora Core 2, Apache 2.0.51, Tomcat
5.5.4, JDK 1.5.0. 

Ideally I'd like to do what I talked about earlier, having Apache
automagically know what to do with *.jsp files. However, I'll take
what I can get!

Thank you very much in advance. I can't explain how damned aggravating
this whole thing has been.

Ken


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Please help...

2004-11-12 Thread Benson Margulies
Just run a standalone tomcat. Connecting to Apache is real work and you
don't need it.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Please help...

2004-11-12 Thread Randall Svancara
Tomcat is organized differently than Apache.  First of all Apache has a
document root, where you can put all of your php and html files in.
With tomcat, the directory structure is different.  If you want to get
started with tomcat, I suggest first creating directory under the
webapps directory of your tomcat installation.  For this example, lets
call it test.  Under test we will create a WEB-INF directory.  The
WEB-INF directory contains basically the configuration file for your web
application you will be creating in the test directory.  In the WEB-INF
folder, create a file called web.xml.  So at this point you should have
directory structure that looks like this.

Test
WEB-INF
web.xml


Now edit the web.xml file to contain the following:

---snip

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
  display-nameA test web application/display-name
  description
 Your test web application
  /description
/web-app

---snip


Now that you have an empty web application container set up, add some
jsp files.
Keep in mind that everything under the WEB-INF directory is protected by
tomcat.  You would not want someone to browse through your configuration
now would you?

For simplicity sake, lets create a test jsp page now.  Create a file
called index.jsp directly under the directory test.  This is what your
directory structure should look like now under your test directory:

Test
index.jsp
WEB-INF
web.xml



Lets add some content under your test.jsp.  We will combine some html
with java code to demonstrate how things work.

[EMAIL PROTECTED] contentType=text/html% !-- page directive --
[EMAIL PROTECTED] pageEncoding=UTF-8%

html
headtitleYour first cool page/title/head
body
%out.println(Hello world)% !-- jsp code --


/body
/html


Ok, make sure you have tomcat started.  On windows, go to services and
see if the service is running.  On linux, type ps -ef or ps -aux on
unix.  If it is not running, you need to start this service for your
platform.  

Next, browse to the machine where you have tomcat installed.  It might
be on the same machine your programming on.  http://localhost:8080/test/

You should see hello world now.  By default, Tomcat runs on port 8080.
You must specify the port number in your browser.  You can configure
Tomcat to run on port 80 if you wish, but that is out of the scope of
this document.  Oops, I just read you are using fedora core.  I am using
fedora core.  I have apache and tomcat set up to talk to each other
using mod_jk2.  I can send you my configuration files if you wish.  

I hope this was not too basic for you.  


Randall


 

-Original Message-
From: Ken Keefe [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 12, 2004 1:14 PM
To: [EMAIL PROTECTED]
Subject: Please help...

I have been struggling with Tomcat for several days and I am at the end
of my rope. If I come across as irritated, I apologize in advance. 

I simply want to learn how to write JSP. I have a book and I want to
start working through it, but I am having trouble setting up a server to
serve JSP. I currently run Apache to serve HTML and PHP. Ideally, I'd
simply like Apache to start recognizing JSP and handling it
appropriately. Unfortunately that seems to not be an easy task... I have
tried using mod_jk to connect Tomcat and Apache, with no luck.

I finally gave up on trying to use Apache and I was just going to keep
them separate. Now, how do I tell Tomcat to serve my jsp files??? I
tried using the manager web program to add an application pointing to
the correct directory, it accepts the command, but nothing is added to
the application list and it doesn't serve the content like I expected it
to.

Finally I said screw it, I'll simply put my experiment files in the
document root of Tomcat and use that for now. Still no luck, it serves
up the same default stuff, even when I rename the file. 

My environment is the following: Fedora Core 2, Apache 2.0.51, Tomcat
5.5.4, JDK 1.5.0. 

Ideally I'd like to do what I talked about earlier, having Apache
automagically know what to do with *.jsp files. However, I'll take
what I can get!

Thank you very much in advance. I can't explain how damned aggravating
this whole thing has been.

Ken


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Please help...

2004-11-12 Thread Didier McGillis
First get familiar with Tomcat, its very daunting of a task connection 
apache and tomcat with mod_jk2, but not impossible.  Use tomcat standalone, 
the one guy had a pretty straightforward and easy way of doing it, after you 
get :8080/test/ working you can move to serving over port 80 with Tomcat, 
then if you want to dive in and do apache+tomcat+mod_jk2 I would suggest you 
look at these places.

http://www.cymulacrum.net/writings/tomcat5/book1.html
http://www.linuxjava.net/howto/webapp/
http://johnturner.com/howto/apache-tomcat-howto.html
there are more, many more.  start slow, nothing more frustrating then 
getting something to work and then doing 30 steps and retrying and seeing it 
not working.  do one thing at a time, there isnt a whole lot of steps.

good luck, and if you get stuck dont hesitate to search the archives and see 
how many of us were in your shoes.


From: Ken Keefe [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Please help...
Date: Fri, 12 Nov 2004 14:14:17 -0600
I have been struggling with Tomcat for several days and I am at the end
of my rope. If I come across as irritated, I apologize in advance.
I simply want to learn how to write JSP. I have a book and I want to
start working through it, but I am having trouble setting up a server to
serve JSP. I currently run Apache to serve HTML and PHP. Ideally, I'd
simply like Apache to start recognizing JSP and handling it
appropriately. Unfortunately that seems to not be an easy task... I have
tried using mod_jk to connect Tomcat and Apache, with no luck.
I finally gave up on trying to use Apache and I was just going to keep
them separate. Now, how do I tell Tomcat to serve my jsp files??? I
tried using the manager web program to add an application pointing to
the correct directory, it accepts the command, but nothing is added to
the application list and it doesn't serve the content like I expected it
to.
Finally I said screw it, I'll simply put my experiment files in the
document root of Tomcat and use that for now. Still no luck, it serves
up the same default stuff, even when I rename the file.
My environment is the following: Fedora Core 2, Apache 2.0.51, Tomcat
5.5.4, JDK 1.5.0.
Ideally I'd like to do what I talked about earlier, having Apache
automagically know what to do with *.jsp files. However, I'll take
what I can get!
Thank you very much in advance. I can't explain how damned aggravating
this whole thing has been.
Ken
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Powerful Parental Controls Let your child discover the best the Internet has 
to offer.  
http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines 
 Start enjoying all the benefits of MSN® Premium right now and get the 
first two months FREE*.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


PLEASE HELP : time outs with sticky session and file store

2004-10-25 Thread pablo
Hi folks,
I am currently running apache 2.0.52 , mod_jk2, solaris 8   tomcat 
5.0.28 on my servers .  I have two apache serves behind an alteon that 
service my webapps on 4 tomcat servers.  I have sticky sessions with a 
file store set up on my boxes.  My filestore is via nfs. All my hosts 
are on the same subnet. They are mulithomed hosts because I need a back 
interface for the webapps to talk to the db.  But my default routes are 
all set the same .  I have one apache server that hits two tomcat 
servers and then another apache sever that has two other tomcat 
servers. Once I start that apache servers everything is fine , for a 
few hours .  After a few hours the tomcat servers start to time out. I 
can get to the apache index page but as soon as I ask the apache server 
to make a request to a webapp on the tomcat servers is just sits there 
and times out.  Sometimes the webapp does pop up but very slowly. I 
have examined the routing tables , I have done traceroutes I have pin 
pointed my problem down to the application layer.  So I must be doing 
something wrong in my configuration.  I checked over my configuration a 
hundred times and I did it exactly the way the book told me to 
professional apache tomcat 5 . This all worked on my testing 
environment , but it is not working now.  I have included a very small 
tar file that has my config files . If any of you can give me an 
example of a working config or tell me what I am doing wrong I would 
greatly appreciate it .

-Pablo

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: PLEASE HELP : time outs with sticky session and file store

2004-10-25 Thread pablo
Sorry forgot to add the config files as an attachment .


config_file.tar.gz
Description: GNU Zip compressed data

On Oct 25, 2004, at 1:22 PM, pablo wrote:
Hi folks,
I am currently running apache 2.0.52 , mod_jk2, solaris 8   
tomcat 5.0.28 on my servers .  I have two apache serves behind an 
alteon that service my webapps on 4 tomcat servers.  I have sticky 
sessions with a file store set up on my boxes.  My filestore is via 
nfs. All my hosts are on the same subnet. They are mulithomed hosts 
because I need a back interface for the webapps to talk to the db.  
But my default routes are all set the same .  I have one apache server 
that hits two tomcat servers and then another apache sever that has 
two other tomcat servers. Once I start that apache servers everything 
is fine , for a few hours .  After a few hours the tomcat servers 
start to time out. I can get to the apache index page but as soon as I 
ask the apache server to make a request to a webapp on the tomcat 
servers is just sits there and times out.  Sometimes the webapp does 
pop up but very slowly. I have examined the routing tables , I have 
done traceroutes I have pin pointed my problem down to the application 
layer.  So I must be doing something wrong in my configuration.  I 
checked over my configuration a hundred times and I did it exactly the 
way the book told me to professional apache tomcat 5 . This all 
worked on my testing environment , but it is not working now.  I have 
included a very small tar file that has my config files . If any of 
you can give me an example of a working config or tell me what I am 
doing wrong I would greatly appreciate it .

-Pablo

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Urgent .Please help me out

2004-09-22 Thread Shanti Priya
Hi !!
   I have deployed an application on tomcat 4.1.18. I do get the
following exception .I am using IE6 as my webbrowser.



HTTP Status 500 -




type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

org.apache.jasper.JasperException: Cannot find bean userObject in scope null
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:356)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:550)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
at java.lang.Thread.run(Thread.java:534)


root cause

javax.servlet.ServletException: Cannot find bean userObject in scope null
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:530)
at org.apache.jsp.Error_jsp._jspService(Error_jsp.java:896)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
04)
at 

Urgent !! Please help me out.

2004-09-22 Thread Shanti Priya
HI!!
 I get the following error when i try to run my application on
tomcat.
The message in the server is as follows.

ERROR [2004-09-22 12:36:07,275] [Thread-5] [GSEITBaseAction.java:166] -
Error in
 actionPerform:
java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:228)
at
oracle.jdbc.driver.OracleConnection.init(OracleConnection.java:246)

at
oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at
com.bitmechanic.sql.ConnectionPool.createDriverConnection(ConnectionPool.jav
a:468)
at
com.bitmechanic.sql.ConnectionPool.getConnection(ConnectionPool.java:407)
at
com.cisco.ea.apparch.framework.db.DBPool.borrowConnection(DBPool.java:91)
at
com.cisco.ea.apparch.framework.db.DBPoolManager.borrowConnection(DBPoolManag
er.java:300)
at
com.cisco.gseit.db.ConnectionFactory.getConnection(ConnectionFactory.java:20
6)
at
com.cisco.gseit.db.ObjectLoader.getConnection(ObjectLoader.java:957)
at
com.cisco.gseit.db.ObjectLoader.getCollectionFromStoredProcedure(ObjectLoade
r.java:1238)
at
com.cisco.asit.grm.user.UserDAO.getUserFromLoginName(UserDAO.java:61)
at
com.cisco.asit.grm.struts.common.action.GROWBaseAction.performPreActionSetup
(GROWBaseAction.java:100)
at
com.cisco.gseit.struts.common.action.GSEITBaseAction.perform(GSEITBaseAction
.java:108)
at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.ja
va:1787)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)

Thanks  Regards,
Shanti Priya Sunkara

Location: Pune, India
Email   : [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Urgent .Please help me out

2004-09-22 Thread dp
your db is down or unreachable

-Ursprüngliche Nachricht-
Von: Shanti Priya [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 22. September 2004 09:13
An: Tomcat-User
Betreff: Urgent .Please help me out


Hi !!
   I have deployed an application on tomcat 4.1.18. I do get the
following exception .I am using IE6 as my webbrowser.



HTTP Status 500 -




type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

org.apache.jasper.JasperException: Cannot find bean userObject in scope null
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:356)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:550)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
at java.lang.Thread.run(Thread.java:534)


root cause

javax.servlet.ServletException: Cannot find bean userObject in scope null
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:530)
at org.apache.jsp.Error_jsp._jspService(Error_jsp.java:896

Re: Urgent !! Please help me out.

2004-09-22 Thread Antony Paul
This is because the oracle dll is not found int the PATH environment
variable. For this you should have Oracle client installed. Or you can use
Oracle thin driver which dont need Oracle installed

rgds
Antony Paul

- Original Message -
From: Shanti Priya [EMAIL PROTECTED]
To: Tomcat-User [EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 12:45 PM
Subject: Urgent !! Please help me out.


 HI!!
  I get the following error when i try to run my application on
 tomcat.
 The message in the server is as follows.

 ERROR [2004-09-22 12:36:07,275] [Thread-5] [GSEITBaseAction.java:166] -
 Error in
  actionPerform:
 java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
 at java.lang.Runtime.loadLibrary0(Runtime.java:788)
 at java.lang.System.loadLibrary(System.java:834)
 at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:228)
 at
 oracle.jdbc.driver.OracleConnection.init(OracleConnection.java:246)

 at

oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
 at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
 at java.sql.DriverManager.getConnection(DriverManager.java:512)
 at java.sql.DriverManager.getConnection(DriverManager.java:171)
 at

com.bitmechanic.sql.ConnectionPool.createDriverConnection(ConnectionPool.jav
 a:468)
 at
 com.bitmechanic.sql.ConnectionPool.getConnection(ConnectionPool.java:407)
 at
 com.cisco.ea.apparch.framework.db.DBPool.borrowConnection(DBPool.java:91)
 at

com.cisco.ea.apparch.framework.db.DBPoolManager.borrowConnection(DBPoolManag
 er.java:300)
 at

com.cisco.gseit.db.ConnectionFactory.getConnection(ConnectionFactory.java:20
 6)
 at
 com.cisco.gseit.db.ObjectLoader.getConnection(ObjectLoader.java:957)
 at

com.cisco.gseit.db.ObjectLoader.getCollectionFromStoredProcedure(ObjectLoade
 r.java:1238)
 at
 com.cisco.asit.grm.user.UserDAO.getUserFromLoginName(UserDAO.java:61)
 at

com.cisco.asit.grm.struts.common.action.GROWBaseAction.performPreActionSetup
 (GROWBaseAction.java:100)
 at

com.cisco.gseit.struts.common.action.GSEITBaseAction.perform(GSEITBaseAction
 .java:108)
 at

org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.ja
 va:1787)
 at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
 at
 org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:247)
 at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:193)

 Thanks  Regards,
 Shanti Priya Sunkara

 Location: Pune, India
 Email   : [EMAIL PROTECTED]



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Urgent !! Please help me out.

2004-09-22 Thread prashant chavan
Hi Shanti
 
Your error seems to be a databse connection error. Tell me r u using oracle as your 
database for the application. Then you need to check the entries for db connectivity 
files - driverproperties.properties. Reply me with detailed info sot that i can help 
in a much better way.
 
Regards
Prashant

Shanti Priya [EMAIL PROTECTED] wrote:
HI!!
I get the following error when i try to run my application on
tomcat.
The message in the server is as follows.

ERROR [2004-09-22 12:36:07,275] [Thread-5] [GSEITBaseAction.java:166] -
Error in
actionPerform:
java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:228)
at
oracle.jdbc.driver.OracleConnection.(OracleConnection.java:246)

at
oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at
com.bitmechanic.sql.ConnectionPool.createDriverConnection(ConnectionPool.jav
a:468)
at
com.bitmechanic.sql.ConnectionPool.getConnection(ConnectionPool.java:407)
at
com.cisco.ea.apparch.framework.db.DBPool.borrowConnection(DBPool.java:91)
at
com.cisco.ea.apparch.framework.db.DBPoolManager.borrowConnection(DBPoolManag
er.java:300)
at
com.cisco.gseit.db.ConnectionFactory.getConnection(ConnectionFactory.java:20
6)
at
com.cisco.gseit.db.ObjectLoader.getConnection(ObjectLoader.java:957)
at
com.cisco.gseit.db.ObjectLoader.getCollectionFromStoredProcedure(ObjectLoade
r.java:1238)
at
com.cisco.asit.grm.user.UserDAO.getUserFromLoginName(UserDAO.java:61)
at
com.cisco.asit.grm.struts.common.action.GROWBaseAction.performPreActionSetup
(GROWBaseAction.java:100)
at
com.cisco.gseit.struts.common.action.GSEITBaseAction.perform(GSEITBaseAction
.java:108)
at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.ja
va:1787)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)

Thanks  Regards,
Shanti Priya Sunkara

Location : Pune, India
Email : [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 

 

 


-
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.

RE: Urgent !! Please help me out.

2004-09-22 Thread Shanti Priya

javax.servlet.ServletException: Cannot find bean userObject in scope null
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:530)
at org.apache.jsp.Error_jsp._jspService(Error_jsp.java:896)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
04)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:356)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:550)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
at java.lang.Thread.run(Thread.java:534)


-Original Message-
From: prashant chavan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 4:49 PM
To: Tomcat Users List
Subject: Re: Urgent !! Please help me out.


Hi Shanti

Your error seems to be a databse connection error. Tell me r u using oracle
as your database for the application. Then you need to check the entries for
db connectivity files - driverproperties.properties. Reply me with detailed
info sot that i can help in a much better way.

Regards
Prashant

Shanti Priya [EMAIL PROTECTED] wrote:
HI!!
I get the following error when i try to run my

Re: Urgent !! Please help me out.

2004-09-22 Thread Marek Wójtowicz
)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
at java.lang.Thread.run(Thread.java:534)
root cause
javax.servlet.ServletException: Cannot find bean userObject in scope null
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:530)
at org.apache.jsp.Error_jsp._jspService(Error_jsp.java:896)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
04)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:356)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:550)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
at java.lang.Thread.run(Thread.java:534)
-Original Message-
From: prashant chavan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 4:49 PM
To: Tomcat Users List
Subject: Re: Urgent !! Please help me out.
Hi Shanti
Your error seems to be a databse connection error. Tell me r u using oracle
as your database for the application. Then you need to check the entries for
db connectivity files - driverproperties.properties. Reply me with detailed
info sot that i can help

RE: Urgent .Please help me out

2004-09-22 Thread Robert Shields
Hi

Can you read this please:
http://www.catb.org/~esr/faqs/smart-questions.html

And then consider the following:
- This seems like a servlet or JSP question rather than a Tomcat question.
http://www.catb.org/~esr/faqs/smart-questions.html#forum

- There is no explanation of the cirumstances surrounding the problem, or any source 
code to look at.
http://www.catb.org/~esr/faqs/smart-questions.html#beprecise

- The subject line contains urgent and doesn't describe the problem.
http://www.catb.org/~esr/faqs/smart-questions.html#urgent
http://www.catb.org/~esr/faqs/smart-questions.html#bespecific

Regards,
Rob


-Original Message-
From: Shanti Priya [mailto:[EMAIL PROTECTED]
Sent: Wed 9/22/2004 8:12 AM
To: Tomcat-User
Subject: Urgent .Please help me out
 
Hi !!
   I have deployed an application on tomcat 4.1.18. I do get the
following exception .I am using IE6 as my webbrowser.

(snip)

Thanks  Regards,
Shanti Priya Sunkara

Location: Pune, India
Email   : [EMAIL PROTECTED]



__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Urgent .Please help me out

2004-09-22 Thread Prabhjot Sodhi

Return Receipt
   
Your  AW: Urgent .Please help me out   
document   
:  
   
was   Prabhjot Sodhi/Australia/Contr/IBM   
received   
by:
   
at:   23/09/2004 09:07:51  
   





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat server (4.1.29) unable to handle GERMAN characters ; Please help

2004-09-15 Thread Mark Thomas
Add the following to your connector in server.xml

URIEncoding=UTF-8 

Mark

 -Original Message-
 From: koney krishna [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 15, 2004 5:49 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat server (4.1.29) unable to handle GERMAN 
 characters ; Please help 
 
 Hi,
  
 I am sending a URL request to Tomcat server (4.1.29) which 
 contains some German Characters.
  
 ex:
 http://localhost:8080/manager/C.html
  
 The Request to Tomcat comes as
 http://localhost:8080/manager/%C3%FC.html
  
 Tomcat then decodes does not decode 
 the %FC  and looks for a file %C3%FC , which of course 
 does not exist and causes a 404 error. 
  
 I am unable to resolve this issue from last week.
 Please help me in resolving this issue 
  
 thanks
 kris
 
   
 -
 Do you Yahoo!?
 vote.yahoo.com - Register online to vote today!
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat server (4.1.29) unable to handle GERMAN characters ; Please help

2004-09-15 Thread koney krishna
Hi MArk,
 
My Problem is solved.
I was struck up because of this from last week

 
Thanking You very very much.
krishna

Mark Thomas [EMAIL PROTECTED] wrote:
Add the following to your connector in server.xml

URIEncoding=UTF-8 

Mark

 -Original Message-
 From: koney krishna [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 15, 2004 5:49 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat server (4.1.29) unable to handle GERMAN 
 characters ; Please help 
 
 Hi,
 
 I am sending a URL request to Tomcat server (4.1.29) which 
 contains some German Characters.
 
 ex:
 http://localhost:8080/manager/C.html
 
 The Request to Tomcat comes as
 http://localhost:8080/manager/%C3%FC.html
 
 Tomcat then decodes does not decode 
 the %FC  and looks for a file %C3%FC , which of course 
 does not exist and causes a 404 error. 
 
 I am unable to resolve this issue from last week.
 Please help me in resolving this issue 
 
 thanks
 kris
 
 
 -
 Do you Yahoo!?
 vote.yahoo.com - Register online to vote today!
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

RE: Tomcat server (4.1.29) unable to handle GERMAN characters ; Please help

2004-09-15 Thread koney krishna
Hi Mark,
 
My Problem is solved.
I was struck up because of this from last week

 
Thanking You very very much.
krishna

Mark Thomas [EMAIL PROTECTED] wrote:
Add the following to your connector in server.xml

URIEncoding=UTF-8 

Mark

 -Original Message-
 From: koney krishna [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 15, 2004 5:49 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat server (4.1.29) unable to handle GERMAN 
 characters ; Please help 
 
 Hi,
 
 I am sending a URL request to Tomcat server (4.1.29) which 
 contains some German Characters.
 
 ex:
 http://localhost:8080/manager/C.html
 
 The Request to Tomcat comes as
 http://localhost:8080/manager/%C3%FC.html
 
 Tomcat then decodes does not decode 
 the %FC  and looks for a file %C3%FC , which of course 
 does not exist and causes a 404 error. 
 
 I am unable to resolve this issue from last week.
 Please help me in resolving this issue 
 
 thanks
 kris
 
 
 -
 Do you Yahoo!?
 vote.yahoo.com - Register online to vote today!
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

Tomcat server (4.1.29) unable to handle GERMAN characters ; Please help

2004-09-14 Thread koney krishna
Hi,
 
I am sending a URL request to Tomcat server (4.1.29) which contains some German 
Characters.
 
ex:
http://localhost:8080/manager/C.html
 
The Request to Tomcat comes as
http://localhost:8080/manager/%C3%FC.html
 
Tomcat then decodes does not decode 
the %FC  and looks for a file %C3%FC , which of course 
does not exist and causes a 404 error. 
 
I am unable to resolve this issue from last week.
Please help me in resolving this issue 
 
thanks
kris


-
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!

Please help: Apache direct Servlet to Tomcat

2004-09-13 Thread Daxin Zuo

My Apache 2.0.49  Tomcat 5.0.19, windows 2000.
I have a difficult in running servlet from Apache.
For example I have a servlet TestServlet.class (package: myServlet) in
C:\Program Files\Apache
Group\Apache2\tomcat\webapps\ROOT\WEB-INF\classes\myServlet\
I register this servlet in  \tomcat\webapps\ROOT\WEB-INF\web.xml:

  servlet
servlet-nameTestServlet/servlet-name
servlet-classTestServlet/servlet-class
  /servlet
  servlet-mapping
servlet-nameTestServlet/servlet-name
url-pattern/TestServlet/url-pattern
  /servlet-mapping

Tomcat port is 8008
When I run http://localhost:8008/TestServlet, it runs correctly.
Apache port is 82
I cannot start it with http://localhost:82/TestServlet. -- The page cannot
be found

My Aache and Tomcat is connected correctly. All JSP files can run on both.
For example, I have a jsp file
C:\Program Files\Apache
Group\Apache2\tomcat\webapps\ROOT\testJSP\testDBPool.jsp.
I can run http://localhost:82/testJSP/testDBPool.jsp
or http://localhost:8008/testJSP/testDBPool.jsp

in workers2.properties, I have:

[uri:/myServlet/*]
group=lb

[uri:/WEB-INF/*]
group=lb

[uri:/WEB-INF/classes/*]
group=lb


Please forward your instruction.

Thanks.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Please help: Apache direct Servlet to Tomcat

2004-09-13 Thread Kelly Denehy
On Mon, 13 Sep 2004 11:21:55 -0700, Daxin Zuo [EMAIL PROTECTED] wrote:
 [snip]
 For example I have a servlet TestServlet.class (package: myServlet) in
 [snip]
   servlet
 servlet-nameTestServlet/servlet-name
 servlet-classTestServlet/servlet-class
   /servlet

I might be wrong, but I believe the servlet-class needs to be fully
qualified, so it would be
servlet-classmyServlet.TestServlet/servlet-class.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Please help: Apache direct Servlet to Tomcat

2004-09-13 Thread Kelly Denehy
On Mon, 13 Sep 2004 14:57:31 -0400, Kelly Denehy [EMAIL PROTECTED] wrote:
 On Mon, 13 Sep 2004 11:21:55 -0700, Daxin Zuo [EMAIL PROTECTED] wrote:
  [snip]
  For example I have a servlet TestServlet.class (package: myServlet) in
  [snip]
servlet
  servlet-nameTestServlet/servlet-name
  servlet-classTestServlet/servlet-class
/servlet
 
 I might be wrong, but I believe the servlet-class needs to be fully
 qualified, so it would be
 servlet-classmyServlet.TestServlet/servlet-class.
 

Hmmm, except you said it runs correctly when accessing directly
through Tomcat on port 8008.  I've always avoided accessing the ROOT
webapp through Apache to avoid these kind of issues, because of the
additional ambiguity that it introduces.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Please help with jk2/tomcat5

2004-08-27 Thread Cox, Charlie
LocationMatch ^/(?!private)
JkUriSet ...
/LocationMatch


this also works for multiple directories:
LocationMatch ^/(?!private|private2|private3)

Charlie

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 26, 2004 8:41 PM
 To: [EMAIL PROTECTED]
 Subject: Please help with jk2/tomcat5
 
 Hello list members,
 
 Running Linux Fedora core2, apache2, tomcat5, jk2
 
 
 In my workers2.properties file, I have the following lines:
 
 [channel.socket:tomcat_server:8033]
 host=hostation.com
 port=8033
 debug=0
 
 [ajp13:tomcat_server:8033]
 channel=channel.socket:tomcat_server:8033
 debug=0
 
 [uri:hostation.com/*]
 worker=ajp13:tomcat_server:8033
 debug=0
 
 [uri:www.hostation.com/*]
 worker=ajp13:tomcat_server:8033
 debug=0
 
 
 That works as expected.  It allowed me to delegate ALL requests to tomcat.
 However, now I want to be able to exempt a certain URI such as:
 
 http://hostation.com/private  so that it is not being handled by tomcat
but
 by apache instead.
 
 Is it possible ?  Please show me how and I will be hugely greatful!!!
 
 Thanks.
 Lu
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


RE: Please help with jk2/tomcat5

2004-08-27 Thread webmaster
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Thursday, August 26, 2004 8:41 PM
  To: [EMAIL PROTECTED]
  Subject: Please help with jk2/tomcat5
  
  Hello list members,
  
  Running Linux Fedora core2, apache2, tomcat5, jk2
  
  
  In my workers2.properties file, I have the following lines:
  
  [channel.socket:tomcat_server:8033]
  host=hostation.com
  port=8033
  debug=0
  
  [ajp13:tomcat_server:8033]
  channel=channel.socket:tomcat_server:8033
  debug=0
  
  [uri:hostation.com/*]
  worker=ajp13:tomcat_server:8033
  debug=0
  
  [uri:www.hostation.com/*]
  worker=ajp13:tomcat_server:8033
  debug=0
  
  
  That works as expected.  It allowed me to delegate ALL 
 requests to tomcat.
  However, now I want to be able to exempt a certain URI such as:
  
  http://hostation.com/private  so that it is not being handled by 
  tomcat
 but
  by apache instead.
  
  Is it possible ?  Please show me how and I will be hugely 
 greatful!!!
  
  Thanks.
  Lu 

 -Original Message-
 From: Cox, Charlie [mailto:[EMAIL PROTECTED] 
 Sent: Friday, August 27, 2004 6:17 AM
 To: 'Tomcat Users List'
 Subject: RE: Please help with jk2/tomcat5
 
 LocationMatch ^/(?!private)
   JkUriSet ...
 /LocationMatch
 
 
 this also works for multiple directories:
 LocationMatch ^/(?!private|private2|private3)
 
 Charlie
 

Thanks for the help.
I am trying to use your suggestion although it seems tricky.
Whatever I have now in workers2.properties appear not to work 
when I use JkUriSet.
There must be a way to combine them and I haven't figured it 
out yet.

Lu 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   3   4   5   6   7   8   9   10   >