Re: automatic login

2002-05-13 Thread Vincenzo Marchese

Mats Nyberg wrote:



 Craig R. McClanahan wrote:


 On Fri, 10 May 2002, Mats Nyberg wrote:

 Date: Fri, 10 May 2002 20:00:51 +0200
 From: Mats Nyberg [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: automatic login

 locking myself in is no problem; this is an app running on a collegue's
 (peter antman @ jboss) heavily patched version of a JBoss 2.something
 loaded with tomcat and jboss dependencies.

 do you know the internals of the accessinterceptor/authentification 
 process
 in tomcat?


 I'd *better* know it, because I wrote it ... :-)

 straight to the source, huh
 ;)



 Look in package org.apache.catalina.authenticator in the Tomcat source
 code for the implementation classes that implement the various login
 methods. 

 using 3.2, dude
 :(

 You'll need to understand quite a bit about Tomcat's internal
 architecture for this to work

 I do

 -- there are some UML diagrams and such
 stuff in the Catalina Documentation part of the tomcat-docs webapp.

 However, I'm afraid that I'm not going to be able to assist you any, due
 to time constraints.

 hey, i know i'm on a seller's market here ;)

 got an idea, though.
 I'll be back

 by the way, vincenzo: your idea worked - will write HOWTO for the list

No doubt Mats ;)
we use it in a production site :)
The only potential flaw is that if you look in your browser's cache you 
may find the authentication form filled with username and password and
that's a problem in a shared computer environment. This happens only if 
you perform your redirect in jsp page, maybe server-side redirecting can
avoid this. Didn't try.











 Craig


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






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




-- 
   I imagine bugs and girls have a dim perception that nature played a cruel
trick on them, but they lack the intelligence to really comprehend the
magnitude of it.  -- Calvin
-
  Vincenzo  Marchese
ARSRETIA S.r.l.
  Via D. Sansotta, 97
00144 Roma (IT)
e-mail: [EMAIL PROTECTED]
 Tel.: +39 06 52270097
 Fax: +39 06 52272313




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




Re: Out Of Memory Error

2002-05-13 Thread Cammy Ng

put -Xmx512m on option (512 is max memory before it crash)

