Tomcat setup

2008-01-11 Thread Morten Matras
How would you set an environment up for the following case:

 - 20 independent (non related) webapplications with low traffic  200
unique (real) visitors per day per webapplication
 - Application architecture: Hibernate, Java 1.5 and Stripes under the
hood.

I've set the system up with 1 tomcat per webapplication, but this uses a lot
of memory, so I'm considering changing that to have 1-3 Tomcat's, but need
som verification on the road to choose:

 - Tomcat 5.5 vs Tomcat 6.0?
 - What memory settings must I set? MaxPermSize, Xms, Xmx? to ensure a low
memory usage while still making sure that the server continues to run even
during peak periods.

Please share your thoughts.


Thanks

-- 
  Morten Matras
  Udviklingschef
  GAMP Media og Blob Communication ApS
  Svendsagervej 42
  5240 Odense NØ
  Tlf: 61711103
  E: [EMAIL PROTECTED]

  T: 76 654321
  W: www.blobcom.com
  E: [EMAIL PROTECTED]


memory usage increases on application stop

2008-01-11 Thread Morten Matras
Case:

I've deployed an application on a Tomcat 6.0 (current release). The
application is a Hibernate / Stripes application.


Almost no memory is allocated due to the deployed application.


Setting:


-Xmx64m -XX:MaxPermSize=128m


Tomcat without application uses: 27,5M (real memory) and 349M (virtual
memory)
Tomcat with application uses: 133M (real memory) and 367M (Virtual memory)


Now if I stop this application (using the manager) the memory profile
becomes:


Tomcat with stopped application: 128M (real memory) and 679M (virtual
memory)


So stopping the application increases the virtual memory usage from 367 to
679 m and stays there!


Undeploying a stopped application doesn't change the numbers.


Why does stopping (or undeploying) a webapplication cause a dramatic
increase in memory usage?


My guesses:
 - Some ressources are not freed? (database connections)
 - Some hibernate related stuff are trapped in a circular relation circle?
 - Tomcat punishes me for stopping something it really liked :-)



-- 
  Morten Matras
  Udviklingschef
  GAMP Media og Blob Communication ApS
  Svendsagervej 42
  5240 Odense NØ
  Tlf: 61711103
  E: [EMAIL PROTECTED]

  T: 76 654321
  W: www.blobcom.com
  E: [EMAIL PROTECTED]


How to deploy WAR to Tomcat with MAVEN2?

2008-01-11 Thread Thomas Chang
Hi all,

I use maven2. I wonder if there is a mvn-command which can deploy/reploy/delete 
the war to/from Tomcat?

Regards

Thomas

   
-
Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr 
bietet das  neue Yahoo! Mail. 

Re: First JSP page, Can't get Tomcat to show jsp-pages

2008-01-11 Thread Fredrik Bonander

Hi,

Thanks for your response!

I have no idea what the problem was, but I deleted the entire tomcat  
library.

And installed it again, and ops it works now, I probably messed it up!

..fredrik



On Jan 10, 2008, at 10:30 PM, Dmitriy Fitisov wrote:


Set a breakpoint in your's servlet init() in Eclipse.
Another thing - show your jsp page how it looks like.

Dmitriy.


On Thu, 2008-01-10 at 17:36 +0100, Fredrik Bonander wrote:

Any idea which jar i might be?

In the my web-app I have only the test.jsp and WEB-INF/web.xml.

..fredrik



On Jan 10, 2008, at 5:34 PM, Propes, Barry L wrote:


sounds like you're either missing a jar file or have it in the wrong
location.

-Original Message-
From: Fredrik Bonander [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 10, 2008 10:30 AM
To: users@tomcat.apache.org
Subject: First JSP page, Can't get Tomcat to show jsp-pages


Hi,

I ran quickly in to a problem with my first JSP page under Tomcat.
I've also been browsing google and java forums and can't seem to  
find

any solution.

I'm running Tomcat 6, and trying to show an simple Hello World JSP
page.


htmlbodyHello world !!/body/html




But it keeps giving me an 404 error with the message:

HTTP Status 404 - Servlet jsp is not available

type Status report

message Servlet jsp is not available

description The requested resource (Servlet jsp is not available) is
not available.

If I rename the hello.jsp to hello.html it works fine. And a servlet
compiled from a helloworld.java works fine.

After some testing it seems that no jsp-pages works.

In the logs it says that the server started okey, but in the  
localhost

log it says:

Jan 10, 2008 2:13:05 PM org.apache.catalina.core.StandardContext
loadOnStartup
SEVERE: Servlet /db threw load() exception
javax.servlet.ServletException: Error instantiating servlet class
org.apache.jasper.servlet.JspServlet

I use these paths:

Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/ 
Versions/

CurrentJDK/Home


Please help, any hints, link are most welcome!

..fredik
--
Cloud Nine
Fredrik Bonander
Frontend Developer

- the infinite power of the creative mind -

Linnégatan 89 E
Box 10304
100 55 Stockholm
Sweden
Tel: +46 (0) 8 - 663 44 00
Mail:  [EMAIL PROTECTED]
Website: www.cloudnine.se





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Cloud Nine
Fredrik Bonander
Frontend Developer

- the infinite power of the creative mind -

Linnégatan 89 E
Box 10304
100 55 Stockholm
Sweden
Tel: +46 (0) 8 - 663 44 00
Mail:  [EMAIL PROTECTED]
Website: www.cloudnine.se






Re: How to get tomcat to decode %26

2008-01-11 Thread Vackar

Sorry, think I may not have worded my question properly. What I meant to ask
is:
Is it possible to get tomcat to rewrite the url, preplacing %XX with
corresponding symbol? The reason it's important is that I need to parse some
paramaters server-side, and the paramaters need to be delimited by  '' (%26
doesn't work)



David Delbecq-2 wrote:
 
 %XX in the url requested by a browser are already converted by tomcat to 
 their corresponding characters, according to the http specs. You don't 
 have to do anything special for that.
 En l'instant précis du 10/01/08 18:02, Vackar s'exprimait en ces termes:
 Hi,

 Does anyone know how to get tomcat to interpret %26 as an ampersand
 character ()

 Thanks,
 Vackar
   
 
 
 -- 
 http://www.devlog.be (a belgian developer's logs)
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-get-tomcat-to-decode--26-tp14738575p14752323.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to deploy WAR to Tomcat with MAVEN2?

2008-01-11 Thread Giancarlo Frison
Hi Thomas,

http://cargo.codehaus.org
It works with Tomcat 5.x.
I experimented the attached script without a deep insight on this plugin
features. Let us know your comments about Cargo.
Regards,

Thomas Chang ha scritto:
 Hi all,

 I use maven2. I wonder if there is a mvn-command which can 
 deploy/reploy/delete the war to/from Tomcat?

 Regards

 Thomas


 -
 Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr 
 bietet das  neue Yahoo! Mail. 
   

Giancarlo Frison
http://www.jroller.com/giancarlo
	build
		plugins
			plugin
artifactIdmaven-war-plugin/artifactId
configuration
	webXmlweb/WEB-INF/web.xml/webXml
	archive
		manifest
			addClasspathtrue/addClasspath
			classpathPrefixlib//classpathPrefix
		/manifest
	/archive
/configuration
			/plugin
			plugin
groupIdorg.codehaus.cargo/groupId
artifactIdcargo-maven2-plugin/artifactId
executions
	execution
		idverify-deploy/id
		phaseinstall/phase
		goals
			goaldeployer-deploy/goal
		/goals
	/execution
	execution
		idclean-undeploy/id
		phasepre-clean/phase
		goals
			goaldeployer-undeploy/goal
		/goals
	/execution
/executions
configuration

	!-- Container Configuration --
	container
		containerIdtomcat5x/containerId
		typeremote/type
	/container

	!-- Configuration to use with the container --
	configuration
		typeruntime/type
		properties
			cargo.tomcat.manager.url
http://localhost:8080/manager
			/cargo.tomcat.manager.url
			cargo.remote.username
tomcat
			/cargo.remote.username
			cargo.remote.password
tomcat
			/cargo.remote.password
		/properties
	/configuration

	!-- Deployer and Deployables configuration --
	deployer
		typeremote/type
		deployables
			deployable
groupId'group-id'/groupId
artifactId'id'/artifactId
typewar/type
pingURL
	http://localhost:8080/webappName/frontend/login.htm
/pingURL
			/deployable
		/deployables
	/deployer

/configuration
			/plugin
		/plugins
	/build-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Datasource Property Parameters (Oracle) JNDI

2008-01-11 Thread Berglas, Anthony
Hello,

I am trying to set up 0racle connection pooling.   Some of the
parameters are reflected normally, but some are specified via a property
lists.  How do I set the property list properties using Tomcat/JNDI?  I
can set up the basic DataSource, but I cannot set the maxLimit parameter
on the max number of connections because they are in the
setConnectionCacheProperties property map, not reflected.

More specifically, here is my conf/Catalina/localhost/KMS.conf  (My web
app is KMS).

# cat /opt/tomcat/conf/Catalina/localhost/KMS.xml
?xml version=1.0 encoding=UTF-8?

Context path=/KMS docBase=KMS debug=5 reloadable=true
crossContext=true

Resource name=jdbc/rkm auth=Container
type=oracle.jdbc.pool.OracleDataSource
driverClassName=oracle.jdbc.OracleDriver
factory=oracle.jdbc.pool.OracleDataSourceFactory
connectionCachingEnabled=true

connectionCacheName=KmsConPool
abandonedConnectionTimeout=200
connectionWaitTimeout=200

maxLimit=20

url=jdbc:oracle:thin:@localhost:1521:rsakmpri
user=local
password=-THIS-SHOULD-BE-IGNORED-
/ !-- maxLimit ignored --

/Context

The problem is that parameters like connectionCachingEnabled are set
reflectively and work but some such as MaxLimit are set in property
lists.  

Specifically doing this in ordinary, easy Java, from the Oracle manual:-

OracleDataSource ods = new OracleDataSource();

// set cache properties in map
java.util.Properties prop = new java.util.Properties();
prop.setProperty(MinLimit, 2);
prop.setProperty(MaxLimit, 10);

// set DataSource properties
String url = jdbc:oracle:oci8:@;
ods.setURL(url);
ods.setConnectionCacheProperties (prop); //


ods.setUser(hr);
ods.setPassword(hr);
ods.setConnectionCachingEnabled(true); 
ods.setConnectionCacheName(ImplicitCache01); 
...
Connection conn = ods.getConnection(user, pass);

But of course this is Enterprise software, so it must be done in XML,
not Java.  Any ideas as to how to do this most welcome.

Anthony

PS.  I have never seen any reference to the ability to put a file like
KMS.xml in the conf area.  I certainly seems to work, and is very
necessary -- obviously one does not want site config in a war -- but
just not documented as far as I can tell.

--
Dr Anthony Berglas 
Ph. +61 7 3227 4410
Mob. +61 44 838 8874
[EMAIL PROTECTED]; [EMAIL PROTECTED]


--
Dr Anthony Berglas 
Ph. +61 7 3227 4410
Mob. +61 44 838 8874
[EMAIL PROTECTED]; [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat setup

2008-01-11 Thread Peter Crowther
 From: Morten Matras [mailto:[EMAIL PROTECTED]
 How would you set an environment up for the following case:

  - 20 independent (non related) webapplications with low traffic  200
 unique (real) visitors per day per webapplication
  - Application architecture: Hibernate, Java 1.5 and Stripes
 under the hood.

Hibernate and Stripes aren't small.  This may be a part of your problem.

 I've set the system up with 1 tomcat per webapplication, but
 this uses a lot
 of memory, so I'm considering changing that to have 1-3
 Tomcat's, but need
 som verification on the road to choose:

  - Tomcat 5.5 vs Tomcat 6.0?

Whatever you're comfortable with.  The server overheads are broadly similar for 
each.  If you're starting from scratch, I'd pick the later version - you'll pay 
the learning curve either way, and 6.0 is not noticeably buggier than 5.5!

  - What memory settings must I set? MaxPermSize, Xms, Xmx? to
 ensure a low
 memory usage while still making sure that the server
 continues to run even during peak periods.

That's down to your apps, not Tomcat.  Profile your apps to find out why 
they're taking Java heap space.  Something to think about, for example: 20 
webapps each with Hibernate = 20 copies of Hibernate loaded.

Depending on your cost of RAM versus cost of admin time, you *might* want to 
move the framework jars out of the webapps into a suitable common classloader 
area (see the classloader HOWTO in the Tomcat docs for more information).  This 
will somewhat reduce your memory footprint, but give you an administrative 
headache when you want to deploy a webapp with version of the framework that 
isn't the same as the common version.

If you're only deploying these on one machine, adding RAM to the box is almost 
certainly cheaper than the cost of your time researching the problem, plus 
later admin time dealing with the headaches.  It's also more reliable.  If 
you're creating a shrink-wrapped product, or deploying on many machines, the 
economics may well be different.

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: doubt in clustering with sticky sessions

2008-01-11 Thread Rainer Jung

Shiby Maria John wrote:

Hi,

This is a bit of documentation from the  Load balancing page of the
Apache site.

   
 sticky_session specifies whether requests with SESSION
 ID's should be routed back to the same Tomcat worker. You 
 can set sticky_session to False when Tomcat is using a
 Session Manager which can persist session data across 
 multiple instances of Tomcat. By default sticky_session   
 is set to True.   
   





I tired to set the sticky_session value as false, and I was under the
impression that Tomcat has a session manager which can persist session
data across the multiple instances in cluster. But when i set it to
false, the requests are being served by different servers in the
cluster for the same session... That is the session is no longer
sticky. But when this happens sometimes the session replication is
going wrong.

Please make this point clear for me .


The mod_jk lb worker attribute sticky_session only influences the 
behaviour of the respective mod_jk baoancing worker. It doesn't change 
the behaviour of any Tomcat backend.


If you have multiple backends and not session replication is activated 
on them, you need to use sticky_session, otherwise most of the time 
users will get errors, because the sessions requested don't exist on the 
nodes, which should handle the requests.


If you want to use session replication, e.g. as a means of increasing 
the application availability, you need to configure a so called Tomcat 
cluster. All you need for this is included with Tomcat, but it is not 
active by default. Have a look at the Tomcat cluster docs.


Once you have successfully build up a Tomcat cluster with session 
replication, a request could go to any cluster member, because they all 
share the session state. So you are free to set sticky_session to false. 
There are situations though, where you still want sticky_session=true, 
although using session replication. It will depend on the application 
and the goals of your setup.


Regards,

Rainer




Regards,
Shiby


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Connection pooling

2008-01-11 Thread Andrew Hole
Hello!

The following configuration was not supposed to be created 5
connections at first get connection execution?
My application with the following configuration creates always a new
session in the database for each invocation,
which is not to take advantage of pooling. Why?

Context  docBase=F:/TOMCAT_UPG1_VIEWER/mni_ehrviewer
reloadable=true path=upg1ehr 

Resource name=ehr auth=Container 
type=oracle.jdbc.pool.OracleDataSource
factory=oracle.jdbc.pool.OracleDataSourceFactory
driverClassName=oracle.jdbc.OracleDriver
url=jdbc:oracle:thin:@server_name:1521:sid user=user
password=password initialSize=5 maxActive=50 maxIdle=10
minIdle=5 maxWait=-1 defaultAutoCommit=false/


Manager className=org.apache.catalina.session.StandardManager
maxActiveSessions=-1 maxInactiveInterval=1800 pathname=
processExpiresFrequency=6 /

/Context


Thanks a lot

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Datasource Property Parameters (Oracle) JNDI

2008-01-11 Thread Rainer Jung

Berglas, Anthony wrote:

Hello,

I am trying to set up 0racle connection pooling.   Some of the
parameters are reflected normally, but some are specified via a property
lists.  How do I set the property list properties using Tomcat/JNDI?  I
can set up the basic DataSource, but I cannot set the maxLimit parameter
on the max number of connections because they are in the
setConnectionCacheProperties property map, not reflected.


The version of commons-dbcp that gets used with Tomcat knows how to 
handle the property map, but unfortunately the simple factory Tomcat 
uses to configure DBCP (which is part of DBCP) doesn't contain the feature.


On July 23rd the factory has been updated to include the property map 
handling. The feature is waiting for a DBCP release (likely 1.3) since 
then :(


We had a little trouble with updating our commons-pool dependency 
recently, so I'm not sure how fast after a dbcp release tomcat will 
actually adopt it.


If it's really important for you, you could build a dbcp snapshot, check 
the commons pool version dependency and replace the components in Tomcat.


Regards,

Rainer


More specifically, here is my conf/Catalina/localhost/KMS.conf  (My web
app is KMS).

# cat /opt/tomcat/conf/Catalina/localhost/KMS.xml
?xml version=1.0 encoding=UTF-8?

Context path=/KMS docBase=KMS debug=5 reloadable=true
crossContext=true

Resource name=jdbc/rkm auth=Container
type=oracle.jdbc.pool.OracleDataSource
driverClassName=oracle.jdbc.OracleDriver
factory=oracle.jdbc.pool.OracleDataSourceFactory
connectionCachingEnabled=true

connectionCacheName=KmsConPool
abandonedConnectionTimeout=200
connectionWaitTimeout=200

maxLimit=20

url=jdbc:oracle:thin:@localhost:1521:rsakmpri
user=local
password=-THIS-SHOULD-BE-IGNORED-
/ !-- maxLimit ignored --

/Context

The problem is that parameters like connectionCachingEnabled are set
reflectively and work but some such as MaxLimit are set in property
lists.  


Specifically doing this in ordinary, easy Java, from the Oracle manual:-

OracleDataSource ods = new OracleDataSource();

// set cache properties in map
java.util.Properties prop = new java.util.Properties();
prop.setProperty(MinLimit, 2);
prop.setProperty(MaxLimit, 10);

// set DataSource properties
String url = jdbc:oracle:oci8:@;
ods.setURL(url);
ods.setConnectionCacheProperties (prop); //


ods.setUser(hr);
ods.setPassword(hr);
ods.setConnectionCachingEnabled(true); 
ods.setConnectionCacheName(ImplicitCache01); 
...

Connection conn = ods.getConnection(user, pass);

But of course this is Enterprise software, so it must be done in XML,
not Java.  Any ideas as to how to do this most welcome.

Anthony

PS.  I have never seen any reference to the ability to put a file like
KMS.xml in the conf area.  I certainly seems to work, and is very
necessary -- obviously one does not want site config in a war -- but
just not documented as far as I can tell.

--
Dr Anthony Berglas 
Ph. +61 7 3227 4410

Mob. +61 44 838 8874
[EMAIL PROTECTED]; [EMAIL PROTECTED]


--
Dr Anthony Berglas 
Ph. +61 7 3227 4410

Mob. +61 44 838 8874
[EMAIL PROTECTED]; [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: doubt in clustering with sticky sessions

2008-01-11 Thread Shiby Maria John
Thanks for the info.
So I think if I am using Tomcat for clustering, I need to set
sticky_session as true to ensure that the session is not lost.



  
 Rainer Jung  
 [EMAIL PROTECTED]  
 ppdata.deTo 
 Tomcat Users List
 01/11/2008  users@tomcat.apache.org
 04:47 PM  cc 
  
  Subject 
 Please respond  Re: doubt in clustering with 
   tosticky sessions  
  Tomcat Users   
  List   
 [EMAIL PROTECTED]  
   pache.org 
  
  




Shiby Maria John wrote:
 Hi,

 This is a bit of documentation from the  Load balancing page of the
 Apache site.



  sticky_session specifies whether requests with SESSION

  ID's should be routed back to the same Tomcat worker.
You
  can set sticky_session to False when Tomcat is using a

  Session Manager which can persist session data across

  multiple instances of Tomcat. By default sticky_session

  is set to True.







 I tired to set the sticky_session value as false, and I was under
the
 impression that Tomcat has a session manager which can persist
session
 data across the multiple instances in cluster. But when i set it to
 false, the requests are being served by different servers in the
 cluster for the same session... That is the session is no longer
 sticky. But when this happens sometimes the session replication is
 going wrong.

 Please make this point clear for me .

The mod_jk lb worker attribute sticky_session only influences the
behaviour of the respective mod_jk baoancing worker. It doesn't
change
the behaviour of any Tomcat backend.

If you have multiple backends and not session replication is activated

on them, you need to use sticky_session, otherwise most of the time
users will get errors, because the sessions requested don't exist on
the
nodes, which should handle the requests.

If you want to use session replication, e.g. as a means of increasing
the application availability, you need to configure a so called Tomcat

cluster. All you need for this is included with Tomcat, but it is not
active by default. Have a look at the Tomcat cluster docs.

Once you have successfully build up a Tomcat cluster with session
replication, a request could go to any cluster member, because they
all
share the session state. So you are free to set sticky_session to
false.
There are situations though, where you still want sticky_session=true,

although using session replication. It will depend on the application
and the goals of your setup.

Regards,

Rainer



 Regards,
 Shiby

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Comet API Question

2008-01-11 Thread Jens Hagel
i'm catching the subevents but they don't get fired.

i've a problem with this szenario:
i need to reset some serverside variables when the user clicks the reload
button in the browser with an active hanging get request.
i therefore used the main END event for detection because the subevents
don't work for better separation. this works fine when i'm not behind a
proxy. but if i'm behind a proxy the END event is not fired (perhaps the
proxy is still holding the connection?)
do you have an idea what happens when there is a proxy between the server
and the client and how i can reset the variables?

kind regards,
jens

On 1/8/08, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:

 yes, uncommenting that valve in context.xml should do the trick, is it
 not firing or are you just not catching it?

 2nd question, currently it just marks the request/response as non comet,
 and then calls response.finishResponse(), this will write any left over
 bytes to the socket.

 Filip

 Jens Hagel wrote:
  Hi,
  i need to detect if the user reloads the webapp or rather if the
 connection
  gets interrupted.
  i therefore use the CometEvent.EventSubType but the events don't get
 fired.
  in the context.xml i've uncommented the CometConnectionManagerValve.
  Do I have to instantiate the ConnectionManager by myself or what's going
  wrong?
 
  2nd question: it's a little bit unclear to my what happens when i call
  cometEvent.close()
  sometimes i use it and sometimes not with no difference.. :)
 
  Kind regards,
  Jens
 
 
  
 
  No virus found in this incoming message.
  Checked by AVG Free Edition.
  Version: 7.5.516 / Virus Database: 269.17.11/1201 - Release Date:
 12/28/2007 11:51 AM
 


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: mod_jk maintenance, recovery

2008-01-11 Thread Rainer Jung

Hi Dominik,

Dominik Pospisil wrote:

Hello,
I am having following problem with following failover test scenario.

Cluster setup:
- 1 apache load balancer
- 2 nodes with equal LB factor
- sticky session turned on
- Apache/2.0.52, mod_jk/1.2.26

Test scenario:
1. start 1st node
2. start load driver
3. start 2nd node
4. wait for state transfer (2 minutes)
5. kill 1st node

My experience is that after stage 1 and 2, all clients are handled correctly 
by 1st node and the second node is set correctly to ERR state. After while, 
the second none switches to ERR/REC state.


However at stage 4 (after starting 2nd node) the second node will never come 
up to OK state. I have set both worker maintain period and LB recovery_time 
to 30s. So i guess that in 2 minutes, the second node should have been 
re-checked. When I press manually Reset worker state button, it comes up 
immediatelly, but it never happend automatically during maintenance phase.


I would expect, that your load driver only send sticky requests, i.e. 
requests with eiher cookie or URL encoding for node cluster01. At least 
that would fit to your observation.


mod_jk detects during maintenance, if a worker was in error state long 
enough to try again. This happens in your setup, as you can see by the 
ERR/REC state. The next request that comes in *and does not contain a 
session id of another node* will be routed to the REC node. Under load, 
you won't see this state often, because most of the time it should turn 
into ERR or OK very quick.


Maybe your app sets a cookie and the load driver always presrnts that 
cookie. That way all further requests would be handled as sticky and 
routed to the first node.


You can find out by logging %{Cookie}i in your httpd access log. If you 
include this in your LogFormat, you can see the incoming Cookie header 
for each request.


Eventually, after killing 1st node, and after returning couple of 503 Service 
Temporarily Unavailable exceptions, mod_jk finally recheck 2nd node status, 
reroute requests to 2nd node and resumes correct operation.


My question is: Why the second node is not recognized before failover? Did I 
missed something? Or is it a bug? 


Thanks,

- Dominik

Attaching worker.properties
-
worker.list=loadbalancer,status
worker.maintain=30

# modify the host as your host IP or DNS name.
worker.cluster01.port=8009
worker.cluster01.host=172.17.0.39
worker.cluster01.type=ajp13
worker.cluster01.lbfactor=1
#worker.cluster01.redirect=cluster02
# modify the host as your host IP or DNS name.
worker.cluster02.port=8009
worker.cluster02.host=172.17.1.39
worker.cluster02.type=ajp13
worker.cluster02.lbfactor=1
#worker.cluster02.redirect=cluster01
# modify the host as your host IP or DNS name.

# Load-balancing behaviour
worker.loadbalancer.type=lb
worker.loadbalancer.method=Session
worker.loadbalancer.balance_workers=cluster01,cluster02
worker.loadbalancer.sticky_session=1
worker.loadbalancer.recover_time=30

#worker.list=loadbalancer
# Status worker for managing load balancer
worker.status.type=status


Regards,

Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: org.apache.commons.digester.Digester endElement (Q A)

2008-01-11 Thread David Smith
Thanks. 

It's an interesting problem.  It does validate against an xml validator, 
but I can't reproduce your error in my tomcat 5.5 environment.  If it's 
really an error w/ tomcat, it has to be unique to your version of 
tomcat.  Any one on this list still using tomcat 4.1 want to respond?


--David

Albretch Mueller wrote:


OK, my conf files were like that:
~
!--
   Context configuration file for the Tomcat Manager Web App

   $Id: manager.xml 287893 2002-04-08 17:46:08Z craigmcc $

Context

Linux Box:
path=/manager
docBase=/media/sda2/inst/sw/java/TC/tc4.1/apache-tomcat-4.1.36/server/webapps/manager

Windows Box:
path=
docBase=c:/japps//TC/tc4.1/apache-tomcat-4.1.36/server/webapps/manager
--

Context path=/manager
 
docBase=/media/sda2/inst/sw/java/TC/tc4.1/apache-tomcat-4.1.36/server/webapps/manager
 debug=4
 privileged=true

 !-- Link to the user database we will get roles from --
 ResourceLink name=users global=UserDatabase
type=org.apache.catalina.UserDatabase/

 Logger className=org.apache.catalina.logger.FileLogger
  directory=/media/sda2/inst/sw/java/TC/prjx/FlUp/logs
 prefix=tc-4.1.36_localhost_manager_log.
 suffix=.txt
 timestamp=true/

/Context
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~
and what I believe to be a bug is that conf parsers should not pick
anything between !-- and --
~
lbrtchx

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



mod_jk maintenance, recovery

2008-01-11 Thread Dominik Pospisil
Hello,
I am having following problem with following failover test scenario.

Cluster setup:
- 1 apache load balancer
- 2 nodes with equal LB factor
- sticky session turned on
- Apache/2.0.52, mod_jk/1.2.26

Test scenario:
1. start 1st node
2. start load driver
3. start 2nd node
4. wait for state transfer (2 minutes)
5. kill 1st node

My experience is that after stage 1 and 2, all clients are handled correctly 
by 1st node and the second node is set correctly to ERR state. After while, 
the second none switches to ERR/REC state.

However at stage 4 (after starting 2nd node) the second node will never come 
up to OK state. I have set both worker maintain period and LB recovery_time 
to 30s. So i guess that in 2 minutes, the second node should have been 
re-checked. When I press manually Reset worker state button, it comes up 
immediatelly, but it never happend automatically during maintenance phase.

Eventually, after killing 1st node, and after returning couple of 503 Service 
Temporarily Unavailable exceptions, mod_jk finally recheck 2nd node status, 
reroute requests to 2nd node and resumes correct operation.

My question is: Why the second node is not recognized before failover? Did I 
missed something? Or is it a bug? 

Thanks,

- Dominik

Attaching worker.properties
-
worker.list=loadbalancer,status
worker.maintain=30

# modify the host as your host IP or DNS name.
worker.cluster01.port=8009
worker.cluster01.host=172.17.0.39
worker.cluster01.type=ajp13
worker.cluster01.lbfactor=1
#worker.cluster01.redirect=cluster02
# modify the host as your host IP or DNS name.
worker.cluster02.port=8009
worker.cluster02.host=172.17.1.39
worker.cluster02.type=ajp13
worker.cluster02.lbfactor=1
#worker.cluster02.redirect=cluster01
# modify the host as your host IP or DNS name.

# Load-balancing behaviour
worker.loadbalancer.type=lb
worker.loadbalancer.method=Session
worker.loadbalancer.balance_workers=cluster01,cluster02
worker.loadbalancer.sticky_session=1
worker.loadbalancer.recover_time=30

#worker.list=loadbalancer
# Status worker for managing load balancer
worker.status.type=status

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error: server\webapps\manager does not exist or is not a readable directory...

2008-01-11 Thread David Smith
Right -- as I expected.  I'll bet you don't have a webapp at 
server/webapps/admin which would cause the stack trace you are seeing. 

That doesn't fix the manager webapp though.  Do you have any errors in 
the logs regarding the manager webapp?  Other things to check is that 
there is file named manager.xml in conf/Catalina/localhost and the 
manager webapp itself at server/webapps/manager.


--David

Thomas Chang wrote:


The file conf/Catalina/localhost/admin.xml is there is it just contains one 
line:

Context docBase=${catalina.home}/server/webapps/admin privileged=true
antiResourceLocking=false antiJARLocking=false
/Context


David Smith [EMAIL PROTECTED] schrieb: Not sure about the manager webapp responding in 404 since the stack 
track below refers to the admin webapp.  Regarding the stack trace 
below, It would appear you have the admin webapp defined in a 
.../ element but the admin webapp itself isn't present.  Look for a 
file named admin.xml in conf/Catalina/localhost -- that's the source of 
the error.


--David

Thomas Chang wrote:

 


Hi all,

I copy the whole dir of the Tomcat 5.5.17 which runs quite well at home to the computer in my 
office. As I start the Tomcat, I got error as follow. Though I can open the first page of Tomcat, 
but as I want to open the Manager link I got error of HTTP Status 404 - 
/manager/html

Somebody has idea?

Regards

Thomas


SCHWERWIEGEND: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\Programme\Apache Software F
oundation\apache-tomcat-5.5.17\server\webapps\admin does not exist or is not a r
eadable directory
  at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.
java:140)
  at org.apache.catalina.core.StandardContext.resourcesStart(StandardConte
xt.java:3814)
  at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
985)
  at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:759)
  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
9)
  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)

  at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
