Re: Repost: getClassLoader() returns null

2002-10-04 Thread Volker Leidl

Hi Charlie!

This was also my first thought, but unfortunately this is not the case. 
I have just tried the same with a newly written test class, which would 
be very unlikely to be available to the bootstrap class loader.

The remarkable thing is, that when I put the class in a jar in 
/common/lib, getClassLoader returns null., whereas putting it in 
/common/classes yields the correct class loader instance. If it had been 
loaded by the bootstrap classloader, null would have been returned in 
both cases. By the way, running the JVM with the -verbose:class switch 
explicitly shows me that the class is loaded from common/lib (or 
common/classes).

Regards,
Volker

Cox, Charlie wrote:

you don't also have the jar under /jre/lib/ext? It would find your jar there
before looking in /common/lib; in which case it would be loaded by the jvm's
bootstrap and could return null.

see the tomcat classloader doc...

Charlie

  

-Original Message-
From: Volker Leidl [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 12:24 PM
To: Tomcat Users List
Subject: Repost: getClassLoader() returns null


Sorry for the repost, I don't mean to bother you, but can 
anyone confirm 
that getClassLoader() on a class loaded by the common class loader of 
tomcat (4.0.3), particularily from a jar in common/lib,  returns null?

I'm really puzzled...

Thanks in advance,
Volker.




--
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: Problem with Tomcat 4.0.2 hanging

2002-10-04 Thread Collins, Jim

Is the site restricted? I had a similar problem using the JNDI realm, I
solved the problem by getting Apache to authenticate the user rather than
Tomcat.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: 03 October 2002 17:29
 To: [EMAIL PROTECTED]
 Subject: Re: Problem with Tomcat 4.0.2 hanging
 
 
 I'm actually having the problem again right this second.  I 
 went into the
 server and did a ps aux.  I found about 60 tomcat processes 
 running.  Is
 this normal?
 
 I've been struggling with this for over a week.  Any advice, 
 suggestions,
 etc. that you might have would be greatly appreciated.
 
 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, October 02, 2002 11:54 AM
 Subject: Problem with Tomcat 4.0.2 hanging
 
 
  I'm running Tomcat 4.0.2.  A few times a day I try to go to 
 my site and
  nothing happens, or sometimes I get an Internal Server 
 Error. I'm able to
  bring up html pages, so Apache is running fine. I restart Tomcat
 (sometimes
  more than once) and all is good. I've tried rebooting the 
 server and that
  doesn't do the trick either. It just fixes it temporarilly.
 
  I've been trying to troubleshoot the problem, but I'm 
 relatively new to
  Tomcat. Any advice on what I should be looking at?
 
  I have looked at my catalina.out file, and the last error is always:
 
  WebappClassLoader: Additional JARs have been added
  java.util.zip.ZipException: error in opening zip file
  at java.util.zip.ZipFile.open(Native Method)
  at java.util.zip.ZipFile.init(ZipFile.java:112)
  at java.util.jar.JarFile.init(JarFile.java:117)
  at java.util.jar.JarFile.init(JarFile.java:82)
  at org.apache.catalina.loader.WebappLoader.setRepositories
  (WebappLoader.java:1005)
  at org.apache.catalina.loader.WebappLoader.start 
 (WebappLoader.java:628)
  at
  
 org.apache.catalina.core.StandardContext.reload(StandardContex
 t.java:2421)
  at
 
 org.apache.catalina.loader.WebappContextNotifier.run(WebappLoa
 der.java:1329)
  at java.lang.Thread.run(Thread.java:536)
 
  I *suspect* this has something to do with my problem, but 
 I'm not sure.
 Any
  ideas or pointers would be GREATLY appreciated!
 
  Thanks,
  Tyson
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 


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]




access logs

2002-10-04 Thread Drinkwater, GJ (Glen)

Hi 

I have upgraded from tomcat 4.0.4 to 4.1.12 and the localhost_access_logs do
not seem to be there.  Has tomcat go rid of this log or is there a way to
turn them on again???

Glen


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




Re: access logs

2002-10-04 Thread Remy Maucherat

Drinkwater, GJ (Glen) wrote:
 Hi 
 
 I have upgraded from tomcat 4.0.4 to 4.1.12 and the localhost_access_logs do
 not seem to be there.  Has tomcat go rid of this log or is there a way to
 turn them on again???

It's not enabled by default anymore.
Look in conf/server.xml to enable it.

Remy


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




RE: JSession ID in address bar

2002-10-04 Thread gautam

Thanks a ton ! It works.

Regards,

Gautam S

-Original Message-
From: news [mailto:[EMAIL PROTECTED]]On Behalf Of Bill Barker
Sent: Friday, October 04, 2002 11:15 AM
To: [EMAIL PROTECTED]
Subject: Re: JSession ID in address bar


Assuming that you are using best practices, the jsessionid can't be
snooped on an SSL connection.  However, on the first access to the protected
page, Tomcat has no idea if your browser supports Cookies or not.  The only
safe access after authentication is to do URLEncoding.  To remove this, you
need to provide a welcome servlet to your web-app that isn't password
protected, and that requests a session.  After this, Tomcat will get it's
Cookie and be happy.

