myapp's problems with 4.0.*

2004-06-17 Thread Ben Bookey

Dear List,

This is the context of my app from the server.xml. It seems that the app
works o.k with Tomcat 4.1.* but not
4.0.*.  As you will see we are using the Oracle driver and we have both the
necessary oracle jar files
in the %CATALINA_HOME%\common\lib directory. Could anyone explain why this
might not be working with 4.0.* ?
This is not so bad it is an older version, but it would be nice to explain
why it doesnt work ;)

I would really appreciate (again) any pointers.

regards

Ben Bookey.




===
Context path=/myapp docBase=D:\Tomcat\Apache Tomcat
4.0\webapps\myapp reloadable=true
  Logger className=org.apache.catalina.logger.FileLogger
prefix=myapp__log. suffix=.txt timestamp=true/
  Realm
className=org.apache.catalina.realm.JDBCRealm
debug=99
driverName=oracle.jdbc.driver.OracleDriver
connectionURL=jdbc:oracle:thin:@146.140.211.60:1521:ingeo
 connectionName=myappdb
 connectionPassword=myappdb
 userTable=users
 userNameCol=user_name
 userCredCol=user_pass
userRoleTable=user_roles
roleNameCol=role_name/

  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.driver.OracleDriver/value
/parameter
parameter
  nameurl/name
  valuejdbc:oracle:thin:@146.140.211.60:1521:ingeo/value
/parameter
parameter
  nameusername/name
  valuemyappdbuser/value
/parameter
parameter
   namepassword/name
   valuemyappdbpwd/value
/parameter
parameter
   namemaxActive/name
   value20/value
/parameter
parameter
   namemaxIdle/name
   value10/value
/parameter
parameter
   namemaxWait/name
   value-1/value
/parameter
  /ResourceParams
/Context


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



Re: Can server.xml be reloaded without restart?

2004-06-17 Thread Digby
The context is your application so (context)/META-INF is right beside 
your (context)/WEB-INF.

Tomcat will know whch host to use because that's where you deploy it (if 
you use the deployer) or you can stick the app in the host's appbase 
folder, and it'll work it out. It did with me anyway. Once it's 
deployed, have a look in conf\Catalina and you find equivalent 
context.xml files in there too.

As Apache acknowledge, they just write software that they give away for 
free, and documentation and support are just extras when they get time. 
There are a couple of books on Tomcat that go into more detail and 
explain how things work. (Again, my experience).

Ivan Jouikov wrote:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html
And some other google stuff.
What do you mean by {context}/META-INF?
What the hell is {context} ?
And still, how would it know which Host to use?
-Original Message-
From: QM [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 16, 2004 7:56 PM
To: Tomcat Users List
Subject: Re: Can server.xml be reloaded without restart?

On Wed, Jun 16, 2004 at 07:04:12PM -0700, Ivan Jouikov wrote:
: Tomcat HOW-TO does a really bad job of explaining of how context.xml would
: work... Google didn't yield any useful information as well...
I'm not sure where you're looking -- which howto did you read?
: So, as far as I understand, you create a file called context.xml, and place
: the Context tag and all its contents into it (instead of keeping them inside
: of server.xml)...
Correct.
: Now, where does that context.xml go?  Into WEB-INF?  Tried it, didn't work.
{context}/META-INF
To answer your other question: this file is associated with the webapp
because of its location in the context dir or WAR file.  That's how the
manager app/Tomcat/etc know what to do with it.
I don't know what's up there now, but this was described on the Tomcat
site when I made the switch to using context.xml many moons ago. ;)
In fact, for Tomcat5 use of context.xml is encouraged.
-QM

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


RE: Can server.xml be reloaded without restart?

2004-06-17 Thread Ivan Jouikov
Ok, I get it now... But is there any way to make it so that you can add new 
www.domain.com aka virtual hosts without restarting the server?

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Digby
Sent: Thursday, June 17, 2004 12:52 AM
To: [EMAIL PROTECTED]
Subject: Re: Can server.xml be reloaded without restart?

The context is your application so (context)/META-INF is right beside 
your (context)/WEB-INF.

Tomcat will know whch host to use because that's where you deploy it (if 
you use the deployer) or you can stick the app in the host's appbase 
folder, and it'll work it out. It did with me anyway. Once it's 
deployed, have a look in conf\Catalina and you find equivalent 
context.xml files in there too.

As Apache acknowledge, they just write software that they give away for 
free, and documentation and support are just extras when they get time. 
There are a couple of books on Tomcat that go into more detail and 
explain how things work. (Again, my experience).

Ivan Jouikov wrote:
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html
 
 And some other google stuff.
 
 What do you mean by {context}/META-INF?
 What the hell is {context} ?
 
 And still, how would it know which Host to use?
 
 -Original Message-
 From: QM [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 16, 2004 7:56 PM
 To: Tomcat Users List
 Subject: Re: Can server.xml be reloaded without restart?
 
 On Wed, Jun 16, 2004 at 07:04:12PM -0700, Ivan Jouikov wrote:
 : Tomcat HOW-TO does a really bad job of explaining of how context.xml would
 : work... Google didn't yield any useful information as well...
 
 I'm not sure where you're looking -- which howto did you read?
 
 
 : So, as far as I understand, you create a file called context.xml, and place
 : the Context tag and all its contents into it (instead of keeping them inside
 : of server.xml)...
 
 Correct.
 
 
 : Now, where does that context.xml go?  Into WEB-INF?  Tried it, didn't work.
 
 {context}/META-INF
 
 To answer your other question: this file is associated with the webapp
 because of its location in the context dir or WAR file.  That's how the
 manager app/Tomcat/etc know what to do with it.
 
 I don't know what's up there now, but this was described on the Tomcat
 site when I made the switch to using context.xml many moons ago. ;)
 In fact, for Tomcat5 use of context.xml is encouraged.
 
 -QM
 


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07.06.2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07.06.2004
 


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



hanging application and broken pipes

2004-06-17 Thread Hans Wichman
Hi,
I am looking for some advice on tackling the following problem.
We have to maintain an application not written by us, and about three times 
a day the server hangs.
We are using tomcat 4.1.29, oracle 8 and use connection pooling.

Upon calling a certain method: readDidactischTypes() (don't mind the 
language mixing), the log should print:
2004-06-07 00:04:32 kwaliteitskaart.SchoolsBean[4402]: readDidactischTypes()
2004-06-07 00:04:32 kwaliteitskaart.SchoolsBean[4416]: SELECT DISTINCT 
vis.vis_code AS dedactTypeCode, vis.vis_omschrijving AS dedactTypeName FROM 
ins_visies vis ORDER BY vis.vis_omschrijving

The log query action is the first thing printed AFTER getting a connection 
from the pool, in other words:
   	public DidactischTypeBean readDidactischTypes()
   	{
   		log(readDidactischTypes(), 4402);
   		
   		DidactischTypeBean didactischTypeBean = null;
		DidactischTypeDetailsBean didactischTypeDetailsBean = null;
		Connection conn = null;
PreparedStatement stmt = null;
ResultSet rs = null;
		int didactCounter = 0;
		int rowCount = 0;

try {
didactischTypeBean = new DidactischTypeBean();

conn = getConnection();
log(SQL_all_didact, 4416);
(don't mind the cumbersome logger either ;-)).
Now sometimes during the day, the following happens:
2004-06-07 13:34:50 kwaliteitskaart.SchoolsBean[4402]: readDidactischTypes()
2004-06-07 13:34:51 kwaliteitskaart.SchoolsBean[4402]: readDidactischTypes()
... and this about 20 times more.
2004-06-07 13:37:21 kwaliteitskaart.SchoolsBean[4402]: readDidactischTypes()
2004-06-07 13:37:31 kwaliteitskaart.SchoolsBean[4402]: readDidactischTypes()
2004-06-07 13:37:33 ApplicationDispatcher[] Servlet.service() for servlet 
Stream threw exception
ClientAbortException:  java.io.IOException: Broken pipe
	at 
org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java:404)
	at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:428)
	at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:348)
	at org.apache.coyote.tomcat4.OutputBuffer.writeBytes(OutputBuffer.java:432)
	at org.apache.coyote.tomcat4.OutputBuffer.write(OutputBuffer.java:419)
	at 
org.apache.coyote.tomcat4.CoyoteOutputStream.write(CoyoteOutputStream.java:108)
	at 
com.mediasurface.client.servlets.StreamServlet.doGet(StreamServlet.java:365)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

--truncated--
and lower:
2004-06-07 13:49:55 StandardHost[localhost]: Removing web application at 
context path /ms
2004-06-07 13:49:55 StandardHost[localhost]: Removing web application at 
context path /cmc
2004-06-07 13:49:55 StandardHost[localhost]: Removing web application at 
context path
2004-06-07 13:49:57 StandardWrapper[:jsp]: Waiting for 276 instance(s) to 
be deallocated
2004-06-07 13:49:58 StandardWrapper[:MediasurfaceController]: Waiting for 
72 instance(s) to be deallocated
2004-06-07 13:49:58 StandardWrapper[:PdfServlet]: Waiting for 1 instance(s) 
to be deallocated

My questions are:
- does anybody know how to identify different clients in the log, can I 
print an ip for example after each timestamp?
- does anybody know what the 'waiting for 276 instances' means, does it 
mean I have 276 concurrent clients?
- did anyone experience a similar problem and found a solution ;-)?
- does anyone have any pointers of how to detect where the application or 
the server goes wrong?

The application uses jsp's and almost no servlets except a pdf and 
fopservlet. It does use thirdparty libs such as classes12.jar for oracle 
and the commons-dbcp

Thank you very much in advance for any advice you can offer.
Hans 

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


Cluster not working properly

2004-06-17 Thread Leucht, Axel
Hi,

I'm having a problem with replicating session information in my clustered webapp. Let 
me first introduce my scenario:

I have two TC instances 4.1.18 running on two different machines. On one of them I 
also have an Apache front end for the two TC and let mod_jk balance the load between 
them. I also have the InMemoryReplicationManager (tomcat-replication.jar from Filip 
Hanik for T4.

Then I tested it with the SessionExample in the example-Context and it worked great.  
Whenever i add something into the session I can see in the console that the data gets 
replicated on both TC instances. Therefore one TC instance can fail and the 
application still keeps on working.

Then I inserted the SessionExample into my own Context to test the replication 
mechanism in that context as well and adjusted the Context definition for my webapp on 
both TC instances accordingly Unfortunatelythe replication no longer works.. But the 
session info never gets replicated on the other TC instance. The only thing I'm 
currently seesing is Caught 'java.lang.NullPointerException' closing channel in the 
console.

Does anybody have an clues as to what is wrong here?

Mit freundlichen Grüßen
A. Leucht

Axel Leucht  Phone: +49-231-9792-251
PRO DV Software AG   FAX: +49-231-9792-200
Hauert 6 mailto:[EMAIL PROTECTED]
44227 Dortmund   http://www.prodv.de



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



RE: Cluster not working properly

2004-06-17 Thread Dale, Matt

Have you put the distributable tag in your web.xml?

Ta
Matt

-Original Message-
From: Leucht, Axel [mailto:[EMAIL PROTECTED]
Sent: 17 June 2004 12:39
To: [EMAIL PROTECTED]
Subject: Cluster not working properly


Hi,

I'm having a problem with replicating session information in my clustered webapp. Let 
me first introduce my scenario:

I have two TC instances 4.1.18 running on two different machines. On one of them I 
also have an Apache front end for the two TC and let mod_jk balance the load between 
them. I also have the InMemoryReplicationManager (tomcat-replication.jar from Filip 
Hanik for T4.

Then I tested it with the SessionExample in the example-Context and it worked great.  
Whenever i add something into the session I can see in the console that the data gets 
replicated on both TC instances. Therefore one TC instance can fail and the 
application still keeps on working.

Then I inserted the SessionExample into my own Context to test the replication 
mechanism in that context as well and adjusted the Context definition for my webapp on 
both TC instances accordingly Unfortunatelythe replication no longer works.. But the 
session info never gets replicated on the other TC instance. The only thing I'm 
currently seesing is Caught 'java.lang.NullPointerException' closing channel in the 
console.

Does anybody have an clues as to what is wrong here?

Mit freundlichen Grüßen
A. Leucht

Axel Leucht  Phone: +49-231-9792-251
PRO DV Software AG   FAX: +49-231-9792-200
Hauert 6 mailto:[EMAIL PROTECTED]
44227 Dortmund   http://www.prodv.de



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

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

who may help me to deploy web-applicaiton to defaultContext?

2004-06-17 Thread Arsen A. Gutsal
I try to deploy web-applicaiton to default (ROOT) context.
I'm using NetBeans 3.5.1 and Tomcat 4.06.
I'm getting exception:
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at 
org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:123)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
at 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown 
Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown
 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1567)
at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:519)
at 
org.apache.catalina.core.StandardHost.install(StandardHost.java:906)
at 
org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:856)
at 
org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:367)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
at 
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:131)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:233)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:587)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
  

log4j:WARN No appenders could be found

2004-06-17 Thread Tom K
I am using Tomcat 5.0.19 and I get the log4j:WARN No appenders could be
found error on startup. I have a log4j-1.2.8.jar file in my apps /lib
director. Should the log4j.properties file be in the same directory?
 
TIA 
 
Tom K.
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004
 


RE: JK2: lb_factor

2004-06-17 Thread Kommuru, Bhaskar
I too have similar problem and have been struggling since morning.
My problem is my mod_jk2 doesnt even load balance to remote server. When i
shut down local servers, it puts the request to remote server..
no cluesss!!


