AW: AW: unanswered questions: Multiple Tomcat Instances

2002-05-29 Thread Ralph Einfeldt

I placed all jar files that our application needs 
under ${CATALINA_HOME}/webapps/Context/WEB-INF/lib

Class files are OK under 
${CATALINA_HOME}/webapps/Context/WEB-INF/classes
(We don't have any)

AFAIK, if you have more than one context and want to use 
the same classes across all contexts, you can place them
under ${CATALINA_HOME}/lib and {CATALINA_HOME}/classes.
(Haven't tried this, we just need one context)

I deleted everything from web.xml hat we didn't need.
The only thing we changed in web.xml was the welcome-file-list 
element.

I deleted everything from server.xml hat we didn't need.
For the first instance you don't have to change anything.
I changed some setting that are not mandatory. (Set the log file 
names to our convention, rename the default context, ...)
For every following instance you have to change all ports
to a unique value. (You should list the port numbers in
/etc/services so it's easier to find out which ports are 
used)

Wether this changes are sufficient for an online server I'm
not shure, as we haven't used tomcat as an online server.

 -Ursprüngliche Nachricht-
 Von: Neil Zanella [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 28. Mai 2002 21:16
 An: Tomcat Users List
 Betreff: Re: AW: unanswered questions: Multiple Tomcat Instances
snip/
 Did you just copy the files under ${CATALINA_BASE}/conf from the
 corresponding ones in ${CATALINA_HOME}/conf or do these need to
 be altered in one way or another?
 Also, I am assuming that you are placing your java and class
 files under ${CATALINA_HOME}/webapps/Context/WEB-INF/classes
 Is this the case or can it be done differently?
 Do any settings need to be modified under
 ${CATALINA_HOME}/conf/server.xml ?
snip/

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




users and groups

2002-05-29 Thread Benoit . CHARRET

Hi,
I want to know if it possible to get the group of a user via a loginName
from a NT domain in a servlet. If it is how can I do and what library couls
I use.

Thanks

Benoit


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




DIGEST authentication problem

2002-05-29 Thread Kallos Andrei

Hello,

We have an authentication problem using Tomcat.
Briefly, we have set up a simple webapp with DIGEST
authentication. It works fine with IE5, but it fails
on Mozilla. We have also tested Mozilla on an Apache
Http server with DIGEST authentication, and it works!
So, we assume that there is something wrong with
Tomcat...
We have already looked up the mailing list but we've
found nothing yet. Could anyone help us?

Environment :
 Linux debian 2.2r5
 Tomcat 4.0.3
 Mozilla 0.9.9
 Apache 1.3.24

Thanks!
Andrei

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




RE: HELP: IIS 5.0 and Tomcat 4.0.3

2002-05-29 Thread Terrence Knoesen

Hello there Nicholas
Take a look at this it should help
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-iis-howto.html
http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/
Terrence.

-Original Message-
From: Nicholas Orr [mailto:[EMAIL PROTECTED]]
Sent: 29 May 2002 00:49
To: 'Tomcat Users List'
Subject: HELP: IIS 5.0 and Tomcat 4.0.3


Hi,

How do I get tomcat to take care of jsp pages and IIS to take care of html,
asp pages?

I don't have the isapi_redirect.dll, so start from the beginning plz.




**
The information contained in this e-mail is confidential and is
intended only for the use of the addressee(s).
If you receive this e-mail in error, any use, distribution or
copying of this e-mail is not permitted. You are requested to
forward unwanted e-mail and address any problems to the
MIM Holdings Limited Support Centre.

For general enquires:   ++61 7 3833 8000
Support Centre e-mail:  [EMAIL PROTECTED]
Support Centre phone:   Australia 1800500646
International ++61 7 38338042
**


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk

**
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error, please notify the system
administrator at the address [EMAIL PROTECTED] or call +44 (0) 20
7016 


This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


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




RE: Réf. : How to make tomcat work with IIS?

2002-05-29 Thread Terrence Knoesen

All the documentation seems to point at Tomcat and IIS being on the same
machine. I couldn't get them working on two different machines with Active
Directory Services running.
Terrence.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 29 May 2002 07:08
To: Tomcat Users List
Subject: Réf. : How to make tomcat work with IIS?



You must use Isapi Filter in IIS named isapi_redirector.dll
For more information you can use the Tomcat-IIS howTo in Jakarta
Documentation.
You could also follow instructions on
http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/




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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk

**
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error, please notify the system
administrator at the address [EMAIL PROTECTED] or call +44 (0) 20
7016 


This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


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




RE: iPlanet + tomcat integration

2002-05-29 Thread Gal Binderman

1. I have to use this version of iPlanet because it's the only one that works with my 
current application servers.
2. The iPlanet version shouldn't matter, because as far as I know tomcat connectors 
can 
work with iPlanet 4.
3. I can't use iPlanets's internal JSP/Servlet engine since it's very old (I think it 
supports
JSP tag versions 0.98). I need the newest JSP engine that supports the latest taglist 
version,
specially the ones related to database.

Gal Binderman.

-Original Message-
From: peter lin [mailto:[EMAIL PROTECTED]]
Sent: Tue, May 28, 2002 8:48 PM
To: Tomcat Users List
Subject: Re: iPlanet + tomcat integration



Is there a reason why you aren't using iPlanet's jsp/servlet engine? 
Besides the obvious fact iPlanet's implementation is out of date.
iPlanet ent 6 is much better than iPlanet 4.  Perhaps try the newer
version of iPlanet? that might be more fruitful than trying to integrate
tomcat with iPlanet 4.

peter



Gal Binderman wrote:
 
 Hello all.
 
 I'm trying to integrate tomcat with iPlanet web server.
 My final destination is to cause the iPlanet get .jsp request from a client, 
forwarding it to tomcat (running
 on the same machine), let the tomcat execute it and getting back the results to the 
client, all that transparent
 to the client (meaning that I don't want him to know there is a tomcat by being 
redirected or something...)
 I want ther iPlanet to transfer JSP requests to the tomcat AJP12 connector, 
listening port 8007 (I don't want other connectors and the tomcat listener to run). I 
also want the tomcat to run as an out of process from iPlanet (but I do want to make 
iPlanet to start the connector...)
 
 I have found a lot source codes, binaries, questions and documentation about this 
subjects, but it seems that
 none of them is clear enough to apply.
 
 Is there anyone who has been able to use that configuration and can provide some 
kind of clear step-by-step guide?
 What to download, versions, how to compile/install, how to configure, how to test, 
etc?
 Is this configuration even possible?
 
 Here are the details:
 Solaris 8.0 O/S running on a SPARC machine (U10, 256MB memory).
 JDK 1.3 (from SUN)
 ANT latest (from apache)
 iPlanet web server 4.1 SP2
 $JAVA_HOME, $JAKARTA_HOME, ANT_HOME are set properly
 
 Have tried the following layouts:
 tomcat 4.0.3 binary and source
 tomcat 3.3.1 binary and source
 tomcat connectors 4.0.2-01 from source
 nsapi_redirector.so from apache web site (compiled for solaris 2.6)
 
 I can install and run tomcat on port 8080, and run JSPs when accessing it (from 
source)
 When I install from source, the AJP12+AJP13 connectors are listening on ports 8007 
and 8008 by defaults (from source)
 I've tried to edit the default workers.properties to match my system.
 I've tried to compile my own nsapi_redirector.so (no success)
 I've tried to compile my own AJP12 connector (no success)
 
 I've managed, after installing tomcat from source and starting it (with AJP12 
listener) + putting the nsapi_redirector.so
 under iPlanet + configuring obj.cong + disabling the iPlanet built in servlet engine 
for that web server, to get the AJP12 listener
 to start and write logfile. When I start the web server, it also initializes some 
information about the connector.
 However, when trying to go to webserver/examples - I don't get any response from 
tomcat (the obj.cong contains
 redirection to the listener for that virtual directory).
 
 Any idea?
 
 Thanks,
   Gal Binderman.
 
 [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]




uriworkermap.properties ???

2002-05-29 Thread staginfo-ar

I have IIs and tomcat on 2 different machines and they work perfectly.
But when I add a new context in tomcat, that does not write it in the
uriworkermap.properties (which is on iis machine).
How can I do that??
Thanks
jc


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




Tomcat + IIS +SSL

2002-05-29 Thread Christophe GOGUYER DESSAGNES

How do I configure IIS 5 and Tomcat 3.2 to enable SSL ?

I have configured workers (ajp12) and redirection works fine in none secure
mode.
But now, I want to use sll with https, my iis5 is secure and it works
but when a request is redirected to tomcat via isapi_redirect the request
seems to be stalled.

Thx.


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




Can't import REAL certificate into TOMCAT 4.0.3 / 4.1.2

2002-05-29 Thread MindTerm

Dear all,

  I am developing a web application by using tomcat
4.0.3 / 4.1.2 . It is fine so far until I want to
implement SSL . 
  SSL is ok when running with self-signed cert which
is generated by command keytool -genkey -alias tomcat
-keyalg RSA . 
  SSL doesn't work when running keytool -import -alias
tomcat -keystore your_keystore_filename
-trustcacerts -file your_certificate_filename .
  Any suggestion ?
 
  I am running my application in a internal LAN
environment.

mindterm


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Réf. : RE: Réf. : How to make tomcat workwith IIS?

2002-05-29 Thread staginfo-ar


You've just to replace localhost in workers.properties by the IP of tomcat
machine.
Note: on iis machine you must have isapi-redirector.dll, iis-redirect.reg,
workers  uriworkermap.properties.

Question : When a context was added on tomcat how iis (
uriworker.properties ) could know that?

Jc


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




How to use jspc ?

2002-05-29 Thread wolfgang

hi there,
I'm currently using jspc(command line compilation tool) come with Tomcat.
I cannot figure out how to use some options although I read through the
manual.

Those are -uribase and -uriroot.

Could anyone explain me how to use those options(argument) ?
( I always use -webapp option. It satisfies me, but wanna know the 
alternative way for knowledge. )

Thanks in advance.
Tony



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




Receipt of 29/05/102 09:39 message

2002-05-29 Thread Andrew . Bate


Re:Tomcat + IIS +SSL




**
This message has been sent via the Internet. Internet communications 
are not secure against interception or modification. Severn Trent 
Systems therefore can not guarantee that this message has not been
modified in transit, and this message should not be viewed as 
contractually binding.

This message and any files transmitted with it are confidential and 
intended solely for the use of the addressee. If you have received 
this message in error please notify the sender and destroy your
copies of the message and any attached files. 
***
Severn Trent Systems Ltd : a part of Severn Trent plc. 
Registered in England and Wales Registration No. 2394552


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




Allowing access to webapps via HTTPS only

2002-05-29 Thread Gary Moh


i have a servlet running in Tomcat 3.2.4 in conjunction with Apache +
mod_ssl,
and am wondering how i can configure such that HTTPS must be used to access
the servlet.

any help is appreciated

gary


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




Tomcat 4 install / config

2002-05-29 Thread Eric Etkin

Configuration:

RH Linux 7.3
Tomcat 4.1
Apache 2.0

Installations done via RPM for everything
I have installed Apache, and it works fine (i.e I get the default page) I
installed Tomcat and all the related prerequisites.


I cannot find the startup.sh file, I have looked everywhere.  Is it missing
from my RPM somehow?  I tried running: tomcat4 start and it looks like it
does something, but when I try to browse to 127.0.0.1:8080 I get nothing.

Any advice would be much appreciated.

I'm a Linux Newbie, so please be gentle. :)

Thanks!

-Eric Etkin



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




Re: Tomcat 4 install / config

2002-05-29 Thread Cynthia Jeness

Eric,

I am using the 4.0.3 version of Tomcat and installed through RPM.  The name of
the startup file is tomcat4 and is in /usr/bin.

Cynthia Jeness

Eric Etkin wrote:

 Configuration:

 RH Linux 7.3
 Tomcat 4.1
 Apache 2.0

 Installations done via RPM for everything
 I have installed Apache, and it works fine (i.e I get the default page) I
 installed Tomcat and all the related prerequisites.

 I cannot find the startup.sh file, I have looked everywhere.  Is it missing
 from my RPM somehow?  I tried running: tomcat4 start and it looks like it
 does something, but when I try to browse to 127.0.0.1:8080 I get nothing.

 Any advice would be much appreciated.

 I'm a Linux Newbie, so please be gentle. :)

 Thanks!

 -Eric Etkin

 --
 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: Tomcat 4 install / config

2002-05-29 Thread John Niven

 -Original Message-
 From: Eric Etkin [mailto:[EMAIL PROTECTED]] 
 Sent: 29 May 2002 14:49
 To: 'Tomcat Users List'
 Subject: Tomcat 4 install / config
 
 
 Configuration:
 
 RH Linux 7.3
 Tomcat 4.1
 Apache 2.0
 
 Installations done via RPM for everything
 I have installed Apache, and it works fine (i.e I get the 
 default page) I installed Tomcat and all the related prerequisites.
 
 
 I cannot find the startup.sh file, I have looked everywhere.  
 Is it missing from my RPM somehow?  I tried running: tomcat4 
 start and it looks like it does something, but when I try to 
 browse to 127.0.0.1:8080 I get nothing.
 

Eric

Try 127.0.0.1:8180 - I believe some Linux RPMs of Tomcat use 8180 as the
default Tomcat port (YMMV).

 Any advice would be much appreciated.
 
 I'm a Linux Newbie, so please be gentle. :)

I suspect it's the Windows (l)users (like me) who need to ask that!!!

 
 Thanks!
 
 -Eric Etkin
 
 

Good luck,
John

 --
John Niven
Please reply through mailing list

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




jbuilder 5 and tomcat 4

2002-05-29 Thread @Basebeans.com

Subject: jbuilder 5 and tomcat 4
From: Jean Fotovat [EMAIL PROTECTED]
 ===
hello community,

i'd like to integrate tomcat 4 within jbuilder 5 quickly.
when i try to change the servlet.jar (4 instead of 3.2), jbuilder does not
like that !
thank you for your help

jean fotovat



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




RE: Tomcat 4 install / config

2002-05-29 Thread Eric Etkin

I saw some of that on the newsgroups, that is surely worth checking into.

If I change the port in the server.xml file to port 80 will Apache or
Tomcat process the request?  Or will it be both??

Eric Etkin

-Original Message-
From: John Niven [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, May 29, 2002 9:52 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4 install / config

 -Original Message-
 From: Eric Etkin [mailto:[EMAIL PROTECTED]] 
 Sent: 29 May 2002 14:49
 To: 'Tomcat Users List'
 Subject: Tomcat 4 install / config
 
 
 Configuration:
 
 RH Linux 7.3
 Tomcat 4.1
 Apache 2.0
 
 Installations done via RPM for everything
 I have installed Apache, and it works fine (i.e I get the 
 default page) I installed Tomcat and all the related prerequisites.
 
 
 I cannot find the startup.sh file, I have looked everywhere.  
 Is it missing from my RPM somehow?  I tried running: tomcat4 
 start and it looks like it does something, but when I try to 
 browse to 127.0.0.1:8080 I get nothing.
 

Eric

Try 127.0.0.1:8180 - I believe some Linux RPMs of Tomcat use 8180 as the
default Tomcat port (YMMV).

 Any advice would be much appreciated.
 
 I'm a Linux Newbie, so please be gentle. :)

I suspect it's the Windows (l)users (like me) who need to ask that!!!

 
 Thanks!
 
 -Eric Etkin
 
 

Good luck,
John

 --
John Niven
Please reply through mailing list

--
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: iPlanet + tomcat integration

2002-05-29 Thread Leonard Crowe

We run a similar configuration without problems.  Our tomcat instance is not
on the same box but that is controlled via the workers.properties file and
using localhost instead of the IP of the other box has worked for me in the
past.  We are also using the ajp13 connector as well as the ajp12 but the
ajp12 connector has worked for us as well in the past.  I would guess that
there is a configuration problem in either your workers.properties file or
in the obj.conf.  

Do you have entries like the ones below in your obj.conf?

NameTrans fn=assign-name from=/*.jsp name=Mservlet

Object name=Mservlet
ObjectType fn=force-type type=text/plain
Service fn=jk_service worker=ajp13
/Object


If you want to send me your configuration file I can take a look.

Hope this helps

llc 


-Original Message-
From: Gal Binderman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 3:28 AM
To: Tomcat Users List
Subject: RE: iPlanet + tomcat integration


1. I have to use this version of iPlanet because it's the only one that
works with my 
current application servers.
2. The iPlanet version shouldn't matter, because as far as I know tomcat
connectors can 
work with iPlanet 4.
3. I can't use iPlanets's internal JSP/Servlet engine since it's very old (I
think it supports
JSP tag versions 0.98). I need the newest JSP engine that supports the
latest taglist version,
specially the ones related to database.

Gal Binderman.

-Original Message-
From: peter lin [mailto:[EMAIL PROTECTED]]
Sent: Tue, May 28, 2002 8:48 PM
To: Tomcat Users List
Subject: Re: iPlanet + tomcat integration



Is there a reason why you aren't using iPlanet's jsp/servlet engine? 
Besides the obvious fact iPlanet's implementation is out of date.
iPlanet ent 6 is much better than iPlanet 4.  Perhaps try the newer
version of iPlanet? that might be more fruitful than trying to integrate
tomcat with iPlanet 4.

peter



Gal Binderman wrote:
 
 Hello all.
 
 I'm trying to integrate tomcat with iPlanet web server.
 My final destination is to cause the iPlanet get .jsp request from a
client, forwarding it to tomcat (running
 on the same machine), let the tomcat execute it and getting back the
results to the client, all that transparent
 to the client (meaning that I don't want him to know there is a tomcat by
being redirected or something...)
 I want ther iPlanet to transfer JSP requests to the tomcat AJP12
connector, listening port 8007 (I don't want other connectors and the tomcat
listener to run). I also want the tomcat to run as an out of process from
iPlanet (but I do want to make iPlanet to start the connector...)
 
 I have found a lot source codes, binaries, questions and documentation
about this subjects, but it seems that
 none of them is clear enough to apply.
 
 Is there anyone who has been able to use that configuration and can
provide some kind of clear step-by-step guide?
 What to download, versions, how to compile/install, how to configure, how
to test, etc?
 Is this configuration even possible?
 
 Here are the details:
 Solaris 8.0 O/S running on a SPARC machine (U10, 256MB memory).
 JDK 1.3 (from SUN)
 ANT latest (from apache)
 iPlanet web server 4.1 SP2
 $JAVA_HOME, $JAKARTA_HOME, ANT_HOME are set properly
 
 Have tried the following layouts:
 tomcat 4.0.3 binary and source
 tomcat 3.3.1 binary and source
 tomcat connectors 4.0.2-01 from source
 nsapi_redirector.so from apache web site (compiled for solaris
2.6)
 
 I can install and run tomcat on port 8080, and run JSPs when accessing it
(from source)
 When I install from source, the AJP12+AJP13 connectors are listening on
ports 8007 and 8008 by defaults (from source)
 I've tried to edit the default workers.properties to match my system.
 I've tried to compile my own nsapi_redirector.so (no success)
 I've tried to compile my own AJP12 connector (no success)
 
 I've managed, after installing tomcat from source and starting it (with
AJP12 listener) + putting the nsapi_redirector.so
 under iPlanet + configuring obj.cong + disabling the iPlanet built in
servlet engine for that web server, to get the AJP12 listener
 to start and write logfile. When I start the web server, it also
initializes some information about the connector.
 However, when trying to go to webserver/examples - I don't get any
response from tomcat (the obj.cong contains
 redirection to the listener for that virtual directory).
 
 Any idea?
 
 Thanks,
   Gal Binderman.
 
 [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]



Host/Serve name problem.

2002-05-29 Thread Collins, Jim

Hi this may be of interest. 

I am running Apache 1.3.24 and TC4. Users of my application are
authenticated against LDAP. In the app I have 3 frames and I used to set the
src of the frames based on the server name. This used to work fine but when
I upgraded I had to login twice the reason was the main window was
www.mycomp.com:8000 but the frames were serverName:8000 and the browser
thought they were two different sites and asked me to login again.

I then created a virtual host thinking this would fix the problem but it did
not. So what I next did was call request.getHeader(Host) instead of
request.getServerName() plus the port . This works fine now.

Regards

Jim.


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



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




RE: Tomcat 4 install / config

2002-05-29 Thread John Niven

 -Original Message-
 From: Eric Etkin [mailto:[EMAIL PROTECTED]] 
 Sent: 29 May 2002 14:57
 To: 'Tomcat Users List'
 Subject: RE: Tomcat 4 install / config
 
 
 I saw some of that on the newsgroups, that is surely worth 
 checking into.
 
 If I change the port in the server.xml file to port 80 will 
 Apache or Tomcat process the request?  Or will it be both??
 

Apache-Tomcat issues are -way- over my head, I'm afraid!  I know that
Tomcat can run off port 80 on its own, but when it's running off the back of
Apache?  I don't know.  Anyone else?

 Eric Etkin
 

Cheers
John

 --
John Niven
Please reply through mailing list

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




Re: Tomcat 4 install / config

2002-05-29 Thread Doug Borenstein

I believe it will create a conflict if both servers are running and using
the same port.  If Tomcat is being run as a standalone server, it will
handle static pages and .jsp.  If you want to utilize apache for static
pages, you will have to use a connector.  the web.xml file in Tomcat should
have the proper configuration statements commented out.  Several lines will
also need to be added to apaches httpd.conf file, depending on which
connector you are using, and which module in apache(mod_jk or mod_webapp).


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




RE: Tomcat 4 install / config

2002-05-29 Thread Eric Etkin

Has anyone implemented tomcat 4 to hang off the back of Apache.  Apache is
more industrial strength from my experience.  I want to run apache, and
use Tomcat to process the JSP.



 
 
 
Eric Etkin
Susquehanna Bancshares Inc.
26 North Cedar Street
Lititz, PA 17543
Telephone:  (717) 625-6360
Mail Code: PA-SBI (IT/DATASEC)

-Original Message-
From: Doug Borenstein [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, May 29, 2002 10:21 AM
To: Tomcat Users List
Subject: Re: Tomcat 4 install / config

I believe it will create a conflict if both servers are running and using
the same port.  If Tomcat is being run as a standalone server, it will
handle static pages and .jsp.  If you want to utilize apache for static
pages, you will have to use a connector.  the web.xml file in Tomcat should
have the proper configuration statements commented out.  Several lines will
also need to be added to apaches httpd.conf file, depending on which
connector you are using, and which module in apache(mod_jk or mod_webapp).


--
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: Allowing access to webapps via HTTPS only

2002-05-29 Thread Prabhakar Chaganti

You can try to use the ssl connector for tomcat. Check the server.xml. it might be 
commented out in there.

-prabhakar

 i have a servlet running in Tomcat 3.2.4 in conjunction with Apache +
 mod_ssl,
 and am wondering how i can configure such that HTTPS must be used to access
 the servlet.


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




RE: Tomcat 4 install / config

2002-05-29 Thread Wagoner, Mark

There are documents on the Apache website:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html

Although if you are new to Tomcat I would suggest you work with it in
stand-alone mode for a while.  Several people have reported that Tomcat by
itself is a fairly robust web server.  You can always add Apache later
without effecting your app.

No sense making things more complicated from the start.


-Original Message-
From: Eric Etkin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 10:28 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4 install / config


Has anyone implemented tomcat 4 to hang off the back of Apache.  Apache is
more industrial strength from my experience.  I want to run apache, and
use Tomcat to process the JSP.



 
 
 
Eric Etkin
Susquehanna Bancshares Inc.
26 North Cedar Street
Lititz, PA 17543
Telephone:  (717) 625-6360
Mail Code: PA-SBI (IT/DATASEC)

-Original Message-
From: Doug Borenstein [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, May 29, 2002 10:21 AM
To: Tomcat Users List
Subject: Re: Tomcat 4 install / config

I believe it will create a conflict if both servers are running and using
the same port.  If Tomcat is being run as a standalone server, it will
handle static pages and .jsp.  If you want to utilize apache for static
pages, you will have to use a connector.  the web.xml file in Tomcat should
have the proper configuration statements commented out.  Several lines will
also need to be added to apaches httpd.conf file, depending on which
connector you are using, and which module in apache(mod_jk or mod_webapp).


--
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: tomcat 4.0.3 and No suitable driver SQLException - SOLVED

2002-05-29 Thread Chen, Dean (Zhun)

Thanks for your help everyone.

I found the solution:

I am using Tomcat 4.03+ with JDK 1.4 (I've tested with JDK 1.31 and it also
works)

According to this file
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

It states the order in which classes  jars are loaded.
/WEB-INF/classes of your web application 
/WEB-INF/lib/*.jar of your web application 
Bootstrap classes of your JVM 
System class loader classses (described above) 
$CATALINA_HOME/common/classes 
$CATALINA_HOME/common/endorsed/*.jar 
$CATALINA_HOME/common/lib/*.jar 
$CATALINA_HOME/shared/classes 
$CATALINA_HOME/shared/lib/*.jar 

Since jconn2.jar is application wide file, I put it in
$CATALINA_HOME/common/lib (I've also referenced other Tomcat documentations.
Of course since it's constantly being revised, this information is as of
this writing). PS, I'm using JConnect 5.5

You do not need (and probably should not) have a classpath to jconn2.jar. 

The solution lies in server.xml, the parameter user  password should occur
before the other info, and the paramter url has been changed to driverName,
although it might still work.

Resource name=jdbc/myDataSource auth=Container
type=javax.sql.DataSource/
  ResourceParams name=jdbc/myDataSource
parameternameuser/namevalueusername/value/parameter
 
parameternamepassword/namevaluepassword/value/parameter
parameternamedriverClassName/name
  valuecom.sybase.jdbc2.jdbc.SybDriver/value
/parameter
parameternamedriverName/name
  valuejdbc:sybase:Tds:server:port/database/value
/parameter
  /ResourceParams

Thanks all for your help. I hope this helps in the future.


Dean Chen


-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 28, 2002 8:05 PM
To: Tomcat Users List
Subject: RE: tomcat 4.0.3 and No suitable driver SQLException


Some of the parameter names seem to have changed.  I suggest grabbing a 
recent nightly build of Tomcat 4.1 and following the instructions here:

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

There I point to two other messages that I sent to the list and reference
the original email where I found the solution.  I also added a bit of code
to one of the emails so be sure to read them all.

I think the main problem is this.  Compare my configuration to 
yours.  Notice that some of the param names are different and there are 
some that you don't have that you need (such as factory):

Resource name=jdbc/utasklistDB auth=Container
   type=javax.sql.DataSource/
 ResourceParams name=jdbc/utasklistDB
 parameter
 nameusername/name
 valueblahuser/value
 /parameter
 parameter
 namepassword/name
 valueblahpass/value
 /parameter
 parameter
 namedriverClassName/name
 valueoracle.jdbc.driver.OracleDriver/value
 /parameter
 parameter
 nameurl/name
 valuejdbc:oracle:thin:@oracle.mydomain:1521:utasklst/value
 /parameter
 parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 parameter
 namemaxActive/name
 value100/value
 /parameter
 parameter
 namemaxIdle/name
 value3/value
 /parameter
 parameter
 namemaxWait/name
 value100/value
 /parameter
 parameter
 namevalidationQuery/name
 valueSELECT MAX(id) FROM Users/value
 /parameter
 /ResourceParams

Jake

At 07:12 PM 5/28/2002 -0400, you wrote:
I was able to connect by doing:

Class.forName(com.sybase.jdbc2.jdbc.SybDriver);
conn = DriverManager.getConnection();

However, still doesn't work if I do ds.getConnection();

How can I check to see if the datasource is loaded correctly besides
checking if it's null or not.

Thanks,

Dean Chen


-Original Message-
From: Chen, Dean (Zhun)
Sent: Tuesday, May 28, 2002 1:00 PM
To: 'Tomcat Users List'
Subject: tomcat 4.0.3 and No suitable driver SQLException


Hi,

I know this has been covered before, and I've searched the archives, but
none of the solutions posted seemed to work. Am I missing something?

I am using Tomcat 4.03, JDK 1.4, and Sybase JConn 5.5

Here's what I did:

I installed the appropriate applications.
I put jconn2.jar in CATALINA_HOME/common/lib

My settings are as follows
server.xml
   Resource name=jdbc/setsDataSource auth=Container
 type=javax.sql.DataSource/

   ResourceParams name=jdbc/setsDataSource
 parameternamedriverClassName/name
   valuecom.sybase.jdbc2.jdbc.SybDriver/value
 /parameter
 parameternameurl/name
   valuejdbc:sybase:Tds:servername:4946/database/value

RE: Tomcat 4 install / config

2002-05-29 Thread Robert Mclaren

 -Original Message-
 From: Eric Etkin [mailto:[EMAIL PROTECTED]] 
 Sent: 29 May 2002 14:57
 To: 'Tomcat Users List'
 Subject: RE: Tomcat 4 install / config
 
 
 I saw some of that on the newsgroups, that is surely worth 
 checking into.
 
 If I change the port in the server.xml file to port 80 will 
 Apache or Tomcat process the request?  Or will it be both??
 

You can not have two processes ( Tomcat and Apache) listening /
processing requests on the same port. If you have Apache running on port
80, Tomcat will fail to start if it is configured on port 80.

Apache can serve jsp pages via Tomcat using an AJP connector. Here is a
'how to' link to configure Apache with Tomcat.

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html

Hope this helps.

Robert McLaren


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




Apache and Tomcat integrating problems

2002-05-29 Thread Mauricio Tia Ni Gong Lin

I have been trying to integrate the Apache Web Server and Tomcat, but
I get the following message when I start the Apache Web Server:


Syntax error on line 211 of /usr/local/apache/conf/httpd.conf:
Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not
included in the server configuration
bin/apachectl start: httpd could not be started
-

The line 211 is:

LoadModule jk_module libexec/mod_jk.so

I created a libexec directory  in /usr/local/apache/conf and I set the
mod_jk.so in libexec directory.

Anybody could tell me what is going on?

Regards,

Lin



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




how make JASPER use the -deprecation flag during jsp page compilation ?

2002-05-29 Thread Claudio Eichenberger

Hi

Tomcat 4.0.4b3 on UNIX

How to make JASPER use the -deprecation flag during jsp page compilation ?

Thanks for your help

Claudio

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




RE: Apache and Tomcat integrating problems

2002-05-29 Thread Mladen Turk



 -Original Message-
 From: Mauricio Tia Ni Gong Lin [mailto:[EMAIL PROTECTED]] 
 Sent: 29. svibanj 2002 16:54
 To: [EMAIL PROTECTED]
 Subject: Apache and Tomcat integrating problems
 
 
 Syntax error on line 211 of /usr/local/apache/conf/httpd.conf:
 Invalid command 'LoadModule', perhaps mis-spelled or defined 
 by a module not included in the server configuration 
 bin/apachectl start: httpd could not be started
 -
 
 The line 211 is:
 
 LoadModule jk_module libexec/mod_jk.so
 
 I created a libexec directory  in /usr/local/apache/conf 
 and I set the mod_jk.so in libexec directory.
 

You libexec shoud be inside the ServerRoot directory, but the easiest
way would be to simply LoadModule with the absolute path, in your case:
/usr/local/apache/conf/libexec/mod_jk.so

MT.


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




AW: Apache and Tomcat integrating problems

2002-05-29 Thread Ralph Einfeldt

Make shure that your apache is compiled with mod_so.
(apache -l)

If you don't use a leading slash the path is relativ to the
server root. To use the directive the way you do, the path 
should be /usr/local/apache/libexec/mod_jk.so

Or you have to use 
LoadModule jk_module conf/libexec/mod_jk.so

 -Ursprüngliche Nachricht-
 Von: Mauricio Tia Ni Gong Lin [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 29. Mai 2002 16:54
 An: [EMAIL PROTECTED]
 Betreff: Apache and Tomcat integrating problems
 
 
 I have been trying to integrate the Apache Web Server and Tomcat, but
 I get the following message when I start the Apache Web Server:
 
 
 Syntax error on line 211 of /usr/local/apache/conf/httpd.conf:
 Invalid command 'LoadModule', perhaps mis-spelled or defined 
 by a module not
 included in the server configuration
 bin/apachectl start: httpd could not be started
 -
 
 The line 211 is:
 
 LoadModule jk_module libexec/mod_jk.so
 
 I created a libexec directory  in /usr/local/apache/conf 
 and I set the
 mod_jk.so in libexec directory.
 
 Anybody could tell me what is going on?
 
 Regards,
 
 Lin
 
 
 
 --
 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]




Automatic update... Urgent!

2002-05-29 Thread Wiwi Wiwi

Hi, all. Here is my question:

I am doing some online transaction systems. A sub-module call funds transfer 
is about to develop in my system. If a user wish to make a future funds 
transfer, e.g. transfer a certain amount to a particular third party account 
in the next 10 days. However, I do not have any idea for the system after 10 
days. (E.g. automatic update the data on the above transaction when the 
specific date is coming.). Is there any code to enable automatic update on 
the transaction when the date is matched? Currently, I wish to develop such 
system using JSP together with Apache Tomcat 4.0.3.

Your help is highly appreciated. Thanks in advance.

Best regards,
Wiwi


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




RE: Allowing access to webapps via HTTPS only

2002-05-29 Thread Sexton, George

Don't specify the application in your non-ssl virtual host definitions.

-Original Message-
From: Gary Moh [mailto:[EMAIL PROTECTED]]
Sent: 29 May, 2002 7:46 AM
To: '[EMAIL PROTECTED]'
Subject: Allowing access to webapps via HTTPS only



i have a servlet running in Tomcat 3.2.4 in conjunction with Apache +
mod_ssl,
and am wondering how i can configure such that HTTPS must be used to access
the servlet.

any help is appreciated

gary


--
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: Cannot retrieve session after visiting a different servletcontex t

2002-05-29 Thread Ghanshyam Patel


I understand that sessions are not meant to be shared across servlet
contexts. Upon further testing following are my observations:

Session SA1 is created when visiting page served by context
www.mydomain.com/contextA
Session SB1 is created when visiting page served by context
www.mydomain.com/contextB
Now, I revisit a page served by contextA and a new session SA2 is produced.
I then revisit a page served by contextB and session SB1 is returned by
request.getSession(). If I can still get SB1 back after visiting a different
context, why is SA2 created instead of giving me SA1 back ?

All responses so far are illuminating and much appreciated.

Thanks
Ghanshyam

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 28, 2002 10:49 PM
To: Tomcat Users List
Subject: Re: Cannot retrieve session after visiting a different
servletcontex t




On Wed, 29 May 2002, James Williamson wrote:

 Date: Wed, 29 May 2002 05:28:56 +0100
 From: James Williamson [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Cannot retrieve session after visiting a different
 servletcontex t


 - Original Message -
 From: Phillip Morelock [EMAIL PROTECTED]
   Set-Cookie: JSESSIONID=D4F42E4F346F947DDB409C0B8F6BDA19;Path=/
  
   However, telnetting to a context such as
 http://www.mydomain.com/context/
   and I'll get this sent back:
  
   Set-Cookie: JSESSIONID=D128650F08DCF7B371FCC29E79E87AD7;Path=/context
 
  Of course, but do you know of a browser that actually respects the path
  statement in this way?  It was my impression that there are always
  collisions with an identically named cookie (JSESSIONID) but this could
  easily be outdated knowledge on my part.  I have seen this before and
just
  worked around it, but it was some time ago.

 To be perfectly honest I don't know, although I would have thought the
IE's
 and
 Netscapes would adhere to the spec, especially as far as I remember
Netscape
 were
 instrumental in introducing cookies. It's be relatively easily to check,
but
 I don't have
 the time...


If your client application does not respect the cookie RFCs, then you out
of luck -- you need to switch to a client that obeys all the correct
rules, or hack your servlet container to be non-standard to deal with the
idiosyncracies of your stupid client app.  By the way, any recent version
of IE or Netscape deals correctly with these issues, so they are not
stupid by this definition.

For the record, Tomcat sets the path parameter of session id cookies to
be equal to the context path of the web application that produced that
cookie, so spec-compliant clients have zero problems maintaining sessions
across multiple webapps at the same time (even with weird cases like
context paths /foo and /foo/bar that overlap).  If your client doesn't
obey the rules, there is nothing that Tomcat, or any other servlet
container, can do for you.

Of course, if you expect to see the *same* session in different apps, then
it is *your* expectations that need to be corrected, but that's a
different issue ...

 
  fillup

Craig McClanahan


--
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]




apache 2.036 + tc 4.0.3 jsps and static elements caching in browser

2002-05-29 Thread Ekkehard Gentz

hi,
we have successfully integrated apache 2.0.36 and tomcat 4.0.3
using mod_jk
apache successfully serves all static elements (.gif, .js, .css, applets)
and routes all other things to the webapp on tomcat

we have html-pages with toolbars realized by images
so if you have 20 tools with 4 gifs (normal, disabled, down, up)
there are 80 gifs to load
but most of them are equal for all pages

in princip all is well:
if the browser wants to get the gif
apache answers 304 - because the browser doesn't need the gifs
the browser already has cached it

BUT
for each static element the browser ASKs the server
and this costs time

one workaround we have found:
to change IE properties for temporary files
setting this to never ask for new versions

then all jsps will be correctly got from the server
and the browser does NOT ask the server for the gifs
if they're already in his cache

now we are looking to have this without setting IE options

has anybody an idea how to say the IE that static elements
- if possible - should be used from the local cache
without setting any options

thanks for ideas or tips

regards

ekkehard

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




RE: Allowing access to webapps via HTTPS only

2002-05-29 Thread Gary Moh


is there anyway to modify the apache/mod_ssl configuration such that
any non https access to /servlet be rejected?

gary

-Original Message-
From: Prabhakar Chaganti [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 10:37 AM
To: Tomcat Users List
Subject: Re: Allowing access to webapps via HTTPS only


You can try to use the ssl connector for tomcat. Check the server.xml. it
might be commented out in there.

-prabhakar

 i have a servlet running in Tomcat 3.2.4 in conjunction with Apache +
 mod_ssl,
 and am wondering how i can configure such that HTTPS must be used to
access
 the servlet.


--
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 setting NT as a service

2002-05-29 Thread Sefton, Adam

Hi,

I've been trying to set tomcat to run as a service (which I have done successfully 
before) using the following command:

tomcat.exe -install Tomcat path to jvm.dll 
-Djava.class.path=path to bootstrap.jar 
-Dcatalina.home=path to Tomcat root directory 
-Xrs- 
-start org.apache.catalina.startup.Bootstrap -params start 
-stop org.apache.catalina.startup.Bootstrap -params stop
-out path to stdout.log
-err path to stderr.log

however, it will not install. I've checked the logs, and in stderr.log I get the error 
message:

java.lang.NoClassDefFoundError: org/apache/catalina/Bootstrap

which I assume means that the service cannot find the Bootstrap class contained by 
Bootstrap.jar. I've checked the path to Bootstrap.jar, and it is correct. I've also 
opened Bootstrap.jar and it definately contains the correct classes.

Has anyone got any ideas what I'm doing wrong? Thanks

I'm running JRE 1.4 and Tomcat 4.0.3 on Win2k

Thanks for any help you can provide

Best Regards

Adam



**
This message may contain information which is confidential or privileged.
If you are not the intended recipient, please advise the sender immediately
by reply e-mail and delete this message and any attachments
without retaining a copy.  

**


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




Re: how make JASPER use the -deprecation flag during jsp page compilation ?

2002-05-29 Thread David M. Karr

 Claudio == Claudio Eichenberger [EMAIL PROTECTED] writes:

Claudio Hi
Claudio Tomcat 4.0.4b3 on UNIX

Claudio How to make JASPER use the -deprecation flag during jsp page compilation ?

You might consider setting up your build procedure to pregenerate (using the
JspC class) and precompile your JSP pages, so you can specifically add
-deprecation to the javac command line.

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]


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




Can someone crack into server.xml?

2002-05-29 Thread Daniel Hinojosa

Given that a firewall blocks everything except port 8080 (Tomcat) and 80 
(Apache). Can someone crack in to view the server.xml.  This assumes 
that the cracker already know that it is Tomcat running (perhaps by 
noticing .jsp).

-- 
Daniel Hinojosa
Java  XML Consultant | Developer | Instructor

P.O. Box 4675
Albuquerque, NM 87196-4675
Telephone: (505)363-5832 
Fax: (775)261-6331






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




startup problem

2002-05-29 Thread Sharifuddin Ahmed

hello everyone i was wondering if anybody can help me.I have jdk1.3 
installed in C:\program files\jdk1.3\bin

In tomcat.bat i added  in the environment variables 

SET JAVA_HOME=C=\PROGRAM FILES\jdk1.3\bin

when startup at 

C:\jakarta-tomcat-3.2.4\bin

i get the error
C:\jakarta-tomcat-3.2.4\binstartup
Including all jars in c:\jakarta-tomcat-3.2.4\lib in your CLASSPATH.

Using CLASSPATH: c:\jakarta-tomcat-3.2.4\classes;c:\jakarta-
tomcat-3.2.4\lib\ant
.jar;c:\jakarta-tomcat-3.2.4\lib\classes12.jar;c:\jakarta-tomcat-
3.2.4\lib\crims
on.jar;c:\jakarta-tomcat-3.2.4\lib\jasper.jar;c:\jakarta-tomcat-
3.2.4\lib\jaxp.j
ar;c:\jakarta-tomcat-3.2.4\lib\servlet.jar;c:\jakarta-tomcat-
3.2.4\lib\webserver
.jar;c:\jakarta-tomcat-3.2.4\lib\XALAN.JAR;c:\jakarta-tomcat-
3.2.4\lib\XERCES.JA
R;C:\Program Files\Oracle\JDeveloper 
3.1\jdbc\lib\oracle8.1.6\classes12.zip;%cla
sspath%;C:\Program Files\jdk1.3\classes

Starting Tomcat in new window
The system cannot find the file C:\Program Files\jdk1.3\bin\bin\java.
C:\jakarta-tomcat-3.2.4\binc:

Now the startup is a big problem because its looking for 2 directories 
bin\bin

Why is this so???

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




RE: startup problem

2002-05-29 Thread Whitcomb, Roger

The JAVA_HOME doesn't need the \bin at the end, just the path to the root of the 
Java installation:
SET JAVA_HOME=c:\Program Files\jdk1.3

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: Sharifuddin Ahmed [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 9:41 AM
To: [EMAIL PROTECTED]
Subject: startup problem


hello everyone i was wondering if anybody can help me.I have jdk1.3 
installed in C:\program files\jdk1.3\bin

In tomcat.bat i added  in the environment variables 

SET JAVA_HOME=C=\PROGRAM FILES\jdk1.3\bin

when startup at 

C:\jakarta-tomcat-3.2.4\bin

i get the error
C:\jakarta-tomcat-3.2.4\binstartup
Including all jars in c:\jakarta-tomcat-3.2.4\lib in your CLASSPATH.

Using CLASSPATH: c:\jakarta-tomcat-3.2.4\classes;c:\jakarta-
tomcat-3.2.4\lib\ant
.jar;c:\jakarta-tomcat-3.2.4\lib\classes12.jar;c:\jakarta-tomcat-
3.2.4\lib\crims
on.jar;c:\jakarta-tomcat-3.2.4\lib\jasper.jar;c:\jakarta-tomcat-
3.2.4\lib\jaxp.j
ar;c:\jakarta-tomcat-3.2.4\lib\servlet.jar;c:\jakarta-tomcat-
3.2.4\lib\webserver
.jar;c:\jakarta-tomcat-3.2.4\lib\XALAN.JAR;c:\jakarta-tomcat-
3.2.4\lib\XERCES.JA
R;C:\Program Files\Oracle\JDeveloper 
3.1\jdbc\lib\oracle8.1.6\classes12.zip;%cla
sspath%;C:\Program Files\jdk1.3\classes

Starting Tomcat in new window
The system cannot find the file C:\Program Files\jdk1.3\bin\bin\java.
C:\jakarta-tomcat-3.2.4\binc:

Now the startup is a big problem because its looking for 2 directories 
bin\bin

Why is this so???

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



RE: apache 2.036 + tc 4.0.3 jsps and static elements caching in browser

2002-05-29 Thread Short, Dave

Can you post apache and tomcat integration details, i.e. httpd.conf,
tomcat.conf files, etc.?

-Original Message-
From: Ekkehard Gentz [mailto:[EMAIL PROTECTED]]
Sent: May 29, 2002 8:53 AM
To: Tomcat Users List
Subject: apache 2.036 + tc 4.0.3 jsps and static elements caching in
browser


hi,
we have successfully integrated apache 2.0.36 and tomcat 4.0.3
using mod_jk
apache successfully serves all static elements (.gif, .js, .css, applets)
and routes all other things to the webapp on tomcat

we have html-pages with toolbars realized by images
so if you have 20 tools with 4 gifs (normal, disabled, down, up)
there are 80 gifs to load
but most of them are equal for all pages

in princip all is well:
if the browser wants to get the gif
apache answers 304 - because the browser doesn't need the gifs
the browser already has cached it

BUT
for each static element the browser ASKs the server
and this costs time

one workaround we have found:
to change IE properties for temporary files
setting this to never ask for new versions

then all jsps will be correctly got from the server
and the browser does NOT ask the server for the gifs
if they're already in his cache

now we are looking to have this without setting IE options

has anybody an idea how to say the IE that static elements
- if possible - should be used from the local cache
without setting any options

thanks for ideas or tips

regards

ekkehard

--
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: startup problem

2002-05-29 Thread John Niven

 -Original Message-
 From: Sharifuddin Ahmed [mailto:[EMAIL PROTECTED]] 
 Sent: 29 May 2002 17:41
 To: [EMAIL PROTECTED]
 Subject: startup problem
 
 
 hello everyone i was wondering if anybody can help me.I have jdk1.3 
 installed in C:\program files\jdk1.3\bin
 
 In tomcat.bat i added  in the environment variables 
 
 SET JAVA_HOME=C=\PROGRAM FILES\jdk1.3\bin
 

Sharifuddin,

Change it to:
SET JAVA_HOME=C=\PROGRAM FILES\jdk1.3

 when startup at 
 
 C:\jakarta-tomcat-3.2.4\bin
 
 i get the error
 C:\jakarta-tomcat-3.2.4\binstartup
 Including all jars in c:\jakarta-tomcat-3.2.4\lib in your CLASSPATH.
 
 Using CLASSPATH: c:\jakarta-tomcat-3.2.4\classes;c:\jakarta-
 tomcat-3.2.4\lib\ant
 .jar;c:\jakarta-tomcat-3.2.4\lib\classes12.jar;c:\jakarta-tomcat-
 3.2.4\lib\crims
 on.jar;c:\jakarta-tomcat-3.2.4\lib\jasper.jar;c:\jakarta-tomcat-
 3.2.4\lib\jaxp.j
 ar;c:\jakarta-tomcat-3.2.4\lib\servlet.jar;c:\jakarta-tomcat-
 3.2.4\lib\webserver
 .jar;c:\jakarta-tomcat-3.2.4\lib\XALAN.JAR;c:\jakarta-tomcat-
 3.2.4\lib\XERCES.JA
 R;C:\Program Files\Oracle\JDeveloper 
 3.1\jdbc\lib\oracle8.1.6\classes12.zip;%cla
 sspath%;C:\Program Files\jdk1.3\classes
 
 Starting Tomcat in new window
 The system cannot find the file C:\Program Files\jdk1.3\bin\bin\java.
 C:\jakarta-tomcat-3.2.4\binc:
 
 Now the startup is a big problem because its looking for 2 
 directories 
 bin\bin
 
 Why is this so???
 

Because Tomcat is looking for the /bin directory in your Java install.
Reset your JAVA_HOME env variable, and all should be well.

Hope that helps,
John

 --
John Niven
Please reply through mailing list

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




Cant't print in Tomcat 4

2002-05-29 Thread Jack Li

Hello,
 
I posted this message a couple of days ago. But didn't get any responses.
Here is my problem:
 
I have a program that prints hard copy reports on server's printer. The
program is a java bean. This worked very well in Tomcat 3.1.2. It doesn't
work anymore after I upgrade to Tomcat 4. The program just was hanging
there. 
 
Any solutions!
 
Thanks
Jack Li



Re: DIGEST authentication problem

2002-05-29 Thread Larry Meadors

Sorry, I cannot help you fix the problem, but I have some more info
related to it.
 
I ran across the same problem with Mozilla 0.9.9 on Redhat Linux 7.2,
but if I hit the same tomcat server from IE6 on Win2K, it works fine.
 
So, to me it looks like the problem may be specifically with Tomcat
4.0.3 and Mozilla 0.9.9:
 This does not work:
Client: MZ-0.9.9/RH-7.2
Server: TC-4.0.3/RH-7.2
Auth: DIGEST
 This works:


Client: IE-6/W-2K
Server: TC-4.0.3/Either
Auth: Either
 This works:
Client: MZ-0.9.9/RH-7.2
Server: TC-4.0.3/RH-7.2
Auth: BASIC
 This works:



Client: MZ-0.9.9/Deb-2.2r5
Server: Apache 1.3.24/Deb-2.2r5
Auth: DIGEST
 
Hope this helps...
 
Larry

 [EMAIL PROTECTED] 05/29/02 01:45AM 
Hello,

We have an authentication problem using Tomcat.
Briefly, we have set up a simple webapp with DIGEST
authentication. It works fine with IE5, but it fails
on Mozilla. We have also tested Mozilla on an Apache
Http server with DIGEST authentication, and it works!
So, we assume that there is something wrong with
Tomcat...
We have already looked up the mailing list but we've
found nothing yet. Could anyone help us?

Environment :
Linux debian 2.2r5
Tomcat 4.0.3
Mozilla 0.9.9
Apache 1.3.24










JWSDP 1.0 E02 (JNDI HOWTO)

2002-05-29 Thread miten mehta

Hello,

I am trying to configure/use MSACCESS datasource. 

If needed email me for complete files at 
[EMAIL PROTECTED]

Following error shows in dos window for tomcat.

javax.naming.NamingException: DbcpDataSourceFactory: 
driverClassName is required



Here are snippets of server.xml and web.xml

server.xml:
---
Context path=/dataentry 
 docBase=webapps/dataentry 
 debug=0 
 reloadable=true  

  Resource name=jdbc/AddressDB
auth=Container
type=javax.sql.DataSource/
  ResourceParams name=jdbc/AddressDB
  parameter
namedriverClassName/name
   
valuesun.jdbc.odbc.JdbcOdbcDriver/value
  /parameter
  parameter
nameurl/name
valuejdbc:odbc:ADDRESS/value
  /parameter
  parameter
nameuser/name
value/value
  /parameter
  parameter
namepassword/name
value/value
  /parameter
  /ResourceParams
 
/Context



web.xml:

?xml version=1.0 encoding=UTF-8? 
!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'
 web-app   display-namedataentry/display-name
  servlet
servlet-nameAddressServlet/servlet-name
display-nameAddressServlet/display-name
servlet-classdataentry.servlet.AddressServlet/servlet-class
  /servlet   servlet-mapping
servlet-nameAddressServlet/servlet-name
url-pattern/address/url-pattern
  /servlet-mapping   session-config
session-timeout30/session-timeout
  /session-config   resource-ref
res-ref-namejdbc/AddressDB/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth   /resource-ref /web-app

=
Miten Mehta
630 540 2307 (H) try cell if busy signal
630 640 6154 (Cell)

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Tomcat authentication using Microsoft SQL Server.

2002-05-29 Thread Daniel Hinojosa


I am using FORM authentication on my web application.  I have everything 
set up nice.  My customer requests that the authentication be done 
against the given users and roles table in the SQLServer.  I thought it 
was no large task.  The users table I found out to be was sysusers per 
database.  Fine,  but unfortunately no 'roles' table, but in fact a 
COLUMN? in the sysusers table.  I don't know the logic behind that one, 
but how can I set up a Tomcat JDBC Realm using the predefined Users and 
Roles in SQLServer.

P.S. Checked the archives already.

Thanks.

-- 
Daniel Hinojosa
Java  XML Consultant | Developer | Instructor

P.O. Box 4675
Albuquerque, NM 87196-4675
Telephone: (505)363-5832 
Fax: (775)261-6331






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




Memory Leak?

2002-05-29 Thread Mark Shurgot

I am having the strangest problem with Tomcat and inner classes.  In a few
JSP pages, we use inner classes (beefed up structs) to store information
retrieved from a database into a collection class (Vector).

It seems that somewhere between getting the data from the result set and
constructing and storing an instance of the (data holding) inner class in a
Vector, the data is getting corrupted (doubles only).

Example:

 JSP -

%!
// inner class
class SomeClass
{
  public double dSomeDouble;

  public SomeClass(double dSomeDouble)
  {
// label: point 2
  this.dSomeDouble = dSomeDouble;
  // some other data members
  }
}
%

%
 // execute some query to get info, get results as JDBC ResultSet
oResult

 Vector oVecResults = new Vector()
 double dDoubleVal = oResult.getDobule(1);
// label: point 1 (dDobuleVal is intact)
 
 oVecResults.add(new SomeClass(dDoubleVal));
// label: point 3
%

 END JSP 

At point 1 the values retrieved from the database are intact, and remain
so until passed into the constructor of the inner class.  At point 2
dSomeDouble becomes corrupt (some random number out of memory), and remains
so past point 3.

Added twist:  This problem only occurs after a page has been hit 5 times (3
times for larger pages).  (1st time, Tomcat compiles the page, next four
times the page is loaded in memory).

Config:  Apache Tomcat 4.0.1 (exact same problem found in Linux and Windows
versions).

Any ideas?  Extracting the inner class from the page fixes the problem, but
is not a desired solution.  Any help is appreciated.

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




Re: Tomcat 4 install / config

2002-05-29 Thread Phillip Morelock

 Although if you are new to Tomcat I would suggest you work with it in
 stand-alone mode for a while.  Several people have reported that Tomcat by
 itself is a fairly robust web server.  You can always add Apache later
 without effecting your app.
 
 No sense making things more complicated from the start.

As a long time tomcatter, I agree with this wholeheartedly, FWIW.

fillup



On 5/29/02 7:30 AM, Wagoner, Mark [EMAIL PROTECTED] wrote:

 There are documents on the Apache website:
 
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html
 
 Although if you are new to Tomcat I would suggest you work with it in
 stand-alone mode for a while.  Several people have reported that Tomcat by
 itself is a fairly robust web server.  You can always add Apache later
 without effecting your app.
 
 No sense making things more complicated from the start.
 
 
 -Original Message-
 From: Eric Etkin [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 29, 2002 10:28 AM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat 4 install / config
 
 
 Has anyone implemented tomcat 4 to hang off the back of Apache.  Apache is
 more industrial strength from my experience.  I want to run apache, and
 use Tomcat to process the JSP.
 
 
 
 
 
 
 Eric Etkin
 Susquehanna Bancshares Inc.
 26 North Cedar Street
 Lititz, PA 17543
 Telephone:  (717) 625-6360
 Mail Code: PA-SBI (IT/DATASEC)
 
 -Original Message-
 From: Doug Borenstein [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 29, 2002 10:21 AM
 To: Tomcat Users List
 Subject: Re: Tomcat 4 install / config
 
 I believe it will create a conflict if both servers are running and using
 the same port.  If Tomcat is being run as a standalone server, it will
 handle static pages and .jsp.  If you want to utilize apache for static
 pages, you will have to use a connector.  the web.xml file in Tomcat should
 have the proper configuration statements commented out.  Several lines will
 also need to be added to apaches httpd.conf file, depending on which
 connector you are using, and which module in apache(mod_jk or mod_webapp).
 
 
 --
 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: Memory Leak?

2002-05-29 Thread Phillip Morelock

You are using the same name for the parameter to the constructor and the
instance variable for your inner class.

fillup


On 5/29/02 10:55 AM, Mark Shurgot [EMAIL PROTECTED] wrote:

 I am having the strangest problem with Tomcat and inner classes.  In a few
 JSP pages, we use inner classes (beefed up structs) to store information
 retrieved from a database into a collection class (Vector).
 
 It seems that somewhere between getting the data from the result set and
 constructing and storing an instance of the (data holding) inner class in a
 Vector, the data is getting corrupted (doubles only).
 
 Example:
 
  JSP -
 
 %!
   // inner class
   class SomeClass
   {
 public double dSomeDouble;
 
 public SomeClass(double dSomeDouble)
 {
 // label: point 2
 this.dSomeDouble = dSomeDouble;
 // some other data members
 }
   }
 %
 
 %
// execute some query to get info, get results as JDBC ResultSet
 oResult
 
Vector oVecResults = new Vector()
double dDoubleVal = oResult.getDobule(1);
 // label: point 1 (dDobuleVal is intact)

oVecResults.add(new SomeClass(dDoubleVal));
 // label: point 3
 %
 
  END JSP 
 
 At point 1 the values retrieved from the database are intact, and remain
 so until passed into the constructor of the inner class.  At point 2
 dSomeDouble becomes corrupt (some random number out of memory), and remains
 so past point 3.
 
 Added twist:  This problem only occurs after a page has been hit 5 times (3
 times for larger pages).  (1st time, Tomcat compiles the page, next four
 times the page is loaded in memory).
 
 Config:  Apache Tomcat 4.0.1 (exact same problem found in Linux and Windows
 versions).
 
 Any ideas?  Extracting the inner class from the page fixes the problem, but
 is not a desired solution.  Any help is appreciated.
 
 --
 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]




global resources

2002-05-29 Thread Christian J. Dechery

I can't seem to get my classes as global. 
 
I want them to be acessed by all applications... so I placed it under 
$CATALINA_HOME/classes and $CATALINA_HOME/lib right?
 
Well... when I do that, either two things happen: it doesn't find the classes and 
nothing works, or it gives me a crazy error regarding ServletException and some cast 
error.
 
any clues?
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332




RE: global resources

2002-05-29 Thread Mark Shurgot

You should use $CATALINA_HOME/commom/classes and $CATALINA_HOME/common/lib

-Original Message-
From: Christian J. Dechery [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 10:59 AM
To: [EMAIL PROTECTED]
Subject: global resources


I can't seem to get my classes as global. 
 
I want them to be acessed by all applications... so I placed it under
$CATALINA_HOME/classes and $CATALINA_HOME/lib right?
 
Well... when I do that, either two things happen: it doesn't find the
classes and nothing works, or it gives me a crazy error regarding
ServletException and some cast error.
 
any clues?
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332


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




Re: global resources

2002-05-29 Thread Phillip Morelock

Just for your edification, FYI the other ones you are currently using are
for TOMCAT's classes, not yours.  This previous reply is correct.

fillup


On 5/29/02 11:06 AM, Mark Shurgot [EMAIL PROTECTED] wrote:

 You should use $CATALINA_HOME/commom/classes and $CATALINA_HOME/common/lib
 
 -Original Message-
 From: Christian J. Dechery [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 29, 2002 10:59 AM
 To: [EMAIL PROTECTED]
 Subject: global resources
 
 
 I can't seem to get my classes as global.
 
 I want them to be acessed by all applications... so I placed it under
 $CATALINA_HOME/classes and $CATALINA_HOME/lib right?
 
 Well... when I do that, either two things happen: it doesn't find the
 classes and nothing works, or it gives me a crazy error regarding
 ServletException and some cast error.
 
 any clues?
 
 .:| Christian J. Dechery
 .:| FINEP - Depto. de Sistemas
 .:| [EMAIL PROTECTED]
 .:| (21) 2555-0332
 
 
 --
 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: Memory Leak?

2002-05-29 Thread Mark Shurgot

That doesn't seem to be the problem.  Regardless of variable names, the
problem still occurs (we tried changing them around earlier as a last
resort).  The parameter is already corrupt after being received by the
constructor, and before any assignment.

Also, the local instance variable is identified by this.

-Original Message-
From: Phillip Morelock [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 11:02 AM
To: Tomcat Users List
Subject: Re: Memory Leak?


You are using the same name for the parameter to the constructor and the
instance variable for your inner class.

fillup


On 5/29/02 10:55 AM, Mark Shurgot [EMAIL PROTECTED] wrote:

 I am having the strangest problem with Tomcat and inner classes.  In a few
 JSP pages, we use inner classes (beefed up structs) to store information
 retrieved from a database into a collection class (Vector).
 
 It seems that somewhere between getting the data from the result set and
 constructing and storing an instance of the (data holding) inner class in
a
 Vector, the data is getting corrupted (doubles only).
 
 Example:
 
  JSP -
 
 %!
   // inner class
   class SomeClass
   {
 public double dSomeDouble;
 
 public SomeClass(double dSomeDouble)
 {
 // label: point 2
 this.dSomeDouble = dSomeDouble;
 // some other data members
 }
   }
 %
 
 %
// execute some query to get info, get results as JDBC ResultSet
 oResult
 
Vector oVecResults = new Vector()
double dDoubleVal = oResult.getDobule(1);
 // label: point 1 (dDobuleVal is intact)

oVecResults.add(new SomeClass(dDoubleVal));
 // label: point 3
 %
 
  END JSP 
 
 At point 1 the values retrieved from the database are intact, and remain
 so until passed into the constructor of the inner class.  At point 2
 dSomeDouble becomes corrupt (some random number out of memory), and
remains
 so past point 3.
 
 Added twist:  This problem only occurs after a page has been hit 5 times
(3
 times for larger pages).  (1st time, Tomcat compiles the page, next four
 times the page is loaded in memory).
 
 Config:  Apache Tomcat 4.0.1 (exact same problem found in Linux and
Windows
 versions).
 
 Any ideas?  Extracting the inner class from the page fixes the problem,
but
 is not a desired solution.  Any help is appreciated.
 
 --
 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: Can someone crack into server.xml?

2002-05-29 Thread Phillip Morelock

In theory at least, no, nobody can view your files.

Tomcat protects its config files and anything under WEB-INF .

Does this mean it's 100% impossible?  Certainly not.  On the internet,
nothing is impossible.

Mostly, don't make some stupid configuration mistake (like mapping your
TOMCAT/conf directory into apache or something) that is akin to the cgi
problems of days of yore.

fillup


On 5/29/02 9:32 AM, Daniel Hinojosa [EMAIL PROTECTED] wrote:

 Given that a firewall blocks everything except port 8080 (Tomcat) and 80
 (Apache). Can someone crack in to view the server.xml.  This assumes
 that the cracker already know that it is Tomcat running (perhaps by
 noticing .jsp).


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




RE: Tomcat 4 install / config

2002-05-29 Thread Whitcomb, Roger

My experience with using both (Apache 1.3.x and Tomcat 3.x and 4.x with mod_jk) is 
that if you get the configuration right by following the docs scrupulously and aren't 
doing anything special (multiple hosts, etc.) it is not difficult.  BUT the process is 
all done by tweaking configuration files, so you have to get everything EXACTLY right.

I have JSPs connected to Java Beans along with some GIF, JPG, HTML and applet files.  
The static content is served by Apache and the JSPs are redirected to Tomcat.  BTW, 
I'm using Ant to build and deploy to Tomcat (but not with the Manager tasks yet...)

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: Phillip Morelock [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 10:59 AM
To: Tomcat Users List
Subject: Re: Tomcat 4 install / config


 Although if you are new to Tomcat I would suggest you work with it in
 stand-alone mode for a while.  Several people have reported that Tomcat by
 itself is a fairly robust web server.  You can always add Apache later
 without effecting your app.
 
 No sense making things more complicated from the start.

As a long time tomcatter, I agree with this wholeheartedly, FWIW.

fillup



On 5/29/02 7:30 AM, Wagoner, Mark [EMAIL PROTECTED] wrote:

 There are documents on the Apache website:
 
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html
 
 Although if you are new to Tomcat I would suggest you work with it in
 stand-alone mode for a while.  Several people have reported that Tomcat by
 itself is a fairly robust web server.  You can always add Apache later
 without effecting your app.
 
 No sense making things more complicated from the start.
 
 
 -Original Message-
 From: Eric Etkin [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 29, 2002 10:28 AM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat 4 install / config
 
 
 Has anyone implemented tomcat 4 to hang off the back of Apache.  Apache is
 more industrial strength from my experience.  I want to run apache, and
 use Tomcat to process the JSP.
 
 
 
 
 
 
 Eric Etkin
 Susquehanna Bancshares Inc.
 26 North Cedar Street
 Lititz, PA 17543
 Telephone:  (717) 625-6360
 Mail Code: PA-SBI (IT/DATASEC)
 
 -Original Message-
 From: Doug Borenstein [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 29, 2002 10:21 AM
 To: Tomcat Users List
 Subject: Re: Tomcat 4 install / config
 
 I believe it will create a conflict if both servers are running and using
 the same port.  If Tomcat is being run as a standalone server, it will
 handle static pages and .jsp.  If you want to utilize apache for static
 pages, you will have to use a connector.  the web.xml file in Tomcat should
 have the proper configuration statements commented out.  Several lines will
 also need to be added to apaches httpd.conf file, depending on which
 connector you are using, and which module in apache(mod_jk or mod_webapp).
 
 
 --
 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: global resources

2002-05-29 Thread Christian J. Dechery

I tried that too... if I do that Tomcat doesn't even start.
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332

 [EMAIL PROTECTED] 29/05/02 15:06  
You should use $CATALINA_HOME/commom/classes and $CATALINA_HOME/common/lib 

-Original Message- 
From: Christian J. Dechery [ mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, May 29, 2002 10:59 AM 
To: [EMAIL PROTECTED] 
Subject: global resources 


I can't seem to get my classes as global. 

I want them to be acessed by all applications... so I placed it under 
$CATALINA_HOME/classes and $CATALINA_HOME/lib right? 

Well... when I do that, either two things happen: it doesn't find the 
classes and nothing works, or it gives me a crazy error regarding 
ServletException and some cast error. 

any clues? 

.:| Christian J. Dechery 
.:| FINEP - Depto. de Sistemas 
.:| [EMAIL PROTECTED] 
.:| (21) 2555-0332 


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






Cookies not working w/ Form Based Authentication 3.2.3

2002-05-29 Thread Roland Chan

Hello,
 
When using form based authentication, it appears that cookies are not
being written to the client.  In my server.xml, noCookies=false, and the
client browsers have cookies enabled.
 
Can anyone shed any light here?
 
Using JBoss 2.4.4 w/ embedded Tomcat 3.2.3.
 
Thanks,
Roland
 
 
Roland Chan
Software Developer, RD
CaseBank Technologies, Inc.
1 Kenview Blvd.
Brampton, ON  L6T 5E6
(905) 792-1981 ext. 519
 



Re: Memory Leak?

2002-05-29 Thread Phillip Morelock

Doesn't matter, you don't name an instance variable and a parameter the same
thing.

Was that really the code from your page?  Because there were syntax errors
(no semicolon, etc.).

It might be a very good idea to go into /work and find out if what you
*think* it's translating to is really what it is (/work is where tomcat puts
the .java files it translates from your jsp and then compiles them into
servlets).  I have found very rare instances where my personal concept of
how tomcat is parsing my code is different from the reality.

fillup



On 5/29/02 11:10 AM, Mark Shurgot [EMAIL PROTECTED] wrote:

 That doesn't seem to be the problem.  Regardless of variable names, the
 problem still occurs (we tried changing them around earlier as a last
 resort).  The parameter is already corrupt after being received by the
 constructor, and before any assignment.
 
 Also, the local instance variable is identified by this.
 
 -Original Message-
 From: Phillip Morelock [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 29, 2002 11:02 AM
 To: Tomcat Users List
 Subject: Re: Memory Leak?
 
 
 You are using the same name for the parameter to the constructor and the
 instance variable for your inner class.
 
 fillup
 
 
 On 5/29/02 10:55 AM, Mark Shurgot [EMAIL PROTECTED] wrote:
 
 I am having the strangest problem with Tomcat and inner classes.  In a few
 JSP pages, we use inner classes (beefed up structs) to store information
 retrieved from a database into a collection class (Vector).
 
 It seems that somewhere between getting the data from the result set and
 constructing and storing an instance of the (data holding) inner class in
 a
 Vector, the data is getting corrupted (doubles only).
 
 Example:
 
  JSP -
 
 %!
   // inner class
   class SomeClass
   {
 public double dSomeDouble;
 
 public SomeClass(double dSomeDouble)
 {
 // label: point 2
 this.dSomeDouble = dSomeDouble;
 // some other data members
 }
   }
 %
 
 %
// execute some query to get info, get results as JDBC ResultSet
 oResult
 
Vector oVecResults = new Vector()
double dDoubleVal = oResult.getDobule(1);
 // label: point 1 (dDobuleVal is intact)

oVecResults.add(new SomeClass(dDoubleVal));
 // label: point 3
 %
 
  END JSP 
 
 At point 1 the values retrieved from the database are intact, and remain
 so until passed into the constructor of the inner class.  At point 2
 dSomeDouble becomes corrupt (some random number out of memory), and
 remains
 so past point 3.
 
 Added twist:  This problem only occurs after a page has been hit 5 times
 (3
 times for larger pages).  (1st time, Tomcat compiles the page, next four
 times the page is loaded in memory).
 
 Config:  Apache Tomcat 4.0.1 (exact same problem found in Linux and
 Windows
 versions).
 
 Any ideas?  Extracting the inner class from the page fixes the problem,
 but
 is not a desired solution.  Any help is appreciated.
 
 --
 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]




Manager App

2002-05-29 Thread Tim Bourg

Does anyone know a way to provide the context manager to virtual hosts?

Timothy Bourg



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




Re: global resources

2002-05-29 Thread Phillip Morelock

It might help if you described what you're doing in a little more detail.

What are these classes you want commonly accessible?

Are they in jars? Packed correctly, etc.?

Please elaborate.

fillup


On 5/29/02 11:07 AM, Christian J. Dechery [EMAIL PROTECTED] wrote:

 I tried that too... if I do that Tomcat doesn't even start.
 
 .:| Christian J. Dechery
 .:| FINEP - Depto. de Sistemas
 .:| [EMAIL PROTECTED]
 .:| (21) 2555-0332
 
 [EMAIL PROTECTED] 29/05/02 15:06 
 You should use $CATALINA_HOME/commom/classes and $CATALINA_HOME/common/lib
 
 -Original Message-
 From: Christian J. Dechery [ mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 29, 2002 10:59 AM
 To: [EMAIL PROTECTED]
 Subject: global resources
 
 
 I can't seem to get my classes as global.
 
 I want them to be acessed by all applications... so I placed it under
 $CATALINA_HOME/classes and $CATALINA_HOME/lib right?
 
 Well... when I do that, either two things happen: it doesn't find the
 classes and nothing works, or it gives me a crazy error regarding
 ServletException and some cast error.
 
 any clues? 
 
 .:| Christian J. Dechery
 .:| FINEP - Depto. de Sistemas
 .:| [EMAIL PROTECTED]
 .:| (21) 2555-0332
 


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




RE: Memory Leak?

2002-05-29 Thread Jay Burgess

Doesn't matter, you don't name an instance variable and a parameter the 
same thing.???

Unless I'm completely missing the point of your comment, Of course you 
can.  I do it all the time, and it's in lots of books that way.  Prefixing 
with this. separates the two variables.

Your suggestion of looking at the generated code is a good one.  Tomcat may 
have trouble parsing a JSP with an inner class, and be generating something 
different than what we'd expect.  I don't see anything obviously wrong 
looking at the sample code.

Jay

  -Original Message-
  From: Phillip Morelock [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, May 29, 2002 1:15 PM
  To: Tomcat Users List
  Subject: Re: Memory Leak?
 
 
  Doesn't matter, you don't name an instance variable and a
  parameter the same
  thing.
 
  Was that really the code from your page?  Because there were
  syntax errors
  (no semicolon, etc.).
 
  It might be a very good idea to go into /work and find out if what you
  *think* it's translating to is really what it is (/work is
  where tomcat puts
  the .java files it translates from your jsp and then compiles
  them into
  servlets).  I have found very rare instances where my
  personal concept of
  how tomcat is parsing my code is different from the reality.
 
  fillup
 
 
 
  On 5/29/02 11:10 AM, Mark Shurgot [EMAIL PROTECTED] wrote:
 
   That doesn't seem to be the problem.  Regardless of
  variable names, the
   problem still occurs (we tried changing them around earlier
  as a last
   resort).  The parameter is already corrupt after being
  received by the
   constructor, and before any assignment.
  
   Also, the local instance variable is identified by this.
  
   -Original Message-
   From: Phillip Morelock [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, May 29, 2002 11:02 AM
   To: Tomcat Users List
   Subject: Re: Memory Leak?
  
  
   You are using the same name for the parameter to the
  constructor and the
   instance variable for your inner class.
  
   fillup
  
  
   On 5/29/02 10:55 AM, Mark Shurgot
  [EMAIL PROTECTED] wrote:
  
   I am having the strangest problem with Tomcat and inner
  classes.  In a few
   JSP pages, we use inner classes (beefed up structs) to
  store information
   retrieved from a database into a collection class (Vector).
  
   It seems that somewhere between getting the data from the
  result set and
   constructing and storing an instance of the (data holding)
  inner class in
   a
   Vector, the data is getting corrupted (doubles only).
  
   Example:
  
    JSP -
  
   %!
 // inner class
 class SomeClass
 {
   public double dSomeDouble;
  
   public SomeClass(double dSomeDouble)
   {
   // label: point 2
   this.dSomeDouble = dSomeDouble;
   // some other data members
   }
 }
   %
  
   %
  // execute some query to get info, get results as JDBC ResultSet
   oResult
  
  Vector oVecResults = new Vector()
  double dDoubleVal = oResult.getDobule(1);
   // label: point 1 (dDobuleVal is intact)
  
  oVecResults.add(new SomeClass(dDoubleVal));
   // label: point 3
   %
  
    END JSP 
  
   At point 1 the values retrieved from the database are
  intact, and remain
   so until passed into the constructor of the inner class.
  At point 2
   dSomeDouble becomes corrupt (some random number out of memory), and
   remains
   so past point 3.
  
   Added twist:  This problem only occurs after a page has
  been hit 5 times
   (3
   times for larger pages).  (1st time, Tomcat compiles the
  page, next four
   times the page is loaded in memory).
  
   Config:  Apache Tomcat 4.0.1 (exact same problem found in Linux and
   Windows
   versions).
  
   Any ideas?  Extracting the inner class from the page fixes
  the problem,
   but
   is not a desired solution.  Any help is appreciated.
  
   --



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




Re: global resources

2002-05-29 Thread Christian J. Dechery

I want both... I have some classes that are unpacked, that I'd put in the 
common/classes dir... and some jars... along with them is the oracle driver 
(classes12.jar)... when I execute the JSP I get the exception thrown when the driver 
can't be found... if I take this file (classes12.jar) and place it in 
mywebapp/WEB-INF/lib it works fine...
 
it feels to me that this package is the only one tomcat isn't beeing able to share 
across webapps... all other classes and libs works fine...
 
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332

 [EMAIL PROTECTED] 29/05/02 15:17  
It might help if you described what you're doing in a little more detail. 

What are these classes you want commonly accessible? 

Are they in jars? Packed correctly, etc.? 

Please elaborate. 

fillup 


On 5/29/02 11:07 AM, Christian J. Dechery  [EMAIL PROTECTED]  wrote: 

 I tried that too... if I do that Tomcat doesn't even start. 
 
 .:| Christian J. Dechery 
 .:| FINEP - Depto. de Sistemas 
 .:| [EMAIL PROTECTED] 
 .:| (21) 2555-0332 
 
 [EMAIL PROTECTED] 29/05/02 15:06  
 You should use $CATALINA_HOME/commom/classes and $CATALINA_HOME/common/lib 
 
 -Original Message- 
 From: Christian J. Dechery [ mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, May 29, 2002 10:59 AM 
 To: [EMAIL PROTECTED] 
 Subject: global resources 
 
 
 I can't seem to get my classes as global. 
 
 I want them to be acessed by all applications... so I placed it under 
 $CATALINA_HOME/classes and $CATALINA_HOME/lib right? 
 
 Well... when I do that, either two things happen: it doesn't find the 
 classes and nothing works, or it gives me a crazy error regarding 
 ServletException and some cast error. 
 
 any clues? 
 
 .:| Christian J. Dechery 
 .:| FINEP - Depto. de Sistemas 
 .:| [EMAIL PROTECTED] 
 .:| (21) 2555-0332 
 


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






RE: Memory Leak?

2002-05-29 Thread Zachary Kuhn

Have you tried explicitly saying new Outerclass.InnerClass() ? maybe that
will help.
Zak


-Original Message-
From: Jay Burgess [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 11:26 AM
To: [EMAIL PROTECTED]
Subject: RE: Memory Leak?


Doesn't matter, you don't name an instance variable and a parameter the
same thing.???

Unless I'm completely missing the point of your comment, Of course you
can.  I do it all the time, and it's in lots of books that way.  Prefixing
with this. separates the two variables.

Your suggestion of looking at the generated code is a good one.  Tomcat may
have trouble parsing a JSP with an inner class, and be generating something
different than what we'd expect.  I don't see anything obviously wrong
looking at the sample code.

Jay


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




global resources (2)

2002-05-29 Thread Christian J. Dechery

According to Tomcat's config, I should places classes and packages in /classes and 
/lib, not /common/classes and /common/lib.
 
Altough neither is working for me... :/
 
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332




creating global context

2002-05-29 Thread Christian J. Dechery

How do I create a global context?
 
I want to able to include JSP files (as well as images, etc) from this context across 
all my webapps. This is possible right?
 
thanks
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332




Re: global resources

2002-05-29 Thread Jacob Kjome

Hello Christian,

By chance, are the libraries that you put in TOMCAT_HOME/lib refer to
libraries that you put in your webapp's WEB-INF/lib?  If so, this just
isn't going to work.  The WEB-INF/lib libraries can see libraries in
TOMCAT_HOME/lib, but not the other way around.

For instance, the developers at Log4j say that you should have
log4j.jar in each separate webapp's WEB-INF/lib directory.  However,
this imposes itself upon any libraries that are using Log4j.  They
will need to also be inside WEB-INF/lib as well where, if Log4j was
designed a non-static way where it could exist in TOMCAT_HOME/lib and
serve all webapps with Loggers without running into each other, then
you could have the libraries that reference log4j safely in
TOMCAT_HOME/lib.

If you didn't understand that, if all else fails, just put everything
in WEB-INF/lib except for XML and DOM libraries, which are forbidden
in the child classloader, and stuff like DBCP which both Tomcat and
your webapp need access to (TOMCAT_HOME/common/lib).

Jake

Wednesday, May 29, 2002, 12:59:01 PM, you wrote:

CJD I can't seem to get my classes as global. 
 
CJD I want them to be acessed by all applications... so I placed it under 
$CATALINA_HOME/classes and $CATALINA_HOME/lib right?
 
CJD Well... when I do that, either two things happen: it doesn't find the classes and 
nothing works, or it gives me a crazy error regarding ServletException and some cast 
error.
 
CJD any clues?
 
CJD .:| Christian J. Dechery
CJD .:| FINEP - Depto. de Sistemas
CJD .:| [EMAIL PROTECTED]
CJD .:| (21) 2555-0332




-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




Re: global resources (2)

2002-05-29 Thread Phillip Morelock

Ha!

Looks like i had it backwards...

Thank goodness for documentation ;)

fillup


On 5/29/02 11:51 AM, Christian J. Dechery [EMAIL PROTECTED] wrote:

 According to Tomcat's config, I should places classes and packages in /classes
 and /lib, not /common/classes and /common/lib.
 
 Altough neither is working for me... :/
 
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html
 
 .:| Christian J. Dechery
 .:| FINEP - Depto. de Sistemas
 .:| [EMAIL PROTECTED]
 .:| (21) 2555-0332
 
 


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




Re: global resources

2002-05-29 Thread Christian J. Dechery

but I just have some beans acessing a an Oracle database...
 
the only thing NOT working is the oracle drivers (classes12.jar, which I tried placing 
both in /common/lib and /lib)... and all the other classes (now in /common/lib) are 
working fine.
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332

 [EMAIL PROTECTED] 29/05/02 16:05  
Hello Christian, 

By chance, are the libraries that you put in TOMCAT_HOME/lib refer to 
libraries that you put in your webapp's WEB-INF/lib? If so, this just 
isn't going to work. The WEB-INF/lib libraries can see libraries in 
TOMCAT_HOME/lib, but not the other way around. 

For instance, the developers at Log4j say that you should have 
log4j.jar in each separate webapp's WEB-INF/lib directory. However, 
this imposes itself upon any libraries that are using Log4j. They 
will need to also be inside WEB-INF/lib as well where, if Log4j was 
designed a non-static way where it could exist in TOMCAT_HOME/lib and 
serve all webapps with Loggers without running into each other, then 
you could have the libraries that reference log4j safely in 
TOMCAT_HOME/lib. 

If you didn't understand that, if all else fails, just put everything 
in WEB-INF/lib except for XML and DOM libraries, which are forbidden 
in the child classloader, and stuff like DBCP which both Tomcat and 
your webapp need access to (TOMCAT_HOME/common/lib). 

Jake 

Wednesday, May 29, 2002, 12:59:01 PM, you wrote: 

CJD I can't seem to get my classes as global. 

CJD I want them to be acessed by all applications... so I placed it under 
$CATALINA_HOME/classes and $CATALINA_HOME/lib right? 

CJD Well... when I do that, either two things happen: it doesn't find the classes and 
nothing works, or it gives me a crazy error regarding ServletException and some cast 
error. 

CJD any clues? 

CJD .:| Christian J. Dechery 
CJD .:| FINEP - Depto. de Sistemas 
CJD .:| [EMAIL PROTECTED] 
CJD .:| (21) 2555-0332 




-- 
Best regards, 
Jacob mailto:[EMAIL PROTECTED] 


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






Re: creating global context

2002-05-29 Thread rsequeira


You could set the attribute crosscontext=true. And then access resources
across various contexts.

RS





Christian J. Dechery [EMAIL PROTECTED] on 05/29/2002 03:57:13 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:[EMAIL PROTECTED]
cc:

Subject:creating global context

How do I create a global context?

I want to able to include JSP files (as well as images, etc) from this
context across all my webapps. This is possible right?

thanks

.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332










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




global resources (better explained)

2002-05-29 Thread Christian J. Dechery

I have a set of beans, the package names are finep and christian.
 
both are in $CATALINA_HOME/classes
 
calls to these classes occur normally... the problem is, that among these classes, 
some of them makes calls to the oracle driver... the oracle drivers (classes12.jar) 
are in $CATALINA_HOME/lib
 
like this it's not working... but if I take classes12.jar and place it in 
mywebapp/WEB-INF/lib, everything works fine...
 
does this behavious say something? I can't figure it out... I don't want to have this 
file (classes12.jar, which is kinda big) copied to ALL my webapps... 
 
thanks again
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332




Re: creating global context

2002-05-29 Thread Christian J. Dechery

sorry, I'm kinda newbie to web.xml... could u exemplify?
 
thanks
 
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332

 [EMAIL PROTECTED] 29/05/02 16:20  

You could set the attribute crosscontext=true. And then access resources 
across various contexts. 

RS 





Christian J. Dechery  [EMAIL PROTECTED]  on 05/29/2002 03:57:13 PM 

Please respond to Tomcat Users List  [EMAIL PROTECTED]  

To:  [EMAIL PROTECTED]  
cc: 

Subject: creating global context 

How do I create a global context? 

I want to able to include JSP files (as well as images, etc) from this 
context across all my webapps. This is possible right? 

thanks 

.:| Christian J. Dechery 
.:| FINEP - Depto. de Sistemas 
.:| [EMAIL PROTECTED] 
.:| (21) 2555-0332 










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






Re: global resources (better explained)

2002-05-29 Thread Phillip Morelock

pay attention to the order of classloaders -- i would jar your classes and
put them with the oracle classes, to ensure they're loaded in the same
space.  I have said this till I'm blue in the face, but so many problems
mysteriously go away when you use jars instead of just throwing class
files in xxx/classes.

cheers
fillup


On 5/29/02 12:20 PM, Christian J. Dechery [EMAIL PROTECTED] wrote:

 I have a set of beans, the package names are finep and christian.
 
 both are in $CATALINA_HOME/classes
 
 calls to these classes occur normally... the problem is, that among these
 classes, some of them makes calls to the oracle driver... the oracle drivers
 (classes12.jar) are in $CATALINA_HOME/lib
 
 like this it's not working... but if I take classes12.jar and place it in
 mywebapp/WEB-INF/lib, everything works fine...
 
 does this behavious say something? I can't figure it out... I don't want to
 have this file (classes12.jar, which is kinda big) copied to ALL my webapps...
 
 thanks again
 
 .:| Christian J. Dechery
 .:| FINEP - Depto. de Sistemas
 .:| [EMAIL PROTECTED]
 .:| (21) 2555-0332
 
 


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




Re: creating global context

2002-05-29 Thread rsequeira


In server.xml:
Context path=/examples docBase=examples debug=0 reloadable=true
crossContext=true/
The crossContext attribute true implies that servlets/jsps in other
contexts can access resources from this context with the help of a
RequestDispatcher.

RS





Christian J. Dechery [EMAIL PROTECTED] on 05/29/2002 04:21:05 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:[EMAIL PROTECTED]
cc:

Subject:Re: creating global context

sorry, I'm kinda newbie to web.xml... could u exemplify?

thanks


.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332

 [EMAIL PROTECTED] 29/05/02 16:20 

You could set the attribute crosscontext=true. And then access resources
across various contexts.

RS





Christian J. Dechery  [EMAIL PROTECTED]  on 05/29/2002 03:57:13 PM


Please respond to Tomcat Users List  [EMAIL PROTECTED] 

To:  [EMAIL PROTECTED] 
cc:

Subject: creating global context

How do I create a global context?

I want to able to include JSP files (as well as images, etc) from this
context across all my webapps. This is possible right?

thanks

.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332










--
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: creating global context

2002-05-29 Thread Christian J. Dechery

thanks a lot... that will solve a whole bunch of problems
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332

 [EMAIL PROTECTED] 29/05/02 16:41  

In server.xml: 
Context path=/examples docBase=examples debug=0 reloadable=true 
crossContext=true/ 
The crossContext attribute true implies that servlets/jsps in other 
contexts can access resources from this context with the help of a 
RequestDispatcher. 

RS 





Christian J. Dechery  [EMAIL PROTECTED]  on 05/29/2002 04:21:05 PM 

Please respond to Tomcat Users List  [EMAIL PROTECTED]  

To:  [EMAIL PROTECTED]  
cc: 

Subject: Re: creating global context 

sorry, I'm kinda newbie to web.xml... could u exemplify? 

thanks 


.:| Christian J. Dechery 
.:| FINEP - Depto. de Sistemas 
.:| [EMAIL PROTECTED] 
.:| (21) 2555-0332 

 [EMAIL PROTECTED] 29/05/02 16:20  

You could set the attribute crosscontext=true. And then access resources 
across various contexts. 

RS 





Christian J. Dechery  [EMAIL PROTECTED]  on 05/29/2002 03:57:13 PM 


Please respond to Tomcat Users List  [EMAIL PROTECTED]  

To:  [EMAIL PROTECTED]  
cc: 

Subject: creating global context 

How do I create a global context? 

I want to able to include JSP files (as well as images, etc) from this 
context across all my webapps. This is possible right? 

thanks 

.:| Christian J. Dechery 
.:| FINEP - Depto. de Sistemas 
.:| [EMAIL PROTECTED] 
.:| (21) 2555-0332 










-- 
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]  






Request Reader

2002-05-29 Thread george

Can someone tell me why I get a reader time out when I try to get the body
of a request and that body is empty? Why wouldn't the reader just return
null?

Here is the code that times out:

Public String getBody(HttpServletRequest req)
{
StringBuffer buf = new StringBuffer();
try
{
BufferedReader rdr = req.getReader();
String bufRead = rdr.readLine();
while ( bufRead != null )
{
buf.append(bufRead);
bufRead = rdr.readLine();
}
}
catch ( IOException e )
{
log.error(*** Problem Reading from the buffered reader
*);
log.error(* Message:  + e.getMessage() );

log.error(**);
buf = new StringBuffer();
}
return buf.toString();
}

It takes forever to get this code to return when the body is empty. Does
someone have a better way?

George Smith

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




Re: Tomcat Hangs-UP...

2002-05-29 Thread Mark Teegarden

Okay, a simple answer from a simple mind:
Check that you are closing resources in your java code appropriately. Don't rely on 
garbage collection!

Are you closing any files opened by your Java code?
Are you always closing your jdbc SQL statements/result sets, etc...?
Are you closing your Oracle connections? Are there too many open connections?
Are there any blocking db locks?

I have had this problem before where my db connected application had not committed 
it's transaction and ended up hanging tomcat. Always check to see that your resources 
are being released and not halting other requests.

Since you're using Oracle, check the V$SESSION view  to make sure you don't have more 
active connections than you believe you should have. Check the v$session_wait to make 
sure nothing is blocked. I'll bet a t-shirt that it's a db problem. If you can't get 
to those views, ask your friendly dba to help.

 [EMAIL PROTECTED] 05/28/02 07:24PM 
Here, we have the same problem!!! What can it be?

Our configuration:

 - SunOS 5.8;
 - Solaris 8;
 - Dual UltraSparc 400Mhz;
 - J2SE SUN 1.4;
 - Tomcat 4.0.3;
 - We are using -Xmx1024 -Xms512;
 - MaxProcessors=250, MinProcessors=10, acceptCount=250;
 - Oracle Thin JDBC;

PS 1: we are not having the classic OutOfMemory error. Tomcat just
hangs-up with no reason.
PS 2: We already used OptimizeIt to tune the application.
PS 3: Tomcat stops even with a low rate of usage.

Wagner Danda

 -- Mensagem original ---

 De  : Rui Oliveira [EMAIL PROTECTED]
 Para: [EMAIL PROTECTED]
 Cc  :
 Data: Tue, 28 May 2002 18:54:36 +0100
 Assunto : Tomcat Hangs-UP...

 Hello,



 I have a Tomcat Server running on Solaris as JSP and WEB server. Aft
er
 executing for a while, the Tomcat just Hangs-UP and the only way of
 restarting it is to kill the Tomcat process.



 My configuration is the following:



 - SunOS 5.8

 - Solaris 8

 - JRE 1.3.1_03

 - Tomcat 4.0.3



 Does anyone have a clue on what is the problem?





 Regards

 Rui Oliveira





--
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]




Configure for read HTML from other source

2002-05-29 Thread Raul Medina Nussbaum

Hi! Tomcat reads de HTML files from de WEB-INF/servlets directory, I want to change 
that and read from WEB-INF/jsp/sub-directory 

How can I accomplish that?
 -


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




please fix my stupid classpath

2002-05-29 Thread Richard Diaz

I set this up like a year ago and now that I look at
it, it seems wacked. Looks like I had to add all the
servlet jar files?

Suggestions most welcome.

I'm using Apache, Tomcat 4, Sun sdk 131

Rich

SET
CLASSPATH=c:\sunsdk131;c:\sunsdk131\lib;c:\sunsdk131\src.jar;c:\sunsdk131\lib\tools.jar;C:\Program
Files\Apache Tomcat
4.0\webapps\twc\Web-inf\lib;C:\Program Files\Apache
Tomcat 4.0\lib\tools.jar;C:\Program Files\Apache
Tomcat 4.0\common\lib\servlet.jar;C:\Program
Files\Apache Tomcat
4.0\lib\jasper-runtime.jar;C:\Program Files\Apache
Tomcat 4.0\lib\naming-factory.jar;C:\Program
Files\Apache Tomcat
4.0\common\jasper\jaxp.jar;C:\Program Files\Apache
Tomcat 4.0\jasper\jasper-compiler.jar;

=


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Re: please fix my stupid classpath

2002-05-29 Thread Martin van den Bemt

Hi,

Tomcat handles your classpath, you don't have to set that.. I even think
you get some classloader issues with that.. 
If you need it for compiling, you should have a look at ant, who can
arrange these things a lot easier..

Mvgr,
Martin

On Thu, 2002-05-30 at 00:08, Richard Diaz wrote:
 I set this up like a year ago and now that I look at
 it, it seems wacked. Looks like I had to add all the
 servlet jar files?
 
 Suggestions most welcome.
 
 I'm using Apache, Tomcat 4, Sun sdk 131
 
 Rich
 
 SET
 
CLASSPATH=c:\sunsdk131;c:\sunsdk131\lib;c:\sunsdk131\src.jar;c:\sunsdk131\lib\tools.jar;C:\Program
 Files\Apache Tomcat
 4.0\webapps\twc\Web-inf\lib;C:\Program Files\Apache
 Tomcat 4.0\lib\tools.jar;C:\Program Files\Apache
 Tomcat 4.0\common\lib\servlet.jar;C:\Program
 Files\Apache Tomcat
 4.0\lib\jasper-runtime.jar;C:\Program Files\Apache
 Tomcat 4.0\lib\naming-factory.jar;C:\Program
 Files\Apache Tomcat
 4.0\common\jasper\jaxp.jar;C:\Program Files\Apache
 Tomcat 4.0\jasper\jasper-compiler.jar;
 
 =
 
 
 __
 Do You Yahoo!?
 Yahoo! - Official partner of 2002 FIFA World Cup
 http://fifaworldcup.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: please fix my stupid classpath

2002-05-29 Thread Richard Diaz

I am using the command line (javac) to compile my java
files. And now I am trying to .jar them...

Rich

--- Martin van den Bemt [EMAIL PROTECTED] wrote:
 Hi,
 
 Tomcat handles your classpath, you don't have to set
 that.. I even think
 you get some classloader issues with that.. 
 If you need it for compiling, you should have a look
 at ant, who can
 arrange these things a lot easier..
 
 Mvgr,
 Martin
 
 On Thu, 2002-05-30 at 00:08, Richard Diaz wrote:
  I set this up like a year ago and now that I look
 at
  it, it seems wacked. Looks like I had to add all
 the
  servlet jar files?
  
  Suggestions most welcome.
  
  I'm using Apache, Tomcat 4, Sun sdk 131
  
  Rich
  
  SET
 

CLASSPATH=c:\sunsdk131;c:\sunsdk131\lib;c:\sunsdk131\src.jar;c:\sunsdk131\lib\tools.jar;C:\Program
  Files\Apache Tomcat
  4.0\webapps\twc\Web-inf\lib;C:\Program
 Files\Apache
  Tomcat 4.0\lib\tools.jar;C:\Program Files\Apache
  Tomcat 4.0\common\lib\servlet.jar;C:\Program
  Files\Apache Tomcat
  4.0\lib\jasper-runtime.jar;C:\Program Files\Apache
  Tomcat 4.0\lib\naming-factory.jar;C:\Program
  Files\Apache Tomcat
  4.0\common\jasper\jaxp.jar;C:\Program Files\Apache
  Tomcat 4.0\jasper\jasper-compiler.jar;
  
  =
  
  
  __
  Do You Yahoo!?
  Yahoo! - Official partner of 2002 FIFA World Cup
  http://fifaworldcup.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!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




RE: HELP: IIS 5.0 and Tomcat 4.0.3

2002-05-29 Thread Nicholas Orr

Thanks for that, exactly what I needed.
I think this is the better of the two
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-iis-howto.html

-Original Message-
From: Terrence Knoesen [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, May 29, 2002 5:52 PM
To: 'Tomcat Users List'
Subject: RE: HELP: IIS 5.0 and Tomcat 4.0.3


Hello there Nicholas
Take a look at this it should help
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-iis-howto.html
http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/
Terrence.


**
The information contained in this e-mail is confidential and is
intended only for the use of the addressee(s).
If you receive this e-mail in error, any use, distribution or
copying of this e-mail is not permitted. You are requested to
forward unwanted e-mail and address any problems to the
MIM Holdings Limited Support Centre.

For general enquires:   ++61 7 3833 8000
Support Centre e-mail:  [EMAIL PROTECTED]
Support Centre phone:   Australia 1800500646
International ++61 7 38338042
**


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




RE: please fix my stupid classpath

2002-05-29 Thread Whitcomb, Roger

Rich -
I have NO classpath defined and am doing almost minute-by-minute builds using 
Ant.  Here is my build.xml file as an example.  Notice the tomcat-home definition 
at the top which probably would change and then the servlet-path element which 
points to all the Tomcat servlet .jar files.

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: Richard Diaz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 3:14 PM
To: Tomcat Users List
Subject: Re: please fix my stupid classpath


I am using the command line (javac) to compile my java
files. And now I am trying to .jar them...

Rich

--- Martin van den Bemt [EMAIL PROTECTED] wrote:
 Hi,
 
 Tomcat handles your classpath, you don't have to set
 that.. I even think
 you get some classloader issues with that.. 
 If you need it for compiling, you should have a look
 at ant, who can
 arrange these things a lot easier..
 
 Mvgr,
 Martin
 
 On Thu, 2002-05-30 at 00:08, Richard Diaz wrote:
  I set this up like a year ago and now that I look
 at
  it, it seems wacked. Looks like I had to add all
 the
  servlet jar files?
  
  Suggestions most welcome.
  
  I'm using Apache, Tomcat 4, Sun sdk 131
  
  Rich
  
  SET
 

CLASSPATH=c:\sunsdk131;c:\sunsdk131\lib;c:\sunsdk131\src.jar;c:\sunsdk131\lib\tools.jar;C:\Program
  Files\Apache Tomcat
  4.0\webapps\twc\Web-inf\lib;C:\Program
 Files\Apache
  Tomcat 4.0\lib\tools.jar;C:\Program Files\Apache
  Tomcat 4.0\common\lib\servlet.jar;C:\Program
  Files\Apache Tomcat
  4.0\lib\jasper-runtime.jar;C:\Program Files\Apache
  Tomcat 4.0\lib\naming-factory.jar;C:\Program
  Files\Apache Tomcat
  4.0\common\jasper\jaxp.jar;C:\Program Files\Apache
  Tomcat 4.0\jasper\jasper-compiler.jar;
  
  =
  
  
  __
  Do You Yahoo!?
  Yahoo! - Official partner of 2002 FIFA World Cup
  http://fifaworldcup.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!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




build.xml
Description: Binary data

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


RE: please fix my stupid classpath

2002-05-29 Thread Martin van den Bemt

!-- Note: this is a kludge until we figure out how to pass this value
in --
property name=tomcat-home location=C:/Program Files/Apache
Tomcat 4.0/

Checkout http://jakarta.apache.org/ant/manual/CoreTasks/property.html
especially the parameter environment needs looking at ;)

Mvgr,
Martin

On Thu, 2002-05-30 at 00:45, Whitcomb, Roger wrote:
 Rich -
   I have NO classpath defined and am doing almost minute-by-minute builds using 
Ant.  Here is my build.xml file as an example.  Notice the tomcat-home definition 
at the top which probably would change and then the servlet-path element which 
points to all the Tomcat servlet .jar files.
 
 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: Richard Diaz [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 29, 2002 3:14 PM
 To: Tomcat Users List
 Subject: Re: please fix my stupid classpath
 
 
 I am using the command line (javac) to compile my java
 files. And now I am trying to .jar them...
 
 Rich
 
 --- Martin van den Bemt [EMAIL PROTECTED] wrote:
  Hi,
  
  Tomcat handles your classpath, you don't have to set
  that.. I even think
  you get some classloader issues with that.. 
  If you need it for compiling, you should have a look
  at ant, who can
  arrange these things a lot easier..
  
  Mvgr,
  Martin
  
  On Thu, 2002-05-30 at 00:08, Richard Diaz wrote:
   I set this up like a year ago and now that I look
  at
   it, it seems wacked. Looks like I had to add all
  the
   servlet jar files?
   
   Suggestions most welcome.
   
   I'm using Apache, Tomcat 4, Sun sdk 131
   
   Rich
   
   SET
  
 
 
CLASSPATH=c:\sunsdk131;c:\sunsdk131\lib;c:\sunsdk131\src.jar;c:\sunsdk131\lib\tools.jar;C:\Program
   Files\Apache Tomcat
   4.0\webapps\twc\Web-inf\lib;C:\Program
  Files\Apache
   Tomcat 4.0\lib\tools.jar;C:\Program Files\Apache
   Tomcat 4.0\common\lib\servlet.jar;C:\Program
   Files\Apache Tomcat
   4.0\lib\jasper-runtime.jar;C:\Program Files\Apache
   Tomcat 4.0\lib\naming-factory.jar;C:\Program
   Files\Apache Tomcat
   4.0\common\jasper\jaxp.jar;C:\Program Files\Apache
   Tomcat 4.0\jasper\jasper-compiler.jar;
   
   =
   
   
   __
   Do You Yahoo!?
   Yahoo! - Official partner of 2002 FIFA World Cup
   http://fifaworldcup.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!?
 Yahoo! - Official partner of 2002 FIFA World Cup
 http://fifaworldcup.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: please fix my stupid classpath

2002-05-29 Thread Whitcomb, Roger

Thanks Martin!

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: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 3:50 PM
To: Tomcat Users List
Subject: RE: please fix my stupid classpath


!-- Note: this is a kludge until we figure out how to pass this value
in --
property name=tomcat-home location=C:/Program Files/Apache
Tomcat 4.0/

Checkout http://jakarta.apache.org/ant/manual/CoreTasks/property.html
especially the parameter environment needs looking at ;)

Mvgr,
Martin

On Thu, 2002-05-30 at 00:45, Whitcomb, Roger wrote:
 Rich -
   I have NO classpath defined and am doing almost minute-by-minute builds using 
Ant.  Here is my build.xml file as an example.  Notice the tomcat-home definition 
at the top which probably would change and then the servlet-path element which 
points to all the Tomcat servlet .jar files.
 
 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: Richard Diaz [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 29, 2002 3:14 PM
 To: Tomcat Users List
 Subject: Re: please fix my stupid classpath
 
 
 I am using the command line (javac) to compile my java
 files. And now I am trying to .jar them...
 
 Rich
 
 --- Martin van den Bemt [EMAIL PROTECTED] wrote:
  Hi,
  
  Tomcat handles your classpath, you don't have to set
  that.. I even think
  you get some classloader issues with that.. 
  If you need it for compiling, you should have a look
  at ant, who can
  arrange these things a lot easier..
  
  Mvgr,
  Martin
  
  On Thu, 2002-05-30 at 00:08, Richard Diaz wrote:
   I set this up like a year ago and now that I look
  at
   it, it seems wacked. Looks like I had to add all
  the
   servlet jar files?
   
   Suggestions most welcome.
   
   I'm using Apache, Tomcat 4, Sun sdk 131
   
   Rich
   
   SET
  
 
 
CLASSPATH=c:\sunsdk131;c:\sunsdk131\lib;c:\sunsdk131\src.jar;c:\sunsdk131\lib\tools.jar;C:\Program
   Files\Apache Tomcat
   4.0\webapps\twc\Web-inf\lib;C:\Program
  Files\Apache
   Tomcat 4.0\lib\tools.jar;C:\Program Files\Apache
   Tomcat 4.0\common\lib\servlet.jar;C:\Program
   Files\Apache Tomcat
   4.0\lib\jasper-runtime.jar;C:\Program Files\Apache
   Tomcat 4.0\lib\naming-factory.jar;C:\Program
   Files\Apache Tomcat
   4.0\common\jasper\jaxp.jar;C:\Program Files\Apache
   Tomcat 4.0\jasper\jasper-compiler.jar;
   
   =
   
   
   __
   Do You Yahoo!?
   Yahoo! - Official partner of 2002 FIFA World Cup
   http://fifaworldcup.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!?
 Yahoo! - Official partner of 2002 FIFA World Cup
 http://fifaworldcup.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]

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




Stylesheet link blows warp connection

2002-05-29 Thread Rupert Young

Hi,

I am testing a very simple jsp, which displays the date (see below).
I can get the page up ok, but when I click refresh it works a few times then
the browser seems to hang and the page doesn't come up.  If I click stop and
then refresh I get an error (webapp:error 500).

If I take out the stylesheet link it works ok.  Does anyone know why this is
happening ?

Regards,
Rupert Young

!doctype html public -//w3c//dtd html 4.0 transitional//en
html
head
   meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
   meta http-equiv=Context-Type content=text/html
   meta name=GENERATOR content=Microsoft FrontPage 4.0
   link rel=stylesheet type=text/css href=style/links.css
/head

 p align=centerfont face=Verdana Ref size=2Today/font/p
  p align=centerfont face=Verdana Ref size=2%= new
java.util.Date()%nbsp;/font/p

/html



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




This has me ???Puzzled???: Switch being done but not really

2002-05-29 Thread Nicholas Orr

I have attached two files Source.txt and Error.txt.

Have a look at the Error.txt file first, then look at the Source.txt file.

Now tell me, is the switch statement getting done or not? I would think it
is getting done but the values are not being passed.

Puzzeld and Amazed,

Nicholas




**
The information contained in this e-mail is confidential and is
intended only for the use of the addressee(s).
If you receive this e-mail in error, any use, distribution or
copying of this e-mail is not permitted. You are requested to
forward unwanted e-mail and address any problems to the
MIM Holdings Limited Support Centre.

For general enquires:   ++61 7 3833 8000
Support Centre e-mail:  [EMAIL PROTECTED]
Support Centre phone:   Australia 1800500646
International ++61 7 38338042
**



Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error



type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server Error) that 
prevented it from fulfilling this request.

exception 

org.apache.jasper.JasperException: Unable to compile class for JSPNote: 
sun.tools.javac.Main has been deprecated.


An error occurred at line: 47 in the jsp file: /Forms/LanIDForm.jsp

Generated servlet error:
C:\Program 
Files\Java\Jakarta\Tomcat-4.0\work\localhost\_\Forms\LanIDForm$jsp.java:102: Variable 
sSubTitle may not have been initialized.
out.print( sSubTitle);
   ^


An error occurred at line: 60 in the jsp file: /Forms/LanIDForm.jsp

Generated servlet error:
C:\Program 
Files\Java\Jakarta\Tomcat-4.0\work\localhost\_\Forms\LanIDForm$jsp.java:116: Variable 
sFormName may not have been initialized.
out.print( sFormName);
   ^


An error occurred at line: 91 in the jsp file: /Forms/LanIDForm.jsp

Generated servlet error:
C:\Program 
Files\Java\Jakarta\Tomcat-4.0\work\localhost\_\Forms\LanIDForm$jsp.java:167: Variable 
sPageName may not have been initialized.
JspRuntimeLibrary.include(request, response,  sPageName + 
_jspx_qStr, out, true);
  ^
3 errors, 1 warning

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 

RE: This has me ???Puzzled???: Switch being done but not really

2002-05-29 Thread Galbayar

add this
sPage = request.getParameter(Page);
sSubTitle=null;
sFormName=null;
sPageName

-Original Message-
From: Nicholas Orr [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 8:08 AM
To: Tomcat Users List
Subject: This has me ???Puzzled???: Switch being done but not really


I have attached two files Source.txt and Error.txt.

Have a look at the Error.txt file first, then look at the Source.txt file.

Now tell me, is the switch statement getting done or not? I would think it
is getting done but the values are not being passed.

Puzzeld and Amazed,

Nicholas




**
The information contained in this e-mail is confidential and is
intended only for the use of the addressee(s).
If you receive this e-mail in error, any use, distribution or
copying of this e-mail is not permitted. You are requested to
forward unwanted e-mail and address any problems to the
MIM Holdings Limited Support Centre.

For general enquires:   ++61 7 3833 8000
Support Centre e-mail:  [EMAIL PROTECTED]
Support Centre phone:   Australia 1800500646
International ++61 7 38338042
**



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




RE: please fix my stupid classpath

2002-05-29 Thread Richard Diaz

All I am trying to do is eliminate the Servlet
Exception wrong name error I am getting ever since I
moved my class files into a jar file. I added my jar
file as the last entry of my classpath below...

ANT = 'Another Neat Tool' THAT I GOTA LEARN?!?!?!
AAGGGHHH =(

Rich

SET
CLASSPATH=c:\sunsdk131;c:\sunsdk131\lib;c:\sunsdk131\src.jar;c:\sunsdk131\lib\tools.jar;C:\Program
Files\Apache Tomcat
4.0\webapps\twc\Web-inf\lib;C:\Program Files\Apache
Tomcat 4.0\lib\tools.jar;C:\Program Files\Apache
Tomcat 4.0\common\lib\servlet.jar;C:\Program
Files\Apache Tomcat
4.0\lib\jasper-runtime.jar;C:\Program Files\Apache
Tomcat 4.0\lib\naming-factory.jar;C:\Program
Files\Apache Tomcat
4.0\common\jasper\jaxp.jar;C:\Program Files\Apache
Tomcat 4.0\jasper\jasper-compiler.jar;C:\Program
Files\Apache Tomcat 
4.0\webapps\twc\Web-inf\lib\thewebclassroom\base.jar



=


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




RE: This has me ???Puzzled???: Switch being done but not really

2002-05-29 Thread Nicholas Orr

Thanks for that, How come those lines make all the difference?
When I had a 'default' case in my switch everything worked fine, but I
didn't want a default in there.  So I took it out.  Then I got my problem,
how come.

Nicholas

-Original Message-
From: Galbayar [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, May 30, 2002 9:28 AM
To: Tomcat Users List
Subject: RE: This has me ???Puzzled???: Switch being done but not really


add this
sPage = request.getParameter(Page);
sSubTitle=null;
sFormName=null;
sPageName


**
The information contained in this e-mail is confidential and is
intended only for the use of the addressee(s).
If you receive this e-mail in error, any use, distribution or
copying of this e-mail is not permitted. You are requested to
forward unwanted e-mail and address any problems to the
MIM Holdings Limited Support Centre.

For general enquires:   ++61 7 3833 8000
Support Centre e-mail:  [EMAIL PROTECTED]
Support Centre phone:   Australia 1800500646
International ++61 7 38338042
**


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




RE: Memory Leak?

2002-05-29 Thread Mark Shurgot

We have narrowed it down to a simple test page.  Try this out and see if you
have the same problem.

Attached is the test page, the correct results, and the corrupted results.

Run the test page a few times.  Take note that the first three or four times
you access the page, all is fine.  The fourth or fifth time the numbers are
corrupt.

If you change line# 26 to not check the String value of the double, the
error never occurs.  (This is the only way we could reproduce the error in
such a simple page.  The production versions that are having these errors
are very large, complex pages with multiple data members in their inner
classes: Strings, ints, doubles, etc.)

Thanks everyone for you help!

-Original Message-
From: Zachary Kuhn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 11:59 AM
To: Tomcat Users List
Subject: RE: Memory Leak?


Have you tried explicitly saying new Outerclass.InnerClass() ? maybe that
will help.
Zak


-Original Message-
From: Jay Burgess [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 11:26 AM
To: [EMAIL PROTECTED]
Subject: RE: Memory Leak?


Doesn't matter, you don't name an instance variable and a parameter the
same thing.???

Unless I'm completely missing the point of your comment, Of course you
can.  I do it all the time, and it's in lots of books that way.  Prefixing
with this. separates the two variables.

Your suggestion of looking at the generated code is a good one.  Tomcat may
have trouble parsing a JSP with an inner class, and be generating something
different than what we'd expect.  I don't see anything obviously wrong
looking at the sample code.

Jay


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




tstMemLeak.jsp
Description: Binary data


correct.htm
Description: Binary data


corrupt.htm
Description: Binary data

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


Re: Tomcat Hangs-UP...

2002-05-29 Thread Wagner Danda

Hello,
Hi,

my comments are below.

-
Okay, a simple answer from a simple mind:
Check that you are closing resources in your java code appropriately. Don't rely on 
garbage collection!

Are you closing any files opened by your Java code?
Yes, I am.


Are you always closing your jdbc SQL statements/result sets, etc...?
Yes, I am. If I don´t close-it, I will get TooMayOpenCursors errors. I´ve already 
fixed this problem.


Are you closing your Oracle connections? Are there too many open connections?
I am using an Oracle implementation of connection pool. Every user that log on system 
get an connection from that pool. The connection will not br released until this user 
close the browser window, or
the tomcat session gets timeout (30 minutes).
Tomcat is hanging with 130 (more or less) connections out of the pool (about 110 
users).


Are there any blocking db locks?
No, there are not.



I have had this problem before where my db connected application had not committed 
it's transaction and ended up hanging tomcat. Always check to see that your resources 
are being released and
not halting other requests.
Our methods that use/need transaction (doing updates or deletes) always do commit or 
rollback, BUT, for connections that only do select querys, commit or rollback are 
never called. MAY THIS BE
A PROBLEM Remember that an connection is associated with the user (browser) 
session...




Since you're using Oracle, check the V$SESSION view  to make sure you don't have more 
active connections than you believe you should have. Check the v$session_wait to make 
sure nothing is
blocked. I'll bet a t-shirt that it's a db problem. If you can't get to those views, 
ask your friendly dba to help.
I am already doing this for a long time, and we are not having this problem.



Well, just to inform about our situation:
our application is already in production, and there is about 300 users TRYING to 
use-it... Another thing, our company depends 100% of this software.

More about our structure:
we are using an arrowpoint cluster with 2 Sun UltraSparc (see descriptions below). And 
fortunetly, wen tomcat hangs in one machine, the users can go the another tomcat. BUT, 
at every tomcat stop,
all users of that machine have to re-login into the another tomcat (because the user 
loose his session).


Any other help? Any idea??

Please, we are almost givin up of tomcat and changing to another payed solution (like 
Websphere, JRun, ...)

PS: we are trying to solve this problem since 4 months ago!!! We arealdy tried A LOT 
of alternatives solutions... We neen and serius help.



thank you all in advance,


Wagner Danda
[EMAIL PROTECTED]
Sun Java Certified Programmer for the Java 2 [tm]


 [EMAIL PROTECTED] 05/28/02 07:24PM 
Here, we have the same problem!!! What can it be?

Our configuration:

 - SunOS 5.8;
 - Solaris 8;
 - Dual UltraSparc 400Mhz;
 - J2SE SUN 1.4;
 - Tomcat 4.0.3;
 - We are using -Xmx1024 -Xms512;
 - MaxProcessors=250, MinProcessors=10, acceptCount=250;
 - Oracle Thin JDBC;

PS 1: we are not having the classic OutOfMemory error. Tomcat just
hangs-up with no reason.
PS 2: We already used OptimizeIt to tune the application.
PS 3: Tomcat stops even with a low rate of usage.

Wagner Danda

 -- Mensagem original ---

 De  : Rui Oliveira [EMAIL PROTECTED]
 Para: [EMAIL PROTECTED]
 Cc  :
 Data: Tue, 28 May 2002 18:54:36 +0100
 Assunto : Tomcat Hangs-UP...

 Hello,



 I have a Tomcat Server running on Solaris as JSP and WEB server. Aft
er
 executing for a while, the Tomcat just Hangs-UP and the only way of
 restarting it is to kill the Tomcat process.



 My configuration is the following:



 - SunOS 5.8

 - Solaris 8

 - JRE 1.3.1_03

 - Tomcat 4.0.3



 Does anyone have a clue on what is the problem?





 Regards

 Rui Oliveira





--
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]




Bug? Does Tomcat 4.0.3 pay attention to the cached attribute?

2002-05-29 Thread Eric . Bier

Tomcat Users,

After trying without success to turn off caching in Tomcat 4.0.3 using:

Context path= docBase=ROOT debug=0
  Resources cached=false/
/Context

my team started searching through the code for places that change the value of the 
caching parameter.  We didn't find any.  Did we miss something, or is this feature not 
implemented in 4.0.3?

-- Eric

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




RE: Memory Leak?

2002-05-29 Thread Zachary Kuhn

I'm sorry, I don't have access to my tomcat server at the moment, but if you
replace that String.valueOf(double) call to a
Double.toString(double) does the same problem occur? I would also suggest
you throw some printlines of that value out so you can more closely trace
the problem.
Zak

-Original Message-
From: Mark Shurgot [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 5:26 PM
To: 'Tomcat Users List'
Subject: RE: Memory Leak?


We have narrowed it down to a simple test page.  Try this out and see if you
have the same problem.

Attached is the test page, the correct results, and the corrupted results.

Run the test page a few times.  Take note that the first three or four times
you access the page, all is fine.  The fourth or fifth time the numbers are
corrupt.

If you change line# 26 to not check the String value of the double, the
error never occurs.  (This is the only way we could reproduce the error in
such a simple page.  The production versions that are having these errors
are very large, complex pages with multiple data members in their inner
classes: Strings, ints, doubles, etc.)

Thanks everyone for you help!

-Original Message-
From: Zachary Kuhn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 11:59 AM
To: Tomcat Users List
Subject: RE: Memory Leak?


Have you tried explicitly saying new Outerclass.InnerClass() ? maybe that
will help.
Zak


-Original Message-
From: Jay Burgess [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 11:26 AM
To: [EMAIL PROTECTED]
Subject: RE: Memory Leak?


Doesn't matter, you don't name an instance variable and a parameter the
same thing.???

Unless I'm completely missing the point of your comment, Of course you
can.  I do it all the time, and it's in lots of books that way.  Prefixing
with this. separates the two variables.

Your suggestion of looking at the generated code is a good one.  Tomcat may
have trouble parsing a JSP with an inner class, and be generating something
different than what we'd expect.  I don't see anything obviously wrong
looking at the sample code.

Jay


--
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: please fix my stupid classpath

2002-05-29 Thread Phillip Morelock

the way to pass things in is -d

this is how you can have the same build.xml on several systems...just use -d
to pass in specific env vars.

fillup


On 5/29/02 3:49 PM, Martin van den Bemt [EMAIL PROTECTED] wrote:

 !-- Note: this is a kludge until we figure out how to pass this value
 in --
   property name=tomcat-home location=C:/Program Files/Apache
 Tomcat 4.0/
 
 Checkout http://jakarta.apache.org/ant/manual/CoreTasks/property.html
 especially the parameter environment needs looking at ;)
 
 Mvgr,
 Martin
 
 On Thu, 2002-05-30 at 00:45, Whitcomb, Roger wrote:
 Rich -
 I have NO classpath defined and am doing almost minute-by-minute builds using
 Ant.  Here is my build.xml file as an example.  Notice the tomcat-home
 definition at the top which probably would change and then the servlet-path
 element which points to all the Tomcat servlet .jar files.
 
 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: Richard Diaz [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 29, 2002 3:14 PM
 To: Tomcat Users List
 Subject: Re: please fix my stupid classpath
 
 
 I am using the command line (javac) to compile my java
 files. And now I am trying to .jar them...
 
 Rich
 
 --- Martin van den Bemt [EMAIL PROTECTED] wrote:
 Hi,
 
 Tomcat handles your classpath, you don't have to set
 that.. I even think
 you get some classloader issues with that..
 If you need it for compiling, you should have a look
 at ant, who can
 arrange these things a lot easier..
 
 Mvgr,
 Martin
 
 On Thu, 2002-05-30 at 00:08, Richard Diaz wrote:
 I set this up like a year ago and now that I look
 at
 it, it seems wacked. Looks like I had to add all
 the
 servlet jar files?
 
 Suggestions most welcome.
 
 I'm using Apache, Tomcat 4, Sun sdk 131
 
 Rich
 
 SET
 
 
 CLASSPATH=c:\sunsdk131;c:\sunsdk131\lib;c:\sunsdk131\src.jar;c:\sunsdk131\lib
 \tools.jar;C:\Program
 Files\Apache Tomcat
 4.0\webapps\twc\Web-inf\lib;C:\Program
 Files\Apache
 Tomcat 4.0\lib\tools.jar;C:\Program Files\Apache
 Tomcat 4.0\common\lib\servlet.jar;C:\Program
 Files\Apache Tomcat
 4.0\lib\jasper-runtime.jar;C:\Program Files\Apache
 Tomcat 4.0\lib\naming-factory.jar;C:\Program
 Files\Apache Tomcat
 4.0\common\jasper\jaxp.jar;C:\Program Files\Apache
 Tomcat 4.0\jasper\jasper-compiler.jar;
 
 =
 
 
 __
 Do You Yahoo!?
 Yahoo! - Official partner of 2002 FIFA World Cup
 http://fifaworldcup.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!?
 Yahoo! - Official partner of 2002 FIFA World Cup
 http://fifaworldcup.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]
 


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




Re: Tomcat Hangs-UP...

2002-05-29 Thread Phillip Morelock

Two comments below.

fillup

 Are you closing your Oracle connections? Are there too many open connections?
 I am using an Oracle implementation of connection pool. Every user that log on
 system get an connection from that pool. The connection will not br released
 until this user close the browser window, or
 the tomcat session gets timeout (30 minutes).
 Tomcat is hanging with 130 (more or less) connections out of the pool (about
 110 users).

This is the wrong way to use a connection pool, unless you have a very
narrow set of specific theoretical requirements, which I still have never
seen in practice.  Each REQUEST should be grabbing a connection and
returning it to the pool, not each SESSION.  Using it for sessions in fact
makes your pool worse and slower than just opening a new connection for each
request with zero pooling.  You're using the pool in the wrong way.

 
 
 I have had this problem before where my db connected application had not
 committed it's transaction and ended up hanging tomcat. Always check to see
 that your resources are being released and
 not halting other requests.
 Our methods that use/need transaction (doing updates or deletes) always do
 commit or rollback, BUT, for connections that only do select querys, commit
 or rollback are never called. MAY THIS BE
 A PROBLEM Remember that an connection is associated with the user
 (browser) session...

see Connection.setAutoCommit( )


 
 
 
 
 Since you're using Oracle, check the V$SESSION view  to make sure you don't
 have more active connections than you believe you should have. Check the
 v$session_wait to make sure nothing is
 blocked. I'll bet a t-shirt that it's a db problem. If you can't get to those
 views, ask your friendly dba to help.
 I am already doing this for a long time, and we are not having this problem.
 
 
 
 Well, just to inform about our situation:
 our application is already in production, and there is about 300 users TRYING
 to use-it... Another thing, our company depends 100% of this software.
 
 More about our structure:
 we are using an arrowpoint cluster with 2 Sun UltraSparc (see descriptions
 below). And fortunetly, wen tomcat hangs in one machine, the users can go the
 another tomcat. BUT, at every tomcat stop,
 all users of that machine have to re-login into the another tomcat (because
 the user loose his session).
 
 
 Any other help? Any idea??
 
 Please, we are almost givin up of tomcat and changing to another payed
 solution (like Websphere, JRun, ...)
 
 PS: we are trying to solve this problem since 4 months ago!!! We arealdy tried
 A LOT of alternatives solutions... We neen and serius help.
 
 
 
 thank you all in advance,
 
 
 Wagner Danda
 [EMAIL PROTECTED]
 Sun Java Certified Programmer for the Java 2 [tm]
 
 
 [EMAIL PROTECTED] 05/28/02 07:24PM 
 Here, we have the same problem!!! What can it be?
 
 Our configuration:
 
 - SunOS 5.8;
 - Solaris 8;
 - Dual UltraSparc 400Mhz;
 - J2SE SUN 1.4;
 - Tomcat 4.0.3;
 - We are using -Xmx1024 -Xms512;
 - MaxProcessors=250, MinProcessors=10, acceptCount=250;
 - Oracle Thin JDBC;
 
 PS 1: we are not having the classic OutOfMemory error. Tomcat just
 hangs-up with no reason.
 PS 2: We already used OptimizeIt to tune the application.
 PS 3: Tomcat stops even with a low rate of usage.
 
 Wagner Danda
 
 -- Mensagem original ---
 
 De  : Rui Oliveira [EMAIL PROTECTED]
 Para: [EMAIL PROTECTED]
 Cc  :
 Data: Tue, 28 May 2002 18:54:36 +0100
 Assunto : Tomcat Hangs-UP...
 
 Hello,
 
 
 
 I have a Tomcat Server running on Solaris as JSP and WEB server. Aft
 er
 executing for a while, the Tomcat just Hangs-UP and the only way of
 restarting it is to kill the Tomcat process.
 
 
 
 My configuration is the following:
 
 
 
 - SunOS 5.8
 
 - Solaris 8
 
 - JRE 1.3.1_03
 
 - Tomcat 4.0.3
 
 
 
 Does anyone have a clue on what is the problem?
 
 
 
 
 
 Regards
 
 Rui Oliveira
 
 
 
 
 
 --
 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: please fix my stupid classpath

2002-05-29 Thread Phillip Morelock

Get one of the jars you packed yourself.

Type 

jar tf myjar.jar

and send your output.

fillup


On 5/29/02 4:28 PM, Richard Diaz [EMAIL PROTECTED] wrote:

 All I am trying to do is eliminate the Servlet
 Exception wrong name error I am getting ever since I
 moved my class files into a jar file. I added my jar
 file as the last entry of my classpath below...
 
 ANT = 'Another Neat Tool' THAT I GOTA LEARN?!?!?!
 AAGGGHHH =(
 
 Rich
 
 SET
 CLASSPATH=c:\sunsdk131;c:\sunsdk131\lib;c:\sunsdk131\src.jar;c:\sunsdk131\lib\
 tools.jar;C:\Program
 Files\Apache Tomcat
 4.0\webapps\twc\Web-inf\lib;C:\Program Files\Apache
 Tomcat 4.0\lib\tools.jar;C:\Program Files\Apache
 Tomcat 4.0\common\lib\servlet.jar;C:\Program
 Files\Apache Tomcat
 4.0\lib\jasper-runtime.jar;C:\Program Files\Apache
 Tomcat 4.0\lib\naming-factory.jar;C:\Program
 Files\Apache Tomcat
 4.0\common\jasper\jaxp.jar;C:\Program Files\Apache
 Tomcat 4.0\jasper\jasper-compiler.jar;C:\Program
 Files\Apache Tomcat
 4.0\webapps\twc\Web-inf\lib\thewebclassroom\base.jar
 
 
 
 =
 
 
 __
 Do You Yahoo!?
 Yahoo! - Official partner of 2002 FIFA World Cup
 http://fifaworldcup.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: IIS 5.0 and Tomcat 4.0.3

2002-05-29 Thread Charles Brown

   Look at http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/


- Original Message -
From: Nicholas Orr [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, May 28, 2002 7:48 PM
Subject: HELP: IIS 5.0 and Tomcat 4.0.3


 Hi,

 How do I get tomcat to take care of jsp pages and IIS to take care of
html,
 asp pages?

 I don't have the isapi_redirect.dll, so start from the beginning plz.




 **
 The information contained in this e-mail is confidential and is
 intended only for the use of the addressee(s).
 If you receive this e-mail in error, any use, distribution or
 copying of this e-mail is not permitted. You are requested to
 forward unwanted e-mail and address any problems to the
 MIM Holdings Limited Support Centre.

 For general enquires: ++61 7 3833 8000
 Support Centre e-mail: [EMAIL PROTECTED]
 Support Centre phone:  Australia 1800500646
 International ++61 7 38338042
 **


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



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002


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




Re: Request Reader

2002-05-29 Thread Phillip Morelock

what happens if you directly use the input stream instead?

req.getInputStream( )

cheers
fillup




On 5/29/02 1:57 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Can someone tell me why I get a reader time out when I try to get the body
 of a request and that body is empty? Why wouldn't the reader just return
 null?
 
 Here is the code that times out:
 
 Public String getBody(HttpServletRequest req)
 {
   StringBuffer buf = new StringBuffer();
   try
   {
   BufferedReader rdr = req.getReader();
   String bufRead = rdr.readLine();
   while ( bufRead != null )
   {
   buf.append(bufRead);
   bufRead = rdr.readLine();
   }
   }
   catch ( IOException e )
   {
   log.error(*** Problem Reading from the buffered reader
 *);
   log.error(* Message:  + e.getMessage() );
 
 log.error(**);
   buf = new StringBuffer();
   }
   return buf.toString();
 }
 
 It takes forever to get this code to return when the body is empty. Does
 someone have a better way?
 
 George Smith
 
 --
 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: Use Worker MPM with mod_webapp

2002-05-29 Thread Steve Wong


bash-2.03# env | grep PATH
LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/usr/local/mysql/lib/mysql
CLASSPATH=.:/opt/tomcat/lib/common:/opt/tomcat/lib/common/mysql_uncomp.jar:/opt/
tomcat/lib/jnisso.jar:/opt/tomcat/lib/common/servlet.jar:/usr/jakarta-ant-1.4/cr
imson.jar:/usr/jakarta-ant-1.4/jaxp.jar:/usr/jakarta-ant-1.4/xalan.jar:/usr/jaka
rta-ant-1.4/lib/ant.jar:/opt/tomcat/lib/common/log4j.jar:/opt/tomcat/lib/common/
log4j-core.jar:/opt/tomcat/lib/common/jndi.jar:/opt/tomcat/lib/common/providerut
il.jar:/opt/tomcat/lib/common/ldap.jar:/export/home/dereksin/JMF2.1.1/lib/jmf.ja
r:/export/home/dereksin/JMF2.1.1/lib/sound.jar:/opt/tomcat/webapps/sso/WEB-INF/c
lasses
MANPATH=/usr/local/man:/usr/share/man
PATH=/usr/j2se/bin:/usr/j2se/bin:/usr/local/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:
.:/usr/jakarta-ant-1.4/bin:/export/home/raymond/package/openssl-0.9.6b/apps/:/us
r/dt/bin:/opt/cvs/bin/
bash-2.03# which cc
no cc in /usr/j2se/bin /usr/j2se/bin /usr/local/bin /usr/bin /usr/sbin /usr/ccs/
bin . /usr/jakarta-ant-1.4/bin /export/home/raymond/package/openssl-0.9.6b/apps/
 /usr/dt/bin /opt/cvs/bin/
bash-2.03# which gcc
/usr/local/bin/gcc
bash-2.03# which ld
/usr/local/bin/ld

-Original Message-
From: Tino Dai [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 27, 2002 9:52 PM
To: Tomcat Users List
Subject: Re: Use Worker MPM with mod_webapp


Steve,

  Could you do the following on your Solaris machine:

  env | grep PATH

  which cc
  which gcc
  which ld

  This should give us a better idea what is going wrong with your
compile. Thanks!

-Tino

On Mon, 2002-05-27 at 06:05, Simon Stewart wrote:
 On Fri, May 24, 2002 at 10:07:50AM +0800, Steve Wong wrote:
 
  BUT, when I run ./configure --with-apxs=. FOR mod_webapp It says
  that I cannot mix the gcc and native cc.  AND the configuration
  failed.  The configuration success if I use Solaris's ld to make
  Apache.  
 
  Why will this happen and Is this normal??
 
 Did you build Apache with the Solaris tool chain, or the GNU one?
 
 I'm not an expert, but I would imagine that mixing object (.o) files
 generated from different compilers is asking for trouble. One compiler
 could well expect certain optimisations, etc. that the other doesn't
 implement, or one that implements things differently, not to mention
 compiler specific extensions. I'm guessing that both compiler chains
 ultimately output an ELF executable, but there's no reason to suppose
 that the intermediate stages are going to be compatible with each
 other.
 
 Having said that, I would expect SOs and DSOs to be shared without
 trouble.
 
 I know that the Solaris chain has a lot of trouble with mod_webapp for
 some reason. Sorry, this isn't a particularly definitive answer, is it?
 
 Cheers,
 
 Simon
 
 -- 
 Cloning forces us to ask some hard questions. For example, which person,
 the original or the clone, gets to wear the goatee and be evil?
--- the Onion
 
 --
 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]




  1   2   >