Is there a tomcat manager API? (tomcat 4.1.12)

2002-11-12 Thread Steinar Bang
I would like to reload our user webapp from our own manager webapp,
when properties have been changed in the manager webapp.

Is there a .jar file I could include into our own manager webapp, and
an API I can access?

Or is the proper way to use the HTTP interface, described here?

URL:http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html#Supported%20Manager%20Commands

I tried looking at the Catalina Javadocs, linked to from the Manager
howto page, but that link gave me a 404 not found.

Thanx!


- Steinar



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




filter doesn't work at Tomcat4.1.12!?

2002-11-12 Thread Johnny Cui

Hi all,

I have check every possible error according to some friends suggestion,
however, my own filter still doesn't work.It is just a authenticater filter.

the weird things is, I can see the print out lines in the filter.init()
methods, this means the container has create a instance for my filters, but
the doFilter() seem not to be called, because I add a print line in the very
beginning of the code for doFilter().

I think the server.xml and web.xml is fine because the sample filter can
work now, I just put the filter element for authenticater filter behind
the sample working filter, and the filter-mapping is all the same for the
two fitler, so I assume in the filterchain should be like this:  sample
filter -- authenticater filter.

could anybody help me to solve this problem.

Johnny



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




JSP to JSP

2002-11-12 Thread Sudhir Kumar
i need to communicate between two jsp's which are running on 2 remote
machines. both the jsp's are running on tomcat. i need to pass some data
between these jsp's. both the jsp's are connected to two seperate databases.
is it possible to get the data of a remote database by invoking the jsp
running at that location ???. Any help in this regard will be helpfull..

thanks in advance
sudhir


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




JNDI Connection pooling defaults

2002-11-12 Thread Madocke TomCat users
Hi guys,
 
I realize this might be slightly off-topic, but I've got no other place to turn. I'm 
using Tomcat's default connection pool using the mm.mysql JDBC driver. It seems that 
my program creates a little too many database connections when I load about 20-30 
pages at the same time. My temporary solution to fix this problem would be to increase 
the number of connections the dbpool maintains, but I can't seem to find how many 
connections Tomcat maintains standard. I can't seem to find anything at all about that 
come to think about it. Any input on the issue would be greatly appreciated.
 
My server.xml:
 
 Context path= docBase=site debug=0
   Resource name=jdbc/PrivaCmsDB auth=Container
   type=javax.sql.DataSource/ ResourceParams
   name=jdbc/PrivaCmsDB
   parameter
   nameuser/name
   value/value
   /parameter
   parameter
   namepassword/name
   value/value
   /parameter
   parameter
   namedriverClassName/name
   valueorg.gjt.mm.mysql.Driver/value
   /parameter
   parameter
   namedriverName/name
   valuejdbc:mysql://localhost:3306/dbDefault/value
   /parameter
   /ResourceParams
 /Context

Thanks in advance guys.



AW: JSP to JSP

2002-11-12 Thread Power-Netz \(Schwarz\)

 is it possible to get the data of a remote database by invoking the jsp
 running at that location ???. Any help in this regard will be helpfull..

Why don't you connect to the other database directly ???

If you won't do that, send your data via a normal POST form to the other JSP

M.Schwarz


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




T 3.2.1 - Single JVM?

2002-11-12 Thread Andoni
The following is in the Tomcat Users Guide for tomcat 3.2
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html


bThe need for improved virtual host support/b
Having each virtual host implemented by a different JVM is a huge scalability problem. 
The next versions of Tomcat will make it possible to support several virtual hosts 
within the same Tomcat JVM. 


I have not come across a problem because of this yet but as I go to put 3 applications 
(web-apps) live at the same time I begin to panic when I see things like this.  Does 
this mean that I have to install 3 JRE's on my live server?


Andoni.




Re: T 3.2.1 - Single JVM?

2002-11-12 Thread Jon Eaves
And also, just because they are different web apps doesn't mean
they are different hosts.

Provided it's all addressed by:

www.myhost.com/webapp1
www.myhost.com/webapp2
and
www.myhost.com/webapp3

Then you should be fine.

Caveat: I've not used the Tomcat 3.x series in recent times.

Cheers,
	-- jon

Ralph Einfeldt wrote:


You don't have to install 3 JRE's.

You can use several instances of the same JRE.


-Original Message-
From: Andoni [mailto:andoni;indigo.ie]
Sent: Tuesday, November 12, 2002 11:21 AM
To: Tomcat Users List
Subject: T 3.2.1 - Single JVM?

I have not come across a problem because of this yet but as I
go to put 3 applications (web-apps) live at the same time I
begin to panic when I see things like this.  Does this mean
that I have to install 3 JRE's on my live server?


Andoni.





--
Jon Eaves [EMAIL PROTECTED]
http://www.eaves.org/jon/


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: How to configure an URLContextFactory for tomcat

2002-11-12 Thread Jose Antonio Martinez
do you have an application server working together
with tomcat? i think tomcat cant serve ejb itself

 --- Christian Surlykke [EMAIL PROTECTED] escribió: 
Hi
  
 I'm trying to call an EJB running on OC4J from a
 servlet. I want to use a ejb-ref element in web.xml
 like:
 
 ejb-ref
 ejb-ref-nameejb/MyEJB/ejb-ref-name
 ejb-ref-typeSession/ejb-ref-type
 hometest.MyEJBHome/home
 remotetest.MyEJB/remote


ejb-linkormi://localhost:23791/ejb/MyEJB/ejb-link
 /ejb-ref
 
 How do I configure Tomcat to use an
 URLContextFactory of my own making to handle the
 'ormi:' schema ?
 
 (I vaguely suspect that it has something to do with
 resource-ref elements,  but that seems to only
 apply to stuff bound beneath the java: schema..)
 
 Any hints would be appreciated
 
 best regards Christian Surlykke
 
 --
 To unsubscribe, e-mail:  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
  

___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: T 3.2.1 - Single JVM? - How, with workers?

2002-11-12 Thread Andoni
How do I do this?

Do I use separate Workers?

Thanks,

Andoni.

- Original Message -
From: Ralph Einfeldt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, November 12, 2002 10:35 AM
Subject: RE: T 3.2.1 - Single JVM?


You don't have to install 3 JRE's.

You can use several instances of the same JRE.

 -Original Message-
 From: Andoni [mailto:andoni;indigo.ie]
 Sent: Tuesday, November 12, 2002 11:21 AM
 To: Tomcat Users List
 Subject: T 3.2.1 - Single JVM?

 I have not come across a problem because of this yet but as I
 go to put 3 applications (web-apps) live at the same time I
 begin to panic when I see things like this.  Does this mean
 that I have to install 3 JRE's on my live server?


 Andoni.



--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Virtual Hosting without Apache?

2002-11-12 Thread John Menke
Do you need Apache to do Virtual Hosting with Tomcat?  Can tomcat handle by
itself?

-jm


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: windows iis machine + linux tomcat machine

2002-11-12 Thread Andy Eastham
Install Apache on the Linux machine and everything will work perfectly ;-)

 -Original Message-
 From: Jose Antonio Martinez [mailto:lfbbes;yahoo.es]
 Sent: 12 November 2002 11:22
 To: [EMAIL PROTECTED]
 Subject: windows iis machine + linux tomcat machine


 what do you think is the best way to make work
 together this configuration:

   windows iis machine + linux tomcat machine

 NFS?

 ___
 Yahoo! Messenger
 Nueva versión: Webcam, voz, y mucho más ¡Gratis!
 Descárgalo ya desde http://messenger.yahoo.es

 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Virtual Hosting without Apache?

2002-11-12 Thread Jose Antonio Martinez
tomcat can serve static and jsp/servlets request. It
can be used for virtual hosting itself but considere
that static request are served faster with apache.


 --- John Menke [EMAIL PROTECTED] escribió:  Do you
need Apache to do Virtual Hosting with
 Tomcat?  Can tomcat handle by
 itself?
 
 -jm
 
 
 --
 To unsubscribe, e-mail:  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
  

___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: windows iis machine + linux tomcat machine

2002-11-12 Thread Jose Antonio Martinez
yes i know, but i cant. I want to process asp and jsp
too. 

i know there are asp solutions for apache but i prefer
to run them on windows/iis.

nfs? samba?

 --- Andy Eastham [EMAIL PROTECTED] escribió:
 Install Apache on the Linux machine and everything
 will work perfectly ;-)
 
  -Original Message-
  From: Jose Antonio Martinez
 [mailto:lfbbes;yahoo.es]
  Sent: 12 November 2002 11:22
  To: [EMAIL PROTECTED]
  Subject: windows iis machine + linux tomcat
 machine
 
 
  what do you think is the best way to make work
  together this configuration:
 
windows iis machine + linux tomcat machine
 
  NFS?
 
 

___
  Yahoo! Messenger
  Nueva versión: Webcam, voz, y mucho más ¡Gratis!
  Descárgalo ya desde http://messenger.yahoo.es
 
  --
  To unsubscribe, e-mail:
 
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
 
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
  

___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: How to configure an URLContextFactory for tomcat