-Original Message-
From: Weseloh, Nicole [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 11:48 AM
To: [EMAIL PROTECTED]
Subject: JK2: lb_factor



Hello,

I've got a cluster with 2 tomcat 2.0.25 on different machines, on one of
them also running Apache 2.0.49 with JK2 as a loadbalancer.
Requests get redirected to both tomcat instances, but it always ends up
with around 1/3 of all requests at the local server and about 2/3 at the
remote one, no matter what value the lb_factors are.

So, could anyone tell me which values I should use to make the lb_factor
work correctly? All information I found was that a lower value means
more requests (official JK2-documentation at jakarta.apache.org). 


=

My workers2.properties:

[lb:lb]
stickySession=1

# First Tomcat Instance (Localhost / 10.32.97.44)
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
group=lb
lb_factor=1
tomcatId=tomcat01

# Second Tomcat Instance (10.32.97.23)
[channel.socket:10.32.97.23:8009]
port=8009
host=10.32.97.23
group=lb
lb_factor=1
tomcatId=tomcat02


# define the worker for tomcat instance 1 (localhost)
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# define the worker for tomcat instance 2 
[ajp13:10.32.97.23:8009]
channel=channel.socket:10.32.97.23:8009

#This is the application to test the cluster / load balancing...
[uri:/benchmark/*]
info=Benchmark application




Anything wrong with that? Anything missing? 
If more information needed, just tell me.. I just guessed that the
workers2.properties is the problem.

Greets,
Nicole



Diese E-Mail enthalt vertrauliche und/oder rechtlich geschutzte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
E-Mail irrtumlich erhalten haben, informieren Sie bitte sofort den
Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie
die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail.
Any unauthorized copying, disclosure or distribution of the material
in this e-mail is strictly forbidden.


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

__

For information about the Standard Bank group visit our web site 
www.standardbank.co.za
__

Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited  is proprietary to the group. 
It is confidential, legally privileged and protected by law. 
Standard Bank does not own and endorse any other content. Views and opinions are those 
of the sender unless clearly stated as being that of the group. 
The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender immediately if it has unintentionally reached you and do not read, 
disclose or use the content in any way.
Standard Bank can not assure that the integrity of this communication has been 
maintained nor that it is free of errors, virus, interception or interference.
___


[ANNOUNCE] Servlet Utilities 0.1

2004-06-17 Thread Tim Funk
I threw together a few filter utilities. Everything (including source) can be 
found here:

http://funkman.home.comcast.net/
Utilities of interest:
*TimerFilter* - A Filter that lets you spew out how long it took to serve a page.
*ErrorFilter* - Spit or an error code and a file or message.
*NoCacheFilter* - Set all the appropriate no cache headers
EL Wrapper - Make it easy to use EL expressions in servlets or dynamically 
use EL expressions in JSP's.

All 3 filters extend a class called ConditionFilter. ConditionFilter allows 
you to decide when the Filter will execute. It's default implementation 
allows you to use an EL expression. For example:

filter
  filter-nameErrorFilter/filter-name
  filter-classnet.funkman.servletutil.filter.ErrorFilter/filter-class
init-param
  param-nameerrorMessage/param-name
  param-value ![CDATA[bTHBBBT!/b]] /param-value
/init-param
init-param
  param-nameerrorCode/param-name
  param-value400/param-value
/init-param
!-- Show error message from 2 - 4 am --
  init-param
param-namecondition/param-name
param-value
   ${now.HOUR_OF_DAY == 2 or now.HOUR_OF_DAY == 3}
/param-value
  /init-param
/filter
filter-mapping
  filter-nameErrorFilter/filter-name
  url-pattern*.jsp/url-pattern
/filter-mapping


Have fun.
-Tim
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AW: JK2: lb_factor

2004-06-17 Thread Weseloh, Nicole
Yes, I'm still struggling, too, and have quite similar problems now - I added a third 
server to the load balanced cluster, but only two of them get requests. I shut down 
each server in turn, and the load got balanced fine between the remaining two - on 
starting up the third server again, one always becomes idle (not always the same, 
above all...). Not talking about the fact that setting lb_factor to whatever value 
doesn't seem to have much effect on the load distribution... 

At least, I found out that lb_factor has nothing to do with a factor, indeed - 
assume that each worker has an initial lb_value, set to it's lb_factor. With every 
request, a worker is chosen, its lb_value gets increased by its lb_factor, and if it's 
smaller than lb_value of the other nodes, that worker gets the request. If lb_value is 
 255, it gets resetted to 0. 
^^ Just search archives of Apache User Mailing List, found it there (and hope I 
understood correctly) - however, the mail was from some months ago, so I really don't 
know if it still works like this.

I'd really like to know if someone has managed to build a cluster of  more than 2 
Tomcat servers, using Apache + JK2, with working loadbalancing? Just curious... 

If someone could give a hint why it does such strange things (like ignoring cluster 
nodes), we'd of course be thankful, too... :)

Greets, Nicole


-Ursprüngliche Nachricht-
Von: Kommuru, Bhaskar [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 17. Juni 2004 14:12
An: 'Tomcat Users List'
Betreff: RE: JK2: lb_factor

I too have similar problem and have been struggling since morning.
My problem is my mod_jk2 doesnt even load balance to remote server. When i shut down 
local servers, it puts the request to remote server..
no cluesss!!


-Original Message-
From: Weseloh, Nicole [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 11:48 AM
To: [EMAIL PROTECTED]
Subject: JK2: lb_factor



Hello,

I've got a cluster with 2 tomcat 2.0.25 on different machines, on one of them also 
running Apache 2.0.49 with JK2 as a loadbalancer.
Requests get redirected to both tomcat instances, but it always ends up with around 
1/3 of all requests at the local server and about 2/3 at the remote one, no matter 
what value the lb_factors are.

So, could anyone tell me which values I should use to make the lb_factor work 
correctly? All information I found was that a lower value means more requests 
(official JK2-documentation at jakarta.apache.org). 


=

My workers2.properties:

[lb:lb]
stickySession=1

# First Tomcat Instance (Localhost / 10.32.97.44) [channel.socket:localhost:8009]
port=8009
host=127.0.0.1
group=lb
lb_factor=1
tomcatId=tomcat01

# Second Tomcat Instance (10.32.97.23)
[channel.socket:10.32.97.23:8009]
port=8009
host=10.32.97.23
group=lb
lb_factor=1
tomcatId=tomcat02


# define the worker for tomcat instance 1 (localhost) [ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# define the worker for tomcat instance 2 [ajp13:10.32.97.23:8009]
channel=channel.socket:10.32.97.23:8009

#This is the application to test the cluster / load balancing...
[uri:/benchmark/*]
info=Benchmark application




Anything wrong with that? Anything missing? 
If more information needed, just tell me.. I just guessed that the workers2.properties 
is the problem.

Greets,
Nicole



Diese E-Mail enthalt vertrauliche und/oder rechtlich geschutzte Informationen. Wenn 
Sie nicht der richtige Adressat sind oder diese E-Mail irrtumlich erhalten haben, 
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das 
unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail.
Any unauthorized copying, disclosure or distribution of the material in this e-mail is 
strictly forbidden.


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

__

For information about the Standard Bank group visit our web site 
www.standardbank.co.za 
__

Disclaimer and confidentiality note
Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited  is proprietary to the group. 
It is confidential, legally privileged and protected by law. 
Standard Bank does not own and endorse any other content. Views and opinions are those 
of the sender unless 

RE: [ANNOUNCE] Servlet Utilities 0.1

2004-06-17 Thread Shapira, Yoav

Hi,
You know, when I was putting the balancer app in tomcat proper, I was
thinking it'd be great if we had a place for these extra things that
don't quite belong in tomcat itself, but are useful accompaniments.  We
could do this any number of ways, such as sourceforge or a contrib
section of the tomcat CVS, but at the time I was too lazy to pursue.
Now that I see these filters, I think they belong in the same space, so
maybe it's time to think about this a bit further.

Of course this comes up when I'm going on vacation ;)


Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 8:13 AM
To: Tomcat Users List
Subject: [ANNOUNCE] Servlet Utilities 0.1

I threw together a few filter utilities. Everything (including source)
can
be
found here:

http://funkman.home.comcast.net/

Utilities of interest:
*TimerFilter* - A Filter that lets you spew out how long it took to
serve a
page.
*ErrorFilter* - Spit or an error code and a file or message.
*NoCacheFilter* - Set all the appropriate no cache headers

EL Wrapper - Make it easy to use EL expressions in servlets or
dynamically
use EL expressions in JSP's.


All 3 filters extend a class called ConditionFilter. ConditionFilter
allows
you to decide when the Filter will execute. It's default implementation
allows you to use an EL expression. For example:

filter
   filter-nameErrorFilter/filter-name

filter-classnet.funkman.servletutil.filter.ErrorFilter/filter-class
 init-param
   param-nameerrorMessage/param-name
   param-value ![CDATA[bTHBBBT!/b]] /param-value
 /init-param
 init-param
   param-nameerrorCode/param-name
   param-value400/param-value
 /init-param
!-- Show error message from 2 - 4 am --
   init-param
 param-namecondition/param-name
 param-value
${now.HOUR_OF_DAY == 2 or now.HOUR_OF_DAY == 3}
 /param-value
   /init-param
/filter
filter-mapping
   filter-nameErrorFilter/filter-name
   url-pattern*.jsp/url-pattern
/filter-mapping


Have fun.


-Tim


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Cluster not working properly

2004-06-17 Thread Filip Hanik - Dev
uh, that code is so old, you are better off upgrading to tomcat 5, plus we can support 
you better.

Filip

- Original Message -
From: Dale, Matt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 6:41 AM
Subject: RE: Cluster not working properly



Have you put the distributable tag in your web.xml?

Ta
Matt

-Original Message-
From: Leucht, Axel [mailto:[EMAIL PROTECTED]
Sent: 17 June 2004 12:39
To: [EMAIL PROTECTED]
Subject: Cluster not working properly


Hi,

I'm having a problem with replicating session information in my clustered webapp. Let 
me first introduce my scenario:

I have two TC instances 4.1.18 running on two different machines. On one of them I 
also have an Apache front end for the two TC and
let mod_jk balance the load between them. I also have the InMemoryReplicationManager 
(tomcat-replication.jar from Filip Hanik for
T4.

Then I tested it with the SessionExample in the example-Context and it worked great.  
Whenever i add something into the session I
can see in the console that the data gets replicated on both TC instances. Therefore 
one TC instance can fail and the application
still keeps on working.

Then I inserted the SessionExample into my own Context to test the replication 
mechanism in that context as well and adjusted the
Context definition for my webapp on both TC instances accordingly Unfortunatelythe 
replication no longer works.. But the session
info never gets replicated on the other TC instance. The only thing I'm currently 
seesing is Caught 'java.lang.NullPointerException'
closing channel in the console.

Does anybody have an clues as to what is wrong here?

Mit freundlichen Grüßen
A. Leucht

Axel Leucht  Phone: +49-231-9792-251
PRO DV Software AG   FAX: +49-231-9792-200
Hauert 6 mailto:[EMAIL PROTECTED]
44227 Dortmund   http://www.prodv.de



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







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


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



How can I inhibit web navegation?

2004-06-17 Thread Bachler, Elisabeth (Elisabeth)


Hello,
I have a web application that runs under jakarta-tomcat-5.0.19. The root of
my application is: /opt/jakarta-tomcat-5.0.19/webapps/provision/ I can
access the application through:

http://135.88.100.251:8080/provision/web/login.jsp

Now, I don't want the user to be able to navigate through my application.
For instance, if he enters: http://135.88.100.251:8080/provision/web/   I
don't want him to see the directories (or even the files) in it.
I think they must be a Context parameter that can do it but I don't know
how.
Could you help?

Thanks
Elisabeth

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



Increasing compiler memory in Build.xml

2004-06-17 Thread Richey, Ross
I'm using the webapp compilation script I found on
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html to
compile a servlet zone.  But It appears that Javac is running out of
memory:

-Output-

Buildfile: build.xml

jspc:

compile:
[javac] Compiling 16726 source files to
/usr/local/tomcat/jakarta-tomcat-5/build/webapps/ROOT/WEB-INF/classes



[javac] The system is out of resources.
[javac] Consult the following stack trace for details.
[javac] java.lang.OutOfMemoryError
[javac] Compile failed; see the compiler error output for details.

all:

BUILD SUCCESSFUL
Total time: 40 seconds

-/Output

Ideally I'd like to include a directive in the build.xml to increase the
compiler heap, but I haven't been able to find any directive that does
that.  What I have found are instructions for increasing the memory via
the command line, '/usr/local/jdk1.4/bin/javac -J-Xms=256m -J-Xmx=256m',
but that returns:

Invalid initial heap size: -Xms=256m
Could not create the Java virtual machine.

I'm running Redhat 7.3, Tomcat 5, Ant 1.6 and j2sdk 1.4.2.

Ross Richey,
Webmaster www.aruplab.com


RE: How can I inhibit web navegation?

2004-06-17 Thread Shapira, Yoav

http://jakarta.apache.org/tomcat/faq/misc.html#listing

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 9:35 AM
To: 'Tomcat Users List'
Subject: How can I inhibit web navegation?



Hello,
I have a web application that runs under jakarta-tomcat-5.0.19. The
root of
my application is: /opt/jakarta-tomcat-5.0.19/webapps/provision/ I can
access the application through:

http://135.88.100.251:8080/provision/web/login.jsp

Now, I don't want the user to be able to navigate through my
application.
For instance, if he enters: http://135.88.100.251:8080/provision/web/
I
don't want him to see the directories (or even the files) in it.
I think they must be a Context parameter that can do it but I don't
know
how.
Could you help?

Thanks
Elisabeth

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: How can I inhibit web navegation?

2004-06-17 Thread Frank Zammetti
Well, you can stop directory lists by setting listings to false in web.xml 
in /tomcat/conf (the global web.xml file).  There are comments about it in 
the file.

As for the navigation thing, you can externalize your security with 
something like Netegrity Siteminder.  This will allow you to stop users from 
accessing any page of your application except those you define as 
unprotected, unless they have a valid session established.

However, you can do much the same thing within your application, and I think 
this is what's generally done.  On each request, see if a valid session 
exists.  If not, redirect to some logon page, or whatever is appropriate.  
That takes care of PART of the problem.  The other part is once a session IS 
established, there's not really anything to stop a user from going to any 
URL they can properly construct.

One way to handle that is that on each request, you set in session what page 
was being viewed.  Then, you check that whatever page was last being viewed 
is a valid predecessor to the page being requested.  In other words, if the 
user is on page A, then you might know that in your application flow it's 
only ever valid to go to Page B, never directly to page C.  So, when page A 
is requested, yiou set in session a flag to say page A was last being 
viewed.  Now, when page B or C is requested, you check that value.  If page 
B is requested and the value is A, then you know you are OK.  If it's 
anything else, redirect the request.

Hope that helps!
Frank
From: Bachler, Elisabeth (Elisabeth) [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: How can I inhibit web navegation?
Date: Thu, 17 Jun 2004 15:35:14 +0200

Hello,
I have a web application that runs under jakarta-tomcat-5.0.19. The root of
my application is: /opt/jakarta-tomcat-5.0.19/webapps/provision/ I can
access the application through:
http://135.88.100.251:8080/provision/web/login.jsp
Now, I don't want the user to be able to navigate through my application.
For instance, if he enters: http://135.88.100.251:8080/provision/web/   I
don't want him to see the directories (or even the files) in it.
I think they must be a Context parameter that can do it but I don't know
how.
Could you help?
Thanks
Elisabeth
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage! 
http://join.msn.click-url.com/go/onm00200362ave/direct/01/

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


RE: Increasing compiler memory in Build.xml

2004-06-17 Thread Shapira, Yoav

Hi,
Use the memoryMaximumSize attribute of the javac task (and set fork to
true as well).  This is an Ant question.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Richey, Ross [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 9:39 AM
To: [EMAIL PROTECTED]
Subject: Increasing compiler memory in Build.xml

I'm using the webapp compilation script I found on
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html to
compile a servlet zone.  But It appears that Javac is running out of
memory:

-Output-

Buildfile: build.xml

jspc:

compile:
[javac] Compiling 16726 source files to
/usr/local/tomcat/jakarta-tomcat-5/build/webapps/ROOT/WEB-INF/classes



[javac] The system is out of resources.
[javac] Consult the following stack trace for details.
[javac] java.lang.OutOfMemoryError
[javac] Compile failed; see the compiler error output for details.

all:

BUILD SUCCESSFUL
Total time: 40 seconds

-/Output

Ideally I'd like to include a directive in the build.xml to increase
the
compiler heap, but I haven't been able to find any directive that does
that.  What I have found are instructions for increasing the memory via
the command line, '/usr/local/jdk1.4/bin/javac -J-Xms=256m
-J-Xmx=256m',
but that returns:

Invalid initial heap size: -Xms=256m
Could not create the Java virtual machine.

I'm running Redhat 7.3, Tomcat 5, Ant 1.6 and j2sdk 1.4.2.

Ross Richey,
Webmaster www.aruplab.com



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: JK2: lb_factor

2004-06-17 Thread Kommuru, Bhaskar
In my case, I have 4 tomcats, 2 running locally and other 2 remotely. I have
noticed onething here.. Loadbalancer is giving preference only to local
servers. If no local server available, then it loadbalances all the remote
servers perfectly.

So basically, it is forcing us that we can only do FAIL-OVER (not
LOAD-BALANCE) between local and remote workers. 


-Original Message-
From: Weseloh, Nicole [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 2:39 PM
To: Tomcat Users List
Subject: AW: JK2: lb_factor


Yes, I'm still struggling, too, and have quite similar problems now - I
added a third server to the load balanced cluster, but only two of them get
requests. I shut down each server in turn, and the load got balanced fine
between the remaining two - on starting up the third server again, one
always becomes idle (not always the same, above all...). Not talking about
the fact that setting lb_factor to whatever value doesn't seem to have much
effect on the load distribution... 

At least, I found out that lb_factor has nothing to do with a factor,
indeed - assume that each worker has an initial lb_value, set to it's
lb_factor. With every request, a worker is chosen, its lb_value gets
increased by its lb_factor, and if it's smaller than lb_value of the other
nodes, that worker gets the request. If lb_value is  255, it gets resetted
to 0. 
^^ Just search archives of Apache User Mailing List, found it there (and
hope I understood correctly) - however, the mail was from some months ago,
so I really don't know if it still works like this.

I'd really like to know if someone has managed to build a cluster of  more
than 2 Tomcat servers, using Apache + JK2, with working loadbalancing? Just
curious... 

If someone could give a hint why it does such strange things (like
ignoring cluster nodes), we'd of course be thankful, too... :)

Greets, Nicole


-Ursprüngliche Nachricht-
Von: Kommuru, Bhaskar [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 17. Juni 2004 14:12
An: 'Tomcat Users List'
Betreff: RE: JK2: lb_factor

I too have similar problem and have been struggling since morning.
My problem is my mod_jk2 doesnt even load balance to remote server. When i
shut down local servers, it puts the request to remote server..
no cluesss!!


-Original Message-
From: Weseloh, Nicole [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 11:48 AM
To: [EMAIL PROTECTED]
Subject: JK2: lb_factor



Hello,

I've got a cluster with 2 tomcat 2.0.25 on different machines, on one of
them also running Apache 2.0.49 with JK2 as a loadbalancer.
Requests get redirected to both tomcat instances, but it always ends up with
around 1/3 of all requests at the local server and about 2/3 at the remote
one, no matter what value the lb_factors are.

So, could anyone tell me which values I should use to make the lb_factor
work correctly? All information I found was that a lower value means more
requests (official JK2-documentation at jakarta.apache.org). 


=

My workers2.properties:

[lb:lb]
stickySession=1

# First Tomcat Instance (Localhost / 10.32.97.44)
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
group=lb
lb_factor=1
tomcatId=tomcat01

# Second Tomcat Instance (10.32.97.23)
[channel.socket:10.32.97.23:8009]
port=8009
host=10.32.97.23
group=lb
lb_factor=1
tomcatId=tomcat02


# define the worker for tomcat instance 1 (localhost) [ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# define the worker for tomcat instance 2 [ajp13:10.32.97.23:8009]
channel=channel.socket:10.32.97.23:8009

#This is the application to test the cluster / load balancing...
[uri:/benchmark/*]
info=Benchmark application




Anything wrong with that? Anything missing? 
If more information needed, just tell me.. I just guessed that the
workers2.properties is the problem.

Greets,
Nicole



__

For information about the Standard Bank group visit our web site 
www.standardbank.co.za
__

Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited  is proprietary to the group. 
It is confidential, legally privileged and protected by law. 
Standard Bank does not own and endorse any other content. Views and opinions are those 
of the sender unless clearly stated as being that of the group. 
The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender immediately if it has unintentionally reached you and do not read, 
disclose or use the content in any way.
Standard Bank can not assure that the integrity of this communication has been 
maintained nor that it is free of 

Re: Caused by: java.lang.IllegalStateException: Context path is already in use

2004-06-17 Thread Veniamin Fichin
Arsen A. Gutsal wrote:
Getting subj during deploying into root () context.
Who may help me?
   May be there really is another context at this path? Check all path 
attributes of Context element(s) in your server.xml .

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


RE: JK2: lb_factor

2004-06-17 Thread Kommuru, Bhaskar
Do you remember that mail about lb_factor? What you said it right about
lb_factor. Changing this value does not affect easily. 


-Original Message-
From: Weseloh, Nicole [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 2:39 PM
To: Tomcat Users List
Subject: AW: JK2: lb_factor


Yes, I'm still struggling, too, and have quite similar problems now - I
added a third server to the load balanced cluster, but only two of them get
requests. I shut down each server in turn, and the load got balanced fine
between the remaining two - on starting up the third server again, one
always becomes idle (not always the same, above all...). Not talking about
the fact that setting lb_factor to whatever value doesn't seem to have much
effect on the load distribution... 

At least, I found out that lb_factor has nothing to do with a factor,
indeed - assume that each worker has an initial lb_value, set to it's
lb_factor. With every request, a worker is chosen, its lb_value gets
increased by its lb_factor, and if it's smaller than lb_value of the other
nodes, that worker gets the request. If lb_value is  255, it gets resetted
to 0. 
^^ Just search archives of Apache User Mailing List, found it there (and
hope I understood correctly) - however, the mail was from some months ago,
so I really don't know if it still works like this.

I'd really like to know if someone has managed to build a cluster of  more
than 2 Tomcat servers, using Apache + JK2, with working loadbalancing? Just
curious... 

If someone could give a hint why it does such strange things (like
ignoring cluster nodes), we'd of course be thankful, too... :)

Greets, Nicole


-Ursprüngliche Nachricht-
Von: Kommuru, Bhaskar [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 17. Juni 2004 14:12
An: 'Tomcat Users List'
Betreff: RE: JK2: lb_factor

I too have similar problem and have been struggling since morning.
My problem is my mod_jk2 doesnt even load balance to remote server. When i
shut down local servers, it puts the request to remote server..
no cluesss!!


-Original Message-
From: Weseloh, Nicole [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 11:48 AM
To: [EMAIL PROTECTED]
Subject: JK2: lb_factor



Hello,

I've got a cluster with 2 tomcat 2.0.25 on different machines, on one of
them also running Apache 2.0.49 with JK2 as a loadbalancer.
Requests get redirected to both tomcat instances, but it always ends up with
around 1/3 of all requests at the local server and about 2/3 at the remote
one, no matter what value the lb_factors are.

So, could anyone tell me which values I should use to make the lb_factor
work correctly? All information I found was that a lower value means more
requests (official JK2-documentation at jakarta.apache.org). 


=

My workers2.properties:

[lb:lb]
stickySession=1

# First Tomcat Instance (Localhost / 10.32.97.44)
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
group=lb
lb_factor=1
tomcatId=tomcat01

# Second Tomcat Instance (10.32.97.23)
[channel.socket:10.32.97.23:8009]
port=8009
host=10.32.97.23
group=lb
lb_factor=1
tomcatId=tomcat02


# define the worker for tomcat instance 1 (localhost) [ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# define the worker for tomcat instance 2 [ajp13:10.32.97.23:8009]
channel=channel.socket:10.32.97.23:8009

#This is the application to test the cluster / load balancing...
[uri:/benchmark/*]
info=Benchmark application




Anything wrong with that? Anything missing? 
If more information needed, just tell me.. I just guessed that the
workers2.properties is the problem.

Greets,
Nicole



Diese E-Mail enthalt vertrauliche und/oder rechtlich geschutzte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtumlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail.
Any unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.


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


__

For information about the Standard Bank group visit our web site
www.standardbank.co.za

__

Disclaimer and confidentiality note
Everything in this e-mail and any 

RE: JK2: lb_factor

2004-06-17 Thread Weseloh, Nicole
Yes, right, that was the mail I meant. 

Your assumption about failover instead of load balancing seems to be correct, at 
least, at my cluster (one local server, on a remote machine another server + VMWare 
with a third server) it is the same - thanks for that comment, I was to blind to see 
it myself. ;-)

I'll try to find out more tomorrow, maybe we'll get it to work - I'd be very 
interested in your progresses, however. 
Do you've got any idea how to realise load balancing with a defined distribution?

Or, in other words: as long as it does not work properly with Tomcat  mod_jk2, are 
there any reasons to use those, after all, instead of Tomcat's balancer-webapp, if 
one is mainly interested in performance issues?




-Ursprüngliche Nachricht-
Von: Kommuru, Bhaskar [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 17. Juni 2004 16:09
An: 'Tomcat Users List'
Betreff: RE: JK2: lb_factor

Do you remember that mail about lb_factor? What you said it right about lb_factor. 
Changing this value does not affect easily. 


-Original Message-
From: Weseloh, Nicole [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 2:39 PM
To: Tomcat Users List
Subject: AW: JK2: lb_factor


Yes, I'm still struggling, too, and have quite similar problems now - I added a third 
server to the load balanced cluster, but only two of them get requests. I shut down 
each server in turn, and the load got balanced fine between the remaining two - on 
starting up the third server again, one always becomes idle (not always the same, 
above all...). Not talking about the fact that setting lb_factor to whatever value 
doesn't seem to have much effect on the load distribution... 

At least, I found out that lb_factor has nothing to do with a factor, indeed - 
assume that each worker has an initial lb_value, set to it's lb_factor. With every 
request, a worker is chosen, its lb_value gets increased by its lb_factor, and if it's 
smaller than lb_value of the other nodes, that worker gets the request. If lb_value is 
 255, it gets resetted to 0. 
^^ Just search archives of Apache User Mailing List, found it there (and hope I 
understood correctly) - however, the mail was from some months ago, so I really don't 
know if it still works like this.

I'd really like to know if someone has managed to build a cluster of  more than 2 
Tomcat servers, using Apache + JK2, with working loadbalancing? Just curious... 

If someone could give a hint why it does such strange things (like ignoring cluster 
nodes), we'd of course be thankful, too... :)

Greets, Nicole


-Ursprüngliche Nachricht-
Von: Kommuru, Bhaskar [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 17. Juni 2004 14:12
An: 'Tomcat Users List'
Betreff: RE: JK2: lb_factor

I too have similar problem and have been struggling since morning.
My problem is my mod_jk2 doesnt even load balance to remote server. When i shut down 
local servers, it puts the request to remote server..
no cluesss!!


-Original Message-
From: Weseloh, Nicole [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 11:48 AM
To: [EMAIL PROTECTED]
Subject: JK2: lb_factor



Hello,

I've got a cluster with 2 tomcat 2.0.25 on different machines, on one of them also 
running Apache 2.0.49 with JK2 as a loadbalancer.
Requests get redirected to both tomcat instances, but it always ends up with around 
1/3 of all requests at the local server and about 2/3 at the remote one, no matter 
what value the lb_factors are.

So, could anyone tell me which values I should use to make the lb_factor work 
correctly? All information I found was that a lower value means more requests 
(official JK2-documentation at jakarta.apache.org). 


=

My workers2.properties:

[lb:lb]
stickySession=1

# First Tomcat Instance (Localhost / 10.32.97.44) [channel.socket:localhost:8009]
port=8009
host=127.0.0.1
group=lb
lb_factor=1
tomcatId=tomcat01

# Second Tomcat Instance (10.32.97.23)
[channel.socket:10.32.97.23:8009]
port=8009
host=10.32.97.23
group=lb
lb_factor=1
tomcatId=tomcat02


# define the worker for tomcat instance 1 (localhost) [ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# define the worker for tomcat instance 2 [ajp13:10.32.97.23:8009]
channel=channel.socket:10.32.97.23:8009

#This is the application to test the cluster / load balancing...
[uri:/benchmark/*]
info=Benchmark application




Anything wrong with that? Anything missing? 
If more information needed, just tell me.. I just guessed that the workers2.properties 
is the problem.

Greets,
Nicole



Diese E-Mail enthalt vertrauliche und/oder rechtlich geschutzte Informationen. Wenn 
Sie nicht der richtige Adressat sind oder diese E-Mail irrtumlich erhalten haben, 
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das 
unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht 

Xslt and Tomcat

2004-06-17 Thread Worley Brent - bworle
java.lang.NoClassDefFoundError: org/dom4j/Document

I got this error using XTags.  I have a feeling that I might not have the
Xerces libs in the right place.  Can someone confirm this?

Thanks,
Brent


**
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.


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



Re: How can I inhibit web navegation?

2004-06-17 Thread Pablo Lillia
Another quick hack: just add en empty index.html (or .jsp) file.
BTW, see http://jakarta.apache.org/tomcat/faq/misc.html#listing first.
Shapira, Yoav escribió:
http://jakarta.apache.org/tomcat/faq/misc.html#listing
Yoav Shapira
Millennium Research Informatics

-Original Message-
From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 9:35 AM
To: 'Tomcat Users List'
Subject: How can I inhibit web navegation?

Hello,
I have a web application that runs under jakarta-tomcat-5.0.19. The
root of
my application is: /opt/jakarta-tomcat-5.0.19/webapps/provision/ I can
access the application through:
http://135.88.100.251:8080/provision/web/login.jsp
Now, I don't want the user to be able to navigate through my
application.
For instance, if he enters: http://135.88.100.251:8080/provision/web/
I
don't want him to see the directories (or even the files) in it.
I think they must be a Context parameter that can do it but I don't
know
how.
Could you help?
Thanks
Elisabeth
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This e-mail, including any attachments, is a confidential business communication, 
and may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


Adding roles to users

2004-06-17 Thread Robert Harper
I have been able to create a user by calling the createUser method on the
Users:type=UserDatabase,database=UserDatabase object. Now I need to add a role
to that user. 

 

In the mbeans-descriptors.xml file it describes the return value as being the
name of the user bean. The source for MemoryUserDatabase returns the full name
of the user created. The return I get from my call to createUser with the full
name supplied is null.

 

I now have two questions:

 

1.  What is the name of the object I should use to manipulate an individual
user? 
2.  How do I set the desired user active so I can update the correct user? 

 

I have a hard time following the code for the admin app because the code is so
abstracted and I don't know where all of the property strings and attributes are
coming from.

 

Robert S. Harper

Senior Engineer

1100 East 6600 South, Suite 300

Salt Lake City, UT 84121-7411

801.265.8800 ex. 255

 

 

 

Robert S. Harper

Senior Engineer

1100 East 6600 South, Suite 300

Salt Lake City, UT 84121-7411

801.265.8800 ex. 255

 



RE: Xslt and Tomcat

2004-06-17 Thread Shapira, Yoav

Hi,
Someone can deny this, as opposed to confirming it ;)  DOM4j is not part
of Xerces.  You can read about it and download it at
http://www.dom4j.org/.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Worley Brent - bworle [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 10:23 AM
To: 'Tomcat Users List'
Subject: Xslt and Tomcat

java.lang.NoClassDefFoundError: org/dom4j/Document

I got this error using XTags.  I have a feeling that I might not have
the
Xerces libs in the right place.  Can someone confirm this?

Thanks,
Brent


**
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



All threads are busy ... servlet status 75

2004-06-17 Thread Harald Henkel
Hello everybody.

I receive an error like the above and then Tomcat stops to respond.

I searched the archives about this error and found that a lot of people
also had this, but I didn't find the solution in the answers.
Sometimes it was suggested to upgrade to 4.1.29, but that's what we are
already using.
What I found is, that there were no more messages in this mailing list
about this bug since begin 2004, so maybe 4.1.30 solves this ?

We are running Tomcat on Redhat Linux with kernel 2.4.9-e.27smp and Java
SDK 1.4.2-02-b06.

There is also Oracle 9i running on that server and it Tomcat/JSP is used
to generate a WEB application from database information.

This is quite URGENT, because this is a system going productive soon and
will run 24/7.

Any idea ? Has there been a solution for those which had the problem
earlier (in 2002/2003) ?

If needed I can post catalina.out messages, configuration files etc.


With kind regards,
Harald Henkel

-- 
Harald Henkel

GS automation GmbH
Winterstraße 2
82223 Eichenau
Germany
Tel:+ 49-8141-35 731-37
Fax:+ 49-8141-35 731-38
Mobile: + 49-178-7829126
e-mail: [EMAIL PROTECTED]
Web:www.GS-automation.DE

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



Re: All threads are busy ... servlet status 75

2004-06-17 Thread Filip Hanik - Dev
it means that you ran out of connections (sockets), you can increase the 75 value in 
server.xml under the connector section.
you might also want to investigate why your code is not returning fast enough, or 
MAYBE NOT AT ALL?

Filip

- Original Message -
From: Harald Henkel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 9:51 AM
Subject: All threads are busy ... servlet status 75


 Hello everybody.

 I receive an error like the above and then Tomcat stops to respond.

 I searched the archives about this error and found that a lot of people
 also had this, but I didn't find the solution in the answers.
 Sometimes it was suggested to upgrade to 4.1.29, but that's what we are
 already using.
 What I found is, that there were no more messages in this mailing list
 about this bug since begin 2004, so maybe 4.1.30 solves this ?

 We are running Tomcat on Redhat Linux with kernel 2.4.9-e.27smp and Java
 SDK 1.4.2-02-b06.

 There is also Oracle 9i running on that server and it Tomcat/JSP is used
 to generate a WEB application from database information.

 This is quite URGENT, because this is a system going productive soon and
 will run 24/7.

 Any idea ? Has there been a solution for those which had the problem
 earlier (in 2002/2003) ?

 If needed I can post catalina.out messages, configuration files etc.


 With kind regards,
 Harald Henkel

 --
 Harald Henkel

 GS automation GmbH
 Winterstraße 2
 82223 Eichenau
 Germany
 Tel:+ 49-8141-35 731-37
 Fax:+ 49-8141-35 731-38
 Mobile: + 49-178-7829126
 e-mail: [EMAIL PROTECTED]
 Web:www.GS-automation.DE

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


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



RE: All threads are busy ... servlet status 75

2004-06-17 Thread Shapira, Yoav

Hi,
There's always the option that are actually getting a high enough load to occupy 75 
threads ;)

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Harald Henkel [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 10:52 AM
To: [EMAIL PROTECTED]
Subject: All threads are busy ... servlet status 75

Hello everybody.

I receive an error like the above and then Tomcat stops to respond.

I searched the archives about this error and found that a lot of people
also had this, but I didn't find the solution in the answers.
Sometimes it was suggested to upgrade to 4.1.29, but that's what we are
already using.
What I found is, that there were no more messages in this mailing list
about this bug since begin 2004, so maybe 4.1.30 solves this ?

We are running Tomcat on Redhat Linux with kernel 2.4.9-e.27smp and Java
SDK 1.4.2-02-b06.

There is also Oracle 9i running on that server and it Tomcat/JSP is used
to generate a WEB application from database information.

This is quite URGENT, because this is a system going productive soon and
will run 24/7.

Any idea ? Has there been a solution for those which had the problem
earlier (in 2002/2003) ?

If needed I can post catalina.out messages, configuration files etc.


With kind regards,
Harald Henkel

--
Harald Henkel

GS automation GmbH
Winterstraße 2
82223 Eichenau
Germany
Tel:+ 49-8141-35 731-37
Fax:+ 49-8141-35 731-38
Mobile: + 49-178-7829126
e-mail: [EMAIL PROTECTED]
Web:www.GS-automation.DE

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Safety of images under the WEB-INF?

2004-06-17 Thread James Sherwood
Hello,
I am doing a project where I dont want people to be able to link
directly to certian images/files unless they are logged in through my
security framework.

The question is, if I put an images directory under the WEB-INF and
serve the images up through a service, how safe are these images? Can they
be retreived without going through my service(which i can check if they have
access or not) and if so, how?

Thank you,
James



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



RE: Safety of images under the WEB-INF?

2004-06-17 Thread Shapira, Yoav

Hi,
No, they can't be viewed directly: the servlet container is prohibited
from serving content under WEB-INF directories by the Servlet
Specification.  This is strictly implemented by all servlet container I
know of, and is easy to test in your installation by trying to access
the image under WEB-INF.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: James Sherwood [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 11:02 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Safety of images under the WEB-INF?

Hello,
I am doing a project where I dont want people to be able to link
directly to certian images/files unless they are logged in through my
security framework.

The question is, if I put an images directory under the WEB-INF and
serve the images up through a service, how safe are these images? Can
they
be retreived without going through my service(which i can check if they
have
access or not) and if so, how?

Thank you,
James



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: JK2: lb_factor

2004-06-17 Thread Kommuru, Bhaskar

Hey my friend,

Please check the last section of this link, I hope you can understand
better? I have been trying to understand this section..but could not help
it. :--)

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebcom.html




-Ursprüngliche Nachricht-
Von: Kommuru, Bhaskar [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 17. Juni 2004 16:09
An: 'Tomcat Users List'
Betreff: RE: JK2: lb_factor

Do you remember that mail about lb_factor? What you said it right about
lb_factor. Changing this value does not affect easily. 


-Original Message-
From: Weseloh, Nicole [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 2:39 PM
To: Tomcat Users List
Subject: AW: JK2: lb_factor


Yes, I'm still struggling, too, and have quite similar problems now - I
added a third server to the load balanced cluster, but only two of them get
requests. I shut down each server in turn, and the load got balanced fine
between the remaining two - on starting up the third server again, one
always becomes idle (not always the same, above all...). Not talking about
the fact that setting lb_factor to whatever value doesn't seem to have much
effect on the load distribution... 

At least, I found out that lb_factor has nothing to do with a factor,
indeed - assume that each worker has an initial lb_value, set to it's
lb_factor. With every request, a worker is chosen, its lb_value gets
increased by its lb_factor, and if it's smaller than lb_value of the other
nodes, that worker gets the request. If lb_value is  255, it gets resetted
to 0. 
^^ Just search archives of Apache User Mailing List, found it there (and
hope I understood correctly) - however, the mail was from some months ago,
so I really don't know if it still works like this.

I'd really like to know if someone has managed to build a cluster of  more
than 2 Tomcat servers, using Apache + JK2, with working loadbalancing? Just
curious... 

If someone could give a hint why it does such strange things (like
ignoring cluster nodes), we'd of course be thankful, too... :)

Greets, Nicole


-Ursprüngliche Nachricht-
Von: Kommuru, Bhaskar [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 17. Juni 2004 14:12
An: 'Tomcat Users List'
Betreff: RE: JK2: lb_factor

I too have similar problem and have been struggling since morning.
My problem is my mod_jk2 doesnt even load balance to remote server. When i
shut down local servers, it puts the request to remote server..
no cluesss!!


-Original Message-
From: Weseloh, Nicole [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 11:48 AM
To: [EMAIL PROTECTED]
Subject: JK2: lb_factor



Hello,

I've got a cluster with 2 tomcat 2.0.25 on different machines, on one of
them also running Apache 2.0.49 with JK2 as a loadbalancer.
Requests get redirected to both tomcat instances, but it always ends up with
around 1/3 of all requests at the local server and about 2/3 at the remote
one, no matter what value the lb_factors are.

So, could anyone tell me which values I should use to make the lb_factor
work correctly? All information I found was that a lower value means more
requests (official JK2-documentation at jakarta.apache.org). 


=

My workers2.properties:

[lb:lb]
stickySession=1

# First Tomcat Instance (Localhost / 10.32.97.44)
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
group=lb
lb_factor=1
tomcatId=tomcat01

# Second Tomcat Instance (10.32.97.23)
[channel.socket:10.32.97.23:8009]
port=8009
host=10.32.97.23
group=lb
lb_factor=1
tomcatId=tomcat02


# define the worker for tomcat instance 1 (localhost) [ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# define the worker for tomcat instance 2 [ajp13:10.32.97.23:8009]
channel=channel.socket:10.32.97.23:8009

#This is the application to test the cluster / load balancing...
[uri:/benchmark/*]
info=Benchmark application




Anything wrong with that? Anything missing? 
If more information needed, just tell me.. I just guessed that the
workers2.properties is the problem.

Greets,
Nicole



Diese E-Mail enthalt vertrauliche und/oder rechtlich geschutzte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtumlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail.
Any unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.


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


Re: Safety of images under the WEB-INF?

2004-06-17 Thread Elijah Epifanov
However, if you run Tomcat behind Apache, you should ensure that
none of your WEB-INF folders will be served by Apache.


- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 6:53 PM
Subject: RE: Safety of images under the WEB-INF?



Hi,
No, they can't be viewed directly: the servlet container is prohibited
from serving content under WEB-INF directories by the Servlet
Specification.  This is strictly implemented by all servlet container I
know of, and is easy to test in your installation by trying to access
the image under WEB-INF.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: James Sherwood [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 11:02 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Safety of images under the WEB-INF?

Hello,
I am doing a project where I dont want people to be able to link
directly to certian images/files unless they are logged in through my
security framework.

The question is, if I put an images directory under the WEB-INF and
serve the images up through a service, how safe are these images? Can
they
be retreived without going through my service(which i can check if they
have
access or not) and if so, how?

Thank you,
James



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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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




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



HOW-TO : Mail session and authentication password

2004-06-17 Thread Q\. Werty
How can I declare a JavaMail Session in server.xml with
AUTHENTICATION informations?
It's OK for some properties (mail.smtp.port|from|user|auth)
but never found a way to indicate PASSWORD.


Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)




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



RE: HOW-TO : Mail session and authentication password

2004-06-17 Thread Carl Olivier
Hi.

I extended an javax.mail.Authenticator to set username and password for SMTP
authentication:

private static class SMTPAuthenticator extends Authenticator
{
String username, password;
SMTPAuthenticator( String username, String password )
{
this.username = username;
this.password = password;
}
public PasswordAuthentication getPasswordAuthentication()
{
return new PasswordAuthentication( username,
password );
}
}


You then set mail.smtp.auth property to true

When constructing the MimeMessage, use a javax.mail.Session object created
using a Properties instance (with your properties set) and the instance of
the Authenticator (as above) that has the username and password set.

Hope that helps

Carl


-Original Message-
From: Q. Werty [mailto:[EMAIL PROTECTED] 
Sent: 17 June 2004 05:02 PM
To: tomcat-user
Subject: HOW-TO : Mail session and authentication password


How can I declare a JavaMail Session in server.xml with AUTHENTICATION
informations? It's OK for some properties (mail.smtp.port|from|user|auth)
but never found a way to indicate PASSWORD.


Accdez au courrier lectronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34/mn) ; tl : 08 92 68 13 50 (0,34/mn)




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

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



Tutorial on Tomcat and JMX ?

2004-06-17 Thread Michael Südkamp
Hi,

Is there any good tutorial on how to play with the JMX capabilities of Tomcat 4 or 5?
I have a basic understanding of JMX but I don't know how to get it to work with Tomcat.

Michael



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



RE: HOW-TO : Mail session and authentication password

2004-06-17 Thread Q\. Werty
OK, thanks for you response. I've not understood how you
specify/pass your SMTPAuthenticator from JNDI resources.

What i want, is to be able to specify my SMTP password FROM
SERVER.XML and not from application (like JDBC resources). Is
your SMTPAuthenticator build by the application (and therefore
password is provided by the application) or build par the
contenair (and password is mentionned)?


 Hi.

 I extended an javax.mail.Authenticator to set username and
password for SMTP
 authentication:

   private static class SMTPAuthenticator extends Authenticator
   {
   String username, password;
   SMTPAuthenticator( String username, String password )
   {
   this.username = username;
   this.password = password;
   }
   public PasswordAuthentication getPasswordAuthentication()
   {
   return new PasswordAuthentication( username,
 password );
   }
   }


 You then set mail.smtp.auth property to true

 When constructing the MimeMessage, use a javax.mail.Session
object created
 using a Properties instance (with your properties set) and
the instance of
 the Authenticator (as above) that has the username and
password set.

 Hope that helps

 Carl


 -Original Message-
 From: Q. Werty [mailto:[EMAIL PROTECTED]
 Sent: 17 June 2004 05:02 PM
 To: tomcat-user
 Subject: HOW-TO : Mail session and authentication password


 How can I declare a JavaMail Session in server.xml with
AUTHENTICATION
 informations? It's OK for some properties
(mail.smtp.port|from|user|auth)
 but never found a way to indicate PASSWORD.


 Accédez au courrier électronique de La Poste :
www.laposte.net ;
 3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)





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


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

Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)




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



RE: Tutorial on Tomcat and JMX ?

2004-06-17 Thread Shapira, Yoav

Hola,
There are a few leads on google, such as http://mc4j.sourceforge.net/usageTomcat.html.

There's probably nothing more comprehensive than looking at the admin webapp's code, 
as that exercises virtually every tomcat JMX operation/attribute: 
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Michael Südkamp [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 11:14 AM
To: [EMAIL PROTECTED]
Subject: Tutorial on Tomcat and JMX ?

Hi,

Is there any good tutorial on how to play with the JMX capabilities of
Tomcat 4 or 5?
I have a basic understanding of JMX but I don't know how to get it to work
with Tomcat.

Michael



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Memory Settings On Tomcat

2004-06-17 Thread Endre Stølsvik
On Wed, 16 Jun 2004, Shapira, Yoav wrote:

|
| Hola ;)
|
| Okay? Expected? I don't get that. Can you point me to a email-subject
| of
| one of those threads? Or several?!
|
| There are a number of issues in this space.  For example, if your
| servlet class keep a static reference, that can't be garbage collected
| when the webapp is recycled.
| Therefore the old class definition itself can't be discarded and must be
| kept along with its classloader in the JVM.  A new classloader is
| created and loads new copies of your webapp classes, resulting in a
| total memory increase.
|

Why not? I don't think this is correct. See, if the class isn't referenced
anymore, by not having any referenced objects of that class (by any
reference), nor having the class object referenced, on the stack of any of
the JVM's created Threads, then the static fields of that class isn't
referenced either, and thus both will be gc'ed, and then the classloader
will be gc'ed..

| Eventually, we made a note of this in the release notes: see the section
| titled Web application reloading and static fields in shared
| libraries.

This concerns something else, but is a very good point. I didn't actually
know that any -shared- standard Java library will put references to my
objects in its internal structures. Know of any specific examples of this?

|
| That's one example.  There are other more insidious cases.  If you
| search the list archives (or even google) for things like tomcat webapp
| reload memory leak or tomcat reload OutOfMemoryError you'll see the
| threads and discussions, e.g.
| http://www.junlu.com/msg/38828.html and
| http://www.junlu.com/msg/13981.html.

I will do this - and thanks a LOT for your time and information so far!

Endre.


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



RE: question

2004-06-17 Thread [EMAIL PROTECTED]
I put my web application under webapps...
(moved the entire subtree of my application)
now what do i do to have it running?

How do i connect to it?

Angelo




 Hi,
 Didn't we discuss this last week? ;)  Anyways, don't put your webapp
 under webapps/ROOT: put it under the webapps folder itself.

 Put all your classes in packages to establish a good habit.

 Use explicit imports for your classes unless they're in the same package
 as the class using the imports.


 Yoav Shapira
 Millennium Research Informatics


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 16, 2004 10:39 AM
 To: tomcat-user
 Subject: question
 
 Question, please.
 
 I have a web application... named matrici/web
 
 
 so i have a tree like this
 
 matrici/web/
 -many jsp files
 -WEB-INF/
 --web.xml
 --classes/
 --lib/
 
 my application is under $CATALINA_HOME/webapps/ROOT
 
 I put my extern class, CreaServizio.class in WEB-INF/classes/ is it
 right?
 do i have to create a package for that class?
 or do i have to use an explicit import instruction?
 
 It returns me an error
  cannot resolve symbol symbol  : variable CreaServizio
 
 CreaServizio is a class
 
 Angelo
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to whom
it is addressed, and may not be saved, copied, printed, disclosed or used by
anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


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




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



Re: question

2004-06-17 Thread Ben Souther

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html







On Thursday 17 June 2004 11:30 am, [EMAIL PROTECTED] wrote:
 I put my web application under webapps...
 (moved the entire subtree of my application)
 now what do i do to have it running?

 How do i connect to it?

 Angelo

  Hi,
  Didn't we discuss this last week? ;)  Anyways, don't put your webapp
  under webapps/ROOT: put it under the webapps folder itself.
 
  Put all your classes in packages to establish a good habit.
 
  Use explicit imports for your classes unless they're in the same package
  as the class using the imports.
 
 
  Yoav Shapira
  Millennium Research Informatics
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, June 16, 2004 10:39 AM
  To: tomcat-user
  Subject: question
  
  Question, please.
  
  I have a web application... named matrici/web
  
  
  so i have a tree like this
  
  matrici/web/
  -many jsp files
  -WEB-INF/
  --web.xml
  --classes/
  --lib/
  
  my application is under $CATALINA_HOME/webapps/ROOT
  
  I put my extern class, CreaServizio.class in WEB-INF/classes/ is it
 
  right?
 
  do i have to create a package for that class?
  or do i have to use an explicit import instruction?
  
  It returns me an error
   cannot resolve symbol symbol  : variable CreaServizio
  
  CreaServizio is a class
  
  Angelo
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  This e-mail, including any attachments, is a confidential business

 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an) intended
 recipient, please immediately delete this e-mail from your computer system
 and notify the sender.  Thank you.

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

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

-- 
Ben Souther
F.W. Davison  Company, Inc.


This e-mail message, and any accompanying documents, is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  Any unauthorized review, use, disclosure, distribution or
copying is prohibited.  If you are not the intended recipient, please
contact our office by email or by telephone at (508) 747-7261 and
immediately destroy all copies of the original message.

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



Re: question

2004-06-17 Thread Chong Yu Meng
Hi Angelo,
Please read my write-up on Tomcat 5 here : 
http://cymulacrum.net/writings/tomcat5/book1.html

I am currently updating the document, but what you need now is right there.
Regards,
pascal chong

[EMAIL PROTECTED] wrote:
I put my web application under webapps...
(moved the entire subtree of my application)
now what do i do to have it running?
How do i connect to it?
Angelo

 

Hi,
Didn't we discuss this last week? ;)  Anyways, don't put your webapp
under webapps/ROOT: put it under the webapps folder itself.
Put all your classes in packages to establish a good habit.
Use explicit imports for your classes unless they're in the same package
as the class using the imports.
Yoav Shapira
Millennium Research Informatics
   

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 10:39 AM
To: tomcat-user
Subject: question
Question, please.
I have a web application... named matrici/web
so i have a tree like this
matrici/web/
-many jsp files
-WEB-INF/
--web.xml
--classes/
--lib/
my application is under $CATALINA_HOME/webapps/ROOT
I put my extern class, CreaServizio.class in WEB-INF/classes/ is it
 

right?
   

do i have to create a package for that class?
or do i have to use an explicit import instruction?
It returns me an error
   cannot resolve symbol symbol  : variable CreaServizio
CreaServizio is a class
Angelo

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


This e-mail, including any attachments, is a confidential business
   

communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to whom
it is addressed, and may not be saved, copied, printed, disclosed or used by
anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.
 

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


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

 


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


Re: question

2004-06-17 Thread [EMAIL PROTECTED]
Hi

I'm sorry but i don't understand.

may someone explain it?
I want to know the procedure of making an application running, please

Angelo



 Hi Angelo,

 Please read my write-up on Tomcat 5 here :
 http://cymulacrum.net/writings/tomcat5/book1.html

 I am currently updating the document, but what you need now is right there.
 
 Regards,
 pascal chong



 [EMAIL PROTECTED] wrote:
 
 I put my web application under webapps...
 (moved the entire subtree of my application)
 now what do i do to have it running?
 
 How do i connect to it?
 
 Angelo
 
 
 
 
 
 Hi,
 Didn't we discuss this last week? ;)  Anyways, don't put your webapp
 under webapps/ROOT: put it under the webapps folder itself.
 
 Put all your classes in packages to establish a good habit.
 
 Use explicit imports for your classes unless they're in the same package
 as the class using the imports.
 
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 16, 2004 10:39 AM
 To: tomcat-user
 Subject: question
 
 Question, please.
 
 I have a web application... named matrici/web
 
 
 so i have a tree like this
 
 matrici/web/
 -many jsp files
 -WEB-INF/
 --web.xml
 --classes/
 --lib/
 
 my application is under $CATALINA_HOME/webapps/ROOT
 
 I put my extern class, CreaServizio.class in WEB-INF/classes/ is it
 
 
 right?
 
 
 do i have to create a package for that class?
 or do i have to use an explicit import instruction?
 
 It returns me an error
 cannot resolve symbol symbol  : variable CreaServizio
 
 CreaServizio is a class
 
 Angelo
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential business
 
 
 communication, and may contain information that is confidential, proprietary
 and/or privileged.  This e-mail is intended only for the individual(s) to whom
 it is addressed, and may not be saved, copied, printed, disclosed or used by
 anyone else.  If you are not the(an) intended recipient, please immediately
 delete this e-mail from your computer system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 


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




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



IIS, Tomcat 5, Win2K issue

2004-06-17 Thread Ellis, Greg
I am having an issue with connecting Tomcat to IIS 5. I am trying to use the
isapi_redirector2.dll. Everything appears to be installed correctly, I am
getting a green arrow. Tomcat works fine when accessed with the standalone
connector. However, when trying to request the tomcat example context
through IIS, I get a Cannot find server or DNS error message. If the
redirector isn't installed I get Page not found.

The only issue I can think of is that this server has two network cards and
three IP's assigned to it. My question is, should I bind the AJP connector
to a particular address or leave it localhost. Currently it shows up this
way in the stdout.log:

Jun 17, 2004 11:53:00 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Jun 17, 2004 11:53:00 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/32  config=C:\Tomcat5\conf\jk2.properties

My worker properties files uses this..

[shm:] 
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers 
file=C:\Tomcat5\temp\jk2.shm 
size=1048576 

[channel.socket:localhost:8009] 
info=Ajp13 forwarding over socket 
tomcatId=localhost:8009 

# Map webapps to the Web server uri space 
[uri:/jsp-examples/*]
[uri:/servlets-examples/*]


Any help would be greatly appreciated.

Greg

The information contained in this email message is intended only for use of the 
individual or entity named above.  If the reader of this message is not the intended 
recipient, or the employee or agent responsible to deliver it to the intended 
recipient, you are hereby notified that any dissemination, distribution or copying of 
this communication is strictly prohibited.  If you have received this communication in 
error, please immediately notify us by email ([EMAIL PROTECTED]), and destroy the 
original message.  Thank you.


RE: DBCP pooling error

2004-06-17 Thread Bliesner, Christopher P
Still having trouble with getting the DBCP working with Oracle.  I have
seemingly followed the link below but I am still getting that NULL error
below.  Any ideas?

 

Chris Bliesner

Lead Oracle DBA/Unix admin

Wk Phone 915-834-1757

 

-Original Message-
From: David Short [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 16, 2004 2:52 PM
To: Bliesner, Christopher P
Subject: RE: DBCP pooling error

 

Try this:

 

Web.xml

 

resource-ref

res-ref-namejdbc/paso2d/res-ref-name

res-typejavax.sql.DataSource/res-type

res-authContainer/res-auth

/resource-ref

 

Check this link out:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples
-howto.html

-Original Message-
From: Bliesner, Christopher P [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 12:46 PM
To: [EMAIL PROTECTED]
Subject: RE: DBCP pooling error

Well...good news is were getting a new error:

 

Name paso2d is not bound in this Context

 

Chris Bliesner

Lead Oracle DBA/Unix admin

Wk Phone 915-834-1757

 

-Original Message-
From: David Short [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 16, 2004 12:52 PM
To: Bliesner, Christopher P
Subject: RE: DBCP pooling error

 

Try this:

 

DataSource ds = (DataSource)
initContext.lookup(java:comp/env/jdbc/paso2d); 

 

 

-Original Message-
From: Bliesner, Christopher P [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 11:45 AM
To: [EMAIL PROTECTED]
Subject: RE: DBCP pooling error

Shouldn't need the Factory Tyrex stuff for the 4.12 version but didn't
work anyway...but here is what the logs are saying in Catalina.out:

 

Cannot load JDBC driver class 'null'

java.lang.NullPointerException

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:115)

at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource
.java:523)

at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.ja
va:312)

at org.apache.jsp.JDBCTest_jsp._jspService(JDBCTest_jsp.java:57)

at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:204)

at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)

at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:260)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)

at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:471)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at org.apache.catalina.core.StandardContext.invoke(St

 

Chris Bliesner

Lead Oracle DBA/Unix admin

Wk Phone 915-834-1757

 

 



Tomcat RPMs and database pools - no joy

2004-06-17 Thread Graham Leggett
Hi all,
I have a war that connects to a database pool defined in a Resource 
section within server.xml. This war is run in a tomcat v5.0.19 
environment as binary released by the jakarta project, and works 100%.

I now want to deploy the war inside a jpackage RPM version of tomcat on 
my production server, and use the identical configurations for the 
Resource section and war, but an attempt to start the application fails 
like so:

javax.servlet.ServletException: Error initialising 
za.co.fma.patricia.struts.PatriciaPlugin with configuration file at 
'/usr/share/tomcat5/webapps/patricia/WEB-INF/torque.properties': 
za.co.fma.patricia.PatriciaException: org.apache.torque.TorqueException: 
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC
driver of class '' for connect URL 'null', cause: No suitable driver

I tried the v5.0.24 RPM, and the same results were evident.
Googling for the above shows lots of questions, but no definitive 
answers. Usually the problem goes away when the person with the problem 
goes over the config. In my case I know my config works, because my test 
environment is 100% functional. I am trying to work out what could be 
different between my test environment and the final tomcat RPM file.

I have checked that the Postgresql driver is placed in common/lib in 
both the test environment and the RPM environment.

In order for tomcat to install at all, I have forced it to ignore the 
following three dependancies, as (to my knowledge) they are are included 
in Sun's JDK v1.4.2 (and jpackage provides no compatibility packages to 
fake these dependancies for JDK v1.4.x):

- [javamail].jar (is there already courtesy of Redhat supplied package, 
but jpackage cannot find it)

- [jdbc-stdext].jar (part of v1.4.2, not present in Jakarta's official 
tomcat release)

- [jndi].jar (part of v1.4.2, not present in Jakarta's official tomcat 
release)

Has anybody got database pools and the tomcat5 RPM to work properly 
together, and was there anything you needed to do over and above the 
normal Resource configuration?

The config for server.xml looks like this:
  !-- Global JNDI resources --
  GlobalNamingResources
Resource name=jdbc/GlobalPatricia auth=Container
  type=javax.sql.DataSource/
ResourceParams name=jdbc/GlobalPatricia
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
namedriverClassName/name
valueorg.postgresql.Driver/value
  /parameter
  parameter
nameurl/name
valuejdbc:postgresql://127.0.0.1:5432/patricia/value
  /parameter
  parameter
nameusername/name
valuexxx/value
  /parameter
  parameter
namepassword/name
valuexxx/value
  /parameter
  parameter
namemaxActive/name
value20/value
  /parameter
  parameter
namemaxIdle/name
value10/value
  /parameter
  parameter
namemaxWait/name
value-1/value
  /parameter
/ResourceParams
  /GlobalNamingResources
The config for warfile.xml looks like this:
Context path=/patricia docBase=patricia 
  Valve className=org.apache.catalina.valves.RemoteAddrValve
allow=127.0.0.1/
  Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_patricia_log. suffix=.txt
  timestamp=true/
  ResourceLink name=jdbc/GlobalPatricia global=jdbc/GlobalPatricia 
type=javax.sql.DataSource/

  Realm className=org.apache.catalina.realm.DataSourceRealm debug=0
dataSourceName=jdbc/GlobalPatricia
userTable=person userNameCol=uid userCredCol=user_password
userRoleTable=company_person roleNameCol=serial/
/Context
Can anyone shed some light?
Regards,
Graham
--
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: question

2004-06-17 Thread Giuseppe Briotti
 
 Hi
 
 I'm sorry but i don't understand.
 
 may someone explain it?
 I want to know the procedure of making an application running, 
 please
 
 Angelo
 
  http://cymulacrum.net/writings/tomcat5/book1.html

Hi Angelo, 
the chapter 4 of Pascal's book is exactly what you need...

Check the howto about deploying (and running) application at 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html


G

--

Giuseppe Briotti
[EMAIL PROTECTED]

Alme Sol, curru nitido diem qui 
promis et celas aliusque et idem 
nasceris, possis nihil urbe Roma 
visere maius.
 (Orazio)



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



RE: question

2004-06-17 Thread Robert Harper
Did you set up the web.xml file in your application area to direct the browser
to your application? If you are using a servlet, then you should have something
like the following in the  web.xml file in your application's WEB-INF directory.
?xml version=1.0 encoding=ISO-8859-1?
!--
This xml doc is for configuration of my web app
--

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

web-app

display-nameMy display name for Tomcat Manager/display-name
description
  Some sort of description
/description

!-- Define your servlets that are included your application --

servlet
servlet-nameMyServlet/servlet-name
servlet-classmy.package.com.MyServlet/servlet-class
/servlet
servlet-mapping
servlet-nameMyServlet/servlet-name
url-pattern/servlet/MyServlet/url-pattern
/servlet-mapping
/web-app

Now that that is set up, you may use the Tomcat administrator to add your app to
the known contexts in Tomcat. After that has been done, try pointing your browse
to http://localhost:8080/myapp/servlet/MyServlet and see what you get. Look at
the servlet-examples tree for more detail and samples. That is why they are
included in the installation.

Robert S. Harper
801.265.8800 ex. 255

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 17, 2004 10:18 AM
 To: tomcat-user
 Subject: Re: question
 
 Hi
 
 I'm sorry but i don't understand.
 
 may someone explain it?
 
 I want to know the procedure of making an application running, please
 
 
 Angelo
 
 
 
  Hi Angelo,
 
  Please read my write-up on Tomcat 5 here :
  http://cymulacrum.net/writings/tomcat5/book1.html
 
  I am currently updating the document, but what you need now is right there.
 
 
  Regards,
  pascal chong
 
 
 
  [EMAIL PROTECTED] wrote:
 
 
  I put my web application under webapps...
  (moved the entire subtree of my application)
  now what do i do to have it running?
  
  How do i connect to it?
  
  Angelo
  
  
  
  
  
  Hi,
  Didn't we discuss this last week? ;)  Anyways, don't put your webapp
  under webapps/ROOT: put it under the webapps folder itself.
  
 
  Put all your classes in packages to establish a good habit.
  
  Use explicit imports for your classes unless they're in the same package
  as the class using the imports.
  
  
  Yoav Shapira
  Millennium Research Informatics
  
  
  
  
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, June 16, 2004 10:39 AM
  To: tomcat-user
  Subject: question
  
  Question, please.
  
  I have a web application... named matrici/web
  
  
  so i have a tree like this
  
  matrici/web/
  -many jsp files
  -WEB-INF/
  --web.xml
  --classes/
 
  --lib/
  
  my application is under $CATALINA_HOME/webapps/ROOT
  
  I put my extern class, CreaServizio.class in WEB-INF/classes/ is it
  
  
  right?
  
  
  do i have to create a package for that class?
  or do i have to use an explicit import instruction?
  
  It returns me an error
  cannot resolve symbol symbol  : variable CreaServizio
  
  CreaServizio is a class
  
  Angelo
  
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
  This e-mail, including any attachments, is a confidential business
  
  
  communication, and may contain information that is confidential,
 proprietary
  and/or privileged.  This e-mail is intended only for the individual(s) to
 whom
  it is addressed, and may not be saved, copied, printed, disclosed or used
 by
  anyone else.  If you are not the(an) intended recipient, please immediately
  delete this e-mail from your computer system and notify the sender.  Thank
 you.
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
 
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  
  
  
  
  
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 




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



Tomcat 5 Database Connections

2004-06-17 Thread Jeff Sexton
This is part question and part observation regarding database
connectivity under Tomcat (5.0.24).
My application normally runs in production at my company on a
Tomcat 4.0.4 server.  The applications includes Cocoon and access
to several databases (Sybase) via both Tomcat connections from
servlets and from Cocoon XSP pages.  I've been at this for awhile
now and I'm a huge fan of Tomcat (and Cocoon).
On a new test server I setup Tomcat 5.0.24 and installed my
applications.  For sometime I thought all was well because
most of my stuff is Cocoon driven, and it's fine, including
database connectivity.
This week I realized that my servlets are getting:
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class ''
for connect URL 'null', cause: null
I've spent several days now trying to fix this.  I've read verious posts
from this list's archive, and several other places.  I've studied
many examples, and done google after google on it.
My conclusion is that for whatever reason *a lot* of people have
this trouble with TC 5x.  However there are very few solutions.
Yes, my jdbc jar file is in common/lib (and WEB-INF/lib, both).
Yes, I've tried declarations in GlobalNamingResources and in the apps
context, either.  Yes web.xml contains a resource-ref with the
same res-ref-name.  The only thing I have not done is to create
a META-INF/context.xml (is defining these resources in server.xml
simply broken?).
I'm dead stopped on this - yet I have no trouble at all with Tomcat
4.0.4.
It seems like some people do get this to work.  It seems like many,
many people do not.  Is there a bug at play in all this?
Here's my question - Why is it so hard?
--
The ODS Companies
Jeff Sexton
Information Services
(503) 228-6554   x1026
http://www.odscompanies.com
This message is intended for the sole use of the individual and entity
to whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law. If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose
or distribute to anyone the message or any information contained in the
message. If you have received this message in error, please immediately
advise the sender by reply email and delete the message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Sybase and Tomcat 5, Possible Problem

2004-06-17 Thread Jeff Sexton
After a lot of effort, I feel there may be some reason that the Sybase
JConnect JDBC driver doesn't work in Tomcat 5.0.24 (I use Tomcat 4 for my
Sybase driven apps quite a bit).
The exception is:
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null', cause: null
META-INF/context.xml is:
   Context path=/forteCommon docBase=forteCommon reloadable=true
   ResourceLink name=jdbc/odsdb03 global=jdbc/odsdb03
 type=javax.sql.DataSource/
   /Context
 From conf/server.xml contains:
   GlobalNamingResources
 Resource name=jdbc/odsdb03
   auth=Container
   type=javax.sql.DataSource/
 ResourceParams name=jdbc/odsdb03
   parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
 nameusername/name
 valueexcalibur/value
   /parameter
   parameter
 namepassword/name
 valuemypassword/value
   /parameter
   parameter
 namedriverClassName/name
 valuecom.sybase.jdbc2.jdbc.SybDriver/value
   /parameter
parameter
  namedriverName/name
  valuejdbc:sybase:Tds:pdxax12:4100/value
/parameter
   parameter
 nameurl/name
 valuejdbc:sybase:Tds:pdxax12:4100/value
   /parameter
   parameter
 namemaxActive/name
 value5/value
   /parameter
 /ResourceParams 
   /GlobalNamingResources
web.xml contains:
web-app
 servlet
 servlet-name
 ProvCICS
 /servlet-name
 servlet-class
 com.ods.forte.cics.servlet.ProvCICS
 /servlet-class
 load-on-startup1/load-on-startup
 /servlet
 servlet-mapping
   servlet-nameProvCICS/servlet-name
   url-pattern/ProvCICS/url-pattern
 /servlet-mapping
 resource-ref
   descriptionodsdb03 Connection Pool/description
   res-ref-namejdbc/odsdb03/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
 /resource-ref
/web-app
I have also tried working with the context placed in server.xml
and with the Resource defined in the context, all combinations
yield the same behavior.
*Tomcat does actually log into the database server when it starts*
I can see it from the database side.  Therefore I know the jdbc
jar file is loaded and the connection specification correct and working.
In addition, the stack trace in catalina.out includes a point
in Sybase code:
Cannot create JDBC driver of class '' for connect URL 'null'
java.lang.NullPointerException
 at com.sybase.jdbc2.jdbc.SybDriver.acceptsURL(SybDriver.java:197)
 at java.sql.DriverManager.getDriver(DriverManager.java:249)
 at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:743)
 ...
So can I conclude that the app is actually linked to the resource?  If
so then the problem seems to be that the information required somehow
does not reach down the driver?
Ideas?
Should I rollback to TC 4x for awhile?
--
The ODS Companies
Jeff Sexton
Information Services
(503) 228-6554   x1026
http://www.odscompanies.com
This message is intended for the sole use of the individual and entity
to whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law. If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose
or distribute to anyone the message or any information contained in the
message. If you have received this message in error, please immediately
advise the sender by reply email and delete the message.
--
The ODS Companies
Jeff Sexton
Information Services
(503) 228-6554   x1026
http://www.odscompanies.com
This message is intended for the sole use of the individual and entity
to whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law. If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose
or distribute to anyone the message or any information contained in the
message. If you have received this message in error, please immediately
advise the sender by reply email and delete the message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 Database Connections

2004-06-17 Thread Graham Leggett
Jeff Sexton wrote:
This week I realized that my servlets are getting:
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class ''
for connect URL 'null', cause: null
As a test, try the binary package as provided by Jakarta for tomcat 
(unless of course you are already doing so).

In my case, the binary Jakarta supplied package v5.0.19 works, whereas 
the jpackage RPM of tomcat v5.0.19 does not. Same config.

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


HttpClient

2004-06-17 Thread Malai
Hi.,
In my web-application i'm communicating the other external server using thrier 
HttpClient Library.
Every time the Tomcat does writes a file called inbound.xml and outbound.xml in to my 
user profile folder.
I do not want to write thease files any more.But other servers JRun and Weblogic are 
not doing this.

Any idea..Please suggest me to solve this one.

Thanks.,
MALAI

Re: HttpClient

2004-06-17 Thread Tim Funk
inbound.xml and outbound.xml are probably being written in JRUN and weblogic 
too, just not the same spot.

inbound.xml and outbound.xml have nothing to do with tomcat. It must be some 
custom code.

-Tim
Malai wrote:
Hi.,
In my web-application i'm communicating the other external server using thrier 
HttpClient Library.
Every time the Tomcat does writes a file called inbound.xml and outbound.xml in to my 
user profile folder.
I do not want to write thease files any more.But other servers JRun and Weblogic are 
not doing this.
Any idea..Please suggest me to solve this one.
Thanks.,
MALAI
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 Database Connections

2004-06-17 Thread Jeff Sexton
Graham Leggett wrote:
Jeff Sexton wrote:
This week I realized that my servlets are getting:
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class ''
for connect URL 'null', cause: null

As a test, try the binary package as provided by Jakarta for tomcat 
(unless of course you are already doing so).

In my case, the binary Jakarta supplied package v5.0.19 works, whereas 
the jpackage RPM of tomcat v5.0.19 does not. Same config.
Wierd.
I'm working with the binary for 5.0.24.  Maybe I should try 5.0.19.
One thing I did not mention is that I am doing this on AIX, but that
doesn't seem like a factor (?).  Whatever's going wrong *seems* to
all be in the Tomcat world.
--
The ODS Companies
Jeff Sexton
Information Services
(503) 228-6554   x1026
http://www.odscompanies.com
This message is intended for the sole use of the individual and entity
to whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law. If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose
or distribute to anyone the message or any information contained in the
message. If you have received this message in error, please immediately
advise the sender by reply email and delete the message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Jasper2 fork

2004-06-17 Thread Carl Olivier
Greetings.

Quick question re the jasper2 (org.apache.jasper.servlet.JspServlet) fork
init param.

The default of the fork setting is true, however the Tomcat 5 binary (and I
think source) distribution ships with this init-param set to false.

Now the reason I am curious about this shipping with this overridden to
false is that I have innumerable memory problems - up until I was pointed in
setting the fork init param to true.  This *seems* to have solved pretty
much all my problems!

Is there some reason NOT to use this fork setting?

Thanks a stack to those that assisted me!  Very much appreciated!

Regards,

Carl

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



Re: Tomcat 5 Database Connections

2004-06-17 Thread Graham Leggett
Jeff Sexton wrote:
I'm working with the binary for 5.0.24.  Maybe I should try 5.0.19.
I tried the v5.0.24 RPM, and then downgraded it to v5.0.19 to be the 
same as our development version, which is the binary v5.0.19.

One thing I did not mention is that I am doing this on AIX, but that
doesn't seem like a factor (?).  Whatever's going wrong *seems* to
all be in the Tomcat world.
I think it's definitely tomcat - my environment is Postgresql on Redhat 
Enterprise and am getting the same thing.

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


tomcat5, apache2, mod_jk2 and mod_userdir

2004-06-17 Thread Renaldo VonTeknika
I don't seem to be able to get tomcat5, apache2, mod_jk2 and mod_userdir 
working together entirely. Everything works fine for the most part as 
users can serve jsp pages from their directories and tomcat recognizes 
each of their contexts. But I cannot get  the uri 
host/~user/servlet/HelloWorld passed to tomcat with 2 wildcards (*).

Here is an example of what the problem is using workers2.properties;
If I try to do what I think should work;
[uri:/~*/servlet/*]
info=UserDir worker=ajp13:localhost:8009
It will not pass to tomcat and I recieve an apache 404 error instead of 
the servlet defined by the invoker (or a tomcat 404 error if the invoker 
didn't exist)

If I try;
[uri:/~user/servlet/*]
info=UserDir worker=ajp13:localhost:8009
or
[uri:/~*/servlet/HelloWorld]
info=UserDir worker=ajp13:localhost:8009
It has no problem and everything works as it should, but it seems as 
thou it cannot deal with 2 wildcards if one is trailing the uri

Anybody have any ideas or know what I am doing wrong?
-RV

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


Re: Tomcat 5 Database Connections

2004-06-17 Thread Jeff Sexton
Graham Leggett wrote:
I think it's definitely tomcat - my environment is Postgresql on Redhat 
Enterprise and am getting the same thing.
Dang, that's not good...  I really like other things about the recent
releases.
But I have to agree.  I just changed my java to call for a bogus resource
name.  The exception changed to no such resource in the context exactly as
expected.
So that's that.  The server is connecting the database, and the app is
looking up and finding the resource.  But somehow the information needed
to create the connection doesn't get through.
Could there even be a work around?  I mean other than re-writing my
java to connect to the database on its own...
--
The ODS Companies
Jeff Sexton
Information Services
(503) 228-6554   x1026
http://www.odscompanies.com
This message is intended for the sole use of the individual and entity
to whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law. If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose
or distribute to anyone the message or any information contained in the
message. If you have received this message in error, please immediately
advise the sender by reply email and delete the message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Deploying problem with ant and the manager application

2004-06-17 Thread Johan Bång
Hi
I'm trying to deploy a application using ANT but I don't get it to work.
I know that I'm doing som general error here, but since it's my first 
build.xml script I just couldn't figure it out.

My install task looks something like this:
target name=list
  description=List installed applications on servelet 
container.

listurl=${manager.url}
username=${manager.username}
password=${manager.password}
/
  /target
And I get the following error:
BUILD FAILED
file:/home/johan/development/javaxptest/build.xml:183: 
java.io.FileNotFoundException: 
jar:file:/home/johan/development/javaxptest/dist/xptest.war (No such 
file or directory)

But my script have created a xptest.war file in the directory so I 
don't know whats wrong.

Is it a permission error or what have I missed?
Please help
Regards, Johan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat 4.1.30 does not respect Date header

2004-06-17 Thread Chris Rossi
Hello.  I am using Tomcat 4.1.30, with java 1.4.2 on a Readhat linux 
server.  I was going to submit a bug report, but I noticed the bug 
tracker only goes through version 4.1.9.  Is that bug tracker still 
being used?  Should I still submit bugs to it?

Anyway, I am implementing an HTTP Cache filter using the Java Servlet 
Filter API.  The HTTP spec (ftp:/ftp://ftp.isi.edu/in-notes/rfc2616.txt)
requires that a cached response set the Date response header to the 
date/time that the response was generated.  In my servlet filter I 
accomplish this by calling:

  response.setDateHeader( Date, timestamp );
When I look at the actual HTTP generated response I'm finding that my 
attempt to set the Date header is being ignored and the date of the 
header always reflects the time now.  So when my filter returns a 
cached response to the request, the Date header does not reflect the 
time the cached response was created and my code ends up violating the 
HTTP spec and breaks the manner in which the client should be 
calculating the freshness of the requested resource.

This behavior is correct the majority of the time, however, there are 
cases, like this one, where the programmer needs to explicitly set the 
Date header.  Do the developers agree with me that this is a bug, or am 
I wrong somewhere in my reasoning?  Please let me know.

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


Re: Anyone have the complied mod_jk for AIX 4.3.3???

2004-06-17 Thread David Goldschmidt
I've successfully built Apache 2.0.49 (with SSL) and Tomcat 4.1.30 on 
AIX 5.1 -- and nobody on this list responded when I asked if anyone had 
a binary already built, so you may be on your own with AIX  :-)

If you haven't already done so, check out the following URL:
  http://www.apache.org/~trawick/tomcataix.html
This helped quite a bit.
DaveG
Robert T Donnelly wrote:



 Hello,  we are running Apache 1.3.19.3 and Tomcat 3.2.4 on AIX 4.3.3.  We
 are have trouble compiling the mod_jk and were wondering if anyone 
already
 has this compiled and can send the file??  Thanks!

 -Bob


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




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


Classpath problems on Tomcat

2004-06-17 Thread Worley Brent - bworle
From what I understand about Tomcat all of my application specific classes
and libs are picked up after the bootstrap and system libs are grabbed.
However, we are running into this problem:

We have a package defined and several classes within this package.  When we
compile the source files they compile without problem (we set the classpath
to WEB-INF/classes to make sure everything is picked up).  However, at
run-time, we get a NoClassDefFoundError on some of the classes package (but
not all). 

The directory structure I have is as follows:

WEB-INF /

  classes / 

search /
dbBean /
la /

  lib /

  ... (others, but not important)

It is in the search package we are having this issue.

Is there any other settings Tomcat needs to be able to correctly set the
classpath to include these packages?

Thanks,
Brent


**
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.


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



Re: JK2: lb_factor

2004-06-17 Thread Michael Echerer
I measured similar effects using The Grinder.
Under maximum load with long running requests it can be even that worse 
that one Apache 2.x (default compile: prefork) with 2 Tomcats 
5.x/mod_jk2 only distributes to the first Tomcat at all.
This is true as long as Apache runs out of MaxClients because of the 
concurrent requests. Then, for some reason, Apache starts to distribute 
also some load to the second Apache.
So it might help if you lower MaxClients (this seems the only thing that 
has an direct effect, not lb_factor, not ajp13 threads or anything else) 
to force this earlier, but be aware that this might produce errors if 
you get much more requests that then can't be queued anymore.

I suppose Apache prefork and worker communication via shared memory by 
mod_jk2 don't work well together, or the don't work at all for true 
round robin. Putting more than 2 Tomcats won't help with high load. I 
once had 10 Tomcats, but in the end only the first few got most of the 
load, Tomcat No 7-10 almost nothing.

I also heard that Apache MPM may help, but didn't try yet. So either I 
forget something in my config, I have to use MPM (although nothing is 
really mentioned about those issues in the docu), or mod_jk2 is really 
not too good in this area.

Last advice: If you have that option to use a hardware router than I'd 
suggest to use more Apaches with only one Tomcat behind each of them. 
This will definitely work best as those routers do a true round robin.

Ralph Einfeldt wrote:
The quality of the distribution depends on the worker type 
of apache. (AFAIK only the 'worker' MPM will work)

Nevertheless AFAIK the load balancing in mod_jk is not 
complete in this area, so I'm not shure if you will get 
the desired distribution (but it should be closer).


-Original Message-
From: Weseloh, Nicole [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 11:48 AM
To: [EMAIL PROTECTED]
Subject: JK2: lb_factor
I've got a cluster with 2 tomcat 2.0.25 on different 
machines, on one of them also running Apache 2.0.49 with JK2 
as a loadbalancer. Requests get redirected to both tomcat instances, 
but it always ends up with around 1/3 of all requests at the local 
server and about 2/3 at the remote one, no matter what value the 
lb_factors are.

So, could anyone tell me which values I should use to make 
the lb_factor work correctly? All information I found was that 
a lower value means more requests (official JK2-documentation 
at jakarta.apache.org). 



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

--
Dipl.-Inf. (FH) Michael Echerer
TNG Technology Consulting GmbH, http://www.tngtech.com
Betastr. 13a, 85774 Unterföhring bei München,
Tel. +49 89 2158996-0, Fax. +49 89 2158996-9, Mobile +49 176 20088854
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


please...

2004-06-17 Thread ryan deneveu
Please take me off this list. I am not very computer literate and my email is being 
accosted with things that do not pertain to me. I realize that this is all my fault 
but would like to stop receiving all of these emails from the mailing list. I am 
simply a rep for acs, international that would like to be able to view her leads 
online like I was able to a couple of days ago. Sorry about the inconvenience. 
Sincerely,


ryan deneveu
[EMAIL PROTECTED]
Why Wait? Move to EarthLink.

RE: DBCP pooling error

2004-06-17 Thread Hans Wichman
Hi,
there are 4 parts to this,
a pool definition in your server.xml
a resource ref in your web.xml
a snippet of java code to get the datasource.
a bunch of drivers (probably something like classes12.jar)
Did you specify the first three of them and included the last one?
grtz
Hans
At 11:23 AM 6/17/2004 -0500, you wrote:
Still having trouble with getting the DBCP working with Oracle.  I have
seemingly followed the link below but I am still getting that NULL error
below.  Any ideas?

Chris Bliesner
Lead Oracle DBA/Unix admin
Wk Phone 915-834-1757

-Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 2:52 PM
To: Bliesner, Christopher P
Subject: RE: DBCP pooling error

Try this:

Web.xml

resource-ref
res-ref-namejdbc/paso2d/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref

Check this link out:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples
-howto.html
-Original Message-
From: Bliesner, Christopher P [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 12:46 PM
To: [EMAIL PROTECTED]
Subject: RE: DBCP pooling error
Well...good news is were getting a new error:

Name paso2d is not bound in this Context

Chris Bliesner
Lead Oracle DBA/Unix admin
Wk Phone 915-834-1757

-Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 12:52 PM
To: Bliesner, Christopher P
Subject: RE: DBCP pooling error

Try this:

DataSource ds = (DataSource)
initContext.lookup(java:comp/env/jdbc/paso2d);


-Original Message-
From: Bliesner, Christopher P [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 11:45 AM
To: [EMAIL PROTECTED]
Subject: RE: DBCP pooling error
Shouldn't need the Factory Tyrex stuff for the 4.12 version but didn't
work anyway...but here is what the logs are saying in Catalina.out:

Cannot load JDBC driver class 'null'
java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource
.java:523)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.ja
va:312)
at org.apache.jsp.JDBCTest_jsp._jspService(JDBCTest_jsp.java:57)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:204)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:471)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(St

Chris Bliesner
Lead Oracle DBA/Unix admin
Wk Phone 915-834-1757



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


RE: DBCP pooling error

2004-06-17 Thread Bliesner, Christopher P
Hi Hans, yes seems like I've got all the I's dotted and the t's
crossed...but still can't get the damn thing to load...I've got all the
Jars in the tomcat/common/lib and in the classpath and the following are
my 3 files.  Let me know if you see anything I may have missed:

Server.xml:

!-- Define the top level container in our container hierarchy --
Engine name=Standalone defaultHost=epdata02.elps.bna.boeing.com
debug=0

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

  Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_DBTest_log. suffix=.txt
 timestamp=true/

   Resource name=jdbc/paso2d auth=Container
 type=javax.sql.DataSource/
   ResourceParams name=jdbc/paso2d
  parameter
 namedriverClassName/name
 valueoracle.jdbc.driver.OracleDriver/value
  /parameter
parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

  parameter
 nameurl/name
 
valuejdbc:oracle:thin:[EMAIL PROTECTED]:1521:paso2d/value
  /parameter
  parameter
 nameusername/name
 valuetracks_adm/value
  /parameter
  parameter
 namepassword/name
 valueeporaadm/value
  /parameter
  parameter
 namemaxActive/name
 value20/value
  /parameter
  parameter
 namemaxIdle/name
 value3/value

Web.xml:

resource-ref
  res-ref-namejdbc/paso2d/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
/resource-ref

Java code:

# cat JDBCTest.jsp
html
  head
%@ page errorPage=errorpg.jsp
 import=java.sql.*,
 javax.sql.*,
 oracle.jdbc.*,
 java.io.*,
 javax.naming.InitialContext,
 javax.servlet.*,
 javax.servlet.http.*,
 java.util.*,
 javax.naming.Context %


   /head
   body
 h1JDBC JNDI Resource Test/h1

 %
 Context initContext = new InitialContext();
 Context envContext  =
(Context)initContext.lookup(java:/comp/env);
 DataSource ds = (DataSource) envContext.lookup(jdbc/paso2d); 
 Connection  conn = ds.getConnection(); 
 Statement stmt = conn.createStatement();
 ResultSet rset = stmt.executeQuery(select * from employee_info;);
 %
 table width='600' border='1'
   tr
 th align='left'bems_id/th
 th align='left'last_name/th
   /tr
 %
 while  (rset.next()) {
 %
   trtd %= rset.getString(1)  %/td
 td %= rset.getString(2)  %/td
   /tr
 %   }
 conn.close();
 initContext.close();
 %
   /table
  /body
/html

Chris Bliesner
Lead Oracle DBA/Unix admin
Wk Phone 915-834-1757


-Original Message-
From: Hans Wichman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 17, 2004 1:14 PM
To: Tomcat Users List
Subject: RE: DBCP pooling error

Hi,
there are 4 parts to this,
a pool definition in your server.xml
a resource ref in your web.xml
a snippet of java code to get the datasource.
a bunch of drivers (probably something like classes12.jar)

Did you specify the first three of them and included the last one?

grtz
Hans

At 11:23 AM 6/17/2004 -0500, you wrote:
Still having trouble with getting the DBCP working with Oracle.  I have
seemingly followed the link below but I am still getting that NULL
error
below.  Any ideas?



Chris Bliesner

Lead Oracle DBA/Unix admin

Wk Phone 915-834-1757



-Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 2:52 PM
To: Bliesner, Christopher P
Subject: RE: DBCP pooling error



Try this:



Web.xml



resource-ref

 res-ref-namejdbc/paso2d/res-ref-name

 res-typejavax.sql.DataSource/res-type

 res-authContainer/res-auth

/resource-ref



Check this link out:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-example
s
-howto.html

-Original Message-
From: Bliesner, Christopher P
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 12:46 PM
To: [EMAIL PROTECTED]
Subject: RE: DBCP pooling error

Well...good news is were getting a new error:



Name paso2d is not bound in this Context



Chris Bliesner

Lead Oracle DBA/Unix admin

Wk Phone 915-834-1757



-Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 12:52 PM
To: Bliesner, Christopher P
Subject: RE: DBCP pooling error



Try this:



DataSource ds = (DataSource)
initContext.lookup(java:comp/env/jdbc/paso2d);





-Original Message-
From: Bliesner, Christopher P
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 11:45 AM
To: [EMAIL PROTECTED]
Subject: RE: DBCP pooling error

Shouldn't 

RE: DBCP pooling error

2004-06-17 Thread Hans Wichman
Hmm,
the only thing might be that you can leave out tracks_adm from 
valuejdbc:oracle:thin:[EMAIL PROTECTED]:1521:paso2d/value
And if you do the lookup though:
Context ctx = new InitialContext();
Object datasource = 
ctx.lookup(java:/comp/env/jdbc/paso2d);
?
Greetz
Hans

ps and part of your server.xml was missing, but i assume you didn't paste 
all of it (the closing tags etc)

At 02:22 PM 6/17/2004 -0500, you wrote:
Hi Hans, yes seems like I've got all the I's dotted and the t's
crossed...but still can't get the damn thing to load...I've got all the
Jars in the tomcat/common/lib and in the classpath and the following are
my 3 files.  Let me know if you see anything I may have missed:
Server.xml:
!-- Define the top level container in our container hierarchy --
Engine name=Standalone defaultHost=epdata02.elps.bna.boeing.com
debug=0
   Context path=/examples docBase=examples
debug=5 reloadable=true crossContext=true
  Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_DBTest_log. suffix=.txt
 timestamp=true/
   Resource name=jdbc/paso2d auth=Container
 type=javax.sql.DataSource/
   ResourceParams name=jdbc/paso2d
  parameter
 namedriverClassName/name
 valueoracle.jdbc.driver.OracleDriver/value
  /parameter
parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
  parameter
 nameurl/name
valuejdbc:oracle:thin:[EMAIL PROTECTED]:1521:paso2d/value
  /parameter
  parameter
 nameusername/name
 valuetracks_adm/value
  /parameter
  parameter
 namepassword/name
 valueeporaadm/value
  /parameter
  parameter
 namemaxActive/name
 value20/value
  /parameter
  parameter
 namemaxIdle/name
 value3/value
Web.xml:
resource-ref
  res-ref-namejdbc/paso2d/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
/resource-ref
Java code:
# cat JDBCTest.jsp
%@ page errorPage=errorpg.jsp import=java.sql.*, javax.sql.*, 
oracle.jdbc.*, java.io.*, javax.naming.InitialContext, javax.servlet.*, 
javax.servlet.http.*, java.util.*, javax.naming.Context %

JDBC JNDI Resource Test

% Context initContext = new InitialContext(); Context envContext = 
(Context)initContext.lookup(java:/comp/env); DataSource ds = 
(DataSource) envContext.lookup(jdbc/paso2d); Connection conn = 
ds.getConnection(); Statement stmt = conn.createStatement(); ResultSet 
rset = stmt.executeQuery(select * from employee_info;); %
bems_id last_name
% while (rset.next()) { %
%= rset.getString(1) % %= rset.getString(2) %
% } conn.close(); initContext.close(); %
Chris Bliesner
Lead Oracle DBA/Unix admin
Wk Phone 915-834-1757

-Original Message-
From: Hans Wichman [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 1:14 PM
To: Tomcat Users List
Subject: RE: DBCP pooling error
Hi,
there are 4 parts to this,
a pool definition in your server.xml
a resource ref in your web.xml
a snippet of java code to get the datasource.
a bunch of drivers (probably something like classes12.jar)
Did you specify the first three of them and included the last one?
grtz
Hans
At 11:23 AM 6/17/2004 -0500, you wrote:
Still having trouble with getting the DBCP working with Oracle.  I have
seemingly followed the link below but I am still getting that NULL
error
below.  Any ideas?



Chris Bliesner

Lead Oracle DBA/Unix admin

Wk Phone 915-834-1757



-Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 2:52 PM
To: Bliesner, Christopher P
Subject: RE: DBCP pooling error



Try this:



Web.xml



resource-ref

 res-ref-namejdbc/paso2d/res-ref-name

 res-typejavax.sql.DataSource/res-type

 res-authContainer/res-auth

/resource-ref



Check this link out:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-example
s
-howto.html

-Original Message-
From: Bliesner, Christopher P
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 12:46 PM
To: [EMAIL PROTECTED]
Subject: RE: DBCP pooling error

Well...good news is were getting a new error:



Name paso2d is not bound in this Context



Chris Bliesner

Lead Oracle DBA/Unix admin

Wk Phone 915-834-1757



-Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 12:52 PM
To: Bliesner, Christopher P
Subject: RE: DBCP pooling error



Try this:



DataSource ds = (DataSource)
initContext.lookup(java:comp/env/jdbc/paso2d);





-Original Message-
From: Bliesner, Christopher P
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 11:45 AM
To: [EMAIL PROTECTED]
Subject: RE: DBCP pooling error

Shouldn't need the Factory Tyrex stuff for 

RE: DBCP pooling error

2004-06-17 Thread Bliesner, Christopher P
I'll check those things...how is the location in the Server.xml?  Is it
in the right place?  

Chris Bliesner
Lead Oracle DBA/Unix admin
Wk Phone 915-834-1757


-Original Message-
From: Hans Wichman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 17, 2004 1:39 PM
To: Tomcat Users List
Subject: RE: DBCP pooling error

Hmm,
the only thing might be that you can leave out tracks_adm from 
valuejdbc:oracle:thin:[EMAIL PROTECTED]:1521:paso2d/value
And if you do the lookup though:
 Context ctx = new InitialContext();
 Object datasource = 
ctx.lookup(java:/comp/env/jdbc/paso2d);
?
Greetz
Hans

ps and part of your server.xml was missing, but i assume you didn't
paste 
all of it (the closing tags etc)

At 02:22 PM 6/17/2004 -0500, you wrote:
Hi Hans, yes seems like I've got all the I's dotted and the t's
crossed...but still can't get the damn thing to load...I've got all the
Jars in the tomcat/common/lib and in the classpath and the following
are
my 3 files.  Let me know if you see anything I may have missed:

Server.xml:

 !-- Define the top level container in our container hierarchy --
 Engine name=Standalone
defaultHost=epdata02.elps.bna.boeing.com
debug=0

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

   Logger className=org.apache.catalina.logger.FileLogger
  prefix=localhost_DBTest_log. suffix=.txt
  timestamp=true/

Resource name=jdbc/paso2d auth=Container
  type=javax.sql.DataSource/
ResourceParams name=jdbc/paso2d
   parameter
  namedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value
   /parameter
parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

   parameter
  nameurl/name

valuejdbc:oracle:thin:[EMAIL PROTECTED]:1521:paso2d/value
   /parameter
   parameter
  nameusername/name
  valuetracks_adm/value
   /parameter
   parameter
  namepassword/name
  valueeporaadm/value
   /parameter
   parameter
  namemaxActive/name
  value20/value
   /parameter
   parameter
  namemaxIdle/name
  value3/value

Web.xml:

 resource-ref
   res-ref-namejdbc/paso2d/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
 /resource-ref

Java code:

# cat JDBCTest.jsp
%@ page errorPage=errorpg.jsp import=java.sql.*, javax.sql.*, 
oracle.jdbc.*, java.io.*, javax.naming.InitialContext, javax.servlet.*,

javax.servlet.http.*, java.util.*, javax.naming.Context %

JDBC JNDI Resource Test



% Context initContext = new InitialContext(); Context envContext = 
(Context)initContext.lookup(java:/comp/env); DataSource ds = 
(DataSource) envContext.lookup(jdbc/paso2d); Connection conn = 
ds.getConnection(); Statement stmt = conn.createStatement(); ResultSet 
rset = stmt.executeQuery(select * from employee_info;); %
bems_id last_name
% while (rset.next()) { %
%= rset.getString(1) % %= rset.getString(2) %
% } conn.close(); initContext.close(); %
Chris Bliesner
Lead Oracle DBA/Unix admin
Wk Phone 915-834-1757


-Original Message-
From: Hans Wichman [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 1:14 PM
To: Tomcat Users List
Subject: RE: DBCP pooling error

Hi,
there are 4 parts to this,
a pool definition in your server.xml
a resource ref in your web.xml
a snippet of java code to get the datasource.
a bunch of drivers (probably something like classes12.jar)

Did you specify the first three of them and included the last one?

grtz
Hans

At 11:23 AM 6/17/2004 -0500, you wrote:
 Still having trouble with getting the DBCP working with Oracle.  I
have
 seemingly followed the link below but I am still getting that NULL
error
 below.  Any ideas?
 
 
 
 Chris Bliesner
 
 Lead Oracle DBA/Unix admin
 
 Wk Phone 915-834-1757
 
 
 
 -Original Message-
 From: David Short [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 16, 2004 2:52 PM
 To: Bliesner, Christopher P
 Subject: RE: DBCP pooling error
 
 
 
 Try this:
 
 
 
 Web.xml
 
 
 
 resource-ref
 
  res-ref-namejdbc/paso2d/res-ref-name
 
  res-typejavax.sql.DataSource/res-type
 
  res-authContainer/res-auth
 
 /resource-ref
 
 
 
 Check this link out:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-example
s
 -howto.html
 
 -Original Message-
 From: Bliesner, Christopher P
[mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 16, 2004 12:46 PM
 To: [EMAIL PROTECTED]
 Subject: RE: DBCP pooling error
 
 Well...good news is were getting a new error:
 
 
 
 Name paso2d is not bound in this Context
 
 
 
 Chris Bliesner
 
 Lead Oracle DBA/Unix admin
 
 Wk Phone 915-834-1757
 
 
 
 -Original Message-
 From: 

RE: DBCP pooling error

2004-06-17 Thread Hans Wichman
Hi,
seems to be ok, i do seem to have an additional nesting, 
engine-host-context but I do not know if it matters.
If you do a Class.forName from your jsp page, can you load the class ok?
I'm grasping at straws here as well ;-)

grtz
Hans
At 02:41 PM 6/17/2004 -0500, you wrote:
I'll check those things...how is the location in the Server.xml?  Is it
in the right place?
Chris Bliesner
Lead Oracle DBA/Unix admin
Wk Phone 915-834-1757
-Original Message-
From: Hans Wichman [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 1:39 PM
To: Tomcat Users List
Subject: RE: DBCP pooling error
Hmm,
the only thing might be that you can leave out tracks_adm from
valuejdbc:oracle:thin:[EMAIL PROTECTED]:1521:paso2d/value
And if you do the lookup though:
 Context ctx = new InitialContext();
 Object datasource =
ctx.lookup(java:/comp/env/jdbc/paso2d);
?
Greetz
Hans
ps and part of your server.xml was missing, but i assume you didn't
paste
all of it (the closing tags etc)
At 02:22 PM 6/17/2004 -0500, you wrote:
Hi Hans, yes seems like I've got all the I's dotted and the t's
crossed...but still can't get the damn thing to load...I've got all the
Jars in the tomcat/common/lib and in the classpath and the following
are
my 3 files.  Let me know if you see anything I may have missed:

Server.xml:

 !-- Define the top level container in our container hierarchy --
 Engine name=Standalone
defaultHost=epdata02.elps.bna.boeing.com
debug=0

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

   Logger className=org.apache.catalina.logger.FileLogger
  prefix=localhost_DBTest_log. suffix=.txt
  timestamp=true/

Resource name=jdbc/paso2d auth=Container
  type=javax.sql.DataSource/
ResourceParams name=jdbc/paso2d
   parameter
  namedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value
   /parameter
parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

   parameter
  nameurl/name

valuejdbc:oracle:thin:[EMAIL PROTECTED]:1521:paso2d/value
   /parameter
   parameter
  nameusername/name
  valuetracks_adm/value
   /parameter
   parameter
  namepassword/name
  valueeporaadm/value
   /parameter
   parameter
  namemaxActive/name
  value20/value
   /parameter
   parameter
  namemaxIdle/name
  value3/value

Web.xml:

 resource-ref
   res-ref-namejdbc/paso2d/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
 /resource-ref

Java code:

# cat JDBCTest.jsp
%@ page errorPage=errorpg.jsp import=java.sql.*, javax.sql.*,
oracle.jdbc.*, java.io.*, javax.naming.InitialContext, javax.servlet.*,
javax.servlet.http.*, java.util.*, javax.naming.Context %

JDBC JNDI Resource Test



% Context initContext = new InitialContext(); Context envContext =
(Context)initContext.lookup(java:/comp/env); DataSource ds =
(DataSource) envContext.lookup(jdbc/paso2d); Connection conn =
ds.getConnection(); Statement stmt = conn.createStatement(); ResultSet
rset = stmt.executeQuery(select * from employee_info;); %
bems_id last_name
% while (rset.next()) { %
%= rset.getString(1) % %= rset.getString(2) %
% } conn.close(); initContext.close(); %
Chris Bliesner
Lead Oracle DBA/Unix admin
Wk Phone 915-834-1757


-Original Message-
From: Hans Wichman [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 1:14 PM
To: Tomcat Users List
Subject: RE: DBCP pooling error

Hi,
there are 4 parts to this,
a pool definition in your server.xml
a resource ref in your web.xml
a snippet of java code to get the datasource.
a bunch of drivers (probably something like classes12.jar)

Did you specify the first three of them and included the last one?

grtz
Hans

At 11:23 AM 6/17/2004 -0500, you wrote:
 Still having trouble with getting the DBCP working with Oracle.  I
have
 seemingly followed the link below but I am still getting that NULL
error
 below.  Any ideas?
 
 
 
 Chris Bliesner
 
 Lead Oracle DBA/Unix admin
 
 Wk Phone 915-834-1757
 
 
 
 -Original Message-
 From: David Short [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 16, 2004 2:52 PM
 To: Bliesner, Christopher P
 Subject: RE: DBCP pooling error
 
 
 
 Try this:
 
 
 
 Web.xml
 
 
 
 resource-ref
 
  res-ref-namejdbc/paso2d/res-ref-name
 
  res-typejavax.sql.DataSource/res-type
 
  res-authContainer/res-auth
 
 /resource-ref
 
 
 
 Check this link out:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-example
s
 -howto.html
 
 -Original Message-
 From: Bliesner, Christopher P
[mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 16, 2004 12:46 PM
 To: [EMAIL 

Tomcat 4.1 stops responding on RH9

2004-06-17 Thread Bradley Glonka
Here goes 

Tomcat installaion on Red Hat Version 9 intermitnently stops
Responding.  I'm the Linux admin not the developer.  The developer 
swears up and down its not his application causing the problem.
In fact the same application runs on Red Hat version 8 without 
a problem.

Using: Tomcat 4.1
   j2sdk1.4.1
   Red Hat 9 
   Kernel 2.4.20-9

It appears that tomcat was installed via RPM
Version : 4.1.18  Vendor: JPackage Project
Release : le.1jpp

Can someone suggest how I can troubleshoot the problem.

Right now, I have a perl script attempting to conncet to the 
tomcat server. If the server does not reposnd in 10 seconds 
it kiils the PID and restarts the server.  Not A good solution 
and not a great work around either, I really need to track  
down the problem.

tomcat4   2859  0.0  3.0 244856 15856 ?  SJun02   0:15
/usr/java/j2sdk1.4.1/bin/java -Djava.endorsed.dirs= -classpath
/usr/java/j2sdk1.4.1/lib/tools.jar:/var/tomcat4/bin/bootstrap.jar
-Dcatalina.base=/var/tomcat4 -Dcatalina.home=/var/tomcat4
-Djava.io.tmpdir=/var/tomcat4/temp org.apache.catalina.startup.Bootstr

Thanks
Brad


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



Re: Tomcat 5 Database Connections

2004-06-17 Thread Jeff Sexton
Is the order of elements in the ResourceParams block
meaningful?  Rightly or wrongly meaningful that is...
I keep looking for some way to understand way this seems to
work for some people.
Jeff Sexton wrote:
Graham Leggett wrote:
I think it's definitely tomcat - my environment is Postgresql on 
Redhat Enterprise and am getting the same thing.

Dang, that's not good...  I really like other things about the recent
releases.
But I have to agree.  I just changed my java to call for a bogus resource
name.  The exception changed to no such resource in the context 
exactly as
expected.

So that's that.  The server is connecting the database, and the app is
looking up and finding the resource.  But somehow the information needed
to create the connection doesn't get through.
Could there even be a work around?  I mean other than re-writing my
java to connect to the database on its own...

--
The ODS Companies
Jeff Sexton
Information Services
(503) 228-6554   x1026
http://www.odscompanies.com
This message is intended for the sole use of the individual and entity
to whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law. If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose
or distribute to anyone the message or any information contained in the
message. If you have received this message in error, please immediately
advise the sender by reply email and delete the message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Connecting Tomcat and Apache

2004-06-17 Thread Graeme
Evening  all, I'm trying to connect Tomcat and Apache, I've been following this 
tutorial: http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html

In order to run the buildconf.sh I installed libtool, httpd-devel, autoconf and 
automake because I found on a site that redhat 9 users need httpd-devel, the rest are 
dependencies.

After I installed all of this and tried to run the buildconf.sh script I got this:


[EMAIL PROTECTED] root]# $CONN_SRC_HOME/jk/native/buildconf.sh
libtoolize --force --automake --copy
libtoolize: `configure.ac' does not exist
Try `libtoolize --help' for more information.
aclocal
aclocal: `configure.ac' or `configure.in' is required
automake -a --foreign -i --copy
automake: `configure.ac' or `configure.in' is required
autoconf
autoconf: no input file
[EMAIL PROTECTED] root]# 


How do I sort this out?  I'm a bit lost :(


Cheers in advance,

Graeme :)

Re: please...

2004-06-17 Thread Robert Charbonneau
On Thursday 17 June 2004 13:14, ryan deneveu wrote:
 Please take me off this list. I am not very computer literate and my email
 is being accosted with things that do not pertain to me. I realize that
 this is all my fault but would like to stop receiving all of these emails
 from the mailing list. I am simply a rep for acs, international that would
 like to be able to view her leads online like I was able to a couple of
 days ago. Sorry about the inconvenience. Sincerely,

You can unsubscribe from the mailing list by simply sending an email to:

[EMAIL PROTECTED]

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



basic authentication or not?

2004-06-17 Thread Stephen Charles Huey
In a nutshell, I'm wondering if it's better NOT to use basic
authentication.  We have over 10,000 regular users, and I think it would
be good for us to move to a more standard login page instead of that
authentication box that pops up.  My question is, would we have to
change a lot to do this?  At the moment, I'm not even sure we're using
basic authentication, and below I will outline my attempt to determine
if we're even using it...

When you type the URL to our website, it pops up an authentication box
before it shows you anything else and you must get past that to get into
the web app.  As far as I understand (the original developer is no
longer with us), we are using basic authentication with Tomcat 4. 
However, I was perusing this document to figure out where our basic
authentication is configured and it doesn't look like we have all this
stuff:

http://www.jguru.com/faq/view.jsp?EID=1131436

Notable exceptions are any security-constraint or login-config nodes
in our web.xml, and since the example on the jguru page put BASIC in the
login-config node, I'm really not sure that we're using basic
authentication (although that's still my gut feeling).  

In our server.xml, I see that both of the following are uncommented, but
I'm guessing that only the second one is being used since I don't think
we have anything (no JNDI) set up for the first one:


  Realm className=org.apache.catalina.realm.UserDatabaseRealm
  debug=0 resourceName=UserDatabase / 


  Realm className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=org.gjt.mm.mysql.Driver
  connectionURL=jdbc:mysql://127.0.0.1/mainDB connectionName=user
  connectionPassword=pass userTable=users userNameCol=Username
  userCredCol=Password userRoleTable=roles roleNameCol=Role / 


Aside the big database used by our web application, we have a small
MySQL database whose sole purpose is to authenticate users.  Would it be
just as simple to continue using that for authentication if we moved
away from this popup box authentication?  Is there any good reason to
have this authentication database outside of our main database?  Or is
this somehow protecting our web app more--making you authenticate before
you ever communicate with anything in our site (e.g. a LoginServlet or
something like that).  

I know this is long...I appreciate any feedback, though!  

Thanks,
Stephen

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



RE: DBCP pooling error

2004-06-17 Thread Bliesner, Christopher P
Well, I'm getting some new errors at least..

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 17 in the jsp file: /jsp/JDBCTest.jsp

Generated servlet error:
[javac] Compiling 1 source file

/usr/local/jakarta-tomcat-4.1.12/work/Standalone/epdata02.elps.bna.boein
g.com/examples/jsp/JDBCTest_jsp.java:58: cannot resolve symbol
symbol  : class Datasource  
location: class org.apache.jsp.JDBCTest_jsp
 Datasource ds =
(Datasource)initCtx.lookup(java:/comp/env/jdbc/paso2d);
 ^



An error occurred at line: 17 in the jsp file: /jsp/JDBCTest.jsp

Generated servlet error:
/usr/local/jakarta-tomcat-4.1.12/work/Standalone/epdata02.elps.bna.boein
g.com/examples/jsp/JDBCTest_jsp.java:58: cannot resolve symbol
symbol  : class Datasource  
location: class org.apache.jsp.JDBCTest_jsp
 Datasource ds =
(Datasource)initCtx.lookup(java:/comp/env/jdbc/paso2d);
  ^
2 errors

Chris Bliesner
Lead Oracle DBA/Unix admin
Wk Phone 915-834-1757


-Original Message-
From: Hans Wichman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 17, 2004 1:39 PM
To: Tomcat Users List
Subject: RE: DBCP pooling error

Hmm,
the only thing might be that you can leave out tracks_adm from 
valuejdbc:oracle:thin:[EMAIL PROTECTED]:1521:paso2d/value
And if you do the lookup though:
 Context ctx = new InitialContext();
 Object datasource = 
ctx.lookup(java:/comp/env/jdbc/paso2d);
?
Greetz
Hans

ps and part of your server.xml was missing, but i assume you didn't
paste 
all of it (the closing tags etc)

At 02:22 PM 6/17/2004 -0500, you wrote:
Hi Hans, yes seems like I've got all the I's dotted and the t's
crossed...but still can't get the damn thing to load...I've got all the
Jars in the tomcat/common/lib and in the classpath and the following
are
my 3 files.  Let me know if you see anything I may have missed:

Server.xml:

 !-- Define the top level container in our container hierarchy --
 Engine name=Standalone
defaultHost=epdata02.elps.bna.boeing.com
debug=0

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

   Logger className=org.apache.catalina.logger.FileLogger
  prefix=localhost_DBTest_log. suffix=.txt
  timestamp=true/

Resource name=jdbc/paso2d auth=Container
  type=javax.sql.DataSource/
ResourceParams name=jdbc/paso2d
   parameter
  namedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value
   /parameter
parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

   parameter
  nameurl/name

valuejdbc:oracle:thin:[EMAIL PROTECTED]:1521:paso2d/value
   /parameter
   parameter
  nameusername/name
  valuetracks_adm/value
   /parameter
   parameter
  namepassword/name
  valuepassword/value
   /parameter
   parameter
  namemaxActive/name
  value20/value
   /parameter
   parameter
  namemaxIdle/name
  value3/value

Web.xml:

 resource-ref
   res-ref-namejdbc/paso2d/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
 /resource-ref

Java code:

# cat JDBCTest.jsp
%@ page errorPage=errorpg.jsp import=java.sql.*, javax.sql.*, 
oracle.jdbc.*, java.io.*, javax.naming.InitialContext, javax.servlet.*,

javax.servlet.http.*, java.util.*, javax.naming.Context %

JDBC JNDI Resource Test



% Context initContext = new InitialContext(); Context envContext = 
(Context)initContext.lookup(java:/comp/env); DataSource ds = 
(DataSource) envContext.lookup(jdbc/paso2d); Connection conn = 
ds.getConnection(); Statement stmt = conn.createStatement(); ResultSet 
rset = stmt.executeQuery(select * from employee_info;); %
bems_id last_name
% while (rset.next()) { %
%= rset.getString(1) % %= rset.getString(2) %
% } conn.close(); initContext.close(); %
Chris Bliesner
Lead Oracle DBA/Unix admin
Wk Phone 915-834-1757


-Original Message-
From: Hans Wichman [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 1:14 PM
To: Tomcat Users List
Subject: RE: DBCP pooling error

Hi,
there are 4 parts to this,
a pool definition in your server.xml
a resource ref in your web.xml
a snippet of java code to get the datasource.
a bunch of drivers (probably something like classes12.jar)

Did you specify the first three of them and included the last one?

grtz
Hans

At 11:23 AM 6/17/2004 -0500, you wrote:
 Still having trouble with getting the DBCP working with Oracle.  I
have
 seemingly followed the link below but I am still getting that NULL
error
 below.  Any ideas?
 
 
 
 Chris Bliesner
 
 Lead Oracle DBA/Unix admin
 
 Wk Phone 915-834-1757
 
 
 
 -Original Message-
 

javax.servlet.jsp.tagext package

2004-06-17 Thread Michael Labhard
I have spent considerable time searching for the package  
javax.servlet.jsp.tagext on Tomcat 5 (0.26) without finding it.  Can anyone 
suggest where I might find it, please?  Thank you.

-- Michael

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



Re: Connecting Tomcat and Apache

2004-06-17 Thread David Goldschmidt
Maybe you need to cd to the $CONN_SRC_HOME/jk/native directory first? 
Then do the ./buildconf.sh command locally within that directory?

DaveG
Graeme wrote:
Evening  all, I'm trying to connect Tomcat and Apache, I've been following this 
tutorial: http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html
In order to run the buildconf.sh I installed libtool, httpd-devel, autoconf and 
automake because I found on a site that redhat 9 users need httpd-devel, the rest are 
dependencies.
After I installed all of this and tried to run the buildconf.sh script I got this:
[EMAIL PROTECTED] root]# $CONN_SRC_HOME/jk/native/buildconf.sh
libtoolize --force --automake --copy
libtoolize: `configure.ac' does not exist
Try `libtoolize --help' for more information.
aclocal
aclocal: `configure.ac' or `configure.in' is required
automake -a --foreign -i --copy
automake: `configure.ac' or `configure.in' is required
autoconf
autoconf: no input file
[EMAIL PROTECTED] root]# 

How do I sort this out?  I'm a bit lost :(
Cheers in advance,
Graeme :)

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


Re: javax.servlet.jsp.tagext package

2004-06-17 Thread Filip Hanik - Dev
in CVS module

jakarta-servletapi-5

path
/jakarta-servletapi-5/jsr152/src/share/javax/servlet/jsp/tagext

Filip

- Original Message - 
From: Michael Labhard [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 3:18 PM
Subject: javax.servlet.jsp.tagext package


 I have spent considerable time searching for the package  
 javax.servlet.jsp.tagext on Tomcat 5 (0.26) without finding it.  Can anyone 
 suggest where I might find it, please?  Thank you.
 
 -- Michael
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



Can you dynamically add a new Host element to server.xml without restarting?

2004-06-17 Thread Ivan Jouikov
Subj. says it all...  If not, is there a workaround?

-Original Message-
From: David Goldschmidt [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 17, 2004 1:27 PM
To: Tomcat Users List
Subject: Re: Connecting Tomcat and Apache

Maybe you need to cd to the $CONN_SRC_HOME/jk/native directory first? 
Then do the ./buildconf.sh command locally within that directory?

DaveG


Graeme wrote:

 Evening  all, I'm trying to connect Tomcat and Apache, I've been following this 
 tutorial: http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html
 
 In order to run the buildconf.sh I installed libtool, httpd-devel, autoconf and 
 automake because I found on a site that redhat 9 users need httpd-devel, the rest 
 are dependencies.
 
 After I installed all of this and tried to run the buildconf.sh script I got this:
 
 
 [EMAIL PROTECTED] root]# $CONN_SRC_HOME/jk/native/buildconf.sh
 libtoolize --force --automake --copy
 libtoolize: `configure.ac' does not exist
 Try `libtoolize --help' for more information.
 aclocal
 aclocal: `configure.ac' or `configure.in' is required
 automake -a --foreign -i --copy
 automake: `configure.ac' or `configure.in' is required
 autoconf
 autoconf: no input file
 [EMAIL PROTECTED] root]# 
 
 
 How do I sort this out?  I'm a bit lost :(
 
 
 Cheers in advance,
 
 Graeme :)
 



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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07.06.2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07.06.2004
 


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



Re: javax.servlet.jsp.tagext package

2004-06-17 Thread Michael Labhard
On Thursday 17 June 2004 01:31 pm, Filip Hanik - Dev wrote:
 jakarta-servletapi-5

Thank you for pointing me here.

I have built from source and the README.txt in the jakarta-servletapi-5 
directory states that a servlet.jar file should be built from the classes.  
However it isn't and the build.xml does not have a task to do this.  Is this 
a bug or how do people use these classes?

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



RE: DBCP pooling error

2004-06-17 Thread Bliesner, Christopher P
This has been fixed!  Thx for the help! Turns out the problem is the
classpath!  DBCP doesn't need one!! It gets confused!  I had everything
else right...

Chris Bliesner
Lead Oracle DBA/Unix admin
Wk Phone 915-834-1757


-Original Message-
From: Hans Wichman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 17, 2004 1:55 PM
To: Tomcat Users List
Subject: RE: DBCP pooling error

Hi,
seems to be ok, i do seem to have an additional nesting, 
engine-host-context but I do not know if it matters.
If you do a Class.forName from your jsp page, can you load the class ok?
I'm grasping at straws here as well ;-)

grtz
Hans

At 02:41 PM 6/17/2004 -0500, you wrote:
I'll check those things...how is the location in the Server.xml?  Is it
in the right place?

Chris Bliesner
Lead Oracle DBA/Unix admin
Wk Phone 915-834-1757


-Original Message-
From: Hans Wichman [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 1:39 PM
To: Tomcat Users List
Subject: RE: DBCP pooling error

Hmm,
the only thing might be that you can leave out tracks_adm from
valuejdbc:oracle:thin:[EMAIL PROTECTED]:1521:paso2d/value
And if you do the lookup though:
  Context ctx = new InitialContext();
  Object datasource =
ctx.lookup(java:/comp/env/jdbc/paso2d);
?
Greetz
Hans

ps and part of your server.xml was missing, but i assume you didn't
paste
all of it (the closing tags etc)

At 02:22 PM 6/17/2004 -0500, you wrote:
 Hi Hans, yes seems like I've got all the I's dotted and the t's
 crossed...but still can't get the damn thing to load...I've got all
the
 Jars in the tomcat/common/lib and in the classpath and the following
are
 my 3 files.  Let me know if you see anything I may have missed:
 
 Server.xml:
 
  !-- Define the top level container in our container hierarchy
--
  Engine name=Standalone
defaultHost=epdata02.elps.bna.boeing.com
 debug=0
 
 Context path=/examples docBase=examples
  debug=5 reloadable=true crossContext=true
 
Logger className=org.apache.catalina.logger.FileLogger
   prefix=localhost_DBTest_log. suffix=.txt
   timestamp=true/
 
 Resource name=jdbc/paso2d auth=Container
   type=javax.sql.DataSource/
 ResourceParams name=jdbc/paso2d
parameter
   namedriverClassName/name
   valueoracle.jdbc.driver.OracleDriver/value
/parameter
 parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 
parameter
   nameurl/name
 
 valuejdbc:oracle:thin:[EMAIL PROTECTED]:1521:paso2d/value
/parameter
parameter
   nameusername/name
   valuetracks_adm/value
/parameter
parameter
   namepassword/name
   valueeporaadm/value
/parameter
parameter
   namemaxActive/name
   value20/value
/parameter
parameter
   namemaxIdle/name
   value3/value
 
 Web.xml:
 
  resource-ref
res-ref-namejdbc/paso2d/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
  /resource-ref
 
 Java code:
 
 # cat JDBCTest.jsp
 %@ page errorPage=errorpg.jsp import=java.sql.*, javax.sql.*,
 oracle.jdbc.*, java.io.*, javax.naming.InitialContext,
javax.servlet.*,

 javax.servlet.http.*, java.util.*, javax.naming.Context %
 
 JDBC JNDI Resource Test
 
 
 
 % Context initContext = new InitialContext(); Context envContext =
 (Context)initContext.lookup(java:/comp/env); DataSource ds =
 (DataSource) envContext.lookup(jdbc/paso2d); Connection conn =
 ds.getConnection(); Statement stmt = conn.createStatement();
ResultSet
 rset = stmt.executeQuery(select * from employee_info;); %
 bems_id last_name
 % while (rset.next()) { %
 %= rset.getString(1) % %= rset.getString(2) %
 % } conn.close(); initContext.close(); %
 Chris Bliesner
 Lead Oracle DBA/Unix admin
 Wk Phone 915-834-1757
 
 
 -Original Message-
 From: Hans Wichman [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 17, 2004 1:14 PM
 To: Tomcat Users List
 Subject: RE: DBCP pooling error
 
 Hi,
 there are 4 parts to this,
 a pool definition in your server.xml
 a resource ref in your web.xml
 a snippet of java code to get the datasource.
 a bunch of drivers (probably something like classes12.jar)
 
 Did you specify the first three of them and included the last one?
 
 grtz
 Hans
 
 At 11:23 AM 6/17/2004 -0500, you wrote:
  Still having trouble with getting the DBCP working with Oracle.  I
have
  seemingly followed the link below but I am still getting that NULL
 error
  below.  Any ideas?
  
  
  
  Chris Bliesner
  
  Lead Oracle DBA/Unix admin
  
  Wk Phone 915-834-1757
  
  
  
  -Original Message-
  From: David Short [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, June 16, 2004 

Re: javax.servlet.jsp.tagext package

2004-06-17 Thread Filip Hanik - Dev
building from sources is a pain in the butt since you have to download all the 
dependencies.
unless there is a download task, I would not know :)
Building from CVS is very easy

cvs co jakarta-tomcat-5
cd jakarta-tomcat-5
(edit build.properties.default if you want to change the location of downloads for 
example)
ant update
ant download
ant dist


Filip

- Original Message - 
From: Michael Labhard [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 3:46 PM
Subject: Re: javax.servlet.jsp.tagext package


 On Thursday 17 June 2004 01:31 pm, Filip Hanik - Dev wrote:
  jakarta-servletapi-5
 
 Thank you for pointing me here.
 
 I have built from source and the README.txt in the jakarta-servletapi-5 
 directory states that a servlet.jar file should be built from the classes.  
 However it isn't and the build.xml does not have a task to do this.  Is this 
 a bug or how do people use these classes?
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: Connecting Tomcat and Apache

2004-06-17 Thread Graeme
David, thank you for your reply, it looked like it worked, would you say so?

[EMAIL PROTECTED] native]# ./buildconf.sh
libtoolize --force --automake --copy
aclocal
automake -a --foreign -i --copy
autoconf
[EMAIL PROTECTED] native]#


Thanks again,

Graeme :)

- Original Message - 
From: David Goldschmidt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 9:26 PM
Subject: Re: Connecting Tomcat and Apache


 Maybe you need to cd to the $CONN_SRC_HOME/jk/native directory first?
 Then do the ./buildconf.sh command locally within that directory?

 DaveG


 Graeme wrote:

  Evening  all, I'm trying to connect Tomcat and Apache, I've been
following this tutorial:
http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html
 
  In order to run the buildconf.sh I installed libtool, httpd-devel,
autoconf and automake because I found on a site that redhat 9 users need
httpd-devel, the rest are dependencies.
 
  After I installed all of this and tried to run the buildconf.sh script I
got this:
 
 
  [EMAIL PROTECTED] root]# $CONN_SRC_HOME/jk/native/buildconf.sh
  libtoolize --force --automake --copy
  libtoolize: `configure.ac' does not exist
  Try `libtoolize --help' for more information.
  aclocal
  aclocal: `configure.ac' or `configure.in' is required
  automake -a --foreign -i --copy
  automake: `configure.ac' or `configure.in' is required
  autoconf
  autoconf: no input file
  [EMAIL PROTECTED] root]#
 
 
  How do I sort this out?  I'm a bit lost :(
 
 
  Cheers in advance,
 
  Graeme :)
 



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



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



Re: Connecting Tomcat and Apache

2004-06-17 Thread Graeme
Hi all, when I try this command: ./configure --with-apxs=/usr/sbin/apxs

I get the following output.  How can I sort out this C compiler?


[EMAIL PROTECTED] native]# ./configure --with-apxs=/usr/sbin/apxs
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
[EMAIL PROTECTED] native]#