va:608)
  at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
ava:535)
  at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470
)
  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
  at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:310)
  at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)

  at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)

  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442
)
  at org.apache.catalina.core.StandardService.start(StandardService.java:4
50)
  at org.apache.catalina.core.StandardServer.start(StandardServer.java:709
)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:585)
  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
11.01.2008 08:09:01 org.apache.catalina.core.StandardContext start

 
-
Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem  neuen Yahoo! Mail. 



   




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  
-
Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das  neue Yahoo! Mail. 
 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Datasource Property Parameters (Oracle) JNDI

2008-01-11 Thread David Smith
Be careful of your attribute names as case matters.  Attribute names = 
class property names and class properties are usually referred to with a 
lower case first letter as in initialLimit=5, not InitialLimit=5.


--David

Andrew Hole wrote:


Hello!

I think that I have the same problem.

Resource name=ehr auth=Container type=oracle.jdbc.pool.OracleDataSource
factory=oracle.jdbc.pool.OracleDataSourceFactory
driverClassName=oracle.jdbc.OracleDriver
url=jdbc:oracle:thin:@192.168.1.244:1521:SID user=
password=t InitialLimit=5 MinLimit=5 MaxLimit=10 debug=5
/

What you are saying is that i can't use pooling on Tomcat/JNDI or only
in case of oracle.jdbc.pool.OracleDataSourceFactory?

Thanks a lot


On Jan 11, 2008 11:29 AM, Rainer Jung [EMAIL PROTECTED] wrote:
 


Berglas, Anthony wrote:
   


Hello,

I am trying to set up 0racle connection pooling.   Some of the
parameters are reflected normally, but some are specified via a property
lists.  How do I set the property list properties using Tomcat/JNDI?  I
can set up the basic DataSource, but I cannot set the maxLimit parameter
on the max number of connections because they are in the
setConnectionCacheProperties property map, not reflected.
 


The version of commons-dbcp that gets used with Tomcat knows how to
handle the property map, but unfortunately the simple factory Tomcat
uses to configure DBCP (which is part of DBCP) doesn't contain the feature.

On July 23rd the factory has been updated to include the property map
handling. The feature is waiting for a DBCP release (likely 1.3) since
then :(

We had a little trouble with updating our commons-pool dependency
recently, so I'm not sure how fast after a dbcp release tomcat will
actually adopt it.

If it's really important for you, you could build a dbcp snapshot, check
the commons pool version dependency and replace the components in Tomcat.

Regards,

Rainer

   


More specifically, here is my conf/Catalina/localhost/KMS.conf  (My web
app is KMS).

# cat /opt/tomcat/conf/Catalina/localhost/KMS.xml
?xml version=1.0 encoding=UTF-8?

Context path=/KMS docBase=KMS debug=5 reloadable=true
crossContext=true

Resource name=jdbc/rkm auth=Container
   type=oracle.jdbc.pool.OracleDataSource
   driverClassName=oracle.jdbc.OracleDriver
   factory=oracle.jdbc.pool.OracleDataSourceFactory
   connectionCachingEnabled=true

   connectionCacheName=KmsConPool
   abandonedConnectionTimeout=200
   connectionWaitTimeout=200

   maxLimit=20

   url=jdbc:oracle:thin:@localhost:1521:rsakmpri
   user=local
   password=-THIS-SHOULD-BE-IGNORED-
/ !-- maxLimit ignored --

/Context

The problem is that parameters like connectionCachingEnabled are set
reflectively and work but some such as MaxLimit are set in property
lists.

Specifically doing this in ordinary, easy Java, from the Oracle manual:-

   OracleDataSource ods = new OracleDataSource();

   // set cache properties in map
   java.util.Properties prop = new java.util.Properties();
   prop.setProperty(MinLimit, 2);
   prop.setProperty(MaxLimit, 10);

   // set DataSource properties
   String url = jdbc:oracle:oci8:@;
   ods.setURL(url);
   ods.setConnectionCacheProperties (prop); //


   ods.setUser(hr);
   ods.setPassword(hr);
   ods.setConnectionCachingEnabled(true);
   ods.setConnectionCacheName(ImplicitCache01);
   ...
   Connection conn = ods.getConnection(user, pass);

But of course this is Enterprise software, so it must be done in XML,
not Java.  Any ideas as to how to do this most welcome.

Anthony

PS.  I have never seen any reference to the ability to put a file like
KMS.xml in the conf area.  I certainly seems to work, and is very
necessary -- obviously one does not want site config in a war -- but
just not documented as far as I can tell.

--
Dr Anthony Berglas
Ph. +61 7 3227 4410
Mob. +61 44 838 8874
[EMAIL PROTECTED]; [EMAIL PROTECTED]


--
Dr Anthony Berglas
Ph. +61 7 3227 4410
Mob. +61 44 838 8874
[EMAIL PROTECTED]; [EMAIL PROTECTED]
 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


   



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error: server\webapps\manager does not exist or is not a readable directory...

2008-01-11 Thread David Smith
Not sure about the manager webapp responding in 404 since the stack 
track below refers to the admin webapp.  Regarding the stack trace 
below, It would appear you have the admin webapp defined in a Context 
.../ element but the admin webapp itself isn't present.  Look for a 
file named admin.xml in conf/Catalina/localhost -- that's the source of 
the error.


--David

Thomas Chang wrote:


Hi all,

I copy the whole dir of the Tomcat 5.5.17 which runs quite well at home to the computer in my 
office. As I start the Tomcat, I got error as follow. Though I can open the first page of Tomcat, 
but as I want to open the Manager link I got error of HTTP Status 404 - 
/manager/html

Somebody has idea?

Regards

Thomas


SCHWERWIEGEND: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\Programme\Apache Software F
oundation\apache-tomcat-5.5.17\server\webapps\admin does not exist or is not a r
eadable directory
   at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.
java:140)
   at org.apache.catalina.core.StandardContext.resourcesStart(StandardConte
xt.java:3814)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
985)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:759)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
9)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)

   at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
va:608)
   at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
ava:535)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470
)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:310)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)

   at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)

   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442
)
   at org.apache.catalina.core.StandardService.start(StandardService.java:4
50)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:709
)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
11.01.2008 08:09:01 org.apache.catalina.core.StandardContext start

  
-
Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem  neuen Yahoo! Mail. 
 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error: server\webapps\manager does not exist or is not a readable directory...

2008-01-11 Thread Thomas Chang
Sorry, I haven't understund what your   I'll bet you don't have a webapp at 
server/webapps/admin ... means.

In conf/Catalina/localhost there really a file called manager.xml and the 
manager webapp itself is really at server/webapps/manager.



David Smith [EMAIL PROTECTED] schrieb: Right -- as I expected.  I'll bet you 
don't have a webapp at 
server/webapps/admin which would cause the stack trace you are seeing. 

That doesn't fix the manager webapp though.  Do you have any errors in 
the logs regarding the manager webapp?  Other things to check is that 
there is file named manager.xml in conf/Catalina/localhost and the 
manager webapp itself at server/webapps/manager.

--David

Thomas Chang wrote:

The file conf/Catalina/localhost/admin.xml is there is it just contains one 
line:


 antiResourceLocking=false antiJARLocking=false



David Smith  schrieb: Not sure about the manager webapp responding in 404 
since the stack 
track below refers to the admin webapp.  Regarding the stack trace 
below, It would appear you have the admin webapp defined in a 
.../ element but the admin webapp itself isn't present.  Look for a 
file named admin.xml in conf/Catalina/localhost -- that's the source of 
the error.

--David

Thomas Chang wrote:

  

Hi all,