2002-11-12 Thread Christian Surlykke
Yes  - OC4J (= Oracle Containers For Java) is an j2ee 1.3 compliant EJB application 
server. The EJB is running on OC4J and I want to open a connection to it from a 
servlet. 
The reason I want to use ejb-ref is to remove direct references to the url 
(ormi://localhost...) from servlet code.
br. Christian

On Tuesday 12 November 2002 12:25, Jose Antonio Martinez wrote:
 do you have an application server working together
 with tomcat? i think tomcat cant serve ejb itself

  --- Christian Surlykke [EMAIL PROTECTED] escribió: 
 Hi

  I'm trying to call an EJB running on OC4J from a
  servlet. I want to use a ejb-ref element in web.xml
  like:
 
  ejb-ref
  ejb-ref-nameejb/MyEJB/ejb-ref-name
  ejb-ref-typeSession/ejb-ref-type
  hometest.MyEJBHome/home
  remotetest.MyEJB/remote

 ejb-linkormi://localhost:23791/ejb/MyEJB/ejb-link

  /ejb-ref
 
  How do I configure Tomcat to use an
  URLContextFactory of my own making to handle the
  'ormi:' schema ?
 
  (I vaguely suspect that it has something to do with
  resource-ref elements,  but that seems to only
  apply to stuff bound beneath the java: schema..)
 
  Any hints would be appreciated
 
  best regards Christian Surlykke
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org

 ___
 Yahoo! Messenger
 Nueva versión: Webcam, voz, y mucho más ¡Gratis!
 Descárgalo ya desde http://messenger.yahoo.es

 --
 To unsubscribe, e-mail:  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional
 commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: How to configure an URLContextFactory for tomcat

2002-11-12 Thread Philippe de M. Sevestre
Check the JBoss docs for a similar configuration.
In short, you have to figure out how to setup the
JNDI InitialContext in you app.

BTW,I think you're misusing the ebj-link item.
From the servlet DTD:

!--

The ejb-link element is used in the ejb-ref or ejb-local-ref
elements to specify that an EJB reference is linked to another
enterprise bean.
The value of the ejb-link element must be the ejb-name of an
enterprise bean in the same J2EE application unit.
The name in the ejb-link element may be composed of a
path name specifying the ejb-jar containing the referenced enterprise
bean with the ejb-name of the target bean appended and separated from
the path name by #. The path name is relative to the WAR
containing the web application that is referencing the enterprise bean.
This allows multiple enterprise beans with the same ejb-name to be
uniquely identified.
Examples:
ejb-linkEmployeeRecord/ejb-link
ejb-link../products/product.jar#ProductEJB/ejb-link


--






- Original Message -
From: Jose Antonio Martinez 
To: Tomcat Users List [EMAIL PROTECTED]
Sent: terça-feira, 12 de novembro de 2002 08:25
Subject: Re: How to configure an URLContextFactory for tomcat


 do you have an application server working together
 with tomcat? i think tomcat cant serve ejb itself

  --- Christian Surlykke [EMAIL PROTECTED] escribió: 
 Hi
 
  I'm trying to call an EJB running on OC4J from a
  servlet. I want to use a ejb-ref element in web.xml
  like:
 
  ejb-ref
  ejb-ref-nameejb/MyEJB/ejb-ref-name
  ejb-ref-typeSession/ejb-ref-type
  hometest.MyEJBHome/home
  remotetest.MyEJB/remote
 
 
 ejb-linkormi://localhost:23791/ejb/MyEJB/ejb-link
  /ejb-ref
 
  How do I configure Tomcat to use an
  URLContextFactory of my own making to handle the
  'ormi:' schema ?
 
  (I vaguely suspect that it has something to do with
  resource-ref elements,  but that seems to only
  apply to stuff bound beneath the java: schema..)
 
  Any hints would be appreciated
 
  best regards Christian Surlykke
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
 

 ___
 Yahoo! Messenger
 Nueva versión: Webcam, voz, y mucho más ¡Gratis!
 Descárgalo ya desde http://messenger.yahoo.es

 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: windows iis machine + linux tomcat machine

2002-11-12 Thread Philippe de M. Sevestre
Why not SMBFS ?

- Original Message -
From: Jose Antonio Martinez [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: terça-feira, 12 de novembro de 2002 08:22
Subject: windows iis machine + linux tomcat machine


 what do you think is the best way to make work
 together this configuration:

   windows iis machine + linux tomcat machine

 NFS?

 ___
 Yahoo! Messenger
 Nueva versión: Webcam, voz, y mucho más ¡Gratis!
 Descárgalo ya desde http://messenger.yahoo.es

 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: filter doesn't work at Tomcat4.1.12!?

2002-11-12 Thread Cox, Charlie
if your filter is not being called, then the mapping is probably not
correct. Please provide the relevant portions of your web.xml.  Also provide
the url that your are using for testing. You can change names to protect the
innocent.

did you look in the logs to see if there are any messages?

Charlie

 -Original Message-
 From: Johnny Cui [mailto:johnny_lucky2000;yahoo.com]
 Sent: Tuesday, November 12, 2002 4:09 AM
 To: Tomcat Users List
 Subject: filter doesn't work at Tomcat4.1.12!?
 
 
 
 Hi all,
 
 I have check every possible error according to some friends 
 suggestion,
 however, my own filter still doesn't work.It is just a 
 authenticater filter.
 
 the weird things is, I can see the print out lines in the 
 filter.init()
 methods, this means the container has create a instance for 
 my filters, but
 the doFilter() seem not to be called, because I add a print 
 line in the very
 beginning of the code for doFilter().
 
 I think the server.xml and web.xml is fine because the sample 
 filter can
 work now, I just put the filter element for authenticater 
 filter behind
 the sample working filter, and the filter-mapping is all 
 the same for the
 two fitler, so I assume in the filterchain should be like 
 this:  sample
 filter -- authenticater filter.
 
 could anybody help me to solve this problem.
 
 Johnny
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: How to configure an URLContextFactory for tomcat

2002-11-12 Thread Christian Surlykke
There was a discussion on tomcat-dev regarding the use of ejb-link. 
See  http://w6.metronet.com/~wjm/tomcat/2001/Mar/msg00292.html and the reply. 
I took the reply to mean that you _can_ link to an EJB in another app-server.

br. Christian

On Tuesday 12 November 2002 14:38, Philippe de M. Sevestre wrote:
 Check the JBoss docs for a similar configuration.
 In short, you have to figure out how to setup the
 JNDI InitialContext in you app.

 BTW,I think you're misusing the ebj-link item.
 From the servlet DTD:

 !--

 The ejb-link element is used in the ejb-ref or ejb-local-ref
 elements to specify that an EJB reference is linked to another
 enterprise bean.
 The value of the ejb-link element must be the ejb-name of an
 enterprise bean in the same J2EE application unit.
 The name in the ejb-link element may be composed of a
 path name specifying the ejb-jar containing the referenced enterprise
 bean with the ejb-name of the target bean appended and separated from
 the path name by #. The path name is relative to the WAR
 containing the web application that is referencing the enterprise bean.
 This allows multiple enterprise beans with the same ejb-name to be
 uniquely identified.
 Examples:
 ejb-linkEmployeeRecord/ejb-link
 ejb-link../products/product.jar#ProductEJB/ejb-link


 --






 - Original Message -
 From: Jose Antonio Martinez 
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: terça-feira, 12 de novembro de 2002 08:25
 Subject: Re: How to configure an URLContextFactory for tomcat

  do you have an application server working together
  with tomcat? i think tomcat cant serve ejb itself
 
   --- Christian Surlykke [EMAIL PROTECTED] escribió: 
  Hi
 
   I'm trying to call an EJB running on OC4J from a
   servlet. I want to use a ejb-ref element in web.xml
   like:
  
   ejb-ref
   ejb-ref-nameejb/MyEJB/ejb-ref-name
   ejb-ref-typeSession/ejb-ref-type
   hometest.MyEJBHome/home
   remotetest.MyEJB/remote
 
  ejb-linkormi://localhost:23791/ejb/MyEJB/ejb-link
 
   /ejb-ref
  
   How do I configure Tomcat to use an
   URLContextFactory of my own making to handle the
   'ormi:' schema ?
  
   (I vaguely suspect that it has something to do with
   resource-ref elements,  but that seems to only
   apply to stuff bound beneath the java: schema..)
  
   Any hints would be appreciated
  
   best regards Christian Surlykke
  
   --
   To unsubscribe, e-mail:
   mailto:tomcat-user-unsubscribe;jakarta.apache.org
   For additional commands, e-mail:
   mailto:tomcat-user-help;jakarta.apache.org
 
  ___
  Yahoo! Messenger
  Nueva versión: Webcam, voz, y mucho más ¡Gratis!
  Descárgalo ya desde http://messenger.yahoo.es
 
  --
  To unsubscribe, e-mail:

 mailto:tomcat-user-unsubscribe;jakarta.apache.org

  For additional commands, e-mail:

 mailto:tomcat-user-help;jakarta.apache.org



 --
 To unsubscribe, e-mail:  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional
 commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



msg00292.html
Description: Binary data
--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


Re: Basic Setup Question...

2002-11-12 Thread mlh

FWIW, you do not have to do ANYTHING to
the server.xml as distributed to be able
to have apache forward *.jsp's to tomcat.

All you have to do is install mod_jk in
apache, edit apache's httpd.conf and write
the mod_jk.conf.  Of these 3, building and
installing the mod_jk.so is perhaps the
most time-consuming/difficult.

For the last 2, copious examples now exist
on the jakarta web site and elsewhere on the
'net.

Matt



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Basic Setup Question...

2002-11-12 Thread Chuck Williams
Matt,

Thanks, I've got everything working now!

Charles Williams
Sr. Solutions Architect
Document Switch Team
703-338-5162
http://www.vitria.com


-Original Message-
From: mlh [mailto:mlh;zip.com.au] 
Sent: Tuesday, November 12, 2002 7:27 AM
To: Tomcat Users List
Subject: Re: Basic Setup Question...


FWIW, you do not have to do ANYTHING to
the server.xml as distributed to be able
to have apache forward *.jsp's to tomcat.

All you have to do is install mod_jk in
apache, edit apache's httpd.conf and write
the mod_jk.conf.  Of these 3, building and
installing the mod_jk.so is perhaps the
most time-consuming/difficult.

For the last 2, copious examples now exist
on the jakarta web site and elsewhere on the
'net.

Matt



--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Basic Setup Question...

2002-11-12 Thread Turner, John

You need a workers.properties file, as well.

You will need to change server.xml if you use virtual host names...the
default server.xml has Host elements defined for localhost only.

John


 -Original Message-
 From: mlh [mailto:mlh;zip.com.au]
 Sent: Tuesday, November 12, 2002 7:27 AM
 To: Tomcat Users List
 Subject: Re: Basic Setup Question...
 
 
 
 FWIW, you do not have to do ANYTHING to
 the server.xml as distributed to be able
 to have apache forward *.jsp's to tomcat.
 
 All you have to do is install mod_jk in
 apache, edit apache's httpd.conf and write
 the mod_jk.conf.  Of these 3, building and
 installing the mod_jk.so is perhaps the
 most time-consuming/difficult.
 
 For the last 2, copious examples now exist
 on the jakarta web site and elsewhere on the
 'net.
 
 Matt
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Virtual Hosting without Apache?

2002-11-12 Thread Turner, John

No, you do not need Apache.

In Tomcat, virtual hosts are configured via Host elements in server.xml.

John


 -Original Message-
 From: John Menke [mailto:jm;basebeans.com]
 Sent: Tuesday, November 12, 2002 6:52 AM
 To: Tomcat Users List
 Subject: Virtual Hosting without Apache?
 
 
 Do you need Apache to do Virtual Hosting with Tomcat?  Can 
 tomcat handle by
 itself?
 
 -jm
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




What is Realm

2002-11-12 Thread Hari Yellina

Hi All,

What is Realm.

From Hari.
-Original Message-
From: McBrayer, Roy [mailto:Roy.McBrayer;mail.va.gov]
Sent: Saturday, November 09, 2002 05:44 AM
To: '[EMAIL PROTECTED]'
Subject: Configuring tomcat to use different realms with different
applications


I cannot get TomCat  4.1.12 to use different realms for separate
applications.  I have specified the realm inside an application context in
the server.xml file but the app is still using the default realm.  If I
remove the default realm then nothing works.  With respect to the xml files
given below iiv is the application which I am trying to configure to use a
separate realm from the default.  Any help would be appreciated.

Thanks,
Roy

The web.xml  is

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
web-app
servlet
servlet-namecontrol/servlet-name
servlet-classorg.dbforms.Controller/servlet-class
init-param
param-namemaxUploadSize/param-name
param-value8/param-value
/init-param
/servlet
servlet
servlet-namefile/servlet-name
servlet-classorg.dbforms.util.FileServlet/servlet-class
load-on-startup3/load-on-startup
/servlet
servlet
servlet-nameorg.dbforms.ConfigServlet/servlet-name
servlet-classorg.dbforms.ConfigServlet/servlet-class
init-param
param-namelog4j.configuration/param-name
param-value/WEB-INF/log4j.properties/param-value
/init-param
load-on-startup4/load-on-startup
/servlet
servlet-mapping
servlet-namecontrol/servlet-name
url-pattern/servlet/control/url-pattern
/servlet-mapping
servlet-mapping
servlet-namefile/servlet-name
url-pattern/servlet/file/url-pattern
/servlet-mapping
session-config
session-timeout25/session-timeout
/session-config
welcome-file-list
welcome-filehome.jsp/welcome-file
/welcome-file-list
taglib
taglib-uri/WEB-INF/dbforms.tld/taglib-uri
taglib-location/WEB-INF/dbforms.tld/taglib-location
/taglib
security-constraint
web-resource-collection
web-resource-nameiiv/web-resource-name
url-pattern/*/url-pattern
/web-resource-collection
auth-constraint
role-nameadmin/role-name
/auth-constraint
/security-constraint
login-config
auth-methodBASIC/auth-method
realm-nameiiv/realm-name
/login-config
/web-app


The server.xml is


!-- Example Server Configuration File --
Server port=8005 shutdown=SHUTDOWN debug=0
!-- Uncomment these entries to enable JMX MBeans support --
Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/
Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/
!-- Global JNDI resources --
GlobalNamingResources
!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer
value=30/
!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
type=org.apache.catalina.UserDatabase description=User database that can
be updated and saved
/Resource
ResourceParams name=UserDatabase
parameter
namefactory/name

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

!-- Define the Tomcat Stand-Alone Service --
Service name=Tomcat-Standalone
!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8081
--
Connector
className=org.apache.coyote.tomcat4.CoyoteConnector port=8099
minProcessors=5 maxProcessors=75 enableLookups=true
redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2
useURIValidationHack=false/

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector
className=org.apache.coyote.tomcat4.CoyoteConnector port=8009
minProcessors=5 maxProcessors=75 enableLookups=true
redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2

Re: JSP to JSP

2002-11-12 Thread Kris Schneider
If all you want to do is include the output of a JSP, you might want to check 
into JSTL's c:include action. Unlike the standard JSP jsp:include action, 
it can access external resources. You can provide c:param nested actions to 
add request paramaters. If you need to process the output before displaying it, 
c:include allows you to export either a String or Reader. JSTL requires a JSP 
1.2 container, so TC 4.x qualifies but TC 3.x does not.

Quoting Sudhir Kumar [EMAIL PROTECTED]:

 i need to communicate between two jsp's which are running on 2 remote
 machines. both the jsp's are running on tomcat. i need to pass some data
 between these jsp's. both the jsp's are connected to two seperate
 databases.
 is it possible to get the data of a remote database by invoking the jsp
 running at that location ???. Any help in this regard will be helpfull..
 
 thanks in advance
 sudhir
 
 
 --
 To unsubscribe, e-mail:  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 


-- 
Kris Schneider mailto:kris;dotech.com
D.O.Tech   http://www.dotech.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: windows iis machine + linux tomcat machine

2002-11-12 Thread Turner, John

Keep it simple.  You keep trying to worry about syncing drives up.  I think
that's more complex than things need to be.

In your .properties file on the IIS machine, just use the FQDN of the Tomcat
server and be done with it.

IIS is horrendously slow using mapped drives to serve content.  

I'm not criticizing, just observing.  You can't be everything to everyone,
if you are starting a business you will go bust quickly trying to be
everything to everyone.  Pick your market...in my experience, if someone is
developing with ASP, they will have no desire and no incentive to develop
with Tomcat.  Seems to me it would make a lot more sense to have an
IIS+Tomcat server and an Apache+Tomcat server, and assign customer accounts
accordingly, instead of creating a very complex architecture.  

I know you mentioned that you want only to deal with Tomcat configuration on
one sort of platform, so I have to assume that you are concerned about
complexity and maintenance.  In my opinion, creating an architecture with
many shared servers, one or more shared drive partitions over a network,
etc. is just as complex, if not more complex, to manage and scale.  

If you come up with a working architecture/solution that allows easy resale
of shared hosting accounts and allows complete flexibility for dynamic
solutions, I'd be interested in seeing a document describing it.

John

 -Original Message-
 From: Jose Antonio Martinez [mailto:lfbbes;yahoo.es]
 Sent: Tuesday, November 12, 2002 6:51 AM
 To: Tomcat Users List
 Subject: RE: windows iis machine + linux tomcat machine
 
 
 yes i know, but i cant. I want to process asp and jsp
 too. 
 
 i know there are asp solutions for apache but i prefer
 to run them on windows/iis.
 
 nfs? samba?
 
  --- Andy Eastham [EMAIL PROTECTED] escribió:
  Install Apache on the Linux machine and everything
  will work perfectly ;-)
  
   -Original Message-
   From: Jose Antonio Martinez
  [mailto:lfbbes;yahoo.es]
   Sent: 12 November 2002 11:22
   To: [EMAIL PROTECTED]
   Subject: windows iis machine + linux tomcat
  machine
  
  
   what do you think is the best way to make work
   together this configuration:
  
 windows iis machine + linux tomcat machine
  
   NFS?
  
  
 
 ___
   Yahoo! Messenger
   Nueva versión: Webcam, voz, y mucho más ¡Gratis!
   Descárgalo ya desde http://messenger.yahoo.es
  
   --
   To unsubscribe, e-mail:
  
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
   For additional commands, e-mail:
   mailto:tomcat-user-help;jakarta.apache.org
  
  
  
  
  
  --
  To unsubscribe, e-mail:  
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
   
 
 ___
 Yahoo! Messenger
 Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
 Descárgalo ya desde http://messenger.yahoo.es
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: JSP to JSP

2002-11-12 Thread Kris Schneider
Erg - change that to c:import...

Quoting Kris Schneider [EMAIL PROTECTED]:

 If all you want to do is include the output of a JSP, you might want to check
 
 into JSTL's c:include action. Unlike the standard JSP jsp:include action,
 
 it can access external resources. You can provide c:param nested actions to
 
 add request paramaters. If you need to process the output before displaying
 it, 
 c:include allows you to export either a String or Reader. JSTL requires a
 JSP 
 1.2 container, so TC 4.x qualifies but TC 3.x does not.
 
 Quoting Sudhir Kumar [EMAIL PROTECTED]:
 
  i need to communicate between two jsp's which are running on 2 remote
  machines. both the jsp's are running on tomcat. i need to pass some data
  between these jsp's. both the jsp's are connected to two seperate
  databases.
  is it possible to get the data of a remote database by invoking the jsp
  running at that location ???. Any help in this regard will be helpfull..
  
  thanks in advance
  sudhir
  
  
  --
  To unsubscribe, e-mail:  
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
  
 
 
 -- 
 Kris Schneider mailto:kris;dotech.com
 D.O.Tech   http://www.dotech.com/
 
 --
 To unsubscribe, e-mail:  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 


-- 
Kris Schneider mailto:kris;dotech.com
D.O.Tech   http://www.dotech.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Apache + one TC for each webapp

2002-11-12 Thread Turner, John

Set up 4.1.12 in a completely different directory.  Modify server.xml so
there are no port conflicts with your 3.x instance.

In httpd.conf add JkMounts for app2, point them to a different worker than
app1.  Assign a different port to the new worker in workers.properties.
Make sure the Coyote/JK2 (or Ajp13) connector in the 4.1.12 server.xml is
listening on the same port as the new worker.

That should be the bulk of it.

John


 -Original Message-
 From: Srinadh Karumuri [mailto:skarumur;bbn.com]
 Sent: Monday, November 11, 2002 4:05 PM
 To: [EMAIL PROTECTED]
 Subject: Apache + one TC for each webapp
 
 
 All,
 
 I read many postings on how to configure multiple tomcats for load 
 balancing etc. But my case is genuine (I feel).
 :)
 
 We have a web site up and running for 1 1/2 yrs. using Apache 
 1.3, mod_jk 
 and tomcat 3.1 and we access it as below:
 
 https://myhost.domain.com/myapp1
 
 Now we need to add another app using tomcat 4.1.12. We don't want to 
 upgrade myapp1 to TC4 right now. Is there any way to setup 
 the second 
 tomcat/apache to access the second application as below:
 
 https://myhost.domain.com/myapp2
 
 
 I don't want to access the second app as below (unless it is 
 the last resort) :
 https://myhost.domain.com:9090/myapp2
 
 Any ideas?
 Thanks for any help.
 -Sri
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: windows iis machine + linux tomcat machine

2002-11-12 Thread Jose Antonio Martinez
imagine i want to offer jboss too... then i would have
to have: windows+iis+tomcat+jboss , and
linux+apache+tomcat+jboss ... and few people using it.


 --- Turner, John [EMAIL PROTECTED] escribió:  
 Keep it simple.  You keep trying to worry about
 syncing drives up.  I think
 that's more complex than things need to be.
 
 In your .properties file on the IIS machine, just
 use the FQDN of the Tomcat
 server and be done with it.
 
 IIS is horrendously slow using mapped drives to
 serve content.  
 
 I'm not criticizing, just observing.  You can't be
 everything to everyone,
 if you are starting a business you will go bust
 quickly trying to be
 everything to everyone.  Pick your market...in my
 experience, if someone is
 developing with ASP, they will have no desire and no
 incentive to develop
 with Tomcat.  Seems to me it would make a lot more
 sense to have an
 IIS+Tomcat server and an Apache+Tomcat server, and
 assign customer accounts
 accordingly, instead of creating a very complex
 architecture.  
 
 I know you mentioned that you want only to deal with
 Tomcat configuration on
 one sort of platform, so I have to assume that you
 are concerned about
 complexity and maintenance.  In my opinion, creating
 an architecture with
 many shared servers, one or more shared drive
 partitions over a network,
 etc. is just as complex, if not more complex, to
 manage and scale.  
 
 If you come up with a working architecture/solution
 that allows easy resale
 of shared hosting accounts and allows complete
 flexibility for dynamic
 solutions, I'd be interested in seeing a document
 describing it.
 
 John
 
  -Original Message-
  From: Jose Antonio Martinez
 [mailto:lfbbes;yahoo.es]
  Sent: Tuesday, November 12, 2002 6:51 AM
  To: Tomcat Users List
  Subject: RE: windows iis machine + linux tomcat
 machine
  
  
  yes i know, but i cant. I want to process asp and
 jsp
  too. 
  
  i know there are asp solutions for apache but i
 prefer
  to run them on windows/iis.
  
  nfs? samba?
  
   --- Andy Eastham [EMAIL PROTECTED]
 escribió:
   Install Apache on the Linux machine and
 everything
   will work perfectly ;-)
   
-Original Message-
From: Jose Antonio Martinez
   [mailto:lfbbes;yahoo.es]
Sent: 12 November 2002 11:22
To: [EMAIL PROTECTED]
Subject: windows iis machine + linux tomcat
   machine
   
   
what do you think is the best way to make work
together this configuration:
   
  windows iis machine + linux tomcat machine
   
NFS?
   
   
  
 

___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más
 ¡Gratis!
Descárgalo ya desde http://messenger.yahoo.es
   
--
To unsubscribe, e-mail:
   
  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org
   
   
   
   
   
   --
   To unsubscribe, e-mail:  
  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
   For additional commands, e-mail:
   mailto:tomcat-user-help;jakarta.apache.org

  
 

___
  Yahoo! Messenger
  Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
  Descárgalo ya desde http://messenger.yahoo.es
  
  --
  To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 --
 To unsubscribe, e-mail:  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
  

___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




ServletContextListener::Initial paramters

2002-11-12 Thread Reynir Hübner
Hello, 

I am implementing a ServletContextListener.
I am wondering if it is possible to get initial parameters into it from web.xml ?

From the javadocs it doesn't seem possible
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/servletapi/javax/servlet/ServletContextListener.html

In other words, there is no method to get the parameters. 
The initial paramter that I am thinking about is a pointer to a properties file. 

Any good ideas ?


Thanx
-reynir



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: how to exclude a jar from being deployed

2002-11-12 Thread Shapira, Yoav
Hi,
Per the servlet specification, if a jar is in WEB-INF/lib it must be
available to the classloader, i.e. deployed.  If you don't want it
deployed, don't put it there. ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Etienne Deleflie [mailto:etienne.deleflie;proxima-tech.com]
Sent: Tuesday, November 12, 2002 2:37 AM
To: [EMAIL PROTECTED]
Subject: how to exclude a jar from being deployed

Hello list,

is it possible to exclude a jar from bring deployed by Tomcat ?.

The jar is in WEB-INF/lib ... and needs to be served by
Webstart
(along with all the other jars in WEB-INF/lib) , but breaks the webapp
when it is deployed by Tomcat.

etienne



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


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


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


RE: ServletContextListener::Initial paramters

2002-11-12 Thread Shapira, Yoav
Hi,
That's what context-parameters are for.  Use context-param.


Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Reynir Hübner [mailto:reynir;hugsmidjan.is]
Sent: Tuesday, November 12, 2002 8:42 AM
To: Tomcat Users List
Subject: ServletContextListener::Initial paramters

Hello,

I am implementing a ServletContextListener.
I am wondering if it is possible to get initial parameters into it from
web.xml ?

From the javadocs it doesn't seem possible
http://jakarta.apache.org/tomcat/tomcat-4.1-
doc/servletapi/javax/servlet/ServletContextListener.html

In other words, there is no method to get the parameters.
The initial paramter that I am thinking about is a pointer to a properties
file.

Any good ideas ?


Thanx
-reynir



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


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


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


RE: ServletContextListener::Initial paramters

2002-11-12 Thread Ralph Einfeldt
What about

ServletContextEvent.getServletContext().getInitParameter() ?

 -Original Message-
 From: Reynir Hübner [mailto:reynir;hugsmidjan.is]
 Sent: Tuesday, November 12, 2002 2:42 PM
 To: Tomcat Users List
 Subject: ServletContextListener::Initial paramters
 
 I am implementing a ServletContextListener.
 I am wondering if it is possible to get initial parameters 
 into it from web.xml ?
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: ServletContextListener::Initial paramters

2002-11-12 Thread Reynir Hübner
Thanx for the replies, 

Am I correct when saying I must specify the contex parameters in server.xml like this 
: 

context-param
  param-nameparamName/param-name
  param-valueparmam Value string foobar/param-value
/context-param

I could use that, but I rather set it in web.xml if possible, is it possible ?
Thanx again, 

Reynir




 -Original Message-
 From: Ralph Einfeldt [mailto:ralph.einfeldt;uptime-isc.de] 
 Sent: 12. nóvember 2002 13:55
 To: Tomcat Users List
 Subject: RE: ServletContextListener::Initial paramters
 
 
 What about
 
 ServletContextEvent.getServletContext().getInitParameter() ?
 
  -Original Message-
  From: Reynir Hübner [mailto:reynir;hugsmidjan.is]
  Sent: Tuesday, November 12, 2002 2:42 PM
  To: Tomcat Users List
  Subject: ServletContextListener::Initial paramters
  
  I am implementing a ServletContextListener.
  I am wondering if it is possible to get initial parameters
  into it from web.xml ?
  
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:tomcat-user-help;jakarta.apache.org
 
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: ServletContextListener::Initial paramters

2002-11-12 Thread Shapira, Yoav
Hi,
context-param's ARE set in web.xml ;)  You're not correct when saying they must be 
specified in server.xml.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Reynir Hübner [mailto:reynir;hugsmidjan.is]
Sent: Tuesday, November 12, 2002 8:59 AM
To: Tomcat Users List
Subject: RE: ServletContextListener::Initial paramters

Thanx for the replies,

Am I correct when saying I must specify the contex parameters in server.xml
like this :

context-param
  param-nameparamName/param-name
  param-valueparmam Value string foobar/param-value
/context-param

I could use that, but I rather set it in web.xml if possible, is it
possible ?
Thanx again,

Reynir




 -Original Message-
 From: Ralph Einfeldt [mailto:ralph.einfeldt;uptime-isc.de]
 Sent: 12. nóvember 2002 13:55
 To: Tomcat Users List
 Subject: RE: ServletContextListener::Initial paramters


 What about

 ServletContextEvent.getServletContext().getInitParameter() ?

  -Original Message-
  From: Reynir Hübner [mailto:reynir;hugsmidjan.is]
  Sent: Tuesday, November 12, 2002 2:42 PM
  To: Tomcat Users List
  Subject: ServletContextListener::Initial paramters
 
  I am implementing a ServletContextListener.
  I am wondering if it is possible to get initial parameters
  into it from web.xml ?
 

 --
 To unsubscribe, e-mail:
 mailto:tomcat-user- [EMAIL PROTECTED]
 For
 additional commands,
 e-mail: mailto:tomcat-user-help;jakarta.apache.org



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


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


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


RE: ServletContextListener::Initial paramters

2002-11-12 Thread Collins, Jim
You can specify them in your web.xml

Regards

Jim

 -Original Message-
 From: Reynir Hübner [mailto:reynir;hugsmidjan.is]
 Sent: 12 November 2002 13:59
 To: Tomcat Users List
 Subject: RE: ServletContextListener::Initial paramters
 
 
 Thanx for the replies, 
 
 Am I correct when saying I must specify the contex parameters 
 in server.xml like this : 
 
 context-param
   param-nameparamName/param-name
   param-valueparmam Value string foobar/param-value
 /context-param
 
 I could use that, but I rather set it in web.xml if possible, 
 is it possible ?
 Thanx again, 
 
 Reynir
 
 
 
 
  -Original Message-
  From: Ralph Einfeldt [mailto:ralph.einfeldt;uptime-isc.de] 
  Sent: 12. nóvember 2002 13:55
  To: Tomcat Users List
  Subject: RE: ServletContextListener::Initial paramters
  
  
  What about
  
  ServletContextEvent.getServletContext().getInitParameter() ?
  
   -Original Message-
   From: Reynir Hübner [mailto:reynir;hugsmidjan.is]
   Sent: Tuesday, November 12, 2002 2:42 PM
   To: Tomcat Users List
   Subject: ServletContextListener::Initial paramters
   
   I am implementing a ServletContextListener.
   I am wondering if it is possible to get initial parameters
   into it from web.xml ?
   
  
  --
  To unsubscribe, e-mail:   
  mailto:tomcat-user- [EMAIL PROTECTED]
  For 
  additional commands, 
  e-mail: mailto:tomcat-user-help;jakarta.apache.org
  
  
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


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:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: ServletContextListener::Initial paramters

2002-11-12 Thread Reynir Hübner
Great, I'll use it then, thanx
-reynir


 -Original Message-
 From: Collins, Jim [mailto:jim.collins;uk.nomura.com] 
 Sent: 12. nóvember 2002 14:14
 To: 'Tomcat Users List'
 Subject: RE: ServletContextListener::Initial paramters
 
 
 You can specify them in your web.xml
 
 Regards
 
 Jim
 
  -Original Message-
  From: Reynir Hübner [mailto:reynir;hugsmidjan.is]
  Sent: 12 November 2002 13:59
  To: Tomcat Users List
  Subject: RE: ServletContextListener::Initial paramters
  
  
  Thanx for the replies,
  
  Am I correct when saying I must specify the contex parameters
  in server.xml like this : 
  
  context-param
param-nameparamName/param-name
param-valueparmam Value string foobar/param-value 
  /context-param
  
  I could use that, but I rather set it in web.xml if possible,
  is it possible ?
  Thanx again, 
  
  Reynir
  
  
  
  
   -Original Message-
   From: Ralph Einfeldt [mailto:ralph.einfeldt;uptime-isc.de]
   Sent: 12. nóvember 2002 13:55
   To: Tomcat Users List
   Subject: RE: ServletContextListener::Initial paramters
   
   
   What about
   
   ServletContextEvent.getServletContext().getInitParameter() ?
   
-Original Message-
From: Reynir Hübner [mailto:reynir;hugsmidjan.is]
Sent: Tuesday, November 12, 2002 2:42 PM
To: Tomcat Users List
Subject: ServletContextListener::Initial paramters

I am implementing a ServletContextListener.
I am wondering if it is possible to get initial 
 parameters into it 
from web.xml ?

   
   --
   To unsubscribe, e-mail:   
   mailto:tomcat-user- [EMAIL PROTECTED]
   For
   additional commands, 
   e-mail: mailto:tomcat-user-help;jakarta.apache.org
   
   
  
  --
  To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 
 
 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:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:tomcat-user-help;jakarta.apache.org
 
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: how to exclude a jar from being deployed

2002-11-12 Thread Kris Schneider
Right. And really don't put them there (or anywhere else under WEB-INF) if you 
expect a Web Start app (or any other HTTP client) to be able to access them 
directly.

For Web Start 1.0.1:

http://java.sun.com/products/javawebstart/docs/downloadservletguide.html

For Web Start 1.2:

http://java.sun.com/products/javawebstart/1.2/docs/downloadservletguide.html

Quoting Shapira, Yoav [EMAIL PROTECTED]:

 Hi,
 Per the servlet specification, if a jar is in WEB-INF/lib it must be
 available to the classloader, i.e. deployed.  If you don't want it
 deployed, don't put it there. ;)
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Etienne Deleflie [mailto:etienne.deleflie;proxima-tech.com]
 Sent: Tuesday, November 12, 2002 2:37 AM
 To: [EMAIL PROTECTED]
 Subject: how to exclude a jar from being deployed
 
 Hello list,
 
 is it possible to exclude a jar from bring deployed by Tomcat ?.
 
 The jar is in WEB-INF/lib ... and needs to be served by
 Webstart
 (along with all the other jars in WEB-INF/lib) , but breaks the webapp
 when it is deployed by Tomcat.
 
 etienne
 
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]
 
 


-- 
Kris Schneider mailto:kris;dotech.com
D.O.Tech   http://www.dotech.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: ServletContextListener::Initial paramters

2002-11-12 Thread Collins, Jim
If you have any problems look in the servlet spec it contains a dtd for the
web.xml file.

Regards

Jim.

 -Original Message-
 From: Reynir Hübner [mailto:reynir;hugsmidjan.is]
 Sent: 12 November 2002 14:19
 To: Tomcat Users List
 Subject: RE: ServletContextListener::Initial paramters
 
 
 Great, I'll use it then, thanx
 -reynir
 
 
  -Original Message-
  From: Collins, Jim [mailto:jim.collins;uk.nomura.com] 
  Sent: 12. nóvember 2002 14:14
  To: 'Tomcat Users List'
  Subject: RE: ServletContextListener::Initial paramters
  
  
  You can specify them in your web.xml
  
  Regards
  
  Jim
  
   -Original Message-
   From: Reynir Hübner [mailto:reynir;hugsmidjan.is]
   Sent: 12 November 2002 13:59
   To: Tomcat Users List
   Subject: RE: ServletContextListener::Initial paramters
   
   
   Thanx for the replies,
   
   Am I correct when saying I must specify the contex parameters
   in server.xml like this : 
   
   context-param
 param-nameparamName/param-name
 param-valueparmam Value string foobar/param-value 
   /context-param
   
   I could use that, but I rather set it in web.xml if possible,
   is it possible ?
   Thanx again, 
   
   Reynir
   
   
   
   
-Original Message-
From: Ralph Einfeldt [mailto:ralph.einfeldt;uptime-isc.de]
Sent: 12. nóvember 2002 13:55
To: Tomcat Users List
Subject: RE: ServletContextListener::Initial paramters


What about

ServletContextEvent.getServletContext().getInitParameter() ?

 -Original Message-
 From: Reynir Hübner [mailto:reynir;hugsmidjan.is]
 Sent: Tuesday, November 12, 2002 2:42 PM
 To: Tomcat Users List
 Subject: ServletContextListener::Initial paramters
 
 I am implementing a ServletContextListener.
 I am wondering if it is possible to get initial 
  parameters into it 
 from web.xml ?
 

--
To unsubscribe, e-mail:   
mailto:tomcat-user- [EMAIL PROTECTED]
For
additional commands, 
e-mail: mailto:tomcat-user-help;jakarta.apache.org


   
   --
   To unsubscribe, e-mail:   
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail: 
  mailto:tomcat-user-help;jakarta.apache.org
  
  
  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:   
  mailto:tomcat-user- [EMAIL PROTECTED]
  For 
  additional commands, 
  e-mail: mailto:tomcat-user-help;jakarta.apache.org
  
  
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


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:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




help in Jakarta tomcat server

2002-11-12 Thread Lea
Hi,

 

I work with Jakarta tomcat server 4.0.1 and I have some problem.

 Where I try to send http request parameter 'when it is equal to =
character and in jip file I try to get this value (=), I got null value
instance of = character

But when I try other characters (+,*.) it is ok ' I got them as I send

Any idea how to solve it?

Please help!!!

 

Thanks,

Lea

 




help in Jakarta tomcat server

2002-11-12 Thread Kristján Bjarni Guðmundsson

Return Receipt
   
Your  help in Jakarta tomcat server
document   
:  
   
was   Kristján Bjarni Guðmundsson/BIS/Dev/REK/Hugvit   
received   
by:
   
at:   12.11.2002 14:33:41  
   





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: ServletContextListener::Initial paramters

2002-11-12 Thread Reynir Hübner
Of course, I did already, and no problems, it runs fine like this. 
It's also listed out here : 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html

Thanx
-reynir



 -Original Message-
 From: Collins, Jim [mailto:jim.collins;uk.nomura.com] 
 Sent: 12. nóvember 2002 14:29
 To: 'Tomcat Users List'
 Subject: RE: ServletContextListener::Initial paramters
 
 
 If you have any problems look in the servlet spec it contains 
 a dtd for the web.xml file.
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Cannot create Oracle driver not matter what I do!

2002-11-12 Thread Eddie Liang
Download the ojdbc14.jar from Oracle, replace the classes12.zip, then try
again.

Eddie Liang
Database Architect
Phone: 630-810-9669 x253


-Original Message-
From: [EMAIL PROTECTED]
[mailto:ira.waxberg;japan.bnpparibas.com] 
Sent: Monday, November 11, 2002 9:54 PM
To: [EMAIL PROTECTED]
Subject: Cannot create Oracle driver not matter what I do!


All attempts to create an Oracle database pool in 4.1.12 have failed.

java.sql.SQLException: Cannot create JDBC driver of class
'oracle.jdbc.driver.OracleDriver'
at org.apache.commons.dbcp.BasicDataSource.createDataSource(Unknown
Source)
at org.apache.commons.dbcp.BasicDataSource.getConnection(Unknown
Source)
at
com.opensymphony.module.user.provider.jdbc.JDBCCredentialsProvider.list(JDBC
CredentialsProvider.java:40)
at
com.opensymphony.module.user.UserManager.getEntities(UserManager.java:288)
at
com.opensymphony.module.user.UserManager.getUsers(UserManager.java:127)
etc

What I've tried:

1. Renamed classes12.zip to classes12.jar.
2. Put it EVERYWHERE, under every lib directory in the Tomcat directory
structure.
3. Added it to the CLASSPATH (in setclasspath.sh)

 Prove to me that I am making the right decision in moving from WebLogic  to
Tomcat for a smal project!

Ira




This message and any attachments (the message) is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

-

Ce message et toutes les pieces jointes (ci-apres le 
message) sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.


--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




include : no exception

2002-11-12 Thread Roland Juergens
Hello everybody

Is there anybody else having the same problem with Tomcat 4.0.3 ?

Tomcat doesn´t throw an exception although it should do. For example I try
to use a class name that definitely does not exist. Then I don´t get a
ClassNotFoundException as expected but just an empty page in the browser
window.
It is the same with other exceptions.
This error only occurs in connection with the jsp:include element.

Can anyone help me ?

Roland




Re: Apache mod_jk's session not sticky

2002-11-12 Thread Michael Schulz
I had a problem like this, and determined that the jvmRoute value in my 
server.xml did not match the names of the tomcat workers in the 
workers.properties file.  If your workers.properties file defines 
workers, t1 and t2, and worker.loadbalancer.balanced_workers=t1,t2, 
then your server.xml file must use t1 and t2 as the value for jvmRoute= 
in the tomcat configuration.

You may want to test load balancing using a simple .jsp that just prints 
the value of the sessionid on each of the tomcat boxes so you can 
determine if the problem is in basic sticky sessions or in your servlet 
code that switches sessions on the user after authentication.

-Mike Schulz


William Lee wrote:

I'm using Apache 2.0.43, mod_ssl, mod_jk 1.2, and Tomcat 4.1.14 (the 
test release).  I've set up Tomcat so it runs behind the apache.  My 
test of having 1 worker behind a load balancer works perfectly without 
any problem.  However, once I added another machine, it seems like my 
user's session is jumping back and forth between the two machines. 
This, of course creates a big problem.

My servlet involves a form-based login page, in which the login code 
would remove the old session and attach a new one once the user has 
authenticated against the authority.  Would this create a problem?  
I'm wondering how mod_jk handles the stick sessions.  It does seem to 
be pretty random when it jumps back and forth between the two machines 
I have here.

I've turned on the debug log in mod_jk but it doesn't tell me all that 
much.  Is there any other mechanism available for me to debug this?




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Cannot create Oracle driver not matter what I do!

2002-11-12 Thread Larry Meadors
On a related note, There may also be problems with the classes12 file -
for some unknown reason, it contains the javax.sql package. I have seen
cases where JDK 14x just flat refuses to load it. You may want to unzip
the jar, remove those classes and repackage it without them.

Larry

 [EMAIL PROTECTED] 11/11/02 21:05 PM 
Don't put it everywhere. I've seen things break consistently when put in

more than one classloader. Put it in your commons/lib directory. I'm
using
this and it works just fine under 4.0.4. Can you verify that you can
reproduce the problem under 4.0.4?


 All attempts to create an Oracle database pool in 4.1.12 have failed.

 java.sql.SQLException: Cannot create JDBC driver of class
 'oracle.jdbc.driver.OracleDriver'
 at
 org.apache.commons.dbcp.BasicDataSource.createDataSource(Unknown
 Source) at
 org.apache.commons.dbcp.BasicDataSource.getConnection(Unknown
 Source) at

com.opensymphony.module.user.provider.jdbc.JDBCCredentialsProvider.list(JDBCCredentialsProvider.java:40)
 at

com.opensymphony.module.user.UserManager.getEntities(UserManager.java:288)
 at

com.opensymphony.module.user.UserManager.getUsers(UserManager.java:127)
 etc

 What I've tried:

 1. Renamed classes12.zip to classes12.jar.
 2. Put it EVERYWHERE, under every lib directory in the Tomcat
directory
 structure. 3. Added it to the CLASSPATH (in setclasspath.sh)

  Prove to me that I am making the right decision in moving from
WebLogic
  to Tomcat for a smal project!

 Ira




 This message and any attachments (the message) is
 intended solely for the addressees and is confidential.
 If you receive this message in error, please delete it and
 immediately notify the sender. Any use not in accord with
 its purpose, any dissemination or disclosure, either whole
 or partial, is prohibited except formal approval. The internet
 can not guarantee the integrity of this message.
 BNP PARIBAS (and its subsidiaries) shall (will) not
 therefore be liable for the message if modified.

 -

 Ce message et toutes les pieces jointes (ci-apres le
 message) sont etablis a l'intention exclusive de ses
 destinataires et sont confidentiels. Si vous recevez ce
 message par erreur, merci de le detruire et d'en avertir
 immediatement l'expediteur. Toute utilisation de ce
 message non conforme a sa destination, toute diffusion
 ou toute publication, totale ou partielle, est interdite, sauf
 autorisation expresse. L'internet ne permettant pas
 d'assurer l'integrite de ce message, BNP PARIBAS (et ses
 filiales) decline(nt) toute responsabilite au titre de ce
 message, dans l'hypothese ou il aurait ete modifie.


 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional
 commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




--
To unsubscribe, e-mail:  
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Root context

2002-11-12 Thread Mark Diana
Once again I hate to ask a question that has been asked and answered, 
but I can't seem to get this working with the info from the docs and 
archives. I have a simple set up with Tomcat 4.1.12 and Apache 1.3 and 
mod_jk on a Linux box. It's not a big site and all I really want is for 
the whole thing to be jsp enabled. I have some webapps set up and 
working, but I can't get Tomcat to serve out of the root context. I am 
guessing that I either need to set the Root context to be the same as 
Apache's document root, or set Apache's document root to the default 
Root context, and then in either case place the correct (?) JkMount 
statements in httpd.conf. However, when I try these on a test machine, 
I can't get it to work. In both cases, I used the jkMount statements 
/*.jsp and /servlet/.  What's the best way to do this?

Thanks,

Mark

--
Mark L. Diana, MBA
Instructor
LAN Manager  Webmaster
Virginia Commonwealth University
Department of Health Administration


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



Re: ServletContextListener::Initial paramters

2002-11-12 Thread Cees van de Griend
Op dinsdag 12 november 2002 14:42, schreef Reynir Hübner:
 Hello,

 I am implementing a ServletContextListener.
 I am wondering if it is possible to get initial parameters into it from
 web.xml ?

void contextInitialized(ServletContextEvent sce) {
ServletContext sc = sce.getServletContext();
String whatever   = sc.getInitParameter(whatever);
}

Regards,
Cees.

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




System call problem on Tomcat

2002-11-12 Thread Richard Wong
Dear Sir/Madam,

  I have written a servlet that will make a system call using following statement:
 Runtime.getRuntime().exec(ls);

  The servlet failed (even cause tomcat to shutdown) and the following error 
occurs:

StandardServer.await: accept: java.net.SocketException: Interrupted system call
java.net.SocketException: Interrupted system call
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:463)
at java.net.ServerSocket.implAccept(ServerSocket.java:238)
at java.net.ServerSocket.accept(ServerSocket.java:217)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:293)
at org.apache.catalina.startup.Catalina.start(Catalina.java:794)
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)

I have tried several simple Linux commands and I get the same problem (eg. 
sleep 1).  Can anyone help?

The system is running on Redhat 7.2, tomcat 4.0.4 and Java 1.3.1.

Regards,
Richard.



Re: Problem in Tomcat Servlet calling JBoss EJB running on a different machine

2002-11-12 Thread Giuseppe Sorce
Thanks Anthony,
I tried to use -nonaming swhitch, but, it seems that tomcat don't
recognize this argument. Details:

 - Apache Tomcat/4.1.12 running on a Win2K Server box

 - From the command line:
D:\jakarta-tomcat-4.1.12\bin startup.bat -nonaming

Then another DOS window appears and then quickly disappears ... tomcat isn't
running.
Any idea?
Thanx in advance
Giuseppe Sorce
ITALY



- Original Message -
From: Anthony Geoghegan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 11, 2002 3:16 PM
Subject: Re: Problem in Tomcat Servlet calling JBoss EJB running on a
different machine


 Tomcat -nonaming switch used?
 The Tomcat JNDI server conflicts with JBOSS's
 you have to switch it off from the command line.

 Best Regards,
 Anthony Geoghegan.
 J2EE Developer
 CPS Ireland Ltd.



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: JSP to JSP

2002-11-12 Thread Wilhelm Colln
Yes I did it once, but some servers gives you limited permissions,
so that the database can only be accessed locally.

Wilhelm Colln
Peru

Sudhir Kumar wrote:


i need to communicate between two jsp's which are running on 2 remote
machines. both the jsp's are running on tomcat. i need to pass some data
between these jsp's. both the jsp's are connected to two seperate databases.
is it possible to get the data of a remote database by invoking the jsp
running at that location ???. Any help in this regard will be helpfull..

thanks in advance
sudhir


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org

 




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Tomcat 4.x as NT service

2002-11-12 Thread Richard Hartley
Hi
Is it possible to set up jakarta-tomcat-4.0.5 as a windows service?
There is documentation detailing how to do this for Tomcat 3.x, but not
it seems for Tomcat 4.x.
Thanks
R Hartley



Re: Tomcat 4.x as NT service

2002-11-12 Thread Mark Eggers
1. Download the binary .exe install package
2. Choose 'run as NT service' during installation.

/mde/

just my two cents . . . .

__
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Upgrade from 4.0 to 4.1

2002-11-12 Thread Björn Bergenheim
Are there any differences in the config-files, or is it possible to just copy 
the server.xml and such? 

Another question, running on debian3, with tomcat4.0.4 and apache1.3.2 , using 
jk, with a webpage with just using servlets,using pajes (www.pajes.org), some 
textcaching and connection pooling, my tomcat process grows to over 100Meg 
after a day. Is this normal? I have 29 threads running (according to pstree) 
and around 15 connectors. The traffic is around 100 visitors (1095 hits, but 
most are static stuff served by apache).

I have seen a few Ajp13Processor[8009][4] Starting background thread up to 
15, but it only closes them when I stop tomcat. Any help would be appriciated.

/Bjorn Bergenheim


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Tomcat 4.x as NT service

2002-11-12 Thread Wagoner, Mark
It is even easier to run 4.x as a service.  It is one of the options when
you run the Tomcat installer.

-Original Message-
From: Richard Hartley [mailto:r.hartley;umist.ac.uk]
Sent: Tuesday, November 12, 2002 10:53 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.x as NT service


Hi
Is it possible to set up jakarta-tomcat-4.0.5 as a windows service?
There is documentation detailing how to do this for Tomcat 3.x, but not
it seems for Tomcat 4.x.
Thanks
R Hartley

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Remotely debugging Tomcat 4.1.12 - No code at that line in class?

2002-11-12 Thread Paul Legato
Hi,
I'm trying to remotely debug classes deployed into Tomcat 4.1.12 on 
Linux. I have tried JVM's version 1.4.1_01 and 1.4.0 with the same results.

If I deploy a class and try to debug it, everything works fine. I can 
set breakpoints, etc. with no problems.

If I turn dynamic class reloading on and redeploy a class without 
restarting Tomcat, Tomcat detects and uses the new class. But, the 
debugger can't debug it. The JVM apparently keeps a cache of which line 
numbers in the class have code, and rather than overwriting this cache, 
Tomcat (or the JVM) is appending to it when it loads a newly deployed 
class. When the debugger attempts to set breakpoints in the code, the 
debugging API only looks at the first copy of this cache, and ignores 
all subsequent appends.

Below is example output from JSwat describing what I'm talking about. 
The first portion of the 'lines' listing only has code at line 209. I 
added another line of code at 210 and redeployed, as you can see in the 
second portion of the listing. If I try to set a breakpoint at line 210, 
I get a No code at that line in class error. Setting breakpoints on 
line 209 works fine.

The debugger author reports that this No code at that line in class 
error is simply a passthrough from the underlying Java debugger API. Is 
this a bug in Tomcat, a bug in the JVM, or am I doing something wrong?

Thanks,
-Paul

 lines net.nks.cm.Spreadsheet
net.nks.cm.Spreadsheet:25
net.nks.cm.Spreadsheet:35
net.nks.cm.Spreadsheet:23
net.nks.cm.Spreadsheet:28
net.nks.cm.Spreadsheet:32
net.nks.cm.Spreadsheet:38
net.nks.cm.Spreadsheet:40
net.nks.cm.Spreadsheet:41
net.nks.cm.Spreadsheet:40
net.nks.cm.Spreadsheet:44
net.nks.cm.Spreadsheet:46
net.nks.cm.Spreadsheet:47
net.nks.cm.Spreadsheet:49
net.nks.cm.Spreadsheet:51
net.nks.cm.Spreadsheet:52
net.nks.cm.Spreadsheet:54
net.nks.cm.Spreadsheet:55
net.nks.cm.Spreadsheet:57
net.nks.cm.Spreadsheet:59
net.nks.cm.Spreadsheet:60
net.nks.cm.Spreadsheet:63
net.nks.cm.Spreadsheet:64
net.nks.cm.Spreadsheet:63
net.nks.cm.Spreadsheet:66
net.nks.cm.Spreadsheet:52
net.nks.cm.Spreadsheet:71
net.nks.cm.Spreadsheet:74
net.nks.cm.Spreadsheet:77
net.nks.cm.Spreadsheet:78
net.nks.cm.Spreadsheet:79
net.nks.cm.Spreadsheet:80
net.nks.cm.Spreadsheet:81
net.nks.cm.Spreadsheet:83
net.nks.cm.Spreadsheet:88
net.nks.cm.Spreadsheet:92
net.nks.cm.Spreadsheet:94
net.nks.cm.Spreadsheet:97
net.nks.cm.Spreadsheet:98
net.nks.cm.Spreadsheet:99
net.nks.cm.Spreadsheet:100
net.nks.cm.Spreadsheet:101
net.nks.cm.Spreadsheet:102
net.nks.cm.Spreadsheet:105
net.nks.cm.Spreadsheet:106
net.nks.cm.Spreadsheet:107
net.nks.cm.Spreadsheet:111
net.nks.cm.Spreadsheet:112
net.nks.cm.Spreadsheet:116
net.nks.cm.Spreadsheet:118
net.nks.cm.Spreadsheet:119
net.nks.cm.Spreadsheet:121
net.nks.cm.Spreadsheet:122
net.nks.cm.Spreadsheet:123
net.nks.cm.Spreadsheet:124
net.nks.cm.Spreadsheet:125
net.nks.cm.Spreadsheet:128
net.nks.cm.Spreadsheet:129
net.nks.cm.Spreadsheet:130
net.nks.cm.Spreadsheet:131
net.nks.cm.Spreadsheet:132
net.nks.cm.Spreadsheet:133
net.nks.cm.Spreadsheet:135
net.nks.cm.Spreadsheet:136
net.nks.cm.Spreadsheet:137
net.nks.cm.Spreadsheet:138
net.nks.cm.Spreadsheet:139
net.nks.cm.Spreadsheet:140
net.nks.cm.Spreadsheet:141
net.nks.cm.Spreadsheet:142
net.nks.cm.Spreadsheet:143
net.nks.cm.Spreadsheet:146
net.nks.cm.Spreadsheet:147
net.nks.cm.Spreadsheet:148
net.nks.cm.Spreadsheet:149
net.nks.cm.Spreadsheet:150
net.nks.cm.Spreadsheet:151
net.nks.cm.Spreadsheet:153
net.nks.cm.Spreadsheet:154
net.nks.cm.Spreadsheet:155
net.nks.cm.Spreadsheet:156
net.nks.cm.Spreadsheet:157
net.nks.cm.Spreadsheet:158
net.nks.cm.Spreadsheet:159
net.nks.cm.Spreadsheet:160
net.nks.cm.Spreadsheet:163
net.nks.cm.Spreadsheet:164
net.nks.cm.Spreadsheet:165
net.nks.cm.Spreadsheet:166
net.nks.cm.Spreadsheet:167
net.nks.cm.Spreadsheet:168
net.nks.cm.Spreadsheet:172
net.nks.cm.Spreadsheet:173
net.nks.cm.Spreadsheet:174
net.nks.cm.Spreadsheet:175
net.nks.cm.Spreadsheet:177
net.nks.cm.Spreadsheet:178
net.nks.cm.Spreadsheet:179
net.nks.cm.Spreadsheet:180
net.nks.cm.Spreadsheet:181
net.nks.cm.Spreadsheet:182
net.nks.cm.Spreadsheet:185
net.nks.cm.Spreadsheet:187
net.nks.cm.Spreadsheet:188
net.nks.cm.Spreadsheet:189
net.nks.cm.Spreadsheet:190
net.nks.cm.Spreadsheet:191
net.nks.cm.Spreadsheet:195
net.nks.cm.Spreadsheet:196
net.nks.cm.Spreadsheet:199
net.nks.cm.Spreadsheet:203
net.nks.cm.Spreadsheet:204
net.nks.cm.Spreadsheet:205
net.nks.cm.Spreadsheet:206
net.nks.cm.Spreadsheet:207
net.nks.cm.Spreadsheet:209 
== Original line list, 209 only
net.nks.cm.Spreadsheet:92
net.nks.cm.Spreadsheet:214
net.nks.cm.Spreadsheet:222
net.nks.cm.Spreadsheet:226
net.nks.cm.Spreadsheet:228
net.nks.cm.Spreadsheet:237
net.nks.cm.Spreadsheet:18
net.nks.cm.Spreadsheet:19
net.nks.cm.Spreadsheet:18
net.nks.cm.Spreadsheet:25
net.nks.cm.Spreadsheet:35
net.nks.cm.Spreadsheet:23
net.nks.cm.Spreadsheet:28
net.nks.cm.Spreadsheet:32
net.nks.cm.Spreadsheet:38
net.nks.cm.Spreadsheet:40
net.nks.cm.Spreadsheet:41
net.nks.cm.Spreadsheet:40

Re: Tomcat 4.x as NT service

2002-11-12 Thread Jacob Kjome
Hello Richard,

See http://www.mattkelli.com/tech/tomcat/ntservice.htm

Jake

Tuesday, November 12, 2002, 9:53:01 AM, you wrote:

RH Hi
RH Is it possible to set up jakarta-tomcat-4.0.5 as a windows service?
RH There is documentation detailing how to do this for Tomcat 3.x, but not
RH it seems for Tomcat 4.x.
RH Thanks
RH R Hartley



-- 
Best regards,
 Jacobmailto:hoju;visi.com


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Removing default Contexts in production...

2002-11-12 Thread Stone, Timothy
List,

I'm deploying the rather simple Lucene demo on Tomcat 4.0.6. I would like to remove 
the examples and ROOT contexts to further harden the development deployment on the 
production servers.

I see a /conf/server-noexamples.xml.config file that seems to provide exactly what I'm 
looking for. Is this correct?

May I also remove the Manager context/webapp without adversely affecting deployment?

Thanks for your feedback in advance.

Warmest Regards,
Tim

--
/**
 * Timothy Stone  . Sun Certified Java Programmer
 * Web Master . tstone at cityofhbg dot com
 * City of Harrisburg . 717.255.7297
 * Pennsylvania USA   . 717.903.9162
 *
 * This Satan's drink [coffee] is so delicious,
 *  we shall cheat Satan and baptize it.
 *  --Pope Clement VIII 
 */

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Problem with xsl transformation in tomcat 3.3.1 and tomcat 4.0.*on Linux

2002-11-12 Thread Chris Hazen
I've got a strange problem with tomcat transforming an xml document with 
xsl apparently only on Linux. Below is a small portion of the style 
sheet that is relevant:

   xsl:template match=/
   xsl:apply-templates/
   /xsl:template

  xsl:template match=grammar:rule
   !--Make sure this is capital--
   xsl:if test=string(parent::node()/@root) != string(./@id)
   xsl:value-of select=translate(substring(@id, 1, 1), 
'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')/xsl:value-of 
select=translate(substring(@id, 2), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 
'abcdefghijklmnopqrstuvwxyz')/
   /xsl:if
   (
   xsl:apply-templates/
   )
   /xsl:template

   xsl:template match=grammar:one-of  
   xsl:variable name=weights
   xsl:value-of select=sum(grammar:item/@weight)/
   /xsl:variable
   [xsl:for-each select=grammar:itemxsl:choose
   xsl:when test=@repeat='0-1'xsl:text 
/xsl:text?xsl:apply-templates/xsl:if 
test=string(@weight)!=''~xsl:value-of select=concat('0.', 
string(round((number(@weight) div 
number($weights))*10)))//xsl:ifxsl:text /xsl:text/xsl:when
   xsl:when test=@repeat='0+'
   xsl:text /xsl:text*(xsl:apply-templates/)xsl:if 
test=string(@weight)!=''~xsl:value-of select=concat('0.', 
string(round((number(@weight) div 
number($weights))*10)))//xsl:ifxsl:text /xsl:text
   /xsl:when
   xsl:when test=@repeat='1+'
   xsl:text /xsl:text+(xsl:apply-templates/)xsl:if 
test=string(@weight)!=''~xsl:value-of select=concat('0.', 
string(round((number(@weight) div 
number($weights))*10)))//xsl:ifxsl:text /xsl:text
   /xsl:when
   xsl:otherwise(xsl:apply-templates/)xsl:if 
test=string(@weight)!=''~xsl:value-of select=concat('0.', 
string(round((number(@weight) div 
number($weights))*10)))//xsl:ifxsl:text /xsl:text/xsl:otherwise
   /xsl:choose/xsl:for-each]
   /xsl:template

   xsl:template match=grammar:item
   xsl:choose
   xsl:when test=@repeat='0-1'xsl:text 
/xsl:text?xsl:apply-templates/xsl:if 
test=string(@repeat-prob)!=''~xsl:value-of 
select=@repeat-prob//xsl:ifxsl:text /xsl:text/xsl:when
   xsl:when test=@repeat='0+'
   xsl:text /xsl:text*(xsl:apply-templates/)xsl:if 
test=string(@repeat-prob)!=''~xsl:value-of 
select=@repeat-prob//xsl:ifxsl:text /xsl:text
   /xsl:when
   xsl:when test=@repeat='1+'
   xsl:text /xsl:text+(xsl:apply-templates/)xsl:if 
test=string(@repeat-prob)!=''~xsl:value-of 
select=@repeat-prob//xsl:ifxsl:text /xsl:text
   /xsl:when
   xsl:otherwise(xsl:apply-templates/)xsl:if 
test=string(@repeat-prob)!=''~xsl:value-of 
select=@repeat-prob//xsl:ifxsl:text /xsl:text/xsl:otherwise
   /xsl:choose
   /xsl:template

   xsl:template match=grammar:tag
  xsl:choose
  xsl:when test=starts-with(string(text()),'Append')/xsl:when
  xsl:otherwise{xsl:value-of select='lt;' 
disable-output-escaping=yes/xsl:value-of 
select=substring-before(text(),'=')/xsl:text 
/xsl:textxsl:value-of 
select=substring-before(substring-after(text(),'=quot;'), 
'quot;')/xsl:text/xsl:textxsl:value-of select='gt;' 
disable-output-escaping=yes/}/xsl:otherwise
  /xsl:choose
   /xsl:template

   xsl:template match=grammar:item/text()xsl:value-of 
select=normalize-space(translate(., 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 
'abcdefghijklmnopqrstuvwxyz'))//xsl:template
   xsl:template match=*|@*|text() priority=-1
   xsl:copy
   xsl:copy-of select=@*/
   xsl:apply-templates/
   /xsl:copy
   /xsl:template  
/xsl:stylesheet

Below is a subset of the xml I'm parsing:
   field name=browse_subject expr=/'default/'
   grammar version=1.0 
xmlns=http://www.w3.org/2001/06/grammar; root=subject_grammar 
type=application/grammar+xml
   rule id=subject_grammarOpening
   one-of
   item
   Do this for me
   /item
   item
   I want
   /item
   item
   Give me
   /item
   item
   I demand
   /item
   item
   I'd like
   /item
   item
   I would like
   /item
   /one-of
   /rule
   rule id=subject_grammarSelection scope=public
   
one-ofitemdefaulttagbrowse_subject=default/tag/item/one-of
   /rule
   rule id=subject_grammarClosing
   one-of
   item
   now
   /item
   item
   please
   /item
   item
   that's all
   

security manager

2002-11-12 Thread Jose Antonio Martinez
I am using the default security configuration at
manager 'catalina.policy' file, but when i try to
access files which are under the webapp directory who
i am executing i have an exception:


javax.servlet.ServletException: Servlet execution
threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
at java.security.AccessController.doPrivileged(Native
Method)


what's the problem?

___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Tomcat 4.x as NT service

2002-11-12 Thread Stone, Timothy
The short answer is Yes, Tomcat 4.0.x can run as a service.

The longer answers include reading HOW-TOs, like Jake's suggestion below, consulting 
the manual on tomcat.exe and some creative understanding of UNIX and Win2k 
environments. 

As the tomcat.exe is not very well documented in the Jakarta distribution (after all 
UNIX is the primary deployment platform), all the glorious details can be found at 
Alexandria Software 
(http://www.alexandriasc.com/software/JavaService/documentation.html) the developer of 
the tomcat.exe (renamed as tomcat.exe from the bland, somewhat engimatic, 
JavaService.exe).

Do not shy away from the 3.x references in the Alexandria Software manual. The 
instructions have resulted in dual Tomcat 4.0.x installations running on my 
development and production servers. I provide load balancing, etc. as well. (A great 
HOW-TO is available on load balancing Tomcat services in a UNIX environment at 
www.ubeans.com/tomcat by Pascal Forget; I applied these instructions to my Win2k 
deployments.)

Hope this further helps,
Tim-I-wish-my-*nix-phobic-MCSE-admins-would-quit-worshipping-at-the-Church-of-Redmond-and-my-life-would-be-much-simpler-Stone

--
/**
 * Timothy Stone  . Sun Certified Java Programmer
 * Web Master . tstone at cityofhbg dot com
 * City of Harrisburg . 717.255.7297
 * Pennsylvania USA   . 717.903.9162
 *
 * This Satan's drink [coffee] is so delicious,
 *  we shall cheat Satan and baptize it.
 *  --Pope Clement VIII 
 */



 -Original Message-
 From: Jacob Kjome [mailto:hoju;visi.com]
 Sent: Tuesday, November 12, 2002 11:32
 To: Tomcat Users List
 Subject: Re: Tomcat 4.x as NT service
 
 
 Hello Richard,
 
 See http://www.mattkelli.com/tech/tomcat/ntservice.htm
 
 Jake
 
 Tuesday, November 12, 2002, 9:53:01 AM, you wrote:
 
 RH Hi
 RH Is it possible to set up jakarta-tomcat-4.0.5 as a 
 windows service?
 RH There is documentation detailing how to do this for 
 Tomcat 3.x, but not
 RH it seems for Tomcat 4.x.
 RH Thanks
 RH R Hartley
 
 
 
 -- 
 Best regards,
  Jacobmailto:hoju;visi.com
 
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: security manager

2002-11-12 Thread Jeanfrancois Arcand
Which version of Tomcat are you using?

-- Jeanfrancois

Jose Antonio Martinez wrote:


I am using the default security configuration at
manager 'catalina.policy' file, but when i try to
access files which are under the webapp directory who
i am executing i have an exception:


javax.servlet.ServletException: Servlet execution
threw an exception
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
	at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
	at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
	at java.security.AccessController.doPrivileged(Native
Method)


what's the problem?

___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


 



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: security manager

2002-11-12 Thread Jose Antonio Martinez
tomcat 4.0.5

 --- Jeanfrancois Arcand [EMAIL PROTECTED]
escribió:  Which version of Tomcat are you using?
 
 -- Jeanfrancois
 
 Jose Antonio Martinez wrote:
 
 I am using the default security configuration at
 manager 'catalina.policy' file, but when i try to
 access files which are under the webapp directory
 who
 i am executing i have an exception:
 
 
 javax.servlet.ServletException: Servlet execution
 threw an exception
  at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
  at

org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
  at

org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
  at
 java.security.AccessController.doPrivileged(Native
 Method)
 
 
 what's the problem?
 

___
 Yahoo! Messenger
 Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
 Descárgalo ya desde http://messenger.yahoo.es
 
 --
 To unsubscribe, e-mail:  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 
   
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
  

___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: security manager

2002-11-12 Thread Jeanfrancois Arcand
Strange. Can you post you entire log file (to see more exception info)?

-- Jeanfrancois

Jose Antonio Martinez wrote:


tomcat 4.0.5

--- Jeanfrancois Arcand [EMAIL PROTECTED]
escribió:  Which version of Tomcat are you using?
 

-- Jeanfrancois

Jose Antonio Martinez wrote:

   

I am using the default security configuration at
manager 'catalina.policy' file, but when i try to
access files which are under the webapp directory
 

who
   

i am executing i have an exception:


javax.servlet.ServletException: Servlet execution
threw an exception
	at
 

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
   

	at
 

org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
   

	at
 

org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
   

	at
 

java.security.AccessController.doPrivileged(Native
   

Method)


what's the problem?

 

___
   

Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es

--
To unsubscribe, e-mail:  
 

mailto:tomcat-user-unsubscribe;jakarta.apache.org
   

For additional commands, e-mail:
 

mailto:tomcat-user-help;jakarta.apache.org
   



 

--
To unsubscribe, e-mail:  
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

   


___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


 



Ports Number Used in Tomcat 5.0

2002-11-12 Thread Fredro Harjanto

Hi:

I used Tomcat 5.0 behind router (containing firewall). I have opened the Port: 8080 
and 8009 for my servlets classes to be accessible from outside. However, these ports 
are seemed not enough. First, I access http://localhost:8080 successfully. But when I 
try to view :8080http://IPAddress:8080, it fails. Any problem I haven't realized? 
Are there any more port #(s) that is needed to be opened? Thank you.

-Fred

welcome.to/fredro



-
Do you Yahoo!?
U2 on LAUNCH - Exclusive medley  videos from Greatest Hits CD


Re: security manager

2002-11-12 Thread Jose Antonio Martinez
I have developed a servlet that recives from a form
(post method) the name of a file and write its
content.

 --- Jeanfrancois Arcand [EMAIL PROTECTED]
escribió:  Strange. Can you post you entire log file
(to see
 more exception info)?
 
 -- Jeanfrancois
 
 Jose Antonio Martinez wrote:
 
 tomcat 4.0.5
 
  --- Jeanfrancois Arcand [EMAIL PROTECTED]
 escribió:  Which version of Tomcat are you using?
   
 
 -- Jeanfrancois
 
 Jose Antonio Martinez wrote:
 
 
 
 I am using the default security configuration at
 manager 'catalina.policy' file, but when i try to
 access files which are under the webapp directory
   
 
 who
 
 
 i am executing i have an exception:
 
 
 javax.servlet.ServletException: Servlet execution
 threw an exception
at
   
 

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
 
 
at
   
 

org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
 
 
at
   
 

org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
 
 
at
   
 
 java.security.AccessController.doPrivileged(Native
 
 
 Method)
 
 
 what's the problem?
 
   
 

___
 
 
 Yahoo! Messenger
 Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
 Descárgalo ya desde http://messenger.yahoo.es
 
 --
 To unsubscribe, e-mail:  
   
 

mailto:tomcat-user-unsubscribe;jakarta.apache.org
 
 
 For additional commands, e-mail:
   
 
 mailto:tomcat-user-help;jakarta.apache.org
 
 
  
 
   
 
 --
 To unsubscribe, e-mail:  

mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
  
 
 
 

___
 Yahoo! Messenger
 Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
 Descárgalo ya desde http://messenger.yahoo.es
 
 --
 To unsubscribe, e-mail:  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 
   
 
  


___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es
javax.servlet.ServletException: Servlet execution threw an exception
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at 
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
at 
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 

Re: Problem with xsl transformation in tomcat 3.3.1 and tomcat 4.0.* on Linux

2002-11-12 Thread Jacob Kjome
Hello Chris,

Try putting xalan-2.4.0.jar in JAVA_HOME/jre/lib/endorsed.  Make sure
you stop all java processes before doing this.  Then restart Tomcat.

Jake

Tuesday, November 12, 2002, 10:43:29 AM, you wrote:

CH I've got a strange problem with tomcat transforming an xml document with 
CH xsl apparently only on Linux. Below is a small portion of the style 
CH sheet that is relevant:

CH xsl:template match=/
CH xsl:apply-templates/
CH /xsl:template

CHxsl:template match=grammar:rule
CH !--Make sure this is capital--
CH xsl:if test=string(parent::node()/@root) != string(./@id)
CH xsl:value-of select=translate(substring(@id, 1, 1), 
CH 'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')/xsl:value-of 
CH select=translate(substring(@id, 2), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 
CH 'abcdefghijklmnopqrstuvwxyz')/
CH /xsl:if
CH (
CH xsl:apply-templates/
CH )
CH /xsl:template

CH xsl:template match=grammar:one-of  
CH xsl:variable name=weights
CH xsl:value-of select=sum(grammar:item/@weight)/
CH /xsl:variable
CH [xsl:for-each select=grammar:itemxsl:choose
CH xsl:when test=@repeat='0-1'xsl:text 
CH /xsl:text?xsl:apply-templates/xsl:if 
CH test=string(@weight)!=''~xsl:value-of select=concat('0.', 
CH string(round((number(@weight) div 
CH number($weights))*10)))//xsl:ifxsl:text /xsl:text/xsl:when
CH xsl:when test=@repeat='0+'
CH xsl:text /xsl:text*(xsl:apply-templates/)xsl:if 
CH test=string(@weight)!=''~xsl:value-of select=concat('0.', 
CH string(round((number(@weight) div 
CH number($weights))*10)))//xsl:ifxsl:text /xsl:text
CH /xsl:when
CH xsl:when test=@repeat='1+'
CH xsl:text /xsl:text+(xsl:apply-templates/)xsl:if 
CH test=string(@weight)!=''~xsl:value-of select=concat('0.', 
CH string(round((number(@weight) div 
CH number($weights))*10)))//xsl:ifxsl:text /xsl:text
CH /xsl:when
CH xsl:otherwise(xsl:apply-templates/)xsl:if 
CH test=string(@weight)!=''~xsl:value-of select=concat('0.', 
CH string(round((number(@weight) div 
CH number($weights))*10)))//xsl:ifxsl:text /xsl:text/xsl:otherwise
CH /xsl:choose/xsl:for-each]
CH /xsl:template

CH xsl:template match=grammar:item
CH xsl:choose
CH xsl:when test=@repeat='0-1'xsl:text 
CH /xsl:text?xsl:apply-templates/xsl:if 
CH test=string(@repeat-prob)!=''~xsl:value-of 
CH select=@repeat-prob//xsl:ifxsl:text /xsl:text/xsl:when
CH xsl:when test=@repeat='0+'
CH xsl:text /xsl:text*(xsl:apply-templates/)xsl:if 
CH test=string(@repeat-prob)!=''~xsl:value-of 
CH select=@repeat-prob//xsl:ifxsl:text /xsl:text
CH /xsl:when
CH xsl:when test=@repeat='1+'
CH xsl:text /xsl:text+(xsl:apply-templates/)xsl:if 
CH test=string(@repeat-prob)!=''~xsl:value-of 
CH select=@repeat-prob//xsl:ifxsl:text /xsl:text
CH /xsl:when
CH xsl:otherwise(xsl:apply-templates/)xsl:if 
CH test=string(@repeat-prob)!=''~xsl:value-of 
CH select=@repeat-prob//xsl:ifxsl:text /xsl:text/xsl:otherwise
CH /xsl:choose
CH /xsl:template

CH xsl:template match=grammar:tag
CHxsl:choose
CHxsl:when test=starts-with(string(text()),'Append')/xsl:when
CHxsl:otherwise{xsl:value-of select='lt;' 
CH disable-output-escaping=yes/xsl:value-of 
CH select=substring-before(text(),'=')/xsl:text 
CH /xsl:textxsl:value-of 
CH select=substring-before(substring-after(text(),'=quot;'), 
'quot;')/xsl:text/xsl:textxsl:value-of select='gt;' 
CH disable-output-escaping=yes/}/xsl:otherwise
CH/xsl:choose
CH /xsl:template

CH xsl:template match=grammar:item/text()xsl:value-of 
CH select=normalize-space(translate(., 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 
CH 'abcdefghijklmnopqrstuvwxyz'))//xsl:template
CH xsl:template match=*|@*|text() priority=-1
CH xsl:copy
CH xsl:copy-of select=@*/
CH xsl:apply-templates/
CH /xsl:copy
CH /xsl:template  
CH /xsl:stylesheet

CH Below is a subset of the xml I'm parsing:
CH field name=browse_subject expr=/'default/'
CH grammar version=1.0 
CH xmlns=http://www.w3.org/2001/06/grammar; root=subject_grammar 
CH type=application/grammar+xml
CH rule id=subject_grammarOpening
CH one-of
CH item
CH Do this for me
CH /item
CH item
CH I want
CH /item
CH item
CH Give me
CH /item
CH item
CH I demand
CH /item
CH item
CH I'd like
CH /item
CH  

Re: security manager

2002-11-12 Thread Jeanfrancois Arcand
You need to add the following line in catalina.policy, under

// == WEB APPLICATION PERMISSIONS 
=


// These permissions are granted by default to all web applications
// In addition, a web application will be given a read FilePermission
// and JndiPermission for all files and directories in its document root.
grant {

  ..

 // Required for sevlets and JSP's
 permission java.lang.RuntimePermission 
accessClassInPackage.org.apache.catalina.util; 
 permission java.lang.RuntimePermission 
accessClassInPackage.org.apache.catalina.util.*;
 permission java.lang.RuntimePermission 
defineClassInPackage.org.apache.catalina.util;
 permission java.lang.RuntimePermission 
defineClassInPackage.org.apache.catalina.util.*;

 
}

-- Jeanfrancois


Jose Antonio Martinez wrote:

I have developed a servlet that recives from a form
(post method) the name of a file and write its
content.

--- Jeanfrancois Arcand [EMAIL PROTECTED]
escribió:  Strange. Can you post you entire log file
(to see
 

more exception info)?

-- Jeanfrancois

Jose Antonio Martinez wrote:

   

tomcat 4.0.5

--- Jeanfrancois Arcand [EMAIL PROTECTED]
escribió:  Which version of Tomcat are you using?


 

-- Jeanfrancois

Jose Antonio Martinez wrote:

  

   

I am using the default security configuration at
manager 'catalina.policy' file, but when i try to
access files which are under the webapp directory


 

who
  

   

i am executing i have an exception:


javax.servlet.ServletException: Servlet execution
threw an exception
	at


 

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
 

  

   

	at


 

org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
 

  

   

	at


 

org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
 

  

   

	at


 

java.security.AccessController.doPrivileged(Native
  

   

Method)


what's the problem?



 

___
 

  

   

Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es

--
To unsubscribe, e-mail:  


 

mailto:tomcat-user-unsubscribe;jakarta.apache.org
 

  

   

For additional commands, e-mail:


 

mailto:tomcat-user-help;jakarta.apache.org
  

   



 

--
To unsubscribe, e-mail:  
   

mailto:tomcat-user-unsubscribe;jakarta.apache.org
 

For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

  

   

___
   

Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es

--
To unsubscribe, e-mail:  
 

mailto:tomcat-user-unsubscribe;jakarta.apache.org
   

For additional commands, e-mail:
 

mailto:tomcat-user-help;jakarta.apache.org
   



 


   



___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es



javax.servlet.ServletException: Servlet execution threw an exception
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
	at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
	at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 

RE: SSL in tomcat vs. apache

2002-11-12 Thread Lloyd Meinholz
Thanks, that's kind of what I thought. I was curious if there were any large
show-stopper type of issues that I wasn't aware of and there doesn't appear
to be. I know certificate management will be a little awkward compared to
what I'm used to, but I can deal with that. I will experiment with both
alternatives and see what works best. It would be nice to only have to worry
about one server, but there are more unknowns (risks) with the tomcat only
method.

Lloyd


 -Original Message-
 From: Craig R. McClanahan [mailto:craigmcc;apache.org]
 Sent: Monday, November 11, 2002 6:27 PM
 To: Tomcat Users List
 Subject: Re: SSL in tomcat vs. apache
 
 
 
 
 On Mon, 11 Nov 2002, Lloyd Meinholz wrote:
 
  Date: Mon, 11 Nov 2002 15:33:16 -0500
  From: Lloyd Meinholz [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: SSL in tomcat vs. apache
 
  Does anyone have any comparison facts or opinions on the 
 difference in
  running SSL in apache vs. SSL in tomcat (Java)? We're 
 running on Sun boxes
  and using JDK 1.4.1 if that matters (other than JSSE is built-in).
 
  Most of our sites are dynamic, but we are currently using a 
 web server for
  authentication and SSL encryption (the whole site, not just 
 part of it) and
  a few static pages. We are required to password protect and 
 encrypt the
  entire site. I am tempted to do away with our web server, 
 but am a little
  nervous about doing computationally intensive stuff with 
 Java and what the
  performance would be.
 
  I will have to use JNDI Realms to authenticate to our LDAP 
 server also, but
  I do quite a bit with JNDI already and am a bit more 
 comfortable with that
  issue.
 
  Thanks for any insight.
 
 
 In theory, doing the SSL decryption in the web server 
 (typically in highly
 optimized C or C++ code) should run faster.  The gap is 
 probably smaller
 with recent JVMs (where the code that does this will get 
 JIT'd by HotSpot
 fairly soon if it gets used a lot).  (The same argument 
 applies to things
 like HTTP header parsing in C versus Java, but the gaps are probably
 smaller there.)
 
 In practice, the only way to know for sure is to try it both 
 ways and see
 if there is a difference that matters in *your* environment.
 
  Lloyd
 
 
 Craig
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 



RE: jk2 + sticky session

2002-11-12 Thread Claudio Pracilio
For those interested

This problem is resolved by ensuring that the 'Engine' definition in the
Tomcat's server.xml configuration has a 'jvmRoute' attribute which matches
the tomcatID in the channels being defined in apache's workers2.properties.


-Original Message-
From: Claudio Pracilio [mailto:cpracilio;sertan.net]
Sent: Friday, November 08, 2002 2:19 PM
To: 'Tomcat Users List'
Subject: jk2 + sticky session


Hello,

I have the following environment:

OS: RedHat 7.3
Apache 2.0.43 compiled with a worker mpm option
jakarta-tomcat-connectors-4.1.12  - mod_jk2
jakarta-tomcat-4.1.12

I have successfully used the connector to connect Apache with one instance
of Tomcat.
With 2 instances of tomcat (on different ports), I have been able to get the
load-balancing algorithm cycling between each tomcat server for each
request.

How do I make the session sticky, so that one instance of client Browser
gets associated with the same Tomcat instance ?


Regards,

Claudio

--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: security manager

2002-11-12 Thread Jose Antonio Martinez
it seems dont work

 --- Jeanfrancois Arcand [EMAIL PROTECTED]
escribió:  You need to add the following line in
 catalina.policy, under
 
 // == WEB APPLICATION PERMISSIONS 
 =
 
 
 // These permissions are granted by default to all
 web applications
 // In addition, a web application will be given a
 read FilePermission
 // and JndiPermission for all files and directories
 in its document root.
 grant {
 
..
 
   // Required for sevlets and JSP's
   permission java.lang.RuntimePermission 
 accessClassInPackage.org.apache.catalina.util; 
   permission java.lang.RuntimePermission 
 accessClassInPackage.org.apache.catalina.util.*;
   permission java.lang.RuntimePermission 
 defineClassInPackage.org.apache.catalina.util;
   permission java.lang.RuntimePermission 
 defineClassInPackage.org.apache.catalina.util.*;
 
   
 }
 
 -- Jeanfrancois
 
 
 Jose Antonio Martinez wrote:
 
 I have developed a servlet that recives from a form
 (post method) the name of a file and write its
 content.
 
  --- Jeanfrancois Arcand [EMAIL PROTECTED]
 escribió:  Strange. Can you post you entire log
 file
 (to see
   
 
 more exception info)?
 
 -- Jeanfrancois
 
 Jose Antonio Martinez wrote:
 
 
 
 tomcat 4.0.5
 
 --- Jeanfrancois Arcand [EMAIL PROTECTED]
 escribió:  Which version of Tomcat are you
 using?
  
 
   
 
 -- Jeanfrancois
 
 Jose Antonio Martinez wrote:
 

 
 
 
 I am using the default security configuration
 at
 manager 'catalina.policy' file, but when i try
 to
 access files which are under the webapp
 directory
  
 
   
 
 who

 
 
 
 i am executing i have an exception:
 
 
 javax.servlet.ServletException: Servlet
 execution
 threw an exception
  at
  
 
   
 

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
   
 

 
 
 
  at
  
 
   
 

org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
   
 

 
 
 
  at
  
 
   
 

org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
   
 

 
 
 
  at
  
 
   
 

java.security.AccessController.doPrivileged(Native

 
 
 
 Method)
 
 
 what's the problem?
 
  
 
   
 

___
   
 

 
 
 
 Yahoo! Messenger
 Nueva versión: Webcam, voz, y mucho más
 ¡Gratis! 
 Descárgalo ya desde http://messenger.yahoo.es
 
 --
 To unsubscribe, e-mail:  
  
 
   
 

mailto:tomcat-user-unsubscribe;jakarta.apache.org
   
 

 
 
 
 For additional commands, e-mail:
  
 
   
 
 mailto:tomcat-user-help;jakarta.apache.org

 
 
 
  
 
   
 
 --
 To unsubscribe, e-mail:  
 
 

mailto:tomcat-user-unsubscribe;jakarta.apache.org
   
 
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 

 
 
 

___
 
 
=== message truncated === 

___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Tomcat - Access Connection.

2002-11-12 Thread Andoni
Hello,

Where can I get a driver to connect tomcat to MS Access?  Do I need a driver
like I do with SQLServer?

Thanks,

Andoni.


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Tomcat - Access Connection.

2002-11-12 Thread Jeanfrancois Arcand
The JDBC-ODBC bridge is probably the only solution available.

-- Jeanfrancois

Andoni wrote:


Hello,

Where can I get a driver to connect tomcat to MS Access?  Do I need a driver
like I do with SQLServer?

Thanks,

Andoni.


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


 



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Removing default Contexts in production...

2002-11-12 Thread Stone, Timothy
For posterity, etc... I try to seek feedback as a learning process for myself and 
others. Feel free to comment:

I have deployed the server-noexamples.xml.config successfully in my development 
environment.

The reason for the no examples deployment of course is to deny crackers any unknown 
security holes in webapps/contexts found in the development/standard Tomcat 4.0.x 
installation.

I tar'd the following:

ROOT/
webdav/
tomcat-docs/
manager/
examples/

and removed them from the webapps directory. This left only the ./luceneweb directory 
for the Lucene full-text search (demo).

I renamed the default ./conf/server.xml file:

% mv server.xml server.xml.orig

I renamed the no examples configuration

% mv server-noexamples.xml.config server.xml

I checked the new server.xml for items that needed further tweaking to match the 
original server.xml file, i.e. ports, connectors, etc. This also included commenting 
out the Manager context still found in the new server.xml.

Restarted tomcat.

All looks well; I'll continue some testing throughout the day before promoting to 
production environments. Thanks for the help/support that may be in the works.


Warmest Regards,
Tim

--
/**
 * Timothy Stone  . Sun Certified Java Programmer
 * Web Master . tstone at cityofhbg dot com
 * City of Harrisburg . 717.255.7297
 * Pennsylvania USA   . 717.903.9162
 *
 * This Satan's drink [coffee] is so delicious,
 *  we shall cheat Satan and baptize it.
 *  --Pope Clement VIII 
 */


 -Original Message-
 From: Stone, Timothy 
 Sent: Tuesday, November 12, 2002 11:36
 To: [EMAIL PROTECTED]
 Subject: Removing default Contexts in production...
 
 
 List,
 
 I'm deploying the rather simple Lucene demo on Tomcat 4.0.6. 
 I would like to remove the examples and ROOT contexts to 
 further harden the development deployment on the production servers.
 
 I see a /conf/server-noexamples.xml.config file that seems to 
 provide exactly what I'm looking for. Is this correct?
 
 May I also remove the Manager context/webapp without 
 adversely affecting deployment?
 
 Thanks for your feedback in advance.
 
 Warmest Regards,
 Tim
 
 --
 /**
  * Timothy Stone  . Sun Certified Java Programmer
  * Web Master . tstone at cityofhbg dot com
  * City of Harrisburg . 717.255.7297
  * Pennsylvania USA   . 717.903.9162
  *
  * This Satan's drink [coffee] is so delicious,
  *  we shall cheat Satan and baptize it.
  *  --Pope Clement VIII 
  */
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Tomcat - Access Connection.

2002-11-12 Thread Stone, Timothy
Ditto.

I believe JDBC-OBDC bridge (sun.jdbc.odbc.JdbcOdbcDriver) is the MS-Access option (I 
have two O'Reilly books here that present this class as the MS-Access option).

Tim

 -Original Message-
 From: Jeanfrancois Arcand [mailto:jfarcand;apache.org]
 Sent: Tuesday, November 12, 2002 13:15
 To: Tomcat Users List
 Subject: Re: Tomcat - Access Connection.
 
 
 The JDBC-ODBC bridge is probably the only solution available.
 
 -- Jeanfrancois
 
 Andoni wrote:
 
 Hello,
 
 Where can I get a driver to connect tomcat to MS Access?  Do 
 I need a driver
 like I do with SQLServer?
 
 Thanks,
 
 Andoni.
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 
 
   
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Apache 2.0.42 Tomcat 4.1.12 - mod_jk2 on Win2k

2002-11-12 Thread Francesca Arecco
Hi everybody,

I have the following configuration:
   Win2k SP3
   JDK 1.4.0_01
   Apache 2.0.42
   Tomcat 4.1.12
   mod_jk2_2.0.42.dll

Has anyone this configuration worker properly?
Has anyone a workers2.properties and jk2.properites example files?

My servlets seem to work fine, while when I try to reach a JSP I get the 
following error:

HTTP Status 500
Type Exception report
Description The server encountered an internal error () that prevented 
it from fulfilling this request.
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
   [javac] Compiling 1 source file
   at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120)
   at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
   at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:324)
   at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
   at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
   at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
   at tributi.schedaunimm.client.ServletUnImm.doGet(ServletUnImm.java:114)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
   at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:256)
   at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:361)
   at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:563)
   at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:535)
   at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:638)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
   at java.lang.Thread.run(Thread.java:536)