Cheers,

Graeme

- Original Message - 
From: David Goldschmidt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 9:26 PM
Subject: Re: Connecting Tomcat and Apache


 Maybe you need to cd to the $CONN_SRC_HOME/jk/native directory first?
 Then do the ./buildconf.sh command locally within that directory?

 DaveG


 Graeme wrote:

  Evening  all, I'm trying to connect Tomcat and Apache, I've been
following this tutorial:
http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html
 
  In order to run the buildconf.sh I installed libtool, httpd-devel,
autoconf and automake because I found on a site that redhat 9 users need
httpd-devel, the rest are dependencies.
 
  After I installed all of this and tried to run the buildconf.sh script I
got this:
 
 
  [EMAIL PROTECTED] root]# $CONN_SRC_HOME/jk/native/buildconf.sh
  libtoolize --force --automake --copy
  libtoolize: `configure.ac' does not exist
  Try `libtoolize --help' for more information.
  aclocal
  aclocal: `configure.ac' or `configure.in' is required
  automake -a --foreign -i --copy
  automake: `configure.ac' or `configure.in' is required
  autoconf
  autoconf: no input file
  [EMAIL PROTECTED] root]#
 
 
  How do I sort this out?  I'm a bit lost :(
 
 
  Cheers in advance,
 
  Graeme :)
 



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



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