I copy the whole dir of the Tomcat 5.5.17 which runs quite well at home to 
the computer in my office. As I start the Tomcat, I got error as follow. 
Though I can open the first page of Tomcat, but as I want to open the 
Manager link I got error of HTTP Status 404 - /manager/html

Somebody has idea?

Regards

Thomas


SCHWERWIEGEND: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\Programme\Apache 
Software F
oundation\apache-tomcat-5.5.17\server\webapps\admin does not exist or is not 
a r
eadable directory
   at 
 org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.
java:140)
   at 
 org.apache.catalina.core.StandardContext.resourcesStart(StandardConte
xt.java:3814)
   at 
 org.apache.catalina.core.StandardContext.start(StandardContext.java:3
985)
   at 
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:759)
   at 
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
9)
   at 
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)

   at 
 org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
va:608)
   at 
 org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
ava:535)
   at 
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470
)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
   at 
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:310)
   at 
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
   at 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)

   at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)

   at 
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442
)
   at 
 org.apache.catalina.core.StandardService.start(StandardService.java:4
50)
   at 
 org.apache.catalina.core.StandardServer.start(StandardServer.java:709
)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
   at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
11.01.2008 08:09:01 org.apache.catalina.core.StandardContext start

  
-
Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit 
dem  neuen Yahoo! Mail. 
 





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



   
-
Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr 
bietet das  neue Yahoo! Mail. 
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



   
-
Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit 
dem  neuen Yahoo! Mail. 

RE: Datasource Property Parameters (Oracle) JNDI