Thanks in advance
Francesca Arecco
ITALY




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



OFF_TOPIC: How to convert JSP page into an EXCEL format

2002-11-12 Thread Nagpal, Vikas
Hi EveryBody,

1) I have a JSP page which contains the TABLE. Now i want to send this
JSP page as an  EXCEL email attachment so that as soon as people opens
this attachment they can view there JSP page as an EXCEL worksheet. I
have downloaded JINTEGRA.JAR from the web. I have put this package
into my classpath. Can somebody tell me what should i do so that i can
convert columns of my JSP page into columns of my EXCEL worksheet.

2) I have been trying to sort the elements of an array but I want to
ignore any SPECIAL CHARACTERS that preceeds alphabets. In  most of
these elements I have double quotes as my special charcter. How can I
sort so as to start from alphabets.

Thanks,
With regards,
Vikas Nagpal.

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: What's wrong with my Context in my Server.xml???

2002-11-12 Thread Philippe de M. Sevestre

 All,
 I have no idea why this isn't working. Suggestions?
   !-- indemand Context --
   Context docBase=indemand path=/indemand reloadable=true
source=indemand
Resource name=jdbc/indemand auth=SERVLET
  ^
==|

Missing 



   type=javax.sql.DataSource/
ResourceParams name=jdbc/indemand
 parameter
   nameusername/name
   valuetibco_user/value
  /parameter
 parameter
   namepassword/name
   valuetibco_user/value
 /parameter
 parameter