- Original Message -
From: Micael Padraig Og mac Grene [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, May 12, 2002 10:20 PM
Subject: Re: Out Of Memory Error


 My guess, though, is that you are trying to do a database job with
 objects.  Don't know what database you are using, but whichever one it is,
 it usually has some ways to do it better than you can using objects to
 order the data.  I learned that the hard way. Micael

 At 05:54 AM 5/13/02 +0100, you wrote:
 Hi All,
 I am generating a report using servlets which has
 7 records. While processing it gives an
 OutOfMemory Error. Can any one tell me how and where
 to add memory? My RAM is 512MB
 
 
 URGENT!!!
 
 Thanks
 Amit Lonkar
 
 
 Everything you always wanted to know about cars and bikes,now
   at: http://in.autos.yahoo.com/cricket/tracker.html
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



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



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




Restrict dir listings

2002-05-13 Thread Jacob Vennervald Madsen

Hi List

How do I restrict directory listings in Tomcat?

Jacob Vennervald

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




RE: Domain name not IP Address in Tomcat.

2002-05-13 Thread RamNivas

Dear Friends,
Problem I have expleined below. This is just to update, my tomcat is running
on Windows NT4.0,
I would be deeply thanks full for your Great help. If any one can send me
the solution.

Thanks




--
Hello Friends,

I am facing one problem, I wish all you to help me out.

I am having my application running on tomcat. Right now I am accessing the
application using IP Address
like..
http://xxx.xxx.xxx.xxx:8080/myjsp.jsp

I have one registered domain name like www.mydomain.com

I want to configure my application so that I can access full application and
pages using domain name.

so I shud be able to access like

http://www.mydomain.com/myjsp.jsp

(Using domain name not ip address)

Thanks and Regards

RamNivas Singh







-Original Message-
From: Tore Skogly [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 11, 2002 3:48 PM
To: Tomcat Users List
Subject: Re: Domain name not IP Address in Tomcat.


What OS do you use?
You can add the the hostname in your hosts file.

On Unix(es)/Linux it is /etc/hosts
On Windows2000 it is c:\winnt\system32\drivers\etc\hosts (I think...)

But if you're connected to the internet you should be able to reach your
applications using the domain name. DNS should take care of that

--
Regards,
ToreS


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


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




RE: Restrict dir listings

2002-05-13 Thread Jacob Vennervald Madsen

Found it.
It's a setting in web.xml.
Sorry.

Jacob

 -Original Message-
 From: Jacob Vennervald Madsen 
 Sent: 13. maj 2002 09:49
 To: Tomcat Users List
 Subject: Restrict dir listings
 
 
 Hi List
 
 How do I restrict directory listings in Tomcat?
 
 Jacob Vennervald
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

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




RE: Domain name not IP Address in Tomcat.

2002-05-13 Thread Markus Colombo

Hi,

Maybe your question is not clear enough but:
if you can access http://IP-Adr:8080/myjsp.jsp
and you have a domainname mapped to the IP
then you can access your JSP with:
http://www.mydomain.com:8080/myjsp.jsp

If you want to have access with:
http://www.mydomain.com/myjsp.jsp
you will need to change the port from 8080 to 80 (default http port) in
your server.xml

HTH
Markus


-Original Message-
From: RamNivas [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Fri, 13 May 2005 13:23:52 +0530
Subject: RE: Domain name not IP Address in Tomcat.

 Dear Friends,
 Problem I have expleined below. This is just to update, my tomcat is
 running
 on Windows NT4.0,
 I would be deeply thanks full for your Great help. If any one can
 send me
 the solution.
 
 Thanks
 
 
 
 
 -
 -
 Hello Friends,
 
 I am facing one problem, I wish all you to help me out.
 
 I am having my application running on tomcat. Right now I am
 accessing the
 application using IP Address
 like..
 http://xxx.xxx.xxx.xxx:8080/myjsp.jsp
 
 I have one registered domain name like www.mydomain.com
 
 I want to configure my application so that I can access full
 application and
 pages using domain name.
 
 so I shud be able to access like
 
 http://www.mydomain.com/myjsp.jsp
 
 (Using domain name not ip address)
 
 Thanks and Regards
 
 RamNivas Singh
 
 
 
 
 
 
 
 -Original Message-
 From: Tore Skogly [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, May 11, 2002 3:48 PM
 To: Tomcat Users List
 Subject: Re: Domain name not IP Address in Tomcat.
 
 
 What OS do you use?
 You can add the the hostname in your hosts file.
 
 On Unix(es)/Linux it is /etc/hosts
 On Windows2000 it is c:\winnt\system32\drivers\etc\hosts (I think...)
 
 But if you're connected to the internet you should be able to reach
 your
 applications using the domain name. DNS should take care of that
 
 --
 Regards,
 ToreS
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 



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




Please help: sealed Package...

2002-05-13 Thread Markus Garscha

Hi

i get the following exception in my tomcat environment:
javax.servlet.ServletException: class de.gama.adr.manager.AdressManager
: java.lang.SecurityException: Sealing violation loading
javax.transaction.SystemException : Package javax.transaction is sealed.

i don't know what to do with this error. what is the meaning of sealed 
and how can i solve this problem.
i'm using castor (http://castor.exolab.org) to handle my database access
with persistent objects which works fine within simple applications. 

please help
markus

p.s. has anyone experience with caster + tomcat 4?




msg53521/pgp0.pgp
Description: PGP signature


RE: Domain name not IP Address in Tomcat.

2002-05-13 Thread Jonathan Scudder

Hi!

This would work so long as you don't already have a web-server running on port 80 - 
otherwise, you could use Tomcat as a servlet container within the web-server. IIRC the 
documentation for Tomcat 3.3 has a how-to about using an isapi_redirect dll with IIS, 
or if you use Apache turn on auto-generation of configuration scripts and add these to 
your httpd.conf file.

-Jonathan
:-)

From: Markus Colombo [EMAIL PROTECTED]
Maybe your question is not clear enough but:
if you can access http://IP-Adr:8080/myjsp.jsp
and you have a domainname mapped to the IP
then you can access your JSP with:
http://www.mydomain.com:8080/myjsp.jsp

If you want to have access with:
http://www.mydomain.com/myjsp.jsp
you will need to change the port from 8080 to 80 (default http port) in
your server.xml

From: RamNivas [EMAIL PROTECTED]
 Dear Friends,
 Problem I have expleined below. This is just to update, my tomcat is
 running
 on Windows NT4.0,
 I would be deeply thanks full for your Great help. If any one can
 send me
 the solution.
 
 Thanks
 
 
 
 
 -
 -
 Hello Friends,
 
 I am facing one problem, I wish all you to help me out.
 
 I am having my application running on tomcat. Right now I am
 accessing the
 application using IP Address
 like..
 http://xxx.xxx.xxx.xxx:8080/myjsp.jsp
 
 I have one registered domain name like www.mydomain.com
 
 I want to configure my application so that I can access full
 application and
 pages using domain name.
 
 so I shud be able to access like
 
 http://www.mydomain.com/myjsp.jsp
 
 (Using domain name not ip address)
 
 Thanks and Regards
 
 RamNivas Singh
 
 
 
 
 
 
 
 -Original Message-
 From: Tore Skogly [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, May 11, 2002 3:48 PM
 To: Tomcat Users List
 Subject: Re: Domain name not IP Address in Tomcat.
 
 
 What OS do you use?
 You can add the the hostname in your hosts file.
 
 On Unix(es)/Linux it is /etc/hosts
 On Windows2000 it is c:\winnt\system32\drivers\etc\hosts (I think...)
 
 But if you're connected to the internet you should be able to reach
 your
 applications using the domain name. DNS should take care of that
 
 --
 Regards,
 ToreS
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 



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



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




webapp-info and security

2002-05-13 Thread Jean-Luc BEAUDET

Hi everybody !

Well
Working on SOLARIS8 with Apache1.3.22/Tomcat 4.0.2-Final and Warp 1.0.2

I find the http://MyServer/webapp-info very usefull for many things.

I customized the manager to manage my Servlets Zone and it works good
with the basic tomcat-users.xml meyhod.

I added
WebAppInfo /webapp-info

in my Apache's httpd.conf.

Need to know if there is a way to have the same identication way than
manager to get more security on my site.

Any help welcome.

Jean-Luc B :O)


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




webapp-info and security: need HELP.

2002-05-13 Thread Jean-Luc BEAUDET

Hi everybody !

Well
Working on SOLARIS8 with Apache1.3.22/Tomcat 4.0.2-Final and Warp 1.0.2

I find the http://MyServer/webapp-info very usefull for many things.

I customized the manager to manage my Servlets Zone and it works good
with the basic tomcat-users.xml meyhod.

I added
WebAppInfo /webapp-info

in my Apache's httpd.conf.

Need to know if there is a way to have the same identication way than
manager to get more security on my site.

Any help welcome.

Jean-Luc B :O)




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




Disconnection from Oracle.

2002-05-13 Thread Carlos Javier Ramos

We are having a problem with a jdbc connection object between tomcat
(linux 2.4.18 - tomcat 3.3.1) and an oracle server (HP-UX 11i Oracle
8.1. The 2 machines are separated by a firewall which was
configured to allow access to the oracle server from the tomcat server
only.

We can see that the conexion pool gets disconnected each 1 hour and 1
minute (+- 3660 s).

Once it is disconnected, the application then freezes any attempts to
login/manage your account or do activities which need database
connection. 

Tomcat still works fine, any servlets which do not need database
connection works.

We have developed a Sentry bash script able to check if the connection
pool is broken and then restart tomcat createing a new one.

We suspect that it is not a problem of linux or hp kernel, neither from
Oracle, because if we made:

$ telnet databasehost 1528

we did not get disconnected... 

As we have discovered isClosed is unable to detect this problem. The
exception throwed when this problem appears is an IOexception, not an
SQL exception.

Which is the way to detect when a connection is closed but the
isClosed() function does not recognize this?

We use db connection pool that keeps the connections alive. ¿has this
connection living time anything to do?

Thanks in advance

--
Carlos J. Ramos


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




RE: Disconnection from Oracle.

2002-05-13 Thread Reynir Hbner

sounds like a bug in your connection pooling software..

hope it helps
-reynir


 -Original Message-
 From: Carlos Javier Ramos [mailto:[EMAIL PROTECTED]]
 Sent: 13. maí 2002 09:27
 To: Tomcat Users List
 Subject: Disconnection from Oracle.
 
 
 We are having a problem with a jdbc connection object between tomcat
 (linux 2.4.18 - tomcat 3.3.1) and an oracle server (HP-UX 11i Oracle
 8.1. The 2 machines are separated by a firewall which was
 configured to allow access to the oracle server from the tomcat server
 only.
 
 We can see that the conexion pool gets disconnected each 1 hour and 1
 minute (+- 3660 s).
 
 Once it is disconnected, the application then freezes any attempts to
 login/manage your account or do activities which need database
 connection. 
 
 Tomcat still works fine, any servlets which do not need database
 connection works.
 
 We have developed a Sentry bash script able to check if the connection
 pool is broken and then restart tomcat createing a new one.
 
 We suspect that it is not a problem of linux or hp kernel, 
 neither from
 Oracle, because if we made:
 
 $ telnet databasehost 1528
 
 we did not get disconnected... 
 
 As we have discovered isClosed is unable to detect this problem. The
 exception throwed when this problem appears is an IOexception, not an
 SQL exception.
 
 Which is the way to detect when a connection is closed but the
 isClosed() function does not recognize this?
 
 We use db connection pool that keeps the connections alive. ¿has this
 connection living time anything to do?
 
 Thanks in advance
 
 --
 Carlos J. Ramos
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

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




RE: Disconnection from Oracle.

2002-05-13 Thread Stuart Stephen

We are experiencing the same issue. It all worked fine until we put the
firewall in. This appears to be a bug in the firewalls or the way java or
oracle handle them. All you can do is make sure it recreates the connection.
The way we had to test it was to create a statement as checking to see if
the connection is null and using the isClosed() method did not pick it up.

Stuart

-Original Message-
From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
Sent: 13 May 2002 11:45
To: Tomcat Users List
Subject: RE: Disconnection from Oracle.


sounds like a bug in your connection pooling software..

hope it helps
-reynir


 -Original Message-
 From: Carlos Javier Ramos [mailto:[EMAIL PROTECTED]]
 Sent: 13. maí 2002 09:27
 To: Tomcat Users List
 Subject: Disconnection from Oracle.


 We are having a problem with a jdbc connection object between tomcat
 (linux 2.4.18 - tomcat 3.3.1) and an oracle server (HP-UX 11i Oracle
 8.1. The 2 machines are separated by a firewall which was
 configured to allow access to the oracle server from the tomcat server
 only.

 We can see that the conexion pool gets disconnected each 1 hour and 1
 minute (+- 3660 s).

 Once it is disconnected, the application then freezes any attempts to
 login/manage your account or do activities which need database
 connection.

 Tomcat still works fine, any servlets which do not need database
 connection works.

 We have developed a Sentry bash script able to check if the connection
 pool is broken and then restart tomcat createing a new one.

 We suspect that it is not a problem of linux or hp kernel,
 neither from
 Oracle, because if we made:

 $ telnet databasehost 1528

 we did not get disconnected...

 As we have discovered isClosed is unable to detect this problem. The
 exception throwed when this problem appears is an IOexception, not an
 SQL exception.

 Which is the way to detect when a connection is closed but the
 isClosed() function does not recognize this?

 We use db connection pool that keeps the connections alive. ¿has this
 connection living time anything to do?

 Thanks in advance

 --
 Carlos J. Ramos


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



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



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




Re: Disconnection from Oracle.

2002-05-13 Thread Skondras P.

Carlos Javier Ramos wrote:

 We are having a problem with a jdbc connection object between tomcat
 (linux 2.4.18 - tomcat 3.3.1) and an oracle server (HP-UX 11i Oracle
 8.1. The 2 machines are separated by a firewall which was
 configured to allow access to the oracle server from the tomcat server
 only.

 We can see that the conexion pool gets disconnected each 1 hour and 1
 minute (+- 3660 s).

 Once it is disconnected, the application then freezes any attempts to
 login/manage your account or do activities which need database
 connection.

 Tomcat still works fine, any servlets which do not need database
 connection works.

 We have developed a Sentry bash script able to check if the connection
 pool is broken and then restart tomcat createing a new one.

 We suspect that it is not a problem of linux or hp kernel, neither from
 Oracle, because if we made:

 $ telnet databasehost 1528

 we did not get disconnected...

 As we have discovered isClosed is unable to detect this problem. The
 exception throwed when this problem appears is an IOexception, not an
 SQL exception.

 Which is the way to detect when a connection is closed but the
 isClosed() function does not recognize this?


Execute a query that you now it should work e.g select sysdate from dual and if
you get an
Exception reopen the Connection



 We use db connection pool that keeps the connections alive. has this
 connection living time anything to do?


Perhaps the Connection pool has an attribute disconnect if idle for more that
some time.


 Thanks in advance

 --
 Carlos J. Ramos

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






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


RE: Disconnection from Oracle.

2002-05-13 Thread Stuart Stephen

We use persistant connections. It does it to us even so. It is more likely
that the firewall has an idle time or a max timeout for a connection on the
udp port 1521 or whatever you have set it to run on.


-Original Message-
From: Skondras P. [mailto:[EMAIL PROTECTED]]
Sent: 13 May 2002 12:10
To: Tomcat Users List
Subject: Re: Disconnection from Oracle.


Carlos Javier Ramos wrote:

 We are having a problem with a jdbc connection object between tomcat
 (linux 2.4.18 - tomcat 3.3.1) and an oracle server (HP-UX 11i Oracle
 8.1. The 2 machines are separated by a firewall which was
 configured to allow access to the oracle server from the tomcat server
 only.

 We can see that the conexion pool gets disconnected each 1 hour and 1
 minute (+- 3660 s).

 Once it is disconnected, the application then freezes any attempts to
 login/manage your account or do activities which need database
 connection.

 Tomcat still works fine, any servlets which do not need database
 connection works.

 We have developed a Sentry bash script able to check if the connection
 pool is broken and then restart tomcat createing a new one.

 We suspect that it is not a problem of linux or hp kernel, neither from
 Oracle, because if we made:

 $ telnet databasehost 1528

 we did not get disconnected...

 As we have discovered isClosed is unable to detect this problem. The
 exception throwed when this problem appears is an IOexception, not an
 SQL exception.

 Which is the way to detect when a connection is closed but the
 isClosed() function does not recognize this?


Execute a query that you now it should work e.g select sysdate from dual and
if
you get an
Exception reopen the Connection



 We use db connection pool that keeps the connections alive. ¿has this
 connection living time anything to do?


Perhaps the Connection pool has an attribute disconnect if idle for more
that
some time.


 Thanks in advance

 --
 Carlos J. Ramos

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






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




RE: Disconnection from Oracle.

2002-05-13 Thread Robert Morse

Which firewall are you using?  It's probably configurable.

-Original Message-
From: Stuart Stephen [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 4:14 AM
To: Tomcat Users List
Subject: RE: Disconnection from Oracle.


We use persistant connections. It does it to us even so. It is more likely
that the firewall has an idle time or a max timeout for a connection on the
udp port 1521 or whatever you have set it to run on.


-Original Message-
From: Skondras P. [mailto:[EMAIL PROTECTED]]
Sent: 13 May 2002 12:10
To: Tomcat Users List
Subject: Re: Disconnection from Oracle.


Carlos Javier Ramos wrote:

 We are having a problem with a jdbc connection object between tomcat
 (linux 2.4.18 - tomcat 3.3.1) and an oracle server (HP-UX 11i Oracle
 8.1. The 2 machines are separated by a firewall which was
 configured to allow access to the oracle server from the tomcat server
 only.

 We can see that the conexion pool gets disconnected each 1 hour and 1
 minute (+- 3660 s).

 Once it is disconnected, the application then freezes any attempts to
 login/manage your account or do activities which need database
 connection.

 Tomcat still works fine, any servlets which do not need database
 connection works.

 We have developed a Sentry bash script able to check if the connection
 pool is broken and then restart tomcat createing a new one.

 We suspect that it is not a problem of linux or hp kernel, neither from
 Oracle, because if we made:

 $ telnet databasehost 1528

 we did not get disconnected...

 As we have discovered isClosed is unable to detect this problem. The
 exception throwed when this problem appears is an IOexception, not an
 SQL exception.

 Which is the way to detect when a connection is closed but the
 isClosed() function does not recognize this?


Execute a query that you now it should work e.g select sysdate from dual and
if
you get an
Exception reopen the Connection



 We use db connection pool that keeps the connections alive. ¿has this
 connection living time anything to do?


Perhaps the Connection pool has an attribute disconnect if idle for more
that
some time.


 Thanks in advance

 --
 Carlos J. Ramos

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






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


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




RE: Disconnection from Oracle.

2002-05-13 Thread Victor Martinez

JDBC driver stablish connections to oracle server. Those connections are
opened until you close or the server close.
Some firewalls closes too long connections (for secutiry reasons). Check
firewall config...

-Mensaje original-
De: Carlos Javier Ramos [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 13 de mayo de 2002 11:27
Para: Tomcat Users List
Asunto: Disconnection from Oracle.


We are having a problem with a jdbc connection object between tomcat
(linux 2.4.18 - tomcat 3.3.1) and an oracle server (HP-UX 11i Oracle
8.1. The 2 machines are separated by a firewall which was
configured to allow access to the oracle server from the tomcat server
only.

We can see that the conexion pool gets disconnected each 1 hour and 1
minute (+- 3660 s).

Once it is disconnected, the application then freezes any attempts to
login/manage your account or do activities which need database
connection.

Tomcat still works fine, any servlets which do not need database
connection works.

We have developed a Sentry bash script able to check if the connection
pool is broken and then restart tomcat createing a new one.

We suspect that it is not a problem of linux or hp kernel, neither from
Oracle, because if we made:

$ telnet databasehost 1528

we did not get disconnected...

As we have discovered isClosed is unable to detect this problem. The
exception throwed when this problem appears is an IOexception, not an
SQL exception.

Which is the way to detect when a connection is closed but the
isClosed() function does not recognize this?

We use db connection pool that keeps the connections alive. ¿has this
connection living time anything to do?

Thanks in advance

--
Carlos J. Ramos


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


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




Re: automatic login

2002-05-13 Thread Mats Nyberg



Vincenzo Marchese wrote:



 by the way, vincenzo: your idea worked - will write HOWTO for the list


 No doubt Mats ;)
 we use it in a production site :)
 The only potential flaw is that if you look in your browser's cache 
 you may find the authentication form filled with username and password 
 and
 that's a problem in a shared computer environment. This happens only 
 if you perform your redirect in jsp page, maybe server-side 
 redirecting can
 avoid this. Didn't try.

hi vincenzo,

yes i have thought about the security problem, and it's real :(
this is the advantage of this sollution.

if you're willing to lock yourself in [Craig] you can login to tomcat 
by setting
the session attributes j_username and j_password (at least in 3.2, 
probably 3.x series).

then the accessinterceptor will let you through and the realm manager 
considders you logged
in and will assign you the proper roles as well.

this might however not be portable to catalina/tomcat4 or other servlet 
servers but works for
my application.

server-side woun't work. the redirect ploy hinges upon the fact that 
it is the
browser that submits the form.







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


Applet-servlet communication problem with Tomcat 4.0.3

2002-05-13 Thread KAKARONTZAS GEORGE

I'm having an Applet oppening a URLConnection with a servlet and sending
an object.
Here's the Applet side of the communication:
 
//This is the method initiating the connection
public void available(SellOrder o) throws Exception
{
URL servlet = new URL(http, localhost, 8080,
/servlet/AvailableServlet);
Serializable objs[] = { o };
ObjectInputStream in = ServletWriter.postObjects(servlet,
objs);
String status = (String) in.readObject();
in.close();
}

public class ServletWriter {
 
static public ObjectInputStream postObjects(URL servlet,
Serializable objs[]) throws Exception
{
URLConnection con = servlet.openConnection();
con.setDoInput(true);
con.setDoOutput(true);
con.setDefaultUseCaches(false);
con.setUseCaches(false);
con.setRequestProperty(Content-Type,
application/x-www-form-urlencoded);
 
// Write the arguments as post data
ObjectOutputStream out = new
ObjectOutputStream(con.getOutputStream());
int numObjects = objs.length;
for (int x = 0; x  numObjects; x++) {
out.writeObject(objs[x]);
}
 
out.flush();
out.close();
 
return new ObjectInputStream(
con.getInputStream() );
}
 
}
 
On the server side of the communication I have the AvailableServlet with
the following code:
 
public class AvailableServlet extends HostServlet {
 
public void doPost(HttpServletRequest req,
HttpServletResponse res)
throws ServletException, IOException
{
System.out.println(Available is called.);
ObjectInputStream in=
new
ObjectInputStream(req.getInputStream());
ObjectOutputStream out=
new
ObjectOutputStream(res.getOutputStream());
try {
 //read the host order
 SellOrder o = (SellOrder)
in.readObject();
 _server.available(o);
out.writeObject(OK);
in.close();
out.close();
}

catch (Exception ex) {
System.out.println(ex.getMessage());
}

}   
}
 
This communication works fine when running with Tomcat 3.2.1 (Windows XP
Pro - standalone). But it throws the following exception on the server
when running on Tomcat 4.0.3 (same platform standalone or service):

Available is called.
RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments;
nested excep
tion is:
java.net.MalformedURLException: no protocol: Files/Apache

As you can see from the output the doPost() method is called.  The
exception is thrown when the doPost() method executes the readObject()
method on the stream.
 
Any help would be greately appreciated.
Thanks
-George
 



RE: Disconnection from Oracle.

2002-05-13 Thread Stuart Stephen

We don't configure it ourselves, we have a partner company deal with it.
They are looking into it for us at the moment.

-Original Message-
From: Robert Morse [mailto:[EMAIL PROTECTED]]
Sent: 13 May 2002 12:17
To: Tomcat Users List
Subject: RE: Disconnection from Oracle.


Which firewall are you using?  It's probably configurable.

-Original Message-
From: Stuart Stephen [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 4:14 AM
To: Tomcat Users List
Subject: RE: Disconnection from Oracle.


We use persistant connections. It does it to us even so. It is more likely
that the firewall has an idle time or a max timeout for a connection on the
udp port 1521 or whatever you have set it to run on.


-Original Message-
From: Skondras P. [mailto:[EMAIL PROTECTED]]
Sent: 13 May 2002 12:10
To: Tomcat Users List
Subject: Re: Disconnection from Oracle.


Carlos Javier Ramos wrote:

 We are having a problem with a jdbc connection object between tomcat
 (linux 2.4.18 - tomcat 3.3.1) and an oracle server (HP-UX 11i Oracle
 8.1. The 2 machines are separated by a firewall which was
 configured to allow access to the oracle server from the tomcat server
 only.

 We can see that the conexion pool gets disconnected each 1 hour and 1
 minute (+- 3660 s).

 Once it is disconnected, the application then freezes any attempts to
 login/manage your account or do activities which need database
 connection.

 Tomcat still works fine, any servlets which do not need database
 connection works.

 We have developed a Sentry bash script able to check if the connection
 pool is broken and then restart tomcat createing a new one.

 We suspect that it is not a problem of linux or hp kernel, neither from
 Oracle, because if we made:

 $ telnet databasehost 1528

 we did not get disconnected...

 As we have discovered isClosed is unable to detect this problem. The
 exception throwed when this problem appears is an IOexception, not an
 SQL exception.

 Which is the way to detect when a connection is closed but the
 isClosed() function does not recognize this?


Execute a query that you now it should work e.g select sysdate from dual and
if
you get an
Exception reopen the Connection



 We use db connection pool that keeps the connections alive. ¿has this
 connection living time anything to do?


Perhaps the Connection pool has an attribute disconnect if idle for more
that
some time.


 Thanks in advance

 --
 Carlos J. Ramos

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






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


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



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




Re: mod_jk setup

2002-05-13 Thread Simon Stewart

It'll only bring you pain and grief, but here's how I did it on linux:q

http://www.pubbitch.org/jboss

I'll test with the latest CVS when I get a chance and update the
HOWTO. There's been a site with tips for win32 that's been posted to
the list several times. Have a root through the archives and it'll
prolly show up.

On Fri, May 10, 2002 at 05:27:09PM -0400, [EMAIL PROTECTED] wrote:
 I use Apache2 and want to install mod_jk too. 
 
 
 Thanks

Cheers,

Simon

-- 
Winny and I lived in a house that ran on static electricity... If you
wanted to run the blender, you had to rub balloons on your head.
Steven Wright

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




patch

2002-05-13 Thread dhyan S Raj

sir,
i am using tomacat stand alone server in win2000. i have installed 
it in two systems, but in one ther is an exception report looks 
like the following.
  catalina.start: LifecycleException: null.open: 
java.net.BindException: Address in use: JVM_Bind:8080
   But the same jproblem was seen in the first system, but it 
solved some how after several restart. there is no server 
listening on the same port, (i think).
  looking forward for ur kind consideration.
dsr
 always at [EMAIL PROTECTED]
_
Click below to visit monsterindia.com and review jobs in India or 
Abroad
http://monsterindia.rediff.com/jobs


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




Doubt

2002-05-13 Thread Krishnakumar G. Nair

Sir,
I made a chat(Applet-JSP communication), and uploaded to a LINUX, Tomcat 
server(in web). But when more than 3 users are logging, then the entire site 
shows 'Page cannot be displayed error'.
But when i uploaded the same code in another FREE server(i think they are 
also using Linux tomcat), no problem. That means no problem for my code.
My chat program continuously requesting the server for meaasges. So
I guess that the number of requests are limited in somewhere in Tomcat 
configuration. Am i right?. If so what is the solution for this?.
version of tomcat is 4.0.3

regards
Krishnakumar G. Nair
ITTechie

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




Re: patch

2002-05-13 Thread Mats Nyberg

try shutdown.bat for starters.

the two systems are installed on separate machines i assume?

~mats

dhyan S Raj wrote:

 sir,
 i am using tomacat stand alone server in win2000. i have installed it 
 in two systems, but in one ther is an exception report looks like the 
 following.
  catalina.start: LifecycleException: null.open: 
 java.net.BindException: Address in use: JVM_Bind:8080
   But the same jproblem was seen in the first system, but it solved 
 some how after several restart. there is no server listening on the 
 same port, (i think).
  looking forward for ur kind consideration.
dsr
 always at [EMAIL PROTECTED]
 _
 Click below to visit monsterindia.com and review jobs in India or Abroad
 http://monsterindia.rediff.com/jobs


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






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




Problems with jk_sockbuf.c on Solaris 8

2002-05-13 Thread Kaemmerer, Stefan

Via build-solaris.sh I'm trying to build the mod_jk.so

but I'm receiving the following error:


..
PIC -DSHARED_MODULE -I/sag/sag/Apache/include -I../common
-I/usr/java/include -I
/usr/java/include/solaris -DSOLARIS  -c ../common/jk_msg_buff.c
cc -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expat-lite -O -xtarget=ultra
-xarch=v9 -K
PIC -DSHARED_MODULE -I/sag/sag/Apache/include -I../common
-I/usr/java/include -I
/usr/java/include/solaris -DSOLARIS  -c ../common/jk_nwmain.c
../common/jk_nwmain.c, line 32: warning: empty translation unit
cc -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expat-lite -O -xtarget=ultra
-xarch=v9 -K
PIC -DSHARED_MODULE -I/sag/sag/Apache/include -I../common
-I/usr/java/include -I
/usr/java/include/solaris -DSOLARIS  -c ../common/jk_pool.c
cc -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expat-lite -O -xtarget=ultra
-xarch=v9 -K
PIC -DSHARED_MODULE -I/sag/sag/Apache/include -I../common
-I/usr/java/include -I
/usr/java/include/solaris -DSOLARIS  -c ../common/jk_sockbuf.c
../common/jk_sockbuf.c, line 226: syntax error before or at: /
../common/jk_sockbuf.c, line 232: cannot recover from previous errors
cc: acomp failed for ../common/jk_sockbuf.c
apxs:Break: Command failed with rc=2
Error with apxs


I'm using apache 1.3.19 on Solaris 8.

regards
stefan

Software AG Systemhaus GmbH
Technical Consultant 
Email mailto:[EMAIL PROTECTED]
Fon +49 711 72093 0
Fax +49 7085 9230 56 (Home Office)
Fax +49 711 72093 165
Mobil +49 172 680 7285
Web http://www.softwareag.com


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




RE: Out Of Memory Error

2002-05-13 Thread Heneghan

If you are using SQL server there is a line you need to put into the connect
string so that it doesn't hold onto the results. We ran into this as well
for MSSql 7. I will try and dig up the correct option.

Kevin

-Original Message-
From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 1:20 AM
To: Tomcat Users List
Subject: Re: Out Of Memory Error


My guess, though, is that you are trying to do a database job with
objects.  Don't know what database you are using, but whichever one it is,
it usually has some ways to do it better than you can using objects to
order the data.  I learned that the hard way. Micael

At 05:54 AM 5/13/02 +0100, you wrote:
Hi All,
I am generating a report using servlets which has
7 records. While processing it gives an
OutOfMemory Error. Can any one tell me how and where
to add memory? My RAM is 512MB


URGENT!!!

Thanks
Amit Lonkar


Everything you always wanted to know about cars and bikes,now
  at: http://in.autos.yahoo.com/cricket/tracker.html

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



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


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




RE: Applet-servlet communication problem with Tomcat 4.0.3

2002-05-13 Thread Douglas, Rory

This looks like something to do with your CATALINA_HOME directory. I had
problems installing to Program Files/Apache Tomcat, because of the space in
Program Files. You could try moving/re-installing your tomcat to somewhere
else without spaces in the pathname - like c:\dev\tomcat4.0.3 or something.


-Original Message-
From: KAKARONTZAS GEORGE [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 7:27 AM
To: [EMAIL PROTECTED]
Subject: Applet-servlet communication problem with Tomcat 4.0.3


I'm having an Applet oppening a URLConnection with a servlet and sending
an object.
Here's the Applet side of the communication:
 
//This is the method initiating the connection
public void available(SellOrder o) throws Exception
{
URL servlet = new URL(http, localhost, 8080,
/servlet/AvailableServlet);
Serializable objs[] = { o };
ObjectInputStream in = ServletWriter.postObjects(servlet,
objs);
String status = (String) in.readObject();
in.close();
}

public class ServletWriter {
 
static public ObjectInputStream postObjects(URL servlet,
Serializable objs[]) throws Exception
{
URLConnection con = servlet.openConnection();
con.setDoInput(true);
con.setDoOutput(true);
con.setDefaultUseCaches(false);
con.setUseCaches(false);
con.setRequestProperty(Content-Type,
application/x-www-form-urlencoded);
 
// Write the arguments as post data
ObjectOutputStream out = new
ObjectOutputStream(con.getOutputStream());
int numObjects = objs.length;
for (int x = 0; x  numObjects; x++) {
out.writeObject(objs[x]);
}
 
out.flush();
out.close();
 
return new ObjectInputStream(
con.getInputStream() );
}
 
}
 
On the server side of the communication I have the AvailableServlet with
the following code:
 
public class AvailableServlet extends HostServlet {
 
public void doPost(HttpServletRequest req,
HttpServletResponse res)
throws ServletException, IOException
{
System.out.println(Available is called.);
ObjectInputStream in=
new
ObjectInputStream(req.getInputStream());
ObjectOutputStream out=
new
ObjectOutputStream(res.getOutputStream());
try {
 //read the host order
 SellOrder o = (SellOrder)
in.readObject();
 _server.available(o);
out.writeObject(OK);
in.close();
out.close();
}

catch (Exception ex) {
System.out.println(ex.getMessage());
}

}   
}
 
This communication works fine when running with Tomcat 3.2.1 (Windows XP
Pro - standalone). But it throws the following exception on the server
when running on Tomcat 4.0.3 (same platform standalone or service):

Available is called.
RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments;
nested excep
tion is:
java.net.MalformedURLException: no protocol: Files/Apache

As you can see from the output the doPost() method is called.  The
exception is thrown when the doPost() method executes the readObject()
method on the stream.
 
Any help would be greately appreciated.
Thanks
-George
 



Default context when using Apache and Tomcat together

2002-05-13 Thread Shimon Crown

The Tomcat document config/context.html contains the following statement :

You may define as many Context elements as you wish, nested within a Host
element in conf/server.xml. Each such Context MUST have a unique context
path, which is defined by the path attribute. In addition, you MUST define a
Context with a context path equal to a zero-length string. This Context
becomes the default web application for this virtual host, and is used to
process all requests that do not match any other Context's context path.

I can see why this is meaningfull in a Tomcat standalone situation but what
can it do when using the AJP conector to Apache ? Surely all unknown
contexts will be handled by the Apache in the first place and never get to
this default ? I only ask because of the capitalized MUST.

Shimon Crown


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




RE: Starting TOmcat at Bootup

2002-05-13 Thread Carlos

Hi Abraham,

I am using a script that is very similar to one that I found in earlier
postings of this forum.  I created it with the webadmin, named it
tomcat, and it installed n init.d.  It seem to start tomcat well in
Linux RedHat v7.x.  I did not link it to the user tomcat like the
postings of your e-mail suggest.

Anyways, I would appreciate any comments about the script that follows:


#!/bin/sh
# description: Starting Tomcat at bootup
# chkconfig: 2345 99 00
#

# Source function library
. /etc/rc.d/init.d/functions

# See how we are called
case $1 in
start)
echo -n Starting tomcat: 
export JAVA_HOME=/opt/IBMJava2-131

export CATALINA_HOME=/usr/local/jakarta-tomcat-4.0.1

/usr/local/jakarta-tomcat-4.0.1/bin/startup.sh

echo
touch /var/lock/subsys/tomcat
;;
stop)
echo -n Shutting down tomcat: 

export JAVA_HOME=/opt/IBMJava2-131
export CATALINA_HOME=/usr/local/jakarta-tomcat-4.0.1

/usr/local/jakarta-tomcat-4.0.1/bin/shutdown.sh
rm -f /var/lock/subsys/tomcat
;;
restart)
$0 stop
$0 start
;;
*)
echo Usage: $0 { start | stop|restart|reload|status }
exit 1
;;
esac
exit 0

Carlos Oliva
Senior Programmer/Analyst
Positive Business Solutions, Inc.
Cincinnati, OH 45240-1640
(513) 772 - 2255 ext 129
[EMAIL PROTECTED]
Yahoo ID: ramboid_1997


-Original Message-
From: Abraham Fathman [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 11, 2002 1:02 AM
To: 'Tomcat Users List'
Subject: RE: Starting TOmcat at Bootup


Carlos,

http://marc.theaimsgroup.com/?l=tomcat-userm=102038508912247w=2

Let me know if that doesn't make sense...

Abe

-Original Message-
From: Carlos [mailto:[EMAIL PROTECTED]] 
Sent: Friday, May 10, 2002 6:27 PM
To: Tomcat-User (E-mail)
Subject: Starting TOmcat at Bootup


Hi Forum,

How can I start tomcat at bootup?  I have it installed in RedHat 7.x.

Thanks in advance for your answer.
Regards

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


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

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




use xml-API in a servlet???

2002-05-13 Thread staginfo-ar

Hi,
 I'm using Tomcat4.0.3 with IIS5.0.
I can run servlet without trouble on Tomcat. But,
when I run a servlet which use xml-API, Tomcat shutdown itself, And I've
this message :

Unexpected Signal : EXCEPTION_GUARD_PAGE occured at PC=0*6d33dfde
Function=JVM_DisableCompiler
Library=c:\j2sdk\jre\lib\jvm.dll

Current Java thread:
 at java.lang.Throwable.fill.
 at java.lang..
 ...

I can use Dom or Sax API in an class with a main program, but not in a
servlet. I've put .jar in common\lib
What can I do? Thanks
Jc


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




building mod_jk

2002-05-13 Thread Peter Choe

my saga continues...

i have read the following instructions in the mail archives on how i can 
build mod_jk:

- ./configure --enable-EAPI --with-java-home=/usr/local/jdk1.2-blackdown \ 
--with-apxs=/usr/sbin/apxs
(i think it configured okay as there was no error at the end.)

- gmake

the problem, when i do make, i get the following error:

bash-2.03# make
Makefile, line 340: Need an operator
make: fatal errors encountered -- cannot continue

when i look at line 340 of the Makefile this is what i see.

Makefile.in configure

what is the operator that i need?


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




Re: Any idea about Session object Failue?

2002-05-13 Thread Chinni . Venkateswara


Did you try using -- request.getsession(false)?


gOOd day.

---

V R Chinni (DPRA).
Contractor for EPA.
214-665-6783
---




   

  Rajesh   

  Harikrishnan To:   Tomcat Users List 

  webteam@sslindia [EMAIL PROTECTED]   

  .comcc: 

   Subject:  Any idea about Session object 
Failue? 
  05/11/02 03:33 AM

  Please respond to

  Tomcat Users List

   

   





Hi All,

Thanks for your reply for my previous question on 'Session Problem'.
In addition to the previous subject, i still could'nt figure out the
exact problem in my application. After a close watch, i found some where
in the application the existing 'Session object' is being 'Written Over'
by a new 'Session Object' when calling 'request.getsession()'.

Can somebody enlight, Is their any possibility for a existing session
object to be implicitly killed without calling 'invalidate()' by the
program??.

Thanks in advance for your help.

Regards

H.Rajesh
([EMAIL PROTECTED])
SSPL,Chennai
India.





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




tomcat doesn't find http://java.sun.com/dtd/web-app_2_3.dtd

2002-05-13 Thread staginfo-ar

Hi,
I've created a new context for my apps. All works fine but when I add a
web.xml file in my /WEB-INF, Tomcat write an XmMapper Error (appears when I
launch Tomcat).
What the pb???
Thanks
Jc


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




mod_webapp sources

2002-05-13 Thread Julien OIX

hi everyone,

when I retrieve mod_webapp from CVS server , everything is OK.
but now, when I run ./support/buildconf.sh from
$BASE/jakarta-tomcat-connectors/webapp
this scripts tells me that my autoconf version is too old:

autoconf version 2.13 found.
autoconf version 2.52 or newer required to build from CVS.

I'm on a RedHat 7.1, and I can't fnid any newer autoconf version for
this distrib 

How can I do to compile my mod_webapp.so ?

Thanks in advance .
-- 
Julien OIX
Service Informatique de Gestion
Tél: 02 40 99 83 65
mailto: [EMAIL PROTECTED]

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




Tomcat 4 and external JNDI in general - or JBoss 3 in particular

2002-05-13 Thread Håkon Hansen

Hi.

Sorry if I have missed it - but I have searched the mail archive and read the Tomcat 
pages at Jakarta.

I fail to see the authoritative, working example as to how Tomcat is configured to 
allow an application to connect with external EJB resources.

Could someone please provide this? I have solved the problem (in a way suggested in 
the list archives) by setting up my own environment and even setting the initial 
factory as a System property.

There must be a more elegant solution. 

(Would somebody deeply involved in the project please make such info  examples 
available on the project pages?)


Yours,

Haakon Hansen
Norway

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




Re: jsp's do not compile

2002-05-13 Thread Michael Teter

Well, I'm probably not using this the best way, but I
just have my ant prod_dist wrap up the project as
ROOT.war and drop it in webapps/

I have webapps nfs-shared, and I have tomcat running
as a member of group web, so when I run ant with
prod_dist target, that deletes the
/mount/webapps/ROOT, then copies ROOT.war -
/mount/webapps/ROOT.  Then I remove/install from
manager.

There may be documentation that describes the best
practices, but I haven't seen it.

Michael

--- Xinji Gu [EMAIL PROTECTED] wrote:
 For double check, I just put an JSP file that doing
 simple
 math (1+1) under /webapps, and query it, got 2 :)
 and then, change the JSP to do (1+2), and without
 doing any
 configuration/deployment, I reinput the query in the
 same browser:
 I got 3. So, it compiled automatically. The web.xml
 file has nothing in it:
 ?xml version=1.0 encoding=ISO-8859-1 ?
 !DOCTYPE web-app (View Source for full doctype...)
   web-app /
 
 BTW, I have been confused by Tomcat manager: where
 does it
 put the deployment information? I mean the app.war
 could be anywhere
 in 4.1. How could Tomcat figure out the location of
 the war file when
 a request comes in?
 
 thanks a lot
 
 Jim Gu
 
 - Original Message -
 From: Michael Teter [EMAIL PROTECTED]
 To: Tomcat Users List
 [EMAIL PROTECTED]
 Sent: Friday, May 10, 2002 5:50 PM
 Subject: Re: jsp's do not compile
 
 
  My understanding is that Tomcat does usually does
 not,
  and never really has :) reloaded things when they
  change, regardless of you specifying that a webapp
 is
  reloadable.
 
  I use the manager app, and it works great.  With
 my
  ant build.xml set up right, I can build/distribute
 my
  webapp in an instant, then click on two bookmarks
 on
  my browser (to tell the manager to remove my
 webapp,
  and then install my webapp.)
 
  Good luck.
  Michael
 
  --- Xinji Gu [EMAIL PROTECTED] wrote:
   maybe you should close your browser and start it
   again?
  
   Jim
  
   - Original Message -
   From: [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Friday, May 10, 2002 5:23 PM
   Subject: jsp's do not compile
  
  
I cannot get tomcat to recompile jsp's after I
   change them. I have tried
the 4.1 alpha nightly build as well as 4.0.3.
 I
   know this is supposed to
work...
   
Is there some special parameter I should be
   configuring or something? I've
searched the docs.
   
Troy
   
   
--
To unsubscribe, e-mail:
  
 mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
   
  
  
   --
   To unsubscribe, e-mail:
  
 mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
 
 
  __
  Do You Yahoo!?
  Yahoo! Shopping - Mother's Day is May 12th!
  http://shopping.yahoo.com
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




jsessionid suddenly appearing in the HTML links

2002-05-13 Thread Mark Williams

Hi all,

Apache : 1.3.x
Tomcat : 3.x

I am having a problem in that suddently, for some reason( no changes have
been made to eith my apache or tomcat configuarion for the past 9 months ) ,
Tomcat's session id ( jsessionid ) is getting included in the HTML URLs that
are generated from the JSP code I am using. For example :

http://www.domain.com/ghb/estabtype?=GH;jessionid=Gkhjfjfhgjg?type=MX

The jessionid code suddenly started appearing in the generated HTML URL
links about 1 week ago ( again, I stress absolutely nothing has changed in
tomcat's configuration ) and as such, has been causing 404 errors when you
click on the link.

The qustion id, why is the jsessionid suddenly appearing in the HTML links?
and how do I configure tomcat ( or whatever ) to stop doing this?

Thanks in advance

Regards, Mark



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




RE: jsessionid suddenly appearing in the HTML links

2002-05-13 Thread Galbraith, Paul

It sounds like you've got cookies turned off in your browser.  Is it possible that 
your browser configuration has changed recently?

-Original Message-
From: Mark Williams [mailto:[EMAIL PROTECTED]]
Sent: May 13, 2002 11:02 AM
To: [EMAIL PROTECTED]
Subject: jsessionid suddenly appearing in the HTML links


Hi all,

Apache : 1.3.x
Tomcat : 3.x

I am having a problem in that suddently, for some reason( no changes have
been made to eith my apache or tomcat configuarion for the past 9 months ) ,
Tomcat's session id ( jsessionid ) is getting included in the HTML URLs that
are generated from the JSP code I am using. For example :

http://www.domain.com/ghb/estabtype?=GH;jessionid=Gkhjfjfhgjg?type=MX

The jessionid code suddenly started appearing in the generated HTML URL
links about 1 week ago ( again, I stress absolutely nothing has changed in
tomcat's configuration ) and as such, has been causing 404 errors when you
click on the link.

The qustion id, why is the jsessionid suddenly appearing in the HTML links?
and how do I configure tomcat ( or whatever ) to stop doing this?

Thanks in advance

Regards, Mark



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


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




RE: jsessionid suddenly appearing in the HTML links

2002-05-13 Thread Mark Williams

No, i've checked on multiple browsers  with cookies turned on. THe problem
still exists. Sorry I didn't mentio this in my original post, I forgot.

 -Original Message-
 From: Galbraith, Paul [mailto:[EMAIL PROTECTED]]
 Sent: 13 May 2002 16:13
 To: Tomcat Users List
 Subject: RE: jsessionid suddenly appearing in the HTML links


 It sounds like you've got cookies turned off in your browser.  Is
 it possible that your browser configuration has changed recently?

 -Original Message-
 From: Mark Williams [mailto:[EMAIL PROTECTED]]
 Sent: May 13, 2002 11:02 AM
 To: [EMAIL PROTECTED]
 Subject: jsessionid suddenly appearing in the HTML links


 Hi all,

 Apache : 1.3.x
 Tomcat : 3.x

 I am having a problem in that suddently, for some reason( no changes have
 been made to eith my apache or tomcat configuarion for the past 9
 months ) ,
 Tomcat's session id ( jsessionid ) is getting included in the
 HTML URLs that
 are generated from the JSP code I am using. For example :

 http://www.domain.com/ghb/estabtype?=GH;jessionid=Gkhjfjfhgjg?type=MX

 The jessionid code suddenly started appearing in the generated HTML URL
 links about 1 week ago ( again, I stress absolutely nothing has changed in
 tomcat's configuration ) and as such, has been causing 404 errors when you
 click on the link.

 The qustion id, why is the jsessionid suddenly appearing in the
 HTML links?
 and how do I configure tomcat ( or whatever ) to stop doing this?

 Thanks in advance

 Regards, Mark



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


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





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




RE: jsessionid suddenly appearing in the HTML links

2002-05-13 Thread Galbraith, Paul

What does the SessionId / tag look like in your server.xml file?

-Original Message-
From: Mark Williams [mailto:[EMAIL PROTECTED]]
Sent: May 13, 2002 11:22 AM
To: Tomcat Users List
Subject: RE: jsessionid suddenly appearing in the HTML links


No, i've checked on multiple browsers  with cookies turned on. THe problem
still exists. Sorry I didn't mentio this in my original post, I forgot.

 -Original Message-
 From: Galbraith, Paul [mailto:[EMAIL PROTECTED]]
 Sent: 13 May 2002 16:13
 To: Tomcat Users List
 Subject: RE: jsessionid suddenly appearing in the HTML links


 It sounds like you've got cookies turned off in your browser.  Is
 it possible that your browser configuration has changed recently?

 -Original Message-
 From: Mark Williams [mailto:[EMAIL PROTECTED]]
 Sent: May 13, 2002 11:02 AM
 To: [EMAIL PROTECTED]
 Subject: jsessionid suddenly appearing in the HTML links


 Hi all,

 Apache : 1.3.x
 Tomcat : 3.x

 I am having a problem in that suddently, for some reason( no changes have
 been made to eith my apache or tomcat configuarion for the past 9
 months ) ,
 Tomcat's session id ( jsessionid ) is getting included in the
 HTML URLs that
 are generated from the JSP code I am using. For example :

 http://www.domain.com/ghb/estabtype?=GH;jessionid=Gkhjfjfhgjg?type=MX

 The jessionid code suddenly started appearing in the generated HTML URL
 links about 1 week ago ( again, I stress absolutely nothing has changed in
 tomcat's configuration ) and as such, has been causing 404 errors when you
 click on the link.

 The qustion id, why is the jsessionid suddenly appearing in the
 HTML links?
 and how do I configure tomcat ( or whatever ) to stop doing this?

 Thanks in advance

 Regards, Mark



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


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





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


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




RE: jsessionid suddenly appearing in the HTML links

2002-05-13 Thread Mark Williams

Hi,

Thanks for your reply. I looked for the tag and there isn't one, what I did
find was this :

!-- Request processing --
!-- Session interceptor will extract the session id from cookies
and
 deal with URL rewriting ( by fixing the URL ).  If you wish to
 suppress the use of cookies for session identifiers, change the
 noCookies attribute to true
  --
RequestInterceptor
className=org.apache.tomcat.request.SessionInterceptor
noCookies=false /

So, changing the NoCookies value to true would fix my problem? Sorry, I'm
not at all used to tomcat

 -Original Message-
 From: Galbraith, Paul [mailto:[EMAIL PROTECTED]]
 Sent: 13 May 2002 16:20
 To: Tomcat Users List
 Subject: RE: jsessionid suddenly appearing in the HTML links


 What does the SessionId / tag look like in your server.xml file?

 -Original Message-
 From: Mark Williams [mailto:[EMAIL PROTECTED]]
 Sent: May 13, 2002 11:22 AM
 To: Tomcat Users List
 Subject: RE: jsessionid suddenly appearing in the HTML links


 No, i've checked on multiple browsers  with cookies turned on. THe problem
 still exists. Sorry I didn't mentio this in my original post, I forgot.

  -Original Message-
  From: Galbraith, Paul [mailto:[EMAIL PROTECTED]]
  Sent: 13 May 2002 16:13
  To: Tomcat Users List
  Subject: RE: jsessionid suddenly appearing in the HTML links
 
 
  It sounds like you've got cookies turned off in your browser.  Is
  it possible that your browser configuration has changed recently?
 
  -Original Message-
  From: Mark Williams [mailto:[EMAIL PROTECTED]]
  Sent: May 13, 2002 11:02 AM
  To: [EMAIL PROTECTED]
  Subject: jsessionid suddenly appearing in the HTML links
 
 
  Hi all,
 
  Apache : 1.3.x
  Tomcat : 3.x
 
  I am having a problem in that suddently, for some reason( no
 changes have
  been made to eith my apache or tomcat configuarion for the past 9
  months ) ,
  Tomcat's session id ( jsessionid ) is getting included in the
  HTML URLs that
  are generated from the JSP code I am using. For example :
 
  http://www.domain.com/ghb/estabtype?=GH;jessionid=Gkhjfjfhgjg?type=MX
 
  The jessionid code suddenly started appearing in the generated HTML URL
  links about 1 week ago ( again, I stress absolutely nothing has
 changed in
  tomcat's configuration ) and as such, has been causing 404
 errors when you
  click on the link.
 
  The qustion id, why is the jsessionid suddenly appearing in the
  HTML links?
  and how do I configure tomcat ( or whatever ) to stop doing this?
 
  Thanks in advance
 
  Regards, Mark
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 



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


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




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




RE: jsessionid suddenly appearing in the HTML links

2002-05-13 Thread Galbraith, Paul

No you should leave noCookies=false, the double negative implying that cookies may 
be used, which is what you want.

Are you using Tomcat 3.2?  I use 3.3, and it looks like the configuration syntax is a 
little different.  Anyways, since you haven't touched the server.xml file, I'd be 
inclined to agree with you that the problem is elsewhere.

Can you give a sample of the JSP code that is actually generating the problem URL?

Paul

-Original Message-
From: Mark Williams [mailto:[EMAIL PROTECTED]]
Sent: May 13, 2002 11:37 AM
To: Tomcat Users List
Subject: RE: jsessionid suddenly appearing in the HTML links


Hi,

Thanks for your reply. I looked for the tag and there isn't one, what I did
find was this :

!-- Request processing --
!-- Session interceptor will extract the session id from cookies
and
 deal with URL rewriting ( by fixing the URL ).  If you wish to
 suppress the use of cookies for session identifiers, change the
 noCookies attribute to true
  --
RequestInterceptor
className=org.apache.tomcat.request.SessionInterceptor
noCookies=false /

So, changing the NoCookies value to true would fix my problem? Sorry, I'm
not at all used to tomcat

 -Original Message-
 From: Galbraith, Paul [mailto:[EMAIL PROTECTED]]
 Sent: 13 May 2002 16:20
 To: Tomcat Users List
 Subject: RE: jsessionid suddenly appearing in the HTML links


 What does the SessionId / tag look like in your server.xml file?

 -Original Message-
 From: Mark Williams [mailto:[EMAIL PROTECTED]]
 Sent: May 13, 2002 11:22 AM
 To: Tomcat Users List
 Subject: RE: jsessionid suddenly appearing in the HTML links


 No, i've checked on multiple browsers  with cookies turned on. THe problem
 still exists. Sorry I didn't mentio this in my original post, I forgot.

  -Original Message-
  From: Galbraith, Paul [mailto:[EMAIL PROTECTED]]
  Sent: 13 May 2002 16:13
  To: Tomcat Users List
  Subject: RE: jsessionid suddenly appearing in the HTML links
 
 
  It sounds like you've got cookies turned off in your browser.  Is
  it possible that your browser configuration has changed recently?
 
  -Original Message-
  From: Mark Williams [mailto:[EMAIL PROTECTED]]
  Sent: May 13, 2002 11:02 AM
  To: [EMAIL PROTECTED]
  Subject: jsessionid suddenly appearing in the HTML links
 
 
  Hi all,
 
  Apache : 1.3.x
  Tomcat : 3.x
 
  I am having a problem in that suddently, for some reason( no
 changes have
  been made to eith my apache or tomcat configuarion for the past 9
  months ) ,
  Tomcat's session id ( jsessionid ) is getting included in the
  HTML URLs that
  are generated from the JSP code I am using. For example :
 
  http://www.domain.com/ghb/estabtype?=GH;jessionid=Gkhjfjfhgjg?type=MX
 
  The jessionid code suddenly started appearing in the generated HTML URL
  links about 1 week ago ( again, I stress absolutely nothing has
 changed in
  tomcat's configuration ) and as such, has been causing 404
 errors when you
  click on the link.
 
  The qustion id, why is the jsessionid suddenly appearing in the
  HTML links?
  and how do I configure tomcat ( or whatever ) to stop doing this?
 
  Thanks in advance
 
  Regards, Mark
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 



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


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




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


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




RE: jsessionid suddenly appearing in the HTML links

2002-05-13 Thread Mark Williams

Hi,

I'm using Tomcat 3.2.1 the offending JSP file is copied below ( note: I am
using mod_jserv rather then mod_jk as I could not get mod_jk to compile,
should I re-try to compile mod_jk? ) :

%@ page language=java
errorPage=Error.jsp
import=java.util.*
%

jsp:useBean id=SearchUnit scope=session
class=com.tmt.goHolidayBreaks.business.SearchUnit /
jsp:setProperty name=SearchUnit property=search param=Search /
jsp:setProperty name=SearchUnit property=region param=Region /
jsp:useBean id=SessionManager scope=session
class=com.tmt.goHolidayBreaks.database.SessionManager /


%@ include file=mainHeader.htm %
%

Vector res = new Vector();
String type = ;
boolean doneSearch = false;
type = request.getParameter(type);

if(!SearchUnit.getRegion().equals()) {
  res = SearchUnit.getUnitsByRegion(type);
  doneSearch = true;
}
if(!SearchUnit.getSearch().equals()) {
  SearchUnit.setCriteria(SearchUnit.getSearch());
  res = SearchUnit.getUnitsByKeyWord(type);
}

%
TD vAlign=top width=436 background=index_files/netscape.gif
  DIV align=center
  TABLE cellSpacing=0 cellPadding=0 width=414
background=index_files/netscape.gif border=0
TR
  TD vAlign=left width=68 bgColor=#a8a7c0FONT face=Verdana
color=#ff size=1Bnbsp;Results/B/FONT/TD
  TD vAlign=left width=346 bgColor=#ffIMG
src=index_files/corner.gif border=0/TD
/TR
TR
  TD width=412 background=index_files/menuline.gif colSpan=2IMG
src=index_files/menuline.gif border=0/TD/TR
/TABLE
TABLE cellSpacing=0 cellPadding=0 width=414
background=index_files/netscape.gif border=0
TR
  TD width=412 colSpan=2nbsp;/TD/TR
TR
  TD width=414 colSpan=2FONT face=Verdana size=2Selection
results.BR/FONTP
nbsp;a href=%=response.encodeURL(UnitSearch.jsp?type=H) 
% img
src=hotel.gif border=0a
href=%=response.encodeURL(UnitSearch.jsp?type=GH) % img
src=guesthouse.gif border=0a
href=%=response.encodeURL(UnitSearch.jsp?type=BB) % img src=bb.gif
border=0a href=%=response.encodeURL(UnitSearch.jsp?type=CS) % img
src=camping.gif border=0a
href=%=response.encodeURL(UnitSearch.jsp?type=CP) % img
src=cpark.gif border=0
  /TD


  TRtdTABLE cellSpacing=0 cellPadding=0 width=414 border=0


tr
  td width=100%
div align=left

  table border=1 width=100% bordercolor=#C0C0C0
cellspacing=1

% // Dynamic content goes here

for(int i=0; ires.size(); i++) {
com.tmt.goHolidayBreaks.business.UnitSummary u =
(com.tmt.goHolidayBreaks.business.UnitSummary)res.elementAt(i);
String name = u.getUnit().getName();
String address = u.getAddress();
String picture=;
try {
picture = u.getUnit().getDescriptor().getPicture1();
} catch (Exception e) {}
String description = u.getUnit().getDescription();
String features=;
try {
features = 
u.getUnitFacilityExpanded().getFacilityText();
} catch (Exception e) {}
%
tr
  td width=100% bgcolor=#F0800F colspan=2font
face=Verdana color=#FFb%=name%,br
/bfont size=1%= address %/font/font/td
/tr
tr
  td width=83%img border=0 src=%= picture %
align=left
  font size=1 face=Verdana%= description %/fontbr
  font face=Verdana size=1Features: %= features 
%/font/td
  td width=17%
p align=center
IMG name=www src=www.gif 
width=72 height=31 border=0
usemap=#www%=u.getUnit().getId().toString()%
map 
name=www%=u.getUnit().getId().toString()%
area shape=rect coords=0,0,72,31 
href=http://%=
u.getUnit().getDomain() % 
/map
br
%
if(u.hasPostCode()) {
%
img name=viewmap
src=viewmap.gif width=72 height=31 border=0
usemap=#vm%=u.getUnit().getId().toString()%
map 
name=vm%=u.getUnit().getId().toString()%
area shape=rect
coords=0,0,72,31
href=javascript:map_window('http://www.streetmap.co.uk/streetmap.dll?Postco
de2Map?code=%=u.getPostCode()%', 'map',

Server-wide TR.properties

2002-05-13 Thread Matthew Stone

Greetings.

Someone in the turbine-users list suggested I post this message here:

Could someone please explain to me the correct way to configure Tomcat to
use several Turbine web-app's that are shared between each other.

For example, I have web-app's A, B  C.

A - contains velocity stuff and a Turbine service I created
B - contains another Turbine service I created
C - contains legacy jsp pages and acts as front end to A  B

I know it looks like I've answer my own questions below but please read it
all the way through if you are looking to help me because I think my answers
will help shed light on my confusion.

Here are my specific questions:

1. Where should the Turbine related JAR's be stored in the Tomcat directory
structure?  In \tomcat\lib or each respective \webapp\web-inf\lib directory?
I believe it should be the former for 2 reasons.  First it's cleaner than
having the JAR's duplicated.  Second and most important because the runtime
will create multiple instances of the TurbineServices singleton thus not
allowing web-app C to locate the services in A  B.

2. Should the services I've created in web-app's A  B be moved out of the
web-app into a shared location in the Tomcat directory?  Again I believe the
answer is yes because web-app C needs to be able to resolve the class names
for the services in A  B.

3. Finally the question I don't have the answer for.  If my answers are
correct for questions 1  2, how do I configure Tomcat to only use 1
TurbineResources.properties file.  For example, could I drop it into the
tomcat\conf directory and have it init all my services from there?  If so,
what XML file do I change and what should I put in it?  Right now web-app's
A  B each have their own unique TR.Prop files in their respective
\web-inf\conf directories and all of the settings are the same.  Then at the
end of the TR.prop file I use include=A.properties to specify specific
variables for service A and I also do the same thing for web-app B changing
the include=B.properties accordingly.  The bottom line is there a more
elegant way to do this?

Please let me know if you need more information.

Thanks in advance!

Regards,
Matt


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




RE: jsessionid suddenly appearing in the HTML links

2002-05-13 Thread Todd Kaplinger

This would append jsessionid..
response.encodeURL(UnitSearch.jsp?type=CS)
depending upon what other settings (ie url-rewriting enabled).



From: Mark Williams [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: jsessionid suddenly appearing in the HTML links
Date: Mon, 13 May 2002 17:06:07 +0100

Hi,

I'm using Tomcat 3.2.1 the offending JSP file is copied below ( note: I 
am
using mod_jserv rather then mod_jk as I could not get mod_jk to compile,
should I re-try to compile mod_jk? ) :

%@ page language=java
errorPage=Error.jsp
import=java.util.*
%

jsp:useBean id=SearchUnit scope=session
class=com.tmt.goHolidayBreaks.business.SearchUnit /
jsp:setProperty name=SearchUnit property=search param=Search /
jsp:setProperty name=SearchUnit property=region param=Region /
jsp:useBean id=SessionManager scope=session
class=com.tmt.goHolidayBreaks.database.SessionManager /


%@ include file=mainHeader.htm %
%

   Vector res = new Vector();
   String type = ;
   boolean doneSearch = false;
   type = request.getParameter(type);

   if(!SearchUnit.getRegion().equals()) {
 res = SearchUnit.getUnitsByRegion(type);
 doneSearch = true;
   }
   if(!SearchUnit.getSearch().equals()) {
 SearchUnit.setCriteria(SearchUnit.getSearch());
 res = SearchUnit.getUnitsByKeyWord(type);
   }

%
 TD vAlign=top width=436 background=index_files/netscape.gif
   DIV align=center
   TABLE cellSpacing=0 cellPadding=0 width=414
background=index_files/netscape.gif border=0
 TR
   TD vAlign=left width=68 bgColor=#a8a7c0FONT face=Verdana
 color=#ff size=1Bnbsp;Results/B/FONT/TD
   TD vAlign=left width=346 bgColor=#ffIMG
 src=index_files/corner.gif border=0/TD
   /TR
 TR
 TD width=412 background=index_files/menuline.gif colSpan=2IMG
 src=index_files/menuline.gif border=0/TD/TR
   /TABLE
   TABLE cellSpacing=0 cellPadding=0 width=414
background=index_files/netscape.gif border=0
 TR
 TD width=412 colSpan=2nbsp;/TD/TR
 TR
   TD width=414 colSpan=2FONT face=Verdana size=2Selection
results.BR/FONTP
   nbsp;a href=%=response.encodeURL(UnitSearch.jsp?type=H) 
% img
src=hotel.gif border=0a
href=%=response.encodeURL(UnitSearch.jsp?type=GH) % img
src=guesthouse.gif border=0a
href=%=response.encodeURL(UnitSearch.jsp?type=BB) % img src=bb.gif
border=0a href=%=response.encodeURL(UnitSearch.jsp?type=CS) % img
src=camping.gif border=0a
href=%=response.encodeURL(UnitSearch.jsp?type=CP) % img
src=cpark.gif border=0
 /TD


   TRtdTABLE cellSpacing=0 cellPadding=0 width=414 border=0


 tr
   td width=100%
 div align=left

   table border=1 width=100% bordercolor=#C0C0C0
cellspacing=1

% // Dynamic content goes here

   for(int i=0; ires.size(); i++) {
   com.tmt.goHolidayBreaks.business.UnitSummary u =
(com.tmt.goHolidayBreaks.business.UnitSummary)res.elementAt(i);
   String name = u.getUnit().getName();
   String address = u.getAddress();
   String picture=;
   try {
   picture = u.getUnit().getDescriptor().getPicture1();
   } catch (Exception e) {}
   String description = u.getUnit().getDescription();
   String features=;
   try {
   features = 
u.getUnitFacilityExpanded().getFacilityText();
   } catch (Exception e) {}
%
 tr
   td width=100% bgcolor=#F0800F colspan=2font
face=Verdana color=#FFb%=name%,br
 /bfont size=1%= address %/font/font/td
 /tr
 tr
   td width=83%img border=0 src=%= picture %
align=left
 font size=1 face=Verdana%= description %/fontbr
 font face=Verdana size=1Features: %= features 
%/font/td
   td width=17%
 p align=center
   IMG name=www src=www.gif 
width=72 height=31 border=0
usemap=#www%=u.getUnit().getId().toString()%
   map 
name=www%=u.getUnit().getId().toString()%
   area shape=rect coords=0,0,72,31 
href=http://%=
u.getUnit().getDomain() % 
   /map
   br
%
   if(u.hasPostCode()) {
%
   img name=viewmap
src=viewmap.gif width=72 height=31 border=0

RE: tomcat doesn't find http://java.sun.com/dtd/web-app_2_3.dtd

2002-05-13 Thread Jay Gardner

Post the web.xml file.

--JG

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 8:21 AM
To: [EMAIL PROTECTED]
Subject: tomcat doesn't find http://java.sun.com/dtd/web-app_2_3.dtd

Hi,
I've created a new context for my apps. All works fine but when I add a
web.xml file in my /WEB-INF, Tomcat write an XmMapper Error (appears when I
launch Tomcat).
What the pb???
Thanks
Jc


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


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




Problems with mod_webapp and session handling

2002-05-13 Thread Rajani Sadasivam

Here is my problem

To keep track of the session when I redirect from http to https, I am
setting cookie = false and encoding the redirect URL using
response.encodeRedirectURL(myurl);

Everything works fine.

But when I add mod_webapp to this, there are problems. I figured out a
cookie is set when mod_webapp forward request to tomcat. How do I prevent
this. Or is there are other workaround. Please help.

regards
Rajani






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




mod_jk and Apache 2.0

2002-05-13 Thread bm

Hi all

It appears that there is some problem with mod_jk and Apache 2.0. When I
access a Tomcat page using Netscape 4.x, part of the page displays, the
browser hangs,
and eventually displays Document done without showing the entire page.
When I use Netscape 6.0 or IE, however, I don't have this problems.


This is all happening in windows2000 environment.

Please help me if someone has resolved this.

Thanks in advance
BM


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




App Reload problems: java.lang.NoClassDefFoundError

2002-05-13 Thread Jeff Larsen

Tomcat 4.0.3 on Sun Solaris 7.

Most of the time, the manager app successfully reloads
my application. But sometimes when I make changes to a
class that is packaged in a jar file in WEB-INF/lib, the
reload fails with a java.lang.NoClassDefFoundError for
some of the classes in that WEB-INF/lib jar file. I know that
the classes are present and functional, because if I bounce
tomcat everything loads just fine. 

What's the spec on reloading of classes in WEB-INF/lib? 

For the record, the class that is changed, is NOT one that may
be stored as a user session attribute. Even so, what will Tomcat
do if it is asked to reload a changed class when existing instances
of that class exist as session attributes?

Jeff



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




simple ContextManager question

2002-05-13 Thread Duane Gran

Tomcat users,

I'm running Tomcat 3.3 with multiple virtual hosts and using the handy 
feature where Tomcat reads the $TOMCAT_HOME/conf/apps-user.xml files for 
each web app.  Things are working well, but I believe all the web 
applications are being mapped to the /ROOT webapp, which isn't what I 
want.  I copied over the examples directory to each user's area so they 
would have their own playground so to speak.

My reason for thinking this is because of the following output when 
starting Tomcat:

2002-05-13 12:23:16 - ContextManager: Adding  dezrtfox.spinweb.net:/ROOT
2002-05-13 12:23:16 - ContextManager: Adding  nickmain.spinweb.net:/ROOT
2002-05-13 12:23:16 - ContextManager: Adding  cogsense.spinweb.net:/ROOT
2002-05-13 12:23:16 - ContextManager: Adding  mudgecko.spinweb.net:/ROOT
2002-05-13 12:23:16 - ContextManager: Adding  jpinto.spinweb.net:/ROOT

I've looked at the docs, but haven't found the source of my error.  If 
things work correctly I should expect to see files generated from JSP 
processing in the $TOMCAT_HOME/work/DOMAIN directory, but I don't.  This 
leads me to think that Tomcat isn't mapping the context correctly to the 
directory I've specified.  Just for kicks, here is one of my webapp 
config files:

?xml version=1.0 encoding=ISO-8859-1?
webapps
!-- Begin account nickmain --
 Host name=nickmain.spinweb.net
  Context path=
docBase=/usr/local/apache/sites/anotherbigidea.com/htdocs
debug=1
reloadable=true
  /Context
 Aliasanotherbigidea.com/Alias
 /Host
!-- End account nickmain --
/webapps

Can someone enlighten me on this?  I would be very appreciative and I'll 
be glad to furnish more details.

Duane


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




RE: simple ContextManager question

2002-05-13 Thread Larry Isaacs

I don't think there is an error.  path= has a special meaning,
i.e. this is the default context.  When a request fails
to match any other context, the request is sent to the default
context.

Internally, the default context is assigned the name ROOT.
That name is displayed in the startup messages you see and is
used in other ways, such as the work directory name for the
context.  Consistent with this, auto-deployment of a web application
named ROOT implies it should be the default context, and not served as
/ROOT.

Cheers,
Larry

 -Original Message-
 From: Duane Gran [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, May 13, 2002 1:41 PM
 To: [EMAIL PROTECTED]
 Subject: simple ContextManager question
 
 
 Tomcat users,
 
 I'm running Tomcat 3.3 with multiple virtual hosts and using 
 the handy 
 feature where Tomcat reads the 
 $TOMCAT_HOME/conf/apps-user.xml files for 
 each web app.  Things are working well, but I believe all the web 
 applications are being mapped to the /ROOT webapp, which isn't what I 
 want.  I copied over the examples directory to each user's 
 area so they 
 would have their own playground so to speak.
 
 My reason for thinking this is because of the following output when 
 starting Tomcat:
 
 2002-05-13 12:23:16 - ContextManager: Adding  
 dezrtfox.spinweb.net:/ROOT
 2002-05-13 12:23:16 - ContextManager: Adding  
 nickmain.spinweb.net:/ROOT
 2002-05-13 12:23:16 - ContextManager: Adding  
 cogsense.spinweb.net:/ROOT
 2002-05-13 12:23:16 - ContextManager: Adding  
 mudgecko.spinweb.net:/ROOT
 2002-05-13 12:23:16 - ContextManager: Adding  jpinto.spinweb.net:/ROOT
 
 I've looked at the docs, but haven't found the source of my 
 error.  If 
 things work correctly I should expect to see files generated from JSP 
 processing in the $TOMCAT_HOME/work/DOMAIN directory, but I 
 don't.  This 
 leads me to think that Tomcat isn't mapping the context 
 correctly to the 
 directory I've specified.  Just for kicks, here is one of my webapp 
 config files:
 
 ?xml version=1.0 encoding=ISO-8859-1?
 webapps
 !-- Begin account nickmain --
  Host name=nickmain.spinweb.net
   Context path=
 
 docBase=/usr/local/apache/sites/anotherbigidea.com/htdocs
 debug=1
 reloadable=true
   /Context
  Aliasanotherbigidea.com/Alias
  /Host
 !-- End account nickmain --
 /webapps
 
 Can someone enlighten me on this?  I would be very 
 appreciative and I'll 
 be glad to furnish more details.
 
 Duane
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 

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




Re: simple ContextManager question

2002-05-13 Thread Duane Gran

Larry,

Thanks for the additional information.  Upon further reflection, I 
notice that all JSPs are compiled into the following directory:

   $TOMCAT_HOME/work/DEFAULT/examples/jsp

The problem is that requests to domain1.com/examples/ and 
domain2.com/examples/ are treated the same, and I would like Tomcat to 
use the work directories for each domain, not the DEFAULT.  Recall, the 
purpose is to have a playground where users on the system can fiddle 
with the examples directory to learn and explore.

I had this working with Tomcat 3.2, but I don't see the configuration 
analog between the two systems.  Maybe a better way of phrasing my 
question would be, how do I make sure the /examples is treated on a 
per-host basis, not system-wide through the default?

Again, the help and input is very appreciated.

Duane

On Monday, May 13, 2002, at 02:03 PM, Larry Isaacs wrote:

 I don't think there is an error.  path= has a special meaning,
 i.e. this is the default context.  When a request fails
 to match any other context, the request is sent to the default
 context.

 Internally, the default context is assigned the name ROOT.
 That name is displayed in the startup messages you see and is
 used in other ways, such as the work directory name for the
 context.  Consistent with this, auto-deployment of a web application
 named ROOT implies it should be the default context, and not served as
 /ROOT.

 Cheers,
 Larry

 -Original Message-
 From: Duane Gran [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 1:41 PM
 To: [EMAIL PROTECTED]
 Subject: simple ContextManager question


 Tomcat users,

 I'm running Tomcat 3.3 with multiple virtual hosts and using
 the handy
 feature where Tomcat reads the
 $TOMCAT_HOME/conf/apps-user.xml files for
 each web app.  Things are working well, but I believe all the web
 applications are being mapped to the /ROOT webapp, which isn't what I
 want.  I copied over the examples directory to each user's
 area so they
 would have their own playground so to speak.

 My reason for thinking this is because of the following output when
 starting Tomcat:

 2002-05-13 12:23:16 - ContextManager: Adding
 dezrtfox.spinweb.net:/ROOT
 2002-05-13 12:23:16 - ContextManager: Adding
 nickmain.spinweb.net:/ROOT
 2002-05-13 12:23:16 - ContextManager: Adding
 cogsense.spinweb.net:/ROOT
 2002-05-13 12:23:16 - ContextManager: Adding
 mudgecko.spinweb.net:/ROOT
 2002-05-13 12:23:16 - ContextManager: Adding  jpinto.spinweb.net:/ROOT

 I've looked at the docs, but haven't found the source of my
 error.  If
 things work correctly I should expect to see files generated from JSP
 processing in the $TOMCAT_HOME/work/DOMAIN directory, but I
 don't.  This
 leads me to think that Tomcat isn't mapping the context
 correctly to the
 directory I've specified.  Just for kicks, here is one of my webapp
 config files:

 ?xml version=1.0 encoding=ISO-8859-1?
 webapps
 !-- Begin account nickmain --
  Host name=nickmain.spinweb.net
   Context path=

 docBase=/usr/local/apache/sites/anotherbigidea.com/htdocs
 debug=1
 reloadable=true
   /Context
  Aliasanotherbigidea.com/Alias
  /Host
 !-- End account nickmain --
 /webapps

 Can someone enlighten me on this?  I would be very
 appreciative and I'll
 be glad to furnish more details.

 Duane


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


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


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




RE: Applet-servlet communication problem with Tomcat 4.0.3

2002-05-13 Thread KAKARONTZAS GEORGE

Many thanks.
-George

-Original Message-
From: Douglas, Rory [mailto:[EMAIL PROTECTED]] 
Sent: Monday, May 13, 2002 3:56 PM
To: 'Tomcat Users List'
Subject: RE: Applet-servlet communication problem with Tomcat 4.0.3

This looks like something to do with your CATALINA_HOME directory. I had
problems installing to Program Files/Apache Tomcat, because of the space
in
Program Files. You could try moving/re-installing your tomcat to
somewhere
else without spaces in the pathname - like c:\dev\tomcat4.0.3 or
something.


-Original Message-
From: KAKARONTZAS GEORGE [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 7:27 AM
To: [EMAIL PROTECTED]
Subject: Applet-servlet communication problem with Tomcat 4.0.3


I'm having an Applet oppening a URLConnection with a servlet and sending
an object.
Here's the Applet side of the communication:
 
//This is the method initiating the connection
public void available(SellOrder o) throws Exception
{
URL servlet = new URL(http, localhost, 8080,
/servlet/AvailableServlet);
Serializable objs[] = { o };
ObjectInputStream in = ServletWriter.postObjects(servlet,
objs);
String status = (String) in.readObject();
in.close();
}

public class ServletWriter {
 
static public ObjectInputStream postObjects(URL servlet,
Serializable objs[]) throws Exception
{
URLConnection con = servlet.openConnection();
con.setDoInput(true);
con.setDoOutput(true);
con.setDefaultUseCaches(false);
con.setUseCaches(false);
con.setRequestProperty(Content-Type,
application/x-www-form-urlencoded);
 
// Write the arguments as post data
ObjectOutputStream out = new
ObjectOutputStream(con.getOutputStream());
int numObjects = objs.length;
for (int x = 0; x  numObjects; x++) {
out.writeObject(objs[x]);
}
 
out.flush();
out.close();
 
return new ObjectInputStream(
con.getInputStream() );
}
 
}
 
On the server side of the communication I have the AvailableServlet with
the following code:
 
public class AvailableServlet extends HostServlet {
 
public void doPost(HttpServletRequest req,
HttpServletResponse res)
throws ServletException, IOException
{
System.out.println(Available is called.);
ObjectInputStream in=
new
ObjectInputStream(req.getInputStream());
ObjectOutputStream out=
new
ObjectOutputStream(res.getOutputStream());
try {
 //read the host order
 SellOrder o = (SellOrder)
in.readObject();
 _server.available(o);
out.writeObject(OK);
in.close();
out.close();
}

catch (Exception ex) {
System.out.println(ex.getMessage());
}

}   
}
 
This communication works fine when running with Tomcat 3.2.1 (Windows XP
Pro - standalone). But it throws the following exception on the server
when running on Tomcat 4.0.3 (same platform standalone or service):

Available is called.
RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments;
nested excep
tion is:
java.net.MalformedURLException: no protocol: Files/Apache

As you can see from the output the doPost() method is called.  The
exception is thrown when the doPost() method executes the readObject()
method on the stream.
 
Any help would be greately appreciated.
Thanks
-George
 



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




Apache/Tomcat meet Visa

2002-05-13 Thread Drew Sudell

Brian Tol writes:
  Not sure if this is a user or developer question, but I thought I'd
  start here:
  
  Does anybody know if an Apache/Tomcat combination connected through
  ajpv13 meetings VISA's security requirements?
  
  http://usa.visa.com/media/business/cisp8_pd.pdf
  
  In particular, the bottom half of page 12 refers to Network encryption
  (VPN) may be used betweeen any merchant system and any back-end
  database and on page 14: When transmitting data across networks,
  always use encryption techniques...
  
  If I'm reading this correctly, it sound like traffic between Apache and
  Tomcat need to be encrypted. 
  
  I know that ajpv13 can detect SSL requests, but is there any support for
  encrypting traffic between the two systems? Or am I just reading this
  wrong?
  

I don't work for a merchant, and while I've familiar with CISP, I've
not been involved with an audit.  However, I'll make a few
observations ...

CISP is a voluntary program directed at high volume merchants that
recommends best practices and provides a format a largely
self-administered audit.  Requirements may be too strong word to use
in this case.  (ie, I doubt you'd loose merchant status over use of
ajp13 in any case). There is a lot of ground for interpretation on
things like this, and the spirit of the recommendation seems more
directed at truly bonehead things like running a merchant site at a
co-location facility and connecting it to your in-house order entry
system via an exposed channel.  The use of the term VPN in
requirement 1 implies that tunneling ajp13 traffic over a an encrypted 
link or an otherwise secure network would be sufficient. If you are a 
merchant or working for one, feel free to contact your acquiring bank 
or processor.  They'd likely be able to tell you what others are doing
and what's generally held to be acceptable.  I'd be happy to discuss
some of the security issues offline.  It's kind of off topic to
tomcat, so mail me direct.

Having said all that, the security of sensitive data between a web
server and tomcat is a genuine issue.  Requiring SSL from the outside
protects against external attacks on the datastream, but since the
decryption happens at the web server, but leaves you open to local
attacks. [Envision the disgruntled sysadm giving himself a pay raise
via snarfing packets].  As far as I can tell, there's no encryption
support in ajp1x nor in warp.  [Someone please correct me if I'm
wrong.  I'm asserting this opinion based on a fairly quick look at the 
code.] Of course, you could avoid the problem completely by either
running tomcat standalone or inside the web server via JNI, but both
are likely to raise other issues on a high volume merchant.

Adding support for encryption to the channel is likely to raise issues 
beyond the mere matter of programming.  For example, there's key
management.  You don't want things to be impossible to start, yet
anyone who can snarf packets on the local lan can likely read any
config file that contains a master key.

-- 
Drew Sudell [EMAIL PROTECTED]  http://www.op.net/~asudell

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




problems shutting down tomcat on HP-UX 11

2002-05-13 Thread Christian, Andrew P (Andrew)

I am running Tomcat 4.0.3 on HP-UX 11 with HP's 1.3 JDK.  I am running with all the 
default server.xml settings.

Tomcat seems to start up and run fine.  I can access all the JSP and Servlet examples 
fine.  However, when I run shutdown.sh, tomcat never shuts down.  The Catalina.out log 
file indicates that tomcat is shutting down and the Catalina_log shows:

2002-05-13 12:28:50 HttpProcessor[8080][4] Stopping background thread
2002-05-13 12:28:50 HttpProcessor[8080][3] Stopping background thread
2002-05-13 12:28:50 HttpProcessor[8080][2] Stopping background thread
2002-05-13 12:28:50 HttpProcessor[8080][1] Stopping background thread
2002-05-13 12:28:50 HttpProcessor[8080][0] Stopping background thread

Yet the java process never shuts down.  Using netstat, I can see that port 8080 is 
still in a listening state. 

Any help would be greatly appreciated


Andy Christian
Avaya Inc.
732-271-2399




RE: problems shutting down tomcat on HP-UX 11

2002-05-13 Thread Emilio Miranda

are you using connections to a DB? I have a similar problem becuse I use a
pool of connections and the connections died, then when I tried to shutdown
the tomcat had the similar problem I used kill-9, after that I worked on the
connection pool. check that, It could help you.

-Mensaje original-
De: Christian, Andrew P (Andrew) [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 13 de mayo de 2002 13:39
Para: [EMAIL PROTECTED]
Asunto: problems shutting down tomcat on HP-UX 11


I am running Tomcat 4.0.3 on HP-UX 11 with HP's 1.3 JDK.  I am running with
all the default server.xml settings.

Tomcat seems to start up and run fine.  I can access all the JSP and Servlet
examples fine.  However, when I run shutdown.sh, tomcat never shuts down.
The Catalina.out log file indicates that tomcat is shutting down and the
Catalina_log shows:

2002-05-13 12:28:50 HttpProcessor[8080][4] Stopping background thread
2002-05-13 12:28:50 HttpProcessor[8080][3] Stopping background thread
2002-05-13 12:28:50 HttpProcessor[8080][2] Stopping background thread
2002-05-13 12:28:50 HttpProcessor[8080][1] Stopping background thread
2002-05-13 12:28:50 HttpProcessor[8080][0] Stopping background thread

Yet the java process never shuts down.  Using netstat, I can see that port
8080 is still in a listening state.

Any help would be greatly appreciated


Andy Christian
Avaya Inc.
732-271-2399



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




tunneling https through http

2002-05-13 Thread Rich Catlett

I'm trying to tunnel https through a proxy using the CONNECT method. 
tomcat 4.1-dev is running with a connector expection an https connection
on port 445.  The proxy returns a 200 to the client which then attempts
to create the tunneled connection and do a handshake.  The error I get
is unrecognized ssl handshake, which as far as I can tell is an attempt
at an https connection via an http link.  My question is has anybody
else done this or even can the tomcat connectors do this?  I am fairly
certain that everything on the client side is correct.

Rich Catlett



off-topic: sun website broken?

2002-05-13 Thread Milind Nirgun

This post is not directly tomcat related but since most people on the list 
would be frequent browsers of the java website, I thought I would take a 
chance. 
Is the java and Sun website broken? I am getting a lot of broken links all 
over. Around the same time, Sun upgraded its website, I upgraded my linux and 
have been configuring the netfilters to get it right, so I am not sure 
whether it me or them.

Sorry for posting this question here, but appreciate all responses.
Thanks
Milind

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




RE: JVM Bind error

2002-05-13 Thread Whitcomb, Roger

The JVM Bind means that a socket that the old class was bound to is still open and the 
new version of the class is trying to open a socket on the same port and can't.  Is 
there a TCP/IP listener in your class??  You might need to put a means of shutdown 
into the class so it will cleanly close any open sockets before you try to reload it.

Roger Whitcomb
Computer Associates
Senior Software Engineer
Development
Phone: +1 408 965 8653
FAX: +1 408 965 8805
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 


-Original Message-
From: kelly, Burrowa [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 12, 2002 10:14 PM
To: Tomcat Users List
Subject: Re: JVM Bind error


 During runtime when I change a class file, tomcat 
 4.0.3 is supposed to reload that class(due to
 reloadable=true in server.xml). But instead, I
 get some JVM Bind error.
 

To be more specific, the error is:

WebappClassLoader:   Resource
'/WEB-INF/classes/TestCC.class' was modified; Date is
now: Mon May 13 10:46:56 IST 2002 Was: Mon May
 13 10:32:40 IST 2002
java.net.BindException: Address in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native
Method)
at
java.net.PlainSocketImpl.bind(PlainSocketImpl.java:452)
at
java.net.ServerSocket.init(ServerSocket.java:170)
at
java.net.ServerSocket.init(ServerSocket.java:82)
at TestServer.startServer(TestServer.java:22)
at TestRun.run(TestRun.java:45)
at java.lang.Thread.run(Thread.java:484)
Cannot start engine: Address in use: JVM_Bind


Any idea about whats going wrong here?

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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

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




encoding for xml representation of jsp page

2002-05-13 Thread van Husen, Thomas

When using a validator for a tag library how can I set the encoding for the
xml file passed to the validator.
I am using tomcat 4.0.1. 
 
Tomcat is passing to the validator:
 
?xml version=1.0 encoding=UTF-8?
 
jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; version=1.2
xmlns:list=list xmlns:form=form xmlns:libra=/WEB-INF/tlds/taglib.tld
xmlns:c=http://java.sun.com/jstl/ea/core-rt;
 . . .
 
which results in something like this while parsing:
 

Validation error messages from tag library c_rt

null: org.xml.sax.SAXParseException: Character conversion error: Malformed
UTF-8 char -- is an XML encoding declaration missing? (line number may be
too low).
 
 



Problem Uploading Image files

2002-05-13 Thread Lawlor, Frank

We have been using the O'Reilly multipart upload code, but
are having problems uploading image (jpg, gif) files.  I have 
tried this on Tomcat 3.3, 4.0.3 and 4.0.425 with same results.

Same results going thru IIS front end and talking 
directly to tomcat on port 8080.

The uploaded file is ALMOST identical to the original,
but all the x8X values are converted to x3F ('?').

Any ideas what may be causing this or how to fix it? 

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.



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




Re: off-topic: sun website broken?

2002-05-13 Thread August Detlefsen

Seems to be working for me. Of course I find the fact that the whole
sun.com site is static html and cgi very disheartening...



--- Milind Nirgun [EMAIL PROTECTED] wrote:
 This post is not directly tomcat related but since most people on the
 list 
 would be frequent browsers of the java website, I thought I would
 take a 
 chance. 
 Is the java and Sun website broken? I am getting a lot of broken
 links all 
 over. Around the same time, Sun upgraded its website, I upgraded my
 linux and 
 have been configuring the netfilters to get it right, so I am not
 sure 
 whether it me or them.
 
 Sorry for posting this question here, but appreciate all responses.
 Thanks
 Milind
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




RE: simple ContextManager question

2002-05-13 Thread Larry Isaacs

Try setting debug=1 on the SimpleMapper1 ... element in your
server.xml.  This will cause a group of lines to appear in the
Tomcat log for each request.  The first of these lines identifies
the host Tomcat thinks the request is for.  Do you see the
different host names here?

Cheers,
Larry


 -Original Message-
 From: Duane Gran [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, May 13, 2002 2:13 PM
 To: Tomcat Users List
 Subject: Re: simple ContextManager question
 
 
 Larry,
 
 Thanks for the additional information.  Upon further reflection, I 
 notice that all JSPs are compiled into the following directory:
 
$TOMCAT_HOME/work/DEFAULT/examples/jsp
 
 The problem is that requests to domain1.com/examples/ and 
 domain2.com/examples/ are treated the same, and I would like 
 Tomcat to 
 use the work directories for each domain, not the DEFAULT.  
 Recall, the 
 purpose is to have a playground where users on the system can fiddle 
 with the examples directory to learn and explore.
 
 I had this working with Tomcat 3.2, but I don't see the configuration 
 analog between the two systems.  Maybe a better way of phrasing my 
 question would be, how do I make sure the /examples is treated on a 
 per-host basis, not system-wide through the default?
 
 Again, the help and input is very appreciated.
 
 Duane
 
 On Monday, May 13, 2002, at 02:03 PM, Larry Isaacs wrote:
 
  I don't think there is an error.  path= has a special meaning,
  i.e. this is the default context.  When a request fails
  to match any other context, the request is sent to the default
  context.
 
  Internally, the default context is assigned the name ROOT.
  That name is displayed in the startup messages you see and is
  used in other ways, such as the work directory name for the
  context.  Consistent with this, auto-deployment of a web application
  named ROOT implies it should be the default context, and 
 not served as
  /ROOT.
 
  Cheers,
  Larry
 
  -Original Message-
  From: Duane Gran [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 13, 2002 1:41 PM
  To: [EMAIL PROTECTED]
  Subject: simple ContextManager question
 
 
  Tomcat users,
 
  I'm running Tomcat 3.3 with multiple virtual hosts and using
  the handy
  feature where Tomcat reads the
  $TOMCAT_HOME/conf/apps-user.xml files for
  each web app.  Things are working well, but I believe all the web
  applications are being mapped to the /ROOT webapp, which 
 isn't what I
  want.  I copied over the examples directory to each user's
  area so they
  would have their own playground so to speak.
 
  My reason for thinking this is because of the following output when
  starting Tomcat:
 
  2002-05-13 12:23:16 - ContextManager: Adding
  dezrtfox.spinweb.net:/ROOT
  2002-05-13 12:23:16 - ContextManager: Adding
  nickmain.spinweb.net:/ROOT
  2002-05-13 12:23:16 - ContextManager: Adding
  cogsense.spinweb.net:/ROOT
  2002-05-13 12:23:16 - ContextManager: Adding
  mudgecko.spinweb.net:/ROOT
  2002-05-13 12:23:16 - ContextManager: Adding  
 jpinto.spinweb.net:/ROOT
 
  I've looked at the docs, but haven't found the source of my
  error.  If
  things work correctly I should expect to see files 
 generated from JSP
  processing in the $TOMCAT_HOME/work/DOMAIN directory, but I
  don't.  This
  leads me to think that Tomcat isn't mapping the context
  correctly to the
  directory I've specified.  Just for kicks, here is one of my webapp
  config files:
 
  ?xml version=1.0 encoding=ISO-8859-1?
  webapps
  !-- Begin account nickmain --
   Host name=nickmain.spinweb.net
Context path=
 
  docBase=/usr/local/apache/sites/anotherbigidea.com/htdocs
  debug=1
  reloadable=true
/Context
   Aliasanotherbigidea.com/Alias
   /Host
  !-- End account nickmain --
  /webapps
 
  Can someone enlighten me on this?  I would be very
  appreciative and I'll
  be glad to furnish more details.
 
  Duane
 
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user- [EMAIL PROTECTED]
  For
  additional commands,
  e-mail: mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe, e-mail:   mailto:tomcat-user-
  [EMAIL PROTECTED]
  For additional commands, e-mail: mailto:tomcat-user-
  [EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 

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




How can I change outgoing email server port number from default to something else?

2002-05-13 Thread Maya Vayner

Hello,

My outgoing smtp server is using non-default port number to get emails through. It is 
not
25, which is by default set by tomcat. I tried to find the answer but it seems that no
one ever had to use other port number but 25. 
Can anyone suggest a solution?

hostname:2525 did not work when I set it to that in the server.xml mail.smtp.host
resource property.

Thank you. 

Maya Vayner

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




requested resource is not available...why?

2002-05-13 Thread Rehan

The firstime (after restarting tomcat) I try to run a particular servlet I
receive the following message:

Apache Tomcat/4.0.3 - HTTP Status 404 - /indago.server.web.GetMenuServlet

type Status report
message /indago.server.web.GetMenuServlet
description The requested resource (/indago.server.web.GetMenuServlet) is
not available.

The other servlets run ok the first time, but this particular one always
causes the above error.

Nonetheless, the second time around this servlet runs.

Confused
Ray


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




Re: simple ContextManager question

2002-05-13 Thread Duane Gran

Larry,

Thanks for the suggestion.  I made this change and made a request to 
nickmain.spinweb.net to snoop.jsp and got the following output:

2002-05-13 14:58:44 - ContextManager: Host = nickmain.spinweb.net
2002-05-13 14:58:44 - ContextManager: SM: Prefix match 
/examples/jsp/snp/snoop.jsp -  null null
2002-05-13 14:58:44 - SimpleMapper1: Default map 
/examples/jsp/snp/snoop.jsp null
2002-05-13 14:58:44 - ContextManager: SM: Extension match  
/examples/jsp/snp/snoop.jsp .jsp
2002-05-13 14:58:44 - SimpleMapper1: SM: Found extension mapping 
ServletH jsp(SW (null CN=jsp))
2002-05-13 14:58:44 - SimpleMapper1: SM: After mapping R(  + 
/examples/jsp/snp/snoop.jsp + null) ServletH jsp(SW (null CN=jsp))
2002-05-13 14:58:44 - SimpleMapper1: SM: exact map 
nickmain.spinweb.net:/examples/jsp/snp/snoop.jsp - Ct 
(/examples/jsp/snp/snoop.jsp ServletH 
TOMCAT/JSP/examples/jsp/snp/snoop.jsp(SW (/examples/jsp/snp/snoop.jsp 
CN=TOMCAT/JSP/examples/jsp/snp/snoop.jsp)) )
2002-05-13 14:58:44 - Ctx() : Compiling: /examples/jsp/snp/snoop.jsp to 
examples.jsp.snp.snoop_0

This looks right, and I tried a few other hosts and I've found a curious 
thing.  Now the compiled class files from JSP requests are showing up in 
the correct work directory.  Before adding the debug line I don't think 
this was happening.

It is working perfectly now.  I'm rather puzzled, but quite relieved.  I 
appreciate your help and input on the problem.

Duane

On Monday, May 13, 2002, at 03:54 PM, Larry Isaacs wrote:

 Try setting debug=1 on the SimpleMapper1 ... element in your
 server.xml.  This will cause a group of lines to appear in the
 Tomcat log for each request.  The first of these lines identifies
 the host Tomcat thinks the request is for.  Do you see the
 different host names here?

 Cheers,
 Larry


 -Original Message-
 From: Duane Gran [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 2:13 PM
 To: Tomcat Users List
 Subject: Re: simple ContextManager question


 Larry,

 Thanks for the additional information.  Upon further reflection, I
 notice that all JSPs are compiled into the following directory:

$TOMCAT_HOME/work/DEFAULT/examples/jsp

 The problem is that requests to domain1.com/examples/ and
 domain2.com/examples/ are treated the same, and I would like
 Tomcat to
 use the work directories for each domain, not the DEFAULT.
 Recall, the
 purpose is to have a playground where users on the system can fiddle
 with the examples directory to learn and explore.

 I had this working with Tomcat 3.2, but I don't see the configuration
 analog between the two systems.  Maybe a better way of phrasing my
 question would be, how do I make sure the /examples is treated on a
 per-host basis, not system-wide through the default?

 Again, the help and input is very appreciated.

 Duane

 On Monday, May 13, 2002, at 02:03 PM, Larry Isaacs wrote:

 I don't think there is an error.  path= has a special meaning,
 i.e. this is the default context.  When a request fails
 to match any other context, the request is sent to the default
 context.

 Internally, the default context is assigned the name ROOT.
 That name is displayed in the startup messages you see and is
 used in other ways, such as the work directory name for the
 context.  Consistent with this, auto-deployment of a web application
 named ROOT implies it should be the default context, and
 not served as
 /ROOT.

 Cheers,
 Larry

 -Original Message-
 From: Duane Gran [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 1:41 PM
 To: [EMAIL PROTECTED]
 Subject: simple ContextManager question


 Tomcat users,

 I'm running Tomcat 3.3 with multiple virtual hosts and using
 the handy
 feature where Tomcat reads the
 $TOMCAT_HOME/conf/apps-user.xml files for
 each web app.  Things are working well, but I believe all the web
 applications are being mapped to the /ROOT webapp, which
 isn't what I
 want.  I copied over the examples directory to each user's
 area so they
 would have their own playground so to speak.

 My reason for thinking this is because of the following output when
 starting Tomcat:

 2002-05-13 12:23:16 - ContextManager: Adding
 dezrtfox.spinweb.net:/ROOT
 2002-05-13 12:23:16 - ContextManager: Adding
 nickmain.spinweb.net:/ROOT
 2002-05-13 12:23:16 - ContextManager: Adding
 cogsense.spinweb.net:/ROOT
 2002-05-13 12:23:16 - ContextManager: Adding
 mudgecko.spinweb.net:/ROOT
 2002-05-13 12:23:16 - ContextManager: Adding
 jpinto.spinweb.net:/ROOT

 I've looked at the docs, but haven't found the source of my
 error.  If
 things work correctly I should expect to see files
 generated from JSP
 processing in the $TOMCAT_HOME/work/DOMAIN directory, but I
 don't.  This
 leads me to think that Tomcat isn't mapping the context
 correctly to the
 directory I've specified.  Just for kicks, here is one of my webapp
 config files:

 ?xml version=1.0 encoding=ISO-8859-1?
 webapps
 !-- Begin account nickmain --
  Host name=nickmain.spinweb.net
   Context 

Re: How can I change outgoing email server port number from default to something else?

2002-05-13 Thread Xinji Gu

Is there a mail.smtp.port as in stand alone JavaMail application?

Jim

- Original Message -
From: Maya Vayner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, May 13, 2002 4:06 PM
Subject: How can I change outgoing email server port number from default to
something else?


 Hello,

 My outgoing smtp server is using non-default port number to get emails
through. It is not
 25, which is by default set by tomcat. I tried to find the answer but it
seems that no
 one ever had to use other port number but 25.
 Can anyone suggest a solution?

 hostname:2525 did not work when I set it to that in the server.xml
mail.smtp.host
 resource property.

 Thank you.

 Maya Vayner

 __
 Do You Yahoo!?
 LAUNCH - Your Yahoo! Music Experience
 http://launch.yahoo.com

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



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




RE: jsessionid suddenly appearing in the HTML links

2002-05-13 Thread Galbraith, Paul

Mark,

I can't think of anything obvious that would be causing the problem.  The code was 
written to work both with and without cookies (though maybe only tested with cookies?).

Have you tried connecting directly to tomcat using port 8080 (if you've left it 
enabled)?  I don't use Apache myself, so I have no experience with either mod_jk or 
mod_jserv, though I think I'd be inclined to get mod_jk working if possible.  There 
have been several messages floating around this list about compiling mod_jk, so if you 
search the archives you may find a solution to your compilation problem.

Paul

-Original Message-
From: Mark Williams [mailto:[EMAIL PROTECTED]]
Sent: May 13, 2002 12:06 PM
To: Tomcat Users List
Subject: RE: jsessionid suddenly appearing in the HTML links


Hi,

I'm using Tomcat 3.2.1 the offending JSP file is copied below ( note: I am
using mod_jserv rather then mod_jk as I could not get mod_jk to compile,
should I re-try to compile mod_jk? ) :

%@ page language=java
errorPage=Error.jsp
import=java.util.*
%

jsp:useBean id=SearchUnit scope=session
class=com.tmt.goHolidayBreaks.business.SearchUnit /
jsp:setProperty name=SearchUnit property=search param=Search /
jsp:setProperty name=SearchUnit property=region param=Region /
jsp:useBean id=SessionManager scope=session
class=com.tmt.goHolidayBreaks.database.SessionManager /


%@ include file=mainHeader.htm %
%

Vector res = new Vector();
String type = ;
boolean doneSearch = false;
type = request.getParameter(type);

if(!SearchUnit.getRegion().equals()) {
  res = SearchUnit.getUnitsByRegion(type);
  doneSearch = true;
}
if(!SearchUnit.getSearch().equals()) {
  SearchUnit.setCriteria(SearchUnit.getSearch());
  res = SearchUnit.getUnitsByKeyWord(type);
}

%
TD vAlign=top width=436 background=index_files/netscape.gif
  DIV align=center
  TABLE cellSpacing=0 cellPadding=0 width=414
background=index_files/netscape.gif border=0
TR
  TD vAlign=left width=68 bgColor=#a8a7c0FONT face=Verdana
color=#ff size=1Bnbsp;Results/B/FONT/TD
  TD vAlign=left width=346 bgColor=#ffIMG
src=index_files/corner.gif border=0/TD
/TR
TR
  TD width=412 background=index_files/menuline.gif colSpan=2IMG
src=index_files/menuline.gif border=0/TD/TR
/TABLE
TABLE cellSpacing=0 cellPadding=0 width=414
background=index_files/netscape.gif border=0
TR
  TD width=412 colSpan=2nbsp;/TD/TR
TR
  TD width=414 colSpan=2FONT face=Verdana size=2Selection
results.BR/FONTP
nbsp;a href=%=response.encodeURL(UnitSearch.jsp?type=H) 
% img
src=hotel.gif border=0a
href=%=response.encodeURL(UnitSearch.jsp?type=GH) % img
src=guesthouse.gif border=0a
href=%=response.encodeURL(UnitSearch.jsp?type=BB) % img src=bb.gif
border=0a href=%=response.encodeURL(UnitSearch.jsp?type=CS) % img
src=camping.gif border=0a
href=%=response.encodeURL(UnitSearch.jsp?type=CP) % img
src=cpark.gif border=0
  /TD


  TRtdTABLE cellSpacing=0 cellPadding=0 width=414 border=0


tr
  td width=100%
div align=left

  table border=1 width=100% bordercolor=#C0C0C0
cellspacing=1

% // Dynamic content goes here

for(int i=0; ires.size(); i++) {
com.tmt.goHolidayBreaks.business.UnitSummary u =
(com.tmt.goHolidayBreaks.business.UnitSummary)res.elementAt(i);
String name = u.getUnit().getName();
String address = u.getAddress();
String picture=;
try {
picture = u.getUnit().getDescriptor().getPicture1();
} catch (Exception e) {}
String description = u.getUnit().getDescription();
String features=;
try {
features = 
u.getUnitFacilityExpanded().getFacilityText();
} catch (Exception e) {}
%
tr
  td width=100% bgcolor=#F0800F colspan=2font
face=Verdana color=#FFb%=name%,br
/bfont size=1%= address %/font/font/td
/tr
tr
  td width=83%img border=0 src=%= picture %
align=left
  font size=1 face=Verdana%= description %/fontbr
  font face=Verdana size=1Features: %= features 
%/font/td
  td width=17%
p align=center
IMG name=www src=www.gif 
width=72 height=31 border=0
usemap=#www%=u.getUnit().getId().toString()%
map 

Re: How can I change outgoing email server port number from default to something else?

2002-05-13 Thread Xinji Gu

Or just set mail.smtp.port=newPort into the properties when you create a
session.

Jim

- Original Message -
From: Xinji Gu [EMAIL PROTECTED]
 Is there a mail.smtp.port as in stand alone JavaMail application?

 Jim

 - Original Message -
 From: Maya Vayner [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, May 13, 2002 4:06 PM
 Subject: How can I change outgoing email server port number from default
to
 something else?


  Hello,
 
  My outgoing smtp server is using non-default port number to get emails
 through. It is not
  25, which is by default set by tomcat. I tried to find the answer but it
 seems that no
  one ever had to use other port number but 25.
  Can anyone suggest a solution?
 
  hostname:2525 did not work when I set it to that in the server.xml
 mail.smtp.host
  resource property.
 
  Thank you.
 
  Maya Vayner
 
  __
  Do You Yahoo!?
  LAUNCH - Your Yahoo! Music Experience
  http://launch.yahoo.com
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


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



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




Re: How can I change outgoing email server port number from default to something else?

2002-05-13 Thread Maya Vayner

Yes, this works: 
mail.smtp.port
Thank you, Xinji.
Maya
--- Xinji Gu [EMAIL PROTECTED] wrote:
 Is there a mail.smtp.port as in stand alone JavaMail application?
 
 Jim
 
 - Original Message -
 From: Maya Vayner [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, May 13, 2002 4:06 PM
 Subject: How can I change outgoing email server port number from default to
 something else?
 
 
  Hello,
 
  My outgoing smtp server is using non-default port number to get emails
 through. It is not
  25, which is by default set by tomcat. I tried to find the answer but it
 seems that no
  one ever had to use other port number but 25.
  Can anyone suggest a solution?
 
  hostname:2525 did not work when I set it to that in the server.xml
 mail.smtp.host
  resource property.
 
  Thank you.
 
  Maya Vayner
 
  __
  Do You Yahoo!?
  LAUNCH - Your Yahoo! Music Experience
  http://launch.yahoo.com
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




Original URL from error page

2002-05-13 Thread Tom Parker

Hi,

I'm trying to get the original URL of the page that caused and exception
from an error page.

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

Has a solution and an explanation as to why it does not work. Does anyone
know of a solution?


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




Re: Problem Uploading Image files

2002-05-13 Thread August Detlefsen

Make sure you have the latest version of mod_webapp installed. There
was a bug in multipart handling in earlier versions. 


--- Lawlor, Frank [EMAIL PROTECTED] wrote:
 We have been using the O'Reilly multipart upload code, but
 are having problems uploading image (jpg, gif) files.  I have 
 tried this on Tomcat 3.3, 4.0.3 and 4.0.425 with same results.
 
 Same results going thru IIS front end and talking 
 directly to tomcat on port 8080.
 
 The uploaded file is ALMOST identical to the original,
 but all the x8X values are converted to x3F ('?').
 
 Any ideas what may be causing this or how to fix it? 
 
 Frank Lawlor
 Athens Group, Inc.
 (512) 345-0600 x151
 Athens Group, an employee-owned consulting firm integrating
 technology
 strategy and software solutions.
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




catalina.LoggerBase class should have public access

2002-05-13 Thread Animesh Chaturvedi - US


Hi

I have a requirement of a single log file instead of having the default log
files created on a daily basis. Since I could not configure Tomcat for this,
I started writing my own MyFileLogger class. I am extending
org.apache.catalina.logger.LoggerBase and my class is in my own package. But
since the LoggerBase class does not have public access, it is not accessible
to other packages. I cannot extend org.apache.catalina.logger.FileLogger
class as its a final class and I do not wish to change Tomcat code.

Should not this class have public access ? just like
org.apache.catalina.valves.RequestFilterValve class has public access, and I
was able to write my own   Valve for AccessControlList.


thanks

Animesh


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




Commercial support for apache+tomcat on windows

2002-05-13 Thread bm

Hi

Does anybody help me finding out right commercial supporting company
for apache +tomcat on windows other than covalent ?

thanks in advance

BM


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




RE: jsessionid suddenly appearing in the HTML links

2002-05-13 Thread HOOI Tak Keong, Henry

Hi Mark, 

The reason why the jsessionid param is appearing is because someone may have
have disabled cookies in your web browser. By default if the web-browser you
are using allows cookie handling, the jsessionid param is not attached to
the urls...You may want to ensure that all your url links cater for them
because some users may diable cookies in their web browsers...thus disabling
the ability for tomcat to track each session.

Cheers'
Henry Hooi

-Original Message-
From: Mark Williams [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 11:02 PM
To: [EMAIL PROTECTED]
Subject: jsessionid suddenly appearing in the HTML links


Hi all,

Apache : 1.3.x
Tomcat : 3.x

I am having a problem in that suddently, for some reason( no changes have
been made to eith my apache or tomcat configuarion for the past 9 months ) ,
Tomcat's session id ( jsessionid ) is getting included in the HTML URLs that
are generated from the JSP code I am using. For example :

http://www.domain.com/ghb/estabtype?=GH;jessionid=Gkhjfjfhgjg?type=MX

The jessionid code suddenly started appearing in the generated HTML URL
links about 1 week ago ( again, I stress absolutely nothing has changed in
tomcat's configuration ) and as such, has been causing 404 errors when you
click on the link.

The qustion id, why is the jsessionid suddenly appearing in the HTML links?
and how do I configure tomcat ( or whatever ) to stop doing this?

Thanks in advance

Regards, Mark



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

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




Re: Commercial support for apache+tomcat on windows

2002-05-13 Thread Jacob Kjome

try http://www.multitask.com.au/default.html?page=mtSOS

jake

At 05:07 PM 5/13/2002 -0700, you wrote:
Hi

Does anybody help me finding out right commercial supporting company
for apache +tomcat on windows other than covalent ?

thanks in advance

BM


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



RE: Frameset problem

2002-05-13 Thread Abraham Fathman

Or create a your session in index.jsp...

-Original Message-
From: Rick Fincher [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, May 07, 2002 2:21 PM
To: Tomcat Users List
Subject: Re: Frameset problem


If your index.jsp is a frameset each frame gets called with a different
session number.

You may need to make a simple index.jsp that calls your frameset,
otherwise session info set in one frame won't be available to pages in
another frame.

Rick

- Original Message -
From: Vincent Lambert [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, May 07, 2002 11:35 AM
Subject: RE : Frameset problem


 Apache is not responding any more...


 -Message d'origine-
 De : Abraham Fathman [mailto:[EMAIL PROTECTED]]
 Envoye : mardi 7 mai 2002 16:31
 A : 'Tomcat Users List'
 Objet : RE: Frameset problem


 What is the problem that you are having?

 I had a problem in a similar context with sessions. This is because 
 the first url I would goto was domain.com and then I would get 
 redirected to server.domain.com...

 Abe

 -Original Message-
 From: Vincent Lambert [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, May 07, 2002 8:11 AM
 To: 'Tomcat Users List'
 Subject: Frameset problem


 Hi,

 I am using TC 4.0.3 with JDK 1.4 connected to apache with webapp 
 connector. Every thing works find except when i call two or more JSP 
 within a frameset !

 Did someone experience the same problem and how can I fixe it.

 Thanks in advance,

 Regards,
 Vince

 PS : My files...

 httpd.conf :

 VirtualHost 192.10.200.65
 ServerName www.test6.vla
 DocumentRoot C:\dev\projets\FrameSet
 WebAppConnection warpTest6 warp localhost:8008
 WebAppDeploy test5 warpTest6 /webapp
 /VirtualHost


 server.xml:

 Host name =www.test6.vla
 Context path=/webapp docBase=C:\dev\projets\FrameSet\webapp /
 Logger className=org.apache.catalina.logger.FileLogger
 prefix=test6. siffix=.out
 timestamp=true/
 /Host


 index.html:

 frameset rows=20%,*
 frame name=menu src=/page_0.html/
 frameset cols=50%,50%
 frame name=menu src=/webapp/jsp/jsp_1.jsp/
 frame name=menu src=/webapp/jsp/jsp_2.jsp/
 /frameset
 /frameset



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



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


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




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



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




VM size increases.

2002-05-13 Thread Rajesh Mishra


I'm using Tomcat3.2 and SQL server2000. I'm facing two problems mentioned
below..

1.The VM size of Tomcat's java.exe process increases gradually and it
doesn't come down. As a result machine hangs.I've closed database
connections and Resultset's everywhere I accessed database.

2. On running Web Application Stress testing tool for 2 days (with 10
threads and 4 socket multiplier), Tomcat crashes. 

Rajesh



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




Re: VM size increases.

2002-05-13 Thread Brett Porter

You are really going to have to look at this more closely before 
pointing fingers :)

2 days with that many hits is actually a slow leak unless you have a lot 
of RAM. Still, a leak.

The leak could be in the JDBC driver, your code, or any other library 
(including Tomcat).

Have you upgraded to the latest Tomcat (3.2.4) in that line?

Your next step will be to use a profiling tool (JProbe, optimize it, 
etc) to find where the leak is. For instance, you may be using an 
infrequent circular reference in your code that causes it never to be 
release in garbage collection.

You should have your code modularised enough to be able to beat it 
outside the servlet container with something like JUnitPerf to see if 
you have any such problems in certain modules (this is often a little 
idealistic :)

Hope this helps,
Brett

Rajesh Mishra wrote:
 I'm using Tomcat3.2 and SQL server2000. I'm facing two problems mentioned
 below..
 
 1.The VM size of Tomcat's java.exe process increases gradually and it
 doesn't come down. As a result machine hangs.I've closed database
 connections and Resultset's everywhere I accessed database.
 
 2. On running Web Application Stress testing tool for 2 days (with 10
 threads and 4 socket multiplier), Tomcat crashes. 
 
 Rajesh
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]


-- 
| Brett Porter [EMAIL PROTECTED] .
. f2 network ~ everything essential  |
 --



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




Re: VM size increases.

2002-05-13 Thread Toru Watanabe

Hi Rajesh,

Let me know about your JDBC.
I suppose you are using JNI for Database connectivity.

Regards,
Watanabe

In the message VM size increases.
   [EMAIL PROTECTED]
Rajesh Mishra [EMAIL PROTECTED] wrote:


Rajesh I'm using Tomcat3.2 and SQL server2000. I'm facing two
Rajesh problems mentioned below..

Rajesh 1.The VM size of Tomcat's java.exe process increases gradually
Rajesh and it doesn't come down. As a result machine hangs.I've
Rajesh closed database connections and Resultset's everywhere I
Rajesh accessed database.

Rajesh 2. On running Web Application Stress testing tool for 2 days
Rajesh(with 10 threads and 4 socket multiplier), Tomcat crashes.

Rajesh Rajesh

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


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




RE: VM size increases.

2002-05-13 Thread Rajesh Mishra

Hi Toru,
I'm using jdbc-odbc driver to connect to SQL server.
Regards
Rajesh

-Original Message-
From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 10:45 AM
To: Tomcat Users List
Subject: Re: VM size increases.


Hi Rajesh,

Let me know about your JDBC.
I suppose you are using JNI for Database connectivity.

Regards,
Watanabe

In the message VM size increases.
 
[EMAIL PROTECTED]
Rajesh Mishra [EMAIL PROTECTED] wrote:


Rajesh I'm using Tomcat3.2 and SQL server2000. I'm facing two
Rajesh problems mentioned below..

Rajesh 1.The VM size of Tomcat's java.exe process increases gradually
Rajesh and it doesn't come down. As a result machine hangs.I've
Rajesh closed database connections and Resultset's everywhere I
Rajesh accessed database.

Rajesh 2. On running Web Application Stress testing tool for 2 days
Rajesh(with 10 threads and 4 socket multiplier), Tomcat crashes.

Rajesh Rajesh

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


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

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