2008-01-11 Thread Caldarale, Charles R
 From: Andrew Hole [mailto:[EMAIL PROTECTED] 
 Subject: Re: Datasource Property Parameters (Oracle) JNDI
 
 I don't see examples with initial size of pool! Exists some default
 value for pool initial size??

To quote from the doc:
See the DBCP documentation for a complete list of configuration
parameters.
http://commons.apache.org/dbcp/configuration.html

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat5.5, balancer

2008-01-11 Thread Julio Cesar Leiva


Julio Cesar Leiva wrote:


Hi all


When we introduce load balancing and a 2nd tomcat worker, the time
to service client requests is not balanced. Some clients are serviced 
as above,
but others may take 10, 20, 30 seconds or more. Eventually, clients 
timeout

and sessions are lost.

We ran our test over night with just 20 clients. All requests were 
serviced

evenly and we experienced no timeouts. However, the attached jkstatus
page shows some interesting results. The 'Busy' and 'Max' values for
the two workers are vastly different. For worker1, these values just
keep incrementing. Also, worker2 has serviced way more requests.
The 'Busy' and 'Max Busy' numbers in the other table keep growing
as well. Is this behaviour normal? or does this point to a problem
somewhere in the configuration?

As we add more clients, the time it takes to service requests gets 
more and

more imbalanced. Some requests get serviced in  1 second, others can
take 20 or 30 seconds. The more clients we add, the longer it takes for
some requests to get serviced.

We are using apache 2.26, mod_jk 1.2.26 and tomcat 6.0.14 , JRE 
1.5_06-b05

Apache and worker1 are  on the same box.  worker2 is in a different box



We are relly new on this(balancer), as you can see below we were using 
tomcat 5.5.20 , apache 2.2.0 and mod_jk 1.2.25 so we updated them all 
, but still same problems




Thanks a lot for your help



Rainer Jung wrote:


Julio Cesar Leiva schrieb:


Hi all

We have  this setup

1 web server apache 2.2.0




I hope it's not 2.2.0 but something more recent (e.g. 2.2.4 or 2.2.6)


2 tomcat servers tomcat 5.5.20
mod_jk 1.2.25

This is our workers.properties




Remove the next line, it's useless.


workers.java_home=/usr/lib64/jvm/java





worker.list=cbnbalancer,jkstatus




Maybe add connect_timeout and prepost_timeout to the next two, and if 
it makes sense for the app also reply_timeout. See


http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html


# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=172.20.23.12
worker.worker1.port=8009
worker.worker1.lbfactor=1
#worker.worker1.connection_pool_timeout=600
#worker.worker1.socket_keepalive=1
#worker.worker1.socket_timeout=60
worker.worker1.socket_timeout=0
# Define prefered failover node for worker1
worker.worker1.redirect=worker2

# Set properties for worker2 (ajp13)
worker.worker2.type=ajp13
worker.worker2.host=172.20.21.211
worker.worker2.port=8009
worker.worker2.lbfactor=1
#worker.worker2.connection_pool_timeout=600
#worker.worker2.socket_keepalive=1
#worker.worker2.socket_timeout=60
worker.worker2.socket_timeout=0
# Define prefered failover node for worker2
worker.worker2.redirect=worker1




method T (Traffic) does only make sense, if you are bandwidth limited 
in the network and thus want to balance w.r.t bytes transferred.



# Set properties for balancer which use worker1 and worker2
worker.cbnbalancer.type=lb
worker.cbnbalancer.method=T
worker.cbnbalancer.balance_workers=worker2,worker1
# Enable sticky-sessions (aka session affinity)
worker.cbnbalancer.sticky_session=1

# Define a 'jkstatus' worker using status
worker.jkstatus.type=status
# Add the jkstatus mount point




Maybe a little simpler, if you omit the trailing '*', thus mapping 
the exact URL /jkmanager/.



JkMount /jkmanager/* jkstatus
# Enable the JK manager access from localhost only
!-- Location /jkmanager/




You don't need the next line, because you already defined this mount.


 JkMount jkstatus
 Order deny,allow
 Deny from all
#  Allow from 127.0.0.1
 Allow from all
/Location --

This is part of one server.xml




connectionTimeout=60 would be a good fit to the 600 in your jk 
configuration.


2000 Threads is a lot, are you sure, that your OS can create that 
many Threads for a JVM (Memory issues possible)? If you only allow 
700 parallel requests in Apache, you don't need more than 700 (+1?) 
threads in the AJP connector.



Engine name=Catalina defaultHost=localhost jvmRoute=worker1 

Connector port=8009 minProcessors=5 maxThreads=2000 
minSpareThreads=100 maxSpareThreads=150 maxProcessors=0

protocol=AJP/1.3 connectionTimeout=0/

This is the second tomcat
Engine name=Catalina defaultHost=localhost jvmRoute=worker2 

Connector port=8009 minProcessors=5 maxThreads=2000 
minSpareThreads=100 maxSpareThreads=150 maxProcessors=0

protocol=AJP/1.3 connectionTimeout=0/

This is part of the apache conf




Which mpm, prefork?


# number of server processes to start
   # 
http://httpd.apache.org/docs/2.2/mod/mpm_common.html#startservers

   StartServers 5
   # minimum number of server processes which are kept spare
   # 
http://httpd.apache.org/docs/2.2/mod/prefork.html#minspareservers

   MinSpareServers  5
   # maximum number of server processes which are kept spare
   # 
http://httpd.apache.org/docs/2.2/mod/prefork.html#maxspareservers

   MaxSpareServers 10
   # highest possible MaxClients 

RE: Connection pooling

2008-01-11 Thread Caldarale, Charles R
 From: Andrew Hole [mailto:[EMAIL PROTECTED] 
 Subject: Re: Connection pooling
 
 With the following configuration i get the
 error:DatasourceConnectionProvider - Could not find datasource:
 java:/comp/env/ehr
 Resource name=jdbc/ehr auth=Container

That's because Martin gave you bad information.  As long as the names
are consistent (which they were, before you applied Martin's
suggestion), it doesn't really matter what they are.  If you change the
Resource name to jdbc/ehr then the name on the context lookup in
your webapp must change correspondingly.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Datasource Property Parameters (Oracle) JNDI

2008-01-11 Thread Andrew Hole
I don't see examples with initial size of pool! Exists some default
value for pool initial size??


On Jan 11, 2008 2:27 PM, Caldarale, Charles R
[EMAIL PROTECTED] wrote:
  From: Andrew Hole [mailto:[EMAIL PROTECTED]
  Subject: Re: Datasource Property Parameters (Oracle) JNDI
 
  Could you help me to setup my datasource to works fine?

 The instructions are here:
 http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.h
 tml


  - 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 start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Loading multiple versions of the same library

2008-01-11 Thread Peter Crowther
 From: Brian Wawok [mailto:[EMAIL PROTECTED]
 Tomcat 5.0 Server.

 Program A is running on server, and needs axis 1.1 as a library.

Is program A packaged as a WAR, with the Axis 1.1 libraries in the WAR?  If 
not, it should be.

 Program B is running on the same server, and needs axis 1.4
 as a library.

Is program B packaged as a WAR, with the Axis 1.4 libraries in the WAR?  If 
not, it should be.

 Axis 1.1 and 1.4 are not backwards compatible... if I just
 put Axis 1.1 on
 it.. program B won't work.. If I just put Axis 1.4 on it,
 program A won't work.

What do you mean by put axis 1.1 on it?  Where are you putting these 
libraries, if not in a WAR?

 Tomcat doesn't seem to like having the same jar loaded in twice (some
 classes between the two obviously overlap).

Tomcat is explicitly *designed* to allow this.  Each webapp has its own 
classloader.  This relies on you creating your programs as webapps.  Have you 
done this?  If not, why not?

 How do I make this all work? I really don't want to have to
 try to manually
 convert a large application from using 1.1 to 1.4 or vice
 versa, want to try
 to make them both work...


 The only thing I have tried so far, is to bundle in axis 1.4
 with program by
 manually putting all the classes in the jar. This did not
 seem to accomplish
 anything..

Read up on webapps.  Package your programs as webapps.  Deploy each of them 
separately.  You may need to do a fair bit of reading if you're new to Tomcat 
and have never created one of these before, but it's reading you'll have to do 
if you want to use an application container such as Tomcat.

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem with accessing HTML page under non-default appBase in Tomcat.

2008-01-11 Thread Caldarale, Charles R
 From: rajendra_sakpal [mailto:[EMAIL PROTECTED] 
 Subject: RE: Problem with accessing HTML page under 
 non-default appBase in Tomcat.
 
 FYI: The problem that I described here has nothing to do with 
 the problem that I posted yesterday.

No, it's exactly the same problem: you don't understand what a servlet
container is supposed to do.  Please read the references given to you
and look at how the webapps delivered with Tomcat are structured.
You'll need to place the files for your default webapp under a
[appBase]/ROOT (case matters).

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Datasource Property Parameters (Oracle) JNDI

2008-01-11 Thread Andrew Hole
Well, REsource A works nice. When I startup Tomcat, are created 5 new
database connections.
Resource B allows connections to be created, but without pooling.

I'm without ideas! Please, could u help me?

 Resource A
Resource name=ehr auth=Container
 type=javax.sql.DataSource driverClassName=
oracle.jdbc.driver.OracleDriver
 url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03
 username=alert_viewer password=alert initialSize=5
maxActive=50 maxIdle=10 minIdle=5
 maxWait=-1 defaultAutoCommit=false /

 Resource B
Resource name=ehr auth=Container
* type=oracle.jdbc.pool.OracleDataSource  *  *
driverClassName=oracle.jdbc.OracleDriver*
   *factory=oracle.jdbc.pool.OracleDataSourceFactory  *
 url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03
 *user*=alert_viewer password=alert initialSize=5
maxActive=50 maxIdle=10 minIdle=5
 maxWait=-1 defaultAutoCommit=false /



On Jan 11, 2008 2:40 PM, Caldarale, Charles R [EMAIL PROTECTED]
wrote:
  From: Andrew Hole [mailto:[EMAIL PROTECTED]
  Subject: Re: Datasource Property Parameters (Oracle) JNDI
 
  I don't see examples with initial size of pool! Exists some default
  value for pool initial size??

 To quote from the doc:
 See the DBCP documentation for a complete list of configuration
 parameters.
 http://commons.apache.org/dbcp/configuration.html


  - 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 start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Loading multiple versions of the same library

2008-01-11 Thread Brian Wawok
I have the following situation.

Tomcat 5.0 Server.

Program A is running on server, and needs axis 1.1 as a library.

Program B is running on the same server, and needs axis 1.4 as a library. 

Axis 1.1 and 1.4 are not backwards compatible... if I just put Axis 1.1 on
it.. program B won't work.. If I just put Axis 1.4 on it, program A won't
work.

Tomcat doesn't seem to like having the same jar loaded in twice (some
classes between the two obviously overlap).

How do I make this all work? I really don't want to have to try to manually
convert a large application from using 1.1 to 1.4 or vice versa, want to try
to make them both work...
 

The only thing I have tried so far, is to bundle in axis 1.4 with program by
manually putting all the classes in the jar. This did not seem to accomplish
anything..


Thanks for the help!




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem with accessing HTML page under non-default appBase in Tomcat.

2008-01-11 Thread rajendra_sakpal
Hi Caldarale,

Yesterday's issue:
=

Thanks for the reply.  We are supposed deploy the application which has
JSP/HTML pages  some Java classes bundled as JAR in Tomcat.

Note: We cannot change the application the way it is bundled now.  

Today's issue:
==

However, I am curious to know if there's any resolution for the problem with
accessing HTML page under non-default appBase in Tomcat.

FYI: The problem that I described here has nothing to do with the problem
that I posted yesterday.

I just want to know if I am missing anything/doing anything wrong in
configuring Tomcat so that I can access the HTML under the appBase which is
not webapps but some other location on the server.

If possible, let me know if you have a solution to the issue that I reported
today. 


Thanks  regards,
Rajendra

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 11, 2008 7:40 PM
To: Tomcat Users List
Subject: RE: Problem with accessing HTML page under non-default appBase in
Tomcat.

 From: Rajendra Sakpal (Persistent) [mailto:[EMAIL PROTECTED] 
 Subject: Problem with accessing HTML page under non-default 
 appBase in Tomcat.
 
 I'm trying to access a HTML file placed in the appBase that 
 is not under the default webapps directory of Tomcat 5.5.

To repeat Gregor's comments from yesterday, when you asked the same
question:

Seems as if you lack the basic knowledge of what a ServletContainer
(aka Tomcat) is about.

I got no idea why you want to deploy a jar-file within Tomcat - are you
trying something like Webstart?

What is you application, anyways.? Is it a Servlet / JSP? If so, then
the your deployment was already wrong using Tomcat 4.

Maybe you want to read this as a start:
http://tomcat.apache.org/tomcat-5.5-doc/appdev/index.html;

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Error when shutting down Tomcat

2008-01-11 Thread Jim Brikman (ybrikman)
Is there any way to prevent this error? We use the windows service panel to 
start/stop Tomcat, and if we get this error, the stop command times out, the 
service panel shows an error and assumes the service has stopped, so you can't 
push stop again. 

Thanks,
Jim 

-Original Message-
From: david delbecq [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 10, 2008 5:09 PM
To: Tomcat Users List
Subject: Re: Error when shutting down Tomcat

Tomcat use a localhost binded port to receive SHUTDOWN request. However, i 
think it does start listening on that port only after the startup sequence is 
finished. What you see is not a message from the running tomcat, but a message 
from the shutdown script, that says it can't connect to tomcat administrative 
port and thus can't send the shutdown instruction. Your guess is correct, 
tomcat is still running totally unaffected. Just rerun shutdown command when 
tomcat has finished starting up.
Jim Brikman (ybrikman) a écrit :
 If I start Tomcat and let it run for ~30 seconds (ie, let my webapp 
 load completely), I can shut it down without any errors. However, if I 
 start Tomcat and very shortly after try to shut it down again (before 
 my webapp has finished loading), I get the following error in the logs:
  
 : : Oct 26 2007 14:00:44.124 -0400: %_--: Catalina.stop:  
 java.net.ConnectException: Connection refused: connect  at 
 java.net.PlainSocketImpl.socketConnect(Native Method)  at 
 java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
  at 
 java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
  at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
  at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
  at java.net.Socket.connect(Socket.java:519)
  at java.net.Socket.connect(Socket.java:469)
  at java.net.Socket.init(Socket.java:366)
  at java.net.Socket.init(Socket.java:179)
  at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:395)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
 av
 a:39)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
 or
 Impl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:585)
  at 
 org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435)

 Nothing else appears in the logs afterwards, so I have no idea what's 
 happening, but I'm pretty sure Tomcat keeps running and my webapp's 
 shutdown code is never called.
  
 Any ideas?
  
 Thanks,
 Jim

   


-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: 
[EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with accessing HTML page under non-default appBase in Tomcat.

2008-01-11 Thread David Smith
To be clear, the appBase can contain nothing but webapps and tomcat 
considers all content to be a part of one webapp or another.  The ROOT 
webapp is a special webapp that processes all requests not matching any 
other webapp's path.  To serve up your html file from the root of your 
site, place it in the ROOT webapp.  See the tomcat docs and the servlet 
spec (especially the servlet spec) for a clear description of how this 
is handled.


--David

rajendra_sakpal wrote:


Hi Caldarale,

Yesterday's issue:
=

Thanks for the reply.  We are supposed deploy the application which has
JSP/HTML pages  some Java classes bundled as JAR in Tomcat.

Note: We cannot change the application the way it is bundled now.  


Today's issue:
==

However, I am curious to know if there's any resolution for the problem with
accessing HTML page under non-default appBase in Tomcat.

FYI: The problem that I described here has nothing to do with the problem
that I posted yesterday.

I just want to know if I am missing anything/doing anything wrong in
configuring Tomcat so that I can access the HTML under the appBase which is
not webapps but some other location on the server.

If possible, let me know if you have a solution to the issue that I reported
today. 



Thanks  regards,
Rajendra

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 11, 2008 7:40 PM

To: Tomcat Users List
Subject: RE: Problem with accessing HTML page under non-default appBase in
Tomcat.

 

From: Rajendra Sakpal (Persistent) [mailto:[EMAIL PROTECTED] 
Subject: Problem with accessing HTML page under non-default 
appBase in Tomcat.


I'm trying to access a HTML file placed in the appBase that 
is not under the default webapps directory of Tomcat 5.5.
   



To repeat Gregor's comments from yesterday, when you asked the same
question:

Seems as if you lack the basic knowledge of what a ServletContainer
(aka Tomcat) is about.

I got no idea why you want to deploy a jar-file within Tomcat - are you
trying something like Webstart?

What is you application, anyways.? Is it a Servlet / JSP? If so, then
the your deployment was already wrong using Tomcat 4.

Maybe you want to read this as a start:
http://tomcat.apache.org/tomcat-5.5-doc/appdev/index.html;

- 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: memory usage increases on application stop

2008-01-11 Thread David Delbecq
En l'instant précis du 11/01/08 09:34, Morten Matras s'exprimait en ces 
termes:

Case:

I've deployed an application on a Tomcat 6.0 (current release). The
application is a Hibernate / Stripes application.


Almost no memory is allocated due to the deployed application.


Setting:


-Xmx64m -XX:MaxPermSize=128m
  
According to memory below, those settings are not take into account, or 
you wouldn't go over about 70M total space (java heap space of 64M max + 
jvm code of a few megs). Note that the PermSize is taken from the heap, 
so it should be lower than max heap size.


Tomcat without application uses: 27,5M (real memory) and 349M (virtual
memory)
Tomcat with application uses: 133M (real memory) and 367M (Virtual memory)


Now if I stop this application (using the manager) the memory profile
becomes:


Tomcat with stopped application: 128M (real memory) and 679M (virtual
memory)


So stopping the application increases the virtual memory usage from 367 to
679 m and stays there!
  
The increase is probably due to specific code your application executes 
when it is stopped. It seems to do memory intesive things there :) You 
have to be aware a JVM memory never decrease in terms of system memory 
size. It can only grow up to the -Xmx size. (See sun's jvm docs for 
details). To get an idea of what memory size is really available for 
your jvm, you must check the values inside the jvm (use the system 
class, or a easy to use tool like lambda probe).


If, even after a GC, memory is not release inside the java heap, then go 
check for memory leaks in your webapp.




Undeploying a stopped application doesn't change the numbers.


Why does stopping (or undeploying) a webapplication cause a dramatic
increase in memory usage?


My guesses:
 - Some ressources are not freed? (database connections)
 - Some hibernate related stuff are trapped in a circular relation circle?
 - Tomcat punishes me for stopping something it really liked :-)



  



--
http://www.devlog.be (a belgian developer's logs)



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Datasource Property Parameters (Oracle) JNDI

2008-01-11 Thread Andrew Hole
I get the following error when i change from ehr to jdbc/ehr:

2008-01-11 15:42:57,471 FATAL Thread-1 DatasourceConnectionProvider - Could
not find datasource: java:/comp/env/ehr
javax.naming.NameNotFoundException: Name ehr is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:769)
at org.apache.naming.NamingContext.lookup(NamingContext.java:139)
at org.apache.naming.NamingContext.lookup(NamingContext.java:780)
at org.apache.naming.NamingContext.lookup(NamingContext.java:139)
at org.apache.naming.NamingContext.lookup(NamingContext.java:780)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
Thanks

On Jan 11, 2008 3:31 PM, Martin Gainty [EMAIL PROTECTED] wrote:

 Andrew-

 is there a specific reason why you are using name=ehr instead of
 specifying name=jdbc/ehr

 M-
 - Original Message -
 From: Andrew Hole [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Friday, January 11, 2008 10:14 AM
 Subject: Re: Datasource Property Parameters (Oracle) JNDI


  Well, REsource A works nice. When I startup Tomcat, are created 5 new
  database connections.
  Resource B allows connections to be created, but without pooling.
 
  I'm without ideas! Please, could u help me?
 
   Resource A
  Resource name=ehr auth=Container
   type=javax.sql.DataSource driverClassName=
  oracle.jdbc.driver.OracleDriver
   url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03
   username=alert_viewer password=alert initialSize=5
  maxActive=50 maxIdle=10 minIdle=5
   maxWait=-1 defaultAutoCommit=false /
 
   Resource B
  Resource name=ehr auth=Container
  * type=oracle.jdbc.pool.OracleDataSource  *  *
  driverClassName=oracle.jdbc.OracleDriver*
 *factory=oracle.jdbc.pool.OracleDataSourceFactory  *
   url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03
   *user*=alert_viewer password=alert initialSize=5
  maxActive=50 maxIdle=10 minIdle=5
   maxWait=-1 defaultAutoCommit=false /
 
 
 
  On Jan 11, 2008 2:40 PM, Caldarale, Charles R 
 [EMAIL PROTECTED]
  wrote:
From: Andrew Hole [mailto:[EMAIL PROTECTED]
Subject: Re: Datasource Property Parameters (Oracle) JNDI
   
I don't see examples with initial size of pool! Exists some default
value for pool initial size??
  
   To quote from the doc:
   See the DBCP documentation for a complete list of configuration
   parameters.
   http://commons.apache.org/dbcp/configuration.html
  
  
- 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 start a new topic, e-mail: users@tomcat.apache.org
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Error: server\webapps\manager does not exist or is not a readable directory...

2008-01-11 Thread David Smith

Comments inline --

Thomas Chang wrote:

Sorry, I haven't understund what your   I'll bet you don't have a webapp at 
server/webapps/admin ... means.


 

It means take a look at the server/webapps folder.  I'll bet there is 
not a folder named admin there.


In conf/Catalina/localhost there really a file called manager.xml and the 
manager webapp itself is really at server/webapps/manager.



 

Ok... then there should be an error message specifically referring to 
the manager webapp in the logs.  The error posted in your original post 
has to do with the admin webapp and should not impact deployment of the 
manager webapp.


David Smith [EMAIL PROTECTED] schrieb: Right -- as I expected.  I'll bet you don't have a webapp at 
server/webapps/admin which would cause the stack trace you are seeing. 

That doesn't fix the manager webapp though.  Do you have any errors in 
the logs regarding the manager webapp?  Other things to check is that 
there is file named manager.xml in conf/Catalina/localhost and the 
manager webapp itself at server/webapps/manager.


--David

Thomas Chang wrote:

 


The file conf/Catalina/localhost/admin.xml is there is it just contains one 
line:


   antiResourceLocking=false antiJARLocking=false



David Smith  schrieb: Not sure about the manager webapp responding in 404 since the stack 
track below refers to the admin webapp.  Regarding the stack trace 
below, It would appear you have the admin webapp defined in a 
.../ element but the admin webapp itself isn't present.  Look for a 
file named admin.xml in conf/Catalina/localhost -- that's the source of 
the error.


--David

Thomas Chang wrote:



   


Hi all,

I copy the whole dir of the Tomcat 5.5.17 which runs quite well at home to the computer in my 
office. As I start the Tomcat, I got error as follow. Though I can open the first page of Tomcat, 
but as I want to open the Manager link I got error of HTTP Status 404 - 
/manager/html

Somebody has idea?

Regards

Thomas


SCHWERWIEGEND: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\Programme\Apache Software F
oundation\apache-tomcat-5.5.17\server\webapps\admin does not exist or is not a r
eadable directory
 at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.
java:140)
 at org.apache.catalina.core.StandardContext.resourcesStart(StandardConte
xt.java:3814)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
985)
 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:759)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
9)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)

 at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
va:608)
 at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
ava:535)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470
)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:310)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)

 at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)

 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442
)
 at org.apache.catalina.core.StandardService.start(StandardService.java:4
50)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:709
)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
11.01.2008 08:09:01 org.apache.catalina.core.StandardContext start


-
Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem  neuen Yahoo! Mail. 



  

 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 
-
Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das  neue Yahoo! Mail. 



   




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, 

RE: Loading multiple versions of the same library

2008-01-11 Thread Brian Wawok


-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 11, 2008 10:22 AM
To: Tomcat Users List
Subject: RE: Loading multiple versions of the same library

 From: Brian Wawok [mailto:[EMAIL PROTECTED] 
 Subject: Loading multiple versions of the same library
 
 Tomcat 5.0 Server.

Deprecated, but still in common use.  Better if you could move to 5.5 or
6.0.


 Program A is running on server, and needs axis 1.1 as a library.
 Program B is running on the same server, and needs axis 1.4 
 as a library. 

Make sure the axis jars are not in common/lib, but rather in each
webapp's WEB-INF/lib directory.  This gets them processed by separate
classloaders, so they shouldn't conflict.

 - Chuck



Hi,

We are using a very large Enterprise content management system. This version
of the CMS is built upon Tomcat 5.0. It is many months work to convert to a
newer version of the CMS, so we haven't yet. I am not fond of Tomcat 5.0
either, but there is not a choice, the CMS is tied into a modified Tomcat.

Moving the libs to web-inf/lib makes sense, I have a .WAR for each
application, I will just take all axis out of the common/lib and bundle
separately with each program that needs it.

Thanks!


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[vhost] problem restarting virtual tomcat hosts

2008-01-11 Thread Bear Giles
Summary: my virtual tomcat hosts are not coming up after a tomcat 
restart, but they do come up once I remove /ROOT.  'start' via the 
manager does not suffice.


Details:
I have several virtual hosts under both tomcat 6.0.14 and apache, linked 
via mod_jk.  The virtual tomcat hosts are located under


  webapps/vhost1 (etc)

with appropriate Host entry in conf/server.xml.  I know the setup is 
valid since I will get the expected contents from 
webapp/vhost1/ROOT/index.jsp when I hit http://vhost1.com/.


Each virtual host has its own copy of manager so I can control the vhost 
at http://vhost1.com/manager/html.  Most importantly, I can deploy new 
war files via this interface.  The upload war files are exploded, as 
expected.


The problem occurs when I cycle the tomcat server for some reason, e.g., 
when defining a new virtual host or after a system reboot.  The logs say 
the error is an IllegalArgumentException: Document base /vhost1 does 
not exist or is not a readable directory. In fact the file does exist, 
is readable, etc.


If I manually nuke the directory then the watcher will explode the war 
file and the application will start as expected.


Any ideas?  I suspect I've just overlooked something in the config files.

BTW I want to keep separate vhost directories since this is a shared 
j2ee appserver.  I trust my colleagues but we need to be able to assure 
our respective clients that we've taken all reasonable and prudent steps 
to keep our webapps isolated.


Thanks,

Bear


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Connection pooling

2008-01-11 Thread Andrew Hole
Every db execution creates a new session.
Each session dropped correctly after db execution.
Is it supposed I see 5 (new) connections to database after tomcat restart?

Thanks

On Jan 11, 2008 2:24 PM, Caldarale, Charles R
[EMAIL PROTECTED] wrote:
  From: Andrew Hole [mailto:[EMAIL PROTECTED]
  Subject: Connection pooling
 
  The following configuration was not supposed to be created 5
  connections at first get connection execution?

 Not quite sure how to parse the above sentence, but the config should
 have created five connections at initialization.

  My application with the following configuration creates
  always a new session in the database for each invocation,
  which is not to take advantage of pooling.

 Possibly because your webapp is not closing the connections, thereby not
 allowing them to return to the pool:
 http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.h
 tml#Preventing%20dB%20connection%20pool%20leaks

  - 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 start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Datasource Property Parameters (Oracle) JNDI

2008-01-11 Thread Martin Gainty
Andrew-

is there a specific reason why you are using name=ehr instead of
specifying name=jdbc/ehr

M-
- Original Message -
From: Andrew Hole [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, January 11, 2008 10:14 AM
Subject: Re: Datasource Property Parameters (Oracle) JNDI


 Well, REsource A works nice. When I startup Tomcat, are created 5 new
 database connections.
 Resource B allows connections to be created, but without pooling.

 I'm without ideas! Please, could u help me?

  Resource A
 Resource name=ehr auth=Container
  type=javax.sql.DataSource driverClassName=
 oracle.jdbc.driver.OracleDriver
  url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03
  username=alert_viewer password=alert initialSize=5
 maxActive=50 maxIdle=10 minIdle=5
  maxWait=-1 defaultAutoCommit=false /

  Resource B
 Resource name=ehr auth=Container
 * type=oracle.jdbc.pool.OracleDataSource  *  *
 driverClassName=oracle.jdbc.OracleDriver*
*factory=oracle.jdbc.pool.OracleDataSourceFactory  *
  url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03
  *user*=alert_viewer password=alert initialSize=5
 maxActive=50 maxIdle=10 minIdle=5
  maxWait=-1 defaultAutoCommit=false /



 On Jan 11, 2008 2:40 PM, Caldarale, Charles R [EMAIL PROTECTED]
 wrote:
   From: Andrew Hole [mailto:[EMAIL PROTECTED]
   Subject: Re: Datasource Property Parameters (Oracle) JNDI
  
   I don't see examples with initial size of pool! Exists some default
   value for pool initial size??
 
  To quote from the doc:
  See the DBCP documentation for a complete list of configuration
  parameters.
  http://commons.apache.org/dbcp/configuration.html
 
 
   - 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 start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Connection pooling

2008-01-11 Thread Caldarale, Charles R
 From: Andrew Hole [mailto:[EMAIL PROTECTED] 
 Subject: Connection pooling
 
 The following configuration was not supposed to be created 5
 connections at first get connection execution?

Not quite sure how to parse the above sentence, but the config should
have created five connections at initialization.

 My application with the following configuration creates 
 always a new session in the database for each invocation,
 which is not to take advantage of pooling.

Possibly because your webapp is not closing the connections, thereby not
allowing them to return to the pool:
http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.h
tml#Preventing%20dB%20connection%20pool%20leaks

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Connection pooling

2008-01-11 Thread Andrew Hole
Hi! Thanks...

With the following configuration i get the
error:DatasourceConnectionProvider - Could not find datasource:
java:/comp/env/ehr
Resource name=jdbc/ehr auth=Container
type=oracle.jdbc.pool.OracleDataSource
factory=oracle.jdbc.pool.OracleDataSourceFactory
driverClassName=oracle.jdbc.OracleDriver
url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03
user=alert_viewer password=alert initialLimit=5 minLimit=5
maxLimit=10 debug=5 /

With Resoruce name = ehr  works fine but  pooling is disable. I
don't know if paramenters initalLimit, minLimit are defined correctly.
Could you help me to setup a correct configuration?
I want have 5 initial database sessions.

Resource name=ehr auth=Container type=oracle.jdbc.pool.OracleDataSource
factory=oracle.jdbc.pool.OracleDataSourceFactory
driverClassName=oracle.jdbc.OracleDriver
url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03
user=alert_viewer password=alert initialLimit=5 minLimit=5
maxLimit=10 debug=5 /

Thanks a lot

On Jan 11, 2008 2:10 PM, Martin Gainty [EMAIL PROTECTED] wrote:
 Andrew-

 The first thing I noticed is your Resource name shoule be jdbc/ehr
 replace server_name with the actual server name
 replace the SID with the Service ID you will be using (check the
 tnsnames.ora for SID)
 http://www.microdeveloper.com/html/JNDI_Orcl_Tomcat1p.html

 Martin

 - Original Message -
 From: Andrew Hole [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Friday, January 11, 2008 5:32 AM
 Subject: Connection pooling


  Hello!
 
  The following configuration was not supposed to be created 5
  connections at first get connection execution?
  My application with the following configuration creates always a new
  session in the database for each invocation,
  which is not to take advantage of pooling. Why?
 
  Context  docBase=F:/TOMCAT_UPG1_VIEWER/mni_ehrviewer
  reloadable=true path=upg1ehr 
 
  Resource name=ehr auth=Container
 type=oracle.jdbc.pool.OracleDataSource
  factory=oracle.jdbc.pool.OracleDataSourceFactory
  driverClassName=oracle.jdbc.OracleDriver
  url=jdbc:oracle:thin:@server_name:1521:sid user=user
  password=password initialSize=5 maxActive=50 maxIdle=10
  minIdle=5 maxWait=-1 defaultAutoCommit=false/
 
 
  Manager className=org.apache.catalina.session.StandardManager
  maxActiveSessions=-1 maxInactiveInterval=1800 pathname=
  processExpiresFrequency=6 /
 
  /Context
 
 
  Thanks a lot
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat Shutdown error transport error 202: bind failed

2008-01-11 Thread Caldarale, Charles R
 From: varunsuresh [mailto:[EMAIL PROTECTED] 
 Subject: Re: Tomcat Shutdown error transport error 202: bind failed
 
export CATALINA_OPTS=$CATALINA_OPTS $JPDA_OPTS

The above is wrong. By appending JPDA_OPTS to CATALINA_OPTS, you end up
with the JPDA settings twice on the command line.  Just take out the
above line.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Datasource Property Parameters (Oracle) JNDI

2008-01-11 Thread Andrew Hole
Could you help me to setup my datasource to works fine? I already try
lot of changes on Resource element, but pooling is disable.


Resource name=ehr auth=Container type=oracle.jdbc.pool.OracleDataSource
   factory=oracle.jdbc.pool.OracleDataSourceFactory
   driverClassName=oracle.jdbc.OracleDriver
   url=jdbc:oracle:thin:@192.168.1.244:1521:SID user=
password=t InitialLimit=5 MinLimit=5 MaxLimit=10 debug=5
/

Thanks a lot



On Jan 11, 2008 1:55 PM, Caldarale, Charles R
[EMAIL PROTECTED] wrote:
  From: Berglas, Anthony [mailto:[EMAIL PROTECTED]
  Subject: Datasource Property Parameters (Oracle) JNDI

 This doesn't resolve your problem, but you have errors in your KMS.xml
 file.

  Context path=/KMS docBase=KMS debug=5 reloadable=true
  crossContext=true

 Assuming you're using a reasonably current version of Tomcat (you didn't
 explicitly tell us, but your Resource declaration indicates it's a
 recent version), the path and docBase attributes are not allowed.  At
 best they will be ignored, at worst they may cause confusion due to
 double deployment.

  I have never seen any reference to the ability to put a
  file like KMS.xml in the conf area.

 RTFM:
 http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
 http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

 It's covered in the Introduction section, 3rd bullet in the list.

  - 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 start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Connection pooling

2008-01-11 Thread Martin Gainty
Andrew-

The first thing I noticed is your Resource name shoule be jdbc/ehr
replace server_name with the actual server name
replace the SID with the Service ID you will be using (check the
tnsnames.ora for SID)
http://www.microdeveloper.com/html/JNDI_Orcl_Tomcat1p.html

Martin
- Original Message -
From: Andrew Hole [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, January 11, 2008 5:32 AM
Subject: Connection pooling


 Hello!

 The following configuration was not supposed to be created 5
 connections at first get connection execution?
 My application with the following configuration creates always a new
 session in the database for each invocation,
 which is not to take advantage of pooling. Why?

 Context  docBase=F:/TOMCAT_UPG1_VIEWER/mni_ehrviewer
 reloadable=true path=upg1ehr 

 Resource name=ehr auth=Container
type=oracle.jdbc.pool.OracleDataSource
 factory=oracle.jdbc.pool.OracleDataSourceFactory
 driverClassName=oracle.jdbc.OracleDriver
 url=jdbc:oracle:thin:@server_name:1521:sid user=user
 password=password initialSize=5 maxActive=50 maxIdle=10
 minIdle=5 maxWait=-1 defaultAutoCommit=false/


 Manager className=org.apache.catalina.session.StandardManager
 maxActiveSessions=-1 maxInactiveInterval=1800 pathname=
 processExpiresFrequency=6 /

 /Context


 Thanks a lot

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem with accessing HTML page under non-default appBase in Tomcat.

2008-01-11 Thread rajendra_sakpal
It's giving me HTTP 400: Bad Request error when trying to access the URL.



DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: memory usage

2008-01-11 Thread Caldarale, Charles R
 From: Jordi Prats [mailto:[EMAIL PROTECTED] 
 Subject: memory usage
 
 There's any way to identify witch application and witch class 
 is getting to many memory?

Read the FAQ:
http://wiki.apache.org/tomcat/FAQ/Memory

 How can I get some statistics about tomcat's memory usage?

The same way you would with any other Java program - JConsole is a good
starting point, but you'll likely need a profiler.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



memory usage

2008-01-11 Thread Jordi Prats

Hi,
I'm getting out of memory errors on tomcat:

Mar 27, 2007 5:21:46 AM 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor 
processChildren

SEVERE: Exception invoking periodic operation:
java.lang.OutOfMemoryError: Java heap space
Mar 27, 2007 5:21:52 AM unknown unknown
SEVERE: Error finishing response
java.lang.OutOfMemoryError: Java heap space
Mar 27, 2007 5:21:51 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet bitstream threw exception
java.lang.OutOfMemoryError: Java heap space

There's any way to identify witch application and witch class is getting 
to many memory? I think that some application creates a immense array by 
never delete any data.


How can I get some statistics about tomcat's memory usage?

Many thanks!

Jordi

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error: server\webapps\manager does not exist or is not a readable directory...

2008-01-11 Thread Thomas Chang
The file conf/Catalina/localhost/admin.xml is there is it just contains one 
line:

Context docBase=${catalina.home}/server/webapps/admin privileged=true
 antiResourceLocking=false antiJARLocking=false
/Context


David Smith [EMAIL PROTECTED] schrieb: Not sure about the manager webapp 
responding in 404 since the stack 
track below refers to the admin webapp.  Regarding the stack trace 
below, It would appear you have the admin webapp defined in a 
.../ element but the admin webapp itself isn't present.  Look for a 
file named admin.xml in conf/Catalina/localhost -- that's the source of 
the error.

--David

Thomas Chang wrote:

Hi all,

I copy the whole dir of the Tomcat 5.5.17 which runs quite well at home to the 
computer in my office. As I start the Tomcat, I got error as follow. Though I 
can open the first page of Tomcat, but as I want to open the Manager link I 
got error of HTTP Status 404 - /manager/html

Somebody has idea?

Regards

Thomas


SCHWERWIEGEND: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\Programme\Apache Software 
F
oundation\apache-tomcat-5.5.17\server\webapps\admin does not exist or is not a 
r
eadable directory
at 
 org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.
java:140)
at 
 org.apache.catalina.core.StandardContext.resourcesStart(StandardConte
xt.java:3814)
at 
 org.apache.catalina.core.StandardContext.start(StandardContext.java:3
985)
at 
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:759)
at 
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
9)
at 
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)

at 
 org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
va:608)
at 
 org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
ava:535)
at 
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at 
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:310)
at 
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)

at 
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442
)
at 
 org.apache.catalina.core.StandardService.start(StandardService.java:4
50)
at 
 org.apache.catalina.core.StandardServer.start(StandardServer.java:709
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
11.01.2008 08:09:01 org.apache.catalina.core.StandardContext start

   
-
Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit 
dem  neuen Yahoo! Mail. 
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



   
-
Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr 
bietet das  neue Yahoo! Mail. 

Re: Datasource Property Parameters (Oracle) JNDI

2008-01-11 Thread Andrew Hole
Hello!

I think that I have the same problem.

Resource name=ehr auth=Container type=oracle.jdbc.pool.OracleDataSource
factory=oracle.jdbc.pool.OracleDataSourceFactory
driverClassName=oracle.jdbc.OracleDriver
url=jdbc:oracle:thin:@192.168.1.244:1521:SID user=
password=t InitialLimit=5 MinLimit=5 MaxLimit=10 debug=5
/

What you are saying is that i can't use pooling on Tomcat/JNDI or only
in case of oracle.jdbc.pool.OracleDataSourceFactory?

Thanks a lot


On Jan 11, 2008 11:29 AM, Rainer Jung [EMAIL PROTECTED] wrote:
 Berglas, Anthony wrote:
  Hello,
 
  I am trying to set up 0racle connection pooling.   Some of the
  parameters are reflected normally, but some are specified via a property
  lists.  How do I set the property list properties using Tomcat/JNDI?  I
  can set up the basic DataSource, but I cannot set the maxLimit parameter
  on the max number of connections because they are in the
  setConnectionCacheProperties property map, not reflected.

 The version of commons-dbcp that gets used with Tomcat knows how to
 handle the property map, but unfortunately the simple factory Tomcat
 uses to configure DBCP (which is part of DBCP) doesn't contain the feature.

 On July 23rd the factory has been updated to include the property map
 handling. The feature is waiting for a DBCP release (likely 1.3) since
 then :(

 We had a little trouble with updating our commons-pool dependency
 recently, so I'm not sure how fast after a dbcp release tomcat will
 actually adopt it.

 If it's really important for you, you could build a dbcp snapshot, check
 the commons pool version dependency and replace the components in Tomcat.

 Regards,

 Rainer

  More specifically, here is my conf/Catalina/localhost/KMS.conf  (My web
  app is KMS).
 
  # cat /opt/tomcat/conf/Catalina/localhost/KMS.xml
  ?xml version=1.0 encoding=UTF-8?
 
  Context path=/KMS docBase=KMS debug=5 reloadable=true
  crossContext=true
 
  Resource name=jdbc/rkm auth=Container
  type=oracle.jdbc.pool.OracleDataSource
  driverClassName=oracle.jdbc.OracleDriver
  factory=oracle.jdbc.pool.OracleDataSourceFactory
  connectionCachingEnabled=true
 
  connectionCacheName=KmsConPool
  abandonedConnectionTimeout=200
  connectionWaitTimeout=200
 
  maxLimit=20
 
  url=jdbc:oracle:thin:@localhost:1521:rsakmpri
  user=local
  password=-THIS-SHOULD-BE-IGNORED-
  / !-- maxLimit ignored --
 
  /Context
 
  The problem is that parameters like connectionCachingEnabled are set
  reflectively and work but some such as MaxLimit are set in property
  lists.
 
  Specifically doing this in ordinary, easy Java, from the Oracle manual:-
 
  OracleDataSource ods = new OracleDataSource();
 
  // set cache properties in map
  java.util.Properties prop = new java.util.Properties();
  prop.setProperty(MinLimit, 2);
  prop.setProperty(MaxLimit, 10);
 
  // set DataSource properties
  String url = jdbc:oracle:oci8:@;
  ods.setURL(url);
  ods.setConnectionCacheProperties (prop); //
  
 
  ods.setUser(hr);
  ods.setPassword(hr);
  ods.setConnectionCachingEnabled(true);
  ods.setConnectionCacheName(ImplicitCache01);
  ...
  Connection conn = ods.getConnection(user, pass);
 
  But of course this is Enterprise software, so it must be done in XML,
  not Java.  Any ideas as to how to do this most welcome.
 
  Anthony
 
  PS.  I have never seen any reference to the ability to put a file like
  KMS.xml in the conf area.  I certainly seems to work, and is very
  necessary -- obviously one does not want site config in a war -- but
  just not documented as far as I can tell.
 
  --
  Dr Anthony Berglas
  Ph. +61 7 3227 4410
  Mob. +61 44 838 8874
  [EMAIL PROTECTED]; [EMAIL PROTECTED]
 
 
  --
  Dr Anthony Berglas
  Ph. +61 7 3227 4410
  Mob. +61 44 838 8874
  [EMAIL PROTECTED]; [EMAIL PROTECTED]

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: memory usage increases on application stop

2008-01-11 Thread Caldarale, Charles R
 From: David Delbecq [mailto:[EMAIL PROTECTED] 
 Subject: Re: memory usage increases on application stop
 
 Note that the PermSize is taken from the heap, 
 so it should be lower than max heap size.

Not true in a HotSpot JVM; the heap and PermGen settings are
independent.  The virtual space for the heap and PermGen is allocated in
one chunk, using the total of the sizes.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [vhost] problem restarting virtual tomcat hosts

2008-01-11 Thread Caldarale, Charles R
 From: Bear Giles [mailto:[EMAIL PROTECTED] 
 Subject: [vhost] problem restarting virtual tomcat hosts
 
 The logs say the error is an IllegalArgumentException:
 Document base /vhost1 does not exist or is not a
 readable directory.

Sounds like you may have a conflict between appBase and docBase
settings.  Please post your server.xml and any Context elements you
have.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Loading multiple versions of the same library

2008-01-11 Thread Caldarale, Charles R
 From: Brian Wawok [mailto:[EMAIL PROTECTED] 
 Subject: Loading multiple versions of the same library
 
 Tomcat 5.0 Server.

Deprecated, but still in common use.  Better if you could move to 5.5 or
6.0.

 Program A is running on server, and needs axis 1.1 as a library.
 Program B is running on the same server, and needs axis 1.4 
 as a library. 

Make sure the axis jars are not in common/lib, but rather in each
webapp's WEB-INF/lib directory.  This gets them processed by separate
classloaders, so they shouldn't conflict.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



min/max/spare settings for optimization

2008-01-11 Thread Luis Angarita
Hey guys,

I'm having issue finding why I am receiving the following error from my
tomcat application:

(java.net.SocketTimeoutException: Read timed out)

I have a tomcat application that receives it's transactions from an
apache proxy.  The apache proxy receives it's traffic from a remote
complex.

So ... (web traffic - remote complex - apache proxy - tomcat
application).

My current settings are as follows for the apache-worker (2.2) proxy
(httpd.conf):

MaxKeepAliveRequests 100
KeepAliveTimeout 5

IfModule worker.c
ServerLimit 20
ThreadLimit 15
StartServers 5
MaxClients300
MinSpareThreads  5
MaxSpareThreads 100
ThreadsPerChild 15
MaxRequestsPerChild  100
/IfModule


My current settings are as follows for the tomcat app (server.xml):

maxThreads=300
minSpareThreads=100
maxSpareThreads=300
maxKeepAliveRequest=300
enableLookups=false
connectionTimeout=2
disableUploadTimeout=true


Should these 2 files be a little more similar or any suggestions for
optimization is appreciated.

Using Tomcat 6 and Apache worker 2.2.6

Thanks -

-- 
Luis Angarita
Systems Administrator
Service Apps % Infrastructure
Core Services - AOL, LLC



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Datasource Property Parameters (Oracle) JNDI

2008-01-11 Thread Caldarale, Charles R
 From: Andrew Hole [mailto:[EMAIL PROTECTED] 
 Subject: Re: Datasource Property Parameters (Oracle) JNDI
 
 Well, REsource A works nice. When I startup Tomcat, are created 5 new
 database connections.
 Resource B allows connections to be created, but without pooling.

Your resource A is using container-managed pooling, which is well
documented and known to be reliable.

Your resource B is using some form of pooling provided by Oracle, which
is totally independent of anything in Tomcat; you'll need to look at the
Oracle docs to learn how to configure that.  It may not even be
appropriate for use in a container environment, since every container I
know of provides its own pooling mechanism.

Throw away B, stick with A.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Datasource Property Parameters (Oracle) JNDI

2008-01-11 Thread Andrew Hole
YEs... I don't have problems with database connections! Look what's my
really problem:


Resource name=jdbc/ehr auth=Container
  type=oracle.jdbc.pool.OracleDataSourcedriverClassName=
oracle.jdbc.OracleDriver
factory=oracle.jdbc.pool.OracleDataSourceFactory
  url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03
  user=alert_viewer password=alert initialSize=5
maxActive=50 maxIdle=10 minIdle=5
  maxWait=-1 defaultAutoCommit=false /


%@ page import=oracle.jdbc.pool.OracleDataSource %

%@ page import=javax.naming.Context %
%@ page import=javax.naming.InitialContext %
%@ page import=java.io.Serializable %
%@ page import=java.sql.Connection %
%@ page import=java.sql.SQLException %
%@ page import=java.sql.ResultSet %
%@ page import=java.sql.Statement %
%@ page import=java.util.Properties %

%

out.println(TESTE);
String message = new String();
Connection conn = null;
ResultSet rst = null;
Statement stmt = null;
 Context initContext = new InitialContext();
  Context envContext = (Context) initContext.lookup(java:/comp/env);
  OracleDataSource ds = (OracleDataSource) envContext.lookup
(jdbc/ehr);


if(ds.getConnectionCachingEnabled())
{
out.println(Cache Enabled);
}
else
{
out.println(Cache disabled);

}
 if (envContext == null) throw new Exception(Error: No Context);
 if (ds == null) throw new Exception(Error: No DataSource);
 if (ds != null) conn = ds.getConnection();

 if (conn != null) {
message = Got Connection  + conn.toString() + , ;
stmt = conn.createStatement();
rst = stmt.executeQuery(SELECT 'Success obtaining connection' FROM
DUAL);
out.println(message);
 }
 if (rst.next()) message = rst.getString(1);

rst.close();
   rst = null;
   stmt.close();
   stmt = null;
   //conn.close(); // Return to connection pool
   //conn = null; // Make sure we don't close it twice
%


I got the following result:
*Cache disabled *Got Connection [EMAIL PROTECTED],
And database sessions increase highly.

Thanks



On Jan 11, 2008 4:21 PM, Martin Gainty [EMAIL PROTECTED] wrote:

 did you verify the listener on port 1521 is listening?

 netstat -a | grep 1521

 M--
 - Original Message -
 From: Andrew Hole [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Friday, January 11, 2008 11:08 AM
 Subject: Re: Datasource Property Parameters (Oracle) JNDI


  I already change from ehr to jdbc/ehr but the problem of pooling
 remaining.
  Initial sessions are not created.
  Please, help me.
 
  Thanks a lot
 
 
  On Jan 11, 2008 3:45 PM, Andrew Hole [EMAIL PROTECTED] wrote:
 
   I get the following error when i change from ehr to jdbc/ehr:
  
   2008-01-11 15:42:57,471 FATAL Thread-1 DatasourceConnectionProvider -
   Could not find datasource: java:/comp/env/ehr
   javax.naming.NameNotFoundException : Name ehr is not bound in this
 Context
   at org.apache.naming.NamingContext.lookup(NamingContext.java:769)
   at org.apache.naming.NamingContext.lookup(NamingContext.java:139)
   at org.apache.naming.NamingContext.lookup (NamingContext.java:780)
   at org.apache.naming.NamingContext.lookup(NamingContext.java:139)
   at org.apache.naming.NamingContext.lookup(NamingContext.java:780)
   at org.apache.naming.NamingContext.lookup(NamingContext.java :152)
   Thanks
  
  
   On Jan 11, 2008 3:31 PM, Martin Gainty [EMAIL PROTECTED] wrote:
  
Andrew-
   
is there a specific reason why you are using name=ehr instead of
specifying name=jdbc/ehr
   
M-
- Original Message -
From: Andrew Hole [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org 
Sent: Friday, January 11, 2008 10:14 AM
Subject: Re: Datasource Property Parameters (Oracle) JNDI
   
   
 Well, REsource A works nice. When I startup Tomcat, are created 5
 new
 database connections.
 Resource B allows connections to be created, but without pooling.

 I'm without ideas! Please, could u help me?

  Resource A
 Resource name=ehr auth=Container
  type=javax.sql.DataSource driverClassName=
 oracle.jdbc.driver.OracleDriver
  url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03
  username=alert_viewer password=alert
 initialSize=5
 maxActive=50 maxIdle=10 minIdle=5
  maxWait=-1 defaultAutoCommit=false /

  Resource B
 Resource name=ehr auth=Container
 * type=oracle.jdbc.pool.OracleDataSource  *  *
 driverClassName=oracle.jdbc.OracleDriver*
*factory=oracle.jdbc.pool.OracleDataSourceFactory  *
  url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03
  *user*=alert_viewer password=alert
 initialSize=5
 maxActive=50 maxIdle=10 minIdle=5
  maxWait=-1 defaultAutoCommit=false /



 On Jan 11, 2008 2:40 PM, 

Re: [vhost] problem restarting virtual tomcat hosts

2008-01-11 Thread Bear Giles

Caldarale, Charles R wrote:
From: Bear Giles [mailto:[EMAIL PROTECTED] 
Subject: [vhost] problem restarting virtual tomcat hosts


The logs say the error is an IllegalArgumentException:
Document base /vhost1 does not exist or is not a
readable directory.



Sounds like you may have a conflict between appBase and docBase
settings.  Please post your server.xml and any Context elements you
have.

 - Chuck
  
Here's the server.xml and one of the context.xml files.  The other 
virtual hosts have essentially the same context.xml files.


The conf/context.xml file only has a 
WatchedResourceWEB-INF/web.xml/WatchedResource entry.


Bear
!--
	tomcat deployment descriptor
--
Context reloadable=false swallowOutput=true useNaming=true
	path=/ docBase=/

	!-- Do not persist session data across Tomcat restarts... --
	Manager className=org.apache.catalina.session.PersistentManager
		saveOnRestart=false /

	!--
		Our standard database connection.  We will want to change the name
		of the resource to something more meaningful in deployments.
	--
	Resource name=jdbc/beastmark auth=Container
		type=javax.sql.DataSource driverClassName=org.postgresql.Driver
		url=jdbc:postgresql://**/beastmark

		!--
			DBCP parameters when running outside of JTA/XAPool 
		--
		ResourceParams
			property name=maxActive value=20 /
			property name=maxIdle value=10 /
			property name=maxWait value=-1 /
			/ResourceParams
		--
		/ResourceParams
	/Resource
/Context
!-- Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves at this level.
 Documentation at /docs/config/server.html
 --
Server port=8005 shutdown=SHUTDOWN

  !--APR library loader. Documentation at /docs/apr.html --
  Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on /
  !--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html --
  Listener className=org.apache.catalina.core.JasperListener /
  !-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html --
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener /
  Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

  !-- Global JNDI resources
   Documentation at /docs/jndi-resources-howto.html
  --
  GlobalNamingResources
!-- 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
  factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /
  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that share
   a single Container Note:  A Service is not itself a Container, 
   so you may not define subcomponents such as Valves at this level.
   Documentation at /docs/config/service.html
   --
  Service name=Catalina
  
!--The connectors can use a shared executor, you can define one or more named thread pools--
!--
Executor name=tomcatThreadPool namePrefix=catalina-exec- 
maxThreads=150 minSpareThreads=4/
--


!-- A Connector represents an endpoint by which requests are received
 and responses are returned. Documentation at :
 Java HTTP Connector: /docs/config/http.html (blocking  non-blocking)
 Java AJP  Connector: /docs/config/ajp.html
 APR (HTTP/AJP) Connector: /docs/apr.html
 Define a non-SSL HTTP/1.1 Connector on port 8080
--
Connector port=8080 protocol=HTTP/1.1 
   connectionTimeout=2 
   redirectPort=8443 /
!-- A Connector using the shared thread pool--
!--
Connector executor=tomcatThreadPool
   port=8080 protocol=HTTP/1.1 
   connectionTimeout=2 
   redirectPort=8443 /
--   
!-- Define a SSL HTTP/1.1 Connector on port 8443
 This connector uses the JSSE configuration, when using APR, the 
 connector should be using the OpenSSL style configuration
 described in the APR documentation --
!--
Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true
   maxThreads=150 scheme=https secure=true
   clientAuth=false sslProtocol=TLS /
--

!-- Define an AJP 1.3 Connector on port 8009 --
Connector port=8009 protocol=AJP/1.3 redirectPort=8443 /


!-- An Engine represents the entry point (within Catalina) that processes
 every request.  The Engine implementation for Tomcat stand alone
 analyzes the HTTP headers included with the request, and passes them
 on to the appropriate Host (virtual host).
 Documentation at /docs/config/engine.html --

!-- You should set jvmRoute to support load-balancing via AJP ie :
Engine name=Standalone defaultHost=localhost 

RE: Problem with accessing HTML page under non-default appBase in Tomcat.

2008-01-11 Thread rajendra_sakpal
Thanks Caldarale/David!

Your solution worked. I will take a look at the documents as well.


-Rajendra 


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with accessing HTML page under non-default appBase in Tomcat.

2008-01-11 Thread Rajendra Sakpal (Persistent)
Hi Folks,

 

I'm trying to access a HTML file placed in the appBase that is not under
the default webapps directory of Tomcat 5.5.  I cannot access the URL
(http://10.88.129.18:8088/post35.html) from browser.

 

Server.xml:



Host name=localhost appBase=/home/redhot/redhot1.25/redhotdata/web

   unpackWARs=true autoDeploy=true

   xmlValidation=false xmlNamespaceAware=false

 

Note: The post35.html in the above URL is under
/home/redhot/redhot1.25/redhotdata/web i.e. the appBase as defined
above.  

 

What could be the issue?  Have I configured Tomcat correctly? Please
help.

 

Thanks  regards,

Rajendra

 


NOTICE - This message and any attached files may contain information that is 
confidential and/or subject of legal privilege intended only for use by the 
intended recipient. If you are not the intended recipient or the person 
responsible for delivering the message to the intended recipient, be advised 
that you have received this message in error and that any dissemination, 
copying or use of this message or attachment is strictly forbidden, as is the 
disclosure of the information therein.  If you have received this message in 
error please notify the sender immediately and delete the message.


RE: Datasource Property Parameters (Oracle) JNDI

2008-01-11 Thread Caldarale, Charles R
 From: Berglas, Anthony [mailto:[EMAIL PROTECTED] 
 Subject: Datasource Property Parameters (Oracle) JNDI

This doesn't resolve your problem, but you have errors in your KMS.xml
file.

 Context path=/KMS docBase=KMS debug=5 reloadable=true
 crossContext=true

Assuming you're using a reasonably current version of Tomcat (you didn't
explicitly tell us, but your Resource declaration indicates it's a
recent version), the path and docBase attributes are not allowed.  At
best they will be ignored, at worst they may cause confusion due to
double deployment.

 I have never seen any reference to the ability to put a
 file like KMS.xml in the conf area.

RTFM:
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

It's covered in the Introduction section, 3rd bullet in the list.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Datasource Property Parameters (Oracle) JNDI

2008-01-11 Thread Martin Gainty
did you verify the listener on port 1521 is listening?

netstat -a | grep 1521

M--
- Original Message -
From: Andrew Hole [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, January 11, 2008 11:08 AM
Subject: Re: Datasource Property Parameters (Oracle) JNDI


 I already change from ehr to jdbc/ehr but the problem of pooling
remaining.
 Initial sessions are not created.
 Please, help me.

 Thanks a lot


 On Jan 11, 2008 3:45 PM, Andrew Hole [EMAIL PROTECTED] wrote:

  I get the following error when i change from ehr to jdbc/ehr:
 
  2008-01-11 15:42:57,471 FATAL Thread-1 DatasourceConnectionProvider -
  Could not find datasource: java:/comp/env/ehr
  javax.naming.NameNotFoundException : Name ehr is not bound in this
Context
  at org.apache.naming.NamingContext.lookup(NamingContext.java:769)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:139)
  at org.apache.naming.NamingContext.lookup (NamingContext.java:780)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:139)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:780)
  at org.apache.naming.NamingContext.lookup(NamingContext.java :152)
  Thanks
 
 
  On Jan 11, 2008 3:31 PM, Martin Gainty [EMAIL PROTECTED] wrote:
 
   Andrew-
  
   is there a specific reason why you are using name=ehr instead of
   specifying name=jdbc/ehr
  
   M-
   - Original Message -
   From: Andrew Hole [EMAIL PROTECTED]
   To: Tomcat Users List users@tomcat.apache.org 
   Sent: Friday, January 11, 2008 10:14 AM
   Subject: Re: Datasource Property Parameters (Oracle) JNDI
  
  