namedriverClassName/name
valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value
 /parameter
 parameter
   nameurl/name

valuejdbc:microsoft:sqlserver://vc34:1433;databaseName=TibcoClearHouse/va
lue
 /parameter
  /ResourceParams
   /Context



 -
 Do you Yahoo!?
 U2 on LAUNCH - Exclusive medley  videos from Greatest Hits CD


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: OFF_TOPIC: How to convert JSP page into an EXCEL format

2002-11-12 Thread Turner, John

For number 1, you don't need to do anything, nor do you need any special JAR
files or other libraries.

Excel understands HTML just fine.  TR = Excel row, TD = Excel column.

All you have to do is set the correct content type in your JSP page so that
the client browser knows to send the response to Excel instead of trying to
render it as HTML.  Consult Google for the correct Excel MIME type, I don't
remember it.

So, the only difference in your JSP page is to 1) make sure you set the
content type header, and 2) make sure you set the content type header before
any other sort of output is generated.  Then just generate your table.

John


 -Original Message-
 From: Nagpal, Vikas [mailto:vinagpal;utmb.edu]
 Sent: Tuesday, November 12, 2002 1:57 PM
 To: '[EMAIL PROTECTED]'
 Subject: OFF_TOPIC: How to convert JSP page into an EXCEL format
 
 
 Hi EveryBody,
 
 1) I have a JSP page which contains the TABLE. Now i want to send this
 JSP page as an  EXCEL email attachment so that as soon as people opens
 this attachment they can view there JSP page as an EXCEL worksheet. I
 have downloaded JINTEGRA.JAR from the web. I have put this package
 into my classpath. Can somebody tell me what should i do so that i can
 convert columns of my JSP page into columns of my EXCEL worksheet.
 
 2) I have been trying to sort the elements of an array but I want to
 ignore any SPECIAL CHARACTERS that preceeds alphabets. In  most of
 these elements I have double quotes as my special charcter. How can I
 sort so as to start from alphabets.
 
 Thanks,
 With regards,
 Vikas Nagpal.
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: OFF_TOPIC: How to convert JSP page into an EXCEL format