gautam [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hello,

 I am using form based authentication for my application (Tomcat 4.0.5, JDK
 1.4, Win2K). I have tomcat configured to use SSL. Everything work fine.
 However, I keep getting the jsessionid value in the address bar. This
 happens for the first page only. Does not appear for subsequent pages
 (regardless of authetication result). I am using IE 6.0.


https://localhost:8553/mywebapp/logon.jsp;jsessionid=E752F79F89D3423A1BEBB4D
 4F2802D60

 I am accessing the web app by : https://localhost:8553/mywebapp/

 Web XML snippet :
 --

welcome-file-listwelcome-file/jsp/index.jsp/welcome-file/welcome-file
 -list

 security-constraint
 web-resource-collection
 web-resource-nameSecure Area/web-resource-name
 url-pattern*.jsp/url-pattern
 url-pattern*.ma/url-pattern
 /web-resource-collection
 auth-constraintrole-name*/role-name/auth-constraint


user-data-constrainttransport-guaranteeCONFIDENTIAL/transport-guarantee
 /user-data-constraint
 /security-constraint

 login-config
 auth-methodFORM/auth-method
 form-login-config
 form-login-page/logon.jsp/form-login-page
 form-error-page/fail_logon.jsp/form-error-page
 /form-login-config
 /login-config

 security-rolerole-name*/role-name/security-role

 Logon.jsp snippet :
 --
 form method=POST action='%= response.encodeURL(j_security_check)
%'

 table border=1 cellspacing=0 width=250 cellpadding=0
 bgcolor=#FFF8DCtrtd colspan=2nbsp;/td/tr
 trtd width=50% valign=middle align=rightfont
 color=#00bUser Id:/b/fontnbsp;/tdtd width=50%
 valign=middle align=centerpnbsp;

 input type=text name=j_username size=16 maxlength=16

 /p/td/trtrtd width=50% valign=middle align=rightbfont
 color=#00Password:/font/b /tdtd width=50% valign=middle
 align=centernbsp;

 input type=password name=j_password size=16 maxlength=16

 /td/trtrtd width=50% valign=middle align=rightnbsp;/tdtd
 width=50% valign=middle align=center

 input type=submit name=logon_submit value=Login/

 /td/tr/table

 /form

 fail_logon.jsp snippet :
 -
 table width=100%
   trtd align=leftUnable to login. a href='%=
 response.encodeURL(logon.jsp) %'Please try again./a/td/tr
 /table

 My index.jsp page just has normal HREFs in it. No Java code.

 What is happening ? How do I correct this ?

 Regards,

 Gautam S





--
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 two listeners entail double context intialization ?

2002-10-04 Thread Wolfgang Stein

I want to enable non-enrypted HTTP-communication for most servlets
of a context, but also enforce HTTPS-communication for SOME
servlets of the same context.

I remember some postings about multiple connectors
entailing multiple context-intialization.
But i'm not able to find the postings again.

Was this a problem in Tomcat 3.2 or do i mix up something ?

Thanks in advance
Wolfgang

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




Getting the name of the context

2002-10-04 Thread shanmugampl

  Hi,

I have a requirement where i need to know the name of the context i am 
in.Say i have a servlet class present in my Tomcat_Home/webapp/myapp/. 
Now i want to get the name of the application(in this case 'myapp') from 
my servlet. Is there a way of doing it. One of the way i found was 
specifying a name for the display-name attribute present in the 
web.xml. This name can be retrieved from the ServletContext. The problem 
here is two contexts can have the same display name which is not desired.

Thanks
Shanmugam.PL



JAAS and Tomcat 4.1

2002-10-04 Thread Oksana_Vedenina

Hi,

I can't get JAAS working under Tomcat 4.1.

In my application I have following line of code:
22  Subject subj = new Subject();
that throws exception
java.lang.ExceptionInInitializerError: 
java.lang.SecurityException: java.lang.ClassNotFoundException: 
javax.security.auth.SubjectDomainCombiner
at javax.security.auth.Subject.clinit(Subject.java:170)
at SecurityTest.init(SecurityTest.java:22) 
...

javax.security.auth.SubjectDomainCombiner class can be found in jaas.jar, 
as well as javax.security.auth.Subject where exception is thrown.
I've tried to launch Tomcat with -security option and without it. I've put 
jaas.jar into common\lib, shared\lib and WEB-INF\lib of my application, 
but I got the same exception.

Can anyone help me?

Thanks,
Oksana 

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




RE: Waht are the applicationss invoke when start Tomcat

2002-10-04 Thread Turner, John


The only application that runs is Tomcat, though it runs as a Java process
in the JVM, so if you list active processes, you will see java running as
opposed to tomcat.

John

 -Original Message-
 From: randie ursal [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 03, 2002 11:00 PM
 To: A mailing list for discussion about Sun Microsystem's Java Servlet
 API Technology.; [EMAIL PROTECTED]; A mailing list about
 Java Server Pages specification and reference
 Subject: Waht are the applicationss invoke when start Tomcat
 
 
 hi list,
 
does anyone have an idea what are the applications that
runs when catalina.sh run is executed?
 
because i'm planning of making an Application Management System
that would keep track of the Tomcat Server as it runs, so that if
something abnormal happen i can have a proper shutdown of Tomcat
through my application. Then i can restart everything from this 
 application,
and keep track of it again, in this way my Web Server would be very
easy to manage and no need for an operator to start and stop it
manually.
  
 thanks
   randie
 
 
 
 --
 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: Repost: getClassLoader() returns null

2002-10-04 Thread Cox, Charlie

well, I don't know why that is happening, but it does appear that you can
unpack your jar to get it to work. While certainly not ideal, it looks like
it may work.

Charlie


 -Original Message-
 From: Volker Leidl [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 04, 2002 4:02 AM
 To: Tomcat Users List
 Subject: Re: Repost: getClassLoader() returns null
 
 
 Hi Charlie!
 
 This was also my first thought, but unfortunately this is not 
 the case. 
 I have just tried the same with a newly written test class, 
 which would 
 be very unlikely to be available to the bootstrap class loader.
 
 The remarkable thing is, that when I put the class in a jar in 
 /common/lib, getClassLoader returns null., whereas putting it in 
 /common/classes yields the correct class loader instance. If 
 it had been 
 loaded by the bootstrap classloader, null would have been returned in 
 both cases. By the way, running the JVM with the 
 -verbose:class switch 
 explicitly shows me that the class is loaded from common/lib (or 
 common/classes).
 
 Regards,
 Volker
 
 Cox, Charlie wrote:
 
 you don't also have the jar under /jre/lib/ext? It would 
 find your jar there
 before looking in /common/lib; in which case it would be 
 loaded by the jvm's
 bootstrap and could return null.
 
 see the tomcat classloader doc...
 
 Charlie
 
   
 
 -Original Message-
 From: Volker Leidl [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 03, 2002 12:24 PM
 To: Tomcat Users List
 Subject: Repost: getClassLoader() returns null
 
 
 Sorry for the repost, I don't mean to bother you, but can 
 anyone confirm 
 that getClassLoader() on a class loaded by the common class 
 loader of 
 tomcat (4.0.3), particularily from a jar in common/lib,  
 returns null?
 
 I'm really puzzled...
 
 Thanks in advance,
 Volker.
 
 
 
 
 --
 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]




tomcat 4.1.12 with jdk1.4.1 on solaris

2002-10-04 Thread peter lin



For those are thinking about switching from jdk 1.3.1 or jdk 1.4.0 to
the latest, so far my benchmarks have shown jdk1.4.1 to be better. This
is by no means conclusive proof, but the improvements to new String(),
garbage collection and nio show measurable improvement.

One particular thing I see is the garbage collection processes are more
consistent and result in lower memory consumption. The same exact webapp
with jdk 1.4.0 show 20ms difference. The variance of the response also
appears to considerably lower. With jdk 1.4.0, the deviation in Jmeter
is approximately 1/3 the average. whereas with jdk 1.4.1 it is 1/4 of
the average.

though others might find it interesting.

peter

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




RE: Repost: getClassLoader() returns null

2002-10-04 Thread BCorrigan

Just wanted to send over a big thanks.. It turns out things were working the
whole time.. I was testing from behind the nat firewall, (which isn't
kosher!)  once I tested from outside the firewall, the port forwarding
worked fine.

Brian Corrigan 
Information Services Manager 
TAG Corporate, LLC 
12 Elmwood Road 
Menands, NY 12204 
pc support: (518)292-6554
direct voice: (518) 292-6571 
fax: (518) 689-6571 
e-mail: [EMAIL PROTECTED] 



-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 8:14 AM
To: 'Tomcat Users List'
Subject: RE: Repost: getClassLoader() returns null


well, I don't know why that is happening, but it does appear that you can
unpack your jar to get it to work. While certainly not ideal, it looks like
it may work.

Charlie


 -Original Message-
 From: Volker Leidl [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 04, 2002 4:02 AM
 To: Tomcat Users List
 Subject: Re: Repost: getClassLoader() returns null
 
 
 Hi Charlie!
 
 This was also my first thought, but unfortunately this is not 
 the case. 
 I have just tried the same with a newly written test class, 
 which would 
 be very unlikely to be available to the bootstrap class loader.
 
 The remarkable thing is, that when I put the class in a jar in 
 /common/lib, getClassLoader returns null., whereas putting it in 
 /common/classes yields the correct class loader instance. If 
 it had been 
 loaded by the bootstrap classloader, null would have been returned in 
 both cases. By the way, running the JVM with the 
 -verbose:class switch 
 explicitly shows me that the class is loaded from common/lib (or 
 common/classes).
 
 Regards,
 Volker
 
 Cox, Charlie wrote:
 
 you don't also have the jar under /jre/lib/ext? It would 
 find your jar there
 before looking in /common/lib; in which case it would be 
 loaded by the jvm's
 bootstrap and could return null.
 
 see the tomcat classloader doc...
 
 Charlie
 
   
 
 -Original Message-
 From: Volker Leidl [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 03, 2002 12:24 PM
 To: Tomcat Users List
 Subject: Repost: getClassLoader() returns null
 
 
 Sorry for the repost, I don't mean to bother you, but can 
 anyone confirm 
 that getClassLoader() on a class loaded by the common class 
 loader of 
 tomcat (4.0.3), particularily from a jar in common/lib,  
 returns null?
 
 I'm really puzzled...
 
 Thanks in advance,
 Volker.
 
 
 
 
 --
 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 4.1.12 with jdk1.4.1 on solaris

2002-10-04 Thread Turner, John


Thanks!

John


 -Original Message-
 From: peter lin [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 04, 2002 8:15 AM
 To: Tomcat Users List
 Subject: tomcat 4.1.12 with jdk1.4.1 on solaris
 
 
 
 
 For those are thinking about switching from jdk 1.3.1 or jdk 1.4.0 to
 the latest, so far my benchmarks have shown jdk1.4.1 to be 
 better. This
 is by no means conclusive proof, but the improvements to new String(),
 garbage collection and nio show measurable improvement.
 
 One particular thing I see is the garbage collection 
 processes are more
 consistent and result in lower memory consumption. The same 
 exact webapp
 with jdk 1.4.0 show 20ms difference. The variance of the response also
 appears to considerably lower. With jdk 1.4.0, the deviation in Jmeter
 is approximately 1/3 the average. whereas with jdk 1.4.1 it is 1/4 of
 the average.
 
 though others might find it interesting.
 
 peter
 
 --
 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.1.12 with jdk1.4.1 on solaris

2002-10-04 Thread Remy Maucherat

peter lin wrote:
 
 For those are thinking about switching from jdk 1.3.1 or jdk 1.4.0 to
 the latest, so far my benchmarks have shown jdk1.4.1 to be better. This
 is by no means conclusive proof, but the improvements to new String(),
 garbage collection and nio show measurable improvement.
 
 One particular thing I see is the garbage collection processes are more
 consistent and result in lower memory consumption. The same exact webapp
 with jdk 1.4.0 show 20ms difference. The variance of the response also
 appears to considerably lower. With jdk 1.4.0, the deviation in Jmeter
 is approximately 1/3 the average. whereas with jdk 1.4.1 it is 1/4 of
 the average.
 
 though others might find it interesting.

Interesting, esp since I've noticed some significant improvements 
already when going from 1.3 to 1.4.0. You can post more benchmarks if 
you want to.

Remy


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




Manager application and JDBCRealm

2002-10-04 Thread Brian Buckley

Hello,

Is the Manager application that comes with Tomcat supposed be used with the 
MemoryRealm only, or can it be used with other types of realms, in particular, the 
JDBCRealm?

If it can be used with the JDBCRealm, how does one configure the JDBCRealm to store 
the additional descriptive information displayed by the Manager application (i.e., 
Full name for each User and Description for each Group and for each Role) ?  The 
example JDBCRealm configuration that comes with Tomcat does not have a place to store 
the additional descriptive information .

Any help, tips or references to resources appreciated.

Thanks,
-Brian

!--  example  has  no Description or Full name table/columns --
Realm className=org.apache.catalina.realm.JDBCRealm debug=99
driverName=org.gjt.mm.mysql.Driver
connectionURL=jdbc:mysql://localhost:3306/test
connectionName=trial connectionPassword=pw
userTable=users userNameCol=user_name userCredCol=user_pass
userRoleTable=user_roles roleNameCol=role_name /




Re: tomcat 4.1.12 with jdk1.4.1 on solaris

2002-10-04 Thread peter lin


When I have more conclusive data, I'll post the results that I can.

peter


Remy Maucherat wrote:
 
 Interesting, esp since I've noticed some significant improvements
 already when going from 1.3 to 1.4.0. You can post more benchmarks if
 you want to.
 
 Remy
 
 --
 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]




jk on HP-UX

2002-10-04 Thread Dorin Florian Ciuca

Hi,

 I can't build jk connector on HP-UX.  Could someone help me or do you have the 
binaries for this machine ?


I have HP - UX  B.11.00 U 9000/800.

After I ran configure i got something like this :

creating cache ./config.cache
checking for a BSD compatible install... scripts/build/unix/install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... found
checking for working automake... missing
checking for working autoheader... found
checking for working makeinfo... missing
checking for Cygwin environment... no
checking for mingw32 environment... no
checking how to run the C preprocessor... cc -E
checking host system type... hppa2.0w-hp-hpux11.00
checking build system type... hppa2.0w-hp-hpux11.00
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ld used by GCC... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for /usr/ccs/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/local/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... file_magic 
(s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library
checking for object suffix... o
checking for executable suffix... no
checking command to parse /usr/local/bin/nm -B output... ok
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/ccs/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... relink
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... hpux11.00 dld.sl
checking if libtool supports shared libraries... yes
checking for dlopen in -ldl... no
checking for dlopen... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
creating libtool
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ld used by GCC... (cached) /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... (cached) no
checking for test... /usr/bin/test
checking for rm... /usr/bin/rm
checking for grep... /usr/bin/grep
checking for echo... /usr/bin/echo
checking for sed... /usr/bin/sed
checking for cp... /usr/bin/cp
checking for mkdir... /usr/bin/mkdir
checking for libtool... /usr/local/bin/libtool
need to check for Perl first, apxs depends on it...
checking for perl... /usr/local/bin/perl
/usr/bin/test[7]: test: Specify a parameter with this command.
/usr/bin/test[7]: test: Specify a parameter with this command.
apxs:Error: Invalid query string `EXTRA_CFLAGS'
apxs:Error: Invalid query string `EXTRA_CPPFLAGS'
building connector for apache-2.0
checking for target platform... unix
no apache given
...Enabling EAPI Support...
/usr/bin/test[7]: test: Specify a parameter with this command.
/usr/bin/test[7]: test: Specify a parameter with this command.
updating cache ./config.cache
creating ./config.status
creating Makefile
creating apache-1.3/Makefile
creating apache-1.3/Makefile.apxs
creating apache-2.0/Makefile
creating apache-2.0/Makefile.apxs
creating common/Makefile
creating common/list.mk
creating jni/Makefile


but when I ran make it crashed:


No suffix list.
Making all in common
/usr/local/bin/libtool --mode=compile gcc 
-I/usr/local/lib/perl5/5.8.0/PA-RISC2.0/usr/local/lib/perl5/5.8.0/usr/local/lib/perl5/site_perl/5.8.0/PA-RISC2.0/usr/local/lib/perl5/site_perl/5.8.0/usr/local/lib/perl5/site_perl./usr/local/apache/include
 -g -O2 -DEAPI 
/usr/local/lib/perl5/5.8.0/PA-RISC2.0/usr/local/lib/perl5/5.8.0/usr/local/lib/perl5/site_perl/5.8.0/PA-RISC2.0/usr/local/lib/perl5/site_perl/5.8.0/usr/local/lib/perl5/site_perl.-DHPUX11
 -Aa -Ae -D_HPUX_SOURCE -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite 
/usr/local/lib/perl5/5.8.0/PA-RISC2.0/usr/local/lib/perl5/5.8.0/usr/local/lib/perl5/site_perl/5.8.0/PA-RISC2.0/usr/local/lib/perl5/site_perl/5.8.0/usr/local/lib/perl5/site_perl.
 -g -O2 -DEAPI 
/usr/local/lib/perl5/5.8.0/PA-RISC2.0/usr/local/lib/perl5/5.8.0/usr/local/lib/perl5/site_perl/5.8.0/PA-RISC2.0/usr/local/lib/perl5/site_perl/5.8.0/usr/local/lib/perl5/site_perl.
 -I /include -I /include/ -c 

apache2.042,tomcat4.1.12,mod_jk2,vhosts

2002-10-04 Thread gabriel marti

Hello, I have configured tomcat with apache using mod_jk2,according to the 
jk2 how-to. I currently have /gabadoo/*.jsp in my workers2.properties file 
mapped to my gabadoo context in my server.xml file.

However, I am not familiar with how to integrate my apache virtual hosts 
with the workers2.properties file, and the necessary changes needed for 
tomcat. Currently i have the following: In other words I would like to map 
several name based apache hosts to various tomcat contexts? Do I need to 
include hostname tags in my server.xml file, or do I just need to specify 
multiple connectors in the workers2.properties file, which would map to the 
appropriate contexts in tomcat. If any of these comments are remotely 
correct could someone please give me some samples or some suggestions. 
Thanks

apache httpd.conf:
LoadModule jk2_module modules/mod_jk2.dll

#VirtualHost *
#ServerAdmin [EMAIL PROTECTED]
#DocumentRoot C:\jakarta-tomcat-4.1.1\webapps\gabadoo
#ServerName www.gabadoo.com
#ErrorLog C:\jakarta-tomcat-4.1.1\webapps\gabadoo\logs.txt
#/VirtualHost

#VirtualHost *
#ServerAdmin [EMAIL PROTECTED]
#DocumentRoot C:\jakarta-tomcat-4.1.1\webapps\gabadoo2
#ServerName test.gabadoo.com
#ErrorLog C:\jakarta-tomcat-4.1.1\webapps\gabadoo2\logs.txt
#/VirtualHost


workers2.properties:

# Shared memory handling. Needs to be set.
[shm]
file=c:\Program Files\Apache Group\Apache2\logs\shm.file
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=localhost
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# Uri mapping
[uri:/gabadoo/*.jsp]
worker=ajp13:localhost:8009


server.xml:

I use the default settings for jk2, and heres the basic context:

!-- Gabadoo Context --

Context path=/gabadoo docBase=gabadoo debug=0 reloadable=true/

This is running under win2k. Any help would be much appreciated. Thanks

Gabriel

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




Re: Extra Log Information...

2002-10-04 Thread ContestAdmin

ContestAdmin wrote:

 Hi all.

 I recently decided to upgrade my system from using
 apache jserv to use tomcat.

 I am running Solaris 2.6.
 I have apache version 2.0.42
 tomcat version 4.1.12.

 I am attempting to get the two to communicate via
 mod_webapp.

 Right now they appear to be working, but I am getting
 a lot of extra information written out to the log files for
 tomcat.

 Actually I also see some interesting information in
 the apache log as well (but I believe I know why this
 is).

 From the apache log:
 -
 [Thu Oct 03 11:16:10 2002] [error] Connection conn cannot connect
 [Thu Oct 03 11:16:10 2002] [error] Cannot open connection conn
 -

 I am assuming this is because my script starts
 apache before tomcat. These errors only show up
 at the very start of the error_log and cease.

 The real problem is messages in the tomcat log:
 -
 java.io.IOException: Premature packet header end
 at
 org.apache.catalina.connector.warp.WarpConnection.recv(Unknown Source)
 at
 org.apache.catalina.connector.warp.WarpRequestHandler.handle(Unknown
 Source)
 at org.apache.catalina.connector.warp.WarpConnection.run(Unknown
 Source)
 at java.lang.Thread.run(Thread.java:536)
 -

 I see several of these for every request. I've done
 some searching in the mailing list and I think this maybe
 due to serving images but I'm not sure. I also did not
 find a solution on how to end these.

 Is it possible this is due to a 'file not found' error?

 Any help is greatly appreciated.

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

More information to make this puzzle even more confusing.

1) I have an (apparently) identical setup on a second machine that works without

this error. Both machines are the same hardware, OS, jdk, apache, tomcat
versions.

2) Also I'm fairly sure this is not a file not found error, because I tested it
on the
machine where it is not present and could not get it to duplicate based on the
file not existing.

I was able to get an identical stack trace by telneting into the
port for webapp and killing the connection (however).

I've searched over the archived mailing list and seen this issue a few
times, but never a resolution.

Does it only happen to a very very very few people?

There is probably a very simple explanation that I am missing :-(

Also when the 'Application not currenlty deployed' error page is
displayed it shows the full path to the webapp.c file in the title
for the page (definately a feature, but possibly a dangerous one)...



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




Re: Repost: getClassLoader() returns null

2002-10-04 Thread Volker Leidl

This works, in fact! I could swear I've tried that yesterday, and it 
threw me tons of NoClassDefFoundErrors, but anyway now it works. Thanks 
a lot for your help Charlie.

Anyway I'm still not quite confident. I still have no idea why I get 
null from getClassLoader() calls on classes in common/lib. Could you 
Charlie, or perhaps someone else, confirm that this is generally the 
case, not only because of some faulty configuration in my environment 
Im not aware of?

If this is really the normal behavior I wonder how I can get a class to 
return null on getClassLoader(), besides exposing it to the bootstrap 
class loader.

Thanks and regards,
Volker

Cox, Charlie wrote:

well, I don't know why that is happening, but it does appear that you can
unpack your jar to get it to work. While certainly not ideal, it looks like
it may work.

Charlie


  

-Original Message-
From: Volker Leidl [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 4:02 AM
To: Tomcat Users List
Subject: Re: Repost: getClassLoader() returns null


Hi Charlie!

This was also my first thought, but unfortunately this is not 
the case. 
I have just tried the same with a newly written test class, 
which would 
be very unlikely to be available to the bootstrap class loader.

The remarkable thing is, that when I put the class in a jar in 
/common/lib, getClassLoader returns null., whereas putting it in 
/common/classes yields the correct class loader instance. If 
it had been 
loaded by the bootstrap classloader, null would have been returned in 
both cases. By the way, running the JVM with the 
-verbose:class switch 
explicitly shows me that the class is loaded from common/lib (or 
common/classes).

Regards,
Volker

Cox, Charlie wrote:



you don't also have the jar under /jre/lib/ext? It would 
  

find your jar there


before looking in /common/lib; in which case it would be 
  

loaded by the jvm's


bootstrap and could return null.

see the tomcat classloader doc...

Charlie

 

  

-Original Message-
From: Volker Leidl [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 12:24 PM
To: Tomcat Users List
Subject: Repost: getClassLoader() returns null


Sorry for the repost, I don't mean to bother you, but can 
anyone confirm 
that getClassLoader() on a class loaded by the common class 


loader of 


tomcat (4.0.3), particularily from a jar in common/lib,  


returns null?


I'm really puzzled...

Thanks in advance,
Volker.

   



--
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: Getting the name of the context

2002-10-04 Thread jon wingfield

you could extract it from servletContext.getRealPath(/);

-Original Message-
From: shanmugampl [mailto:[EMAIL PROTECTED]]
Sent: 04 October 2002 12:51
To: [EMAIL PROTECTED]
Subject: Getting the name of the context


  Hi,

I have a requirement where i need to know the name of the context i am 
in.Say i have a servlet class present in my Tomcat_Home/webapp/myapp/. 
Now i want to get the name of the application(in this case 'myapp') from 
my servlet. Is there a way of doing it. One of the way i found was 
specifying a name for the display-name attribute present in the 
web.xml. This name can be retrieved from the ServletContext. The problem 
here is two contexts can have the same display name which is not desired.

Thanks
Shanmugam.PL


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




RE: Manager application and JDBCRealm

2002-10-04 Thread Collins, Jim

You can configure them to work with any realm. If you don't want them to use
the default realm in server.xml edit manager.xml and admin.xml and place
your realm configuration here.

Regards

Jim.

 -Original Message-
 From: Brian Buckley [mailto:[EMAIL PROTECTED]]
 Sent: 04 October 2002 13:34
 To: [EMAIL PROTECTED]
 Subject: Manager application and JDBCRealm
 
 
 Hello,
 
 Is the Manager application that comes with Tomcat supposed be 
 used with the MemoryRealm only, or can it be used with other 
 types of realms, in particular, the JDBCRealm?
 
 If it can be used with the JDBCRealm, how does one configure 
 the JDBCRealm to store the additional descriptive information 
 displayed by the Manager application (i.e., Full name for 
 each User and Description for each Group and for each Role) 
 ?  The example JDBCRealm configuration that comes with Tomcat 
 does not have a place to store the additional descriptive 
 information .
 
 Any help, tips or references to resources appreciated.
 
 Thanks,
 -Brian
 
 !--  example  has  no Description or Full name table/columns --
 Realm className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=org.gjt.mm.mysql.Driver
 connectionURL=jdbc:mysql://localhost:3306/test
 connectionName=trial connectionPassword=pw
 userTable=users userNameCol=user_name userCredCol=user_pass
 userRoleTable=user_roles roleNameCol=role_name /
 
 


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]




Where is javax.sql

2002-10-04 Thread Chuck Carson


Where is the package at under tomcat 4.1.2?

I moved my tomcat apps from Linux to Solaris but none of my oracle
connections will work.


Thanks,
Chuck


--
This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version. 

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




Re: Getting the name of the context

2002-10-04 Thread Tim Funk

HttpServletRequest.getContextPath() returns the context path name.

jon wingfield wrote:
 you could extract it from servletContext.getRealPath(/);
 
 -Original Message-
 From: shanmugampl [mailto:[EMAIL PROTECTED]]
 Sent: 04 October 2002 12:51
 To: [EMAIL PROTECTED]
 Subject: Getting the name of the context
 
 
   Hi,
 
 I have a requirement where i need to know the name of the context i am 
 in.Say i have a servlet class present in my Tomcat_Home/webapp/myapp/. 
 Now i want to get the name of the application(in this case 'myapp') from 
 my servlet. Is there a way of doing it. One of the way i found was 
 specifying a name for the display-name attribute present in the 
 web.xml. This name can be retrieved from the ServletContext. The problem 
 here is two contexts can have the same display name which is not desired.
 
 Thanks
 Shanmugam.PL
 
  


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




Re: Where is javax.sql

2002-10-04 Thread Kenny G. Dubuisson, Jr.

That's in Oracle's JDBC classes file (named classes12.jar for my
installation), not in Tomcat.  Make sure you install this file for your
Oracle connections to work (put it in your $TOMCAT_HOME/lib directory).  It
can be downloaded from Oracle.
Kenny

- Original Message -
From: Chuck Carson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, October 04, 2002 9:12 AM
Subject: Where is javax.sql



 Where is the package at under tomcat 4.1.2?

 I moved my tomcat apps from Linux to Solaris but none of my oracle
 connections will work.


 Thanks,
 Chuck


 --
 This message contains confidential information and is intended only for
 the individual named. If you are not the named addressee you should not
 disseminate, distribute or copy this e-mail. Please notify the sender
 immediately by e-mail if you have received this e-mail by mistake and
 delete this e-mail from your system. E-mail transmission cannot be
 guaranteed to be secure or error-free as information could be
 intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
 contain viruses. The sender therefore does not accept liability for any
 errors or omissions in the contents of this message, which arise as a
 result of e-mail transmission. If verification is required please
 request a hard-copy version.

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




Sharing an object between servlets

2002-10-04 Thread Vijay Kandy


Dear All,

We are building a map tool - to draw maps and show some data on them. Now, I
have this situation. I have a servlet that gets coordinates from the
database and draws the map on its OutputStream (the content type is set to
png image). There is another servlet (content type is text/html) that embeds
the URL of the first servlet. This servlet also gets coordinates from the
database, and populates them over the image so I can do some image map or
mouseOver() tricks using javascript. I was wondering if there was a way to
make just one call to the database and share the coordinates between the
servlets. Right now, I will try any thing!

Thank you,
Vijay
 

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




RE: Sharing an object between servlets

2002-10-04 Thread Barney Hamish

Can't you use a session/request scope object? However it's not clear to me
why you need to share the variables between the servlets without having them
communicate directly.

Hamish

 -Original Message-
 From: Vijay Kandy [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 04, 2002 4:28 PM
 To: 'Tomcat Users List'
 Subject: Sharing an object between servlets
 
 
 
 Dear All,
 
 We are building a map tool - to draw maps and show some data 
 on them. Now, I
 have this situation. I have a servlet that gets coordinates from the
 database and draws the map on its OutputStream (the content 
 type is set to
 png image). There is another servlet (content type is 
 text/html) that embeds
 the URL of the first servlet. This servlet also gets 
 coordinates from the
 database, and populates them over the image so I can do some 
 image map or
 mouseOver() tricks using javascript. I was wondering if there 
 was a way to
 make just one call to the database and share the coordinates 
 between the
 servlets. Right now, I will try any thing!
 
 Thank you,
 Vijay
  
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




Please Help: Getting this exception

2002-10-04 Thread Chuck Carson


I moved my tomcat server from Linux to Solaris, now using the binary 
dist of tomcat 4.1.2 and jdk 1.3.1_04.

All my apps are giving me this exception:


org.apache.jasper.JasperException: java/sql/Savepoint
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:248)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


Anyone have any ideas?

Thanks,
Chuck


--
This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version. 

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




RE: Where is javax.sql

2002-10-04 Thread Chuck Carson


Thanks for the help,
I was under the impression it was in servlet.jar, *bonk*

Thanks,
CC

 -Original Message-
 From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, October 04, 2002 7:20 AM
 To: Tomcat Users List
 Subject: Re: Where is javax.sql
 
 
 That's in Oracle's JDBC classes file (named classes12.jar for 
 my installation), not in Tomcat.  Make sure you install this 
 file for your Oracle connections to work (put it in your 
 $TOMCAT_HOME/lib directory).  It can be downloaded from Oracle. Kenny
 
 - Original Message -
 From: Chuck Carson [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, October 04, 2002 9:12 AM
 Subject: Where is javax.sql
 
 
 
  Where is the package at under tomcat 4.1.2?
 
  I moved my tomcat apps from Linux to Solaris but none of my oracle 
  connections will work.
 
 
  Thanks,
  Chuck
 
 
  --
  This message contains confidential information and is intended only 
  for the individual named. If you are not the named addressee you 
  should not disseminate, distribute or copy this e-mail. 
 Please notify 
  the sender immediately by e-mail if you have received this 
 e-mail by 
  mistake and delete this e-mail from your system. E-mail 
 transmission 
  cannot be guaranteed to be secure or error-free as 
 information could 
  be intercepted, corrupted, lost, destroyed, arrive late or 
 incomplete, 
  or contain viruses. The sender therefore does not accept 
 liability for 
  any errors or omissions in the contents of this message, 
 which arise 
  as a result of e-mail transmission. If verification is 
 required please 
  request a hard-copy version.
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 



--
This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version. 

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




RE: Sharing an object between servlets

2002-10-04 Thread Shapira, Yoav

Hi,
There are many ways you can do this.  Here are two examples:

1. Since the HTML servlet embeds the URL of the PNG servlet, why not put
the coordinates in the URL?  E.g. have the HTML servlet output
img src=myPngServlet?x1=0x2=1 and then the PNG servlet does
String x1 = request.getParameter(x1);
and so forth.

2. Do you really go to the DB for each request?  It may be better (at
least for performance, but also addressing this sharing thing) to have a
singleton responsible for getting coordinates from the DB.  The servlets
ask the singleton for the coordinates, which gets them.  If the
singleton doesn't have them, it goes to the DB and caches the results.
So that the second time those coordinates are requested, it's a simple
and quick hash lookup (or whatever kind of lookup suits you) to get
them.  This way you can also pre-cache frequently requested coordinates,
and do all sorts of stuff to improve performance... But more importantly
it keeps a nicer degree of decoupling between the two servlets.

I hope this helps,

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Vijay Kandy [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 10:28 AM
To: 'Tomcat Users List'
Subject: Sharing an object between servlets


Dear All,

We are building a map tool - to draw maps and show some data on them.
Now,
I
have this situation. I have a servlet that gets coordinates from the
database and draws the map on its OutputStream (the content type is set
to
png image). There is another servlet (content type is text/html) that
embeds
the URL of the first servlet. This servlet also gets coordinates from
the
database, and populates them over the image so I can do some image map
or
mouseOver() tricks using javascript. I was wondering if there was a way
to
make just one call to the database and share the coordinates between
the
servlets. Right now, I will try any thing!

Thank you,
Vijay


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



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



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


RE: Please Help: Getting this exception

2002-10-04 Thread Shapira, Yoav

Hi,
Very interesting.  I've never seen that specific exception before, but
the first sentence of your message brings up two questions:

1. Does your solaris box have the proper OS patches for JDK 1.3.1_04?
2. Are you connecting to a DB, and if so, what type JDBC drivers are you
using?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Chuck Carson [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 10:36 AM
To: Tomcat Users List
Subject: Please Help: Getting this exception


I moved my tomcat server from Linux to Solaris, now using the binary
dist of tomcat 4.1.2 and jdk 1.3.1_04.

All my apps are giving me this exception:


org.apache.jasper.JasperException: java/sql/Savepoint
   at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
a
va:248)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289
)
   at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


Anyone have any ideas?

Thanks,
Chuck


--
This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version.

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



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



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


RE: Sharing an object between servlets

2002-10-04 Thread Sexton, George

I have done what you are attempting. The problem with decoupling as
suggested by others is that you end up duplicating the logic to create the
image, and the image map.

My solution was to have the servlet generate the graphic and save it on the
session. The HTML servlet wrote out an image tag to another servlet that did
nothing but retrieve the generated session from the image.

Perhaps a more scalable approach would be to write the image out as a file,
and have a servlet that reads the file. A reference could be saved on the
session.

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


-Original Message-
From: Vijay Kandy [mailto:[EMAIL PROTECTED]]
Sent: 04 October, 2002 8:28 AM
To: 'Tomcat Users List'
Subject: Sharing an object between servlets



Dear All,

We are building a map tool - to draw maps and show some data on them. Now, I
have this situation. I have a servlet that gets coordinates from the
database and draws the map on its OutputStream (the content type is set to
png image). There is another servlet (content type is text/html) that embeds
the URL of the first servlet. This servlet also gets coordinates from the
database, and populates them over the image so I can do some image map or
mouseOver() tricks using javascript. I was wondering if there was a way to
make just one call to the database and share the coordinates between the
servlets. Right now, I will try any thing!

Thank you,
Vijay


--
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 Help: Getting this exception

2002-10-04 Thread Chuck Carson


Yes, the box is at both the recommended OS and recommended J2SE patches
as of 27 sept. I am connecting to Oracle 8.1.7, but I get this exception
for even the simplest of servlets. Here is a jsp page that gives me this
exception:

HTML
BODY
A href=/test/servlet/HelloWorldExampleTest1/A
%@ page
import=javax.sql.*,java.sql.*,javax.naming.*,java.util.Hashtable,java.i
o.*,OracleBroker %
BR
%
String startDate= null;
String endDate  = null;
ResultSet rs1   = null;

%
BR
/BODY
/HTML


I have removed the meat from this jsp, leaving only simple declarations.

I am using the oracle thin drivers but pretty sure that is not the
problem since this jsp generates the same error.

Any ideas?

Thanks,
Chuck



 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, October 04, 2002 7:43 AM
 To: Tomcat Users List
 Subject: RE: Please Help: Getting this exception
 
 
 Hi,
 Very interesting.  I've never seen that specific exception 
 before, but the first sentence of your message brings up two 
 questions:
 
 1. Does your solaris box have the proper OS patches for JDK 
 1.3.1_04? 2. Are you connecting to a DB, and if so, what type 
 JDBC drivers are you using?
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Chuck Carson [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 04, 2002 10:36 AM
 To: Tomcat Users List
 Subject: Please Help: Getting this exception
 
 
 I moved my tomcat server from Linux to Solaris, now using the binary 
 dist of tomcat 4.1.2 and jdk 1.3.1_04.
 
 All my apps are giving me this exception:
 
 
 org.apache.jasper.JasperException: java/sql/Savepoint
  at 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServle
 tWrapper.j
 a
 va:248)
  at 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServle
 t.java:289
 )
  at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
 
 Anyone have any ideas?
 
 Thanks,
 Chuck
 
 
 --
 This message contains confidential information and is 
 intended only for 
 the individual named. If you are not the named addressee you 
 should not 
 disseminate, distribute or copy this e-mail. Please notify 
 the sender 
 immediately by e-mail if you have received this e-mail by 
 mistake and 
 delete this e-mail from your system. E-mail transmission cannot be 
 guaranteed to be secure or error-free as information could be 
 intercepted, corrupted, lost, destroyed, arrive late or 
 incomplete, or 
 contain viruses. The sender therefore does not accept 
 liability for any 
 errors or omissions in the contents of this message, which 
 arise as a 
 result of e-mail transmission. If verification is required please 
 request a hard-copy version.
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user- 
 [EMAIL PROTECTED]
 



--
This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version. 

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




exception handling

2002-10-04 Thread Felipe Schnack

  I still have problems with error-page tag in tomcat config
  I added an entry to catch java.lang.Exception. For some reasong, it
catches JspException and redirects them to my error page, but
ServletExceptions aren't redirected. Anyone know why?
  I think I'll have to go back to my original idea of writing a filter
to catch the exceptions.

-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


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




Re: Sharing an object between servlets

2002-10-04 Thread peter lin


Sounds like you want some kind of persistent storage that cross multiple
requests. If I am reading you correctly, rather than have one servlet do
both the html and png, you've split the functionality into two servlets.

Assuming you're using tomcat 4, you should be able to create a
light-weight application that uses a map. I can think of a couple
different ways to tackle the problem.

1. store the lat/long in the session. One down side of this is it may
bog down the session object if your object increases in size

2. create an application wide map that stores an object containing the
geocode (lat/long), using session as the key

3. store in a database using the session id as key

4. store it in some other persistent datastore

5. pass the lat/long in the URL the map generation servlet creates for
the html servlet

I'm not sure how you're generating the map url, since it sounds like the
map servlet handles that. I'm assuming the map servlet takes an address
or an equivalent to generate the graphic. You might want to provide more
specific information like the process flow to get better help.

peter


Vijay Kandy wrote:
 
 Dear All,
 
 We are building a map tool - to draw maps and show some data on them. Now, I
 have this situation. I have a servlet that gets coordinates from the
 database and draws the map on its OutputStream (the content type is set to
 png image). There is another servlet (content type is text/html) that embeds
 the URL of the first servlet. This servlet also gets coordinates from the
 database, and populates them over the image so I can do some image map or
 mouseOver() tricks using javascript. I was wondering if there was a way to
 make just one call to the database and share the coordinates between the
 servlets. Right now, I will try any thing!
 
 Thank you,
 Vijay
 
 
 --
 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: Warp connections

2002-10-04 Thread Larsson, Mickael

It does.. Andy..to a point Thanks
 
But.. :)  What i am trying to do..is to let the connector.. just serve the
*.jsp and servlets from /myapp  if there where .jpg .gif .html and so on..
in there tomcat..would also serve that..  And that ..is what i dont want at
all..
 
I am thinkin of the performance of the website,  so to manage this i would
have to have the static content.. at another place on the server this makes
things more conplicated.. 
:(
 
 
Regards
Siggi
 
 

-Original Message- 
From: Andy Eastham [mailto:[EMAIL PROTECTED]] 
Sent: Ć¾ri. 1.10.2002 12:52 
To: Tomcat Users List 
Cc: 
Subject: RE: Warp connections


Siggi,
 
What this means is that if you map, for example, /myapp to Tomcat, Tomcat
will serve all content under /myapp.  You cannot get Apache to serve
/myapp/my.jpg.
 
Apache will still serve things that aren't under /myapp, so /index.html,
/images/my.jpg etc _will_ be served by Apache.
 
Does this clarify the situation?
 
All the best,
 
Andy

-Original Message-
From: SigurĆ°ur Bjarnason [mailto:[EMAIL PROTECTED]]
Sent: 01 October 2002 13:45
To: Tomcat Users List
Subject: RE: Warp connections


Ok.. So what is the use of the connector then ?!?!?!?
 
If not to let Tomcat serve the Jsp and Servlets.. witch it is supposed to
do. ?!?
 
This makes no sense at all to have this connector then.. ... If Tomcat ends
up serving all the content !  Then it would just be better to leave out
Apache to save cpu and so on !..
 
This has to be misunderstanding !.. From my point of view, if the connector
cannot do this.. I just Get rid of Apache and let Tomcat do all the work..
witch is does.. anyway if I use Warp..
 
 
regards 
Siggi
 

-Original Message- 
From: Jim Coble [mailto:[EMAIL PROTECTED]] 
Sent: lau. 28.9.2002 17:10 
To: Tomcat Users List 
Cc: 
Subject: Re: Warp connections 





Someone with more experience may have a better answer but it is my
understanding that mod_webapp does not permit you to distinguish between
static and dynamic content.  When you use mod_webapp, Tomcat services all
requests; i.e., you can't do what you want to do--serve html with Apache
and jsp/servlets with Tomcat--using mod_webapp -- you would have to
continue using mod_jk if that's what you want to do.
--Jim

==
Jim Coble
Senior Technology Specialist
Center for Instructional Technology
Email: [EMAIL PROTECTED]
Voice: 919-660-5974  Fax: 919-660-5923
Box 90198, Duke University
Durham, NC 27708-0198
==



 

  SigurĆ°ur

  BjarnasonTo:   Tomcat Users List
[EMAIL PROTECTED] 
  [EMAIL PROTECTED]cc:

  m   Subject:  Warp connections

 

  09/28/2002 12:17

  PM

  Please respond to

  Tomcat Users

  List

 

 





[Message truncated]


This message contains information that may be privileged or confidential and is the 
property of the Cap Gemini Ernst  Young Group. It is intended only for the person to 
whom it is addressed. If you are not the intended recipient, you are not authorized to 
read, print, retain, copy, disseminate, distribute, or use this message or any part 
thereof. If you receive this message in error, please notify the sender immediately 
and delete all copies of this message.


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




RE: Sharing an object between servlets

2002-10-04 Thread Vijay Kandy

The number of coordinates is huge - in thousands so cant put them in the
URL.

I have attempted your second idea. And yes I go to the DB for each request.
The problem with the Singleton is, I donno who should start the class. If
the HTML servlet starts the Singleton, will the object still be accessible
to the image servlet?

Thank you,
-Vijay

 -Original Message-
From:   Shapira, Yoav [mailto:[EMAIL PROTECTED]] 
Sent:   Friday, October 04, 2002 9:42 AM
To: Tomcat Users List
Subject:RE: Sharing an object between servlets

  File: ATT196478.txt   File: ATT196479.txt  Hi,
There are many ways you can do this.  Here are two examples:

1. Since the HTML servlet embeds the URL of the PNG servlet, why not put
the coordinates in the URL?  E.g. have the HTML servlet output
img src=myPngServlet?x1=0x2=1 and then the PNG servlet does
String x1 = request.getParameter(x1);
and so forth.

2. Do you really go to the DB for each request?  It may be better (at
least for performance, but also addressing this sharing thing) to have a
singleton responsible for getting coordinates from the DB.  The servlets
ask the singleton for the coordinates, which gets them.  If the
singleton doesn't have them, it goes to the DB and caches the results.
So that the second time those coordinates are requested, it's a simple
and quick hash lookup (or whatever kind of lookup suits you) to get
them.  This way you can also pre-cache frequently requested coordinates,
and do all sorts of stuff to improve performance... But more importantly
it keeps a nicer degree of decoupling between the two servlets.

I hope this helps,

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Vijay Kandy [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 10:28 AM
To: 'Tomcat Users List'
Subject: Sharing an object between servlets


Dear All,

We are building a map tool - to draw maps and show some data on them.
Now,
I
have this situation. I have a servlet that gets coordinates from the
database and draws the map on its OutputStream (the content type is set
to
png image). There is another servlet (content type is text/html) that
embeds
the URL of the first servlet. This servlet also gets coordinates from
the
database, and populates them over the image so I can do some image map
or
mouseOver() tricks using javascript. I was wondering if there was a way
to
make just one call to the database and share the coordinates between
the
servlets. Right now, I will try any thing!

Thank you,
Vijay


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


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




RE: Sharing an object between servlets

2002-10-04 Thread Vijay Kandy

Hmmm. I see what you are saying. But how does the HTML servlet write out the
image map data?

Thank you.
-Vijay



 -Original Message-
From:   Sexton, George [mailto:[EMAIL PROTECTED]] 
Sent:   Friday, October 04, 2002 9:48 AM
To: Tomcat Users List
Subject:RE: Sharing an object between servlets

I have done what you are attempting. The problem with decoupling as
suggested by others is that you end up duplicating the logic to create the
image, and the image map.

My solution was to have the servlet generate the graphic and save it on the
session. The HTML servlet wrote out an image tag to another servlet that did
nothing but retrieve the generated session from the image.

Perhaps a more scalable approach would be to write the image out as a file,
and have a servlet that reads the file. A reference could be saved on the
session.

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


-Original Message-
From: Vijay Kandy [mailto:[EMAIL PROTECTED]]
Sent: 04 October, 2002 8:28 AM
To: 'Tomcat Users List'
Subject: Sharing an object between servlets



Dear All,

We are building a map tool - to draw maps and show some data on them. Now, I
have this situation. I have a servlet that gets coordinates from the
database and draws the map on its OutputStream (the content type is set to
png image). There is another servlet (content type is text/html) that embeds
the URL of the first servlet. This servlet also gets coordinates from the
database, and populates them over the image so I can do some image map or
mouseOver() tricks using javascript. I was wondering if there was a way to
make just one call to the database and share the coordinates between the
servlets. Right now, I will try any thing!

Thank you,
Vijay


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




Session Invalidate Listener???

2002-10-04 Thread Frank Diakovasilis

Does anybody know of a way of being notified before tomcat invalidates a
session, i.e. fire off an event (InvalidateSessionEvent) prior to getting
invalidated?



RE: Sharing an object between servlets

2002-10-04 Thread Shapira, Yoav

Hi,

The number of coordinates is huge - in thousands so cant put them in
the
URL.

OK.  Makes sense ;)

I have attempted your second idea. And yes I go to the DB for each
request.
The problem with the Singleton is, I donno who should start the class.
If
the HTML servlet starts the Singleton, will the object still be
accessible
to the image servlet?

They both call MapSingleton.getInstance().  It starts itself, as the
constructor is private in the Singleton pattern.

It may also suit you to start it in a context listener on server
startup, and pre-populate what you need in the singleton.  

Yoav Shapira
Millennium ChemInformatics


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



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


Re: Sharing an object between servlets

2002-10-04 Thread peter lin



I've built something similar to this in the past.  In my case, I was
using a popular enterprise mapping API to generate the maps with points
of interest (easy to guess which one).  I stored long/lat of a user's
recent published locations in the database.  IE, the user has some kind
of mobile device which publishes it's long/lat periodically.

a web page then displays a map with a series of points. To get the time
when the user published the point, image map is used. the image map is
generated with the same long/lat in the database, but transformed from
long/lat to pixel coordinates.

I used several approaches, including sticking it in the session, but
that got really slow with a couple simultaneous requests. Worked great
for one person, but not under load. Your best bet is to either use a
single as suggested by others, or write a webapp which starts with
tomcat.

This way it gives you more flexibility. If your building a field force
application like for a shipping company to track their trucks, the
webapp solution might be better. If you're database is on serious
hardware and can handle hundreds of simultaneous connections, it might
be more scalable. Again, it all depends on how it will be used in
production.


peter


Vijay Kandy wrote:
 
 The number of coordinates is huge - in thousands so cant put them in the
 URL.
 
 I have attempted your second idea. And yes I go to the DB for each request.
 The problem with the Singleton is, I donno who should start the class. If
 the HTML servlet starts the Singleton, will the object still be accessible
 to the image servlet?
 
 Thank you,
 -Vijay


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




RE: Sharing an object between servlets

2002-10-04 Thread Sexton, George

Go to:

http://www.mhsoftware.com/caldemo/servlet/login

Once you are logged in, choose Edit | Resource Types and click on the right
most icon by the word facility. This shows what I was speaking of. You might
want to change the date to 09/13/2002 and click on the Go button.

The ViewGantt servlet generates the HTML, and the PNG image. It saves the
PNG image on the user session. The graphic servlet just retrieves the image
from the session. It sets the mime type to image/png and sends it to the
client.

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


-Original Message-
From: Vijay Kandy [mailto:[EMAIL PROTECTED]]
Sent: 04 October, 2002 9:17 AM
To: 'Tomcat Users List'
Subject: RE: Sharing an object between servlets


Hmmm. I see what you are saying. But how does the HTML servlet write out the
image map data?

Thank you.
-Vijay



 -Original Message-
From:   Sexton, George [mailto:[EMAIL PROTECTED]]
Sent:   Friday, October 04, 2002 9:48 AM
To: Tomcat Users List
Subject:RE: Sharing an object between servlets

I have done what you are attempting. The problem with decoupling as
suggested by others is that you end up duplicating the logic to create the
image, and the image map.

My solution was to have the servlet generate the graphic and save it on the
session. The HTML servlet wrote out an image tag to another servlet that did
nothing but retrieve the generated session from the image.

Perhaps a more scalable approach would be to write the image out as a file,
and have a servlet that reads the file. A reference could be saved on the
session.

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


-Original Message-
From: Vijay Kandy [mailto:[EMAIL PROTECTED]]
Sent: 04 October, 2002 8:28 AM
To: 'Tomcat Users List'
Subject: Sharing an object between servlets



Dear All,

We are building a map tool - to draw maps and show some data on them. Now, I
have this situation. I have a servlet that gets coordinates from the
database and draws the map on its OutputStream (the content type is set to
png image). There is another servlet (content type is text/html) that embeds
the URL of the first servlet. This servlet also gets coordinates from the
database, and populates them over the image so I can do some image map or
mouseOver() tricks using javascript. I was wondering if there was a way to
make just one call to the database and share the coordinates between the
servlets. Right now, I will try any thing!

Thank you,
Vijay


--
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: Session Invalidate Listener???

2002-10-04 Thread Tim Funk

See Section 10.2 of the Servlet Spec(2.3) about listeners.

Especially: javax.servlet.http.HttpSessionListener

Frank Diakovasilis wrote:
 Does anybody know of a way of being notified before tomcat invalidates a
 session, i.e. fire off an event (InvalidateSessionEvent) prior to getting
 invalidated?
 


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




Connection pool DBCP

2002-10-04 Thread [EMAIL PROTECTED]

I have been seen that nobody is able to answer to this question, I 
presume it's interesting for anybody, for a few days.

I wish I knew if DBCP is able to find when db is restarted and 
reconnect.

I'd like to use the jakarta instrument DBCP because all the products of 
the jakarta community are very good, but the main point is to know if 
DBCP can recconect to DB lonely.

Can some answer to this question?

Thanks


Laura


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




Please Help: Jasper Problems

2002-10-04 Thread Chuck Carson



I am running the binary distibution of Tomcat 4.1.2 on Solaris 8. Each
time a JSP page is requested, it generates the following exception:

2002-10-04 08:28:45 StandardWrapperValve[jsp]: Servlet.service() for
servlet jsp threw exception
org.apache.jasper.JasperException: java/sql/Savepoint
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:248)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
snip


I have tried using j2sdk1.3.1_04 and j2sdk1.3.1_05, both behave the
same. The OS is patched will all relevant patches as of 27 sept.

I am at a loss.

Thanks for any help,
Chuck


--
This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version. 

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




Tomcat stop when exit telnet session

2002-10-04 Thread fong

I install tomcat 4.X in solaris8. I run /etc/init.d/tomcat4 start  to start tomcat 
in telnet session from win2K. That is ok. 

But when I close the telnet session. This service is also stop.
So I can't use tomcat web services.

How can I keep it running?

Much thanks...


Tomcat-Apache-SSL problem

2002-10-04 Thread haixi liu

Hello,

I am having a problem accessing my webapps using https protocol.

My server conf is: Tomcat 4.0.5 + Apache 1.3.26 + mod_jk 1.2 + mod_ssl

https works if I access static pages like https://myhost/manual/index.html, 
but does not work with my webapp (https://myhost/mywebapp/index.jsp).

However, http works with my webapp (http://myhost/mywebapp/index.jsp).

I tried mod_jk.so compiled by myself and the one from jakarta website
(http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/linux/i386/mod_jk-1.3-eapi.so)
 
with mod_ssl, neither worked.

Could someone give me a hint of what's going on, and how to fix this?

Thanks a lot
Haixi



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


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




RE: Sharing an object between servlets

2002-10-04 Thread Vijay Kandy

I think I have an idea now. Thank you Sexton, Lin and Shapira! 

-Vijay

 -Original Message-
From:   Sexton, George [mailto:[EMAIL PROTECTED]] 
Sent:   Friday, October 04, 2002 10:26 AM
To: Tomcat Users List
Subject:RE: Sharing an object between servlets

Go to:

http://www.mhsoftware.com/caldemo/servlet/login

Once you are logged in, choose Edit | Resource Types and click on the right
most icon by the word facility. This shows what I was speaking of. You might
want to change the date to 09/13/2002 and click on the Go button.

The ViewGantt servlet generates the HTML, and the PNG image. It saves the
PNG image on the user session. The graphic servlet just retrieves the image
from the session. It sets the mime type to image/png and sends it to the
client.

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


-Original Message-
From: Vijay Kandy [mailto:[EMAIL PROTECTED]]
Sent: 04 October, 2002 9:17 AM
To: 'Tomcat Users List'
Subject: RE: Sharing an object between servlets


Hmmm. I see what you are saying. But how does the HTML servlet write out the
image map data?

Thank you.
-Vijay



 -Original Message-
From:   Sexton, George [mailto:[EMAIL PROTECTED]]
Sent:   Friday, October 04, 2002 9:48 AM
To: Tomcat Users List
Subject:RE: Sharing an object between servlets

I have done what you are attempting. The problem with decoupling as
suggested by others is that you end up duplicating the logic to create the
image, and the image map.

My solution was to have the servlet generate the graphic and save it on the
session. The HTML servlet wrote out an image tag to another servlet that did
nothing but retrieve the generated session from the image.

Perhaps a more scalable approach would be to write the image out as a file,
and have a servlet that reads the file. A reference could be saved on the
session.

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


-Original Message-
From: Vijay Kandy [mailto:[EMAIL PROTECTED]]
Sent: 04 October, 2002 8:28 AM
To: 'Tomcat Users List'
Subject: Sharing an object between servlets



Dear All,

We are building a map tool - to draw maps and show some data on them. Now, I
have this situation. I have a servlet that gets coordinates from the
database and draws the map on its OutputStream (the content type is set to
png image). There is another servlet (content type is text/html) that embeds
the URL of the first servlet. This servlet also gets coordinates from the
database, and populates them over the image so I can do some image map or
mouseOver() tricks using javascript. I was wondering if there was a way to
make just one call to the database and share the coordinates between the
servlets. Right now, I will try any thing!

Thank you,
Vijay


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




Java web hosting service recommendation

2002-10-04 Thread Vernon Smith

Hi,

Can someone recommend Java web hosting service in North American and Asian? What are 
the typical service such as storage space, bandwidth?

Thanks for your input.

Vernon



Tired of all the SPAM in your inbox? Switch to LYCOS MAIL PLUS
http://www.mail.lycos.com/brandPage.shtml?pageId=plus

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




Re: Tomcat-Apache-SSL problem

2002-10-04 Thread David Mossakowski

Assuming you're using VirtualHost, do you specify the right JkMount 
paths in VirtualHost sections in your Apache that serve the secure port?

d.


haixi liu wrote:
 Hello,
 
 I am having a problem accessing my webapps using https protocol.
 
 My server conf is: Tomcat 4.0.5 + Apache 1.3.26 + mod_jk 1.2 + mod_ssl
 
 https works if I access static pages like 
 https://myhost/manual/index.html, but does not work with my webapp 
 (https://myhost/mywebapp/index.jsp).
 
 However, http works with my webapp (http://myhost/mywebapp/index.jsp).
 
 I tried mod_jk.so compiled by myself and the one from jakarta website
 
(http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/linux/i386/mod_jk-1.3-eapi.so)
 
 with mod_ssl, neither worked.
 
 Could someone give me a hint of what's going on, and how to fix this?
 
 Thanks a lot
 Haixi
 
 
 
 _
 Join the worldĀ’s largest e-mail service with MSN Hotmail. 
 http://www.hotmail.com
 
 
 -- 
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 

-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275




Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.




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




Re: Tomcat stop when exit telnet session

2002-10-04 Thread Nancy Crisostomo Martinez

Hi Fong,
I had the same behavior but in Tomcat 3.3 with Solaris 8.
It was very frustrated for me, but I got a very good solution because I still think 
that it's not the best.

You onlu have to run tomcat like this: (I did this in Tomcat 3.3)
nohup tomcat.sh start  nohup.out

So in the nohup.out file Tomcat will store all the console messages.
In fact, it's a unix patch...  :-)

Regards,
Nancy.


fong wrote:

 I install tomcat 4.X in solaris8. I run /etc/init.d/tomcat4 start  to start 
tomcat in telnet session from win2K. That is ok.

 But when I close the telnet session. This service is also stop.
 So I can't use tomcat web services.

 How can I keep it running?

 Much thanks...


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




OT: Does anyone recognize this cra........?

2002-10-04 Thread Steve R Burrus

 Hello all, Does anyone recognize this crap???!!! At least I personally think that
it is because I know for a fact that I have seen this before, maybe some months
ago! Is it some kind of a scam or what? I would really like to know before I
invest my hard earned $$$ in this! 


__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com


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


RE: Tomcat stop when exit telnet session

2002-10-04 Thread jon wingfield

I've never used solaris8 so the following may be in error, but here goes.

On linux using  seems not only to put the process in the background but
also seems to be nohup (no hang up).
On hp-ux 10/11 using  seems only to put the process in the background and
NOT nohup.

So, i surmise that solaris8 is behaving like hp-ux and that you need to use
the nohup command instead of just putting the process in the background.

so i would try:

nohup /etc/init.d/tomcat4 start 

Hope this helps,

Jon

-Original Message-
From: fong [mailto:[EMAIL PROTECTED]]
Sent: 04 October 2002 16:45
To: Tomcat Users List
Subject: Tomcat stop when exit telnet session


I install tomcat 4.X in solaris8. I run /etc/init.d/tomcat4 start  to
start tomcat in telnet session from win2K. That is ok.

But when I close the telnet session. This service is also stop.
So I can't use tomcat web services.

How can I keep it running?

Much thanks...


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




Tomcat and JDK on FreeBSD

2002-10-04 Thread Vincent Berruchon

   Hello,
I'm using Tomcat 4.0.3 with FreeBSD 4.6
I've install SUN JDK 1.3.1
but also the SUN JDK 1.4.1

Since the beginning, despite the definition of JAVA_HOME in the 
/usr/local/jakarta-tomcat4.0.3/catalina.sh
(with this line export JAVA_HOME=usr/java/   --this script use sh)
/usr/java a symbolic link to the JDK I want to use,
for the moment 1.3.1 but I'd like to pass to 1.4.1

Since the installation, when I start tomcat (with the script executing 
tomcat4ctl with www identity)
I get this error :
tomcat4ctl: Unable to stat /usr/local/linux-jdk1.3.1: No such file or 
directory

I've try to set JAVA_HOME using different ways in different files... but 
nothing works so I had to create a sym link with the path TOmcat was 
asking for (/usr/local/linux-jdk1.3.1) to the directory of my 
linux-Sun-JDK 1.3.1 (/usr/local/linux-sun-jdk1.3.1)

It's like Tomcat don't care about the JAVA_HOME env.variable and always 
use an hard-coded-like java_home dir : /usr/local/linux-jdk1.3.1
???

Questions:
Catalina.sh is not the place to set the JAVA_HOME var for Tomcat??
So where is it? why is Tomcat asking for /usr/local/linux-jdk1.3.1 a 
path that didn't exist and that I never set in a conf file...

Does Tomcat 4.0.3 support JDK 1.4.x on FreeBSD? (or something different 
from 1.3.1, just want to know even I don't absolutely need 1.4)

Thanks
Vincent


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




Re: Tomcat stop when exit telnet session

2002-10-04 Thread Dan Lipofsky

 You onlu have to run tomcat like this: (I did this in Tomcat 3.3)
 nohup tomcat.sh start  nohup.out

 So in the nohup.out file Tomcat will store all the console messages.
 In fact, it's a unix patch...  :-)

The syntax I use is

nohup tomcat.sh start

nohup already redirects everything to nohup.out, so the explicit
redirection is unneccessary and prehaps harmful.  Also, the 
shown in another post is also bad - nohup already runs the process
in the background for you, and using  put nohup itself in the background.
- Dan



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




Re: Shared JSP taglibs

2002-10-04 Thread Craig R. McClanahan



On Fri, 4 Oct 2002, shanmugampl wrote:

 Date: Fri, 04 Oct 2002 09:46:32 +0530
 From: shanmugampl [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Shared JSP taglibs

 I dont think that this solution will solve the problem. It says that
 instead of copying the tld files,  make them as a jar and put it in the
 WEB-INF/lib directory. Still i will have to duplicate the tld files
 which is not desired.

I don't have this problem -- but maybe it is because of the way that I
have my development environment organized.

I separate the build process such that each tag library is built
separately - and the output is a JAR file which includes the TLD.  Now,
whenever I want to use this tag library in a webapp, all I need to do is
grab that JAR file and drop it into /WEB-INF/lib.

 I have this same problem. What i want to know is
 that, like having the classes in shared jar(Tomcat home/shared/lib/),
 can i move my tld files outside my webapp and have it at a single place
 and access it across my contexts


In my experience, the (small) memory savings of putting classes into
/shared/lib (or /common/lib) is not worth the hassles it brings:

- All the webapps running in this Tomcat installation must
  share the same version of the tag library (or whatever -- it's
  not just limited to these), so you have to upgrade them all
  together in lockstep.

- If your shared library wants to access application-specific classes
  that are only available in /WEB-INF/classes or /WEB-INF/lib, you
  have to program them specifically to access those classes via the
  thread context class loader.

- You are depending on a non-portable feature of Tomcat (no concept
  of shared library directories is required by any of the Java specs;
  although most servers offer something like it, they are all
  implemented differently).

My advice would be to make your webapps as self-contained and
independently replaceable as possible.  Sharing classes across webapps is
not the way to do this.

 shan

Craig


 Craig R. McClanahan wrote:

 Tomcat 4.1 doesn't have any known to the container mechanisms built in,
 but there is a strategy you can use (also portable) to avoid having to
 separately copy TLDs into your webapps.  You can put TLD files in the
 META-INF/tlds directory of a JAR file in /WEB-INF/lib (presumably the
 JAR containing your tag library implementation classes), and Tomcat will
 automatically recognize it.  In fact, if your pages use the same URI that
 you specify in the uri element in the TLD, you don't need to declare
 them in the web.xml file either.
 
 Now, using a tag library is simply a matter of dropping a JAR file into
 /WEB-INF/lib.
 
 Craig
 
 
 
 On Thu, 3 Oct 2002, Tim Moore wrote:
 
 
 
 Date: Thu, 3 Oct 2002 18:11:16 -0400
 From: Tim Moore [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Shared JSP taglibs
 
 From the JavaServer Pages 1.2 Specification:
 
 JSP.7.3.5 Implicit Map entries from the Container
 The container may also add additional entries to the taglib map. As in
 the previous
 case, the entries are only added for URIs that are not present in the
 map. Conceptually
 the entries correspond to TLD describing these tag libraries.
 These implicit map entries correspond to libraries that are known to the
 container, who is responsible for providing their implementation, either
 through
 tag handlers, or via the mechanism described in Section JSP.7.3.9.
 
 Does Tomcat 4.1.x support this in any way? If so, can I add my own
 taglibs to the map of known taglibs?  We have several webapps running on
 the same server that use the same tag libraries.  Currently, we have the
 tag handler classes in a shared JAR, and copy the TLD files into each
 webapp.  If I could avoid having to do the latter, that would be nice.
 :-) I haven't seen anything to indicate that it's possible, but if it
 is, that would be cool!
 --
 Tim Moore / Blackboard Inc. / Software Engineer
 1899 L Street, NW / 5th Floor / Washington, DC 20036
 Phone 202-463-4860 ext. 258 / Fax 202-463-4863
 
 
 --
 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: Getting the name of the context

2002-10-04 Thread Craig R. McClanahan

Use request.getContextPath().

Craig

On Fri, 4 Oct 2002, shanmugampl wrote:

 Date: Fri, 04 Oct 2002 17:20:52 +0530
 From: shanmugampl [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Getting the name of the context

   Hi,

 I have a requirement where i need to know the name of the context i am
 in.Say i have a servlet class present in my Tomcat_Home/webapp/myapp/.
 Now i want to get the name of the application(in this case 'myapp') from
 my servlet. Is there a way of doing it. One of the way i found was
 specifying a name for the display-name attribute present in the
 web.xml. This name can be retrieved from the ServletContext. The problem
 here is two contexts can have the same display name which is not desired.

 Thanks
 Shanmugam.PL



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




Re: Tomcat and JDK on FreeBSD

2002-10-04 Thread jamie

I have mine set like so:

install linux-jdk via port this is needed (i believe) in conjunction with
the native 1.3.1 and tied together via the patchset #p7.
so you need to make install clean inside linux-jdk and follow directions


then inside your /root/.cshrc

put the following



PATH=/usr/local/jdk1.3.1/bin


setenv JAVA_HOME /usr/local/jdk1.3.1
#setenv ANT_HOME /home/myname/JAKARTA/jakarta-ant-1.5
setenv CATALINA_HOME /home/myname/JAKARTA/jakarta-tomcat-4.1.12
setenv CLASSPATH
.:$JAVA_HOME/lib/tools:jar:$JAVA_HOME/lib/dt.jar:$ANT_HOME/lib/ant.jar
then cp /root/.cshrc /home/myhome/.cshrc

logout log back in

export or setenv from interactive mode only last the terminal session

grab the binary tomcat from jakart.apache.org  version4.1.12.




   Hello,
 I'm using Tomcat 4.0.3 with FreeBSD 4.6
 I've install SUN JDK 1.3.1
 but also the SUN JDK 1.4.1

 Since the beginning, despite the definition of JAVA_HOME in the
 /usr/local/jakarta-tomcat4.0.3/catalina.sh
 (with this line export JAVA_HOME=usr/java/   --this script use sh)
 /usr/java a symbolic link to the JDK I want to use,
 for the moment 1.3.1 but I'd like to pass to 1.4.1

 Since the installation, when I start tomcat (with the script executing
 tomcat4ctl with www identity)
 I get this error :
 tomcat4ctl: Unable to stat /usr/local/linux-jdk1.3.1: No such file or
 directory

 I've try to set JAVA_HOME using different ways in different files...
 but  nothing works so I had to create a sym link with the path TOmcat
 was  asking for (/usr/local/linux-jdk1.3.1) to the directory of my
 linux-Sun-JDK 1.3.1 (/usr/local/linux-sun-jdk1.3.1)

 It's like Tomcat don't care about the JAVA_HOME env.variable and always
  use an hard-coded-like java_home dir : /usr/local/linux-jdk1.3.1
 ???

 Questions:
 Catalina.sh is not the place to set the JAVA_HOME var for Tomcat?? So
 where is it? why is Tomcat asking for /usr/local/linux-jdk1.3.1 a
 path that didn't exist and that I never set in a conf file...

 Does Tomcat 4.0.3 support JDK 1.4.x on FreeBSD? (or something different
  from 1.3.1, just want to know even I don't absolutely need 1.4)

 Thanks
 Vincent


 --
 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 Help: Getting this exception

2002-10-04 Thread Craig R. McClanahan



On Fri, 4 Oct 2002, Chuck Carson wrote:

 Date: Fri, 04 Oct 2002 07:35:50 -0700
 From: Chuck Carson [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Please Help: Getting this exception


 I moved my tomcat server from Linux to Solaris, now using the binary
 dist of tomcat 4.1.2 and jdk 1.3.1_04.

 All my apps are giving me this exception:



The version of JDBC in JDK 1.3 does not have a java.sql.Savepoint class --
that was added in JDK 1.4.  This won't matter if your applications don't
try to use Savepoint, but it looks like you're trying to call something
that does use it in one of your JSP pages.

Craig

 org.apache.jasper.JasperException: java/sql/Savepoint
   at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
 va:248)
   at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
   at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


 Anyone have any ideas?

 Thanks,
 Chuck


 --
 This message contains confidential information and is intended only for
 the individual named. If you are not the named addressee you should not
 disseminate, distribute or copy this e-mail. Please notify the sender
 immediately by e-mail if you have received this e-mail by mistake and
 delete this e-mail from your system. E-mail transmission cannot be
 guaranteed to be secure or error-free as information could be
 intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
 contain viruses. The sender therefore does not accept liability for any
 errors or omissions in the contents of this message, which arise as a
 result of e-mail transmission. If verification is required please
 request a hard-copy version.

 --
 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 stop when exit telnet session

2002-10-04 Thread Nancy Crisostomo Martinez

Jon, I even tried the , but it didn't work for me. I don't know why...but
maybe it really works for Fong...



jon wingfield wrote:

 I've never used solaris8 so the following may be in error, but here goes.

 On linux using  seems not only to put the process in the background but
 also seems to be nohup (no hang up).
 On hp-ux 10/11 using  seems only to put the process in the background and
 NOT nohup.

 So, i surmise that solaris8 is behaving like hp-ux and that you need to use
 the nohup command instead of just putting the process in the background.

 so i would try:

 nohup /etc/init.d/tomcat4 start 

 Hope this helps,

 Jon

 -Original Message-
 From: fong [mailto:[EMAIL PROTECTED]]
 Sent: 04 October 2002 16:45
 To: Tomcat Users List
 Subject: Tomcat stop when exit telnet session

 I install tomcat 4.X in solaris8. I run /etc/init.d/tomcat4 start  to
 start tomcat in telnet session from win2K. That is ok.

 But when I close the telnet session. This service is also stop.
 So I can't use tomcat web services.

 How can I keep it running?

 Much thanks...

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




Cannot view the console

2002-10-04 Thread Uma Maheswar

Hello,
I cannot view the Tomcat Console. I am using Tomcat 4.0 on Win XP. Also, I
cannot start the Tomcat from
Start - Programmes - Apache Tomcat. I need to go to the Control Panel -
Admin Tools - Services and then start the Tomcat over there.

Can any one tell me what is wrong? I am also using JDK1.4.0

Thanks
Uma
Java Developer
http://www.javagalaxy.com


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




Re: jdbc realm fails to authenticate sometimes

2002-10-04 Thread John M . Hollingsworth

I have found the version of the MySQL connector to be the problem.  Versions earlier 
than 2.0.9 gave me the same problem you're experiencing.  The latest version is 
2.0.14, I think.

John

 
 From: Paul Phillips [EMAIL PROTECTED]
 Date: 2002/10/02 Wed PM 07:25:40 EDT
 To: [EMAIL PROTECTED]
 Subject: jdbc realm fails to authenticate sometimes
 
 Hello all
 
 I am running Tomcat 4.1.10 and using a jdbc realm with mysql.  It is setup
 accordingto the docs on the jakarta web site.  (At least I think it is!)
 
 The entry in my server.xml file looks like this:
 
 
 Realm className=org.apache.catalina.realm.JDBCRealm debug=99
   driverName=org.gjt.mm.mysql.Driver
connectionURL=jdbc:mysql://localhost/authority
connectionName=me connectionPassword=mypassword
userTable=users userNameCol=user_name userCredCol=user_pass
userRoleTable=user_roles roleNameCol=role_name/
 
 I am finding occasional authentication failures that always follow the
 same pattern.I say occasional in that often the authentication works perfectly well.
 
 When it doesn't this is what happens...
 1) user tries to authenticate (typing very carefully the username and
 password),tomcat throws error, sending user to error.jsp page.
 2) Sometimes, on second attempt, authentication works, and user is allowed
 accessto webapp.
 3) However, sometimes on second attempt, Tomcat throws a null pointer
 exception.If the user simply presses retry (on the browser) at that point, he/she is
 allowedaccess to the application!  So, in this case, somehow the authentication
 is takingplace on the second attempt, but an exception is being thrown somewhere...
 
 I was wondering if this had something to do with the 8 hour disconnect of
 mysql, andI added:
 autoreconnect=true
 to the URL above, but that didn't seem to fix the problem.
 
 This is driving users of my webapp nuts (as you can imagine).  Does anyone
 haveany ideas of where to look, or what I can do to avoid this?
 
 Thanks
 Paul Phillips
 
 
 
 --
 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: Shared JSP taglibs

2002-10-04 Thread Tim Moore

 - All the webapps running in this Tomcat installation must
   share the same version of the tag library (or whatever -- it's
   not just limited to these), so you have to upgrade them all
   together in lockstep.

Ah, but that's exactly what I want! :-)

We have a fairly atypical situation here where our system is implemented
as a group of loosely connected webapps that all look like the same
application to the user.  Some of our tags exist to provide a standard
look  feel across these webapps, so obviously we don't want them to
fall out of sync.

Currently, the tag handler classes are in a shared JAR, and the tlds are
shared using SourceSafe links into each webapp's WEB-INF directory.
It's workable but not perfect.

I know that JSP 2.0 requires that the JSTL be made available by the
container, so I'll just let it be known for Tomcat 5 that it would be
nice if there were some kind of shared taglib directy where we could
just drop taglib JARs and have them automatically available to every
webapp.

Thanks!
-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, October 04, 2002 1:09 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: Re: Shared JSP taglibs
 
 
 
 
 On Fri, 4 Oct 2002, shanmugampl wrote:
 
  Date: Fri, 04 Oct 2002 09:46:32 +0530
  From: shanmugampl [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED],
   [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: Re: Shared JSP taglibs
 
  I dont think that this solution will solve the problem. It 
 says that 
  instead of copying the tld files,  make them as a jar and put it in 
  the WEB-INF/lib directory. Still i will have to duplicate the tld 
  files which is not desired.
 
 I don't have this problem -- but maybe it is because of the 
 way that I have my development environment organized.
 
 I separate the build process such that each tag library is 
 built separately - and the output is a JAR file which 
 includes the TLD.  Now, whenever I want to use this tag 
 library in a webapp, all I need to do is grab that JAR file 
 and drop it into /WEB-INF/lib.
 
  I have this same problem. What i want to know is
  that, like having the classes in shared jar(Tomcat 
  home/shared/lib/), can i move my tld files outside my 
 webapp and have 
  it at a single place and access it across my contexts
 
 
 In my experience, the (small) memory savings of putting 
 classes into /shared/lib (or /common/lib) is not worth the 
 hassles it brings:
 
 - All the webapps running in this Tomcat installation must
   share the same version of the tag library (or whatever -- it's
   not just limited to these), so you have to upgrade them all
   together in lockstep.
 
 - If your shared library wants to access application-specific classes
   that are only available in /WEB-INF/classes or /WEB-INF/lib, you
   have to program them specifically to access those classes via the
   thread context class loader.
 
 - You are depending on a non-portable feature of Tomcat (no concept
   of shared library directories is required by any of the Java specs;
   although most servers offer something like it, they are all
   implemented differently).
 
 My advice would be to make your webapps as self-contained and 
 independently replaceable as possible.  Sharing classes 
 across webapps is not the way to do this.
 
  shan
 
 Craig
 
 
  Craig R. McClanahan wrote:
 
  Tomcat 4.1 doesn't have any known to the container 
 mechanisms built 
  in, but there is a strategy you can use (also portable) to avoid 
  having to separately copy TLDs into your webapps.  You can put TLD 
  files in the META-INF/tlds directory of a JAR file in 
 /WEB-INF/lib 
  (presumably the JAR containing your tag library implementation 
  classes), and Tomcat will automatically recognize it.  In fact, if 
  your pages use the same URI that you specify in the uri 
 element in 
  the TLD, you don't need to declare them in the web.xml file either.
  
  Now, using a tag library is simply a matter of dropping a JAR file 
  into /WEB-INF/lib.
  
  Craig
  
  
  
  On Thu, 3 Oct 2002, Tim Moore wrote:
  
  
  
  Date: Thu, 3 Oct 2002 18:11:16 -0400
  From: Tim Moore [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Shared JSP taglibs
  
  From the JavaServer Pages 1.2 Specification:
  
  JSP.7.3.5 Implicit Map entries from the Container
  The container may also add additional entries to the 
 taglib map. As 
  in the previous case, the entries are only added for URIs 
 that are 
  not present in the map. Conceptually
  the entries correspond to TLD describing these tag libraries.
  These implicit map entries correspond to libraries that 
 are known to the
  container, who is responsible for providing their 
 implementation, either
  through
 

Re: Tomcat-Apache-SSL problem

2002-10-04 Thread haixi liu

David,

No, I did not.

I am using the auto config file generated by Tomcat from 
$CATALINA_HOME/conf/jk/workers.properties.

In my http.conf, I just have this line:
Include /usr/local/tomcat/conf/auto/mod_jk.conf

I think that's the reason why the http works but https doesn't work.

I looked at the VirtualHost _default_:443 portion of my http.conf, but 
don't know how to add those paths in there. I tried to paste the content of 
my $CATALINA_HOME/conf/auto/mod_jk.conf into the virtualhost directory, but 
it did not work.

Would you please give me several simple sample lines?

Thanks a lot




Assuming you're using VirtualHost, do you specify the right JkMount paths 
in VirtualHost sections in your Apache that serve the secure port?


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




RE: exception handling

2002-10-04 Thread Galbraith, Paul

I'm having a similar problem with error-page tag in tomcat 3.2.  I believe the tag is 
supposed to be supported in 3.2, can anyone confirm this, and provide a sample config 
snippet showing its proper use?

-Original Message-
From: Felipe Schnack [mailto:[EMAIL PROTECTED]]
Sent: October 4, 2002 10:49 AM
To: Tomcat Users List
Subject: exception handling


  I still have problems with error-page tag in tomcat config
  I added an entry to catch java.lang.Exception. For some reasong, it
catches JspException and redirects them to my error page, but
ServletExceptions aren't redirected. Anyone know why?
  I think I'll have to go back to my original idea of writing a filter
to catch the exceptions.

-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


--
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-Apache-SSL problem

2002-10-04 Thread haixi liu

Got it to work.

Thanks


From: haixi liu [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Tomcat-Apache-SSL problem
Date: Fri, 04 Oct 2002 17:25:20 +

David,

No, I did not.

I am using the auto config file generated by Tomcat from 
$CATALINA_HOME/conf/jk/workers.properties.

In my http.conf, I just have this line:
Include /usr/local/tomcat/conf/auto/mod_jk.conf

I think that's the reason why the http works but https doesn't work.

I looked at the VirtualHost _default_:443 portion of my http.conf, but 
don't know how to add those paths in there. I tried to paste the content of 
my $CATALINA_HOME/conf/auto/mod_jk.conf into the virtualhost directory, but 
it did not work.

Would you please give me several simple sample lines?

Thanks a lot




Assuming you're using VirtualHost, do you specify the right JkMount paths 
in VirtualHost sections in your Apache that serve the secure port?


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




webapps fail to start if jndi realm of one host is down (long)

2002-10-04 Thread James Shvarts

Hello all

sorry for the long post. i have the following issue: i have several
webapps that are loaded
tomcat-apache startup and are invoked using mod_webapp. there are several
hosts defined in server.xml. there is a jndi realm declared in one of the
host tag. the back-end of that is ldap server.

everything works when i start tomcat AFTER ldap has been successfully
started. however, if ldap server is down, and i attempt to start tomcat,
all webapps in all hosts fail to start. if ldap is down during tomcat
startup, how can i start webapps that are in
hosts other than the one that contains the jndi realm that fail to
connect?

also, i am yet to try to bring ldap down while tomcat is up with
all the webapps deployed. unfortunately, today this will not be feasible
since ldap is running as root and i can't kill that process. i'd love to
hear your comments as to what will/should happen in this case and how to
configure tomcat to make as much functionality available as possible in a
scenarion like this.

this is my server.xml

$ cat server.xml
Server port=8005 shutdown=SHUTDOWN debug=0
Service name=Tomcat-Apache

  Connector className=org.apache.catalina.connector.warp.WarpConnector
port=8008 minProcessors=5 maxProcessors=75
enableLookups=true acceptCount=10 debug=0/

Engine className=org.apache.catalina.connector.warp.WarpEngine
  defaultHost=cilantro.cc.columbia.edu name=Apache debug=0


 Host name=origin-default.auth.nsdl.org
Context
docBase=/nsdl/webapp.origin-default.delete/accounts/webApp
path=/accounts reloadable=true /
Context
docBase=/nsdl/webapp.origin-default.delete/manage/webApp path=/manage
reloadable=true /

Logger className=org.apache.catalina.logger.FileLogger
  prefix=origin-default_log. suffix=.txt
  timestamp=true/
  /Host

  Host name=origin-internal.auth.nsdl.org
Context
docBase=/nsdl/webapp.origin-internal.delete/accounts/webApp
path=/accounts reloadable=true /

Realm className=org.apache.catalina.realm.JNDIRealm debug=99
  connectionURL=ldap://cilantro.cc.columbia.edu:9050;
  userPattern=uid={0},ou=InternalOrigin,dc=nsdl,dc=org
userPassword=userPassword
  roleBase=ou=InternalOrigin,dc=nsdl,dc=org roleName=uid
roleSearch=(uniqueMember={0}) /

Logger className=org.apache.catalina.logger.FileLogger
  prefix=origin-internal_log. suffix=.txt
  timestamp=true/
  /Host

  Host name=registry.auth.nsdl.org
Context docBase=/nsdl/webapp.registry.delete/login/webApp
path=/login reloadable=true /

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

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

/Engine
  /Service
/Server


and this is the catalina.out output:

Starting service Tomcat-Apache
Apache Tomcat/4.0.4
Catalina.start: LifecycleException:  Exception opening directory server
connection:  javax.naming.CommunicationException: cilantro.cc.
columbia.edu:9050 [Root exception is java.net.ConnectException: Connection
refused]
LifecycleException:  Exception opening directory server connection:
javax.naming.CommunicationException: cilantro.cc.columbia.edu:905
0 [Root exception is java.net.ConnectException: Connection refused]
at org.apache.catalina.realm.JNDIRealm.start(JNDIRealm.java:834)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
javax.naming.CommunicationException: cilantro.cc.columbia.edu:9050.  Root
exception is java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
at 

JSP Form Problem

2002-10-04 Thread Seth Brahler

I know this is a Tomcat list, but my back is against the wall and I'm 
hoping someone can help.

I just discovered that my form breaks if the user types in an apostrophe.

On the process page, i am setting the passed variable to a string. 
filelocation is the name of my text field:

String filelocation = request.getParameter(filelocation);

How can I stop this from happening? There may be times when the user has to 
use the apostrophe symbol (obviously).

Thank you.



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




RE: Tomcat stop when exit telnet session

2002-10-04 Thread Hauck, Joe

In Solaris you can use the nohup command to run a program without ending
when the session ends.

So for tomcat it would be:

nohup $CATALINA_HOME/bin/startup.sh

Joe.

-Original Message-
From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]] 
Sent: Friday, October 04, 2002 1:22 PM
To: Tomcat Users List
Subject: Re: Tomcat stop when exit telnet session


Jon, I even tried the , but it didn't work for me. I don't know
why...but maybe it really works for Fong...



jon wingfield wrote:

 I've never used solaris8 so the following may be in error, but here 
 goes.

 On linux using  seems not only to put the process in the background 
 but also seems to be nohup (no hang up). On hp-ux 10/11 using  seems 
 only to put the process in the background and NOT nohup.

 So, i surmise that solaris8 is behaving like hp-ux and that you need 
 to use the nohup command instead of just putting the process in the 
 background.

 so i would try:

 nohup /etc/init.d/tomcat4 start 

 Hope this helps,

 Jon

 -Original Message-
 From: fong [mailto:[EMAIL PROTECTED]]
 Sent: 04 October 2002 16:45
 To: Tomcat Users List
 Subject: Tomcat stop when exit telnet session

 I install tomcat 4.X in solaris8. I run /etc/init.d/tomcat4 start  
 to start tomcat in telnet session from win2K. That is ok.

 But when I close the telnet session. This service is also stop. So I 
 can't use tomcat web services.

 How can I keep it running?

 Much thanks...

 --
 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: Where is javax.sql

2002-10-04 Thread Rick Fincher

javax.sql is in the standard edition JDK as of version 1.4.  It wasn't in
JDK 1.3 SE.  You had to get it from the J2EE version of the JDK or from the
JDBC 2.0 or 3.0 standard extensions jar that was distributed by Sun.

Many vendors included it in their JDBC driver jars.

It contains mostly interfaces for pooled connections and data sources that
your JDBC driver has to implement if it wants to do some of those JDBC
version 2 or 3 type things.

Rick

- Original Message -
From: Kenny G. Dubuisson, Jr. [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, October 04, 2002 10:19 AM
Subject: Re: Where is javax.sql


 That's in Oracle's JDBC classes file (named classes12.jar for my
 installation), not in Tomcat.  Make sure you install this file for your
 Oracle connections to work (put it in your $TOMCAT_HOME/lib directory).
It
 can be downloaded from Oracle.
 Kenny

 - Original Message -
 From: Chuck Carson [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, October 04, 2002 9:12 AM
 Subject: Where is javax.sql


 
  Where is the package at under tomcat 4.1.2?
 
  I moved my tomcat apps from Linux to Solaris but none of my oracle
  connections will work.
 
 
  Thanks,
  Chuck
 
 
  --
  This message contains confidential information and is intended only for
  the individual named. If you are not the named addressee you should not
  disseminate, distribute or copy this e-mail. Please notify the sender
  immediately by e-mail if you have received this e-mail by mistake and
  delete this e-mail from your system. E-mail transmission cannot be
  guaranteed to be secure or error-free as information could be
  intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
  contain viruses. The sender therefore does not accept liability for any
  errors or omissions in the contents of this message, which arise as a
  result of e-mail transmission. If verification is required please
  request a hard-copy version.
 
  --
  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]




passing authentication credentials from apache to tomcat 4.1.12?

2002-10-04 Thread Paul Tomsic

Has anyone does this successfully?

I am able to successfully have Apache authenticate
against a AuthDB file (configured w/ the mod_auth_db)
and I'm able to have Tomcat handle *.jsp files
successfully, but when I try to

request.getRemoteUser()

It gives me a NULL

any thoughts on this?  Is there some type of setup
that I'm missing?




__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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




RE: Tomcat stop when exit telnet session

2002-10-04 Thread Milt Epstein

On Fri, 4 Oct 2002, jon wingfield wrote:

 I've never used solaris8 so the following may be in error, but here
 goes.

 On linux using  seems not only to put the process in the background
 but also seems to be nohup (no hang up).  On hp-ux 10/11 using 
 seems only to put the process in the background and NOT nohup.

 So, i surmise that solaris8 is behaving like hp-ux and that you need
 to use the nohup command instead of just putting the process in the
 background.

Actually, I think it depends what shell/shell family you are using.  I
thought all shells automatically nohup'ed something that is run in the
background, but upon a quick view of the csh and ksh man pages, it
looks like this is true for csh et al, but not ksh et al.

So, I surmise that you are using a csh-type shell (including tcsh) on
your linux machine, but a ksh-type shell (including bash) on your
hp-ux machine :-).  And further that the original poster is using a
ksh-type shell.

Also, I think if you put this command itself in a script (regardless
of what shell kind of script it is), it'll work fine without the nohup.


 so i would try:

 nohup /etc/init.d/tomcat4 start 

 Hope this helps,

 Jon

 -Original Message-
 From: fong [mailto:[EMAIL PROTECTED]]
 Sent: 04 October 2002 16:45
 To: Tomcat Users List
 Subject: Tomcat stop when exit telnet session


 I install tomcat 4.X in solaris8. I run /etc/init.d/tomcat4 start  to
 start tomcat in telnet session from win2K. That is ok.

 But when I close the telnet session. This service is also stop.
 So I can't use tomcat web services.

 How can I keep it running?

 Much thanks...


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


Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




Re: Tomcat stop when exit telnet session

2002-10-04 Thread Milt Epstein

On Fri, 4 Oct 2002, Nancy Crisostomo Martinez wrote:

 Jon, I even tried the , but it didn't work for me. I don't know
 why...but maybe it really works for Fong...

What shell are you using?  My guess is that's a ksh-type shell.  (See
the note I sent out about the relation between nohup/ and shells.)


 jon wingfield wrote:

  I've never used solaris8 so the following may be in error, but here goes.
 
  On linux using  seems not only to put the process in the background but
  also seems to be nohup (no hang up).
  On hp-ux 10/11 using  seems only to put the process in the background and
  NOT nohup.
 
  So, i surmise that solaris8 is behaving like hp-ux and that you need to use
  the nohup command instead of just putting the process in the background.
 
  so i would try:
 
  nohup /etc/init.d/tomcat4 start 
 
  Hope this helps,
 
  Jon
 
  -Original Message-
  From: fong [mailto:[EMAIL PROTECTED]]
  Sent: 04 October 2002 16:45
  To: Tomcat Users List
  Subject: Tomcat stop when exit telnet session
 
  I install tomcat 4.X in solaris8. I run /etc/init.d/tomcat4 start  to
  start tomcat in telnet session from win2K. That is ok.
 
  But when I close the telnet session. This service is also stop.
  So I can't use tomcat web services.
 
  How can I keep it running?
 
  Much thanks...
 
  --
  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]


Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




RE: Tomcat stop when exit telnet session

2002-10-04 Thread Mike Jackson

Try nohup tomcat4 run  startup.log 21 .  There's something in the
way that tomcat starts within the catalina.sh file that seems to 
confuse things.  This is also a problem for me on version 3.3 of tomcat,
but I run on Unixware not solaris.  

--mikej
-=-
mike jackson
[EMAIL PROTECTED] 

 -Original Message-
 From: fong [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 04, 2002 8:45 AM
 To: Tomcat Users List
 Subject: Tomcat stop when exit telnet session
 
 
 I install tomcat 4.X in solaris8. I run /etc/init.d/tomcat4 
 start  to start tomcat in telnet session from win2K. That is ok. 
 
 But when I close the telnet session. This service is also stop.
 So I can't use tomcat web services.
 
 How can I keep it running?
 
 Much thanks...


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




So, what does it take to register a JDBC driver for a connection pool?

2002-10-04 Thread Michael Nicholson

Or is that even necessary?  (I would think it is...).  I've been trying to get the 
DBCP-commons going for a while, and finally got it to find the correct resource 
reference, but it still returns a null datasource.  So I started changing things in 
the server.xml to find out what doesn't cause my result to change, with the idea that 
maybe that's where my error is.  So I can change my driverClassName to anything and 
get the exact same result, so my current theory is that this is where the problem is.  
My partial server.xml file is below:

Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource / 

  ResourceParams name=jdbc/myoracle
parameter
  namedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value
/parameter
parameter
  namedriverName/name
  valuejdbc:oracle:thin:oraclehost.com:1521:ORDB/value
/parameter
parameter
  nameusername/name
  valuewahwah/value
/parameter
parameter
  namepassword/name
  valuejoebillybob/value
/parameter
parameter
  namemaxActive/name
  value20/value
/parameter
parameter
  namemaxIdle/name
  value10/value
/parameter
parameter
  namemaxWait/name
  value-1/value
/parameter
  /ResourceParams  


4.1.13 release date?

2002-10-04 Thread Neil Barton

Hi,

We have encountered bug # 13015, while running on Tomcat 4.1.12.  According
to the bug database this has been fixed in release 4.1.13.  Does anyone know
when this release will be made available?

Thanks

Neil






Manager application and JDBCRealm

2002-10-04 Thread Brian Buckley

Hello,

Is the Manager application that comes with Tomcat for use with the
MemoryRealm only, or can it be used with other types of realms, in
particular, the JDBCRealm?

If it can be used with the JDBCRealm, how does one configure the JDBCRealm
to store the additional descriptive information displayed by the Manager
application (i.e., Full name for each User and Description for each
Group and for each Role) ?

The example JDBCRealm configuration that comes with Tomcat does not have a
place to store the additional descriptive information .

Any help, tips or references to resources appreciated.

Thanks,
-Brian

!--  example  has  no Description or Full name table/columns --
Realm className=org.apache.catalina.realm.JDBCRealm debug=99
driverName=org.gjt.mm.mysql.Driver
connectionURL=jdbc:mysql://localhost:3306/test
connectionName=trial connectionPassword=pw
userTable=users userNameCol=user_name userCredCol=user_pass
userRoleTable=user_roles roleNameCol=role_name /



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




Form Based Authentication, getting login and password

2002-10-04 Thread Externo

Sorry by my English.

How I can guess login and password strings of an user, from error page (JSP)
using Form Based Authentication of Tomcat?

I need know it to lock the count each 3 error tries (if login is ok but
password is bad, insteed).

Methods 'getRemoteUser', 'isUserInRole' and 'getUserPrincipal' of
HttpServletRequest interface have this result: If no user has been
authenticated, returns null, false and null respectly. For this reason, they
aren't utils for me.

If I donĀ“t know login what user writed, I can't lock his/her count.

Exist solution for this? Thanks



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




new install help, Solaris, Apache, Lucene, Tomcat

2002-10-04 Thread Brian Cuttler


Hello, I am Brian Cuttler and I'm new to the list.

I have a Solaris 8 system with 
 Apache HTTP server 1.3
 Lucene 1.2
 Tomcat 4.1.10

I have the Apache server running with 3 virtual server.

I have been able to get Lucene to create an index of
one of the servers (the intranet server, don't really
need to index the preview sites for the extranet server)
from the OS command line #.

Have been able to search the Lucene index from the OS command line.

What I'm really asking for now is how to implement a WEB page
for searching the index. I am under the believe that Tomcat is
required for this.

Currently I don't need any other features, just the ability
to perform the (lucene) java search from a web page.

I'm able to pull up via the webserver the (lucene) provided
Search.html, it seems to be able to find the (lucene) provided
Search.jhtml but I'm seeing errors at that point.

I suspect I've mis-set or failed to set something in the environment
but I haven't yet solved the problem.

I see the Search.jhtml displayed starting with the following...

---
While parsing `queryString`: `e.getMessage()` return; } String servletPath = 
request.getRequestURI(); //
getServletPath should work int j = servletPath.indexOf('?'); // here but doesn't, so 
we if (j != -1) //
remove query by hand... servletPath = servletPath.substring(0, j); 
---

I am happy to provide additional errors and config information but
didn't wish to clutter the initial email.

Any help would be apreciated.

thank in advance,

Brian

---
   Brian R Cuttler [EMAIL PROTECTED]
   Computer Systems Support(v) 518 486-1697
   Wadsworth Center(f) 518 473-6384
   NYS Department of HealthHelp Desk 518 473-0773


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




RE: jk on HP-UX

2002-10-04 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)

Have not compiled jk on our hp-ux machines, need to upgrade to perl 5.005 in
order to use automake

It is interesting that configure reports this
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes


but your gcc does not actualy work

You might try finding where in configure it does this check and forcing it
to be no.


Also, HP-UX has issues with the test command as shown by your

/usr/bin/test[7]: test: Specify a parameter with this command.

if the variable is truly empty, test throws this error.
You might try locating these places and seeing if you can rewrite the if
statement so that it works.  I had to do this for the mod_web app connector.

Jeff

-Original Message-
From: Dorin Florian Ciuca [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 8:03 AM
To: Tomcat Users List
Subject: jk on HP-UX


Hi,

 I can't build jk connector on HP-UX.  Could someone help me or do you have
the binaries for this machine ?


I have HP - UX  B.11.00 U 9000/800.

After I ran configure i got something like this :

creating cache ./config.cache
checking for a BSD compatible install... scripts/build/unix/install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... found
checking for working automake... missing
checking for working autoheader... found
checking for working makeinfo... missing
checking for Cygwin environment... no
checking for mingw32 environment... no
checking how to run the C preprocessor... cc -E
checking host system type... hppa2.0w-hp-hpux11.00
checking build system type... hppa2.0w-hp-hpux11.00
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ld used by GCC... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for /usr/ccs/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/local/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... file_magic
(s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library
checking for object suffix... o
checking for executable suffix... no
checking command to parse /usr/local/bin/nm -B output... ok
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/ccs/bin/ld) supports shared libraries...
yes
checking how to hardcode library paths into programs... relink
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... hpux11.00 dld.sl
checking if libtool supports shared libraries... yes
checking for dlopen in -ldl... no
checking for dlopen... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
creating libtool
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ld used by GCC... (cached) /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... (cached) no
checking for test... /usr/bin/test
checking for rm... /usr/bin/rm
checking for grep... /usr/bin/grep
checking for echo... /usr/bin/echo
checking for sed... /usr/bin/sed
checking for cp... /usr/bin/cp
checking for mkdir... /usr/bin/mkdir
checking for libtool... /usr/local/bin/libtool
need to check for Perl first, apxs depends on it...
checking for perl... /usr/local/bin/perl
/usr/bin/test[7]: test: Specify a parameter with this command.
/usr/bin/test[7]: test: Specify a parameter with this command.
apxs:Error: Invalid query string `EXTRA_CFLAGS'
apxs:Error: Invalid query string `EXTRA_CPPFLAGS'
building connector for apache-2.0
checking for target platform... unix
no apache given
...Enabling EAPI Support...
/usr/bin/test[7]: test: Specify a parameter with this command.
/usr/bin/test[7]: test: Specify a parameter with this command.
updating cache ./config.cache
creating ./config.status
creating Makefile
creating apache-1.3/Makefile
creating apache-1.3/Makefile.apxs
creating apache-2.0/Makefile
creating apache-2.0/Makefile.apxs
creating common/Makefile
creating common/list.mk
creating jni/Makefile


but when I ran make it crashed:


No suffix list.
Making all in common
/usr/local/bin/libtool --mode=compile gcc

Tomcat 4.0.5 and RPM

2002-10-04 Thread Luise Massimo

Hi all,

i would know if and when would be available an rpm package with tomcat 
v4.0.5 ?

TIA

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




RE: Connection pool DBCP

2002-10-04 Thread Galbraith, Paul

If you need to be absolutely certain, you can configure DBCP to test every connection 
before it is checked out.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: October 4, 2002 11:38 AM
To: tomcat-user
Subject: Connection pool DBCP


I have been seen that nobody is able to answer to this question, I 
presume it's interesting for anybody, for a few days.

I wish I knew if DBCP is able to find when db is restarted and 
reconnect.

I'd like to use the jakarta instrument DBCP because all the products of 
the jakarta community are very good, but the main point is to know if 
DBCP can recconect to DB lonely.

Can some answer to this question?

Thanks


Laura


--
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 Help: Getting this exception

2002-10-04 Thread Chuck Carson


Odd. I downgraded to tomcat 4.0.5 and everything works fine.

Thanks for the help,
Chuck


 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, October 04, 2002 10:16 AM
 To: Tomcat Users List
 Subject: Re: Please Help: Getting this exception
 
 
 
 
 On Fri, 4 Oct 2002, Chuck Carson wrote:
 
  Date: Fri, 04 Oct 2002 07:35:50 -0700
  From: Chuck Carson [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: Please Help: Getting this exception
 
 
  I moved my tomcat server from Linux to Solaris, now using 
 the binary 
  dist of tomcat 4.1.2 and jdk 1.3.1_04.
 
  All my apps are giving me this exception:
 
 
 
 The version of JDBC in JDK 1.3 does not have a 
 java.sql.Savepoint class -- that was added in JDK 1.4.  This 
 won't matter if your applications don't try to use Savepoint, 
 but it looks like you're trying to call something that does 
 use it in one of your JSP pages.
 
 Craig
 
  org.apache.jasper.JasperException: java/sql/Savepoint
  at 
  
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.
  ja
  va:248)
  at
  
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
 .java:289)
  at
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
 
  Anyone have any ideas?
 
  Thanks,
  Chuck
 
 
  --
  This message contains confidential information and is intended only 
  for the individual named. If you are not the named addressee you 
  should not disseminate, distribute or copy this e-mail. 
 Please notify 
  the sender immediately by e-mail if you have received this 
 e-mail by 
  mistake and delete this e-mail from your system. E-mail 
 transmission 
  cannot be guaranteed to be secure or error-free as 
 information could 
  be intercepted, corrupted, lost, destroyed, arrive late or 
 incomplete, 
  or contain viruses. The sender therefore does not accept 
 liability for 
  any errors or omissions in the contents of this message, 
 which arise 
  as a result of e-mail transmission. If verification is 
 required please 
  request a hard-copy version.
 
  --
  To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
  For 
 additional commands, 
 e-mail: 
  mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 



--
This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version. 

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




RE: 4.1.13 release date?

2002-10-04 Thread Turner, John


There's no timeline for releases.  You should be able to pick up the fix in
the nightly build.

John


 -Original Message-
 From: Neil Barton [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 04, 2002 12:07 PM
 To: '[EMAIL PROTECTED]'
 Subject: 4.1.13 release date?
 
 
 Hi,
 
 We have encountered bug # 13015, while running on Tomcat 
 4.1.12.  According
 to the bug database this has been fixed in release 4.1.13.  
 Does anyone know
 when this release will be made available?
 
 Thanks
 
 Neil
 
 
 
 

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




RE: Tomcat 4.1 + IIS/isapi_redirect.dll + WebDAV

2002-10-04 Thread Tim Moore

Just to follow up on my own post, the problem was that I was still using
the version of isapi_redirect that came with Tomcat 3.3.1.  Upgrading to
the new JK 1.2.0 version fixed the problem.  If anyone's interested in
more of the hairy details, email me off list.

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


 -Original Message-
 From: Tim Moore 
 Sent: Thursday, October 03, 2002 7:18 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 4.1 + IIS/isapi_redirect.dll + WebDAV
 
 
 I've got IIS 5 going through isapi_redirect.dll to Tomcat 
 4.1.12, and I'm using the WebDAV servlet.
 
 Using MSIE Web Folders, I cannot connect to the WebDAV share 
 this way. I get a 403 Forbidden error back. The IIS log 
 shows this: 22:57:59 127.0.0.1 PROPFIND 
 /jakarta/isapi_redirect.dll 403 and it appears that Tomcat 
 isn't even seeing the request
 
 If I bypass IIS by going straight to Tomcat over the HTTP 
 connector on port 8080, everything's fine.
 
 If I use DAVExplorer instead of Web Folders, it works either way.
 
 So my first question is: does anyone use this kind of setup 
 successfully? Or does anyone have any experience or advice 
 that might relate to this? Thanks in advance.
 
 -- 
 Tim Moore / Blackboard Inc. / Software Engineer
 1899 L Street, NW / 5th Floor / Washington, DC 20036
 Phone 202-463-4860 ext. 258 / Fax 202-463-4863
 
 

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




download 4.0.3?

2002-10-04 Thread chad kellerman

Hi everyone,

I just went to download 4.0.3 and I can't, the url is missing not
found.  

I was using 4.0.3 on a rh6.2 server now I was going to put it on a
rh7.3 server.  Figured I use the same version because I am afraid the
the {$TOMCAT_HOME}/conf/*.xml files might not work(compatible) with
newer versions of tomcat.  

  Can I just drop the server.xml file (and others) and expect them to
work with 4.1.X? ( making sure everything else is set up correctly, of
course) Or are there a lot of changes?  

If I can't, anyone know where to download 4.0.3?


Thanks,
chad

-- 
Chad Kellerman
Jr. Systems Administrator
Alabanza Inc
410-234-3305



signature.asc
Description: This is a digitally signed message part


Re: passing authentication credentials from apache to tomcat 4.1.12?

2002-10-04 Thread James Shvarts

try setting tomcatAuthentication=false on the Ajp13Interceptor in the
server.xml file if you want use the web server's authentication.

_James

On Fri, 4 Oct 2002, Paul Tomsic wrote:

 Has anyone does this successfully?

 I am able to successfully have Apache authenticate
 against a AuthDB file (configured w/ the mod_auth_db)
 and I'm able to have Tomcat handle *.jsp files
 successfully, but when I try to

 request.getRemoteUser()

 It gives me a NULL

 any thoughts on this?  Is there some type of setup
 that I'm missing?




 __
 Do you Yahoo!?
 New DSL Internet Access from SBC  Yahoo!
 http://sbc.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]




ProxyDirContext -tomcat cache question!

2002-10-04 Thread Sankaranarayanan (Ganesh) Ganapathy

Resending it ... as it did not get any response. Can somebody help?

Hi All,

I see that tomcat maintains a cache of resources for each web application. Basically 
all web application resource like web.xml , taglibrary files, jsp files, java scripts, 
images etc seem to loaded in to the web application cache in memory, provided they are 
less than 32k. 

I have a reporting application that generates images all the time (pie charts, bar 
charts). I see that these keep getting loaded in to the tomcat cache but never 
unloaded. From looking at the tomcat proxydircontext code, I cant seem to find any 
mechanism to control the cache. The cache seems to grow indefinitely and my old images 
dont get unloaded. All my old charts that got loaded in to the cache still remain 
there and dont get flushed. I have been running my application for over a week now and 
my tomcat memory keeps shooting up. 

When I provide it I see that my webapplication resource cache has 1 objects in 
memory and still keeps growing.

How do I handle this case. Is there a way to control this cache? Can  somebody help me 
with this?

Any help is greatly appreciated

Thanx
Ganesh

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




sendRedirect not working correctly

2002-10-04 Thread Jared Reeve


Using Apache Tomcat/4.1.12

I have my application under the webapps directory.  When I do a sendRedirect to 
/servlet/MyServlet I get an HTTP Status 404 - The requested resource 
(/servlet/MyServlet) is not available.  The correct path should be 
/MyApp/servlet/MyServlet.

It appears it is not prepending the Root URI (MyApp).  Any suggestions



-
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!


Re: sendRedirect not working correctly

2002-10-04 Thread Charles Baker


--- Jared Reeve [EMAIL PROTECTED] wrote:
 
 Using Apache Tomcat/4.1.12
 
 I have my application under the webapps directory. 
 When I do a sendRedirect to /servlet/MyServlet I
 get an HTTP Status 404 - The requested resource
 (/servlet/MyServlet) is not available.  The correct
 path should be /MyApp/servlet/MyServlet.
 
 It appears it is not prepending the Root URI
 (MyApp).  Any suggestions
 

I assume that you are calling sendRedirect() in a
servlet? If so then why not use MyServlet? You are
already at /MyApp/servlet/. Is it a jsp in /MyApp?
Then try servlet/MyApp.


=
[EMAIL PROTECTED]
http://www.charleshbaker.com/~chb/
Hacking is a Good Thing!
See http://www.tuxedo.org/~esr/faqs/hacker-howto.html

__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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




Tomcat 4.1.12 Servlet Error

2002-10-04 Thread Matt Fury

I believe this is sort of a cross post between Dev and
User.

Again an error I get with running the Tomcat Service
but NOT the Tomcat DOS Command line..

I am getting:

java.lang.NoClassDefFoundError:
javax/servlet/http/HttpServlet
at java.lang.ClassLoader.defineClass0(Native Method)
at
java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at
java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
at
java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at
java.net.URLClassLoader$1.run(URLClassLoader.java:193)
at java.security.AccessController.doPrivileged(Native
Method)
at
java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1274)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:874)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:658)
at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:408)
at
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1040)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151)
at java.lang.Thread.run(Thread.java:536)


For some reason ONLY when I run Tomcat as a service.
It ran fine in previous versions.

Here are the lines I have in the web.xml file.

servlet
 servlet-nameDownload/servlet-name
 servlet-classDownloadServlet/servlet-class
 init-param
  param-namedir/param-name
 
param-valueD:\\inetpub\\intranet_root/param-value
 /init-param
/servlet

Did I miss something or has the web.xml changed?

Thanks for help!

-Matt

=

int myName() {
  cout  -Matt Fury \n;
  return 0;
}


__
Do you Yahoo!?
New DSL Internet 

RE: sendRedirect not working correctly

2002-10-04 Thread Tim Moore

 -Original Message-
 From: Jared Reeve [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, October 04, 2002 4:20 PM
 To: [EMAIL PROTECTED]
 Subject: sendRedirect not working correctly
 
 
 
 Using Apache Tomcat/4.1.12
 
 I have my application under the webapps directory.  When I do 
 a sendRedirect to /servlet/MyServlet I get an HTTP Status 
 404 - The requested resource (/servlet/MyServlet) is not 
 available.  The correct path should be /MyApp/servlet/MyServlet.
 
 It appears it is not prepending the Root URI (MyApp).

It's not supposed to.

  Any suggestions

response.sendRedirect(request.getContextPath() + /servlet/MyServlet);

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


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




JNDI help

2002-10-04 Thread Fawaz Ahmad

Hello,

Can anyone help me with this problem.  I have read up on Tomcat JNDI from
the Tomcat HowTo webpage and tried to implement it in my
servlet.  Unfortunately, I can not seem to get it to work.  My servlet
works fine when i use the original code to access the database:


  Class.forName(com.microsoft.jdbc.sqlserver.SQLServerDriver);
  //establish the connection
  Connection conn = DriverManager.getConnection(url,dbUsr, dbPsw);


But when I try using the JNDI service my servlet doesn't seem to access
the database.  I am using the following code.  Is ther something trival
that I might be leaving out?

  Context ctx = (Context) new InitialContext().lookup(java:comp/env);
  Connection conn = ((DataSource) ctx.lookup(jdbc/WebOE)).getConnection();

where my servlet's web.xml is:

web-app
resource-ref
  res-ref-namejdbc/WebOE/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
/resource-ref

servlet
  servlet-nameWebOE/servlet-name
  servlet-classWebOE/servlet-class
  init-param
param-nameLogPath/param-name
param-valuec:\test\Log/param-value
  /init-param
/servlet
/web-app


And my entry to server.xml is:

Context path=/WebOE docBase=WebOE debug=0 reloadable=true/

Resource name=jdbc/WebOE auth=Container type=javax.sql.DataSource/
  ResourceParams name=jdbc/WebOE
   parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
  nameusername/name
  valueweboe/value
/parameter
parameter
  namepassword/name
  valueweboe/value
/parameter
parameter
  namedriverClassName/name
  valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value
/parameter
parameter
  nameurl/name
  valuejdbc:microsoft:sqlserver://spacejam:1433;DatabaseName=WebOE/value
/parameter
parameter
  namemaxActive/name
  value25/value
/parameter
parameter
  namemaxIdle/name
  value4/value
/parameter
  /ResourceParams



Fawaz




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




Re: Problem with Tomcat 4.0.2 hanging

2002-10-04 Thread tysonlowery

Nope, its not restricted.

I think the problem is that the tomcat threads just hog memory and CPU.
But I'm not sure how to solve that one either.

- Original Message -
From: Collins, Jim [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, October 04, 2002 3:26 AM
Subject: RE: Problem with Tomcat 4.0.2 hanging


 Is the site restricted? I had a similar problem using the JNDI realm, I
 solved the problem by getting Apache to authenticate the user rather than
 Tomcat.

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: 03 October 2002 17:29
  To: [EMAIL PROTECTED]
  Subject: Re: Problem with Tomcat 4.0.2 hanging
 
 
  I'm actually having the problem again right this second.  I
  went into the
  server and did a ps aux.  I found about 60 tomcat processes
  running.  Is
  this normal?
 
  I've been struggling with this for over a week.  Any advice,
  suggestions,
  etc. that you might have would be greatly appreciated.
 
  - Original Message -
  From: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, October 02, 2002 11:54 AM
  Subject: Problem with Tomcat 4.0.2 hanging
 
 
   I'm running Tomcat 4.0.2.  A few times a day I try to go to
  my site and
   nothing happens, or sometimes I get an Internal Server
  Error. I'm able to
   bring up html pages, so Apache is running fine. I restart Tomcat
  (sometimes
   more than once) and all is good. I've tried rebooting the
  server and that
   doesn't do the trick either. It just fixes it temporarilly.
  
   I've been trying to troubleshoot the problem, but I'm
  relatively new to
   Tomcat. Any advice on what I should be looking at?
  
   I have looked at my catalina.out file, and the last error is always:
  
   WebappClassLoader: Additional JARs have been added
   java.util.zip.ZipException: error in opening zip file
   at java.util.zip.ZipFile.open(Native Method)
   at java.util.zip.ZipFile.init(ZipFile.java:112)
   at java.util.jar.JarFile.init(JarFile.java:117)
   at java.util.jar.JarFile.init(JarFile.java:82)
   at org.apache.catalina.loader.WebappLoader.setRepositories
   (WebappLoader.java:1005)
   at org.apache.catalina.loader.WebappLoader.start
  (WebappLoader.java:628)
   at
  
  org.apache.catalina.core.StandardContext.reload(StandardContex
  t.java:2421)
   at
  
  org.apache.catalina.loader.WebappContextNotifier.run(WebappLoa
  der.java:1329)
   at java.lang.Thread.run(Thread.java:536)
  
   I *suspect* this has something to do with my problem, but
  I'm not sure.
  Any
   ideas or pointers would be GREATLY appreciated!
  
   Thanks,
   Tyson
  
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 


 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]


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




RE: sendRedirect not working correctly

2002-10-04 Thread Jay Hombal

i think u are not getting the context from the application 
did u check that?
-J

-Original Message-
From: Tim Moore [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 1:32 PM
To: Tomcat Users List
Subject: RE: sendRedirect not working correctly


 -Original Message-
 From: Jared Reeve [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, October 04, 2002 4:20 PM
 To: [EMAIL PROTECTED]
 Subject: sendRedirect not working correctly
 
 
 
 Using Apache Tomcat/4.1.12
 
 I have my application under the webapps directory.  When I do 
 a sendRedirect to /servlet/MyServlet I get an HTTP Status 
 404 - The requested resource (/servlet/MyServlet) is not 
 available.  The correct path should be /MyApp/servlet/MyServlet.
 
 It appears it is not prepending the Root URI (MyApp).

It's not supposed to.

  Any suggestions

response.sendRedirect(request.getContextPath() + /servlet/MyServlet);

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


--
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: Problem with Tomcat 4.0.2 hanging

2002-10-04 Thread Rob Reed

HOW THE HELL do you guys get off this list.. and yes I have tried
sending mail to the unsubscribe address.. does not work. 

please respond to my email address and NOT the list if you have an
answer. One is much appreciated.

Thanks,
-Rob

On Fri, 2002-10-04 at 14:33, [EMAIL PROTECTED] wrote:
 Nope, its not restricted.
 
 I think the problem is that the tomcat threads just hog memory and CPU.
 But I'm not sure how to solve that one either.
 
 - Original Message -
 From: Collins, Jim [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Friday, October 04, 2002 3:26 AM
 Subject: RE: Problem with Tomcat 4.0.2 hanging
 
 
  Is the site restricted? I had a similar problem using the JNDI realm, I
  solved the problem by getting Apache to authenticate the user rather than
  Tomcat.
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
   Sent: 03 October 2002 17:29
   To: [EMAIL PROTECTED]
   Subject: Re: Problem with Tomcat 4.0.2 hanging
  
  
   I'm actually having the problem again right this second.  I
   went into the
   server and did a ps aux.  I found about 60 tomcat processes
   running.  Is
   this normal?
  
   I've been struggling with this for over a week.  Any advice,
   suggestions,
   etc. that you might have would be greatly appreciated.
  
   - Original Message -
   From: [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Wednesday, October 02, 2002 11:54 AM
   Subject: Problem with Tomcat 4.0.2 hanging
  
  
I'm running Tomcat 4.0.2.  A few times a day I try to go to
   my site and
nothing happens, or sometimes I get an Internal Server
   Error. I'm able to
bring up html pages, so Apache is running fine. I restart Tomcat
   (sometimes
more than once) and all is good. I've tried rebooting the
   server and that
doesn't do the trick either. It just fixes it temporarilly.
   
I've been trying to troubleshoot the problem, but I'm
   relatively new to
Tomcat. Any advice on what I should be looking at?
   
I have looked at my catalina.out file, and the last error is always:
   
WebappClassLoader: Additional JARs have been added
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.init(ZipFile.java:112)
at java.util.jar.JarFile.init(JarFile.java:117)
at java.util.jar.JarFile.init(JarFile.java:82)
at org.apache.catalina.loader.WebappLoader.setRepositories
(WebappLoader.java:1005)
at org.apache.catalina.loader.WebappLoader.start
   (WebappLoader.java:628)
at
   
   org.apache.catalina.core.StandardContext.reload(StandardContex
   t.java:2421)
at
   
   org.apache.catalina.loader.WebappContextNotifier.run(WebappLoa
   der.java:1329)
at java.lang.Thread.run(Thread.java:536)
   
I *suspect* this has something to do with my problem, but
   I'm not sure.
   Any
ideas or pointers would be GREATLY appreciated!
   
Thanks,
Tyson
   
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
 
 
  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]
 
 
 --
 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: passing authentication credentials from apache to tomcat 4.1.12?

2002-10-04 Thread Dennis Muhlestein

set tomcatAuthentication=false in your ajp connector xml.
Then it should recognize the apache authorized user.

Worked for us.

-Dennis


On Fri, 2002-10-04 at 12:36, Paul Tomsic wrote:
 Has anyone does this successfully?
 
 I am able to successfully have Apache authenticate
 against a AuthDB file (configured w/ the mod_auth_db)
 and I'm able to have Tomcat handle *.jsp files
 successfully, but when I try to
 
 request.getRemoteUser()
 
 It gives me a NULL
 
 any thoughts on this?  Is there some type of setup
 that I'm missing?
 
 
 
 
 __
 Do you Yahoo!?
 New DSL Internet Access from SBC  Yahoo!
 http://sbc.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]




How to access jsp from inside WEB-INF directory [jay]

2002-10-04 Thread Jay Hombal

Hi Friends
I am having issue with getting jsp's executing from within a subdirectory from 
 the WEB-INF directory of the Tomcat4.1.12. This works on other servers like orion.
we did this as means to protect access to other jsps without establishing sessions
thanks
jay 

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




Re: Connection Pool Not Reusing Connections

2002-10-04 Thread Thaddeus Gean Cowan Thompson


I upgraded to Tomcat 4.1.12 and added the factory parameter to the Context
in server.xml and I started to get Connections from the pool.  Thanks Ej.

 - Thadd

On Thu, 3 Oct 2002 [EMAIL PROTECTED] wrote:


 The below web descriptor does not actually use a Connection Pool since
 you do not define the factory tag to tell Tomcat that the JNDI is a
 Connection pool.
 As of now, it is just generating a new connection every time you request
 one.

 See below for example factory that will work with Tomcat 4.1.10

 parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter


 Tomcat release 4.1.10 and higher comes with the Jakarta Commons Database
 Connection pool.
 If you are using a release lower, you can down load the DBCP from the
 Jakarta site.

 Hope this helps,
 Ej Chambers





 Thaddeus Gean Cowan Thompson [EMAIL PROTECTED] on 10/02/2002
 08:33:04 PM

 Please respond to Tomcat Users List [EMAIL PROTECTED]

 To:[EMAIL PROTECTED]
 cc:

 Subject:Connection Pool Not Reusing Connections



 Tomcat Users -

 I am trying to implement connection pooling.  I seem to be able to get a
 connection from the pool without any problems, by following the steps
 in the Tomcat docs, but it does not seem to reuse any of the connections
 from the pool.  The reason that I believe this is because when I grab a
 connection from the pool I do a toString on it, resulting in someting like
 'org.gjt.mm.mysql.jdbc2.Connection@60bf50', but the same toString never
 appears twice.  In addition after using (creating and closing) about
 3,000 connections in rappid succession I start revieving null pointers
 when I try to obtain a connection from the pool.

 I have edited my web.xml as follows.
 resource-ref
   description
 Reference to the Connection Pool defined in server.xml
   /description
   res-ref-namejdbc/customer/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
 /resource-ref

 I have edited my server.xml as follows.
 Context path=/grocery_site
  reloadable=true
  debug=0
  docBase=grocery_site
   Resource name=jdbc/customer
 auth=Container
 type=javax.sql.DataSource/
   ResourceParams name=jdbc/customer
 parameter
   namedriverClassName/name
   valueorg.gjt.mm.mysql.Driver/value
 /parameter
 parameter
   namedriverName/name
   valuejdbc:mysql://localhost:3306/grocery_customer/value
 /parameter
 parameter
   nameuser/name
   valuegrocery/value
 /parameter
 parameter
   namepassword/name
   valuegrocery/value
 /parameter
   /ResourceParams
   Resource name=jdbc/product
 auth=Container
 type=javax.sql.DataSource/
   ResourceParams name=jdbc/product
 parameter
   namedriverClassName/name
   valueorg.gjt.mm.mysql.Driver/value
 /parameter
 parameter
   namedriverName/name
   valuejdbc:mysql://localhost:3306/grocery_product/value
 /parameter
 parameter
   nameuser/name
   valuegrocery/value
 /parameter
 parameter
   namepassword/name
   valuegrocery/value
 /parameter
   /ResourceParams
 /Context

 I have tried the addion of the maxIdle, maxActive, and removeAbandoned
 parameters to my configuration, but they seemed to have no effect.

 The utility method that is used to get a connection from the pool is as
 follows.  The gc stuff is ran to clean up the Connections that the pool
 seams to be discarding rather then reusing (this is a hack untill I get
 this problem solved).
   private static Connection getPooledConnection(String data_source){
 Connection connection = null;
 try{
   Context context = (Context) new InitialContext().lookup(
   java:comp/env);
   DataSource ds = ((DataSource) context.lookup(data_source));
   connection = ds.getConnection();
 }
 catch(Exception e){
   System.err.println(DatabaseUtil.getPooledConnection():  +
 Unable to retrive connection from pool.  +
 Running System.runFinalization() and System.gc());
   System.runFinalization();
   System.gc();
 }
 return connection;
   }

 In reading some docs I found that I should call ResultSet.close(),
 Statement.close(), and Connection.close() to ensure that the connections
 get reused.  So I have check all my code over for those type of leaks, but
 had no success.  I should mention that all the methods in a single Object
 instance share a Connection between methods (but use a fresh Statement and
 ResultSet for each query/update), and I close the Connection in the
 Object's finalize method as follows.
   protected void finalize() throws Throwable{
 System.out.print(Closing  + connection + ...);
 connection.close();
 System.out.println(connection);
   }

 When executed the method prints somthing like
 Closing org.gjt.mm.mysql.jdbc2.Connection@60bf50 ...
 org.gjt.mm.mysql.jdbc2.Connection@60bf50


 I should also 

Missing BaseTunnelClient package

2002-10-04 Thread achana

Hi All.
I am trying to tunnel between applet and servlet and followed this doco
:
[code]
import java.io.*;
public abstract class TunnelLiteClient extends BaseTunnelClient
{ ...etc...
}
[/code]
Unfortunately javac does not recognise symbol BaseTunnelClient
Any packages I need to import ?
Where can I find it ?
TIA

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




  1   2   >