Well, REsource A works nice. When I startup Tomcat, are created 5
new
database connections.
Resource B allows connections to be created, but without pooling.
   
I'm without ideas! Please, could u help me?
   
 Resource A
Resource name=ehr auth=Container
 type=javax.sql.DataSource driverClassName=
oracle.jdbc.driver.OracleDriver
 url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03
 username=alert_viewer password=alert
initialSize=5
maxActive=50 maxIdle=10 minIdle=5
 maxWait=-1 defaultAutoCommit=false /
   
 Resource B
Resource name=ehr auth=Container
* type=oracle.jdbc.pool.OracleDataSource  *  *
driverClassName=oracle.jdbc.OracleDriver*
   *factory=oracle.jdbc.pool.OracleDataSourceFactory  *
 url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03
 *user*=alert_viewer password=alert initialSize=5
maxActive=50 maxIdle=10 minIdle=5
 maxWait=-1 defaultAutoCommit=false /
   
   
   
On Jan 11, 2008 2:40 PM, Caldarale, Charles R
[EMAIL PROTECTED]
   
wrote:
  From: Andrew Hole [mailto:[EMAIL PROTECTED]
  Subject: Re: Datasource Property Parameters (Oracle) JNDI
 
  I don't see examples with initial size of pool! Exists some
   default
  value for pool initial size??

 To quote from the doc:
 See the DBCP documentation for a complete list of configuration
 parameters.
 http://commons.apache.org/dbcp/configuration.html


  - 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 start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


   
  
  
   -
   To start a new topic, e-mail: users@tomcat.apache.org
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Shutdown error transport error 202: bind failed

2008-01-11 Thread varunsuresh



markt-2 wrote:
 
 varunsuresh wrote:
 These are my debug options
 
  -Xdebug -Xnoagent -Djava.compiler=NONE
 -Xrunjdwp:transport=dt_socket,address=,server=y,suspend=n
 
 How are you setting these? Using JPDA_TRANSPORT etc works for me.
 
 Mark
 

This is how i set them

   export JPDA_TRANSPORT=dt_socket

   export JPDA_ADDRESS=


   export JPDA_SUSPEND=n
 
   export JPDA_OPTS=-Xdebug -Xnoagent
-Xrunjdwp:transport=$JPDA_TRANSPORT,address=$JPDA_ADDRESS,server=y,suspend=$JPDA_SUSPEND

   export CATALINA_OPTS=$CATALINA_OPTS $JPDA_OPTS
-- 
View this message in context: 
http://www.nabble.com/Tomcat-Shutdown-error-transport-error-202%3A-bind-failed-tp14737139p14753922.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk maintenance, recovery

2008-01-11 Thread Dominik Pospisil
Hi Rainer,

thanks a lot for prompt response.

 Dominik Pospisil wrote:
  Hello,
  I am having following problem with following failover test scenario.
 
  Cluster setup:
  - 1 apache load balancer
  - 2 nodes with equal LB factor
  - sticky session turned on
  - Apache/2.0.52, mod_jk/1.2.26
 
  Test scenario:
  1. start 1st node
  2. start load driver
  3. start 2nd node
  4. wait for state transfer (2 minutes)
  5. kill 1st node
 
  My experience is that after stage 1 and 2, all clients are handled
  correctly by 1st node and the second node is set correctly to ERR state.
  After while, the second none switches to ERR/REC state.
 
  However at stage 4 (after starting 2nd node) the second node will never
  come up to OK state. I have set both worker maintain period and LB
  recovery_time to 30s. So i guess that in 2 minutes, the second node
  should have been re-checked. When I press manually Reset worker state
  button, it comes up immediatelly, but it never happend automatically
  during maintenance phase.

 I would expect, that your load driver only send sticky requests, i.e.
 requests with eiher cookie or URL encoding for node cluster01. At least
 that would fit to your observation.

 mod_jk detects during maintenance, if a worker was in error state long
 enough to try again. This happens in your setup, as you can see by the
 ERR/REC state. The next request that comes in *and does not contain a
 session id of another node* will be routed to the REC node. Under load,
 you won't see this state often, because most of the time it should turn
 into ERR or OK very quick.


Hmm, I see. But I would not agree that under load this would necessairly turn 
ERR or OK quickly. I am also generating heavy load, just there are no 
clients / sessions arriving. This could happend in real screnario too.

 Maybe your app sets a cookie and the load driver always presrnts that
 cookie. That way all further requests would be handled as sticky and
 routed to the first node.

 You can find out by logging %{Cookie}i in your httpd access log. If you
 include this in your LogFormat, you can see the incoming Cookie header
 for each request.

Yes, that's true, all of my clients are initialized at the beginning of the 
test and corresponding sessions are created. 

  Eventually, after killing 1st node, and after returning couple of 503
  Service Temporarily Unavailable exceptions, mod_jk finally recheck 2nd
  node status, reroute requests to 2nd node and resumes correct operation.
 

Still, I it is not clear to me, why I am getting 503 exceptions. I believe 
that when there is one or more servers up and ready to serve request, this 
should not happend. Why the requests are not immidiatelly rerouted to second 
node, which is couple of minutes up and running (in ERR/REC state) ?

Thanks,

Dominik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [vhost] problem restarting virtual tomcat hosts

2008-01-11 Thread Caldarale, Charles R
 From: Bear Giles [mailto:[EMAIL PROTECTED] 
 Subject: Re: [vhost] problem restarting virtual tomcat hosts
 
 Here's the server.xml and one of the context.xml files.  The other 
 virtual hosts have essentially the same context.xml files.

Assuming your context.xml is in the webapp's META-INF directory, the
path and docBase attributes are not allowed and must be removed.  The
invalid docBase may well be what's causing the problem.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [vhost] problem restarting virtual tomcat hosts

2008-01-11 Thread Caldarale, Charles R
 From: Bear Giles [mailto:[EMAIL PROTECTED] 
 Subject: Re: [vhost] problem restarting virtual tomcat hosts
 
 That took care of one of the virtual hosts, but a second isn't even 
 exploding now.  It's very confusing since the configurations 
 are identical.

What's in the other Context elements and where are they located?

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat5 not start with -security flag

2008-01-11 Thread rakel

Hi gays.
About my problem.
I think, i know what cause the problem. When I installed java from sun and
starts tomcat5 for first time, it outputs error like: jta.jar files are
missing. After that I have copied jta.jar from previous java-cgi in needed
location on new java-sun. Create needed symbolic links. In this way tomcat
starts and works
But may be this old jta.jar is not correct for java-sun. Today i found
jta.jar on sun site and place it. But problem with tomcat5 start -security
persists

I have no ideas what to do.
Please i need your help.

Thanks in advance
-- 
View this message in context: 
http://www.nabble.com/tomcat5-not-start-with--security-flag-tp14736459p14760133.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem with accessing HTML page under non-default appBase in Tomcat.

2008-01-11 Thread Caldarale, Charles R
 From: Rajendra Sakpal (Persistent) [mailto:[EMAIL PROTECTED] 
 Subject: Problem with accessing HTML page under non-default 
 appBase in Tomcat.
 
 I'm trying to access a HTML file placed in the appBase that 
 is not under the default webapps directory of Tomcat 5.5.

To repeat Gregor's comments from yesterday, when you asked the same
question:

Seems as if you lack the basic knowledge of what a ServletContainer
(aka Tomcat) is about.

I got no idea why you want to deploy a jar-file within Tomcat - are you
trying something like Webstart?

What is you application, anyways.? Is it a Servlet / JSP? If so, then
the your deployment was already wrong using Tomcat 4.

Maybe you want to read this as a start:
http://tomcat.apache.org/tomcat-5.5-doc/appdev/index.html;

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [vhost] problem restarting virtual tomcat hosts

2008-01-11 Thread Bear Giles

Caldarale, Charles R wrote:
From: Bear Giles [mailto:[EMAIL PROTECTED] 
Subject: Re: [vhost] problem restarting virtual tomcat hosts


Here's the server.xml and one of the context.xml files.  The other 
virtual hosts have essentially the same context.xml files.



Assuming your context.xml is in the webapp's META-INF directory, the
path and docBase attributes are not allowed and must be removed.  The
invalid docBase may well be what's causing the problem.

 - Chuck
  
That took care of one of the virtual hosts, but a second isn't even 
exploding now.  It's very confusing since the configurations are identical.


Bear

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Datasource Property Parameters (Oracle) JNDI

2008-01-11 Thread Andrew Hole
I already change from ehr to jdbc/ehr but the problem of pooling remaining.
Initial sessions are not created.
Please, help me.

Thanks a lot


On Jan 11, 2008 3:45 PM, Andrew Hole [EMAIL PROTECTED] wrote:

 I get the following error when i change from ehr to jdbc/ehr:

 2008-01-11 15:42:57,471 FATAL Thread-1 DatasourceConnectionProvider -
 Could not find datasource: java:/comp/env/ehr
 javax.naming.NameNotFoundException : Name ehr is not bound in this Context
 at org.apache.naming.NamingContext.lookup(NamingContext.java:769)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:139)
 at org.apache.naming.NamingContext.lookup (NamingContext.java:780)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:139)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:780)
 at org.apache.naming.NamingContext.lookup(NamingContext.java :152)
 Thanks


 On Jan 11, 2008 3:31 PM, Martin Gainty [EMAIL PROTECTED] wrote:

  Andrew-
 
  is there a specific reason why you are using name=ehr instead of
  specifying name=jdbc/ehr
 
  M-
  - Original Message -
  From: Andrew Hole [EMAIL PROTECTED]
  To: Tomcat Users List users@tomcat.apache.org 
  Sent: Friday, January 11, 2008 10:14 AM
  Subject: Re: Datasource Property Parameters (Oracle) JNDI
 
 
   Well, REsource A works nice. When I startup Tomcat, are created 5 new
   database connections.
   Resource B allows connections to be created, but without pooling.
  
   I'm without ideas! Please, could u help me?
  
    Resource A
   Resource name=ehr auth=Container
type=javax.sql.DataSource driverClassName=
   oracle.jdbc.driver.OracleDriver
url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03
username=alert_viewer password=alert initialSize=5
   maxActive=50 maxIdle=10 minIdle=5
maxWait=-1 defaultAutoCommit=false /
  
    Resource B
   Resource name=ehr auth=Container
   * type=oracle.jdbc.pool.OracleDataSource  *  *
   driverClassName=oracle.jdbc.OracleDriver*
  *factory=oracle.jdbc.pool.OracleDataSourceFactory  *
url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03
*user*=alert_viewer password=alert initialSize=5
   maxActive=50 maxIdle=10 minIdle=5
maxWait=-1 defaultAutoCommit=false /
  
  
  
   On Jan 11, 2008 2:40 PM, Caldarale, Charles R [EMAIL PROTECTED]
  
   wrote:
 From: Andrew Hole [mailto:[EMAIL PROTECTED]
 Subject: Re: Datasource Property Parameters (Oracle) JNDI

 I don't see examples with initial size of pool! Exists some
  default
 value for pool initial size??
   
To quote from the doc:
See the DBCP documentation for a complete list of configuration
parameters.
http://commons.apache.org/dbcp/configuration.html
   
   
 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
 
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



Re: mod_jk maintenance, recovery

2008-01-11 Thread Rainer Jung

Hi Dominik,


Eventually, after killing 1st node, and after returning couple of 503
Service Temporarily Unavailable exceptions, mod_jk finally recheck 2nd
node status, reroute requests to 2nd node and resumes correct operation.



Still, I it is not clear to me, why I am getting 503 exceptions. I believe 
that when there is one or more servers up and ready to serve request, this 
should not happend. Why the requests are not immidiatelly rerouted to second 
node, which is couple of minutes up and running (in ERR/REC state) ?


Indeed. It would be OK to return 503, for requests, that already have 
been received by the first node, but not returned yet. New requests 
should not run into errors though. But: it also depends on the type of 
node failure, more precisely on its exact behaviour on the network. To 
make problem detection more robust, you can especially enable connect 
and prepost timeout. See


http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html

I can imagine, that with your default configuration (timeouts disabled) 
you might run into long TCP timeouts and e.g. the httpd default timeout 
of 5 minutes or an overload situation because to many requests where 
waiting to long results in the error.


If cping/cpong doesn't help: To find out the reason for the 503, you can 
have a look at the JK log file. Look for log lines with [error], only 
those indicate final errors. To find out about more detailed reasons of 
those errors, it might help to look at the associated [info] log 
lines. Associated means shortly before in time and having the same 
process and thread id [pid:tid].




Thanks,

Dominik


Regards,

Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat configuration: restricted set of handled file types

2008-01-11 Thread Caldarale, Charles R
 From: Alistair Young [mailto:[EMAIL PROTECTED] 
 Subject: Tomcat configuration: restricted set of handled file types
 
 I queried this with their technical support and they said ah, our
 server doesn't understand .jspx - they need to be .jsp files.

Ask them what version of Tomcat they're running.  For 5.5, the jsp
servlet uses these mappings:
servlet-mapping
servlet-namejsp/servlet-name
url-pattern*.jsp/url-pattern
/servlet-mapping
servlet-mapping
servlet-namejsp/servlet-name
url-pattern*.jspx/url-pattern
/servlet-mapping

If they've changed this, what's their justification for doing so?

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat configuration: restricted set of handled file types

2008-01-11 Thread Alistair Young
Hi,

I've recently signed up with a third-party web hosting outfit who support
Tomcat.  However, I've been having a few difficulties and would like to
understand better what is going on before I contact their technical support
again!

I have a very simple web application, with a servlet configured (in web.xml)
to handle .jspx files.  When I deploy the application to a local Tomcat
server (5.5), everything is fine.  However, when deployed on the hosted
service, visiting my Test/test.jspx page simply dumped out the source of the
.jspx file.

So, I queried this with their technical support and they said ah, our
server doesn't understand .jspx - they need to be .jsp files.  So, I
renamed my test.jspx file to test.jsp and updated web.xml accordingly.  And,
sure enough, when I deployed this my servlet triggered and the page was
displayed correctly.

However, the framework my little application is using (ICEfaces), relies on
the ability for other (non .jsp) files to trigger the servlet.  For example,
the markup which is generated by my test.jsp page includes reference to a
couple of .js files which are generated by the servlet.  In web.xml, things
are set up so that everything beneath a particular directory will be handled
by the servlet - but this evidently is not triggering on my hosted service.

So, my question is this: can somebody point me to the appropriate Tomcat
settings which are causing this?  It seems that only certain file extensions
are being handled by Tomcat, regardless of what is in a particular
application's web.xml.  (But note that for those accepted extensions - e.g.
.jsp - I appear able to override the servlet, and hence my web.xml _is_
being honoured - at least in part).

Armed with this, I'm hopeful that I can make some useful suggestions to
their tech support team, and perhaps get things working in the way I hoped
they would.

Thanks all,


Alistair.


Re: tomcat not working with HTTPS

2008-01-11 Thread Andrei Tchijov
most likely u do not have keychain and/or there is no suitable  
certificate in the keychain


read this

http://techtracer.com/2007/09/12/setting-up-ssl-on-tomcat-in-3-easy-steps/

On Jan 11, 2008, at 14:51 , Neha Agrawal wrote:


hi
  i am new user for tomcat.
i have installed tomcat5.5 on debian etch
also compiled tocat native libraries 1.3 version..
http://localhost:8180 is working correctly
but not https://localhost:8443

it says after a long delay The connection to
localhost:8443 was interrupted while the page was
loading.

i configured the SSL connector as told in SSL
documnetation on tomcat documentation...
ie the minimum required
it looks like this in the server.xml file

Connector port=8443 maxHttpHeaderSize=8192
  maxThreads=150 minSpareThreads=25
maxSpareThreads=75
  enableLookups=false
disableUploadTimeout=true
  acceptCount=100 scheme=https
secure=true
  clientAuth=false sslProtocol=TLS /

none of the logs show any error

please do respond
thanks
neha



is the native library stuff causing the problem?



 Now you can chat without downloading messenger. Go to 
http://in.messenger.yahoo.com/webmessengerpromo.php

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat not working with HTTPS

2008-01-11 Thread Neha Agrawal
this is for version tomcat6.0
i have installed tomcat5.5
will the same stuff work for tomcat5.5
i have openssl version  0.9.8c-4etch1 


thanks


--- Caldarale, Charles R
[EMAIL PROTECTED] wrote:

  From: Neha Agrawal [mailto:[EMAIL PROTECTED] 
  Subject: Re: tomcat not working with HTTPS
  
  i was wondering if due to APR i have to configure
  openssl and not SSl
 
 Correct, as clearly stated in the Tomcat doc:

http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html
 
 IMPORTANT NOTE: This Howto refers to usage of JSSE,
 that comes included
 with jdk 1.5 and higher. When using APR, Tomcat will
 use OpenSSL, which
 uses a different configuration.
 
 For SSL over APR, look here:

http://tomcat.apache.org/tomcat-6.0-doc/apr.html#HTTPS
 
  - 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 start a new topic, e-mail:
 users@tomcat.apache.org
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 



  Forgot the famous last words? Access your message archive online at 
http://in.messenger.yahoo.com/webmessengerpromo.php


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat not working with HTTPS

2008-01-11 Thread Caldarale, Charles R
 From: Neha Agrawal [mailto:[EMAIL PROTECTED] 
 Subject: Re: tomcat not working with HTTPS
 
 i was wondering if due to APR i have to configure
 openssl and not SSl

Correct, as clearly stated in the Tomcat doc:
http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html

IMPORTANT NOTE: This Howto refers to usage of JSSE, that comes included
with jdk 1.5 and higher. When using APR, Tomcat will use OpenSSL, which
uses a different configuration.

For SSL over APR, look here:
http://tomcat.apache.org/tomcat-6.0-doc/apr.html#HTTPS

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [vhost] problem restarting virtual tomcat hosts

2008-01-11 Thread Caldarale, Charles R
 From: Bear Giles [mailto:[EMAIL PROTECTED] 
 Subject: Re: [vhost] problem restarting virtual tomcat hosts
 
 It's actually the one I sent earlier, but with the appbase and 
 docbase(?) attributes removed.

There is no appBase attribute for a Context; appBase belongs to a
Host element.

I'd still like to see the _exact_ Context elements for each webapp,
and their _exact_ location.

Have you changed anything in your server.xml since you posted it
earlier?

Is there anything in the logs showing deployment failure?

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat not working with HTTPS

2008-01-11 Thread Neha Agrawal

i have generated .keystore file using the keytool
and entered all the certificate information
and als othe password was 'changeit' as told in the
doc..
also the file is in the default location..

keystore -list gives the following output

Keystore type: jks
Keystore provider: SUN

Your keystore contains 1 entry

tomcat, Jan 10, 2008, keyEntry,
Certificate fingerprint (MD5) .(i did not
print the finger print...but it shows up here)

i was wondering if due to APR i have to configure
openssl and not SSl

any ideas pleae?

thanks

--- Andrei Tchijov [EMAIL PROTECTED] wrote:

 most likely u do not have keychain and/or there is
 no suitable  
 certificate in the keychain
 
 read this
 

http://techtracer.com/2007/09/12/setting-up-ssl-on-tomcat-in-3-easy-steps/
 
 On Jan 11, 2008, at 14:51 , Neha Agrawal wrote:
 
  hi
i am new user for tomcat.
  i have installed tomcat5.5 on debian etch
  also compiled tocat native libraries 1.3 version..
  http://localhost:8180 is working correctly
  but not https://localhost:8443
 
  it says after a long delay The connection to
  localhost:8443 was interrupted while the page was
  loading.
 
  i configured the SSL connector as told in SSL
  documnetation on tomcat documentation...
  ie the minimum required
  it looks like this in the server.xml file
 
  Connector port=8443 maxHttpHeaderSize=8192
maxThreads=150
 minSpareThreads=25
  maxSpareThreads=75
enableLookups=false
  disableUploadTimeout=true
acceptCount=100 scheme=https
  secure=true
clientAuth=false sslProtocol=TLS
 /
 
  none of the logs show any error
 
  please do respond
  thanks
  neha
 
 
 
  is the native library stuff causing the problem?
 
 
 
   Now you can chat without downloading
 messenger. Go to
 http://in.messenger.yahoo.com/webmessengerpromo.php
 
 

-
  To start a new topic, e-mail:
 users@tomcat.apache.org
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 

-
 To start a new topic, e-mail:
 users@tomcat.apache.org
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 



  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat not working with HTTPS

2008-01-11 Thread Caldarale, Charles R
 From: Neha Agrawal [mailto:[EMAIL PROTECTED] 
 Subject: RE: tomcat not working with HTTPS
 
 i have installed tomcat5.5
 will the same stuff work for tomcat5.5

Should be pretty much the same.  The relevant 5.5 link is:
http://tomcat.apache.org/tomcat-5.5-doc/apr.html

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat not working with HTTPS

2008-01-11 Thread Caldarale, Charles R
 From: Neha Agrawal [mailto:[EMAIL PROTECTED] 
 Subject: RE: tomcat not working with HTTPS
 
 Connector port=443
 still https://localhost:8443 is not working

Since you configured it on port 443, why do you expect requests to 8443
to work?

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



When will tcnative-1.dll 1.1.12 be available?

2008-01-11 Thread Stacy Johnson (stacjohn)
Does anyone know when the new tcnative-1.dll (version 1.1.12) will be
available? I asked this question on another mailer and I was told that
it would be available sometime next week. Does anyone have a date? 
 
 
Stacy


Configuring different Context's to use different ports

2008-01-11 Thread Bai Shen
I have several web apps running on tomcat, each with their own context.  I
also have connectors for 80 and 443.  The problem is that I'd like some of
the context's to use port 80 only, and some of them to use port 443 only.
Right now, tomcat will accept connections to all contexts on all defined
ports.


RE: tomcat not working with HTTPS

2008-01-11 Thread Neha Agrawal
hi!
this is the sample connector given in the doc..


Connector port=443 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false
disableUploadTimeout=true
   acceptCount=100 scheme=https
secure=true
   SSLEngine=on 
  
SSLCertificateFile=${catalina.base}/conf/localhost.crt
  
SSLCertificateKeyFile=${catalina.base}/conf/localhost.key
/

i have kept everything same in my server.xml..

now for localhost.crt and .key above i used the
following documentation
to generate a CA (so got cacert.pem and cakey.pem)

generate a new request (for certificate) and sign it
and o got newkey.pem and newcert.pem 

i used these two files for localhost.key and
localhost.cert above by coping these to that location

still https://localhost:8443 is not working

i was wondering if i have do import stuff for .key
and .cert using openssl command ..




thanks



http://sandbox.rulemaker.net/ngps/m2/howto.ca.html





  From: Neha Agrawal [mailto:[EMAIL PROTECTED] 
  Subject: RE: tomcat not working with HTTPS
  
  i have installed tomcat5.5
  will the same stuff work for tomcat5.5
 
 Should be pretty much the same.  The relevant 5.5
 link is:
 http://tomcat.apache.org/tomcat-5.5-doc/apr.html
 
  - 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 start a new topic, e-mail:
 users@tomcat.apache.org
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 



  5, 50, 500, 5000 - Store N number of mails in your inbox. Go to 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [vhost] problem restarting virtual tomcat hosts

2008-01-11 Thread Martin Gainty
Bear-

whats the pathname that StandardManager implements ?
in webappcontext.xml look for something like
Manager className=org.apache.catalina.session.StandardManager
pathname=/

Anyone else?
Martin-
- Original Message -
From: Bear Giles [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, January 11, 2008 1:50 PM
Subject: Re: [vhost] problem restarting virtual tomcat hosts


 Caldarale, Charles R wrote:
  From: Bear Giles [mailto:[EMAIL PROTECTED]
  Subject: Re: [vhost] problem restarting virtual tomcat hosts
 
  That took care of one of the virtual hosts, but a second isn't even
  exploding now.  It's very confusing since the configurations
  are identical.
 
 
  What's in the other Context elements and where are they located?
 
   - Chuck
 
 It's actually the one I sent earlier, but with the appbase and
 docbase(?) attributes removed.

 I guess what's most confusing is that the war file isn't getting
 exploded.  I just touched the ROOT.war file and the log entries are:

 o.a.catalina.startup.HostConfig checkResources
 INFO: Undeploying context[]
 o.a.catalina.session.PersistentManagerBase start
 SEVERE: No Store configured, persistence disabled

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [vhost] problem restarting virtual tomcat hosts

2008-01-11 Thread Bear Giles

Caldarale, Charles R wrote:
From: Bear Giles [mailto:[EMAIL PROTECTED] 
Subject: Re: [vhost] problem restarting virtual tomcat hosts


That took care of one of the virtual hosts, but a second isn't even 
exploding now.  It's very confusing since the configurations 
are identical.



What's in the other Context elements and where are they located?

 - Chuck
  
It's actually the one I sent earlier, but with the appbase and 
docbase(?) attributes removed.


I guess what's most confusing is that the war file isn't getting 
exploded.  I just touched the ROOT.war file and the log entries are:


o.a.catalina.startup.HostConfig checkResources
INFO: Undeploying context[]
o.a.catalina.session.PersistentManagerBase start
SEVERE: No Store configured, persistence disabled

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: emptySessionPath and new session id

2008-01-11 Thread Rainer Jung

Hi Nahor,

Nahor schrieb:

Hi,

I want my webapp to use nice URL for a user's homepage (e.g. 
http://server/user;).
Because of that, I need to have an empty path in the session cookie. So 
far, I've been using emptySessionPath.


However, emptySessionPath uses the session id from a cookie when 
creating a brand new session. Beside the session fixation/phishing 
problem, this poses problems with mod_jk load-balancing when the user 
may have an old session cookie in the browser.
Let say the user has the cookie JSESSIONID=xxx.t1, i.e. managed by the 
Tomcat server T1. Then the user navigates a specially formatted URL that 
sends the request to another server (say the Tomcat server T2). Tomcat 
then creates a new session but because of the cookie, it names it 
xxx.t1 (instead of a yyy.t2). From now on, all the requests will be 
send to server T1 by the load-balancer and they will fail because the 
session is invalid (since it was really created on T2).


So is there a way to have both session cookies with an empty path and 
have tomcat use new session id?


First of all, there is a code comment in TC 6:

// FIXME: Code to be used in case route replacement is needed
/*
} else {
String jvmRoute = getJvmRoute();
if (getJvmRoute() != null) {
String requestJvmRoute = null;
int index = sessionId.indexOf(.);
if (index  0) {
requestJvmRoute = sessionId
.substring(index + 1, sessionId.length());
}
if (requestJvmRoute != null 
!requestJvmRoute.equals(jvmRoute)) {
sessionId = sessionId.substring(0, index) + . + jvmRoute;
}
}
*/

So I think it would make sense to file an enhancement request in bugzilla.

Workaround idea:

A) If Tomcat gets a session cookie with an ID for which it needs to 
create a new session (emptySessionPath set to true), the new session 
will indeed have the requested ID, but the information that it is a new 
session is available via session.isNew(), which in this case will be true.


B) The second ingredient is determining the jvmRoute of the local node 
and then checking if it is different from the suffix in the requested id.


C) The third ingredient would be either setting the id of the new 
session to something different (exchanging the suffix) via a Tomcat 
Valve (similar to a servlet filter, but gives some more manipulation 
possibilities for Tomcat objects), or replacing the JSESSIONID cookie 
with a new one with corrected id and issuing a self-referring redirect 
(and also maybe deleting the no longer needed interim session).


Ad B): the jvmRoute of the local node could be determined by

- a Tomcat valve
- set the jvmRoute in your startup scripts as a system property 
-DmyJvmRoute=node01, then you can put a jvmRoute=${myJvmRoute} in 
server.xml and retrieve the value of the system property myJmvRoute in 
your code as usual.


Not a full solution, but combining those should work.


Thanks,
Nahor


Regards,

Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [vhost] problem restarting virtual tomcat hosts

2008-01-11 Thread Bear Giles

It's commented out in the tomcat/conf context file.

The webapp that's loading has

Manager classname=o.a.catalina.session.PersistentManager 
saveOnRestart=false/


The webapp that's not loading is unexploded, but would be the same.

There's no entry in the vhost/manager/META-INF/context.xml files.

Bear

Martin Gainty wrote:

Bear-

whats the pathname that StandardManager implements ?
in webappcontext.xml look for something like
Manager className=org.apache.catalina.session.StandardManager
pathname=/

Anyone else?
Martin-
- Original Message -
From: Bear Giles [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, January 11, 2008 1:50 PM
Subject: Re: [vhost] problem restarting virtual tomcat hosts


  

Caldarale, Charles R wrote:


From: Bear Giles [mailto:[EMAIL PROTECTED]
Subject: Re: [vhost] problem restarting virtual tomcat hosts

That took care of one of the virtual hosts, but a second isn't even
exploding now.  It's very confusing since the configurations
are identical.



What's in the other Context elements and where are they located?

 - Chuck

  

It's actually the one I sent earlier, but with the appbase and
docbase(?) attributes removed.

I guess what's most confusing is that the war file isn't getting
exploded.  I just touched the ROOT.war file and the log entries are:

o.a.catalina.startup.HostConfig checkResources
INFO: Undeploying context[]
o.a.catalina.session.PersistentManagerBase start
SEVERE: No Store configured, persistence disabled

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Datasource Property Parameters (Oracle) JNDI

2008-01-11 Thread Caldarale, Charles R
 From: Andrew Hole [mailto:[EMAIL PROTECTED] 
 Subject: Re: Datasource Property Parameters (Oracle) JNDI
 
 Could you help me to setup my datasource to works fine?

The instructions are here:
http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.h
tml

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tomcat not working with HTTPS

2008-01-11 Thread Neha Agrawal
hi
   i am new user for tomcat.
i have installed tomcat5.5 on debian etch
also compiled tocat native libraries 1.3 version..
http://localhost:8180 is working correctly
but not https://localhost:8443

it says after a long delay The connection to
localhost:8443 was interrupted while the page was
loading.

 i configured the SSL connector as told in SSL
documnetation on tomcat documentation...
ie the minimum required
it looks like this in the server.xml file

 Connector port=8443 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false
disableUploadTimeout=true
   acceptCount=100 scheme=https
secure=true
   clientAuth=false sslProtocol=TLS /

none of the logs show any error

please do respond
thanks
neha



is the native library stuff causing the problem?



  Now you can chat without downloading messenger. Go to 
http://in.messenger.yahoo.com/webmessengerpromo.php

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat not working with HTTPS

2008-01-11 Thread Neha Agrawal
i configured it on 8443 ..
i just copied the documentation configuration and
forgot to modify it in the email..sory about that..

--- Caldarale, Charles R
[EMAIL PROTECTED] wrote:

  From: Neha Agrawal [mailto:[EMAIL PROTECTED] 
  Subject: RE: tomcat not working with HTTPS
  
  Connector port=443
  still https://localhost:8443 is not working
 
 Since you configured it on port 443, why do you
 expect requests to 8443
 to work?
 
  - 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 start a new topic, e-mail:
 users@tomcat.apache.org
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 



  Forgot the famous last words? Access your message archive online at 
http://in.messenger.yahoo.com/webmessengerpromo.php

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Datasource Property Parameters (Oracle) JNDI

2008-01-11 Thread Propes, Barry L
how are those even different? Aside from the username?

-Original Message-
From: Andrew Hole [mailto:[EMAIL PROTECTED]
Sent: Friday, January 11, 2008 9:14 AM
To: Tomcat Users List
Subject: Re: Datasource Property Parameters (Oracle) JNDI


Well, REsource A works nice. When I startup Tomcat, are created 5 new
database connections.
Resource B allows connections to be created, but without pooling.

I'm without ideas! Please, could u help me?

 Resource A
Resource name=ehr auth=Container
 type=javax.sql.DataSource driverClassName=
oracle.jdbc.driver.OracleDriver
 url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03
 username=alert_viewer password=alert initialSize=5
maxActive=50 maxIdle=10 minIdle=5
 maxWait=-1 defaultAutoCommit=false /

 Resource B
Resource name=ehr auth=Container
* type=oracle.jdbc.pool.OracleDataSource  *  *
driverClassName=oracle.jdbc.OracleDriver*
   *factory=oracle.jdbc.pool.OracleDataSourceFactory  *
 url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03
 *user*=alert_viewer password=alert initialSize=5
maxActive=50 maxIdle=10 minIdle=5
 maxWait=-1 defaultAutoCommit=false /



On Jan 11, 2008 2:40 PM, Caldarale, Charles R [EMAIL PROTECTED]
wrote:
  From: Andrew Hole [mailto:[EMAIL PROTECTED]
  Subject: Re: Datasource Property Parameters (Oracle) JNDI
 
  I don't see examples with initial size of pool! Exists some default
  value for pool initial size??

 To quote from the doc:
 See the DBCP documentation for a complete list of configuration
 parameters.
 http://commons.apache.org/dbcp/configuration.html


  - 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 start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat not working with HTTPS

2008-01-11 Thread Neha Agrawal
hi!
this is the sample connector given in the doc..


Connector port=8443 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false
disableUploadTimeout=true
   acceptCount=100 scheme=https
secure=true
   SSLEngine=on 
  
SSLCertificateFile=${catalina.base}/conf/localhost.crt
  
SSLCertificateKeyFile=${catalina.base}/conf/localhost.key
/

have this in my server.xml..

i did not understand how to generate .key and .cert
files above
i used this documnetation
http://sandbox.rulemaker.net/ngps/m2/howto.ca.html

1) to generate a CA (so got cacert.pem and cakey.pem)

2)generate a new request (for certificate) and sign it
and got newkey.pem and newcert.pem 

then 
i used these two files for localhost.key and
localhost.cert above by coping these to that location

still https://localhost:8443 is not working

am i wrong in generating the localhost.key and
localhost.cert files??

thanks
neha


  Forgot the famous last words? Access your message archive online at 
http://in.messenger.yahoo.com/webmessengerpromo.php


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Datasource Property Parameters (Oracle) JNDI

2008-01-11 Thread Juha Laiho

Berglas, Anthony wrote:

I am trying to set up 0racle connection pooling.   Some of the
parameters are reflected normally, but some are specified via a property
lists.  How do I set the property list properties using Tomcat/JNDI?  I
can set up the basic DataSource, but I cannot set the maxLimit parameter
on the max number of connections because they are in the
setConnectionCacheProperties property map, not reflected.


Been there, done that. Unfortunately I cannot share the details (as
in code), but I had to write a custom resource factory to build the
Oracle connection pools for me. That went pretty much as per the
Tomcat documentation in

http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html#Adding%20Custom%20Resource%20Factories


A side note for this is that Oracle JDBC library (at least as shipped
with 10gRel2) is somewhat fussy about the order in which you set
the various properties. What's worse, if you get the order wrong,
the settings are just silently ignored (and the significance of correct
ordering is not documented, either). I did file a bug report about this
with Oracle, but haven't heard of it since.
--
..Juha

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Datasource Property Parameters (Oracle) JNDI

2008-01-11 Thread Caldarale, Charles R
 From: Propes, Barry L [mailto:[EMAIL PROTECTED] 
 Subject: RE: Datasource Property Parameters (Oracle) JNDI
 
 how are those even different? Aside from the username?

They look very different to me.

  Resource A
 type=javax.sql.DataSource
 driverClassName=oracle.jdbc.driver.OracleDriver
  Resource B
 type=oracle.jdbc.pool.OracleDataSource
 driverClassName=oracle.jdbc.OracleDriver
 factory=oracle.jdbc.pool.OracleDataSourceFactory


 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Connection pooling

2008-01-11 Thread Propes, Barry L
I'm using an older version of Tomcat, [ : ( ], so I can't string all my 
attributes together like you have, but DBCP does work for me.

Keep in mind, I have to split  my attributes in separate tags, but it's 
basically the same, but here's my config:

 Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource/ 
 
 ResourceParams name=jdbc/myoracle
   parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
 namedriverClassName/name
 valueoracle.jdbc.OracleDriver/value
   /parameter
   parameter
 nameurl/name
 valuejdbc:oracle:thin:@169.222.22.222:1521:SID/value
   /parameter
   parameter
 nameusername/name
 valueuser_name/value
   /parameter
   parameter
 namepassword/name
 value***/value
   /parameter
   parameter
 namemaxActive/name
 value125/value
   /parameter
   parameter
 namemaxIdle/name
 value15/value
   /parameter
   parameter
 namemaxWait/name
 value7000/value
   /parameter
 parameter
 nameremoveAbandoned/name
 valuetrue/value
 /parameter
 parameter
 nameremoveAbandonedTimeout/name
 value60/value
 /parameter
 parameter
 namelogAbandoned/name
 valuetrue/value
 /parameter
 
 parameter
 nameminEvictableIdleTimeMillis/name
 value5000/value
 /parameter
 parameter
 nametimeBetweenEvictionRunsMillis/name
 value1/value
 /parameter
  parameter
  nametestWhileIdle/name
  valuetrue/value
  /parameter
 
 /ResourceParams

-Original Message-
From: Andrew Hole [mailto:[EMAIL PROTECTED]
Sent: Friday, January 11, 2008 8:24 AM
To: Tomcat Users List
Subject: Re: Connection pooling


Hi! Thanks...

With the following configuration i get the
error:DatasourceConnectionProvider - Could not find datasource:
java:/comp/env/ehr
Resource name=jdbc/ehr auth=Container
type=oracle.jdbc.pool.OracleDataSource
factory=oracle.jdbc.pool.OracleDataSourceFactory
driverClassName=oracle.jdbc.OracleDriver
url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03
user=alert_viewer password=alert initialLimit=5 minLimit=5
maxLimit=10 debug=5 /

With Resoruce name = ehr  works fine but  pooling is disable. I
don't know if paramenters initalLimit, minLimit are defined correctly.
Could you help me to setup a correct configuration?
I want have 5 initial database sessions.

Resource name=ehr auth=Container type=oracle.jdbc.pool.OracleDataSource
factory=oracle.jdbc.pool.OracleDataSourceFactory
driverClassName=oracle.jdbc.OracleDriver
url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03
user=alert_viewer password=alert initialLimit=5 minLimit=5
maxLimit=10 debug=5 /

Thanks a lot

On Jan 11, 2008 2:10 PM, Martin Gainty [EMAIL PROTECTED] wrote:
 Andrew-

 The first thing I noticed is your Resource name shoule be jdbc/ehr
 replace server_name with the actual server name
 replace the SID with the Service ID you will be using (check the
 tnsnames.ora for SID)
 http://www.microdeveloper.com/html/JNDI_Orcl_Tomcat1p.html

 Martin

 - Original Message -
 From: Andrew Hole [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Friday, January 11, 2008 5:32 AM
 Subject: Connection pooling


  Hello!
 
  The following configuration was not supposed to be created 5
  connections at first get connection execution?
  My application with the following configuration creates always a new
  session in the database for each invocation,
  which is not to take advantage of pooling. Why?
 
  Context  docBase=F:/TOMCAT_UPG1_VIEWER/mni_ehrviewer
  reloadable=true path=upg1ehr 
 
  Resource name=ehr auth=Container
 type=oracle.jdbc.pool.OracleDataSource
  factory=oracle.jdbc.pool.OracleDataSourceFactory
  driverClassName=oracle.jdbc.OracleDriver
  url=jdbc:oracle:thin:@server_name:1521:sid user=user
  password=password initialSize=5 maxActive=50 maxIdle=10
  minIdle=5 maxWait=-1 defaultAutoCommit=false/
 
 
  Manager className=org.apache.catalina.session.StandardManager
  maxActiveSessions=-1 maxInactiveInterval=1800 pathname=
  processExpiresFrequency=6 /
 
  /Context
 
 
  Thanks a lot
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: tomcat not working with HTTPS

2008-01-11 Thread Neha Agrawal
hi
i have it my server.xml file
and tomcat does recognise it..as i understood fro mthe
log
Also now my logs are showing up following ..

org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
Jan 11, 2008 3:37:23 PM
org.apache.coyote.http11.Http11AprProtocol init
SEVERE: Error initializing endpoint
java.lang.Exception: Unable to load certificate key
/var/lib/tomcat5.5/conf/localhost.key
(error:0906A068:PEM routines:PEM_do_header:bad
password read)

--- Pulkit Singhal [EMAIL PROTECTED] wrote:

 Hello,
 
 Can you tell me if you are replacing this when you
 posted your question or
 if this is what you really have in your server.xml
 file:
 
 ${catalina.base}
 
 
 - Pulkit
 
 On Jan 11, 2008 2:08 PM, Neha Agrawal
 [EMAIL PROTECTED] wrote:
 
  hi!
 this is the sample connector given in the doc..
 
 
  Connector port=8443 maxHttpHeaderSize=8192
maxThreads=150
 minSpareThreads=25
  maxSpareThreads=75
enableLookups=false
  disableUploadTimeout=true
acceptCount=100 scheme=https
  secure=true
SSLEngine=on
 
 

SSLCertificateFile=${catalina.base}/conf/localhost.crt
 
 

SSLCertificateKeyFile=${catalina.base}/conf/localhost.key
  /
 
  have this in my server.xml..
 
  i did not understand how to generate .key and
 .cert
  files above
  i used this documnetation
  http://sandbox.rulemaker.net/ngps/m2/howto.ca.html
 
  1) to generate a CA (so got cacert.pem and
 cakey.pem)
 
  2)generate a new request (for certificate) and
 sign it
  and got newkey.pem and newcert.pem
 
  then
  i used these two files for localhost.key and
  localhost.cert above by coping these to that
 location
 
  still https://localhost:8443 is not working
 
  am i wrong in generating the localhost.key and
  localhost.cert files??
 
  thanks
  neha
 
 
   Forgot the famous last words? Access your
 message archive online at
 
 http://in.messenger.yahoo.com/webmessengerpromo.php
 
 
 

-
  To start a new topic, e-mail:
 users@tomcat.apache.org
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 



  Bring your gang together - do your thing. Go to 
http://in.promos.yahoo.com/groups

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Datasource Property Parameters (Oracle) JNDI

2008-01-11 Thread Propes, Barry L
yeah, after I sent that I saw your other email and saw the oracle ref on the 
type -- my bad, Chuck. Sorry!

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Friday, January 11, 2008 4:46 PM
To: Tomcat Users List
Subject: RE: Datasource Property Parameters (Oracle) JNDI


 From: Propes, Barry L [mailto:[EMAIL PROTECTED] 
 Subject: RE: Datasource Property Parameters (Oracle) JNDI
 
 how are those even different? Aside from the username?

They look very different to me.

  Resource A
 type=javax.sql.DataSource
 driverClassName=oracle.jdbc.driver.OracleDriver
  Resource B
 type=oracle.jdbc.pool.OracleDataSource
 driverClassName=oracle.jdbc.OracleDriver
 factory=oracle.jdbc.pool.OracleDataSourceFactory


 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat not working with HTTPS

2008-01-11 Thread Pulkit Singhal
Don't you need to specify:

keystorePass=somePassword

as well?

On Jan 11, 2008 4:12 PM, Neha Agrawal [EMAIL PROTECTED] wrote:

 hi
i have it my server.xml file
 and tomcat does recognise it..as i understood fro mthe
 log
 Also now my logs are showing up following ..

 org.apache.coyote.http11.Http11AprProtocol init
 INFO: Initializing Coyote HTTP/1.1 on http-8180
 Jan 11, 2008 3:37:23 PM
 org.apache.coyote.http11.Http11AprProtocol init
 SEVERE: Error initializing endpoint
 java.lang.Exception: Unable to load certificate key
 /var/lib/tomcat5.5/conf/localhost.key
 (error:0906A068:PEM routines:PEM_do_header:bad
 password read)

 --- Pulkit Singhal [EMAIL PROTECTED] wrote:

  Hello,
 
  Can you tell me if you are replacing this when you
  posted your question or
  if this is what you really have in your server.xml
  file:
  
  ${catalina.base}
  
 
  - Pulkit
 
  On Jan 11, 2008 2:08 PM, Neha Agrawal
  [EMAIL PROTECTED] wrote:
 
   hi!
  this is the sample connector given in the doc..
  
  
   Connector port=8443 maxHttpHeaderSize=8192
 maxThreads=150
  minSpareThreads=25
   maxSpareThreads=75
 enableLookups=false
   disableUploadTimeout=true
 acceptCount=100 scheme=https
   secure=true
 SSLEngine=on
  
  
 
 SSLCertificateFile=${catalina.base}/conf/localhost.crt
  
  
 
 SSLCertificateKeyFile=${catalina.base}/conf/localhost.key
   /
  
   have this in my server.xml..
  
   i did not understand how to generate .key and
  .cert
   files above
   i used this documnetation
   http://sandbox.rulemaker.net/ngps/m2/howto.ca.html
  
   1) to generate a CA (so got cacert.pem and
  cakey.pem)
  
   2)generate a new request (for certificate) and
  sign it
   and got newkey.pem and newcert.pem
  
   then
   i used these two files for localhost.key and
   localhost.cert above by coping these to that
  location
  
   still https://localhost:8443 is not working
  
   am i wrong in generating the localhost.key and
   localhost.cert files??
  
   thanks
   neha
  
  
Forgot the famous last words? Access your
  message archive online at
  
  http://in.messenger.yahoo.com/webmessengerpromo.php
  
  
  
 
 -
   To start a new topic, e-mail:
  users@tomcat.apache.org
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 



  Bring your gang together - do your thing. Go to
 http://in.promos.yahoo.com/groups



Re: tomcat not working with HTTPS

2008-01-11 Thread Neha Agrawal
keystore password is the default one 'changeit'
so its not mandatory to supply

--- Pulkit Singhal [EMAIL PROTECTED] wrote:

 Don't you need to specify:
 
 keystorePass=somePassword
 
 as well?
 
 On Jan 11, 2008 4:12 PM, Neha Agrawal
 [EMAIL PROTECTED] wrote:
 
  hi
 i have it my server.xml file
  and tomcat does recognise it..as i understood fro
 mthe
  log
  Also now my logs are showing up following ..
 
  org.apache.coyote.http11.Http11AprProtocol init
  INFO: Initializing Coyote HTTP/1.1 on http-8180
  Jan 11, 2008 3:37:23 PM
  org.apache.coyote.http11.Http11AprProtocol init
  SEVERE: Error initializing endpoint
  java.lang.Exception: Unable to load certificate
 key
  /var/lib/tomcat5.5/conf/localhost.key
  (error:0906A068:PEM routines:PEM_do_header:bad
  password read)
 
  --- Pulkit Singhal [EMAIL PROTECTED]
 wrote:
 
   Hello,
  
   Can you tell me if you are replacing this when
 you
   posted your question or
   if this is what you really have in your
 server.xml
   file:
   
   ${catalina.base}
   
  
   - Pulkit
  
   On Jan 11, 2008 2:08 PM, Neha Agrawal
   [EMAIL PROTECTED] wrote:
  
hi!
   this is the sample connector given in the
 doc..
   
   
Connector port=8443 maxHttpHeaderSize=8192
  maxThreads=150
   minSpareThreads=25
maxSpareThreads=75
  enableLookups=false
disableUploadTimeout=true
  acceptCount=100 scheme=https
secure=true
  SSLEngine=on
   
   
  
 

SSLCertificateFile=${catalina.base}/conf/localhost.crt
   
   
  
 

SSLCertificateKeyFile=${catalina.base}/conf/localhost.key
/
   
have this in my server.xml..
   
i did not understand how to generate .key and
   .cert
files above
i used this documnetation
   
 http://sandbox.rulemaker.net/ngps/m2/howto.ca.html
   
1) to generate a CA (so got cacert.pem and
   cakey.pem)
   
2)generate a new request (for certificate) and
   sign it
and got newkey.pem and newcert.pem
   
then
i used these two files for localhost.key and
localhost.cert above by coping these to that
   location
   
still https://localhost:8443 is not working
   
am i wrong in generating the localhost.key and
localhost.cert files??
   
thanks
neha
   
   
 Forgot the famous last words? Access your
   message archive online at
   
  
 http://in.messenger.yahoo.com/webmessengerpromo.php
   
   
   
  
 

-
To start a new topic, e-mail:
   users@tomcat.apache.org
To unsubscribe, e-mail:
   [EMAIL PROTECTED]
For additional commands, e-mail:
   [EMAIL PROTECTED]
   
   
  
 
 
 
   Bring your gang together - do your thing. Go
 to
  http://in.promos.yahoo.com/groups
 
 



  Save all your chat conversations. Find them online at 
http://in.messenger.yahoo.com/webmessengerpromo.php

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat not working with HTTPS

2008-01-11 Thread Pulkit Singhal
Hmm, changeit is the default for cacerts file which is a truststore, what
you are trying to setup here (I think) is a keystore to present the identity
of your server correct? So perhaps its not so obvious to tomcat?

On Jan 11, 2008 4:33 PM, Neha Agrawal [EMAIL PROTECTED] wrote:

 keystore password is the default one 'changeit'
 so its not mandatory to supply

 --- Pulkit Singhal [EMAIL PROTECTED] wrote:

  Don't you need to specify:
  
  keystorePass=somePassword
  
  as well?
 
  On Jan 11, 2008 4:12 PM, Neha Agrawal
  [EMAIL PROTECTED] wrote:
 
   hi
  i have it my server.xml file
   and tomcat does recognise it..as i understood fro
  mthe
   log
   Also now my logs are showing up following ..
  
   org.apache.coyote.http11.Http11AprProtocol init
   INFO: Initializing Coyote HTTP/1.1 on http-8180
   Jan 11, 2008 3:37:23 PM
   org.apache.coyote.http11.Http11AprProtocol init
   SEVERE: Error initializing endpoint
   java.lang.Exception: Unable to load certificate
  key
   /var/lib/tomcat5.5/conf/localhost.key
   (error:0906A068:PEM routines:PEM_do_header:bad
   password read)
  
   --- Pulkit Singhal [EMAIL PROTECTED]
  wrote:
  
Hello,
   
Can you tell me if you are replacing this when
  you
posted your question or
if this is what you really have in your
  server.xml
file:

${catalina.base}

   
- Pulkit
   
On Jan 11, 2008 2:08 PM, Neha Agrawal
[EMAIL PROTECTED] wrote:
   
 hi!
this is the sample connector given in the
  doc..


 Connector port=8443 maxHttpHeaderSize=8192
   maxThreads=150
minSpareThreads=25
 maxSpareThreads=75
   enableLookups=false
 disableUploadTimeout=true
   acceptCount=100 scheme=https
 secure=true
   SSLEngine=on


   
  
 
 SSLCertificateFile=${catalina.base}/conf/localhost.crt


   
  
 
 SSLCertificateKeyFile=${catalina.base}/conf/localhost.key
 /

 have this in my server.xml..

 i did not understand how to generate .key and
.cert
 files above
 i used this documnetation

  http://sandbox.rulemaker.net/ngps/m2/howto.ca.html

 1) to generate a CA (so got cacert.pem and
cakey.pem)

 2)generate a new request (for certificate) and
sign it
 and got newkey.pem and newcert.pem

 then
 i used these two files for localhost.key and
 localhost.cert above by coping these to that
location

 still https://localhost:8443 is not working

 am i wrong in generating the localhost.key and
 localhost.cert files??

 thanks
 neha


  Forgot the famous last words? Access your
message archive online at

   
  http://in.messenger.yahoo.com/webmessengerpromo.php



   
  
 
 -
 To start a new topic, e-mail:
users@tomcat.apache.org
 To unsubscribe, e-mail:
[EMAIL PROTECTED]
 For additional commands, e-mail:
[EMAIL PROTECTED]


   
  
  
  
Bring your gang together - do your thing. Go
  to
   http://in.promos.yahoo.com/groups
  
 



  Save all your chat conversations. Find them online at
 http://in.messenger.yahoo.com/webmessengerpromo.php

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




RE: tomcat not working with HTTPS

2008-01-11 Thread Caldarale, Charles R
 From: Neha Agrawal [mailto:[EMAIL PROTECTED] 
 Subject: Re: tomcat not working with HTTPS
 
 keystore password is the default one 'changeit'
 so its not mandatory to supply

If you're using APR (and therefore OpenSSL), I don't believe there is a
default.  Also, the attribute should be SSLPassword, not keystorePass.
Are you sure you're building a keystore compatible with OpenSSL?

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat not working with HTTPS

2008-01-11 Thread Neha Agrawal
hi!

 Connector port=8443 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false
disableUploadTimeout=true
   acceptCount=100 scheme=https
secure=true
   SSLEngine=on
  
SSLCertificateFile=${catalina.base}/conf/localhost.crt
  
SSLCertificateKeyFile=${catalina.base}/conf/localhost.key
   SSLPassword=phrase
/

is in my server.xml file
where 'phrase' is the secret phrase when i created the
newkey.pem 


 Are you sure you're building a keystore compatible
 with OpenSSL?
 
  what exactly does it imply?
as i wrote earlier i just created a New CA its private

key,
then generateda new certificate request 

thus i got newcert.pem and newkey.pem
I did this using CA.pl and openssl.cnf fro mthe source
code of open-ssl

these 2 files are copied to localhost.key and .cert in
the connector...

i dont know what to do with the .keystore file 
it is in JKS format and i have done any import/export
operation

can someone guide me on this please

neha





 



  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Configuring different Context's to use different ports

2008-01-11 Thread Bill Barker
Far and away the easiest way to solve this is with a Filter that will 
sendRedirct to scheme that the webapp wants to respond to.  It is also 
possible to do with multiple Service elements, but I don't recommend that 
route.

Bai Shen [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
I have several web apps running on tomcat, each with their own context.  I
 also have connectors for 80 and 443.  The problem is that I'd like some of
 the context's to use port 80 only, and some of them to use port 443 only.
 Right now, tomcat will accept connections to all contexts on all defined
 ports.
 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   >