2002-11-12 Thread Stone, Timothy
Vikas Nagpal,

Hmmm... someone correct me if I'm wrong, but can't you do this by setting the MIME 
type javax.servlet.ServletResponse.setContentType(String s)?

...
response.setContentType(application/vnd.ms-excel);
...

One could generate the response to a file (myExcelResponse.xls) and mail it to an 
end-user at that point. This is off-topic however.

To answer the specific questions in a implementation agnostic manner:

1. Can somebody tell me what should i do so that i can convert columns of my JSP page 
into columns of my EXCEL worksheet?

This is automagically done in more recent versions of Excel where HTML tables are 
correctly converted (if you trust Micros~1).

2. How can I sort so as to start from alphabets?
This is more general Java question. A simple array could use one of static 
Arrays.sort() methods; it sounds as if you are sorting strings in the English 
language, Arrays.sort( Object[] o, Comparator c) might be handy. You can implementing 
the Comparator as an anonymous inner class even. More sophiticated methods in the 
java.util package could do this as well, especially if you are dealing with I18N 
environments.

Hope this helps,
Tim



 -Original Message-
 From: Nagpal, Vikas [mailto:vinagpal;utmb.edu]
 Sent: Tuesday, November 12, 2002 13:57
 To: '[EMAIL PROTECTED]'
 Subject: OFF_TOPIC: How to convert JSP page into an EXCEL format
 
 
 Hi EveryBody,
 
 1) I have a JSP page which contains the TABLE. Now i want to send this
 JSP page as an  EXCEL email attachment so that as soon as people opens
 this attachment they can view there JSP page as an EXCEL worksheet. I
 have downloaded JINTEGRA.JAR from the web. I have put this package
 into my classpath. Can somebody tell me what should i do so that i can
 convert columns of my JSP page into columns of my EXCEL worksheet.
 
 2) I have been trying to sort the elements of an array but I want to
 ignore any SPECIAL CHARACTERS that preceeds alphabets. In  most of
 these elements I have double quotes as my special charcter. How can I
 sort so as to start from alphabets.
 
 Thanks,
 With regards,
 Vikas Nagpal.
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Tomcat - Access Connection.

