RE: How do I get the absolute path of a file in a directory abov e WEB-INF directory of my web application?

2003-01-21 Thread Madhava Reddy
Hi Yaov,

All other writing should be done to directories/files declared as
parameters to your context or servlets.  For example:

  logFile
  /tmp/blahblahLogs/blahblahLogFile.txt


This way other people using/deploying your app can configure these
settings to a directory that suits their deployment.


I have my own doubts about this. The log files created contains all the
mapping or web applications, and some log files contain the each request
information. Loger contains all the mapping informaion and Valve contains
all the request information. What if I do not want to have all these
information in my log file. I want to have meaningful infomation only. Like,
user -- login time -- log out time -- time of usage -- user type (
applicaiton dependent ) -- etc etc. I cheked out all the levels for logging.
Most restrictive logging also contain the basic mapping/request information.

Given above requirement, is there a way to do it with out creating our own
log file, accessing and writing using java ? If there is no way of doing
using Tomcat logs, then I need to use my own logs.

Please tell me how to do this?

Thanks
Madhav



How to Run Apache and Tomcat separately!!!!

2003-01-21 Thread Vivek Singh
Hi,
   I have apache and tomcat running on the same localhost and
communicating over mod_jk. I want to run them on different machines.
What changes do I need to make  and where?

Thanks in Advance
Regards

Vivek  


**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Apache Version

2003-01-21 Thread Tammer Salem
Hi,
Does anyone know what version of Apache Webserver comes with Tomcat 4.1.18?

thanks,
Tammer Salem


Bugzilla

2003-01-21 Thread Vit Timchishin
Hello.

I've posted two bug reports on tomcat 4.1 to buzilla 
(http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15795, 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15680) right after New Year, but did 
not get any 
responce. Did I do anything wrong?

ó Õ×ÁÖÅÎÉÅÍ,
÷ÉÔÁÌÉÊ ÷ÁÌÅÒÉÅ×ÉÞ ôÉÍÞÉÛÉÎ,
ÒÕËÏ×ÏÄÉÔÅÌØ ÏÔÄÅÌÁ ASL
ïïï "çÏÌÄÅÎ ôÅÈÎÏÌÏÄÖÉÓ"
http://www.gtech-ua.com




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Please help with LogConfigurationException

2003-01-21 Thread Collins, Jim
Hi,

I have still had no feedback  at all on this. Can anyone please help I am
running out of hair to pull out.

Regards

Jim

> -Original Message-
> From: Collins, Jim [mailto:[EMAIL PROTECTED]]
> Sent: 20 January 2003 09:47
> To: 'Tomcat Users List'
> Subject: Please help with LogConfigurationException
> 
> 
> Hi,
> 
> I am still getting this Exception thrown. Has anyone else 
> ever had this and
> know of a fix. Any help at all would be appreciated as this 
> is causing me a
> lot of problems
> 
> Thanks
> 
> Jim.
> 
> > A quick update. I have now copied the log4J jar file to 
> > commons/lib and
> > restarted the server so that is now uses log4J instead of the 
> > JDK1.4 logger.
> > After a couple of hours I got this error:
> > 
> > org.apache.commons.logging.LogConfigurationException:
> > org.apache.commons.logging.LogConfigurationException:
> > org.apache.commons.logging.LogConfigurationException: Class
> > org.apache.commons.logging.impl.Log4JCategoryLog does not 
> > implement Log
> > at
> > org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
> > FactoryImpl.ja
> > va:530)
> > at
> > org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Log
> > FactoryImpl.ja
> > va:285)
> > at 
> > org.apache.commons.logging.LogFactory.getLog(LogFactory.java:401)
> > at
> > org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandl
> > er.java:97)
> > at org.apache.tomcat.util.log.Log.log(Log.java:198)
> > at org.apache.tomcat.util.log.Log.log(Log.java:192)
> > at org.apache.tomcat.util.log.Log.log(Log.java:174)
> > at
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> > ThreadPool.jav
> > a:536)
> > at java.lang.Thread.run(Thread.java:536)
> > Caused by: org.apache.commons.logging.LogConfigurationException:
> > org.apache.commons.logging.LogConfigurationException: Class
> > org.apache.commons.logging.impl.Log4JCategoryLog does not 
> > implement Log
> > at
> > org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct
> > or(LogFactoryI
> > mpl.java:415)
> > at
> > org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
> > FactoryImpl.ja
> > va:523)
> > ... 8 more
> > Caused by: 
> org.apache.commons.logging.LogConfigurationException: Class
> > org.apache.commons.logging.impl.Log4JCategoryLog does not 
> > implement Log
> > at
> > org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct
> > or(LogFactoryI
> > mpl.java:411)
> > ... 9 more
> > 
> > Could anyone please give me some clue as to what I can do. 
> I have not
> > changed anything for some time now and prior to these errors 
> > that have just
> > started happening I have not had to restart the server for 
> > weeks. Now I am
> > having to start it more than once every day.
> > 
> > Thanks
> > 
> > Jim.
> > 
> > > -Original Message-
> > > From: Collins, Jim [mailto:[EMAIL PROTECTED]]
> > > Sent: 17 January 2003 12:31
> > > To: 'Tomcat Users List'
> > > Subject: RE: Log Error
> > > 
> > > 
> > > I have upgraded the JDK to 1.4.1 and it is still happening.
> > > 
> > > > -Original Message-
> > > > From: Collins, Jim 
> > > > Sent: 17 January 2003 10:04
> > > > To: 'Tomcat Users List'
> > > > Subject: Log Error
> > > > 
> > > > 
> > > > Hi,
> > > > 
> > > > I am using Tomcat4.1.10 and JDK1.4.0 and I have started to 
> > > > get the following error message after which Tomcat crashes.
> > > > 
> > > > org.apache.commons.logging.LogConfigurationException: 
> > > > org.apache.commons.logging.LogConfigurationException: 
> > > > org.apache.commons.logging.LogConfigurationException: Class 
> > > > org.apache.commons.logging.impl.Jdk14Logger does not 
> implement Log
> > > > at 
> > > > org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
> > > > FactoryImpl.java:530)
> > > > at 
> > > > org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Log
> > > > FactoryImpl.java:285)
> > > > at 
> > > > 
> org.apache.commons.logging.LogFactory.getLog(LogFactory.java:401)
> > > > at 
> > > > org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandl
> > > > er.java:97)
> > > > at org.apache.tomcat.util.log.Log.log(Log.java:198)
> > > > at org.apache.tomcat.util.log.Log.log(Log.java:192)
> > > > at org.apache.tomcat.util.log.Log.log(Log.java:174)
> > > > at 
> > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> > > > ThreadPool.java:536)
> > > > at java.lang.Thread.run(Thread.java:536)
> > > > Caused by: 
> > > > org.apache.commons.logging.LogConfigurationException: 
> > > > org.apache.commons.logging.LogConfigurationException: Class 
> > > > org.apache.commons.logging.impl.Jdk14Logger does not 
> implement Log
> > > > at 
> > > > org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct
> > > > or(LogFactoryImpl.java:415)
> > > > at 
> > > > org.apache.commons

Connection pooling

2003-01-21 Thread Venkat
Hi,

How to set up a connection poll and use the connection pool from jsp in
tomcat4.0?

Any url or doc will help's me.

Thank you

regards
venkat


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Connection pooling

2003-01-21 Thread Venkat
Sorry,
for spelling mistake.
Connection pool

Thaks in advance
venkat

-Original Message-
From: Venkat [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 2:57 PM
To: Tomcat
Subject: Connection pooling


Hi,

How to set up a connection poll and use the connection pool from jsp in
tomcat4.0?

Any url or doc will help's me.

Thank you

regards
venkat


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




allow HTTPS connection only to some contexts

2003-01-21 Thread Fabrizio Lippolis
Hello,

I have configured a Tomcat 4.1.12 installation to accept connections both by
HTTP and by HTTPS. Now I can access my webapps by both protocols. I would
like to allow some contexts to be accessed only by HTTP and not by HTTPS and
other contexts to be accessed by HTTPS and not by HTTP. Am I obliged to
generate two instances of Tomcat or I can do it only with one instance? Any
suggestion how to do it? Thank you.

Fabrizio


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Apache Version

2003-01-21 Thread Peng Tuck Kwok
Tammer Salem wrote:

Hi,
Does anyone know what version of Apache Webserver comes with Tomcat 4.1.18?


None. Apache is available as a seperate download.


thanks,
Tammer Salem




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Apache Version

2003-01-21 Thread Tammer Salem
Then Tomcat has it's own web server?
Can anyone point me to any reference documentation that shows how this
works?

> Tammer Salem wrote:
> > Hi,
> > Does anyone know what version of Apache Webserver comes with Tomcat
4.1.18?
> >
> None. Apache is available as a seperate download.
>
> > thanks,
> > Tammer Salem
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat 4.1.18, JK2, IIS - Second try

2003-01-21 Thread Ari Suutari
Hi,

On Monday 20 January 2003 19:19, Dan Tran wrote:
> With the help of Mark Eggers, I am able to install JK2/tomcat 4.1.8/IIS on
> a new machine. The connector on this macine works
>
> I also reinstall tomcat on the problem machine, check every step
> (registries, iis virtual directory, workers2.properties and
> JK2.properties). Connector on this machine still does not work.  There is
> no error in EventViewer, the DLL pluggin is up (blue arrow up).  The weird
> thing is I dont see any indication of iis_redirector2.dll talking to port
> 8009 of tomcat.  It seems the request does reach the dll but disappear. 
> The most logical thing to do is to trouble shoot the DLL but I cant find
> any reference to make the DLL to dump more debug message to the
> Eventviewers.

If you already have debug levels in workers2.properties turned
on I'm not aware of anything other. When we had similar
situation (the requests reached the dll but disappeared then
it was wrong IIS permissions on inetpub/scripts (ie. the dll directory)
and mismatch in extensionUri and actual dll location)

Ari S.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Did Tomcat5.0 fix the http 302 issue?

2003-01-21 Thread neal
There was a discussion a month or two ago about fixing the issue wherein
Tomcat *redirects* to the welcome page rather than forwarding to it.  For
instance, www.abc.com would be redirected to www.abc.com/index.html.  Was
this issue in fact resolved in Tomcat 5.0?

I attempted to take a look at the change log but its empty.  :(

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/CHANGELOG.txt



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How to Run Apache and Tomcat separately!!!!

2003-01-21 Thread Turner, John

Change .host in workers.properties to the FQDN or IP address of the Tomcat
machine.

John


-Original Message-
From: Vivek Singh [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 21, 2003 3:57 AM
To: 'Tomcat Users List'
Subject: How to Run Apache and Tomcat separately


Hi,
   I have apache and tomcat running on the same localhost and communicating
over mod_jk. I want to run them on different machines. What changes do I
need to make  and where?

Thanks in Advance
Regards

Vivek  


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003
 


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003
 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Apache Version

2003-01-21 Thread Turner, John

Yes.  It runs on port 8080 by default.

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

John


-Original Message-
From: Tammer Salem [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 21, 2003 4:41 AM
To: Tomcat Users List
Subject: Re: Apache Version


Then Tomcat has it's own web server?
Can anyone point me to any reference documentation that shows how this
works?

> Tammer Salem wrote:
> > Hi,
> > Does anyone know what version of Apache Webserver comes with Tomcat
4.1.18?
> >
> None. Apache is available as a seperate download.
>
> > thanks,
> > Tammer Salem
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

--
To unsubscribe, e-mail:

For additional commands, e-mail:


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003
 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Connection pooling

2003-01-21 Thread Peng Tuck Kwok
Venkat wrote:

Hi,

How to set up a connection poll and use the connection pool from jsp in
tomcat4.0?

Any url or doc will help's me.


Look up the tomcat docs , go to the section that says jndi datasources. 
There is a copy of the docs that come with each distribution of tomcat. 
That should set you in the right direction.

Thank you

regards
venkat


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




TR : Prob with tomcat 4.1.18 LE

2003-01-21 Thread eric
Hi,

i configure some host on my domain

But the jsp doesn t work under this host , html ok jsp no

I ve a website  on webapps\site1

Two access:

Exemple http://127.0.0.1/site1  jsp & html work 

http://site1 jsp no, but html yes 


Thank for helping...

Windows XP sp1, tomcat 4.1.18 LE jdk 1.4 without apache
JVM jsdk 1.4.1

Same probleme on Windows NT  and jvm 1.3 same tomcat 



---
Ce message est certifié sans virus connu .
Protégé par l'antivirus AVG Deluxe.
Version: 6.0.443 / Base de données virus: 248 - Date: 10/01/2003
 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Please help with LogConfigurationException

2003-01-21 Thread Collins, Jim
Any feedback would do, even if you tell me to shut up :) It's the silence I
can't stand.

Jim.

PS I might change the subject to: "How do you change the port Tomcat listens
to." I bet there would be hundreds of replies then.

> -Original Message-
> From: Collins, Jim [mailto:[EMAIL PROTECTED]]
> Sent: 21 January 2003 09:24
> To: 'Tomcat Users List'
> Subject: RE: Please help with LogConfigurationException
> 
> 
> Hi,
> 
> I have still had no feedback  at all on this. Can anyone 
> please help I am
> running out of hair to pull out.
> 
> Regards
> 
> Jim
> 
> > -Original Message-
> > From: Collins, Jim [mailto:[EMAIL PROTECTED]]
> > Sent: 20 January 2003 09:47
> > To: 'Tomcat Users List'
> > Subject: Please help with LogConfigurationException
> > 
> > 
> > Hi,
> > 
> > I am still getting this Exception thrown. Has anyone else 
> > ever had this and
> > know of a fix. Any help at all would be appreciated as this 
> > is causing me a
> > lot of problems
> > 
> > Thanks
> > 
> > Jim.
> > 
> > > A quick update. I have now copied the log4J jar file to 
> > > commons/lib and
> > > restarted the server so that is now uses log4J instead of the 
> > > JDK1.4 logger.
> > > After a couple of hours I got this error:
> > > 
> > > org.apache.commons.logging.LogConfigurationException:
> > > org.apache.commons.logging.LogConfigurationException:
> > > org.apache.commons.logging.LogConfigurationException: Class
> > > org.apache.commons.logging.impl.Log4JCategoryLog does not 
> > > implement Log
> > > at
> > > org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
> > > FactoryImpl.ja
> > > va:530)
> > > at
> > > org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Log
> > > FactoryImpl.ja
> > > va:285)
> > > at 
> > > org.apache.commons.logging.LogFactory.getLog(LogFactory.java:401)
> > > at
> > > org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandl
> > > er.java:97)
> > > at org.apache.tomcat.util.log.Log.log(Log.java:198)
> > > at org.apache.tomcat.util.log.Log.log(Log.java:192)
> > > at org.apache.tomcat.util.log.Log.log(Log.java:174)
> > > at
> > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> > > ThreadPool.jav
> > > a:536)
> > > at java.lang.Thread.run(Thread.java:536)
> > > Caused by: org.apache.commons.logging.LogConfigurationException:
> > > org.apache.commons.logging.LogConfigurationException: Class
> > > org.apache.commons.logging.impl.Log4JCategoryLog does not 
> > > implement Log
> > > at
> > > org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct
> > > or(LogFactoryI
> > > mpl.java:415)
> > > at
> > > org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
> > > FactoryImpl.ja
> > > va:523)
> > > ... 8 more
> > > Caused by: 
> > org.apache.commons.logging.LogConfigurationException: Class
> > > org.apache.commons.logging.impl.Log4JCategoryLog does not 
> > > implement Log
> > > at
> > > org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct
> > > or(LogFactoryI
> > > mpl.java:411)
> > > ... 9 more
> > > 
> > > Could anyone please give me some clue as to what I can do. 
> > I have not
> > > changed anything for some time now and prior to these errors 
> > > that have just
> > > started happening I have not had to restart the server for 
> > > weeks. Now I am
> > > having to start it more than once every day.
> > > 
> > > Thanks
> > > 
> > > Jim.
> > > 
> > > > -Original Message-
> > > > From: Collins, Jim [mailto:[EMAIL PROTECTED]]
> > > > Sent: 17 January 2003 12:31
> > > > To: 'Tomcat Users List'
> > > > Subject: RE: Log Error
> > > > 
> > > > 
> > > > I have upgraded the JDK to 1.4.1 and it is still happening.
> > > > 
> > > > > -Original Message-
> > > > > From: Collins, Jim 
> > > > > Sent: 17 January 2003 10:04
> > > > > To: 'Tomcat Users List'
> > > > > Subject: Log Error
> > > > > 
> > > > > 
> > > > > Hi,
> > > > > 
> > > > > I am using Tomcat4.1.10 and JDK1.4.0 and I have started to 
> > > > > get the following error message after which Tomcat crashes.
> > > > > 
> > > > > org.apache.commons.logging.LogConfigurationException: 
> > > > > org.apache.commons.logging.LogConfigurationException: 
> > > > > org.apache.commons.logging.LogConfigurationException: Class 
> > > > > org.apache.commons.logging.impl.Jdk14Logger does not 
> > implement Log
> > > > > at 
> > > > > org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
> > > > > FactoryImpl.java:530)
> > > > > at 
> > > > > org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Log
> > > > > FactoryImpl.java:285)
> > > > > at 
> > > > > 
> > org.apache.commons.logging.LogFactory.getLog(LogFactory.java:401)
> > > > > at 
> > > > > org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandl
> > > > > er.java:97)
> > > > > at org.apache.tomcat.util.log.Log.log(Log.java:198)
> > > > > at o

Re: Tomcat 4.1.18, JK2, IIS - Second try

2003-01-21 Thread Dan Tran
No I only set debugLevel in the registry, how do I set it in
workers2.properties?

-Dan
- Original Message -
From: "Ari Suutari" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Dan Tran"
<[EMAIL PROTECTED]>
Sent: Tuesday, January 21, 2003 1:42 AM
Subject: Re: Tomcat 4.1.18, JK2, IIS - Second try


Hi,

On Monday 20 January 2003 19:19, Dan Tran wrote:
> With the help of Mark Eggers, I am able to install JK2/tomcat 4.1.8/IIS on
> a new machine. The connector on this macine works
>
> I also reinstall tomcat on the problem machine, check every step
> (registries, iis virtual directory, workers2.properties and
> JK2.properties). Connector on this machine still does not work.  There is
> no error in EventViewer, the DLL pluggin is up (blue arrow up).  The weird
> thing is I dont see any indication of iis_redirector2.dll talking to port
> 8009 of tomcat.  It seems the request does reach the dll but disappear.
> The most logical thing to do is to trouble shoot the DLL but I cant find
> any reference to make the DLL to dump more debug message to the
> Eventviewers.

If you already have debug levels in workers2.properties turned
on I'm not aware of anything other. When we had similar
situation (the requests reached the dll but disappeared then
it was wrong IIS permissions on inetpub/scripts (ie. the dll directory)
and mismatch in extensionUri and actual dll location)

Ari S.


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




BUG tomcat admin

2003-01-21 Thread Jochen Schurich
hello!

when i added a new virtual host and then a new context i can't use this 
new context until i restart my tomcat!
i get the following error:

WebappClassLoader: Lifecycle error : CL stopped

after that i can't restart/remove the context until i restart my tomcat!

my configuration:
windows2000 pro
tomcat 4.1.18 LE-jdk14
jdk 1.4.1_01

the error is the same on:
windows2000 pro
tomcat 4.1.18
jdk 1.3.1_06

has someone solved this problem?

thanx,
blip


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: Apache Version

2003-01-21 Thread Peng Tuck Kwok
Tammer Salem wrote:

Then Tomcat has it's own web server?
Can anyone point me to any reference documentation that shows how this
works?

Tomcat can serve html pages, if you'd poke around in the ROOT webapp you 
will see plenty of html pages in there. Basically if your webapp needs 
to have html pages you just dump them in the webapp directory. You will 
be able to request the page from the browser.

The document link is here:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html

which should also come with your copy of tomcat.





Tammer Salem wrote:


Hi,
Does anyone know what version of Apache Webserver comes with Tomcat


4.1.18?


None. Apache is available as a seperate download.



thanks,
Tammer Salem




--
To unsubscribe, e-mail:





For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: allow HTTPS connection only to some contexts

2003-01-21 Thread mwm
Check out the ,  and
 tags for requiring that access is confidential (pretty
much meaning via https).   Not sure about requiring non-http.
(Can connectors be defined per context?)

Mike.


- Original Message -
From: "Fabrizio Lippolis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 21, 2003 9:29 AM
Subject: allow HTTPS connection only to some contexts


Hello,

I have configured a Tomcat 4.1.12 installation to accept connections both by
HTTP and by HTTPS. Now I can access my webapps by both protocols. I would
like to allow some contexts to be accessed only by HTTP and not by HTTPS and
other contexts to be accessed by HTTPS and not by HTTP. Am I obliged to
generate two instances of Tomcat or I can do it only with one instance? Any
suggestion how to do it? Thank you.

Fabrizio


--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




How do you change the port Tomcat listens to

2003-01-21 Thread Collins, Jim
Hi,

I thought this subject might at least get some response. Has anyone ever had
or know anything about the following error I have started getting from
Tomcat? It cause Tomcat to crash and I then need to restart Tomcat. 

 
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Log4JCategoryLog does not 
implement Log
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
FactoryImpl.java:530)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Log
FactoryImpl.java:285)
at 

org.apache.commons.logging.LogFactory.getLog(LogFactory.java:401)
at
org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandler.java:97)
at org.apache.tomcat.util.log.Log.log(Log.java:198)
at org.apache.tomcat.util.log.Log.log(Log.java:192)
at org.apache.tomcat.util.log.Log.log(Log.java:174)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:536)
at java.lang.Thread.run(Thread.java:536)
Caused by: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Log4JCategoryLog does not 
implement Log
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI
mpl.java:415)
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
FactoryImpl.java:523)
... 8 more
Caused by: 
org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI
mpl.java:411)
... 9 more
 
 


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any 
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and 
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Doing something on the server when user session expires

2003-01-21 Thread Renato Romano
Is it possible to activate a method call when a user session expires,
independently of the client browsing activity ? A mean, for example: a
user logs in, then stops his activity for 30 minutes. Supposed that user
sessione expires after 20 minutes, when he tries to access a page tomcat
automatically detect that his session expired and shows the user the
login page, but that happens only when he request a (protected) page,
that is at time 30; I want to do something exactly when user session
expires, that is at time 20. Is it possible ?? Thanks a lot

Renato


Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How do you change the port Tomcat listens to

2003-01-21 Thread Adam Fowler
Hello,

Sounds like you've got a version of Log4J that Tomcat doesn't like. 
You've probably upgraded one of them without upgrading the other. It 
sounds like a Java error where the version of Log that Log4J implements 
is not the one Tomcat is using.

I'd reccommend making sure you have two versions that work together. The 
two latest stable ones should work. (Disclaimer: I haven't tried it, so 
don't sure me if it doesn't!)

Hope that helps,

Adam.

Collins, Jim wrote:
Hi,

I thought this subject might at least get some response. Has anyone ever had
or know anything about the following error I have started getting from
Tomcat? It cause Tomcat to crash and I then need to restart Tomcat. 

 
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Log4JCategoryLog does not 
implement Log
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
FactoryImpl.java:530)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Log
FactoryImpl.java:285)
at 

org.apache.commons.logging.LogFactory.getLog(LogFactory.java:401)
at
org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandler.java:97)
at org.apache.tomcat.util.log.Log.log(Log.java:198)
at org.apache.tomcat.util.log.Log.log(Log.java:192)
at org.apache.tomcat.util.log.Log.log(Log.java:174)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:536)
at java.lang.Thread.run(Thread.java:536)
Caused by: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Log4JCategoryLog does not 
implement Log
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI
mpl.java:415)
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
FactoryImpl.java:523)
... 8 more
Caused by: 
org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI
mpl.java:411)
... 9 more
 
 


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any 
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and 
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Doing something on the server when user session expires

2003-01-21 Thread Barney Hamish
Try defining a finalize method in an object that resides in the user's
session. When the session is destroyed that object's finalize method will be
called.
Hamish

> -Original Message-
> From: Renato Romano [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 21, 2003 11:31 AM
> To: 'Tomcat Users List'
> Subject: Doing something on the server when user session expires
> 
> 
> Is it possible to activate a method call when a user session expires,
> independently of the client browsing activity ? A mean, for example: a
> user logs in, then stops his activity for 30 minutes. 
> Supposed that user
> sessione expires after 20 minutes, when he tries to access a 
> page tomcat
> automatically detect that his session expired and shows the user the
> login page, but that happens only when he request a (protected) page,
> that is at time 30; I want to do something exactly when user session
> expires, that is at time 20. Is it possible ?? Thanks a lot
> 
> Renato
> 
> 
> Renato Romano
> Sistemi e Telematica S.p.A.
> Calata Grazie - Vial Al Molo Giano
> 16127 - GENOVA
> 
> e-mail: [EMAIL PROTECTED]
> Tel.:   010 2712603
> _
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How do you change the port Tomcat listens to

2003-01-21 Thread Collins, Jim
Hi Adam,

Thanks for replying. I don't think it is Log4J. I was getting the exception
when I was using the JDK1.4 Logger:

org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: Class 
org.apache.commons.logging.impl.Jdk14Logger does not implement Log
at 
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
va:530)
 at 


I then tried Log4J and had the same problem. In both cases I looked at the
code and know that JDK14Logger and Log4JCategoryLog both implement Log. The
exception does not happen all the time, Tomcat had been running for a number
of weeks with no problems when the exception started being thrown and I had
to repeatedly restart Tomcat. It has now been running OK since Friday but I
am very worried as to what caused it to happen and what I can do to prevent
it. Up untill this point I have had no problems at all with Tomcat.

Regards

Jim.

> -Original Message-
> From: Adam Fowler [mailto:[EMAIL PROTECTED]]
> Sent: 21 January 2003 10:28
> To: Tomcat Users List
> Subject: Re: How do you change the port Tomcat listens to
> 
> 
> Hello,
> 
> Sounds like you've got a version of Log4J that Tomcat doesn't like. 
> You've probably upgraded one of them without upgrading the other. It 
> sounds like a Java error where the version of Log that Log4J 
> implements 
> is not the one Tomcat is using.
> 
> I'd reccommend making sure you have two versions that work 
> together. The 
> two latest stable ones should work. (Disclaimer: I haven't 
> tried it, so 
> don't sure me if it doesn't!)
> 
> Hope that helps,
> 
> Adam.
> 
> Collins, Jim wrote:
> > Hi,
> > 
> > I thought this subject might at least get some response. 
> Has anyone ever had
> > or know anything about the following error I have started 
> getting from
> > Tomcat? It cause Tomcat to crash and I then need to restart Tomcat. 
> > 
> >  
> > org.apache.commons.logging.LogConfigurationException:
> > org.apache.commons.logging.LogConfigurationException:
> > org.apache.commons.logging.LogConfigurationException: Class
> > org.apache.commons.logging.impl.Log4JCategoryLog does not 
> > implement Log
> > at
> > org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
> > FactoryImpl.java:530)
> > at
> > org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Log
> > FactoryImpl.java:285)
> > at 
> > 
> > org.apache.commons.logging.LogFactory.getLog(LogFactory.java:401)
> > at
> > 
> org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandl
> er.java:97)
> > at org.apache.tomcat.util.log.Log.log(Log.java:198)
> > at org.apache.tomcat.util.log.Log.log(Log.java:192)
> > at org.apache.tomcat.util.log.Log.log(Log.java:174)
> > at
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> > ThreadPool.java:536)
> > at java.lang.Thread.run(Thread.java:536)
> > Caused by: org.apache.commons.logging.LogConfigurationException:
> > org.apache.commons.logging.LogConfigurationException: Class
> > org.apache.commons.logging.impl.Log4JCategoryLog does not 
> > implement Log
> > at
> > 
> org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct
> or(LogFactoryI
> > mpl.java:415)
> > at
> > org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
> > FactoryImpl.java:523)
> > ... 8 more
> > Caused by: 
> > org.apache.commons.logging.LogConfigurationException: Class
> > org.apache.commons.logging.impl.Log4JCategoryLog does not 
> implement Log
> > at
> > 
> org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct
> or(LogFactoryI
> > mpl.java:411)
> > ... 9 more
> >  
> >  
> > 
> > 
> > PLEASE READ: The information contained in this email is confidential
> > and intended for the named recipient(s) only. If you are 
> not an intended
> > recipient of this email you must not copy, distribute or take any 
> > further action in reliance on it and you should delete it 
> and notify the
> > sender immediately. Email is not a secure method of 
> communication and 
> > Nomura International plc cannot accept responsibility for 
> the accuracy
> > or completeness of this message or any attachment(s). 
> Please examine this
> > email for virus infection, for which Nomura International 
> plc accepts
> > no responsibility. If verification of this email is sought 
> then please
> > request a hard copy. Unless otherwise stated any views or opinions
> > presented are solely those of the author and do not 
> represent those of
> > Nomura International plc. This email is intended for informational
> > purposes only and is not a solicitation or offer to buy or sell
> > securities or related financial instruments. Nomura 
> International plc is
> > regulated by the Financial Services Authority and is a member of the
> > London Stock Exchange.
> > 
> > 
> > 
> > --
> > To unsubscribe, 

RE: trouble with bean returning boolean

2003-01-21 Thread Petter Karlström
For the archives, a reboot of Tomcat solved this problem. Still a bit 
strange, since I checked for caching or similar by modifying other 
pieces of code. No matter, lesson learned: reboot reboot reboot.

/Petter

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: Tomcat 4.1.18, JK2, IIS - Second try

2003-01-21 Thread Ari Suutari
Hi,

On Tuesday 21 January 2003 11:58, Dan Tran wrote:
> No I only set debugLevel in the registry, how do I set it in
> workers2.properties?

In all [keywordhere] sections it is possible
to add debug level. For example:

[channel.socket:test_tomcat]
info=Ajp13 forwarding over socket
debug=1000


Ari S.


>
> -Dan
> - Original Message -
> From: "Ari Suutari" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Dan Tran"
> <[EMAIL PROTECTED]>
> Sent: Tuesday, January 21, 2003 1:42 AM
> Subject: Re: Tomcat 4.1.18, JK2, IIS - Second try
>
>
> Hi,
>
> On Monday 20 January 2003 19:19, Dan Tran wrote:
> > With the help of Mark Eggers, I am able to install JK2/tomcat 4.1.8/IIS
> > on a new machine. The connector on this macine works
> >
> > I also reinstall tomcat on the problem machine, check every step
> > (registries, iis virtual directory, workers2.properties and
> > JK2.properties). Connector on this machine still does not work.  There is
> > no error in EventViewer, the DLL pluggin is up (blue arrow up).  The
> > weird thing is I dont see any indication of iis_redirector2.dll talking
> > to port 8009 of tomcat.  It seems the request does reach the dll but
> > disappear. The most logical thing to do is to trouble shoot the DLL but I
> > cant find any reference to make the DLL to dump more debug message to the
> > Eventviewers.
>
> If you already have debug levels in workers2.properties turned
> on I'm not aware of anything other. When we had similar
> situation (the requests reached the dll but disappeared then
> it was wrong IIS permissions on inetpub/scripts (ie. the dll directory)
> and mismatch in extensionUri and actual dll location)
>
> Ari S.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Help: Route all tomcat traffic through IIS (port 80)

2003-01-21 Thread Jan Schmitz-Reinthal
Hi, I'm stuck with the problem trying to use IIS (5.0) as my regular 
webserver and handle Tomcat connections to the servlet via 
ISAPI_REDIRECTOR. I don't want the default Tomcat-Port 8080 to appear in 
the URL.

The redirector seems to work as announced but as soon as the servlet is 
approached, I'm back on Port 8080, communicating directly with Tomcat 
instead of having TC talk "invisibly" with IIS and have him serve the 
resulting page.

Any hints?

TC 4.0.6
JDK 1.3.1:01
Win2K Sp3
IIS5

Jan


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: Tomcat 4.1.18, JK2, IIS - Second try

2003-01-21 Thread Dan Tran
setting debug value in the workers2.properties does not work.  I dont see
any detailed message in the eventview.

The permission setting to the virtual directly as been checked many times, .
I set it to read and scripts and executables.  I even change it from
/jakarta to /scripts

Well, I am going to give it up tonight and try again tommorrow.

Thank you for everything ;)

-D


- Original Message -
From: "Ari Suutari" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Dan Tran"
<[EMAIL PROTECTED]>
Sent: Tuesday, January 21, 2003 2:49 AM
Subject: Re: Tomcat 4.1.18, JK2, IIS - Second try


Hi,

On Tuesday 21 January 2003 11:58, Dan Tran wrote:
> No I only set debugLevel in the registry, how do I set it in
> workers2.properties?

In all [keywordhere] sections it is possible
to add debug level. For example:

[channel.socket:test_tomcat]
info=Ajp13 forwarding over socket
debug=1000


Ari S.


>
> -Dan
> - Original Message -
> From: "Ari Suutari" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Dan Tran"
> <[EMAIL PROTECTED]>
> Sent: Tuesday, January 21, 2003 1:42 AM
> Subject: Re: Tomcat 4.1.18, JK2, IIS - Second try
>
>
> Hi,
>
> On Monday 20 January 2003 19:19, Dan Tran wrote:
> > With the help of Mark Eggers, I am able to install JK2/tomcat 4.1.8/IIS
> > on a new machine. The connector on this macine works
> >
> > I also reinstall tomcat on the problem machine, check every step
> > (registries, iis virtual directory, workers2.properties and
> > JK2.properties). Connector on this machine still does not work.  There
is
> > no error in EventViewer, the DLL pluggin is up (blue arrow up).  The
> > weird thing is I dont see any indication of iis_redirector2.dll talking
> > to port 8009 of tomcat.  It seems the request does reach the dll but
> > disappear. The most logical thing to do is to trouble shoot the DLL but
I
> > cant find any reference to make the DLL to dump more debug message to
the
> > Eventviewers.
>
> If you already have debug levels in workers2.properties turned
> on I'm not aware of anything other. When we had similar
> situation (the requests reached the dll but disappeared then
> it was wrong IIS permissions on inetpub/scripts (ie. the dll directory)
> and mismatch in extensionUri and actual dll location)
>
> Ari S.


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




EXECUTE an external .exe-file (+Parameters) that creates data-filesI want to use later in my servlet

2003-01-21 Thread Patrick Kosiol
Hi,