Re: basic authentication or not?

2004-06-17 Thread QM
(Please, create new messages when mailing the list.  Responding to
unrelated messages causes confusion for those of us who use thread-aware
mailers.)


: In a nutshell, I'm wondering if it's better NOT to use basic
: authentication.

My understanding is that FORM vs BASIC is just that the former lets you
create a custom login page that maintains your app's look and feel.
(read: that's all *I* have used it for ;)


: At the moment, I'm not even sure we're using
: basic authentication, and below I will outline my attempt to determine
: if we're even using it...

You mention that there are no security-constraint or login-config
elements in the web.xml.  You're checking the app-specific web.xml in
WEB-INF, and not the general one in the Tomcat install dir?  (Sorry to
ask; I have to check.)

Yet, there's a Real def in server.xml?

Perhaps auth is being done elsewhere (say, the web server), hence the
Realm isn't being used, and is leftover from an earlier configuration.
Unlikely, but worth investigating.


: Aside the big database used by our web application, we have a small
: MySQL database whose sole purpose is to authenticate users.  Would it be
: just as simple to continue using that for authentication if we moved
: away from this popup box authentication?

If you move to FORM auth and use JDBCRealm, yes, you should be able to
continue using this database.  Provided, of course, the passwords are
hashed in the way JDBCRealm expects.


: Is there any good reason to
: have this authentication database outside of our main database?

One reason is load: separate auth traffic from app traffic.  This also
lets you share that single auth DB among several apps, and each app can
have its own database for its data.

-QM


-- 

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


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



Re: Tomcat 4.1 stops responding on RH9

2004-06-17 Thread QM
On Thu, Jun 17, 2004 at 03:54:08PM -0400, Bradley Glonka wrote:
: Tomcat installaion on Red Hat Version 9 intermitnently stops
: Responding.
:Kernel 2.4.20-9

RedHat's custom kernels have backported the NPTL (Native Posix Thread
Library) routines from 2.5/2.6.  Set the env var LD_KERNEL_ASSUME to
2.4 to make non-NPTL code (such as your JDK) behave.