2002-11-12 Thread Craig R. McClanahan


On Tue, 12 Nov 2002, Stone, Timothy wrote:

 Date: Tue, 12 Nov 2002 13:25:03 -0500
 From: Stone, Timothy [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: RE: Tomcat - Access Connection.

 Ditto.

 I believe JDBC-OBDC bridge (sun.jdbc.odbc.JdbcOdbcDriver) is the
 MS-Access option (I have two O'Reilly books here that present this class
 as the MS-Access option).


The JDBC-ODBC driver can be used to connect to MS Access databases, but
it's not a recommended solution for servlet/JSP based applications -- it
does not deal well with multiple simultaneous requests, which is pretty
typical in a multiuser web app.  You're likely to have no end of wierd
problems due to this.

For that matter, MS Access isn't really designed for this sort of use
either.

 Tim

Craig


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




JDBC Error, cannot establish socket - Tomcat 4.0.6/SQL Server 2000

2002-11-12 Thread John Mattos

I'm getting the following error trying to connect to my SQL Server Database

java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Error establishing socket.

I'm using the driver com.microsoft.jdbc.sqlserver.SQLServerDriver, and the 3 
necessary jar files are in C:\Tomcat4.0.6\lib (msbase.jar, msutil.jar and 
mssqlserver.jar)

Any thoughts on this? Has anyone seen this before?

John



-
Do you Yahoo!?
U2 on LAUNCH - Exclusive medley  videos from Greatest Hits CD


RE: Tomcat - Access Connection.

2002-11-12 Thread Stone, Timothy
Craig makes a valid point.

I should further qualify my answer however and say I was only seconding the original 
reply noting sun.jdbc.odbc.JdbcOdbcDriver may be the only option for MS-Access. (I 
can't think of any others off the top of my head and had to see what the books were 
saying on the topic.)

/DB Programming the JDBC and Java/ points some of Craig's notes out in detail, which I 
should have noted. I just felt the answering question on the choice of a backend data 
store was a bit off topic for the list. I do agree that MS-Access has very little 
place in enterprise web applications (let our Micros~1 advocates vehemently protest 
that statement). Both sun.jdbc.odbc.JdbcOdbcDriver and MS-Access are poor choices in 
any environment other than a learning/tutorial/academic one.

Tim


 -Original Message-
 From: Craig R. McClanahan [mailto:craigmcc;apache.org]
 Sent: Tuesday, November 12, 2002 14:32
 To: Tomcat Users List
 Subject: RE: Tomcat - Access Connection.
 
 
 
 
 On Tue, 12 Nov 2002, Stone, Timothy wrote:
 
  Date: Tue, 12 Nov 2002 13:25:03 -0500
  From: Stone, Timothy [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: RE: Tomcat - Access Connection.
 
  Ditto.
 
  I believe JDBC-OBDC bridge (sun.jdbc.odbc.JdbcOdbcDriver) is the
  MS-Access option (I have two O'Reilly books here that 
 present this class
  as the MS-Access option).
 
 
 The JDBC-ODBC driver can be used to connect to MS Access 
 databases, but
 it's not a recommended solution for servlet/JSP based 
 applications -- it
 does not deal well with multiple simultaneous requests, which 
 is pretty
 typical in a multiuser web app.  You're likely to have no end of wierd
 problems due to this.
 
 For that matter, MS Access isn't really designed for this sort of use
 either.
 
  Tim
 
 Craig
 
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: JDBC Error, cannot establish socket - Tomcat 4.0.6/SQL Server 2000

2002-11-12 Thread Turner, John

Yup.  It's network related.  Probably the name of the database server can't
be resolved into an IP address, or a connection request is being made on the
wrong port.  SQL Server's default port is 1433, I believe.

John


 -Original Message-
 From: John Mattos [mailto:mattosj;yahoo.com]
 Sent: Tuesday, November 12, 2002 2:48 PM
 To: [EMAIL PROTECTED]
 Subject: JDBC Error, cannot establish socket - Tomcat 4.0.6/SQL Server
 2000
 
 
 
 I'm getting the following error trying to connect to my SQL 
 Server Database
 
 java.sql.SQLException: [Microsoft][SQLServer JDBC 
 Driver]Error establishing socket.
 
 I'm using the driver 
 com.microsoft.jdbc.sqlserver.SQLServerDriver, and the 3 
 necessary jar files are in C:\Tomcat4.0.6\lib (msbase.jar, 
 msutil.jar and mssqlserver.jar)
 
 Any thoughts on this? Has anyone seen this before?
 
 John
 
 
 
 -
 Do you Yahoo!?
 U2 on LAUNCH - Exclusive medley  videos from Greatest Hits CD
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: JDBC Error, cannot establish socket - Tomcat 4.0.6/SQL Server 2000

2002-11-12 Thread John Mattos

Hmm. I have the app specified in my server.xml as follows. dows anything jump out at 
you? I even used the IP instead of the DNS entry for the DB machine
!-- iN DEMAND Clearinghouse Context --
  Context docBase=indemand path=/indemand reloadable=true 
source=indemand
   Resource name=jdbc/indemand auth=SERVLET
 type=javax.sql.DataSource/
   ResourceParams name=jdbc/indemand
 parameter
  nameuser/name
  valuetibco_user/value
 /parameter
 parameter
  namepassword/name
  valuetibco_user/value
 /parameter
 parameter
  namedriverClassName/name
 valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value
 /parameter
 parameter
  namedriverName/name
valuejdbc:inetdae7:10.10.0.84:1433?database=TibcoClearHouse/value
  /parameter
   /ResourceParams
  /Context
 Turner, John [EMAIL PROTECTED] wrote:
Yup. It's network related. Probably the name of the database server can't
be resolved into an IP address, or a connection request is being made on the
wrong port. SQL Server's default port is 1433, I believe.

John


 -Original Message-
 From: John Mattos [mailto:mattosj;yahoo.com]
 Sent: Tuesday, November 12, 2002 2:48 PM
 To: [EMAIL PROTECTED]
 Subject: JDBC Error, cannot establish socket - Tomcat 4.0.6/SQL Server
 2000
 
 
 
 I'm getting the following error trying to connect to my SQL 
 Server Database
 
 java.sql.SQLException: [Microsoft][SQLServer JDBC 
 Driver]Error establishing socket.
 
 I'm using the driver 
 com.microsoft.jdbc.sqlserver.SQLServerDriver, and the 3 
 necessary jar files are in C:\Tomcat4.0.6\lib (msbase.jar, 
 msutil.jar and mssqlserver.jar)
 
 Any thoughts on this? Has anyone seen this before?
 
 John
 
 
 
 -
 Do you Yahoo!?
 U2 on LAUNCH - Exclusive medley  videos from Greatest Hits CD
 

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



-
Do you Yahoo!?
U2 on LAUNCH - Exclusive medley  videos from Greatest Hits CD


RE: JDBC Error, cannot establish socket - Tomcat 4.0.6/SQL Server 2000

2002-11-12 Thread Turner, John

We're using 4.1.12, ours looks like this:

Resource name=jdbc/name auth=SERVLET
type=com.microsoft.jdbcx.sqlserver.SQLServerDataSource/
   ResourceParams name=jdbc/name
   parameter
  namefactory/name
 
valuecom.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory/value
   /parameter
   parameter
  namedriverClassName/name
  valuecom.microsoft.jdbcx.sqlserver.SQLServerDataSource/value
   /parameter
   parameter
  namedriverName/name
  valueSQLServer/value
   /parameter
   parameter
  namedescription/name
  valueSQL Server DataSource/value
   /parameter
   parameter
  nameserverName/name
  valueour-server/value
   /parameter
   parameter
  nameportNumber/name
  value1433/value
   /parameter
   parameter
  nameselectMethod/name
  valuecursor/value
   /parameter
   parameter
  namedatabaseName/name
  valueour-db-name/value
   /parameter
   parameter
  nameuser/name
  valueour-user/value
   /parameter
   parameter
  namepassword/name
  valueour-password/value
   /parameter
   parameternameloginTimeout/namevalue3000/value/parameter
   parameternamemaxActive/namevalue100/value/parameter
   parameternamemaxIdle/namevalue10/value /parameter
   parameternamemaxWait/namevalue50/value /parameter
/ResourceParams


 -Original Message-
 From: John Mattos [mailto:mattosj;yahoo.com]
 Sent: Tuesday, November 12, 2002 2:55 PM
 To: Tomcat Users List
 Subject: RE: JDBC Error, cannot establish socket - Tomcat 4.0.6/SQL
 Server 2000
 
 
 
 Hmm. I have the app specified in my server.xml as follows. 
 dows anything jump out at you? I even used the IP instead of 
 the DNS entry for the DB machine
 !-- iN DEMAND Clearinghouse Context --
   Context docBase=indemand path=/indemand 
 reloadable=true source=indemand
Resource name=jdbc/indemand auth=SERVLET
  type=javax.sql.DataSource/
ResourceParams name=jdbc/indemand
  parameter
   nameuser/name
   valuetibco_user/value
  /parameter
  parameter
   namepassword/name
   valuetibco_user/value
  /parameter
  parameter
   namedriverClassName/name
  
 valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value
  /parameter
  parameter
   namedriverName/name
 
 valuejdbc:inetdae7:10.10.0.84:1433?database=TibcoClearHouse/value
   /parameter
/ResourceParams
   /Context
  Turner, John [EMAIL PROTECTED] wrote:
 Yup. It's network related. Probably the name of the database 
 server can't
 be resolved into an IP address, or a connection request is 
 being made on the
 wrong port. SQL Server's default port is 1433, I believe.
 
 John
 
 
  -Original Message-
  From: John Mattos [mailto:mattosj;yahoo.com]
  Sent: Tuesday, November 12, 2002 2:48 PM
  To: [EMAIL PROTECTED]
  Subject: JDBC Error, cannot establish socket - Tomcat 
 4.0.6/SQL Server
  2000
  
  
  
  I'm getting the following error trying to connect to my SQL 
  Server Database
  
  java.sql.SQLException: [Microsoft][SQLServer JDBC 
  Driver]Error establishing socket.
  
  I'm using the driver 
  com.microsoft.jdbc.sqlserver.SQLServerDriver, and the 3 
  necessary jar files are in C:\Tomcat4.0.6\lib (msbase.jar, 
  msutil.jar and mssqlserver.jar)
  
  Any thoughts on this? Has anyone seen this before?
  
  John
  
  
  
  -
  Do you Yahoo!?
  U2 on LAUNCH - Exclusive medley  videos from Greatest Hits CD
  
 
 --
 To unsubscribe, e-mail: 
 For additional commands, e-mail: 
 
 
 
 -
 Do you Yahoo!?
 U2 on LAUNCH - Exclusive medley  videos from Greatest Hits CD
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Java returns bunk date!?

2002-11-12 Thread Sexton, George
If you don't need the time portion, I once wrote a replacement for the
calendar that handles just dates. Unlike all of the bizarre manipulations
required by a calendar, with mine you can just call object.add(7) to add 7
days to a date. It uses an internal Julian date field. Checking for elapsed
number of days is a straight integer subtraction. It pretty closely mimics
the date capabilities of xBase variants. Personally, I never use calendars.
They are just too obtuse and error prone. If you are interested you can view
the Javadocs at:

http://www.mhsoftware.com/resources/jar/doc/

The class name is SaneDate.

Right now, it's GPLd but I plan on changing the license to LGPL.

George Sexton
MH Software, Inc.
Home of Connect Daily Web Calendar Software
http://www.mhsoftware.com/connectdaily.htm
Voice: 303 438 9585





-Original Message-
From: Andreas Probst [mailto:andpro77;gmx.net]
Sent: 11 November, 2002 12:43 AM
To: Tomcat Users List
Subject: Re: Java returns bunk date!?


Hi Josh,
yes it is, but in my opinion it's a bit hidden. As starting
January with 0 isn't what one would expect, it should be
stressed more in the docs.

in java.util.Calendar:

public static final int MONTH

 Field number for get and set indicating the month. This is a
calendar-specific value. The first month of the year is JANUARY which is 0;
the last depends on
 the number of months in a year.

in java.util.GregorianCalendar

public GregorianCalendar(int year,
 int month,
 int date)

 Constructs a GregorianCalendar with the given date set in the default
time zone with the default locale.

Parameters:
 year - the value used to set the YEAR time field in the calendar.
 month - the value used to set the MONTH time field in the calendar.
Month value is 0-based. e.g., 0 for January.
 date - the value used to set the DATE time field in the calendar.


Andreas

On 11 Nov 2002 at 10:15, Josh G wrote:

 Ah thanks. Is this covered in the docs and I just missed it?

 -Josh
 --
 And can you tell me doctor why I still can't get to sleep?
 And why the channel 7 chopper chills me to my feet?
 And what's this rash that comes and goes, can you tell me what it
 means? God help me, I was only 19


 - Original Message -
 From: Chakradhar Tallam [EMAIL PROTECTED] To:
 'Tomcat Users List' [EMAIL PROTECTED] Sent:
 Monday, November 11, 2002 9:44 AM Subject: RE: Java returns bunk
 date!?


  because java's month index starts from 0  ends at 11.
 
  0 - JAN
  1 - FEB
  ...
  11 - DEC
 
  -Original Message-
  From: Josh G [mailto:josh;gfunk007.com]
  Sent: Monday, 11 November 2002 10:41 AM
  To: Tomcat Users List
  Subject: Java returns bunk date!?
 
 
  I'm having a weird problem with tomcat, java is giving me last
  month's
 date!
  It's 11 nov on this machine, but java is returning 11 oct :( I
  don't see
 how
  this could happen?
 
  -Josh
  --
  And can you tell me doctor why I still can't get to sleep? And
  why the channel 7 chopper chills me to my feet? And what's this
  rash that comes and goes, can you tell me what it means? God
  help me, I was only 19
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
 


 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org For
 additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org




--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: JDBC Error, cannot establish socket - Tomcat 4.0.6/SQL Server 2000

2002-11-12 Thread Sexton, George
Change

jdbc:inetdae7:10.10.0.84:1433?database=TibcoClearHouse

to

jdbc:microsoft:sqlserver://10.10.0.84:1433;DatabaseName=TibcoClearHouse


George Sexton
MH Software, Inc.
Home of Connect Daily Web Calendar Software
http://www.mhsoftware.com/connectdaily.htm
Voice: 303 438 9585

-Original Message-
From: John Mattos [mailto:mattosj;yahoo.com]
Sent: 12 November, 2002 12:55 PM
To: Tomcat Users List
Subject: RE: JDBC Error, cannot establish socket - Tomcat 4.0.6/SQL
Server 2000



Hmm. I have the app specified in my server.xml as follows. dows anything
jump out at you? I even used the IP instead of the DNS entry for the DB
machine
!-- iN DEMAND Clearinghouse Context --
  Context docBase=indemand path=/indemand reloadable=true
source=indemand
   Resource name=jdbc/indemand auth=SERVLET
 type=javax.sql.DataSource/
   ResourceParams name=jdbc/indemand
 parameter
  nameuser/name
  valuetibco_user/value
 /parameter
 parameter
  namepassword/name
  valuetibco_user/value
 /parameter
 parameter
  namedriverClassName/name
 valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value
 /parameter
 parameter
  namedriverName/name

valuejdbc:inetdae7:10.10.0.84:1433?database=TibcoClearHouse/value
  /parameter
   /ResourceParams
  /Context
 Turner, John [EMAIL PROTECTED] wrote:
Yup. It's network related. Probably the name of the database server can't
be resolved into an IP address, or a connection request is being made on the
wrong port. SQL Server's default port is 1433, I believe.

John


 -Original Message-
 From: John Mattos [mailto:mattosj;yahoo.com]
 Sent: Tuesday, November 12, 2002 2:48 PM
 To: [EMAIL PROTECTED]
 Subject: JDBC Error, cannot establish socket - Tomcat 4.0.6/SQL Server
 2000



 I'm getting the following error trying to connect to my SQL
 Server Database

 java.sql.SQLException: [Microsoft][SQLServer JDBC
 Driver]Error establishing socket.

 I'm using the driver
 com.microsoft.jdbc.sqlserver.SQLServerDriver, and the 3
 necessary jar files are in C:\Tomcat4.0.6\lib (msbase.jar,
 msutil.jar and mssqlserver.jar)

 Any thoughts on this? Has anyone seen this before?

 John



 -
 Do you Yahoo!?
 U2 on LAUNCH - Exclusive medley  videos from Greatest Hits CD


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



-
Do you Yahoo!?
U2 on LAUNCH - Exclusive medley  videos from Greatest Hits CD


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: windows iis machine + linux tomcat machine

2002-11-12 Thread Sexton, George
Get the ISAPI redirector module and install it on IIS, configure it to point
to the linux server.

-Original Message-
From: Jose Antonio Martinez [mailto:lfbbes;yahoo.es]
Sent: 12 November, 2002 4:22 AM
To: [EMAIL PROTECTED]
Subject: windows iis machine + linux tomcat machine


what do you think is the best way to make work
together this configuration:

  windows iis machine + linux tomcat machine

NFS?

___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis!
Descárgalo ya desde http://messenger.yahoo.es

--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Rare request delay of 100 seconds

2002-11-12 Thread Sexton, George
At this point, my only recommendation would be to upgrade the kernel to the
current RedHat 7.2 patch release of 2.4.18-7.x There have been a ton of
things fixed in 9 kernel releases and this could be related to one of them.

-Original Message-
From: Randy Watler [mailto:rwatler;finali.com]
Sent: 11 November, 2002 10:34 AM
To: Tomcat Users List
Subject: Re: Rare request delay of 100 seconds


Jeff,

Thanks for the response. I did want to clarify... we are seeing very rare
requests that are delayed by 100 seconds, (not 100ms). Anything measured in
seconds seems to be very slow for protocol issues like these, no?

Randy Watler
Finali Corporation

Jeff Tulley wrote:

 Could it simply be the Nagle problem?  There are two algorithms commonly
used with TCP/IP, trying to make things more efficient, delayed ack, and
Nagle's algorithm.  Unfortunately they don't work well together.  You can
turn off Nagle's algorithm, but that could cause a lot of tinygrams on the
wire.  Same thing with delayed acks (there the tinygram is the extra
acks).  I don't know if RedHat has implemented a fix for the problem, but
there are a few proposed fixes, one of them called the Doupnik algorithm.

 I'm not sure if this would be your problem, but it sure sounds like it.
Anytime that I've seen somebodies requests coming in at such a regular
interval (200 ms is typical, but 100 ms is common also), it has almost
always turned out to be this problem.

 Here are some links from a colleague on the problem and a potential
solution:

 

 Look here for sample source code.

 http://netlab1.usu.edu/pub/misc/newpolicy.sources/

 Look here for the explanation of the problem and the solution

 http://netlab1.usu.edu/pub/misc/draft-doupnik-tcpimpl-nagle-mode-00.txt

 

 Jeff Tulley  ([EMAIL PROTECTED])
 (801)861-5322
 Novell, Inc., the leading provider of Net business solutions
 http://www.novell.com

  [EMAIL PROTECTED] 11/9/02 9:25:53 AM 
 George,

 Oops! I was off by one on the RedHat version. Here is the whole story:

 RedHat 7.2
 Linux version: 2.4.9-31smp
 gcc version: 2.96

 Sorry I forgot to include this information up front!

 Randy Watler
 Finali Corporation

 Sexton, George wrote:

 What kernel version are you running?

 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: mod_jk.log entries

2002-11-12 Thread Chad Cannell
Is there an error reference guide or chart. I need to look into the
folowing errors:

I am seeing a lot of chatter in my mod_jk.log:

[jk_ajp13_worker.c (326)]: Error ajp13_process_callback - write failed
[jk_uri_worker_map.c (335)]:
jk_uri_worker_map_t::uri_worker_map_close,NULL parameter
[jk_uri_worker_map.c (185)]: In
jk_uri_worker_map_t::uri_worker_map_free, NULL parameters
[jk_ajp13_worker.c (326)]: Error ajp13_process_callback - write failed
[jk_ajp13_worker.c (204)]: connection_tcp_get_message: Error -
jk_tcp_socket_recvfull failed
[jk_ajp13_worker.c (622)]: Error reading request
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
[jk_ajp13_worker.c (174)]: In jk_endpoint_t::connect_to_tomcat, failed
errno = 61
[jk_ajp13_worker.c (587)]: Error connecting to the Tomcat process.


Can anyone help me dicepher these and are they critical? 

Chad


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: mod_jk.log entries

2002-11-12 Thread Turner, John

I think the callback errors are because the response cannot be completed.
For example, the user closing their browser, or browsing to another page
before the page is completed.

I don't know about the connecting to Tomcat process error.

John


 -Original Message-
 From: Chad Cannell [mailto:ccannell;elogex.com]
 Sent: Tuesday, November 12, 2002 3:38 PM
 To: Tomcat Users List
 Subject: RE: mod_jk.log entries
 
 
 Is there an error reference guide or chart. I need to look into the
 folowing errors:
 
 I am seeing a lot of chatter in my mod_jk.log:
 
 [jk_ajp13_worker.c (326)]: Error ajp13_process_callback - write failed
 [jk_uri_worker_map.c (335)]:
 jk_uri_worker_map_t::uri_worker_map_close,NULL parameter
 [jk_uri_worker_map.c (185)]: In
 jk_uri_worker_map_t::uri_worker_map_free, NULL parameters
 [jk_ajp13_worker.c (326)]: Error ajp13_process_callback - write failed
 [jk_ajp13_worker.c (204)]: connection_tcp_get_message: Error -
 jk_tcp_socket_recvfull failed
 [jk_ajp13_worker.c (622)]: Error reading request
 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
 [jk_ajp13_worker.c (174)]: In jk_endpoint_t::connect_to_tomcat, failed
 errno = 61
 [jk_ajp13_worker.c (587)]: Error connecting to the Tomcat process.
 
 
 Can anyone help me dicepher these and are they critical? 
 
 Chad
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: mod_jk.log entries

2002-11-12 Thread Turner, John

The reference would be the source code.

John


 -Original Message-
 From: Chad Cannell [mailto:ccannell;elogex.com]
 Sent: Tuesday, November 12, 2002 3:38 PM
 To: Tomcat Users List
 Subject: RE: mod_jk.log entries
 
 
 Is there an error reference guide or chart. I need to look into the
 folowing errors:
 
 I am seeing a lot of chatter in my mod_jk.log:
 
 [jk_ajp13_worker.c (326)]: Error ajp13_process_callback - write failed
 [jk_uri_worker_map.c (335)]:
 jk_uri_worker_map_t::uri_worker_map_close,NULL parameter
 [jk_uri_worker_map.c (185)]: In
 jk_uri_worker_map_t::uri_worker_map_free, NULL parameters
 [jk_ajp13_worker.c (326)]: Error ajp13_process_callback - write failed
 [jk_ajp13_worker.c (204)]: connection_tcp_get_message: Error -
 jk_tcp_socket_recvfull failed
 [jk_ajp13_worker.c (622)]: Error reading request
 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
 [jk_ajp13_worker.c (174)]: In jk_endpoint_t::connect_to_tomcat, failed
 errno = 61
 [jk_ajp13_worker.c (587)]: Error connecting to the Tomcat process.
 
 
 Can anyone help me dicepher these and are they critical? 
 
 Chad
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: mod_jk.log entries

2002-11-12 Thread Koes, Derrick

This might help.


http://www.faqchest.com/prgm/tomcat-l/tmct-01/tmct-0104/tmct-010470/tmct0104
3017_27782.html


-Original Message-
From: Turner, John [mailto:JTurner;AAS.com] 
Sent: Tuesday, November 12, 2002 3:40 PM
To: 'Tomcat Users List'
Subject: RE: mod_jk.log entries


The reference would be the source code.

John


 -Original Message-
 From: Chad Cannell [mailto:ccannell;elogex.com]
 Sent: Tuesday, November 12, 2002 3:38 PM
 To: Tomcat Users List
 Subject: RE: mod_jk.log entries
 
 
 Is there an error reference guide or chart. I need to look into the
 folowing errors:
 
 I am seeing a lot of chatter in my mod_jk.log:
 
 [jk_ajp13_worker.c (326)]: Error ajp13_process_callback - write failed
 [jk_uri_worker_map.c (335)]:
 jk_uri_worker_map_t::uri_worker_map_close,NULL parameter
 [jk_uri_worker_map.c (185)]: In
 jk_uri_worker_map_t::uri_worker_map_free, NULL parameters
 [jk_ajp13_worker.c (326)]: Error ajp13_process_callback - write failed
 [jk_ajp13_worker.c (204)]: connection_tcp_get_message: Error -
 jk_tcp_socket_recvfull failed
 [jk_ajp13_worker.c (622)]: Error reading request
 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
 [jk_ajp13_worker.c (174)]: In jk_endpoint_t::connect_to_tomcat, failed
 errno = 61
 [jk_ajp13_worker.c (587)]: Error connecting to the Tomcat process.
 
 
 Can anyone help me dicepher these and are they critical? 
 
 Chad
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org
This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Tomcat Application on Port 443 or 8080?

2002-11-12 Thread Manoj Kithany
Hi Experts:

My Apache+SSL is working now - thanks to you all. I checked it using 
https://www.kithany.com.

However, I have a small Application which contains JSP+Servlets which calls 
Oracle DB via JDBC. This application is working fine when I type 
http://www.kithany.com:8080/kithany/index.jsp but when I try HTTPS as 
https://www.kithany.com:8080/kithany/index.jsp it does'nt work - ie page 
does'nt shows up.

I know that HTTPS listens to port 443 and my Application(Tomcat+JBoss) 
listens to port 8080 - so how do I integrate both the ports to work 
together? Any useful information on above is appreciated.

THANKS!






_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



Re: windows iis machine + linux tomcat machine

2002-11-12 Thread Jose Antonio Martinez
i know. The question here is that it is  needed that jsp files be on the
tomcat machine (linux). People have an ftp account in the windows machine
but some files must go to the linux machine (jsp ones)


- Original Message -
From: Sexton, George [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, November 12, 2002 9:31 PM
Subject: RE: windows iis machine + linux tomcat machine


 Get the ISAPI redirector module and install it on IIS, configure it to
point
 to the linux server.

 -Original Message-
 From: Jose Antonio Martinez [mailto:lfbbes;yahoo.es]
 Sent: 12 November, 2002 4:22 AM
 To: [EMAIL PROTECTED]
 Subject: windows iis machine + linux tomcat machine


 what do you think is the best way to make work
 together this configuration:

   windows iis machine + linux tomcat machine

 NFS?

 ___
 Yahoo! Messenger
 Nueva versión: Webcam, voz, y mucho más ¡Gratis!
 Descárgalo ya desde http://messenger.yahoo.es

 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org


 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


___
Copa del Mundo de la FIFA 2002
El único lugar de Internet con vídeos de los 64 partidos. 
¡Apúntante ya! en http://fifaworldcup.yahoo.com/fc/es/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: windows iis machine + linux tomcat machine

2002-11-12 Thread Sexton, George
You could use SMB to mount the files from the Windows machine to the Linux
machine. If you need high performance, this will have a hit. Alternatively,
you could write a shell script that will sync the files on Windows over to
the Linux machine using ftp. ncftpget is pretty nice for an ftp program that
could keep them in synch. If you have to have immediate updates, then SMB is
the way to go. If you can live with a delay of a few minutes, then an FTP
program is the way to go.

-Original Message-
From: Jose Antonio Martinez [mailto:lfbbes;yahoo.es]
Sent: 12 November, 2002 1:55 PM
To: Tomcat Users List
Subject: Re: windows iis machine + linux tomcat machine


i know. The question here is that it is  needed that jsp files be on the
tomcat machine (linux). People have an ftp account in the windows machine
but some files must go to the linux machine (jsp ones)


- Original Message -
From: Sexton, George [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, November 12, 2002 9:31 PM
Subject: RE: windows iis machine + linux tomcat machine


 Get the ISAPI redirector module and install it on IIS, configure it to
point
 to the linux server.

 -Original Message-
 From: Jose Antonio Martinez [mailto:lfbbes;yahoo.es]
 Sent: 12 November, 2002 4:22 AM
 To: [EMAIL PROTECTED]
 Subject: windows iis machine + linux tomcat machine


 what do you think is the best way to make work
 together this configuration:

   windows iis machine + linux tomcat machine

 NFS?

 ___
 Yahoo! Messenger
 Nueva versión: Webcam, voz, y mucho más ¡Gratis!
 Descárgalo ya desde http://messenger.yahoo.es

 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org


 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


___
Copa del Mundo de la FIFA 2002
El único lugar de Internet con vídeos de los 64 partidos.
¡Apúntante ya! en http://fifaworldcup.yahoo.com/fc/es/

--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Tomcat Application on Port 443 or 8080?

2002-11-12 Thread Turner, John

The default Tomcat SSL port is 8443.  

Unless you start an SSL Connector on port 8080, you will never get a
response for https://some.host:8080 as there is nothing on the server end to
negotiate the SSL connection with the browser making the request.

John


 -Original Message-
 From: Manoj Kithany [mailto:manojkithany108;hotmail.com]
 Sent: Tuesday, November 12, 2002 3:05 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat Application on Port 443 or 8080?
 
 
 Hi Experts:
 
 My Apache+SSL is working now - thanks to you all. I checked it using 
 https://www.kithany.com.
 
 However, I have a small Application which contains 
 JSP+Servlets which calls 
 Oracle DB via JDBC. This application is working fine when I type 
 http://www.kithany.com:8080/kithany/index.jsp but when I try HTTPS as 
 https://www.kithany.com:8080/kithany/index.jsp it does'nt 
 work - ie page 
 does'nt shows up.
 
 I know that HTTPS listens to port 443 and my 
 Application(Tomcat+JBoss) 
 listens to port 8080 - so how do I integrate both the ports to work 
 together? Any useful information on above is appreciated.
 
 THANKS!
 
 
 
 
 
 
 _
 The new MSN 8: advanced junk mail protection and 2 months FREE* 
 http://join.msn.com/?page=features/junkmail
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Rare request delay of 100 seconds

2002-11-12 Thread Randy Watler
George,

Thanks for the cycles. We have been pondering this move already and have it
on
the evaluation queue. Meanwhile, we will continue to try to find the root
cause.
Of course, we will post any findings here!

Thanks again,

Randy Watler
Finali Corporation

Sexton, George wrote:

 At this point, my only recommendation would be to upgrade the kernel to
the
 current RedHat 7.2 patch release of 2.4.18-7.x There have been a ton of
 things fixed in 9 kernel releases and this could be related to one of
them.

 -Original Message-
 From: Randy Watler [mailto:rwatler;finali.com]
 Sent: 11 November, 2002 10:34 AM
 To: Tomcat Users List
 Subject: Re: Rare request delay of 100 seconds

 Jeff,

 Thanks for the response. I did want to clarify... we are seeing very rare
 requests that are delayed by 100 seconds, (not 100ms). Anything measured
in
 seconds seems to be very slow for protocol issues like these, no?

 Randy Watler
 Finali Corporation

 Jeff Tulley wrote:

  Could it simply be the Nagle problem?  There are two algorithms commonly
 used with TCP/IP, trying to make things more efficient, delayed ack, and
 Nagle's algorithm.  Unfortunately they don't work well together.  You can
 turn off Nagle's algorithm, but that could cause a lot of tinygrams on
the
 wire.  Same thing with delayed acks (there the tinygram is the extra
 acks).  I don't know if RedHat has implemented a fix for the problem, but
 there are a few proposed fixes, one of them called the Doupnik
algorithm.
 
  I'm not sure if this would be your problem, but it sure sounds like it.
 Anytime that I've seen somebodies requests coming in at such a regular
 interval (200 ms is typical, but 100 ms is common also), it has almost
 always turned out to be this problem.
 
  Here are some links from a colleague on the problem and a potential
 solution:
 
  
 
  Look here for sample source code.
 
  http://netlab1.usu.edu/pub/misc/newpolicy.sources/
 
  Look here for the explanation of the problem and the solution
 
  http://netlab1.usu.edu/pub/misc/draft-doupnik-tcpimpl-nagle-mode-00.txt
 
  
 
  Jeff Tulley  ([EMAIL PROTECTED])
  (801)861-5322
  Novell, Inc., the leading provider of Net business solutions
  http://www.novell.com
 
   [EMAIL PROTECTED] 11/9/02 9:25:53 AM 
  George,
 
  Oops! I was off by one on the RedHat version. Here is the whole story:
 
  RedHat 7.2
  Linux version: 2.4.9-31smp
  gcc version: 2.96
 
  Sorry I forgot to include this information up front!
 
  Randy Watler
  Finali Corporation
 
  Sexton, George wrote:
 
  What kernel version are you running?
 
  --
  To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
  --
  To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org

 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org



remove the need for :8443 in URLs needing https:

2002-11-12 Thread Qmail List

Hello,

It is more difficult to re-write urls as:

  https://www.domain.com:8443/index.jsp

as opposted to

 https://www.domain.com/index.jsp

How can I configure Tomcat (and/or underlying Unix box) to not need the
:8443 explicit port reference in the url?

I tried changing the https /etc/services entry to port 8443 instead of 443,
but no luck.

Regards


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Tomcat Application on Port 443 or 8080?

2002-11-12 Thread Pae Choi
The recommend way is either you [1]configure Apache/HTTP(S)
and TOMCAT(TC) with connentor or [2]make a direct conection
to TC.

So the first case will be accessed as follows:

[1]https://domain/context/url-pattern

This will use the port # 443.

And the second case will be accessed as follows:

[2]https://domain:8443/context/url-pattern

This will use the port # 8443.

But I would not recommend the second scenario.


Pae



- Original Message -
From: Manoj Kithany [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 12, 2002 12:04 PM
Subject: Tomcat Application on Port 443 or 8080?


 Hi Experts:

 My Apache+SSL is working now - thanks to you all. I checked it using
 https://www.kithany.com.

 However, I have a small Application which contains JSP+Servlets which
calls
 Oracle DB via JDBC. This application is working fine when I type
 http://www.kithany.com:8080/kithany/index.jsp but when I try HTTPS as
 https://www.kithany.com:8080/kithany/index.jsp it does'nt work - ie page
 does'nt shows up.

 I know that HTTPS listens to port 443 and my Application(Tomcat+JBoss)
 listens to port 8080 - so how do I integrate both the ports to work
 together? Any useful information on above is appreciated.

 THANKS!






 _
 The new MSN 8: advanced junk mail protection and 2 months FREE*
 http://join.msn.com/?page=features/junkmail


 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




  1   2   >