I'm runnung TomCat 4.0.4 and I want to start an external .exe-File.
My Code:

  String[] runString = {relativeDataPath + "data.exe",
parameter0, parameter1, parameter2, parameter3};
  Process p = Runtime.getRuntime().exec(runString);
  System.out.println(runString);
  if(p.waitFor() == 0){


The 'data.exe'-File is placed in 
$CATALINA_HOME/webapps/ROOT/relativeDataPath so it should be no problem 
to access this File. The Number of  Parameters etc. is OK.
But I get the following Error-Message:

java.io.IOException: CreateProcess: 'relativeDataPath'/bfpldata.exe 
parameter0 parameter1 parameter2 parameter3 error=2

error=2 means imho that the File is not found. How can I execute my file 
to do that, what I want. Is it possible that the process can create 
files in the Tomcat folders?


Thx
Patrick


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



RE: Doing something on the server when user session expires

2003-01-21 Thread Daniel Brown
When the session is created, you could store an object that implements the
'javax.servlet.http.HttpSessionBindingListener' interface.

When the session is invalidated, that object will receive an event,
according to the doco, just after the session has been invalidated, or
expired. The interface gives access to the session object in question, so
should hopefully get you closer to where you want to be.

Dan.

> -Original Message-
> From: Barney Hamish [mailto:[EMAIL PROTECTED]]
> Sent: 21 January 2003 10:30
> To: 'Tomcat Users List'
> Subject: RE: Doing something on the server when user session expires
>
>
> Try defining a finalize method in an object that resides in the user's
> session. When the session is destroyed that object's finalize
> method will be
> called.
> Hamish
>
> > -Original Message-
> > From: Renato Romano [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 21, 2003 11:31 AM
> > To: 'Tomcat Users List'
> > Subject: Doing something on the server when user session expires
> >
> >
> > Is it possible to activate a method call when a user session expires,
> > independently of the client browsing activity ? A mean, for example: a
> > user logs in, then stops his activity for 30 minutes.
> > Supposed that user
> > sessione expires after 20 minutes, when he tries to access a
> > page tomcat
> > automatically detect that his session expired and shows the user the
> > login page, but that happens only when he request a (protected) page,
> > that is at time 30; I want to do something exactly when user session
> > expires, that is at time 20. Is it possible ?? Thanks a lot
> >
> > Renato
> >
> > 
> > Renato Romano
> > Sistemi e Telematica S.p.A.
> > Calata Grazie - Vial Al Molo Giano
> > 16127 - GENOVA
> >
> > e-mail: [EMAIL PROTECTED]
> > Tel.:   010 2712603
> > _
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: JK2 workers2.properties (was Re: Apache Tomcat Virtual Host)

2003-01-21 Thread Rasputin
* Rasputin <[EMAIL PROTECTED]> [0148 21:48]:

Sorted! Just re-enabled the pussy.tenten vhost and mapped  

[uri:pussy.tenten/*]

insread.

> -
> 
> workers2.properties has this:
> 
> -
> [uri:pussy.tenten]
> group=lb
> 
> [uri:/examples/*.jsp]
> info=Extension mapping
> -

-- 
Rasputin :: Jack of All Trades - Master of Nuns

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Pick a Platform - Linux, Windows, Unix, Solaris...

2003-01-21 Thread Andoni
If you could pick any platform to run Tomcat on what would it be.

Also what version of Tomcat is now the one to go with?
I.e. stable, reliable, etc.

Andoni.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Pick a Platform - Linux, Windows, Unix, Solaris...

2003-01-21 Thread Turner, John

You're begging for a flame war.  Use the platform that works for you.

The current stable release of the 4.1 tree is 4.1.18.  Of the 4.0 tree it is
(I think) 4.0.6.

John


> -Original Message-
> From: Andoni [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 21, 2003 7:23 AM
> To: Tomcat Users List
> Subject: Pick a Platform - Linux, Windows, Unix, Solaris...
> 
> 
> If you could pick any platform to run Tomcat on what would it be.
> 
> Also what version of Tomcat is now the one to go with?
> I.e. stable, reliable, etc.
> 
> Andoni.
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: tomcat configuration with apache 1.3.27 ssl

2003-01-21 Thread Helene Figueiredo

Hello,

I've done again my certificate for ssl.
Actually, when I start first tomcat, it's ok. Then I start apache ssl, it's ok.
But when I go to the url :

https://...

It tells me that the file does not exit.
And the message in the error log of apache is :

[Tue Jan 21 13:25:29 2003] [error] [client 152.77.1.237] File does not 
exist: /local/apache/www/webapps/examples/servlet/HelloWorldExample


I know what you can tell me : it's a problem of apache only. For me, I think
that I've forget something in some file of configuration to connect apache 
ssl with
tomcat.

Do you have some idea please ?


You will find below, what I put in my configuration files :

httpsd.conf :


#SSLDisable
SSLEnable
DirectoryIndex index.php index.php3 index.cgi index.html Welcome.html 
Welcome.phtml

Options FollowSymLinks Indexes
AllowOverride none





Include /local/tomcat/conf/auto/mod_jk.conf


server.xml :




modJk="/local/apache/libexec/mod_jk.so" />






append="true" forwardAll="false"
modJk="/local/apache/libexec/mod_jk.so" />

workers.properties :

# BEGIN workers.properties
worker.list=ajp13
worker.ajp13.port=8009
# change this line to match apache ServerName and Host name in server.xml
worker.ajp13.host=crip-lxagal.ujf-grenoble.fr
worker.ajp13.type=ajp13
# END workers.properties


Many thanks in advance.

Helene Figueiredo




A 11:14 20/01/2003 -0500, vous avez écrit :

That's an Apache error, not a Tomcat error.  If I had to guess, I would say
there's a problem with either 1) your certificate or 2) Apache can't resolve
that hostname into an IP address.  But, it could easily be something else.

John

> -Original Message-
> From: Helene Figueiredo [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 20, 2003 11:09 AM
> To: Turner, John
> Cc: [EMAIL PROTECTED]
> Subject: RE: tomcat configuration with apache 1.3.27 ssl
>
>
> I make the configuration of apache ssl and tomcat with this lines in
> differents configuation files :
>
> in the httpsd.conf :
>
> 
> #SSLDisable
> SSLEnable
> DirectoryIndex index.php index.php3 index.cgi index.html Welcome.html
> Welcome.phtml
>  
>  Options FollowSymLinks Indexes
>  AllowOverride none
>  
>
> 
>
>
> Include /local/tomcat/conf/auto/mod_jk.conf
>
> In the server.xml :
>
> 
>
>  modJk="/local/apache/libexec/mod_jk.so" />
>
>
> 
>  defaultHost="crip-lxagal.ujf-grenoble.fr" debug="0">
>
>  append="true" forwardAll="false"
> modJk="/local/apache/libexec/mod_jk.so" />
>
> And in the workers.properties :
>
> # BEGIN workers.properties
> worker.list=ajp13
> worker.ajp13.port=8009
> # change this line to match apache ServerName and Host name
> in server.xml
> worker.ajp13.host=crip-lxagal.ujf-grenoble.fr
> worker.ajp13.type=ajp13
> # END workers.properties
>
>
> When I start tomcat, it's ok at the url :
>
> http://crip-lxagal.ujf-grenoble.fr:8080
>
> But when I try to start apache, I have this message in the
> error.log of apache :
>
> [Mon Jan 20 16:19:44 2003] [crit] Attempt to reinitialise SSL
> for server
> crip-lxagal.ujf-grenoble.fr
>
>
> I don't understand what is wrong.
> Have you some idea ?
>
> Thanks.
>
> Helene
>
>
>
> A 10:19 16/01/2003 -0500, vous avez écrit :
>
> >The connectors do not use SSL.  If you are using JK or JK2, the
> >communications between Apache and Tomcat are in the clear,
> not via SSL.  The
> >flow, as I understand it, is like this:
> >
> >client <-> SSL <-> apache <-> connector <-> tomcat
> >
> >The request is encrypted and decrypted by Apache before (and
> after) the
> >connector and Tomcat deal with it.
> >
> >Does that help?  Do you have any error messages, or other
> messages from
> >Apache, JK, or Tomcat logs?
> >
> >John
> >
> >
> > > -Original Message-
> > > From: Helene Figueiredo [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, January 16, 2003 10:12 AM
> > > To: Turner, John
> > > Cc: [EMAIL PROTECTED]
> > > Subject: RE: tomcat configuration with apache 1.3.27 ssl
> > >
> > >
> > > We are trying to configure tomcat on :
> > > operating system : linux redhat 7.3
> > > JDK : j2sdk1.4.1_01
> > > OpenSSL : openssl-0.9.6g
> > > Apache : apache 1.3.27+SSL
> > > Tomcat : Tomcat 4.1.18
> > >
> > > we have generate a certificate with openssl
> > > we have configure apache with a basic : ./configure, make,
> > > make install
> > > we have modified the httpsd.conf to include the certificate ssl
> > > we have modified the catalina.sh to include the java home
> > > when we use the connector no-ssl, tomcat is ok on the url
> http://
> > > but when we use the connector ssl, there is no tomcat at
> the url ...
> > >
> > > Do you have an idea ???
> > >
> > > Many thanks.
> > >
> > >
> > >
> > >
> > > A 08:06 16/01/2003 -0500, vous avez écrit :
> > >
> > > >Please be more specific.  What problems are you
> experiencing?  What
> > > >connector are you using?  What is your configuration,
> > > operating system, JDK
> > > >version, etc. etc.?
> > > >
> > > >John
> > > >
> 

Re: Pick a Platform - Linux, Windows, Unix, Solaris...

2003-01-21 Thread Andoni
I realise this may be contentious so if you wish to email me directly that's
fine.

I would very much like your opinions on this though.

The Op Sys part particularly.

Andoni.


- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, January 21, 2003 12:34 PM
Subject: RE: Pick a Platform - Linux, Windows, Unix, Solaris...


>
> You're begging for a flame war.  Use the platform that works for you.
>
> The current stable release of the 4.1 tree is 4.1.18.  Of the 4.0 tree it
is
> (I think) 4.0.6.
>
> John
>
>
> > -Original Message-
> > From: Andoni [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 21, 2003 7:23 AM
> > To: Tomcat Users List
> > Subject: Pick a Platform - Linux, Windows, Unix, Solaris...
> >
> >
> > If you could pick any platform to run Tomcat on what would it be.
> >
> > Also what version of Tomcat is now the one to go with?
> > I.e. stable, reliable, etc.
> >
> > Andoni.
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




tomcat4.1.18 & iis5 - new user

2003-01-21 Thread John Ruffin

I'm running win2k, tc4.1.18, iis5, j2sdk1.4.1. 

I've added the the isapi_redirect.dll to the "IIS Manager".
Question 1: Is this SOP or should I add it to all websites iis is managing?

I can run the examples from http://localhost/examples with no problem.

I have another website that I'm hosting, let's call it widget.com.  I can't get iis to 
forward widget.com jsp's to tomcat.

I know I need to read up on server.xml and I plan to today, but for now :  
Question 2 - is there something I need to do in order for non-localhost websites on 
iis to forward .jsp requests to tomcat?



 uriworkermap.properties 
# Default worker to be used through our mappings
default.worker=ajp13
# Sites to be redirected to Tomcat
/examples=$(default.worker)
/examples/*=$(default.worker)
/app1=ajp13
/app1/*=ajp13

 end uriworkermap.properties 

 worker.properties 
#NOTE: I'm just going to list the uncommented lines
workers.tomcat_home=C:\Tomcat 4.1
workers.java_home=C:\j2sdk1.4.1
ps=\
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
...

 end worker.properties 



Thanks for your feedback.








RE: Pick a Platform - Linux, Windows, Unix, Solaris...

2003-01-21 Thread Andy Eastham
Adoni,

Version 4.1.18 seems to be the current one and seems to be stable for me.

As for platforms, the best one depends on the situation.

Personal use: go for your favourite platform.

Customer use:  Ask them what their favourite platform is.  If it's windows
protest mildly, tell them windows sucks, then install it on windows anyway.

As it's all written in Java, you basically run the same code, so it's down
to the Java VM.  Choose any platform that has a decent j2sdk1.4
implementation.

Actually Tomcat works fine on windows, but some of the connectors that
connect web servers to tomcat are less reliable on windows.  If you're just
running tomcat standalone, this doesn't matter

Andy

> -Original Message-
> From: Andoni [mailto:[EMAIL PROTECTED]]
> Sent: 21 January 2003 12:23
> To: Tomcat Users List
> Subject: Pick a Platform - Linux, Windows, Unix, Solaris...
>
>
> If you could pick any platform to run Tomcat on what would it be.
>
> Also what version of Tomcat is now the one to go with?
> I.e. stable, reliable, etc.
>
> Andoni.
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How to Run Apache and Tomcat separately!!!!

2003-01-21 Thread Jacob Kjome
Hi Vivek,

The following was posted to the list a while ago.  I don't have the 
archived URL for it, so I'm just re posting it here.  Hopefully it will 
help you out.  Note that it was not written by me so, if you have question, 
I'm afraid I won't be of much help.

Jake



Here it goes.

Machine  A (Apache), Machine B (tomcat)
-

httpd.conf changes...
-
Below # LoadModule foo_module modules/mod_foo.so

Add following lines
#
# Load mod_jk
#
 LoadModule jk_module libexec/mod_jk.so
#
# Configure mod_jk
#
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel debug

Below DocumentRoot "/usr/local/apache/htdocs"

Add following lines...

JkMount /examples ajp13
JkMount /examples/* ajp13

(if you want to configure a application examples running under webapps
on tomcat, just specify  /examples, you need not sepcify the full path
of the application)

Then create workers.properties under $Apache_Home$/conf/  like this

# In Unix, we use forward slashes:
ps=/

# list the workers by name
worker.list=ajp13

#
worker.ajp13.port=8009(ajp13 port from server.xml on tomcat machine)
worker.ajp13.host=hostname(Machine B)
worker.ajp13.type=ajp13

(no need to define tomcat_home and java_home parameters here, you define
them on catalina.sh on tomcat machine)

this is all you need to do on apache machine...

server.xml changes on  Machine B(tomcat machine)
--

Set the required environment variables JAVA_HOME AND CATALINA_HOME in
$TOMCAT_HOME$/bin/catalina.sh

Commen out the Standalone HTTP port(port 8080) Connector.




Also Comment out the WARP connector

  



Change the both the  Tag and  tag defaultHost to tomcat
hostName(ex: tomcat.apache.com)
(This should match with your workers.properties host name.)


  
unpackWARs="true">
  


start tomcat and apache, you should be able to access examples from
apache machine

I have pretty much followed the http://www.ubeans.com/tomcat/
documentation..many many thanks to Pascal Forget.


Let me know, how it goes...

-Raj




At 02:26 PM 1/21/2003 +0530, you wrote:
Hi,
   I have apache and tomcat running on the same localhost and
communicating over mod_jk. I want to run them on different machines.
What changes do I need to make  and where?

Thanks in Advance
Regards

Vivek


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



!!!HELP!!! how to execute an external .exe-file (+Parameters) thatcreates data-files I want to use later in my servlet

2003-01-21 Thread Patrick Kosiol
Hi,

I'm runnung TomCat 4.0.4 and I want to start an external .exe-File.
My Code:

 String[] runString = {relativeDataPath + "data.exe",
   parameter0, parameter1, parameter2, parameter3};
 Process p = Runtime.getRuntime().exec(runString);
 System.out.println(runString);
 if(p.waitFor() == 0){
   

The 'data.exe'-File is placed in 
$CATALINA_HOME/webapps/ROOT/relativeDataPath so it should be no problem 
to access this File. The Number of  Parameters etc. is OK.
But I get the following Error-Message:

java.io.IOException: CreateProcess: 'relativeDataPath'/bfpldata.exe 
parameter0 parameter1 parameter2 parameter3 error=2

error=2 means imho that the File is not found. How can I execute my file 
to do that, what I want. Is it possible that the process can create 
files in the Tomcat folders?


Thx
Patrick


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: !!!HELP!!! how to execute an external .exe-file (+Parameters) that creates data-files I want to use later in my servlet

2003-01-21 Thread ningr
I met the same problems under linux, maybe you should put the data.exe in the 
directory $CATALINA_HOME/bin, and
Process p = Runtime.getRuntime().exec( "./data.exe" );
you can try it.

- Original Message - 
From: "Patrick Kosiol" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 21, 2003 10:01 PM
Subject: !!!HELP!!! how to execute an external .exe-file (+Parameters) that creates 
data-files I want to use later in my servlet


> Hi,
> 
> I'm runnung TomCat 4.0.4 and I want to start an external .exe-File.
> My Code:
> 
>   String[] runString = {relativeDataPath + "data.exe",
> parameter0, parameter1, parameter2, parameter3};
>   Process p = Runtime.getRuntime().exec(runString);
>   System.out.println(runString);
>   if(p.waitFor() == 0){
> 
> 
> The 'data.exe'-File is placed in 
> $CATALINA_HOME/webapps/ROOT/relativeDataPath so it should be no problem 
> to access this File. The Number of  Parameters etc. is OK.
> But I get the following Error-Message:
> 
> java.io.IOException: CreateProcess: 'relativeDataPath'/bfpldata.exe 
> parameter0 parameter1 parameter2 parameter3 error=2
> 
> error=2 means imho that the File is not found. How can I execute my file 
> to do that, what I want. Is it possible that the process can create 
> files in the Tomcat folders?
> 
> 
> Thx
> Patrick
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 


RE: Caucho Resin to Tomcat Conversion

2003-01-21 Thread Shapira, Yoav
Hi,
Very interesting.  Thank you for the account.  I'm not going to get into
a tomcat vs. resin (or vs. other for that matter) debate.  My question
is: why did you change from Resin to Tomcat?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Edgar Dollin [mailto:[EMAIL PROTECTED]]
>Sent: Monday, January 20, 2003 2:46 PM
>To: '[EMAIL PROTECTED]'
>Subject: Caucho Resin to Tomcat Conversion
>
>I recently completed a cutover of moderately sized app from Resin to
Tomcat
>and just wanted to put my experiences somewhere for posterity.
>
>First Resin allows out of order xml documents.  Tomcat goes by the book
>with
>xml.  So web.xml, struts-config.xml and any other xml files you have
must
>but well structured satisfy the DTD.  With Resin it is very easy to get
>away
>from the DTD requirements.
>
>The second issue is that resin is very creative about the tld's.  You
can
>be
>sloppy in both the jsp files and the web.inf about where they are and
in
>most cases resin will find them.  Moving to tomcat you will find any
that
>are mislocated.  If there are tld's inside of jar files, resin finds
them
>with basic syntax.  Tomcat needs the full taglib uri in order to find a
tld
>inside a jar.
>
>Resin allows you to mix and match xml formated jsp files with standard
>format jsp files.  In tomcat you really should stick to one format or
the
>other.  When making your choice which format to use, remember in xml
format
>you cannot use jsp expressions as attribute values.  Also, in tomcat
with
>the xml format, the assumed page contentType is text/xml, in Resin it
is
>text/html.  Resin allows attribute specification in xml files without
>quotes, tomcat does not.  Resin allows standard jsp scriptlets inside
xml
>files, tomcat does not.
>
>Resin custom tag lifespan is different than Tomcat.  Tomcat keeps them
>alive
>until memory or some other issue forces a release.  Resin dumps the
custom
>tags when the page has completed processing.  Keep this in mind if you
>share
>information between tags, you keep counters in tags, or you have tags
that
>are instantiated with various numbers of parameters.
>
>In any event, if you are developing under Resin and want to deploy on
some
>other container, beware that it lets you do lots of non standard stuff.
>
>Edgar
>

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: !!!HELP!!! how to execute an external .exe-file (+Parameters)that creates data-files I want to use later in my servlet

2003-01-21 Thread Patrick Kosiol
Hi,

that might be a problem because my data.exe needs access to some 
data-files placed in a special relative path from its. And this programm 
also creates other files (they were also placed relative to its 
position) and I must also be able to access these files through out the 
Tomcat


Patrick

ningr wrote:

I met the same problems under linux, maybe you should put the data.exe in the directory $CATALINA_HOME/bin, and
Process p = Runtime.getRuntime().exec( "./data.exe" );
you can try it.

- Original Message - 
From: "Patrick Kosiol" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 21, 2003 10:01 PM
Subject: !!!HELP!!! how to execute an external .exe-file (+Parameters) that creates data-files I want to use later in my servlet


 

Hi,

I'm runnung TomCat 4.0.4 and I want to start an external .exe-File.
My Code:

 String[] runString = {relativeDataPath + "data.exe",
   parameter0, parameter1, parameter2, parameter3};
 Process p = Runtime.getRuntime().exec(runString);
 System.out.println(runString);
 if(p.waitFor() == 0){
   

The 'data.exe'-File is placed in 
$CATALINA_HOME/webapps/ROOT/relativeDataPath so it should be no problem 
to access this File. The Number of  Parameters etc. is OK.
But I get the following Error-Message:

java.io.IOException: CreateProcess: 'relativeDataPath'/bfpldata.exe 
parameter0 parameter1 parameter2 parameter3 error=2

error=2 means imho that the File is not found. How can I execute my file 
to do that, what I want. Is it possible that the process can create 
files in the Tomcat folders?


Thx
Patrick


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 

   



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




lifetime of servlet instance and of instance-spawned threads

2003-01-21 Thread Mark Francillon

Hi.

Servlet spec 2.3 says (section 2.3.4, 'End of Service'): "...Before the
servlet container calls the destroy method, it must allow any threads that
are currently running in the service method of the servlet to complete
execution, or exceed a server defined time limit".

Questions:
  1. Is Tomcat's behavior on this point user-configurable (and if so
  how)?
  2. If it's not, I'd appreciate any pointers to information about
  exactly how Tomcat handles this.

[...On re-reading this passage from the servlets spec, I realize that
"any threads that are currently running in the service method" is murky to
me. Is this supposed to be more restrictive than "any threads that have
ever been started by the servlet instance (including during init()) and
that are still running"?]


Thanks much,

Mark


Mark Francillon
Marlboro College
[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How do I get the absolute path of a file in a directory abov e WEB-INF directory of my web application?

2003-01-21 Thread Shapira, Yoav
Howdy,
I meant entirely using a 3rd party logging toolkit, such as log4j
(jakarta.apache.org/log4j).  Tomcat provides great logging capabilities
for a web server, but is not a full-featured logging toolkit nor should
it be IMHO.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Madhava Reddy [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 21, 2003 3:34 AM
>To: 'Tomcat Users List'
>Subject: RE: How do I get the absolute path of a file in a directory
abov e
>WEB-INF directory of my web application?
>
>Hi Yaov,
>
>All other writing should be done to directories/files declared as
>parameters to your context or servlets.  For example:
>
>  logFile
>  /tmp/blahblahLogs/blahblahLogFile.txt
>
>
>This way other people using/deploying your app can configure these
>settings to a directory that suits their deployment.
>
>
>I have my own doubts about this. The log files created contains all the
>mapping or web applications, and some log files contain the each
request
>information. Loger contains all the mapping informaion and Valve
contains
>all the request information. What if I do not want to have all these
>information in my log file. I want to have meaningful infomation only.
>Like,
>user -- login time -- log out time -- time of usage -- user type (
>applicaiton dependent ) -- etc etc. I cheked out all the levels for
>logging.
>Most restrictive logging also contain the basic mapping/request
>information.
>
>Given above requirement, is there a way to do it with out creating our
own
>log file, accessing and writing using java ? If there is no way of
doing
>using Tomcat logs, then I need to use my own logs.
>
>Please tell me how to do this?
>
>Thanks
>Madhav

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Please help with LogConfigurationException

2003-01-21 Thread Shapira, Yoav
Howdy,
A couple of things: 

- It's commons-logging, not tomcat, that's throwing the exception.  It's
most likely misconfigured, i.e. you have some jars (probably the
commons-logging jars themselves) in the wrong place.

- Can you temporarily take out commons logging, i.e. code directly to
JDK 1.4 logging or log4j or whatever you want, and see if the problem
goes away?

- Try to ask on the commons-logging mailing list.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Collins, Jim [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 21, 2003 4:24 AM
>To: 'Tomcat Users List'
>Subject: RE: Please help with LogConfigurationException
>
>Hi,
>
>I have still had no feedback  at all on this. Can anyone please help I
am
>running out of hair to pull out.
>
>Regards
>
>Jim
>
>> -Original Message-
>> From: Collins, Jim [mailto:[EMAIL PROTECTED]]
>> Sent: 20 January 2003 09:47
>> To: 'Tomcat Users List'
>> Subject: Please help with LogConfigurationException
>>
>>
>> Hi,
>>
>> I am still getting this Exception thrown. Has anyone else
>> ever had this and
>> know of a fix. Any help at all would be appreciated as this
>> is causing me a
>> lot of problems
>>
>> Thanks
>>
>> Jim.
>>
>> > A quick update. I have now copied the log4J jar file to
>> > commons/lib and
>> > restarted the server so that is now uses log4J instead of the
>> > JDK1.4 logger.
>> > After a couple of hours I got this error:
>> >
>> > org.apache.commons.logging.LogConfigurationException:
>> > org.apache.commons.logging.LogConfigurationException:
>> > org.apache.commons.logging.LogConfigurationException: Class
>> > org.apache.commons.logging.impl.Log4JCategoryLog does not
>> > implement Log
>> > at
>> > org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
>> > FactoryImpl.ja
>> > va:530)
>> > at
>> > org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Log
>> > FactoryImpl.ja
>> > va:285)
>> > at
>> > org.apache.commons.logging.LogFactory.getLog(LogFactory.java:401)
>> > at
>> > org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandl
>> > er.java:97)
>> > at org.apache.tomcat.util.log.Log.log(Log.java:198)
>> > at org.apache.tomcat.util.log.Log.log(Log.java:192)
>> > at org.apache.tomcat.util.log.Log.log(Log.java:174)
>> > at
>> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
>> > ThreadPool.jav
>> > a:536)
>> > at java.lang.Thread.run(Thread.java:536)
>> > Caused by: org.apache.commons.logging.LogConfigurationException:
>> > org.apache.commons.logging.LogConfigurationException: Class
>> > org.apache.commons.logging.impl.Log4JCategoryLog does not
>> > implement Log
>> > at
>> > org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct
>> > or(LogFactoryI
>> > mpl.java:415)
>> > at
>> > org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
>> > FactoryImpl.ja
>> > va:523)
>> > ... 8 more
>> > Caused by:
>> org.apache.commons.logging.LogConfigurationException: Class
>> > org.apache.commons.logging.impl.Log4JCategoryLog does not
>> > implement Log
>> > at
>> > org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct
>> > or(LogFactoryI
>> > mpl.java:411)
>> > ... 9 more
>> >
>> > Could anyone please give me some clue as to what I can do.
>> I have not
>> > changed anything for some time now and prior to these errors
>> > that have just
>> > started happening I have not had to restart the server for
>> > weeks. Now I am
>> > having to start it more than once every day.
>> >
>> > Thanks
>> >
>> > Jim.
>> >
>> > > -Original Message-
>> > > From: Collins, Jim [mailto:[EMAIL PROTECTED]]
>> > > Sent: 17 January 2003 12:31
>> > > To: 'Tomcat Users List'
>> > > Subject: RE: Log Error
>> > >
>> > >
>> > > I have upgraded the JDK to 1.4.1 and it is still happening.
>> > >
>> > > > -Original Message-
>> > > > From: Collins, Jim
>> > > > Sent: 17 January 2003 10:04
>> > > > To: 'Tomcat Users List'
>> > > > Subject: Log Error
>> > > >
>> > > >
>> > > > Hi,
>> > > >
>> > > > I am using Tomcat4.1.10 and JDK1.4.0 and I have started to
>> > > > get the following error message after which Tomcat crashes.
>> > > >
>> > > > org.apache.commons.logging.LogConfigurationException:
>> > > > org.apache.commons.logging.LogConfigurationException:
>> > > > org.apache.commons.logging.LogConfigurationException: Class
>> > > > org.apache.commons.logging.impl.Jdk14Logger does not
>> implement Log
>> > > > at
>> > > > org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
>> > > > FactoryImpl.java:530)
>> > > > at
>> > > > org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Log
>> > > > FactoryImpl.java:285)
>> > > > at
>> > > >
>> org.apache.commons.logging.LogFactory.getLog(LogFactory.java:401)
>> > > > at
>> > > > org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandl
>> > > > er.java:97)
>> > > > at org.ap

Re: !!!HELP!!! how to execute an external .exe-file (+Parameters)that creates data-files I want to use later in my servlet

2003-01-21 Thread Mr. Cristian Romanescu

here's a  sample of code that would send an e-mail using mail command 
under Linux.
I guess that the exe probably should be within your PATH
As you can observe, cmd[0] is the name of the app
cmd[1], cmd[2], .are command line arguments to the app

   private static void sendMail(String mailTo, String subject, String 
body) throws IOException {
   String []cmd = new String[3];
   cmd[0] = new String("mail");
   cmd[1] = new String("-s SUBJECT - " + subject);
   cmd[2] = new String(mailTo);
   Process mailProc = Runtime.getRuntime().exec(cmd);
   OutputStream outStream = mailProc.getOutputStream();
   outStream.write(body.getBytes());
   outStream.flush();
   outStream.close();
   }

hope this helps

c.


Patrick Kosiol wrote:

Hi,

I'm runnung TomCat 4.0.4 and I want to start an external .exe-File.
My Code:

 String[] runString = {relativeDataPath + "data.exe",
   parameter0, parameter1, parameter2, parameter3};
 Process p = Runtime.getRuntime().exec(runString);
 System.out.println(runString);
 if(p.waitFor() == 0){
   

The 'data.exe'-File is placed in 
$CATALINA_HOME/webapps/ROOT/relativeDataPath so it should be no 
problem to access this File. The Number of  Parameters etc. is OK.
But I get the following Error-Message:

java.io.IOException: CreateProcess: 'relativeDataPath'/bfpldata.exe 
parameter0 parameter1 parameter2 parameter3 error=2

error=2 means imho that the File is not found. How can I execute my 
file to do that, what I want. Is it possible that the process can 
create files in the Tomcat folders?


Thx
Patrick


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




could you help me please?

2003-01-21 Thread [EMAIL PROTECTED]
Hi all,sorry for bothering you ;-)
I'm just a student trying to develop some Servlet...
I'm trying to use COM ports from a servlet running in TOMCAT 3.2.4 ,but i get the 
error message :"Port COM1 does not exist." 
What can i do to make com ports visible from a servlet?
Could you help me please? 
My email address is [EMAIL PROTECTED]

Thanx in advance :-) looking forward to your answer.
Best regards,
Edo


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: lifetime of servlet instance and of instance-spawned threads

2003-01-21 Thread Shapira, Yoav
Hi,

>Questions:
>  1. Is Tomcat's behavior on this point user-configurable (and if so
>  how)?
>  2. If it's not, I'd appreciate any pointers to information about
>  exactly how Tomcat handles this.
>
>[...On re-reading this passage from the servlets spec, I realize that
>"any threads that are currently running in the service method" is murky
to
>me. Is this supposed to be more restrictive than "any threads that have
>ever been started by the servlet instance (including during init()) and
>that are still running"?]

Yes, it's supposed to be much more restrictive.  Any threads in the
service() methods means exactly that, and nothing more.  If you start
any threads during init(), destroy(), or wherever (including service())
for that matter, you are responsible for their shutdown on system
shutdown.  Typically the simplest way to avoid problems here is to mark
these threads as daemons.  There are other solutions should you need
them.

The JVM will not exit if there are any user non-daemon threads running.
The JavaDoc for the java.lang.Thread class is pretty clear on this
point.  You have to have an explicit System.exit() call in your code to
handle that case, which of course is hazardous in other ways.
Alternatively, have some sort of a singleton start all your threads and
on shutdown let the singleton know to stop/kill them all.  One possible
place to do this (that's much better for this purpose than a servlet's
destroy() method is a ServletContextListener's contextDestroyed() event.

Tomcat handles this in a strictly standards-compliant (which is not to
say ideal, but which I actually like) way.  Tomcat will exit, i.e. stop
listening on that port and stop its own threads, properly.  However, the
JVM itself will keep running.  You will not be able to start another
tomcat on the same port (you'll get a BindException, Address Already In
Use).  So this is one situation you want to avoid.

Yoav Shapira
Millennium ChemInformatics

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Help java.sql.SQLException: JZ006: Caught IOException.java.net.SocketException: Broke

2003-01-21 Thread Iván Escobedo
Hello, I need to know what is this error, I'm using Tomcat, Sybase


java.sql.SQLException: JZ006: Caught IOException.java.net.SocketException: Broke
n pipe
at com.sybase.jdbc.ErrorMessage.raiseError(ErrorMessage.java)
at com.sybase.tds.Tds.language(Tds.java)
at com.sybase.jdbc.SybStatement.sendQuery(SybStatement.java)
at com.sybase.jdbc.SybStatement.executeQuery(SybStatement.java)
at com.sybase.jdbc.SybStatement.executeQuery(SybStatement.java)
at com.nacion.register.UserAccessFilter.ExecQuery(UserAccessFilter.java:
187)
at com.nacion.register.UserAccessFilter.ValidAccess(UserAccessFilter.jav
a:81)
at com.nacion.register.UserAccessFilter.SaveUserAccess(UserAccessFilter.
java:54)
at com.nacion.register.UserAccessFilter.doFilter(UserAccessFilter.java:3
7)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:260)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:471)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
2396)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:170)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:22
3)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:405)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:508)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:533)
at java.lang.Thread.run(Thread.java:536)

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: could you help me please?

2003-01-21 Thread Peter Choe
isn't COM microsoft specific?

At 06:59 AM 1/21/2003, you wrote:

Hi all,sorry for bothering you ;-)
I'm just a student trying to develop some Servlet...
I'm trying to use COM ports from a servlet running in TOMCAT 3.2.4 ,but i 
get the error message :"Port COM1 does not exist."
What can i do to make com ports visible from a servlet?
Could you help me please?
My email address is [EMAIL PROTECTED]

Thanx in advance :-) looking forward to your answer.
Best regards,
Edo


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: could you help me please?

2003-01-21 Thread Turner, John

He's talking about COM ports, as in serial ports (COM1, COM2, etc.).

John


> -Original Message-
> From: Peter Choe [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 21, 2003 9:31 AM
> To: Tomcat Users List
> Subject: Re: could you help me please?
> 
> 
> isn't COM microsoft specific?
> 
> At 06:59 AM 1/21/2003, you wrote:
> >Hi all,sorry for bothering you ;-)
> >I'm just a student trying to develop some Servlet...
> >I'm trying to use COM ports from a servlet running in TOMCAT 
> 3.2.4 ,but i 
> >get the error message :"Port COM1 does not exist."
> >What can i do to make com ports visible from a servlet?
> >Could you help me please?
> >My email address is [EMAIL PROTECTED]
> >
> >Thanx in advance :-) looking forward to your answer.
> >Best regards,
> >Edo
> >
> >
> >--
> >To unsubscribe, e-mail:   
> 
> >For additional commands, e-mail: 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How do I get the absolute path of a file in a directory abov e WEB-INF directory of my web application?

2003-01-21 Thread Madhava Reddy

Howdy,
>>I meant entirely using a 3rd party logging toolkit, such as log4j
(jakarta.apache.org/log4j).  Tomcat provides great logging capabilities
for a web server, but is not a full-featured logging toolkit nor should
it be IMHO.

Yes, I aggree its good idea to use log4j. Time a problem, you know. It takes
more time for me to use those. 

I was not sure whether we can avoid mapping/request information in Logger or
Valve ( tomcat logging system). any idea?  

Thanks 
Madhav


>-Original Message-
>From: Madhava Reddy [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 21, 2003 3:34 AM
>To: 'Tomcat Users List'
>Subject: RE: How do I get the absolute path of a file in a directory
abov e
>WEB-INF directory of my web application?
>
>Hi Yaov,
>
>All other writing should be done to directories/files declared as
>parameters to your context or servlets.  For example:
>
>  logFile
>  /tmp/blahblahLogs/blahblahLogFile.txt
>
>
>This way other people using/deploying your app can configure these
>settings to a directory that suits their deployment.
>
>
>I have my own doubts about this. The log files created contains all the
>mapping or web applications, and some log files contain the each
request
>information. Loger contains all the mapping informaion and Valve
contains
>all the request information. What if I do not want to have all these
>information in my log file. I want to have meaningful infomation only.
>Like,
>user -- login time -- log out time -- time of usage -- user type (
>applicaiton dependent ) -- etc etc. I cheked out all the levels for
>logging.
>Most restrictive logging also contain the basic mapping/request
>information.
>
>Given above requirement, is there a way to do it with out creating our
own
>log file, accessing and writing using java ? If there is no way of
doing
>using Tomcat logs, then I need to use my own logs.
>
>Please tell me how to do this?
>
>Thanks
>Madhav

--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: Please help with LogConfigurationException

2003-01-21 Thread Collins, Jim
Hi Yoav,

Thanks for your reply. I could see it was commons logging throwing the
exception and I tried changing the actual logging implementation that it
uses to log4J to see if that would stop it happening but it did not. I don't
really think it is a commons logging problem either because it works and
logs correctly until this exception get thrown.

Last week this exception was being thrown at least twice a day however since
Friday no more exceptions have been thrown. It just seems bizarre to me that
it should suddenly start happening and then stop.

Regards

Jim.

> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
> Sent: 21 January 2003 14:24
> To: Tomcat Users List
> Subject: RE: Please help with LogConfigurationException
> 
> 
> Howdy,
> A couple of things: 
> 
> - It's commons-logging, not tomcat, that's throwing the 
> exception.  It's
> most likely misconfigured, i.e. you have some jars (probably the
> commons-logging jars themselves) in the wrong place.
> 
> - Can you temporarily take out commons logging, i.e. code directly to
> JDK 1.4 logging or log4j or whatever you want, and see if the problem
> goes away?
> 
> - Try to ask on the commons-logging mailing list.
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-Original Message-
> >From: Collins, Jim [mailto:[EMAIL PROTECTED]]
> >Sent: Tuesday, January 21, 2003 4:24 AM
> >To: 'Tomcat Users List'
> >Subject: RE: Please help with LogConfigurationException
> >
> >Hi,
> >
> >I have still had no feedback  at all on this. Can anyone 
> please help I
> am
> >running out of hair to pull out.
> >
> >Regards
> >
> >Jim
> >
> >> -Original Message-
> >> From: Collins, Jim [mailto:[EMAIL PROTECTED]]
> >> Sent: 20 January 2003 09:47
> >> To: 'Tomcat Users List'
> >> Subject: Please help with LogConfigurationException
> >>
> >>
> >> Hi,
> >>
> >> I am still getting this Exception thrown. Has anyone else
> >> ever had this and
> >> know of a fix. Any help at all would be appreciated as this
> >> is causing me a
> >> lot of problems
> >>
> >> Thanks
> >>
> >> Jim.
> >>
> >> > A quick update. I have now copied the log4J jar file to
> >> > commons/lib and
> >> > restarted the server so that is now uses log4J instead of the
> >> > JDK1.4 logger.
> >> > After a couple of hours I got this error:
> >> >
> >> > org.apache.commons.logging.LogConfigurationException:
> >> > org.apache.commons.logging.LogConfigurationException:
> >> > org.apache.commons.logging.LogConfigurationException: Class
> >> > org.apache.commons.logging.impl.Log4JCategoryLog does not
> >> > implement Log
> >> > at
> >> > org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
> >> > FactoryImpl.ja
> >> > va:530)
> >> > at
> >> > org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Log
> >> > FactoryImpl.ja
> >> > va:285)
> >> > at
> >> > org.apache.commons.logging.LogFactory.getLog(LogFactory.java:401)
> >> > at
> >> > org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandl
> >> > er.java:97)
> >> > at org.apache.tomcat.util.log.Log.log(Log.java:198)
> >> > at org.apache.tomcat.util.log.Log.log(Log.java:192)
> >> > at org.apache.tomcat.util.log.Log.log(Log.java:174)
> >> > at
> >> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> >> > ThreadPool.jav
> >> > a:536)
> >> > at java.lang.Thread.run(Thread.java:536)
> >> > Caused by: org.apache.commons.logging.LogConfigurationException:
> >> > org.apache.commons.logging.LogConfigurationException: Class
> >> > org.apache.commons.logging.impl.Log4JCategoryLog does not
> >> > implement Log
> >> > at
> >> > org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct
> >> > or(LogFactoryI
> >> > mpl.java:415)
> >> > at
> >> > org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
> >> > FactoryImpl.ja
> >> > va:523)
> >> > ... 8 more
> >> > Caused by:
> >> org.apache.commons.logging.LogConfigurationException: Class
> >> > org.apache.commons.logging.impl.Log4JCategoryLog does not
> >> > implement Log
> >> > at
> >> > org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct
> >> > or(LogFactoryI
> >> > mpl.java:411)
> >> > ... 9 more
> >> >
> >> > Could anyone please give me some clue as to what I can do.
> >> I have not
> >> > changed anything for some time now and prior to these errors
> >> > that have just
> >> > started happening I have not had to restart the server for
> >> > weeks. Now I am
> >> > having to start it more than once every day.
> >> >
> >> > Thanks
> >> >
> >> > Jim.
> >> >
> >> > > -Original Message-
> >> > > From: Collins, Jim [mailto:[EMAIL PROTECTED]]
> >> > > Sent: 17 January 2003 12:31
> >> > > To: 'Tomcat Users List'
> >> > > Subject: RE: Log Error
> >> > >
> >> > >
> >> > > I have upgraded the JDK to 1.4.1 and it is still happening.
> >> > >
> >> > > > -Original Message-
> >> > > > From: Collins, Jim
> >> >

RE: How do I get the absolute path of a file in a directory abov e WEB-INF directory of my web application?

2003-01-21 Thread Shapira, Yoav
Howdy,

>Yes, I aggree its good idea to use log4j. Time a problem, you know. It
>takes more time for me to use those.

Yes, it does.  But when debugging a problem takes 1 times less, you
won't be complaining ;)

>I was not sure whether we can avoid mapping/request information in
Logger
>or Valve ( tomcat logging system). any idea?

All Loggers and Valve elements in server.xml are optional.  Comment them
all out and see what you get ;)  Then comment them back in if you'd
like, and experiment with their verbosity levels.

Yoav Shapira
Millennium ChemInformatics

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Caucho Resin to Tomcat Conversion

2003-01-21 Thread Edgar Dollin
I recently completed a cutover of moderately sized app from Resin to Tomcat
and just wanted to put my experiences somewhere for posterity.

First Resin allows out of order xml documents.  Tomcat goes by the book with
xml.  So web.xml, struts-config.xml and any other xml files you have must
but well structured satisfy the DTD.  With Resin it is very easy to get away
from the DTD requirements.

The second issue is that resin is very creative about the tld's.  You can be
sloppy in both the jsp files and the web.inf about where they are and in
most cases resin will find them.  Moving to tomcat you will find any that
are mislocated.  If there are tld's inside of jar files, resin finds them
with basic syntax.  Tomcat needs the full taglib uri in order to find a tld
inside a jar.

Resin allows you to mix and match xml formated jsp files with standard
format jsp files.  In tomcat you really should stick to one format or the
other.  When making your choice which format to use, remember in xml format
you cannot use jsp expressions as attribute values.  Also, in tomcat with
the xml format, the assumed page contentType is text/xml, in Resin it is
text/html.  Resin allows attribute specification in xml files without
quotes, tomcat does not.  Resin allows standard jsp scriptlets inside xml
files, tomcat does not.

Resin custom tag lifespan is different than Tomcat.  Tomcat keeps them alive
until memory or some other issue forces a release.  Resin dumps the custom
tags when the page has completed processing.  Keep this in mind if you share
information between tags, you keep counters in tags, or you have tags that
are instantiated with various numbers of parameters.
 
The last major difference between Tomcat and Resin is that if cookies are
enabled Resin assigns the session even if container managed security is not
used.

In any event, if you are developing under Resin and want to deploy on some
other container, beware that it lets you do lots of non standard stuff.  On
the other hand it makes development a lot friendlier.

Edgar
 




RE: How do I get the absolute path of a file in a directory abov e WEB-INF directory of my web application?

2003-01-21 Thread Madhava Reddy

>>All Loggers and Valve elements in server.xml are optional.  Comment them
all out and see what you get ;)  Then comment them back in if you'd
like, and experiment with their verbosity levels.

I tried this out, but I was always getting some mapping/request information.
I dont find a way out !! 

Madhav



Re: could you help me please?

2003-01-21 Thread Vinay
Does  COM ports  have anything to do with Tomcat and servlets
- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, January 21, 2003 9:32 AM
Subject: RE: could you help me please?


>
> He's talking about COM ports, as in serial ports (COM1, COM2, etc.).
>
> John
>
>
> > -Original Message-
> > From: Peter Choe [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 21, 2003 9:31 AM
> > To: Tomcat Users List
> > Subject: Re: could you help me please?
> >
> >
> > isn't COM microsoft specific?
> >
> > At 06:59 AM 1/21/2003, you wrote:
> > >Hi all,sorry for bothering you ;-)
> > >I'm just a student trying to develop some Servlet...
> > >I'm trying to use COM ports from a servlet running in TOMCAT
> > 3.2.4 ,but i
> > >get the error message :"Port COM1 does not exist."
> > >What can i do to make com ports visible from a servlet?
> > >Could you help me please?
> > >My email address is [EMAIL PROTECTED]
> > >
> > >Thanx in advance :-) looking forward to your answer.
> > >Best regards,
> > >Edo
> > >
> > >
> > >--
> > >To unsubscribe, e-mail:
> > 
> > >For additional commands, e-mail:
> > 
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: lifetime of servlet instance and of instance-spawned threads

2003-01-21 Thread Mark Francillon

Thanks for the response Yoav.

On Tue, 21 Jan 2003, Shapira, Yoav wrote:

> >[...On re-reading this passage from the servlets spec, I realize that
> >"any threads that are currently running in the service method" is murky
> to
> >me. Is this supposed to be more restrictive than "any threads that have
> >ever been started by the servlet instance (including during init()) and
> >that are still running"?]
>
...
>
> Tomcat handles this in a strictly standards-compliant (which is not to
> say ideal, but which I actually like) way.  Tomcat will exit, i.e. stop
> listening on that port and stop its own threads, properly.  However, the

Just one point of clarification here: Tomcat would "stop its own threads",
my servlet-spawned threads would keep executing, but when they terminate
destroy() on the servlet instance is still guaranteed to be called?


Thanks, Mark


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: could you help me please?

2003-01-21 Thread Turner, John

It does if you want to access one from a servlet.  I've never done it, but I
think you use the Java Communications API:

http://java.sun.com/products/javacomm/

John


> -Original Message-
> From: Vinay [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 21, 2003 9:43 AM
> To: Tomcat Users List
> Subject: Re: could you help me please?
> 
> 
> Does  COM ports  have anything to do with Tomcat and servlets
> - Original Message -
> From: "Turner, John" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Tuesday, January 21, 2003 9:32 AM
> Subject: RE: could you help me please?
> 
> 
> >
> > He's talking about COM ports, as in serial ports (COM1, COM2, etc.).
> >
> > John
> >
> >
> > > -Original Message-
> > > From: Peter Choe [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, January 21, 2003 9:31 AM
> > > To: Tomcat Users List
> > > Subject: Re: could you help me please?
> > >
> > >
> > > isn't COM microsoft specific?
> > >
> > > At 06:59 AM 1/21/2003, you wrote:
> > > >Hi all,sorry for bothering you ;-)
> > > >I'm just a student trying to develop some Servlet...
> > > >I'm trying to use COM ports from a servlet running in TOMCAT
> > > 3.2.4 ,but i
> > > >get the error message :"Port COM1 does not exist."
> > > >What can i do to make com ports visible from a servlet?
> > > >Could you help me please?
> > > >My email address is [EMAIL PROTECTED]
> > > >
> > > >Thanx in advance :-) looking forward to your answer.
> > > >Best regards,
> > > >Edo
> > > >
> > > >
> > > >--
> > > >To unsubscribe, e-mail:
> > > 
> > > >For additional commands, e-mail:
> > > 
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> >
> >
> 
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: could you help me please?

2003-01-21 Thread Mr. Cristian Romanescu
The problem isn't that easy.
First of all I developed an application using parallel port (it's a 
matter of choice :)):
I found a big issue accesing port from Java...finally my option was to 
write an dynamic library (dll) in Ms Visual C (because is directly in 
assembler)
where I wrote the basic I/O functions with parallel ports.
Then using JNI (Java Native Interface) I called the methods from java, 
wherever I wanted to send something to the parallel port.

Unfortunately this works fine only in '95/'98...in NT/2000 blah...you'll 
need privilege access (or you'll get privilege exception from kernel)
There is a way for this also...there is a program (i can't remember 
now... search google) which gives privileges access to ports to yer java 
virtual machine.
So I suppose you should start tomcat's JVM with this application 
launcher and then load the dll from there...

I wrote my app in Swing, so I can't help you further (ie where to put 
your dll or so...)


Hope this helps.

c.


[EMAIL PROTECTED] wrote:

Hi all,sorry for bothering you ;-)
I'm just a student trying to develop some Servlet...
I'm trying to use COM ports from a servlet running in TOMCAT 3.2.4 ,but i get the error message :"Port COM1 does not exist." 
What can i do to make com ports visible from a servlet?
Could you help me please? 
My email address is [EMAIL PROTECTED]

Thanx in advance :-) looking forward to your answer.
Best regards,
Edo 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 

 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: could you help me please?

2003-01-21 Thread Mr. Cristian Romanescu
Yeah, like John said, you could also use Java Comm api, but 
unfortunately in my project, when I wanted to send something to parallel 
port, the print spooler started,
then complaining about corrupted print jobs, so it seems that port isn't 
directly accesed...in the final. Maybe for COM ports does work


Turner, John wrote:

It does if you want to access one from a servlet.  I've never done it, but I
think you use the Java Communications API:

http://java.sun.com/products/javacomm/

John


 

-Original Message-
From: Vinay [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 9:43 AM
To: Tomcat Users List
Subject: Re: could you help me please?


Does  COM ports  have anything to do with Tomcat and servlets
- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, January 21, 2003 9:32 AM
Subject: RE: could you help me please?


   

He's talking about COM ports, as in serial ports (COM1, COM2, etc.).

John


 

-Original Message-
From: Peter Choe [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 9:31 AM
To: Tomcat Users List
Subject: Re: could you help me please?


isn't COM microsoft specific?

At 06:59 AM 1/21/2003, you wrote:
   

Hi all,sorry for bothering you ;-)
I'm just a student trying to develop some Servlet...
I'm trying to use COM ports from a servlet running in TOMCAT
 

3.2.4 ,but i
   

get the error message :"Port COM1 does not exist."
What can i do to make com ports visible from a servlet?
Could you help me please?
My email address is [EMAIL PROTECTED]

Thanx in advance :-) looking forward to your answer.
Best regards,
Edo


--
To unsubscribe, e-mail:
 


   

For additional commands, e-mail:
 





--
To unsubscribe, e-mail:

For additional commands, e-mail:


   

--
To unsubscribe, e-mail:
 


   

For additional commands, e-mail:
 


   


 


--
To unsubscribe, e-mail:   
   


For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 

 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: lifetime of servlet instance and of instance-spawned threads

2003-01-21 Thread Shapira, Yoav
Howdy,

>Just one point of clarification here: Tomcat would "stop its own
threads",
>my servlet-spawned threads would keep executing, but when they
terminate
>destroy() on the servlet instance is still guaranteed to be called?

No.  Destroy() on the servlet is guaranteed to be called when the
servlet specification says it should be called.  Same thing goes for the
servlet context listener's contextDestroyed() event.  Tomcat could
legally decide to swap out your servlet while some of the threads you
spawned from it are still executing.  Or someone could recycle the
server as part of normal (nightly/weekely/whatever) operating procedure.
In that case, destroy() would get called while your threads are still
executing, and you'll end up in the bad state described in my previous
message.

Yoav Shapira
Millennium ChemInformatics 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: HP-UX 10.20 + Oracle

2003-01-21 Thread John Clark
In case it is of use to anybody else, this is what worked in the end.

HP-UX 10.20, Oracle 8.0.4, Tomcat 3.3.1 (JDK 1.1.8)

1. Install the JDBC package off the Oracle CD onto the HP server
2. This installs the correct classes111.zip and shared library for that
version of Oracle
3. Make sure that the shared library (liboci804jdbc.sl) has full execute
permissions
4. In the account controlling Tomcat set SHLIB_PATH=$ORACLE_HOME/lib
5. Also copy $ORACLE_HOME/jdbc/lib/classes111.zip to $TOMCAT_HOME/
lib/common/classes111.jar
6. I still couldn't get the OCI driver to work, but the THIN driver does.

Thanks to everyone that helped.

John

-Original Message-
From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] 
Sent: 08 January 2003 15:09
To: 'Tomcat Users List'
Subject: RE: HP-UX 10.20 + Oracle

John,

I sent two version of the classes111.jar we have used on our HP-UX 11.0
system to your account in order not to clutter up people boxes with the zip
file.

I do not know why they are different but I have discovered with the
classes12.jar that they come in
vastly different vintages.  I upgraded a linux system once and got the
latest and greatest classes12 from oracle since it was easier than copy it
from the old server I had.  Some of the functionality of the site ceased to
work until I rolled back to the prior version that was three years older.

Jeff

-Original Message-
From: John Clark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 6:03 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: HP-UX 10.20 + Oracle





Hi I am offsite today, so not sure if this will work, anyway.

I have tried setting LD_LIBRARY_PATH but it still does not work.

I suspect that I have conflicting versions or classes, so my questions
are:

1. Where should I get classes12 or classes111 from for HPUX 10.2 and
Oracle 8.0.4
   (the ones I am using are copied from Linux)
2. I have seen mentioned that an associated DLL is required, which one?
and where
   should it go?


Thanks once again

John





Make sure you have the LD_LIBRARY_PATH environment variable set to
$ORACLE_HOME/lib (I think  :-\ )  At least you have to on Linux.

-Original Message-
From: John Clark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 1:13 PM
To: 'Tomcat Users List'
Subject: RE: HP-UX 10.20 + Oracle


Mark:
I tried changing to classes111.jar, but now get this error:

java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path

Also I should point out that I am using Oracle 8.0.4 on HP.

Thanks for the suggestions though


-Original Message-
From: p niemandt [mailto:[EMAIL PROTECTED]] 
Sent: 07 January 2003 18:25
To: Tomcat Users List
Subject: RE: HP-UX 10.20 + Oracle

As far as I know you should use ojdbc14.jar for Oracle9: Though previous
ones should work, the ojdbc14.jar is recommended / needed for Oracle9.

{The classnames are different between classes12.jar and the new
ojdbc14.jar}



On Tue, 2003-01-07 at 17:57, Wagoner, Mark wrote:
> I think classes12.jar is for JDK 1.2.  You want classes111.jar (if you
can
> find it).
> 
> -Original Message-
> From: John Clark [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 07, 2003 12:54 PM
> To: 'Tomcat Users List'
> Subject: HP-UX 10.20 + Oracle
> 
> 
> Hi there,
> 
> The story so far: I have an intranet application that currently runs
on a
> Linux server (with Oracle 9i - built-in Apache) and W2000 server (with
> Tomcat 4.x connecting to Oracle 8). It is written in JSP and Java, and
works
> fine.
> 
> I now want to use HP-UX 10.20 as a server, so I got the only available
JDK
> from HP which is version 1.1.8 and this has forced me to use Tomcat
3.3.1.
> This is all running now (thanks for the help) and I am now testing the
> application.
> 
> I have put in the Oracle classes12.jar and
DriverManager.registerDriver
> seems fine, but DriverManager.getConnection gives the following error
(only
> partial list):
> 
> java.lang.ClassNotFoundException: java.util.Map
>  at org.apache.tomcat.util.compat.SimpleClassLoader.loadClass(Compiled
Code)
>  at java.lang.ClassLoader.loadClassInternal(Compiled Code)
>  at
>
oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:
358)
>  at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
>  at java.sql.DriverManager.getConnection(DriverManager.java:83)
>  at java.sql.DriverManager.getConnection(DriverManager.java:126)
>  at
estimating._final.loginvalidate_1._jspService(loginvalidate_1.java:123)
> 
> Anyone got any ideas?
> 
> Many thanks as usual.
> 
> John
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   

Re: !!!HELP!!! how to execute an external .exe-file (+Parameters) that creates data-files I want to use later in my servlet

2003-01-21 Thread ningr
<%
try {
Process process = Runtime.getRuntime().exec( "cmd /C more.com c:\\file_id.diz" 
);
DataInputStream in = new DataInputStream( 
new BufferedInputStream( process.getInputStream() ) );

String s;
while ( null != ( s = in.readLine() ) ) {
out.println( s + "" );
}

} catch ( IOException x ) {
 
 out.println( x );
 return ;
}
%>
The above code is ok under windows 2000, more.com is in winnt/system32, it will print 
the content the file c:\file_id.diz, you can put data.exe in system path,
I hope the code is useful to you.


- Original Message - 
From: "Patrick Kosiol" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 21, 2003 10:16 PM
Subject: Re: !!!HELP!!! how to execute an external .exe-file (+Parameters) that 
creates data-files I want to use later in my servlet


> Hi,
> 
> that might be a problem because my data.exe needs access to some 
> data-files placed in a special relative path from its. And this programm 
> also creates other files (they were also placed relative to its 
> position) and I must also be able to access these files through out the 
> Tomcat
> 
> 
> Patrick
> 
> ningr wrote:
> 
> >I met the same problems under linux, maybe you should put the data.exe in the 
>directory $CATALINA_HOME/bin, and
> >Process p = Runtime.getRuntime().exec( "./data.exe" );
> >you can try it.
> >
> >- Original Message - 
> >From: "Patrick Kosiol" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Sent: Tuesday, January 21, 2003 10:01 PM
> >Subject: !!!HELP!!! how to execute an external .exe-file (+Parameters) that creates 
>data-files I want to use later in my servlet
> >
> >
> >  
> >
> >>Hi,
> >>
> >>I'm runnung TomCat 4.0.4 and I want to start an external .exe-File.
> >>My Code:
> >>
> >>  String[] runString = {relativeDataPath + "data.exe",
> >>parameter0, parameter1, parameter2, parameter3};
> >>  Process p = Runtime.getRuntime().exec(runString);
> >>  System.out.println(runString);
> >>  if(p.waitFor() == 0){
> >>
> >>
> >>The 'data.exe'-File is placed in 
> >>$CATALINA_HOME/webapps/ROOT/relativeDataPath so it should be no problem 
> >>to access this File. The Number of  Parameters etc. is OK.
> >>But I get the following Error-Message:
> >>
> >>java.io.IOException: CreateProcess: 'relativeDataPath'/bfpldata.exe 
> >>parameter0 parameter1 parameter2 parameter3 error=2
> >>
> >>error=2 means imho that the File is not found. How can I execute my file 
> >>to do that, what I want. Is it possible that the process can create 
> >>files in the Tomcat folders?
> >>
> >>
> >>Thx
> >>Patrick
> >>
> >>
> >>--
> >>To unsubscribe, e-mail:   
> >>For additional commands, e-mail: 
> >>
> >>
> >>
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 


REPOST: tomcat4.1.18 & iis5 - new user

2003-01-21 Thread John Ruffin

I'm running win2k, tc4.1.18, iis5, j2sdk1.4.1. 

I've added the the isapi_redirect.dll to the "IIS Manager".
Question 1: Is this SOP or should I add it to all websites iis is managing?

I can run the examples from http://localhost/examples with no problem.

I have another website that I'm hosting, let's call it widget.com.  I can't
get iis to forward widget.com jsp's to tomcat.

I know I need to read up on server.xml and I plan to today, but for now :  
Question 2 - is there something I need to do in order for non-localhost
websites on iis to forward .jsp requests to tomcat?



 uriworkermap.properties 
# Default worker to be used through our mappings
default.worker=ajp13
# Sites to be redirected to Tomcat
/examples=$(default.worker)
/examples/*=$(default.worker)
/app1=ajp13
/app1/*=ajp13

 end uriworkermap.properties 

 worker.properties 
#NOTE: I'm just going to list the uncommented lines
workers.tomcat_home=C:\Tomcat 4.1
workers.java_home=C:\j2sdk1.4.1
ps=\
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
...

 end worker.properties 



Thanks for your feedback.








The information in this email is confidential and may be 
legally privileged. It is intended solely for the addressee,
and access by anyone else is unauthorized.

If you are not the intended recipient, any disclosure, 
copying, distribution or any action taken or omitted to be
taken in reliance on it, is prohibited and may be unlawful. 

If you believe that you have received this email in error, 
please advise us by calling (901) 385 3688, or emailing
[EMAIL PROTECTED], and then delete this message
and all copies and backups thereof. Thank you.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




URL mapping problem

2003-01-21 Thread Varley, Roger
Hi

(Tomcat 3.2, IIS 4.0 Win NT5.0 Sp6)

I have a commercial web application (to which I have no access to the
source) that exists in two configurations (i.e two sets of web directories
below Inetpub/wwwroot). The application ends by calling exit.htm in their
respective html directories (ipshtml and elcomhtml). I need to do some extra
processing and want to replace these calls to exit.htm with calls to
servlets that exist in a Tomcat web application. Each call needs a different
servlet although they are in the same Tomcat web application

I've put the following entries in uriworkermap.properties (one for each of
the applications)

/ipshtml/exit.htm=$(default.worker)
/elcomhtml/exit.htm=$(default.worker)

and after restarting both tomcat and IIS, I can see from the isapi.log that
IIS is correctly identifying both these calls as servlet URLS and hands off
to tomcat. 

What I'm having problems with is configuring the web.xml file to find the
servlet. I started with 


ExitReplacement
/ipshtml/exit.htm
  
  
ElcomExit
/elcomhtml/exit.htm
  

but calls to either ipshtml/exit.htm and elcomhtml/exit.htm both return 404.
If I change to


ExitReplacement
/exit.htm
  
  
ElcomExit
/exit.htm
  

then Tomcat logs that it's removing duplicate exit.htm's during startup and
calls to both /ipshtml/exit.htm and /elcomhtml/exit.htm resolve to
ElcomExit. If I reverse the order of the servlet mapping entries then both
resolve to ExitReplacement.

So, how do I map /ipshtml/exit.htm to ExitReplacement and
/elcomhtml/exit.htm to ElcomExit when both ExitReplacement and ElcomExit
exist in the same Tomcat Web Application.

I hope that this makes sense.

Regards
Roger



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AIX HELP apache won't load mod_jk.so

2003-01-21 Thread HAMILTON, DALE K (SBCSI)
I am trying to connect Apache 1.3.26 to tomcat 4.1.18 via mod_jk or mod_jk2.
Apache has the following modules statically linked:

Compiled-in modules:
  http_core.c
  mod_vhost_alias.c
  mod_env.c
  mod_log_config.c
  mod_mime_magic.c
  mod_mime.c
  mod_negotiation.c
  mod_status.c
  mod_info.c
  mod_include.c
  mod_autoindex.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_speling.c
  mod_userdir.c
  mod_alias.c
  mod_rewrite.c
  mod_access.c
  mod_auth.c
  mod_auth_anon.c
  mod_auth_dbm.c
  mod_digest.c
  mod_proxy.c
  mod_cern_meta.c
  mod_expires.c
  mod_headers.c
  mod_usertrack.c
  mod_unique_id.c
  mod_so.c
  mod_setenvif.c
  mod_perl.c

I get the following error -

/appl/optisys/apache/bin> apachectl configtest
Syntax error on line 236 of /appl/optisys/apache/conf/httpd.conf:
Cannot load /appl/optisys/apache/libexec/mod_jk.so into server: dlopen:
/appl/op
tisys/apache/libexec/mod_jk.so: 

> Dale K. Hamilton
> Sr. Technical Architect
> Phone 314.331.9383
*[EMAIL PROTECTED]
> This e-mail and any files transmitted with it are property of SBC, are
> confidential, and are intended solely for the use of the individual(s) or
> entity to which this e-mail is addressed.  If you are not one of the named
> recipient(s) or otherwise have reason to believe that you have received
> this message in error, please notify the sender at 314.331.9383 and delete
> this message immediately from your computer.  Any other use, retention,
> dissemination, forwarding, printing or copying of this e-mail is strictly
> prohibited.
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Please help with LogConfigurationException

2003-01-21 Thread Roberts, Eric
Hi Jim,

Just a thought - you say the application has been running without this error except 
for the last week or so, and then this week no problems.

It sounds to me as though a particular use case may have arisen where an incorrect 
logging statement is being invoked, and that this use case had not arisen previously 
(i.e. the problem was always in the code, but until invoked, no problems).

Thats my 2p :-)

Eric

-Original Message-
From: Collins, Jim [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 21. Jänner 2003 15:35
To: 'Tomcat Users List'
Subject: RE: Please help with LogConfigurationException


Hi Yoav,

Thanks for your reply. I could see it was commons logging throwing the
exception and I tried changing the actual logging implementation that it
uses to log4J to see if that would stop it happening but it did not. I don't
really think it is a commons logging problem either because it works and
logs correctly until this exception get thrown.

Last week this exception was being thrown at least twice a day however since
Friday no more exceptions have been thrown. It just seems bizarre to me that
it should suddenly start happening and then stop.

Regards

Jim.

> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
> Sent: 21 January 2003 14:24
> To: Tomcat Users List
> Subject: RE: Please help with LogConfigurationException
> 
> 
> Howdy,
> A couple of things: 
> 
> - It's commons-logging, not tomcat, that's throwing the 
> exception.  It's
> most likely misconfigured, i.e. you have some jars (probably the
> commons-logging jars themselves) in the wrong place.
> 
> - Can you temporarily take out commons logging, i.e. code directly to
> JDK 1.4 logging or log4j or whatever you want, and see if the problem
> goes away?
> 
> - Try to ask on the commons-logging mailing list.
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-Original Message-
> >From: Collins, Jim [mailto:[EMAIL PROTECTED]]
> >Sent: Tuesday, January 21, 2003 4:24 AM
> >To: 'Tomcat Users List'
> >Subject: RE: Please help with LogConfigurationException
> >
> >Hi,
> >
> >I have still had no feedback  at all on this. Can anyone 
> please help I
> am
> >running out of hair to pull out.
> >
> >Regards
> >
> >Jim
> >
> >> -Original Message-
> >> From: Collins, Jim [mailto:[EMAIL PROTECTED]]
> >> Sent: 20 January 2003 09:47
> >> To: 'Tomcat Users List'
> >> Subject: Please help with LogConfigurationException
> >>
> >>
> >> Hi,
> >>
> >> I am still getting this Exception thrown. Has anyone else
> >> ever had this and
> >> know of a fix. Any help at all would be appreciated as this
> >> is causing me a
> >> lot of problems
> >>
> >> Thanks
> >>
> >> Jim.
> >>
> >> > A quick update. I have now copied the log4J jar file to
> >> > commons/lib and
> >> > restarted the server so that is now uses log4J instead of the
> >> > JDK1.4 logger.
> >> > After a couple of hours I got this error:
> >> >
> >> > org.apache.commons.logging.LogConfigurationException:
> >> > org.apache.commons.logging.LogConfigurationException:
> >> > org.apache.commons.logging.LogConfigurationException: Class
> >> > org.apache.commons.logging.impl.Log4JCategoryLog does not
> >> > implement Log
> >> > at
> >> > org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
> >> > FactoryImpl.ja
> >> > va:530)
> >> > at
> >> > org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Log
> >> > FactoryImpl.ja
> >> > va:285)
> >> > at
> >> > org.apache.commons.logging.LogFactory.getLog(LogFactory.java:401)
> >> > at
> >> > org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandl
> >> > er.java:97)
> >> > at org.apache.tomcat.util.log.Log.log(Log.java:198)
> >> > at org.apache.tomcat.util.log.Log.log(Log.java:192)
> >> > at org.apache.tomcat.util.log.Log.log(Log.java:174)
> >> > at
> >> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> >> > ThreadPool.jav
> >> > a:536)
> >> > at java.lang.Thread.run(Thread.java:536)
> >> > Caused by: org.apache.commons.logging.LogConfigurationException:
> >> > org.apache.commons.logging.LogConfigurationException: Class
> >> > org.apache.commons.logging.impl.Log4JCategoryLog does not
> >> > implement Log
> >> > at
> >> > org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct
> >> > or(LogFactoryI
> >> > mpl.java:415)
> >> > at
> >> > org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
> >> > FactoryImpl.ja
> >> > va:523)
> >> > ... 8 more
> >> > Caused by:
> >> org.apache.commons.logging.LogConfigurationException: Class
> >> > org.apache.commons.logging.impl.Log4JCategoryLog does not
> >> > implement Log
> >> > at
> >> > org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct
> >> > or(LogFactoryI
> >> > mpl.java:411)
> >> > ... 9 more
> >> >
> >> > Could anyone please give me some clue as to what I can do.
> >> I have not
> >> > changed anything for

RE: URL mapping problem

2003-01-21 Thread Shapira, Yoav
Howdy,
You realize one page can only map to one servlet, right?  There can only
be one /exit.htm for your webapp.

You can, however, code that servlet to see whether the request came from
ip or elcom and do different things accordingly.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Varley, Roger [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 21, 2003 10:19 AM
>To: Tomcat Users List (E-mail)
>Subject: URL mapping problem
>
>Hi
>
>(Tomcat 3.2, IIS 4.0 Win NT5.0 Sp6)
>
>I have a commercial web application (to which I have no access to the
>source) that exists in two configurations (i.e two sets of web
directories
>below Inetpub/wwwroot). The application ends by calling exit.htm in
their
>respective html directories (ipshtml and elcomhtml). I need to do some
>extra
>processing and want to replace these calls to exit.htm with calls to
>servlets that exist in a Tomcat web application. Each call needs a
>different
>servlet although they are in the same Tomcat web application
>
>I've put the following entries in uriworkermap.properties (one for each
of
>the applications)
>
>/ipshtml/exit.htm=$(default.worker)
>/elcomhtml/exit.htm=$(default.worker)
>
>and after restarting both tomcat and IIS, I can see from the isapi.log
that
>IIS is correctly identifying both these calls as servlet URLS and hands
off
>to tomcat.
>
>What I'm having problems with is configuring the web.xml file to find
the
>servlet. I started with
>
>
>   ExitReplacement
>   /ipshtml/exit.htm
>  
>  
>   ElcomExit
>   /elcomhtml/exit.htm
>  
>
>but calls to either ipshtml/exit.htm and elcomhtml/exit.htm both return
>404.
>If I change to
>
>
>   ExitReplacement
>   /exit.htm
>  
>  
>   ElcomExit
>   /exit.htm
>  
>
>then Tomcat logs that it's removing duplicate exit.htm's during startup
and
>calls to both /ipshtml/exit.htm and /elcomhtml/exit.htm resolve to
>ElcomExit. If I reverse the order of the servlet mapping entries then
both
>resolve to ExitReplacement.
>
>So, how do I map /ipshtml/exit.htm to ExitReplacement and
>/elcomhtml/exit.htm to ElcomExit when both ExitReplacement and
ElcomExit
>exist in the same Tomcat Web Application.
>
>I hope that this makes sense.
>
>Regards
>Roger
>
>
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Unable to execute/see JSP pages

2003-01-21 Thread Curt LeCaptain
I've set-up our Java development server with my own server.xml, and
added virtual hosts to my apache, both linked via mod_jk, using apache
1.3.27 and Tomcat 4.0.6.  The following are my config files.  What I'm
wondering is, I've got a basic "this's this page..." jsp created, with a
basic output command in java.  I'm not seeing the command, so I'm
guessing something isn't handing off correctly.  An addition... When I
go to linuxtest.itol.com (not world accessable, internal address only),
I get a 404 page created by Tomcat, saying that index.jsp isn't
available.  Any help would be greatly appriciated!

Server.xml:

  
   

 

 




  

  
  
  

  
  


Apache Configs (the important parts)


#Tomcat Settings

JkWorkersFile "/usr/local/tomcat/conf/jk/workers.properties"
JkLogFile "/usr/local/tomcat/logs/mod_jk.log"

JkLogLevel error


ServerName linuxtest.itol.com
DocumentRoot /data/www/docs/linuxtest.itol.com

 linuxdev01.itol.com:/examples


# Static files


Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp



# Deny direct access to WEB-INF and META-INF
#

AllowOverride None
deny from all



AllowOverride None
deny from all

JkMount /*.jsp ajp13
JkMount /* ajp13
JkMount /examples/jsp/num/*.jsp ajp13
JkMount /examples/jsp/*.jsp ajp13
JkMount /examples/*.jsp  ajp13
JkMount /examples/servlet/*  ajp13
JkMount /examples/servletToJsp  ajp13
JkMount /examples/SendMailServlet  ajp13


Sample JSP:


  
 Welcome to linuxtest!
  

<%
   out.println("You are currently viewing the contents of "
  +"the linuxtest web server");
%>





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: lifetime of servlet instance and of instance-spawned threads

2003-01-21 Thread Mark Francillon

Thanks again.

On Tue, 21 Jan 2003, Shapira, Yoav wrote:

> No.  Destroy() on the servlet is guaranteed to be called when the
> servlet specification says it should be called.  Same thing goes for the
> servlet context listener's contextDestroyed() event.  Tomcat could
> legally decide to swap out your servlet while some of the threads you
> spawned from it are still executing.  Or someone could recycle the
> server as part of normal (nightly/weekely/whatever) operating procedure.
> In that case, destroy() would get called while your threads are still
> executing, and you'll end up in the bad state described in my previous
> message.
>
I appreciate that the container may want to swap my instance out at
unpredictable intervals, but I'm still unclear on the relation between
the threads and the call to destroy. I'm reading the spec--"Before the
servlet container calls the destroy method, it must allow any threads that
are currently running in the service method of the servlet to complete
execution, or exceed a server defined time limit"--as:
  1. Container decides to unload the instance
  2. If no spawned threads executing
   Just call the instance's destroy()
  3. Else
   Wait for threads to exit (or timeout, depending on container
   policy)
   Then call destroy()
...but you're saying it's really:
  1. Container decides to unload the instance
  2. Container calls destroy() on the instance
  3. Any pending threads run to completion.

Yes?

Thanks, Mark


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Unable to execute/see JSP pages

2003-01-21 Thread Turner, John

Where is the JSP located in your directory structure?

Do the examples work?

John


> -Original Message-
> From: Curt LeCaptain [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 21, 2003 10:37 AM
> To: [EMAIL PROTECTED]
> Subject: Unable to execute/see JSP pages
> 
> 
> I've set-up our Java development server with my own server.xml, and
> added virtual hosts to my apache, both linked via mod_jk, using apache
> 1.3.27 and Tomcat 4.0.6.  The following are my config files.  What I'm
> wondering is, I've got a basic "this's this page..." jsp 
> created, with a
> basic output command in java.  I'm not seeing the command, so I'm
> guessing something isn't handing off correctly.  An addition... When I
> go to linuxtest.itol.com (not world accessable, internal 
> address only),
> I get a 404 page created by Tomcat, saying that index.jsp isn't
> available.  Any help would be greatly appriciated!
> 
> Server.xml:
> 
>   
>
> 
>   port="8009"
> minProcessors="5"
> maxProcessors="75"
> acceptCount="10"
> debug="0" />
> 
>   debug="0">
> 
> 
> 
>  appBase="/data/www/docs/linuxtest.itol.com/webapps"
> unpackWARs="true">
> directory="/data/www/docs/linuxtest.itol.com/logs"
>  prefix="linuxtest_access."
>  suffix=".log"
>  pattern="common"/>
> 
>  directory="/data/www/docs/linuxtest.itol.com/logs"
>   prefix="linuxtest_catalina."
>   suffix=".log"
>   timestamp="true"/>
>   
>   
> 
>   
>   
> 
> 
> Apache Configs (the important parts)
> 
> 
> #Tomcat Settings
> 
> JkWorkersFile "/usr/local/tomcat/conf/jk/workers.properties"
> JkLogFile "/usr/local/tomcat/logs/mod_jk.log"
> 
> JkLogLevel error
> 
> 
> ServerName linuxtest.itol.com
> DocumentRoot /data/www/docs/linuxtest.itol.com
> 
>  linuxdev01.itol.com:/examples
> 
> 
> # Static files
> 
> 
> Options Indexes FollowSymLinks
> DirectoryIndex index.html index.htm index.jsp
> 
> 
> 
> # Deny direct access to WEB-INF and META-INF
> #
> 
> AllowOverride None
> deny from all
> 
> 
> 
> AllowOverride None
> deny from all
> 
> JkMount /*.jsp ajp13
> JkMount /* ajp13
> JkMount /examples/jsp/num/*.jsp ajp13
> JkMount /examples/jsp/*.jsp ajp13
> JkMount /examples/*.jsp  ajp13
> JkMount /examples/servlet/*  ajp13
> JkMount /examples/servletToJsp  ajp13
> JkMount /examples/SendMailServlet  ajp13
> 
> 
> Sample JSP:
> 
> 
>   
>  Welcome to linuxtest!
>   
> 
> <%
>out.println("You are currently viewing the contents of "
>   +"the linuxtest web server");
> %>
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Unable to execute/see JSP pages

2003-01-21 Thread Curt LeCaptain
Thanks for responding.

No, the examples also don't work, they get the same 404 page.

Our directories are setup as follows:

Path to apache: /usr/local/apache
Path to tomcat: /usr/local/tomcat
Path of websites: /data/www/docs/
Linuxtest site: /data/www/docs/linuxtest.itol.com/
The index.jsp file is right within that linuxtest.itol.com directory, it
should be the default page when you open linuxtest.itol.com in a
browser.

Thanks!

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 21, 2003 9:40 AM
To: 'Tomcat Users List'
Subject: RE: Unable to execute/see JSP pages



Where is the JSP located in your directory structure?

Do the examples work?

John


> -Original Message-
> From: Curt LeCaptain [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 21, 2003 10:37 AM
> To: [EMAIL PROTECTED]
> Subject: Unable to execute/see JSP pages
> 
> 
> I've set-up our Java development server with my own server.xml, and 
> added virtual hosts to my apache, both linked via mod_jk, using apache

> 1.3.27 and Tomcat 4.0.6.  The following are my config files.  What I'm

> wondering is, I've got a basic "this's this page..." jsp created, with

> a basic output command in java.  I'm not seeing the command, so I'm
> guessing something isn't handing off correctly.  An addition... When I
> go to linuxtest.itol.com (not world accessable, internal 
> address only),
> I get a 404 page created by Tomcat, saying that index.jsp isn't
> available.  Any help would be greatly appriciated!
> 
> Server.xml:
> 
>   
>
> 
>   port="8009"
> minProcessors="5"
> maxProcessors="75"
> acceptCount="10"
> debug="0" />
> 
>   debug="0">
> 
> 
> 
>  appBase="/data/www/docs/linuxtest.itol.com/webapps"
> unpackWARs="true">
> directory="/data/www/docs/linuxtest.itol.com/logs"
>  prefix="linuxtest_access."
>  suffix=".log"
>  pattern="common"/>
> 
>  directory="/data/www/docs/linuxtest.itol.com/logs"
>   prefix="linuxtest_catalina."
>   suffix=".log"
>   timestamp="true"/>
>   
>   
> 
>   
>   
> 
> 
> Apache Configs (the important parts)
> 
> 
> #Tomcat Settings
> 
> JkWorkersFile "/usr/local/tomcat/conf/jk/workers.properties"
> JkLogFile "/usr/local/tomcat/logs/mod_jk.log"
> 
> JkLogLevel error
> 
> 
> ServerName linuxtest.itol.com
> DocumentRoot /data/www/docs/linuxtest.itol.com
> 
>  linuxdev01.itol.com:/examples 
> 
> 
> # Static files
> 
> 
> Options Indexes FollowSymLinks
> DirectoryIndex index.html index.htm index.jsp
> 
> 
> 
> # Deny direct access to WEB-INF and META-INF
> #
> 
> AllowOverride None
> deny from all
> 
> 
> 
> AllowOverride None
> deny from all
> 
> JkMount /*.jsp ajp13
> JkMount /* ajp13
> JkMount /examples/jsp/num/*.jsp ajp13
> JkMount /examples/jsp/*.jsp ajp13
> JkMount /examples/*.jsp  ajp13
> JkMount /examples/servlet/*  ajp13
> JkMount /examples/servletToJsp  ajp13
> JkMount /examples/SendMailServlet  ajp13
> 
> 
> Sample JSP:
> 
> 
>   
>  Welcome to linuxtest!
>   
> 
> <%
>out.println("You are currently viewing the contents of "
>   +"the linuxtest web server");
> %>
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




webdav search is not possible?

2003-01-21 Thread Zsolt Koppany
Hi,

when I create a webdav folder via tomcat-4.1.18 I cannot search for
files from my client. Does it depend on the tomcat implementation?
Normally when I select a directory I can search for files using the
right mouse and "Search" menu item. 
-- 
Zsolt


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




help tomcat-user

2003-01-21 Thread joel . dewitt

help tomcat-user



This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase & Co., its
subsidiaries and affiliates.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




unsubscribe tomcat-user

2003-01-21 Thread joel . dewitt

unsubscribe tomcat-user



This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase & Co., its
subsidiaries and affiliates.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: lifetime of servlet instance and of instance-spawned threads

2003-01-21 Thread Shapira, Yoav
Hi,
The difference is between threads you spawn and threads tomcat spawns.

>servlet container calls the destroy method, it must allow any threads
that
>are currently running in the service method of the servlet to complete

Threads that are currently running in the service methods means just
that.  It does NOT mean threads you spawned while in the service method.
The first group tomcat will let finish before calling destroy.  The
latter tomcat does not have to wait for and therefore may be still
running while destroy is called.  Sorry if I was unclear on that before.

Yoav Shapira
Millennium ChemInformatics

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Opening Files Outside Context

2003-01-21 Thread Gladwell, Ricardo X -ND
Hi All,

I have written a JavaBean accessed from a JSP page in Tomcat 4.1 that
opens a file to read from. However, when I open the file using the
FileInputStream constructor I get a FileNotFoundException. This method
works outside of Tomat on the same machine - the file exists, the path
is correct even if it is on a networked drive. 

I assume this is a security feature - the file is outside the webapps
directory. What I would like to know is there anyway of allowing Tomcat
web applications to accessing files outside their container, either
through changing settings in the web.xml or server.xml files or through
the Tomcat admin tool?

TIA...

-- 
Ricardo Gladwell, Java Developer
WD Internet Group, Engineering
[t] (020) 8222 2723
[m] (07734) 813 187 

Stack Trace:

java.io.FileNotFoundException: h:\projects\adtagger\xml\config.xml (The
system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:103)
at java.io.FileInputStream.(FileInputStream.java:66)
at
com.dig.rgladwel.adtagger.ConfigBean.setConfigFile(ConfigBean.java:100)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.taglibs.standard.tag.common.core.SetSupport.doEndTag(SetSuppo
rt.java:172)
at
org.apache.jsp.index_jsp._jspx_meth_c_set_0(index_jsp.java:116)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:83)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:204)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.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.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
5)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
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.StandardEngineValve.invoke(StandardEngineValve.
java:174)
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.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)
at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:632)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
590)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:707)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunna

Re: Pick a Platform - Linux, Windows, Unix, Solaris...

2003-01-21 Thread Austin Gonyou
On Tue, 2003-01-21 at 06:23, Andoni wrote:
> If you could pick any platform to run Tomcat on what would it be.
> 
> Also what version of Tomcat is now the one to go with?
> I.e. stable, reliable, etc.


You need to qualify the decision with a situation. If I could pick
anything, I'd always pick Linux, but that's just me. 

If you said, I need something right now, and this is how much I'm
willing to spend, and this is how much traffic I need it to handle and
this is how much data it will transfer, etc. Depending on the intended
application, I might give you a different answer. 


> Andoni.
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
-- 
Austin Gonyou <[EMAIL PROTECTED]>
Coremetrics, Inc.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




unsubscribe tomcat-user

2003-01-21 Thread St. Louis, Thomas (Research)


g GE Global Research Center

_
__
Tom St.Louis
Computer Scientist
Advanced Computing Technologies
One Research Circle, K1-5B32
Niskayuna, NY  12309
8*833-4900
[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Setting up mod_jk in a cluster environment

2003-01-21 Thread Garrick Dasbach
I am presently working on setting up several tomcat clusters with 
in-memory session replication using Java groups.

My proposed setup would be:

2 Apache Servers running mod_jk
4 Tomcat servers broken into 2 clusters of 2.

To reduce network bandwidth, I only want to do in-memory session 
replication between the members of each cluster,
thus allowing 1 machine in each cluster to fail without the site crashing.

To acomplish this I need to be able to create 2 virtual clusters using 
mod_jk.

My thought was to create a load balanced worker, whose members are also 
load balanced workers.

Has anyone attempted this or know if it will work?

Any help would be appreciated.

Garrick Dasbach

Here's an example workers.properties file.

# Define 4 workers, 3 real workers using ajp12, ajp13, jni, the last one 
being a loadbalancing worker
worker.list=worker1, worker2, worker3, worker4, cluster1, cluster2, 
loadbalancer

# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=server1
worker.worker1.port=8007
worker.worker1.lbfactor=100

# Set properties for worker2 (ajp13)
worker.worker2.type=ajp13
worker.worker2.host=server2
worker.worker2.port=8007
worker.worker2.lbfactor=100

# Set properties for worker3 (ajp13)
worker.worker2.type=ajp13
worker.worker2.host=server3
worker.worker2.port=8007
worker.worker2.lbfactor=100

# Set properties for worker4 (ajp13)
worker.worker2.type=ajp13
worker.worker2.host=server4
worker.worker2.port=8007
worker.worker2.lbfactor=100

# Set properties for lb1 (lb) which use worker1 and worker2
worker.cluster1.balanced_workers=worker1,worker2

# Set properties for lb1 (lb) which use worker3 and worker4
worker.cluster2.balanced_workers=worker3,worker4

# Set properties for lbprimary (lb) which use worker1 and worker2
worker.loadbalancer.balanced_workers=cluster1,cluster2



RE: lifetime of servlet instance and of instance-spawned threads

2003-01-21 Thread Mark Francillon

Ah, I get it: "threads that are currently running in the service method" =
requests that are currently being handled. Of course. The container lets
those terminate (or timeout), then calls destroy(). If I've still got some
threads of my own working away, I'd better deal with them somehow in
destroy(), 'cause when it exits everything goes away.

Mark


On Tue, 21 Jan 2003, Shapira, Yoav wrote:

> Hi,
> The difference is between threads you spawn and threads tomcat spawns.
>
> >servlet container calls the destroy method, it must allow any threads
> that
> >are currently running in the service method of the servlet to complete
>
> Threads that are currently running in the service methods means just
> that.  It does NOT mean threads you spawned while in the service method.
> The first group tomcat will let finish before calling destroy.  The
> latter tomcat does not have to wait for and therefore may be still
> running while destroy is called.  Sorry if I was unclear on that before.
>
> Yoav Shapira
> Millennium ChemInformatics
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Please help with LogConfigurationException

2003-01-21 Thread Collins, Jim
Hi Eric,

Thanks for your 2p :). That sounds reasonable. My app is not doing any
logging apart from System.out.println. I am using Struts which also uses the
commons-logging so I might search the Struts users mail archive to see if I
can find anything helpful there.

Jim.

> -Original Message-
> From: Roberts, Eric [mailto:[EMAIL PROTECTED]]
> Sent: 21 January 2003 15:25
> To: Tomcat Users List
> Subject: RE: Please help with LogConfigurationException
> 
> 
> Hi Jim,
> 
> Just a thought - you say the application has been running 
> without this error except for the last week or so, and then 
> this week no problems.
> 
> It sounds to me as though a particular use case may have 
> arisen where an incorrect logging statement is being invoked, 
> and that this use case had not arisen previously (i.e. the 
> problem was always in the code, but until invoked, no problems).
> 
> Thats my 2p :-)
> 
> Eric
> 
> -Original Message-
> From: Collins, Jim [mailto:[EMAIL PROTECTED]]
> Sent: Dienstag, 21. Jänner 2003 15:35
> To: 'Tomcat Users List'
> Subject: RE: Please help with LogConfigurationException
> 
> 
> Hi Yoav,
> 
> Thanks for your reply. I could see it was commons logging throwing the
> exception and I tried changing the actual logging 
> implementation that it
> uses to log4J to see if that would stop it happening but it 
> did not. I don't
> really think it is a commons logging problem either because 
> it works and
> logs correctly until this exception get thrown.
> 
> Last week this exception was being thrown at least twice a 
> day however since
> Friday no more exceptions have been thrown. It just seems 
> bizarre to me that
> it should suddenly start happening and then stop.
> 
> Regards
> 
> Jim.
> 
> > -Original Message-
> > From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
> > Sent: 21 January 2003 14:24
> > To: Tomcat Users List
> > Subject: RE: Please help with LogConfigurationException
> > 
> > 
> > Howdy,
> > A couple of things: 
> > 
> > - It's commons-logging, not tomcat, that's throwing the 
> > exception.  It's
> > most likely misconfigured, i.e. you have some jars (probably the
> > commons-logging jars themselves) in the wrong place.
> > 
> > - Can you temporarily take out commons logging, i.e. code 
> directly to
> > JDK 1.4 logging or log4j or whatever you want, and see if 
> the problem
> > goes away?
> > 
> > - Try to ask on the commons-logging mailing list.
> > 
> > Yoav Shapira
> > Millennium ChemInformatics
> > 
> > 
> > >-Original Message-
> > >From: Collins, Jim [mailto:[EMAIL PROTECTED]]
> > >Sent: Tuesday, January 21, 2003 4:24 AM
> > >To: 'Tomcat Users List'
> > >Subject: RE: Please help with LogConfigurationException
> > >
> > >Hi,
> > >
> > >I have still had no feedback  at all on this. Can anyone 
> > please help I
> > am
> > >running out of hair to pull out.
> > >
> > >Regards
> > >
> > >Jim
> > >
> > >> -Original Message-
> > >> From: Collins, Jim [mailto:[EMAIL PROTECTED]]
> > >> Sent: 20 January 2003 09:47
> > >> To: 'Tomcat Users List'
> > >> Subject: Please help with LogConfigurationException
> > >>
> > >>
> > >> Hi,
> > >>
> > >> I am still getting this Exception thrown. Has anyone else
> > >> ever had this and
> > >> know of a fix. Any help at all would be appreciated as this
> > >> is causing me a
> > >> lot of problems
> > >>
> > >> Thanks
> > >>
> > >> Jim.
> > >>
> > >> > A quick update. I have now copied the log4J jar file to
> > >> > commons/lib and
> > >> > restarted the server so that is now uses log4J instead of the
> > >> > JDK1.4 logger.
> > >> > After a couple of hours I got this error:
> > >> >
> > >> > org.apache.commons.logging.LogConfigurationException:
> > >> > org.apache.commons.logging.LogConfigurationException:
> > >> > org.apache.commons.logging.LogConfigurationException: Class
> > >> > org.apache.commons.logging.impl.Log4JCategoryLog does not
> > >> > implement Log
> > >> > at
> > >> > org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
> > >> > FactoryImpl.ja
> > >> > va:530)
> > >> > at
> > >> > org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Log
> > >> > FactoryImpl.ja
> > >> > va:285)
> > >> > at
> > >> > 
> org.apache.commons.logging.LogFactory.getLog(LogFactory.java:401)
> > >> > at
> > >> > org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandl
> > >> > er.java:97)
> > >> > at org.apache.tomcat.util.log.Log.log(Log.java:198)
> > >> > at org.apache.tomcat.util.log.Log.log(Log.java:192)
> > >> > at org.apache.tomcat.util.log.Log.log(Log.java:174)
> > >> > at
> > >> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> > >> > ThreadPool.jav
> > >> > a:536)
> > >> > at java.lang.Thread.run(Thread.java:536)
> > >> > Caused by: 
> org.apache.commons.logging.LogConfigurationException:
> > >> > org.apache.commons.logging.LogConfigurationException: Class
> > >> > org.apache.commons.logging.impl.Log4

RE: URL mapping problem

2003-01-21 Thread Varley, Roger
> 
> Howdy,
> You realize one page can only map to one servlet, right?  
> There can only
> be one /exit.htm for your webapp.
> 

My mistake, I assumed that Tomact would see /ipshtml/exit.htm and
/elcomhtml/exit.htm as two.

> You can, however, code that servlet to see whether the 
> request came from
> ip or elcom and do different things accordingly.

No problem, thanks for your help.

Regards
Roger

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: HP-UX 10.20 + Oracle

2003-01-21 Thread John Clark
In case it is of use to anybody else, this is what worked in the end.

HP-UX 10.20, Oracle 8.0.4, Tomcat 3.3.1 (JDK 1.1.8)

1. Install the JDBC package off the Oracle CD onto the HP server
2. This installs the correct classes111.zip and shared library for that
version of Oracle
3. Make sure that the shared library (liboci804jdbc.sl) has full execute
permissions
4. In the account controlling Tomcat set SHLIB_PATH=$ORACLE_HOME/lib
5. Also copy $ORACLE_HOME/jdbc/lib/classes111.zip to $TOMCAT_HOME/
lib/common/classes111.jar
6. I still couldn't get the OCI driver to work, but the THIN driver does.

Thanks to everyone that helped.

John

-Original Message-
From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] 
Sent: 08 January 2003 15:09
To: 'Tomcat Users List'
Subject: RE: HP-UX 10.20 + Oracle

John,

I sent two version of the classes111.jar we have used on our HP-UX 11.0
system to your account in order not to clutter up people boxes with the zip
file.

I do not know why they are different but I have discovered with the
classes12.jar that they come in
vastly different vintages.  I upgraded a linux system once and got the
latest and greatest classes12 from oracle since it was easier than copy it
from the old server I had.  Some of the functionality of the site ceased to
work until I rolled back to the prior version that was three years older.

Jeff

-Original Message-
From: John Clark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 6:03 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: HP-UX 10.20 + Oracle





Hi I am offsite today, so not sure if this will work, anyway.

I have tried setting LD_LIBRARY_PATH but it still does not work.

I suspect that I have conflicting versions or classes, so my questions
are:

1. Where should I get classes12 or classes111 from for HPUX 10.2 and
Oracle 8.0.4
   (the ones I am using are copied from Linux)
2. I have seen mentioned that an associated DLL is required, which one?
and where
   should it go?


Thanks once again

John





Make sure you have the LD_LIBRARY_PATH environment variable set to
$ORACLE_HOME/lib (I think  :-\ )  At least you have to on Linux.

-Original Message-
From: John Clark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 1:13 PM
To: 'Tomcat Users List'
Subject: RE: HP-UX 10.20 + Oracle


Mark:
I tried changing to classes111.jar, but now get this error:

java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path

Also I should point out that I am using Oracle 8.0.4 on HP.

Thanks for the suggestions though


-Original Message-
From: p niemandt [mailto:[EMAIL PROTECTED]] 
Sent: 07 January 2003 18:25
To: Tomcat Users List
Subject: RE: HP-UX 10.20 + Oracle

As far as I know you should use ojdbc14.jar for Oracle9: Though previous
ones should work, the ojdbc14.jar is recommended / needed for Oracle9.

{The classnames are different between classes12.jar and the new
ojdbc14.jar}



On Tue, 2003-01-07 at 17:57, Wagoner, Mark wrote:
> I think classes12.jar is for JDK 1.2.  You want classes111.jar (if you
can
> find it).
> 
> -Original Message-
> From: John Clark [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 07, 2003 12:54 PM
> To: 'Tomcat Users List'
> Subject: HP-UX 10.20 + Oracle
> 
> 
> Hi there,
> 
> The story so far: I have an intranet application that currently runs
on a
> Linux server (with Oracle 9i - built-in Apache) and W2000 server (with
> Tomcat 4.x connecting to Oracle 8). It is written in JSP and Java, and
works
> fine.
> 
> I now want to use HP-UX 10.20 as a server, so I got the only available
JDK
> from HP which is version 1.1.8 and this has forced me to use Tomcat
3.3.1.
> This is all running now (thanks for the help) and I am now testing the
> application.
> 
> I have put in the Oracle classes12.jar and
DriverManager.registerDriver
> seems fine, but DriverManager.getConnection gives the following error
(only
> partial list):
> 
> java.lang.ClassNotFoundException: java.util.Map
>  at org.apache.tomcat.util.compat.SimpleClassLoader.loadClass(Compiled
Code)
>  at java.lang.ClassLoader.loadClassInternal(Compiled Code)
>  at
>
oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:
358)
>  at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
>  at java.sql.DriverManager.getConnection(DriverManager.java:83)
>  at java.sql.DriverManager.getConnection(DriverManager.java:126)
>  at
estimating._final.loginvalidate_1._jspService(loginvalidate_1.java:123)
> 
> Anyone got any ideas?
> 
> Many thanks as usual.
> 
> John
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   

RE: Unable to execute/see JSP pages

2003-01-21 Thread Curt LeCaptain
Well, after looking through some error logs... A bit of insight came to
mind.

Seems that they're trying to load examples from
/data/www/docs/linuxtest.itol.com/webapp/examples..

Something that doesn't exist, so, I've changed my server.xml a bit to
reflect that, and receive errors.  That information follows:

Server.xml changes:

 
  
  

Errors:

2003-01-21 10:03:05 StandardContext[/examples]: Error initializing
resources: Document base /data/www/docs/linuxtes
t.itol.com/webapps/examples does not exist or is not a readable
directory
2003-01-21 10:03:06 StandardContext[/examples]: Context startup failed
due to previous errors
2003-01-21 10:03:06 StandardContext[/examples]: Exception during cleanup
after start failed
LifecycleException:  Container StandardContext[/examples] has not been
started
at
org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1147)
at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:3495)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3434
)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

2003-01-21 10:09:46 WebappLoader[/examples]: Deploying class
repositories to work directory /usr/local/src/jakarta-
tomcat-4.0.6/work/Standalone/linuxtest.itol.com/examples
2003-01-21 10:09:46 StandardManager[/examples]: Seeding random number
generator class java.security.SecureRandom
2003-01-21 10:09:46 StandardManager[/examples]: Seeding of random number
generator has been completed
2003-01-21 10:09:47 ContextConfig[/examples]: No Realm has been
configured to authenticate against
2003-01-21 10:09:47 ContextConfig[/examples]: Marking this application
unavailable due to previous error(s)
2003-01-21 10:09:47 StandardContext[/examples]: Error initializing
naming context for context /examples
2003-01-21 10:09:47 StandardContext[/examples]: Context startup failed
due to previous errors
2003-01-21 10:09:47 StandardContext[/examples]: Error initializing
naming context for context /examples
(END) 

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 21, 2003 9:40 AM
To: 'Tomcat Users List'
Subject: RE: Unable to execute/see JSP pages



Where is the JSP located in your directory structure?

Do the examples work?

John


> -Original Message-
> From: Curt LeCaptain [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 21, 2003 10:37 AM
> To: [EMAIL PROTECTED]
> Subject: Unable to execute/see JSP pages
> 
> 
> I've set-up our Java development server with my own server.xml, and 
> added virtual hosts to my apache, both linked via mod_jk, using apache

> 1.3.27 and Tomcat 4.0.6.  The following are my config files.  What I'm

> wondering is, I've got a basic "this's this page..." jsp created, with

> a basic output command in java.  I'm not seeing the command, so I'm
> guessing something isn't handing off correctly.  An addition... When I
> go to linuxtest.itol.com (not world accessable, internal 
> address only),
> I get a 404 page created by Tomcat, saying that index.jsp isn't
> available.  Any help would be greatly appriciated!
> 
> Server.xml:
> 
>   
>
> 
>   port="8009"
> minProcessors="5"
> maxProcessors="75"
> acceptCount="10"
> debug="0" />
> 
>   debug="0">
> 
> 
> 
>  appBase="/data/www/docs/linuxtest.itol.com/webapps"
> unpackWARs="true">
> directory="/data/www/docs/linuxtest.itol.com/logs"
>  prefix="linuxtest_access."
>  suffix=".log"
>  pattern="common"/>
> 
>  directory="/data/www/docs/linuxtest.itol.com/logs"
>   prefix="linuxtest_catalina."
>   suffix=".log"
>   timestamp="true"/>
>   
>   
> 
>   
>   
> 
> 
> Apache Configs (the important parts)
> 
> 
> #Tomcat Settings
> 
> JkWorkersFile "/usr/local/tomcat/conf/jk/workers.properties"
> JkLogFile "/usr/local/tomcat/logs/mod_jk.log"
> 
> JkLogLevel error
> 
> 
> ServerName linuxtest.itol.com

JDBC Authentication

2003-01-21 Thread Ed Robbins

Ok, bear with me.  This is my first attempt at configuring Tomcat for
any type of authentication.  I've configured a host with a JDBCRealm to
use a Sybase database for authentication.  I added a security
constraint, login-config and  a security role, however when I point my
browser to the URL, I don't see that little password box I'm so anxious
to see.  The relavant config snippets are below, anyone who can put me
on the path to enlightenment would be deemed "a most knowledgeable and
esteemed person"  in my eyes :-)


Ed






  
  

  IpnDownload
  Download location for Ipn web
apps
  /IpnDownload/*
  *


These are the roles who have
access
download

  
  
BASIC
  
  
Download role
download
  







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat 4.03 Configuration

2003-01-21 Thread Alfie Pino
This might be a dumb question, but I need some help.

1. Tomcat 4.03 on Windows OS
2. how do I get tomcat to pre-compile JSP pages?
3. How do I configre Tomcat to use the complied pages only? So that I
can remove the JSP pages? I am having performance issues, and also, I do
not want to store the jsp code on the server. Please help..


Thanks.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Weblogic MS SQLServer Driver

2003-01-21 Thread Pipho Matt
We are running Tomcat on Win2000 and trying to connect to a MS SQL Server.
We are using Weblogic's JDBC Driver.  We are running into a problem when we
try to use it.  The log file states the following error:

Your WebLogic license file, named either WebLogicLicense.xml or
WebLogicLicense.class must be located in a directory that is
in your CLASSPATH. By default, your license file is located in the
/license directory located in your WebLogic home directory
(the root directory of your WebLogic installation).


We ended up putting the weblogic/classes and weblogic/licence folders in the
%CATALINA_HOME%/shared/classes folder since that is in the one of the
folders in the Tomcat Class Loader List.

Has anyone got this to work and are we putting this in the right class
location.

Thanks,
Matt Pipho


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Help java.sql.SQLException: JZ006: Caught IOException.java.net.SocketException: Broke

2003-01-21 Thread Iván Escobedo
Resending this message 'cause I deleted all the previous messages without seeing them

Hello, I need to know what is this error, I'm using Tomcat, Sybase


java.sql.SQLException: JZ006: Caught IOException.java.net.SocketException: Broke n pipe
at com.sybase.jdbc.ErrorMessage.raiseError(ErrorMessage.java)
at com.sybase.tds.Tds.language(Tds.java)
at com.sybase.jdbc.SybStatement.sendQuery(SybStatement.java)
at com.sybase.jdbc.SybStatement.executeQuery(SybStatement.java)
at com.sybase.jdbc.SybStatement.executeQuery(SybStatement.java)
at com.nacion.register.UserAccessFilter.ExecQuery(UserAccessFilter.java:
187)
at com.nacion.register.UserAccessFilter.ValidAccess(UserAccessFilter.jav
a:81)
at com.nacion.register.UserAccessFilter.SaveUserAccess(UserAccessFilter.
java:54)
at com.nacion.register.UserAccessFilter.doFilter(UserAccessFilter.java:3
7)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:260)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:471)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
2396)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:170)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:22
3)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:405)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:508)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:533)
at java.lang.Thread.run(Thread.java:536)

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Unable to execute/see JSP pages

2003-01-21 Thread Turner, John

I'm a little confused.  Does
/data/www/docs/linuxtest.itol.com/webapp/examples exist or not?  You've got
an appBase in your Host element, that means that CATALINA_HOME/webapps will
be ignored for that host name.  The only place that /examples exists, unless
you've copied the directory, is CATALINA_HOME/webapps/examples.

John


> -Original Message-
> From: Curt LeCaptain [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 21, 2003 11:27 AM
> To: 'Tomcat Users List'
> Subject: RE: Unable to execute/see JSP pages
> 
> 
> Well, after looking through some error logs... A bit of 
> insight came to
> mind.
> 
> Seems that they're trying to load examples from
> /data/www/docs/linuxtest.itol.com/webapp/examples..
> 
> Something that doesn't exist, so, I've changed my server.xml a bit to
> reflect that, and receive errors.  That information follows:
> 
> Server.xml changes:
> 
>  
>   
>   
> 
> Errors:
> 
> 2003-01-21 10:03:05 StandardContext[/examples]: Error initializing
> resources: Document base /data/www/docs/linuxtes
> t.itol.com/webapps/examples does not exist or is not a readable
> directory
> 2003-01-21 10:03:06 StandardContext[/examples]: Context startup failed
> due to previous errors
> 2003-01-21 10:03:06 StandardContext[/examples]: Exception 
> during cleanup
> after start failed
> LifecycleException:  Container StandardContext[/examples] has not been
> started
> at
> org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1147)
> at
> org.apache.catalina.core.StandardContext.stop(StandardContext.
> java:3495)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext
> .java:3434
> )
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
> at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
> at
> org.apache.catalina.core.StandardService.start(StandardService
> .java:388)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
> at 
> org.apache.catalina.startup.Catalina.start(Catalina.java:781)
> at
> org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
> at
> org.apache.catalina.startup.Catalina.process(Catalina.java:179)
> at java.lang.reflect.Method.invoke(Native Method)
> at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> 
> 2003-01-21 10:09:46 WebappLoader[/examples]: Deploying class
> repositories to work directory /usr/local/src/jakarta-
> tomcat-4.0.6/work/Standalone/linuxtest.itol.com/examples
> 2003-01-21 10:09:46 StandardManager[/examples]: Seeding random number
> generator class java.security.SecureRandom
> 2003-01-21 10:09:46 StandardManager[/examples]: Seeding of 
> random number
> generator has been completed
> 2003-01-21 10:09:47 ContextConfig[/examples]: No Realm has been
> configured to authenticate against
> 2003-01-21 10:09:47 ContextConfig[/examples]: Marking this application
> unavailable due to previous error(s)
> 2003-01-21 10:09:47 StandardContext[/examples]: Error initializing
> naming context for context /examples
> 2003-01-21 10:09:47 StandardContext[/examples]: Context startup failed
> due to previous errors
> 2003-01-21 10:09:47 StandardContext[/examples]: Error initializing
> naming context for context /examples
> (END) 
> 
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, January 21, 2003 9:40 AM
> To: 'Tomcat Users List'
> Subject: RE: Unable to execute/see JSP pages
> 
> 
> 
> Where is the JSP located in your directory structure?
> 
> Do the examples work?
> 
> John
> 
> 
> > -Original Message-
> > From: Curt LeCaptain [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 21, 2003 10:37 AM
> > To: [EMAIL PROTECTED]
> > Subject: Unable to execute/see JSP pages
> > 
> > 
> > I've set-up our Java development server with my own server.xml, and 
> > added virtual hosts to my apache, both linked via mod_jk, 
> using apache
> 
> > 1.3.27 and Tomcat 4.0.6.  The following are my config 
> files.  What I'm
> 
> > wondering is, I've got a basic "this's this page..." jsp 
> created, with
> 
> > a basic output command in java.  I'm not seeing the command, so I'm
> > guessing something isn't handing off correctly.  An 
> addition... When I
> > go to linuxtest.itol.com (not world accessable, internal 
> > address only),
> > I get a 404 page created by Tomcat, saying that index.jsp isn't
> > available.  Any help would be greatly appriciated!
> > 
> > Server.xml:
> > 
> >   
> >
> > 
> >   > port="8009"
> > minProcessors="5"
> > maxProcessors="75"
> > acceptCount="10"
> > debug="0" />
> > 
> >   > debug="0">
> > 
> > 
> > 
> >  

RE: Weblogic MS SQLServer Driver

2003-01-21 Thread Reynir Hübner
This is a tomcat mailing list, but I suspect you could talk with Datadirect 
technologies, that have been developing MSSQL drivers for a long time. 
They're MSSQL driver was used for the MsSQL2000 server, and is distributed for free 
(at microsofts website). 
http://msdn.microsoft.com/downloads/default.asp?URL=/downloads/sample.asp?url=/MSDN-FILES/027/001/779/msdncompositedoc.xml

I've used the MS-SQL and also the datadirect (was Merant) driver and it's ok.

[EMAIL PROTECTED]


> -Original Message-
> From: Pipho Matt [mailto:[EMAIL PROTECTED]] 
> Sent: 21. janúar 2003 16:38
> To: 'Tomcat Users List'
> Subject: Weblogic MS SQLServer Driver
> 
> 
> We are running Tomcat on Win2000 and trying to connect to a 
> MS SQL Server. We are using Weblogic's JDBC Driver.  We are 
> running into a problem when we try to use it.  The log file 
> states the following error:
> 
>   Your WebLogic license file, named either WebLogicLicense.xml or
>   WebLogicLicense.class must be located in a directory that is
>   in your CLASSPATH. By default, your license file is 
> located in the
>   /license directory located in your WebLogic home directory
>   (the root directory of your WebLogic installation).
> 
> 
> We ended up putting the weblogic/classes and weblogic/licence 
> folders in the %CATALINA_HOME%/shared/classes folder since 
> that is in the one of the folders in the Tomcat Class Loader List.
> 
> Has anyone got this to work and are we putting this in the 
> right class location.
> 
> Thanks,
> Matt Pipho
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Help java.sql.SQLException: JZ006: Caught IOException.java.net.SocketException: Broke

2003-01-21 Thread Reynir Hübner
Well it's an exception thrown from the JDBC driver you are using. 
The error code is JZ006, I recommend you look it up in google.com. 

The first match I got was this one : 
http://webforums.sybase.com/nntp/nd41.nsf/85255e6f0052055e85255d7f005ed8bc/a2f5a11abbcec9a9376a775bd27d2bb2?OpenDocument

Hope it helps
-reynir


> -Original Message-
> From: Iván Escobedo [mailto:[EMAIL PROTECTED]] 
> Sent: 21. janúar 2003 16:41
> To: Tomcat Users List
> Subject: Help java.sql.SQLException: JZ006: Caught 
> IOException.java.net.SocketException: Broke
> 
> 
> Resending this message 'cause I deleted all the previous 
> messages without seeing them
> 
> Hello, I need to know what is this error, I'm using Tomcat, Sybase
> 
> 
> java.sql.SQLException: JZ006: Caught 
> IOException.java.net.SocketException: Broke n pipe
> at com.sybase.jdbc.ErrorMessage.raiseError(ErrorMessage.java)
> at com.sybase.tds.Tds.language(Tds.java)
> at com.sybase.jdbc.SybStatement.sendQuery(SybStatement.java)
> at 
> com.sybase.jdbc.SybStatement.executeQuery(SybStatement.java)
> at 
> com.sybase.jdbc.SybStatement.executeQuery(SybStatement.java)
> at 
> com.nacion.register.UserAccessFilter.ExecQuery(UserAccessFilter.java:
> 187)
> at 
> com.nacion.register.UserAccessFilter.ValidAccess(UserAccessFilter.jav
> a:81)
> at 
> com.nacion.register.UserAccessFilter.SaveUserAccess(UserAccessFilter.
> java:54)
> at 
> com.nacion.register.UserAccessFilter.doFilter(UserAccessFilter.java:3
> 7)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> icationFilterChain.java:213)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
> ilterChain.java:193)
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
> alve.java:260)
> at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
> at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:480)
> at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
> alve.java:191)
> at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
> at 
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
> torBase.java:471)
> at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:641)
> at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:480)
> at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at 
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
> 2396)
> at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
> ava:180)
> at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
> at 
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
> rValve.java:170)
> at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:641)
> at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
> ava:172)
> at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:641)
> at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:480)
> at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
> ve.java:174)
> at 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
> at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:480)
> at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at 
> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:22
> 3)
> at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
> :405)
> at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
> ssConnection(Http11Protocol.java:380)
> at 
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
> :508)
> at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
> ool.java:533)
> at java.lang.Thread.run(Thread.java:536)
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mai

RE: Unable to execute/see JSP pages

2003-01-21 Thread Curt LeCaptain
My apologies.  /data/www/docs/linuxtest.itol.com/webapp/examples does
not exist... I did copy the /examples directory from
CATALINA_HOME/webapps/examples to
/data/www/docs/linuxtest.itol.com/examples

Hopefully this clears this up for you.  Thanks again.

Curt

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 21, 2003 10:38 AM
To: 'Tomcat Users List'
Subject: RE: Unable to execute/see JSP pages



I'm a little confused.  Does
/data/www/docs/linuxtest.itol.com/webapp/examples exist or not?  You've
got an appBase in your Host element, that means that
CATALINA_HOME/webapps will be ignored for that host name.  The only
place that /examples exists, unless you've copied the directory, is
CATALINA_HOME/webapps/examples.

John


> -Original Message-
> From: Curt LeCaptain [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 21, 2003 11:27 AM
> To: 'Tomcat Users List'
> Subject: RE: Unable to execute/see JSP pages
> 
> 
> Well, after looking through some error logs... A bit of
> insight came to
> mind.
> 
> Seems that they're trying to load examples from 
> /data/www/docs/linuxtest.itol.com/webapp/examples..
> 
> Something that doesn't exist, so, I've changed my server.xml a bit to 
> reflect that, and receive errors.  That information follows:
> 
> Server.xml changes:
> 
>  
>   
>   
> 
> Errors:
> 
> 2003-01-21 10:03:05 StandardContext[/examples]: Error initializing
> resources: Document base /data/www/docs/linuxtes 
> t.itol.com/webapps/examples does not exist or is not a readable 
> directory 2003-01-21 10:03:06 StandardContext[/examples]: Context 
> startup failed due to previous errors
> 2003-01-21 10:03:06 StandardContext[/examples]: Exception 
> during cleanup
> after start failed
> LifecycleException:  Container StandardContext[/examples] has not been
> started
> at
> org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1147)
> at
> org.apache.catalina.core.StandardContext.stop(StandardContext.
> java:3495)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext
> .java:3434
> )
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
> at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
> at
> org.apache.catalina.core.StandardService.start(StandardService
> .java:388)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
> at 
> org.apache.catalina.startup.Catalina.start(Catalina.java:781)
> at
> org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
> at
> org.apache.catalina.startup.Catalina.process(Catalina.java:179)
> at java.lang.reflect.Method.invoke(Native Method)
> at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> 
> 2003-01-21 10:09:46 WebappLoader[/examples]: Deploying class 
> repositories to work directory /usr/local/src/jakarta- 
> tomcat-4.0.6/work/Standalone/linuxtest.itol.com/examples
> 2003-01-21 10:09:46 StandardManager[/examples]: Seeding random number 
> generator class java.security.SecureRandom 2003-01-21 10:09:46 
> StandardManager[/examples]: Seeding of random number
> generator has been completed
> 2003-01-21 10:09:47 ContextConfig[/examples]: No Realm has been
> configured to authenticate against
> 2003-01-21 10:09:47 ContextConfig[/examples]: Marking this application
> unavailable due to previous error(s)
> 2003-01-21 10:09:47 StandardContext[/examples]: Error initializing
> naming context for context /examples
> 2003-01-21 10:09:47 StandardContext[/examples]: Context startup failed
> due to previous errors
> 2003-01-21 10:09:47 StandardContext[/examples]: Error initializing
> naming context for context /examples
> (END) 
> 
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 21, 2003 9:40 AM
> To: 'Tomcat Users List'
> Subject: RE: Unable to execute/see JSP pages
> 
> 
> 
> Where is the JSP located in your directory structure?
> 
> Do the examples work?
> 
> John
> 
> 
> > -Original Message-
> > From: Curt LeCaptain [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 21, 2003 10:37 AM
> > To: [EMAIL PROTECTED]
> > Subject: Unable to execute/see JSP pages
> > 
> > 
> > I've set-up our Java development server with my own server.xml, and
> > added virtual hosts to my apache, both linked via mod_jk, 
> using apache
> 
> > 1.3.27 and Tomcat 4.0.6.  The following are my config
> files.  What I'm
> 
> > wondering is, I've got a basic "this's this page..." jsp
> created, with
> 
> > a basic output command in java.  I'm not seeing the command, so I'm 
> > guessing something isn't handing off correctly.  An
> addition... When I
> > go to linuxtest.itol.com (not world accessable, in

RE: URL mapping problem

2003-01-21 Thread Daniel Brown
Roger,

It sounds like you've created a web application to hold these servlets, and
Tomcat is inserting the name of the web application when creating the path
to the 'exit.htm's that you're trying to replace.

If you try this using the ROOT web application, it should do what you're
wanting.

Alternatively, try creating two new web applications - one call 'ipshtml',
and the other called 'elcomhtml' and put your two different 'exit.htm'
servlet replacements in their respective webapps.

HTH,

Dan.

> -Original Message-
> From: Varley, Roger [mailto:[EMAIL PROTECTED]]
> Sent: 21 January 2003 15:19
> To: Tomcat Users List (E-mail)
> Subject: URL mapping problem
>
>
> Hi
>
> (Tomcat 3.2, IIS 4.0 Win NT5.0 Sp6)
>
> I have a commercial web application (to which I have no access to the
> source) that exists in two configurations (i.e two sets of web directories
> below Inetpub/wwwroot). The application ends by calling exit.htm in their
> respective html directories (ipshtml and elcomhtml). I need to do
> some extra
> processing and want to replace these calls to exit.htm with calls to
> servlets that exist in a Tomcat web application. Each call needs
> a different
> servlet although they are in the same Tomcat web application
>
> I've put the following entries in uriworkermap.properties (one for each of
> the applications)
>
> /ipshtml/exit.htm=$(default.worker)
> /elcomhtml/exit.htm=$(default.worker)
>
> and after restarting both tomcat and IIS, I can see from the
> isapi.log that
> IIS is correctly identifying both these calls as servlet URLS and
> hands off
> to tomcat.
>
> What I'm having problems with is configuring the web.xml file to find the
> servlet. I started with
>
> 
>   ExitReplacement
>   /ipshtml/exit.htm
>   
>   
>   ElcomExit
>   /elcomhtml/exit.htm
>   
>
> but calls to either ipshtml/exit.htm and elcomhtml/exit.htm both
> return 404.
> If I change to
>
> 
>   ExitReplacement
>   /exit.htm
>   
>   
>   ElcomExit
>   /exit.htm
>   
>
> then Tomcat logs that it's removing duplicate exit.htm's during
> startup and
> calls to both /ipshtml/exit.htm and /elcomhtml/exit.htm resolve to
> ElcomExit. If I reverse the order of the servlet mapping entries then both
> resolve to ExitReplacement.
>
> So, how do I map /ipshtml/exit.htm to ExitReplacement and
> /elcomhtml/exit.htm to ElcomExit when both ExitReplacement and ElcomExit
> exist in the same Tomcat Web Application.
>
> I hope that this makes sense.
>
> Regards
> Roger
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Setting up mod_jk in a cluster environment

2003-01-21 Thread Jacob Kjome
Hello Garrick,

See:
http://www.filip.net/tomcat/
http://www.theserverside.com/resources/article.jsp?l=Tomcat

http://www.onjava.com/pub/a/onjava/2002/07/17/tomcluster.html?page=1
or
http://www.onjava.com/lpt/a/2422

http://www.tangosol.com/products-clustering.jsp


That should get you started.

Jake

Tuesday, January 21, 2003, 10:11:59 AM, you wrote:

GD> I am presently working on setting up several tomcat clusters with 
GD> in-memory session replication using Java groups.

GD> My proposed setup would be:

GD> 2 Apache Servers running mod_jk
GD> 4 Tomcat servers broken into 2 clusters of 2.

GD> To reduce network bandwidth, I only want to do in-memory session 
GD> replication between the members of each cluster,
GD> thus allowing 1 machine in each cluster to fail without the site crashing.

GD> To acomplish this I need to be able to create 2 virtual clusters using 
GD> mod_jk.

GD> My thought was to create a load balanced worker, whose members are also 
GD> load balanced workers.

GD> Has anyone attempted this or know if it will work?

GD> Any help would be appreciated.

GD> Garrick Dasbach

GD> Here's an example workers.properties file.

GD> # Define 4 workers, 3 real workers using ajp12, ajp13, jni, the last one 
GD> being a loadbalancing worker
GD> worker.list=worker1, worker2, worker3, worker4, cluster1, cluster2, 
GD> loadbalancer

GD> # Set properties for worker1 (ajp13)
GD> worker.worker1.type=ajp13
GD> worker.worker1.host=server1
GD> worker.worker1.port=8007
GD> worker.worker1.lbfactor=100

GD> # Set properties for worker2 (ajp13)
GD> worker.worker2.type=ajp13
GD> worker.worker2.host=server2
GD> worker.worker2.port=8007
GD> worker.worker2.lbfactor=100

GD> # Set properties for worker3 (ajp13)
GD> worker.worker2.type=ajp13
GD> worker.worker2.host=server3
GD> worker.worker2.port=8007
GD> worker.worker2.lbfactor=100

GD> # Set properties for worker4 (ajp13)
GD> worker.worker2.type=ajp13
GD> worker.worker2.host=server4
GD> worker.worker2.port=8007
GD> worker.worker2.lbfactor=100

GD> # Set properties for lb1 (lb) which use worker1 and worker2
GD> worker.cluster1.balanced_workers=worker1,worker2

GD> # Set properties for lb1 (lb) which use worker3 and worker4
GD> worker.cluster2.balanced_workers=worker3,worker4

GD> # Set properties for lbprimary (lb) which use worker1 and worker2
GD> worker.loadbalancer.balanced_workers=cluster1,cluster2




-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Closed OutStream doesn't throw exception when using Tomcat with Apache?

2003-01-21 Thread Thomas Lange
Closing the connection doesn't throw an exception when writing to the
OutStream of my Servlet when using Tomcat with Apache. I can write to it
indefinitely. It works however, when using Tomcat as standalone.

How can I make the servlet throw an exception when the connection ist
closed?

I'm using Tomcat4, Apache 1.3.27 and mod_jk.

Thanks for any clues...
Thomas


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat 4.1.18 and HttpsURLConnection

2003-01-21 Thread Becky Phaneuf
Ed,

I had this same problem and discovered that JDK 1.4.1 no longer uses com.sun.ssl., 
but somehow my url.openConnection() was returning it.   I spent days tearing out my 
hair and couldn't figure out how it was happening (I even began declaring and 
instantiating everything using the fully qualified name, yet it was still returning 
the old com.sun package name).

Finally, just for grins, I copied my old jpicerts140_01 and jpihttpscerts140_01 from 
.java and that fixed it.  Don't ask me how those two files get generated, or what 
they're used for.  I have no idea, but that fixed it.  If anyone knows why I'd love to 
hear.

Thanks,
-B

>>> [EMAIL PROTECTED] 01/19/03 10:35PM >>>
I'm wondering if anyone else has seen this problem in Tomcat 4.1.18.  I
just upgraded from 4.0.4 where I have a struts application that uses the
HttpsURLConnection class to open a connection and do a POST:


URL url;
HttpsURLConnection httpsConn = null;

url = new java.net.URL("https://www.someserver";);
httpsConn = (HttpsURLConnection)url.openConnection();

I'm using j2sdk1.4.1_01 and all is well under Tomcat 4.0.4, however when
I run it under 4.1.18 I get a ClassCastException on this line:

httpsConn = (HttpsURLConnection)url.openConnection();

Any ideas?  I'm running a very simple configuration, a host entry
pointing to the correct docBase and a Context under that pointing to the
correct docBase and giving the path.

TIA.

Ed


-- 
Ed Robbins <[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




  1   2   >