That var may also be called LD_ASSUME_KERNEL, I forget which. ;)


: Can someone suggest how I can troubleshoot the problem.

Other than the above: are there differences between the development env
and production env, other than the OS?  Differences in RAM or JVM heap
settings can cause different GC behavior between the two. 

Furthermore, what sort of load-testing was done on the app before it
went live?

-QM

-- 

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


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



Re: basic authentication or not?

2004-06-17 Thread Filip Hanik - Dev
as long as you authenticate your users in https, to prevent the passwords from travel 
across the internet unencrypted, you can use
any method.

Filip

- Original Message -
From: QM [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 4:04 PM
Subject: Re: basic authentication or not?


 (Please, create new messages when mailing the list.  Responding to
 unrelated messages causes confusion for those of us who use thread-aware
 mailers.)


 : In a nutshell, I'm wondering if it's better NOT to use basic
 : authentication.

 My understanding is that FORM vs BASIC is just that the former lets you
 create a custom login page that maintains your app's look and feel.
 (read: that's all *I* have used it for ;)


 : At the moment, I'm not even sure we're using
 : basic authentication, and below I will outline my attempt to determine
 : if we're even using it...

 You mention that there are no security-constraint or login-config
 elements in the web.xml.  You're checking the app-specific web.xml in
 WEB-INF, and not the general one in the Tomcat install dir?  (Sorry to
 ask; I have to check.)

 Yet, there's a Real def in server.xml?

 Perhaps auth is being done elsewhere (say, the web server), hence the
 Realm isn't being used, and is leftover from an earlier configuration.
 Unlikely, but worth investigating.


 : Aside the big database used by our web application, we have a small
 : MySQL database whose sole purpose is to authenticate users.  Would it be
 : just as simple to continue using that for authentication if we moved
 : away from this popup box authentication?

 If you move to FORM auth and use JDBCRealm, yes, you should be able to
 continue using this database.  Provided, of course, the passwords are
 hashed in the way JDBCRealm expects.


 : Is there any good reason to
 : have this authentication database outside of our main database?

 One reason is load: separate auth traffic from app traffic.  This also
 lets you share that single auth DB among several apps, and each app can
 have its own database for its data.

 -QM


 --

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


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


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



mod_jk is corrupting chunked responses

2004-06-17 Thread ming fang
i've developed a servlet that streams data back to an applet using 
transfer-encoding=chunked.
everything works fine when the applet connects directly to tomcat.
but when it connects via apache/jk2, the streams is corrupted.

the servlet sets the headers like this...
httpServletResponse.setHeader(Pragma, no-cache);
httpServletResponse.setHeader(Cache-Control, no-cache);
httpServletResponse.setDateHeader(Expires, -1);
httpServletResponse.setHeader(Content-Length, null);
httpServletResponse.setHeader(Connection, close);
httpServletResponse.setHeader(Transfer-Encoding, chunked);
the response outputstream is wrapped...
bufferedOutputStream = new 
BufferedOutputStream(outputStream);
chunkedOutputStream = new ChunkedOutputStream(new 
DataOutputStream(bufferedOutputStream));
dataOutputStream = new 
DataOutputStream(chunkedOutputStream);

it seems the problem is that mod_jk is stripping the chunking headers, 
which includes the size of the chunk followed by \r\n.
does anyone know a work around for this? please help.

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


Re: who may help me to deploy web-applicaiton to defaultContext?

2004-06-17 Thread Jens Skripczynski
Hi,

a little bit more information might be usefull.
- Can you deploy your web-app to a different Context ?
- Does you web.xml file validate ?


Arsen A. Gutsal:
 I try to deploy web-applicaiton to default (ROOT) context.
 I'm using NetBeans 3.5.1 and Tomcat 4.06.
 I'm getting exception:
 SEVERE: End event threw exception
 [...] Stacktrace

Ciao

Jens Skripczynski
-- 
E-Mail: skripi-lists(at)myrealbox(dot)com

The light at the end of the tunnel 
is just the head light of the oncoming train.


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



Tomcat 5 Database Connections - from wierd to crazy

2004-06-17 Thread Jeff Sexton
I switched from TC 5 to Tomcat 4.1.30 and again copied my
(working) app again from the Tomcat 4.0.4 install.  This
time, it knew the driver but not the url.  So in server.xml
I changed one parameter
From:
parameter
  namedriverName/name
  valuejdbc:sybase:Tds:pdxax12:4100/value
/parameter !-- Works in 4.0.4 --
To:
parameter
  nameurl/name
  valuejdbc:sybase:Tds:pdxax12:4100/value
/parameter
That cured the no url exception.  However now I get this exception:
org.apache.commons.dbcp.SQLNestedException: Cannot create 
PoolableConnectionFactory, cause: JZ004: User name property missing in 
DriverManager.getConnection(..., Properties).

Here's the whole context entry from server.xml:
Context path=/forteCommon docBase=forteCommon 
reloadable=true
 Resource name=jdbc/odsdb03 auth=Container
type=javax.sql.DataSource/
  ResourceParams name=jdbc/odsdb03
parameter
  nameuser/namevalueexcalibur/value
/parameter
parameter
  namepassword/namevaluepassword/value
/parameter
parameter
  namedriverClassName/name
  valuecom.sybase.jdbc2.jdbc.SybDriver/value
/parameter
parameter
  nameurl/name
  valuejdbc:sybase:Tds:pdxax12:4100/value
/parameter
  /ResourceParams
/Context

I think I'm losing my mind.
--
The ODS Companies
Jeff Sexton
Information Services
(503) 228-6554   x1026
http://www.odscompanies.com
This message is intended for the sole use of the individual and entity
to whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law. If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose
or distribute to anyone the message or any information contained in the
message. If you have received this message in error, please immediately
advise the sender by reply email and delete the message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: log4j:WARN No appenders could be found

2004-06-17 Thread Jens Skripczynski
Tom K:
 I am using Tomcat 5.0.19 and I get the log4j:WARN No appenders could be
 found error on startup. I have a log4j-1.2.8.jar file in my apps /lib
 director. Should the log4j.properties file be in the same directory?
The log4j.properties file must be in the CLASSPATH. So I think it should
belong to the CLASSES directory in the WEB-INF dir.
  

Ciao

Jens Skripczynski
-- 
E-Mail: skripi-lists(at)myrealbox(dot)com

All generalizations are false. 
   


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



Re: Tomcat 5 Database Connections - from wierd to crazy

2004-06-17 Thread Jeff Sexton
Jeff Sexton wrote:
I switched from TC 5 to Tomcat 4.1.30 and again copied my
(working) app again from the Tomcat 4.0.4 install.  This
time, it knew the driver but not the url.  So in server.xml
I changed one parameter
From:
parameter
  namedriverName/name
  valuejdbc:sybase:Tds:pdxax12:4100/value
/parameter !-- Works in 4.0.4 --
To:
parameter
  nameurl/name
  valuejdbc:sybase:Tds:pdxax12:4100/value
/parameter
That cured the no url exception.  However now I get this exception:
org.apache.commons.dbcp.SQLNestedException: Cannot create 
PoolableConnectionFactory, cause: JZ004: User name property missing in 
DriverManager.getConnection(..., Properties).
Changing this 4.0.4 version entry
 parameter
   nameuser/namevalueexcalibur/value
 /parameter
to this:
 parameter
   nameusername/name
   valueexcalibur/value
 /parameter
Allows 4.1.30 to work perfectly!  So to sum up for now, 4.0.4 works
for my app and 4.1.3 works if I change two entries in the resource.
Still no luck with 5.0.24 though.
--
The ODS Companies
Jeff Sexton
Information Services
(503) 228-6554   x1026
http://www.odscompanies.com
This message is intended for the sole use of the individual and entity
to whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law. If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose
or distribute to anyone the message or any information contained in the
message. If you have received this message in error, please immediately
advise the sender by reply email and delete the message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: basic authentication or not?

2004-06-17 Thread Stephen Charles Huey
Duh.  I was looking in the general Tomcat web.xml--yes, in my
app-specific one, we're using BASIC authentication.  

Ok, so Tomcat knows to use the additional MySQL database for
authentication.  Right now, if you go to www.ourDomain.com it'll make
you authenticate and then it will forward you to the default web
application at www.ourDomain.com/DefaultApp/Welcome.jsp, and we have
several web apps and you can cross from one to the other without
authenticating, so you could go up and modify the URL to
www.ourDomain.com/OtherApp/index.jsp and you'd be there instantly.  

So my question is, if we changed to form-based authentication so we
could present our look and feel from the start, would it work for
authenticating all the web apps if the login page was under a particular
web app's folder?  In other words, where would and could we stick a
Login.jsp that would be presented to the user when you type
www.ourDomain.com?  

Thanks so much,
Stephen


- Original message -
From: QM [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Thu, 17 Jun 2004 16:04:21 -0500
Subject: Re: basic authentication or not?

(Please, create new messages when mailing the list.  Responding to
unrelated messages causes confusion for those of us who use thread-aware
mailers.)


: In a nutshell, I'm wondering if it's better NOT to use basic
: authentication.

My understanding is that FORM vs BASIC is just that the former lets you
create a custom login page that maintains your app's look and feel.
(read: that's all *I* have used it for ;)


: At the moment, I'm not even sure we're using
: basic authentication, and below I will outline my attempt to determine
: if we're even using it...

You mention that there are no security-constraint or login-config
elements in the web.xml.  You're checking the app-specific web.xml in
WEB-INF, and not the general one in the Tomcat install dir?  (Sorry to
ask; I have to check.)

Yet, there's a Real def in server.xml?

Perhaps auth is being done elsewhere (say, the web server), hence the
Realm isn't being used, and is leftover from an earlier configuration.
Unlikely, but worth investigating.


: Aside the big database used by our web application, we have a small
: MySQL database whose sole purpose is to authenticate users.  Would it
be
: just as simple to continue using that for authentication if we moved
: away from this popup box authentication?

If you move to FORM auth and use JDBCRealm, yes, you should be able to
continue using this database.  Provided, of course, the passwords are
hashed in the way JDBCRealm expects.


: Is there any good reason to
: have this authentication database outside of our main database?

One reason is load: separate auth traffic from app traffic.  This also
lets you share that single auth DB among several apps, and each app can
have its own database for its data.

-QM


-- 

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


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


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



Multiple Thread Pools

2004-06-17 Thread Prabhakaran Nagarajan
Is it possible in tomcat to segregate certain jsp
pages to its own thread pool/connector?  
We have certain pages that take a while to execute,
and when multiple users access the page, all threads
are used up serving those requests.  Weblogic allows
defining multiple ExecuteQueues and assigning jsp
/servlets to this queue -- you can either throttle bad
pages or ensure thread availability for critical
pages.

Is there a way in tomcat to achieve similar results? 
Or are my options limited to 1.increase the maxThreads
count 2.try and improve the performance of those pages
3.implement a poll/callback on the long running page
to prevent tying the thread up.

Thanks,
Prabhakaran.



__
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 

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



RE: DBCP pooling error

2004-06-17 Thread Bliesner, Christopher P
My mistake--It wasn't the CLASSPATH that was the problem but a semicolon
that I had in my select statement.  That was causing the dBCP to fail.
Thx all for the help! :)

Chris Bliesner
Lead Oracle DBA/Unix admin
Wk Phone 915-834-1757


-Original Message-
From: Hans Wichman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 17, 2004 1:55 PM
To: Tomcat Users List
Subject: RE: DBCP pooling error

Hi,
seems to be ok, i do seem to have an additional nesting, 
engine-host-context but I do not know if it matters.
If you do a Class.forName from your jsp page, can you load the class ok?
I'm grasping at straws here as well ;-)

grtz
Hans

At 02:41 PM 6/17/2004 -0500, you wrote:
I'll check those things...how is the location in the Server.xml?  Is it
in the right place?

Chris Bliesner
Lead Oracle DBA/Unix admin
Wk Phone 915-834-1757


-Original Message-
From: Hans Wichman [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 1:39 PM
To: Tomcat Users List
Subject: RE: DBCP pooling error

Hmm,
the only thing might be that you can leave out tracks_adm from
valuejdbc:oracle:thin:[EMAIL PROTECTED]:1521:paso2d/value
And if you do the lookup though:
  Context ctx = new InitialContext();
  Object datasource =
ctx.lookup(java:/comp/env/jdbc/paso2d);
?
Greetz
Hans

ps and part of your server.xml was missing, but i assume you didn't
paste
all of it (the closing tags etc)

At 02:22 PM 6/17/2004 -0500, you wrote:
 Hi Hans, yes seems like I've got all the I's dotted and the t's
 crossed...but still can't get the damn thing to load...I've got all
the
 Jars in the tomcat/common/lib and in the classpath and the following
are
 my 3 files.  Let me know if you see anything I may have missed:
 
 Server.xml:
 
  !-- Define the top level container in our container hierarchy
--
  Engine name=Standalone
defaultHost=epdata02.elps.bna.boeing.com
 debug=0
 
 Context path=/examples docBase=examples
  debug=5 reloadable=true crossContext=true
 
Logger className=org.apache.catalina.logger.FileLogger
   prefix=localhost_DBTest_log. suffix=.txt
   timestamp=true/
 
 Resource name=jdbc/paso2d auth=Container
   type=javax.sql.DataSource/
 ResourceParams name=jdbc/paso2d
parameter
   namedriverClassName/name
   valueoracle.jdbc.driver.OracleDriver/value
/parameter
 parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 
parameter
   nameurl/name
 
 valuejdbc:oracle:thin:[EMAIL PROTECTED]:1521:paso2d/value
/parameter
parameter
   nameusername/name
   valuetracks_adm/value
/parameter
parameter
   namepassword/name
   valueeporaadm/value
/parameter
parameter
   namemaxActive/name
   value20/value
/parameter
parameter
   namemaxIdle/name
   value3/value
 
 Web.xml:
 
  resource-ref
res-ref-namejdbc/paso2d/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
  /resource-ref
 
 Java code:
 
 # cat JDBCTest.jsp
 %@ page errorPage=errorpg.jsp import=java.sql.*, javax.sql.*,
 oracle.jdbc.*, java.io.*, javax.naming.InitialContext,
javax.servlet.*,

 javax.servlet.http.*, java.util.*, javax.naming.Context %
 
 JDBC JNDI Resource Test
 
 
 
 % Context initContext = new InitialContext(); Context envContext =
 (Context)initContext.lookup(java:/comp/env); DataSource ds =
 (DataSource) envContext.lookup(jdbc/paso2d); Connection conn =
 ds.getConnection(); Statement stmt = conn.createStatement();
ResultSet
 rset = stmt.executeQuery(select * from employee_info;); %
 bems_id last_name
 % while (rset.next()) { %
 %= rset.getString(1) % %= rset.getString(2) %
 % } conn.close(); initContext.close(); %
 Chris Bliesner
 Lead Oracle DBA/Unix admin
 Wk Phone 915-834-1757
 
 
 -Original Message-
 From: Hans Wichman [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 17, 2004 1:14 PM
 To: Tomcat Users List
 Subject: RE: DBCP pooling error
 
 Hi,
 there are 4 parts to this,
 a pool definition in your server.xml
 a resource ref in your web.xml
 a snippet of java code to get the datasource.
 a bunch of drivers (probably something like classes12.jar)
 
 Did you specify the first three of them and included the last one?
 
 grtz
 Hans
 
 At 11:23 AM 6/17/2004 -0500, you wrote:
  Still having trouble with getting the DBCP working with Oracle.  I
have
  seemingly followed the link below but I am still getting that NULL
 error
  below.  Any ideas?
  
  
  
  Chris Bliesner
  
  Lead Oracle DBA/Unix admin
  
  Wk Phone 915-834-1757
  
  
  
  -Original Message-
  From: David Short [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, 

three problems

2004-06-17 Thread Casas, Claudia
Hello everyone,
I am pretty new to tomcat. I just managed to install apache2.0.49 and
tomcat4.1.30 and the jk1.2 connector on linux redhat 3 AS.
I was so happy because when I typed: http://localhost:8080/examples and
http://localhost/examples I am able to view my jsp and servlet examples.
I have encounted three  problems unfortunately:
1) When I go to another PC and try to access my server:
http://my.domain.com:8080 http://my.domain.com:8080/   I get The page
cannot be displayed
but if I access http://my.domain.com:80 http://my.domain.com/
(apache), it works fine
 
Why in this world can I access my tomcat from my server directly but not
from outside my server??
 
2) When I run tomcat as root, my mod_jk.conf file is automatically
created inside my conf directory.
But if I run it as a tomcat user, then no mod_jk.conf file is
created.
 
3) But not least, I would like to web applications through my user
directories and not through the tomcat directory.
I know I have to add something in the context path area, but not
sure what to do. 
 
Please, if anyone has an answer to these problems, I would really
appreciate your help.
 
 
 
!-- Claudia Casas
   Application Development Coordinator
   Digital Media Center, Ext. 5940 --
Technology does not drive change -- it enables change. 
 


RE: please...

2004-06-17 Thread Mark Schmitt
Ryan,

This is probably the email address you want...
[EMAIL PROTECTED]

-Original Message-
From: ryan deneveu [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 17, 2004 1:15 PM
To: [EMAIL PROTECTED]
Subject: please...


Please take me off this list. I am not very computer literate and my
email is being accosted with things that do not pertain to me. I realize
that this is all my fault but would like to stop receiving all of these
emails from the mailing list. I am simply a rep for acs, international
that would like to be able to view her leads online like I was able to a
couple of days ago. Sorry about the inconvenience. 
Sincerely,


ryan deneveu
[EMAIL PROTECTED]
Why Wait? Move to EarthLink.



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



Re: three problems

2004-06-17 Thread QM
On Thu, Jun 17, 2004 at 05:44:51PM -0600, Casas, Claudia wrote:
: 1) When I go to another PC and try to access my server:
: http://my.domain.com:8080 http://my.domain.com:8080/   I get The page
: cannot be displayed
: but if I access http://my.domain.com:80 http://my.domain.com/
: (apache), it works fine
: 
: Why in this world can I access my tomcat from my server directly but not
: from outside my server??

You must explicitly setup Tomcat to listen on IP addresses other than
localhost if you want to access Tomcat remotely (but not through
Apache).  Refer to the address attr of the Connector element in
server.xml.


: 2) When I run tomcat as root, my mod_jk.conf file is automatically
: created inside my conf directory.
: But if I run it as a tomcat user, then no mod_jk.conf file is
: created.

Most likely, a permissions problem: is the directory writable to the
(non-root) user in question?


: 3) But not least, I would like to web applications through my user
: directories and not through the tomcat directory.
: I know I have to add something in the context path area, but not
: sure what to do.

There's a config directive for this, something like userdir.
I don't know it off the top of my head, but a search on the Tomcat site
should find it.

-QM

-- 

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


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



RE: three problems

2004-06-17 Thread Casas, Claudia
Thanks for your prompt answer,
Could you be more specific on the address attr?
I have the following in the Connector element on my server.xml:

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8080 minProcessors=5 masProcessors=75
enableLookups=true redirectPort=8443
acceptCount=100 debug=0 connectionTimeout=2
useURIValidationHack=false disableUploadTimeout=true /


-Original Message-
From: QM [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 17, 2004 6:09 PM
To: Tomcat Users List
Subject: Re: three problems

On Thu, Jun 17, 2004 at 05:44:51PM -0600, Casas, Claudia wrote:
: 1) When I go to another PC and try to access my server:
: http://my.domain.com:8080 http://my.domain.com:8080/   I get The
page
: cannot be displayed
: but if I access http://my.domain.com:80 http://my.domain.com/
: (apache), it works fine
: 
: Why in this world can I access my tomcat from my server directly but
not
: from outside my server??

You must explicitly setup Tomcat to listen on IP addresses other than
localhost if you want to access Tomcat remotely (but not through
Apache).  Refer to the address attr of the Connector element in
server.xml.


: 2) When I run tomcat as root, my mod_jk.conf file is automatically
: created inside my conf directory.
: But if I run it as a tomcat user, then no mod_jk.conf file is
: created.

Most likely, a permissions problem: is the directory writable to the
(non-root) user in question?


: 3) But not least, I would like to web applications through my user
: directories and not through the tomcat directory.
: I know I have to add something in the context path area, but not
: sure what to do.

There's a config directive for this, something like userdir.
I don't know it off the top of my head, but a search on the Tomcat site
should find it.

-QM

-- 

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


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


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



Re: three problems

2004-06-17 Thread QM
On Thu, Jun 17, 2004 at 06:23:30PM -0600, Casas, Claudia wrote:
: Connector className=org.apache.coyote.tomcat4.CoyoteConnector
:   port=8080 minProcessors=5 masProcessors=75
  ^^^
  did you mean, max?

I see the address attr isn't being used, so Tomcat should be
listening on all available IPs. 

For sanity's sake, please confirm that Tomcat's running:

lsof -i :8080

If that returns data, then it's down to a networking issue.

Is there a firewall between the other computer and
the Tomcat machine?  For example, what's the output of

iptables --list -n


-QM

-- 

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


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



  1   2   >