CLIENT-CERT with tomcat

2001-05-21 Thread Pernica, Jan

Hello

How can I use CLIENT-CERT auth method? What should I do (especially how
should I configure client and server to use this type of authorization?)
Thank you

Jan



__
Tato komunikace je urcena vyhradne pro adresata a je duverna. 
This communication is intended solely for the addressee and is confidential.






RE: tomcat 4 and support for iis

2001-05-21 Thread GOMEZ Henri

There are some efforts right now on that direction, if you are
interested on support that and can contribute to that effort you are
welcomed to Tomcat-Dev list to comment in and contribute if you can
...follow guidelines on 
http://jakarta.apache.org/site/source.html for
sending patches..

The effort came in 2 differents directions :

* the sub-project jakarta-tomcat-connector has allready provision of
  ajp13 connector for TC 4.0. 
  The java part is done by kevin seguin,[[EMAIL PROTECTED]].

* TC 4.0 as also a new connector mod_webapp that works now only with
  Apache 1.3 (May be 2.0). Pier has started to works on IIS/NES ports.

Apart from the above, it seems that will be possible to use TC 4.0 with
IIS in the near future..think of a time frame of 3 to 6 months..sorry
for not being more accurate ..but is a ongoing effort that is just
starting so it's really difficult to bet something for real. :) 

The ajp13 support for TC 4.0 will be ready very soon, may be less than one
month (but Kevin has to validate that).

 -Mensaje original-
 De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Enviado el: miércoles 9 de mayo de 2001 22:03
 Para: [EMAIL PROTECTED]
 Asunto: tomcat 4 and support for iis
 
 
 I too want to make the transition from tomcat 3.2.1 to 4.0, 
 however, I can't do 
 this without support for iis in place.
 
 Yes, I know that the connector for apache 1.3 is currently 
 being developed with 
 a common code base that can be used to develop a connector 
 for iis, and 
 resources working on this aspect are limited.
 
 Notwithstanding this, can anyone please provide an 
 estimate/guestimate of the 
 time frame for when, and if, the iis connector will be 
 available. Any estimate 
 would be helpful; would it be one month from now? early 
 summer? late summer? 
 automn? 
 
 Ted Baxter
 
 
 
 -- 
 Get your firstname@lastname email for FREE at 
http://Nameplanet.com/?su




RE: Tomcat 3.3 Milestone 3 - NOCLASSDEF

2001-05-21 Thread GOMEZ Henri

The oreilly jar must be in lib/apps/
TC 3.3 use a new system of classloader

-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .) 
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 



-Original Message-
From: Mark Priatel [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 19, 2001 10:49 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Tomcat 3.3 Milestone 3 - NOCLASSDEF 


On another note, we're encountering another problem when 
running our webapps
under 3.3M3.

Specifically, when using the com.oreilly.servlet.MultipartRequest, it
generates a NoClassDefError for javax.servlet.ServletRequest 

How can this be?!  servlet.jar is obviously in the classpath. 

After reverting to 3.3M2 everything works fine.

Any suggestions??

-mark




RE:_Install_Tomcat_on_Wíndows_95

2001-05-21 Thread Naeem Malik

 
Arnold, I m sorry for Late reply, so i m sending u my
autoexec.bat path...

set
PATH=%PATH%;c:\jdk13\bin;c:\java\jakarta-tomcat\bin
set JAVA_HOME=c:\jdk13
set CLASSPATH=.;c:\jdk13\jre\lib\rt.jar;
c:\jdk13\lib\tools.jar;
c:\java\jakarta-tomcat\lib\servlet.jar
set ANT_HOME=c:\java\jakarta-ant
set TOMCAT_HOME=C:\java\jakarta-tomcat
Thanks  Rgard's
Naeem
--- Arnold Shore [EMAIL PROTECTED] wrote:
 Naeem, thanks so much.  But there's line wraps that
 screw things up for us
 new kids on this particular block.  Could I trouble
 you to maybe attach your
 autoexec.bat so that it's clear?
 
 Thanks again,
 
 Arnold Shore
 Annapolis, MD
 
 -Original Message-
 From: Naeem Malik [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 17, 2001 6:04 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Install Tomcat on Wíndows 95
 
 
 
 try with this path
 
 set
 PATH=%PATH%;c:\jdk13\bin;c:\java\jakarta-tomcat\bin
 set JAVA_HOME=c:\jdk13
 set CLASSPATH=.;c:\jdk13\jre\lib\rt.jar;
 c:\jdk13\lib\tools.jar;
   c:\jdk13\lib\jsdk.jar;
 
 c:\java\jakarta-tomcat\lib\servlet.jar;
   c:\jdk13\lib\test;
   c:\jdk13\lib\Swing.jar;
 set ANT_HOME=c:\java\jakarta-ant
 Doskey /Insert
 
 and it is good practice if u rename dir from JDK1.3
 to
 JDK13
 
 and go in startup.bat shutdown.bat  properties,
 then
 Enviorment and set initial memory
 to Full i don't remember but i thinks its arround
 about 4096.
 
 Do IT and i hope then u will be able to run it
 


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



JSP Naming Standards ?

2001-05-21 Thread dave . prout


Are there recognised naming standards for JSP's ? If I have a customer login
page for Company ABC should I call it.

ABC_Customer_Login

or

abc_cutomer_login

or

abccustomerlogin

or

abcCustomerLogin

or what ?

Please could you give me a reference to the standard, as I only want to
change everything once ! 

Thanks

David 



Re: Setting up Virtual Hosts

2001-05-21 Thread Glen Eustace


  http://mikal.org/interests/java/tomcat/index.jsp

  Look for Virtual Host or my name.

 Will do.  Thanks. This is very frustrating.

Having browsed around in the archives, I have come to the ( possibly 
erroeous ) conclusion that tomcat does not support NAMED virtual hosts, 
but that they are actually IP based.

Can someone confim whether tomcat really does use the Host: header to 
determine the virtual host or is it resolving the host in the URL to an 
IP number and then finding a host definition that matches it.

Thanks.
-- 
Glen Eustace,
GodZone Internet Services, a div. of AGRE Enterprises Ltd.,
P.O. Box 8020, Palmerston North, New Zealand 5301
Tel/Fax: +64 6 357 8168, Mob: +64 21 424 015
E-mail: [EMAIL PROTECTED] Website: http://www.godzone.net.nz



RewritingURL with Tomcat3.2.1

2001-05-21 Thread Lessault Jean-Luc


Hi all,
I am using Tomcat 3.2.1 with Apache 1.3
and I have the following problem:


  I want to rewrite a path from a form like  'http://host:port/file.html'   
  to something like
'http://host:port/ContextServlet/MyServletName?parameter=file.html').
  (Note that  the program works when i use the  second URL form in the
browser).
  So that, as it seems that Tomcat doesn't want to use .htaccess file, I
decided 
  to write the following instructions:
 
LoadModule rewrite_module module/mod_rewrite.dll
IfModule mod_rewrite.c
 RewriteEngine On
 RewriteBase /ContextServlet/
 RewriteRule ^file.html
/ContextServlet/MyServletName?parameter=file.html.
/IfModule

   in tomcat.conf or server.xml but with no result.  
   
 Any help will be greatly appreciate.





Virtual host application directories in Tomcat 3.2 and 4.0

2001-05-21 Thread Jonas Björnerstedt

Although I haven't tried it, in Tomcat 4.0 each Host directive can specify
an application base directory (webapps/) for the host. The appBase attribute
specifies for each host where applications will be deployed.

Can the same thing be done in 3.2, if virtual hosts are specified with the
Host directive? The only way I have found for specifying the directory, is
by using the home attribute to the ContextManager directive. This can't be
the right approach, as each host is specified within the ContextManager
directive. 

Does anybody have any suggestions?

Jonas



tomcat run on windows 2000

2001-05-21 Thread Ho, Isadora KW

Dear sir,

I have installed the Tomcat in the windows 2000 server, but when I run the
startup.bat, the console pop up and disappear, no error message displayed.
Does tomcat support running on windows 2000?

Isadora



Re: RewritingURL with Tomcat3.2.1

2001-05-21 Thread sfarrell


L,

You need to add the [PT] parameter to your rewrite rule - it worked for
me!!


regards
Scott Farrell

http://www.icconsulting.com.au
ic Consulting - integrating your business in a web world.
We offer e-business consulting and perform services. We deliver high impact
consulting, and fast turn around projects for our clients.
Ask us about Web Content Management,  Web Self Service, or working closer
with your customers or suppliers.

0412 927 156,   02 9411 3622  mailto:[EMAIL PROTECTED]



   
  
Lessault   
  
Jean-Luc  To: '[EMAIL PROTECTED]' 
[EMAIL PROTECTED]
JL.Lessault@kcc:  
  
heops.comSubject: RewritingURL with Tomcat3.2.1   
  
   
  
21/05/2001 
  
06:33 PM   
  
Please respond 
  
to tomcat-user 
  
   
  
   
  





Hi all,
I am using Tomcat 3.2.1 with Apache 1.3
and I have the following problem:


  I want to rewrite a path from a form like  'http://host:port/file.html'

  to something like
'http://host:port/ContextServlet/MyServletName?parameter=file.html').
  (Note that  the program works when i use the  second URL form in the
browser).
  So that, as it seems that Tomcat doesn't want to use .htaccess file, I
decided
  to write the following instructions:

LoadModule rewrite_module module/mod_rewrite.dll
IfModule mod_rewrite.c
 RewriteEngine On
 RewriteBase /ContextServlet/
 RewriteRule ^file.html
/ContextServlet/MyServletName?parameter=file.html.
/IfModule

   in tomcat.conf or server.xml but with no result.

 Any help will be greatly appreciate.









RE: tomcat run on windows 2000

2001-05-21 Thread Michael Weissenbacher

run startup.bat from the command line to see error messages (start cmd.exe
first)


-Original Message-
From: Ho, Isadora KW [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 11:39 AM
To: [EMAIL PROTECTED]
Subject: tomcat run on windows 2000


Dear sir,

I have installed the Tomcat in the windows 2000 server, but when I run the
startup.bat, the console pop up and disappear, no error message displayed.
Does tomcat support running on windows 2000?

Isadora




RE: tomcat run on windows 2000

2001-05-21 Thread Jim Cheesman

At 11:48 AM 21/05/01, you wrote:
run startup.bat from the command line to see error messages (start cmd.exe
first)


To add to this, we've got tomcat (3.2) running fine on Win2000 Server.
Things you might want to check:
* you've set the JAVA_HOME and TOMCAT_HOME variables correctly.
* your java installation - especially the classpath...


Jim



-Original Message-
From: Ho, Isadora KW [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 11:39 AM
To: [EMAIL PROTECTED]
Subject: tomcat run on windows 2000


Dear sir,

I have installed the Tomcat in the windows 2000 server, but when I run the
startup.bat, the console pop up and disappear, no error message displayed.
Does tomcat support running on windows 2000?

Isadora


--

   *   Jim Cheesman   *
 Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
Prepositions are not 
words to end sentences with.





RE: admin question

2001-05-21 Thread Randy Layman



 -Original Message-
 From: Venkatesh Sangam [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 18, 2001 6:29 PM
 To: [EMAIL PROTECTED]
 Subject: RE: admin question
 
 
 hey the in second option what u suggested  ...
 did u mean that have an application running on the computer 
 where the tomcat 
 is installed ??
 
 If the tomcat server is physically not accessible then what to do ??

If, by not physically accessible I assume that you mean you can't
get to it to install software, write a servlet that will install things on
the server.  If you mean that you can't install software, then you are out
of luck and will have to rely on the network support of the people running
the computer to restart the service for you.
 
 
 
 
 From: Randy Layman [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: admin question
 Date: Fri, 18 May 2001 16:08:52 -0400
 
 
   The problem with this is, how to you restart Tomcat?
 
   I see two basic choices:
   1.  Use some other package to remotely control the 
 services.  This
 has been the methodology used here for 90% of our projects
   2.  Write an application that listens to a port for the
 startup/shutdown command.  I did this once and its not to big 
 of a deal (but
 I can't give you the source).  The basic structure is:
   Get Server Socket
   Read a command (will block until command sent)
   Process command (some forethought here will make this 
 easy to adapt
 to other projects)
   Repeat
 
   Really, not a lot to it, however if you get smart and 
 start adding
 other features (like cleaning up log files while the service 
 is down, doing
 multiple services in a particular order) it can get 
 complicated and messy
 without forethought.
 
   Randy
 
   -Original Message-
   From: Mark Mynsted [mailto:[EMAIL PROTECTED]]
   Sent: Friday, May 18, 2001 3:31 PM
   To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
   Subject: Re: admin question
  
  
   Could you not create a servlet to run the following?
   org.apache.tomcat.startup.Tomcat -stop
  
   Sincerely yours;
  
   Mark Mynsted
  
  
  
   VHA Management Information Systems Client Services
   [EMAIL PROTECTED]
   (972) 830 - 0592, Internal x1592
  
[EMAIL PROTECTED] 5/18/2001 2:26:14 PM 
   is there any way to stop/restart the server remotely without telnet
   access??  I know I can do a net stop jakarta and net start
   jakarta.  Is
   there any restart option on the admin console?  Has anyone
   written a Java
   utilility to do this?
  
   Thanks,
  
   Eric Lubin
   [EMAIL PROTECTED]
  
  
 
 __
 ___
 Get Your Private, Free E-mail from MSN Hotmail at 
http://www.hotmail.com.



RE: Build problems with new install

2001-05-21 Thread Randy Layman


I believe that this is because the Ant project has reworked a number
of their tags.  I would suggest using either the Ant that comes in the
Tomcat tgz file (should be lib/ant.jar) or download an older version of Ant
(I believe that 1.2 should work, but you might need to go all the way back
to 1.1).  

Another possible reason that build files don't work some of the time
is that the ant.jar file is in the jre/lib/ext directory.  For Ant to work,
it must NOT be there.  (It has to deal with how Ant spawns other JVMs to do
things for it.)

Randy

 -Original Message-
 From: Chadwick, Russell [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 18, 2001 7:27 PM
 To: '[EMAIL PROTECTED]'
 Subject: Build problems with new install
 
 
 
 I have a working tomcat on a freebsd box at home, an os which 
 work doesn't
 allow (grrr) so I'm trying to build a project on redhat, 
 using Tomcat 3.1.1,
 Ant 1.3, and Suns JDK 1.3.1.  I am using a build.xml from 
 tomcats website
 and I tried the one for the project from the freebsd box and 
 they both give
 me this error:
 
 ./build.sh 
 Buildfile: build.xml
 Project base dir set to: /home/toolshed/license_manager
 BUILD CONFIG ERROR: Could not create task of type: copy 
 because I can't find
 it in the list of task class definitions
 org.apache.tools.ant.BuildException: Could not create task of 
 type: copy
 because I can't find it in the list of task class definitions
 at org.apache.tools.ant.Project.createTask(Project.java:374)
 at
 org.apache.tools.ant.ProjectHelper.configureTasks(ProjectHelpe
 r.java:216)
 at
 org.apache.tools.ant.ProjectHelper.configureProject(ProjectHel
 per.java:193)
 at
 org.apache.tools.ant.ProjectHelper.configureProject(ProjectHel
 per.java:134)
 at org.apache.tools.ant.Main.runBuild(Main.java:223)
 at org.apache.tools.ant.Main.main(Main.java:191)
 
 
 Here is the build.xml file:
 project name=License Manager default=compile basedir=.
   property name=app.name   value=license_manager/
   property name=deploy.home
 value=${tomcat.home}/webapps/${app.name}/
   property name=dist.home  value=${deploy.home}/
   property name=dist.src   value=${app.name}.jar/
   property name=dist.war   value=${app.name}.war/
   property name=javadoc.home   value=${deploy.home}/javadoc/
 
   target name=prepare
 mkdir  dir=${deploy.home}/
 copy todir=${deploy.home}
   fileset dir=web/
 /copy
 mkdir  dir=${deploy.home}/WEB-INF/
 copy  file=etc/web.xml 
 tofile=${deploy.home}/WEB-INF/web.xml/
 mkdir  dir=${deploy.home}/WEB-INF/classes/
 mkdir  dir=${deploy.home}/WEB-INF/lib/
 copy todir=${deploy.home}/WEB-INF/lib
   fileset dir=lib/
 /copy
 mkdir  dir=${javadoc.home}/
   /target
 
   target name=clean
 delete dir=${deploy.home}/
   /target
 
   target name=compile depends=prepare
 javac srcdir=src destdir=${deploy.home}/WEB-INF/classes
classpath=${deploy.home}/WEB-INF/classes
debug=on optimize=off deprecation=off/
 copy   todir=${deploy.home}/WEB-INF/classes
   fileset dir=src includes=**/*.properties/
 /copy
   /target
 
   target name=javadoc depends=prepare
 javadoc sourcepath=src packagenames=*
 destdir=${javadoc.home}/
   /target
 
   target name=all depends=clean,prepare,compile,javadoc/
 
   target name=dist depends=prepare,compile
 jar jarfile=${dist.home}/${dist.src}
  basedir=./
 jar jarfile=${dist.home}/${dist.war}
  basedir=${deploy.home}/
   /target
 
 /project
 
 
 Thanks so much for your help! - Russ
 
 
 *÷:mivaconf.txtóH,KU¨Ì/U(J-N-*KMqS
 rSKJ2R|3ËoeóóÒRRó'Sí¹2JJ
 ¬ôõËËËõrrzÉù¹úÉpy#.Ç.oåU
 



RE: Subject: NoClassDefFoundError ServletException

2001-05-21 Thread Randy Layman


Tomcat is not finding your JAVA_HOME correctly.  Check that you are
actually setting this in the shell before you start Tomcat.  Also check that
this is really a JDK and not a JRE (you must have a JAVA_HOME\lib\tools.jar
file for Tomcat to work).

Randy

 -Original Message-
 From: mbe bem [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, May 19, 2001 4:16 AM
 To: [EMAIL PROTECTED]
 Subject: Subject: NoClassDefFoundError  ServletException
 
 
 
 Hi!
 My name is Mbe, I did download jakarta-tomcat-4.0.b3 and
 jakarta-servletapi-4.0.b3 and installed them in my nt4.0 workstation. 
 I also installed jdk1.3 and set the variables and values as follows
 Variable:   Values
 TOMCAT_HOME D:\jakarta-tomcat-4.0-b3
 JAVA_SERVLETAPI D:\jakarta-servletapi-4.0-b3
 JAVA_HOME   D:\jdk1.3
 
 I was able to start tomcat with startup, but trying to run java
 programm  Dabe (with execute) at localhost:8080/examples/jsp I get the
 following errors
 Exception Report:
 javax.servlet.ServletException: sun/tools/javac/Main
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:439)
 at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
 
 and
 
 Root Cause:
 java.lang.NoClassDefFoundError: sun/tools/javac/Main
 at
 org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaComp
 iler.java:128)
 at
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:268)
 
 
 Am I missing anything?
 How do I go about it?
 
 Thanks in anticipation!
 
 
 Mbe
 
 



RE: Contexts, Classes, Variables

2001-05-21 Thread Cox, Charlie
Title: RE: Contexts, Classes, Variables





My understanding is that if your class is in your classpath, it will be loaded once by java's bootstrap loader and they would share the same instance. If your class is part of your web application, it would be a different instance for each context.

The following thread is a good explaination of the classloader :
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg13260.html 


Charlie


-Original Message-
From: Zach Hollandsworth [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 10:49 AM
To: [EMAIL PROTECTED]
Subject: Contexts, Classes, Variables



1) In Tomcat 3.2.1 do separate contexts see static variables of a class the
same? Or do they have separate ones?


2) different versions of the same class in two contexts on the same tomcat?
(placed in the /WEB-INF/classes directory of that context)


Zach Hollandsworth





Re: How to embed Tomcat into an existing application OR how to use EmbededTomcat - Class

2001-05-21 Thread Matthias Schiffer

Hi!

Nochmals Danke, mit der neuen Version ist es mir geglückt den Server ans
Laufen zu bekommen. Nun hoffe ich noch ihn so ausrichten zu können, dass
er SMI-Commands an die richtige Stelle weiterleitet, das ist doch auch
konfigurierbar oder ?

Klaus Sonnenleiter schrieb:
 
 Matthias,
 
 I have tried to use both the 3.2 and the 4.0 version of embedded Tomcat and
 I never got it working properly with the instructions in the 3.2
 EmbededTomcat.java file. You might want to switch to 4.0 instead - I think
 both Tomcat and especially the embedded part have matured significantly
 since 3.2.
 
 Klaus Sonnenleiter
 
 -Original Message-
 From: Matthias Schiffer [EMAIL PROTECTED]
 To: [EMAIL PROTECTED] [EMAIL PROTECTED]
 Date: Sunday, May 20, 2001 6:27 AM
 Subject: How to embed Tomcat into an existing application OR how to use
 EmbededTomcat - Class
 
 Hi!
 
 I have developed an application which runs with the jo!-server at the
 moment, now I want to replace it with the embeded Tomcat, but i don't
 really know how!!! Can someone write me a short explanation how to embed
 Tomcat into my application? Below you can see what i have tried to
 embed, but this does not work and additional: i know that the src is not
 complete but some additional things are missing, please write which ones
 that are. Thank you very much!
 
 Source code:
 
 public static void main( String[] args) throws ServerException {
   ContextManager cm = new ContextManager();
 WebXmlReader xml = new WebXmlReader();
 EmbededTomcat et = new EmbededTomcat();
 try {
  xml.engineInit(cm);
 }catch(TomcatException te) {
  System.out.println(Exception:  + te);
 }
 Context ctx = new Context();
 ctx.setContextManager(cm);
 cm.setTomcatHome(/home/matsch/synet/tomcat);
 xml.setContextManager(cm) ;
 try {
  xml.contextInit(ctx);
 }catch(TomcatException te) {
  System.out.println(Exception:  +te);
 }
 AdminService admin = new AdminService();
 admin.setName( AdminService);
 admin.start();
 }
 



Config of TC4-b5/Catalina and Apache1.3.19 under NT/2000???

2001-05-21 Thread Lutz Kirsten

Hi Folks,

I would like to run Tomcat4/Catalina as a service with Apache.
If I uncomment the Service=Tomcat-Standalone ... in server.xml Tomcat 
does not start!
Even if I add

Context path= docbase=mybase 
/Context

or
Host ..
Context 
/Context
/Host

in the Service name=Tomcat-Apache section

Generaly I use other dirs for webdevelopment as the webapps in Tomcat
lets say I have two different dirs, for example:
'd:\1\1\myapp1' and 'd:\1\2\myapp2'

How should I tell the Apache-Connector to lookup for this two dirs?
Do I need to define a virtual host and where(standalone or 
connection-service)?
Do I need to maintain the Standalone-Service?
Do I need to have a web.xml in every of my above mentioned dirs?
What has to be the content of such a web.xml in case if it's need?
Here is some stdout of Tomcat if I use the original server.xml with 
myhost as hostname defined in httpd.conf.

Starting service Tomcat-Standalone
Apache Tomcat/4.0-b5
Starting service Tomcat-Apache
Apache Tomcat/4.0-b5
[org.apache.catalina.connector.warp.WarpConnectionHandler]
 New instance created
[org.apache.catalina.connector.warp.WarpConnectionHandler]
 Setting connection
[org.apache.catalina.connector.warp.WarpConnectionHandler]
 Setting Request ID 0
[org.apache.catalina.connector.warp.WarpConnector]
 Premature packet end (268 of 12064)
[org.apache.catalina.connector.warp.WarpConnectionHandler]
 Stopping
[org.apache.catalina.connector.warp.WarpConnectionHandler]
 Stopped
[org.apache.catalina.connector.warp.WarpConnectionHandler]
 Thread exited
[org.apache.catalina.connector.warp.WarpConnector]
 Connection closed


I added in httpd.conf:

LoadModule module_webapp modules/mod_webapp.dll# which i build:-)
WebAppConnection myConnection warp myhost:8008
WebAppDeploy myapp myConnection *

I would use the rootdirectory as the myapp dir, so I set the [URL-path] 
to *, is that right?

here is some stdoutput of Apache:

D:\systeme.\Apache\apache.exe -f d:/systeme/Apache/conf/httpd.conf
[Mon May 21 13:47:26 2001] 440 
(D:\systeme\Tomcat\jakarta-tomcat-4.0-b5-src\connectors\lib\pr_info.c:66) 
INFO provider initialized
[Mon May 21 13:47:26 2001] 440 
(D:\systeme\Tomcat\jakarta-tomcat-4.0-b5-src\connectors\lib\pr_warp.c:492) 
WARP provider initialized
[Mon May 21 13:47:26 2001] 440 
(D:\systeme\Tomcat\jakarta-tomcat-4.0-b5-src\connectors\lib\wa_main.c:98) 
WebApp Library initialized
[Mon May 21 13:47:26 2001] 440 
(D:\systeme\Tomcat\jakarta-tomcat-4.0-b5-src\connectors\lib\wa_config.c:163) 
Created connection myConnection (Prov: warp Param: myhost:8008)
[Mon May 21 13:47:26 2001] 440 
(D:\vipsysteme\Tomcat\jakarta-tomcat-4.0-b5-src\connectors\lib\wa_config.c:122) 
Created virtual host myhost:80
[Mon May 21 13:47:26 2001] 440 
(D:\vipsysteme\Tomcat\jakarta-tomcat-4.0-b5-src\connectors\lib\wa_config.c:97) 
Created application myapp in path /*/
[Mon May 21 13:47:26 2001] 440 
(D:\vipsysteme\Tomcat\jakarta-tomcat-4.0-b5-src\connectors\lib\wa_main.c:184) 
Application myapp deployed for http://myhost
0/*/ (Conn: myConnection)
Apache/1.3.19 (Win32) running...

Thanks for some help.

Lutz




Config of TC4-b5/Catalina and Apache1.3.19 under NT/2000???

2001-05-21 Thread Lutz Kirsten

Hi Folks,

I would like to run Tomcat4/Catalina as a service with Apache.
If I uncomment the Service=Tomcat-Standalone ... in server.xml Tomcat 
does not start!
Even if I add

Context path= docbase=mybase 
/Context

or
Host ..
Context 
/Context
/Host

in the Service name=Tomcat-Apache section

Generaly I use other dirs for webdevelopment as the webapps in Tomcat
lets say I have two different dirs, for example:
'd:\1\1\myapp1' and 'd:\1\2\myapp2'

How should I tell the Apache-Connector to lookup for this two dirs?
Do I need to define a virtual host and where(standalone or 
connection-service)?
Do I need to maintain the Standalone-Service?
Do I need to have a web.xml in every of my above mentioned dirs?
What has to be the content of such a web.xml in case if it's need?
Here is some stdout of Tomcat if I use the original server.xml with 
myhost as hostname defined in httpd.conf.

Starting service Tomcat-Standalone
Apache Tomcat/4.0-b5
Starting service Tomcat-Apache
Apache Tomcat/4.0-b5
[org.apache.catalina.connector.warp.WarpConnectionHandler]
 New instance created
[org.apache.catalina.connector.warp.WarpConnectionHandler]
 Setting connection
[org.apache.catalina.connector.warp.WarpConnectionHandler]
 Setting Request ID 0
[org.apache.catalina.connector.warp.WarpConnector]
 Premature packet end (268 of 12064)
[org.apache.catalina.connector.warp.WarpConnectionHandler]
 Stopping
[org.apache.catalina.connector.warp.WarpConnectionHandler]
 Stopped
[org.apache.catalina.connector.warp.WarpConnectionHandler]
 Thread exited
[org.apache.catalina.connector.warp.WarpConnector]
 Connection closed


I added in httpd.conf:

LoadModule module_webapp modules/mod_webapp.dll# which i build:-)
WebAppConnection myConnection warp myhost:8008
WebAppDeploy myapp myConnection *

I would use the rootdirectory as the myapp dir, so I set the [URL-path] 
to *, is that right?

here is some stdoutput of Apache:

D:\systeme.\Apache\apache.exe -f d:/systeme/Apache/conf/httpd.conf
[Mon May 21 13:47:26 2001] 440 
(D:\systeme\Tomcat\jakarta-tomcat-4.0-b5-src\connectors\lib\pr_info.c:66) 
INFO provider initialized
[Mon May 21 13:47:26 2001] 440 
(D:\systeme\Tomcat\jakarta-tomcat-4.0-b5-src\connectors\lib\pr_warp.c:492) 
WARP provider initialized
[Mon May 21 13:47:26 2001] 440 
(D:\systeme\Tomcat\jakarta-tomcat-4.0-b5-src\connectors\lib\wa_main.c:98) 
WebApp Library initialized
[Mon May 21 13:47:26 2001] 440 
(D:\systeme\Tomcat\jakarta-tomcat-4.0-b5-src\connectors\lib\wa_config.c:163) 
Created connection myConnection (Prov: warp Param: myhost:8008)
[Mon May 21 13:47:26 2001] 440 
(D:\vipsysteme\Tomcat\jakarta-tomcat-4.0-b5-src\connectors\lib\wa_config.c:122) 
Created virtual host myhost:80
[Mon May 21 13:47:26 2001] 440 
(D:\vipsysteme\Tomcat\jakarta-tomcat-4.0-b5-src\connectors\lib\wa_config.c:97) 
Created application myapp in path /*/
[Mon May 21 13:47:26 2001] 440 
(D:\vipsysteme\Tomcat\jakarta-tomcat-4.0-b5-src\connectors\lib\wa_main.c:184) 
Application myapp deployed for http://myhost
0/*/ (Conn: myConnection)
Apache/1.3.19 (Win32) running...

Thanks for some help.

Lutz 




Running Tomcat as an NT Service

2001-05-21 Thread Ronald G. Louzon

When running Tomcat as a Windows NT service, the NT wrapper
jk_nt_service.exe must be installed and run instead of using the startup
batch file.  It appears that the jk_nt_service application reads its entire
configuration from the wrapper.properties file.  What this means is that the
classes and jar files under WEB-INF/classes and WEB-INF/lib are not
automatically loaded for a servlet.  Instead, they must all be added
manually in the wrapper.properties file.

Has anyone else run Tomcat as an NT Service and seen this same behaviour?
If this behaviour is correct, why is so much functionality lost when running
with the wrapper service?

Thanks,
ron



TC4/Catalina and Apache1.3.X with under Win32

2001-05-21 Thread egcs12md



Hi Folks,

Has someone can give 
memod_webapp.dll,server.xml, httpd.conf examples ?
 Thanks for some help.

SongDongsheng


***** URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST *****

2001-05-21 Thread Sharad Mohan

* URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST * 

_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com







Tomcat Apache config

2001-05-21 Thread Dave Finch

Hi,
I have got Tomcat and Apache running on Redhat Linux 6.2 and all is working
fine.
Could someone please give me some pointers on how to configure Tomcat to
start automatically on boot. like an NT service.

TIA
Dave Finch



RE: Virtual host application directories in Tomcat 3.2 and 4.0

2001-05-21 Thread Williamson, James
Title: RE: Virtual host application directories in Tomcat 3.2 and 4.0





Jonas, 


Try using the absolute path in the docBase attribute within the Context element. Hazarding a guess, I would expect if you used a relative path it would be 'relative' to the docBase in the ContextManager element.

Regards, 


James


-Original Message-
From: Jonas Björnerstedt [mailto:[EMAIL PROTECTED]]
Sent: 21 May 2001 09:58
To: '[EMAIL PROTECTED]'
Subject: Virtual host application directories in Tomcat 3.2 and 4.0



Although I haven't tried it, in Tomcat 4.0 each Host directive can specify
an application base directory (webapps/) for the host. The appBase attribute
specifies for each host where applications will be deployed.


Can the same thing be done in 3.2, if virtual hosts are specified with the
Host directive? The only way I have found for specifying the directory, is
by using the home attribute to the ContextManager directive. This can't be
the right approach, as each host is specified within the ContextManager
directive. 


Does anybody have any suggestions?


Jonas




**
This e-mail (including any documents which may accompany it) contains
information which is confidential and may also be privileged.
It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s) please note that any form of
distribution, copying or use of this e-mail or the information in it
or attached to it is strictly prohibited and may be unlawful.
If you have received this e-mail in error please notify us immediately
by e-mail to [EMAIL PROTECTED] or telephone +44 (0)207 940 1200 and
delete the e-mail.
Please advise immediately if you or your employer do not consent to
Internet E-Mail for messages of this type.
Information or opinions in this message that do not relate to the
business of Windsor plc and/or subsidiary and/or associated companies
shall be treated as neither given or endorsed by it.
**



RE: ***** URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST *****

2001-05-21 Thread Laurence Mayer

I have been trying for days, still cannot unsubscribe, if you do find the
way, please let me know how.

Thanks

-Original Message-
From: Sharad Mohan [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 2:45 PM
To: [EMAIL PROTECTED]
Subject: * URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST * 


* URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST * 

_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com






Session vs Beans

2001-05-21 Thread Sulman . Jeff

Last week I proposed this question to the discission group:

I am currently writing a pretty complex data entry HTML page for an
application.  The HTML has 7 different frames where data is input, one
represents the master table and the others detail tables.  I am trying to
come up with a way to keep all of the data entered into each frame for
updating the database (I want to update all the records in one
transaction).  There some obvious ways of doing this as with invisible
fields on the master frame, and URL rewriting (cookies are out in this
case) but I have also been looking into using the Session object.  I know
the object is used for shopping carts on commercial web sites but would it
be a good to use it to keep all the input values for various input forms?
There will be from 40 - 50 items of data stored in the session object and a
user will only be able to have one form at a time?

The unamious (and very helpful)  response was yes use a session object.

Now however, I have learned to use Java Beans in JSP and was wondering, is
it better to use a session object or a Java Bean with the scope set to
session to store these values?

Thanks for you help

Jeff Sulman




'Servlet' pipeline

2001-05-21 Thread Jörg Schorr
Title: 'Servlet' pipeline





Hi,


I am currently looking for the best solution for the following problem:


in our application, when a user gets authenticated we need to perform specific tasks (I use standard j2ee web authentication, form based). The idea is to plug a servlet between the j2ee web authentication mecanism, and the actual servlet handling the request.

I was looking at interceptors, but I am not sure anymore if it is the best solution, as to my understanding:


1. a request interceptor is called at each request, although I only need it after a specific interceptor (currently the LDAP authentication one, but there could be other cases in the future) and

2. this system is going to disappear with the next tomcat generation (going to be valves).


Any suggestion would be very helpful.
Thanks,
jorg





Re: Tomcat policy file being ignored

2001-05-21 Thread Antony Bowesman

Problem solved.  Just renaming the ${java.home}/lib/ext/jaas.jar to some
random name does not stop JVM from attempting to load it as a jar file
so the classes were still being loaded from there.  The file must be
removed.

Antony


Antony Bowesman wrote:
 
 Hi,
 
 I am running tomcat and using JAAS for authentication and
 authorization.  If I have jaas.jar installed as an installed extension
 in ${java.home}/lib/ext and I have the following entries in the tomcat
 policy file
 
 grant codeBase file:${java.home}/lib/ext/jaas.jar {
 permission java.security.AllPermission;
 };
 
 then all is OK.
 
 However, if I put jaas.jar in ${tomcat.home}/lib and remove it from
 ${java.home}/lib/ext
 
 and change the grant entry to say
 
 grant codeBase file:${tomcat.home}/lib/jaas.jar {
 permission java.security.AllPermission;
 };
 
 then I get an access control exception when instantiating my
 LoginContext.
 
 java.security.AccessControlException: access denied
 (java.util.PropertyPermission java.security.auth.debug read)
 at
 java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
 
 Any ideas why the tomcat policy is being ignored?
 
 Rgds
 Antony
 --
 Antony Bowesman
 Teamware Group
 [EMAIL PROTECTED]
 tel: +358 9 5128 2562
 fax: +358 9 5128 2705

-- 
Antony Bowesman
Teamware Group 
[EMAIL PROTECTED]
tel: +358 9 5128 2562
fax: +358 9 5128 2705



Strange isapi_redirect error on NT

2001-05-21 Thread oLi

Hi all,

a couple of weeks ago someone else already asked this
question but didn't get any response:

I'm running Tomcat 3.2.1 with IIS 4.0 on NT and my
isapi.log shows the following messages only with log
level error, but neither when selecting info or
debug:

[jk_isapi_plugin.c (261)]:
jk_ws_service_t::start_response, ServerSupportFunction
failed
[jk_ajp12_worker.c (570)]: ajpv12_handle_response,
error starting response
[jk_isapi_plugin.c (554)]: HttpExtensionProc error,
service() failed
[jk_isapi_plugin.c (355)]: jk_ws_service_t::write,
WriteClient failed
[jk_ajp12_worker.c (596)]: ajpv12_handle_response,
error writing back to server

Everything on my app (cocoon based) works fine, except
that special characters (German Umlauts) are
converted to some scrambled stuff when submitted from
a form. The same application works fine with Apache
though, and without such problems.

I suspect this to be some issue related to port
configuration since IIS is listening on port 81, but
my config files seem to be correct.

I greatly appreciate any hints because I just can't
figure out what's going on.

Thanx,
oLi

__
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de



Re: RewritingURL with Tomcat3.2.1

2001-05-21 Thread Valeriy Molyakov

Hi !
Your should use servlet mapping.
For example:

servlet
servlet-name
MyServletName
/servlet-name
servlet-class
MyServletNameClass
/servlet-class
/servlet
servlet-mapping
servlet-name
MyServletName
/servlet-name
url-pattern
/file.html
/url-pattern
/servlet-mapping

Best regards !
- Original Message -
From: Lessault Jean-Luc [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 21, 2001 11:33 AM
Subject: RewritingURL with Tomcat3.2.1



 Hi all,
 I am using Tomcat 3.2.1 with Apache 1.3
 and I have the following problem:


   I want to rewrite a path from a form like  'http://host:port/file.html'
   to something like
 'http://host:port/ContextServlet/MyServletName?parameter=file.html').
   (Note that  the program works when i use the  second URL form in the
 browser).
   So that, as it seems that Tomcat doesn't want to use .htaccess file, I
 decided
   to write the following instructions:

 LoadModule rewrite_module module/mod_rewrite.dll
 IfModule mod_rewrite.c
  RewriteEngine On
  RewriteBase /ContextServlet/
  RewriteRule ^file.html
 /ContextServlet/MyServletName?parameter=file.html.
 /IfModule

in tomcat.conf or server.xml but with no result.

  Any help will be greatly appreciate.





Re: How to get changed class to reload

2001-05-21 Thread Gary Lundquest

It seems that others are having the same problem.  Does it work in some
cases and not in others?  If you can't get a changed class to reload, how do
you develop applications?  Is there another way of working that bypasses the
need to frequently test changes to a class?  It seems that the
shutdown-startup process would eat up a lot of extra time in the development
process.  But I'm new to JSP and Java so I may be missing a better way of
doing it.  How do most Java developers do it?  Or does the reload work for
most people?
-Gary Lundquest

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 17, 2001 9:35 PM
Subject: Re: How to get changed class to reload


 Hi,
 Oooops I have the Java sources in the class directory and in addition
 some java sources and class files n outher directories on my machine. And
 whenever I touch my JSP or ine of the java files in classes directory,
 everything what needs to be rempiled is recompiled, even the javas in
total
 differnent directories. So I have no idea why that doesn't work with you
 configuration.

 Sascha






 Gary Lundquest [EMAIL PROTECTED] on 05/17/2001 09:23:45 PM

 Please respond to [EMAIL PROTECTED]

 To:   [EMAIL PROTECTED]
 cc:(bcc: sascha kolski/Dcsimtech)
 Subject:  Re: How to get changed class to reload




 Yes, I looked at that, and reloadable is set to true.  But it does not
 reload.

 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, May 17, 2001 1:07 AM
 Subject: Re: How to get changed class to reload


  HI,
 
  just have a look at your server.xml in tomcat/conf directory.
 
  There are context definitions.
 
  In these context definitions you can set a flag named reloadable to
true:
 
  looks like this:
 
  Context path=/test docBase=webapps/test debug=0
 reloadable=true/
 
  for the context test.
 
  Sascha
 
 
 












Re: Running Tomcat as an NT Service

2001-05-21 Thread Eric Lubin

I run it as a service on win2000 and don't have this problem.  I simply
modified the first 2 lines of wrapper.properties like specified, and
everything else gets picked up from server.xml or web.xml in my directory.

Eric Lubin
T/L 443-6954  External:  561-443-6954
Notes ID:  elubin@ibmusm20External: [EMAIL PROTECTED]


Ronald G. Louzon [EMAIL PROTECTED] on 05/21/2001 08:34:58 AM

Please respond to [EMAIL PROTECTED]

To:   '[EMAIL PROTECTED]' [EMAIL PROTECTED]
cc:
Subject:  Running Tomcat as an NT Service



When running Tomcat as a Windows NT service, the NT wrapper
jk_nt_service.exe must be installed and run instead of using the startup
batch file.  It appears that the jk_nt_service application reads its entire
configuration from the wrapper.properties file.  What this means is that
the
classes and jar files under WEB-INF/classes and WEB-INF/lib are not
automatically loaded for a servlet.  Instead, they must all be added
manually in the wrapper.properties file.

Has anyone else run Tomcat as an NT Service and seen this same behaviour?
If this behaviour is correct, why is so much functionality lost when
running
with the wrapper service?

Thanks,
ron





Re: RequestDispatcher.forward()

2001-05-21 Thread Sebastian Schulz

thank you all for suggestions and help!

special thanks to jeff, Http(s)Message works fine for
me and solves my problem.

basti




Jeff Kilbride wrote:

 Check out the HttpMessage and HttpsMessage classes in the
 com.oreilly.servlet package available from Jason Hunter at www.servlets.com.

 Does the same basic connection stuff and returns an InputStream which you
 can wrap in a BufferedReader like Eric does below. The nice thing is that it
 does secure ssl (https) connections also with the JSSE jar files -- and it's
 very easy to setup and use.

 Thanks,
 --jeff

 - Original Message -
 From: Eric Lubin [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, May 18, 2001 8:58 AM
 Subject: Re: RequestDispatcher.forward()

  package com.ibm.servconn;
  import java.net.*;
  import java.io.*;
  import java.util.*;
  import com.ibm.aurora.*;
 
  public class URLForward {
 
 private String theURL;
 private String method;
 
 public URLForward( String theURL ) {
this(theURL,POST);
 }
 public URLForward( String theURL, String method ) {
this.theURL = theURL;
this.method = method;
 }
 
 public String[] execute() throws BehaviorException {
Vector v = new Vector();
try {
   URL theServlet = new URL(theURL);
// establish a connection with the server, but do not connect to
  the servlet yet
   HttpURLConnection theConnection
  = (HttpURLConnection)theServlet.openConnection();
   theConnection.setRequestMethod(method);
// now we can connect to the page
   theConnection.connect();
// read the results from the servlet as a String
   BufferedReader in = new BufferedReader(new
  InputStreamReader(theConnection.getInputStream()));
   String inputLine;
   while ((inputLine = in.readLine()) != null) {
  v.addElement(inputLine);
   }
   in.close();
   String da[] = new String[v.size()];
   v.copyInto(da);
   return da;
}
 // have to handle these somehow
catch( MalformedURLException mue ) {
   throw new BehaviorException(Malformed URL
  address,ServConnBhvrErrors.MALFORMED_URL,mue);
}
catch( IOException ioe ) {
   throw new BehaviorException(IOException - the translator might
 be
  down,ServConnBhvrErrors.CANT_CONNECT_TO_SERVER,ioe);
}
 }
  }
 
  Eric Lubin
  T/L 443-6954  External:  561-443-6954
  Notes ID:  elubin@ibmusm20External: [EMAIL PROTECTED]
 
 
  Sebastian Schulz [EMAIL PROTECTED] on 05/18/2001
  10:58:33 AM
 
  Please respond to [EMAIL PROTECTED]
 
  To:   [EMAIL PROTECTED]
  cc:
  Subject:  RequestDispatcher.forward()
 
 
 
  hi,
 
  has somebody a work-around to produce the
  same behavior as if RequestDispatcher.forward()
  would work with absolute URL's?
 
  tanks in advance!
 
  basti
 
 
 




problems with jdom tomcat4.0dev (24. april)

2001-05-21 Thread Torgeir Veimo

I'm having problems using jdom in a servlet with the following code;

SAXBuilder builder = new SAXBuilder();

builder.setErrorHandler (new org.xml.sax.ErrorHandler () {
public void warning (org.xml.sax.SAXParseException e) {
cat.warn (e.getMessage ()); }
public void error (org.xml.sax.SAXParseException e) {
cat.error (e.getMessage ()); }
public void fatalError (org.xml.sax.SAXParseException e) throws
org.xml.sax.SAXException {
cat.error (e.getMessage ()); throw e; }
});

builder.setValidation(false);
doc = builder.build(configURL);

This results in a java.lang.NosuchMethodError. I'm using jdom-beta6. It
appears that the xml parser that it retrieves in not whan jdom expects. 

Could someone explain exactly which parsers are included with tomcat
4.0?

-- 
- Torgeir



Images not showing on Win2000

2001-05-21 Thread Eric Lubin

Can someone running Jakarta Tomcat 3.2.1  on Windows 2000 test this for me?
Maybe it's a bug and i'll post it to the dev list.

Create a new directory
Put 2 JPG images in it, or the same one renamed.  Name one hello.jpg and
the other hello test.jpg (WITH THE SPACE)
Now point your browser at that directory and let Tomcat build the page for
you.
Click on both images

In my case, only the first one will display.  The second will give a 404
page not found error.

Eric Lubin
[EMAIL PROTECTED]




RE: ***** URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST *****

2001-05-21 Thread Mike Braden

This is a copy of the welcome message you get when subscribing to
this group.  You can use one of two methods.

Send a message to the address listed below, which includes the
command for the mail system.

If you are still at the same address use:

[EMAIL PROTECTED]

or if your mail address has changed, use

[EMAIL PROTECTED]

Inserting your old email address in place of xxx=xxx.com

You can also unsubscribe via the mail list web page on
the Jakarta site.

Mike.
--
Mike Braden
[EMAIL PROTECTED]
[EMAIL PROTECTED] 

Hi! This is the ezmlm program. I'm managing the
[EMAIL PROTECTED] mailing list.

I'm working for my owner, who can be reached
at [EMAIL PROTECTED]

Acknowledgment: I have added the address

  [EMAIL PROTECTED]

to the tomcat-user mailing list.

Welcome to [EMAIL PROTECTED]!

Please save this message so that you know the address you are
subscribed under, in case you later want to unsubscribe or change your
subscription address.

To unsubscribe, send a message to:

[EMAIL PROTECTED]


--- Administrative commands for the tomcat-user list ---

I can handle administrative requests automatically. Please
do not send them to the list address! Instead, send
your message to the correct command address:

For help and a description of available commands, send a message to:
   [EMAIL PROTECTED]

To subscribe to the list, send a message to:
   [EMAIL PROTECTED]

To remove your address from the list, just send a message to
the address in the ``List-Unsubscribe'' header of any list
message. If you haven't changed addresses since subscribing,
you can also send a message to:
   [EMAIL PROTECTED]

or for the digest to:
   [EMAIL PROTECTED]

For addition or removal of addresses, I'll send a confirmation
message to that address. When you receive it, simply reply to it
to complete the transaction.

If you need to get in touch with the human owner of this list,
please send a message to:

[EMAIL PROTECTED]

Please include a FORWARDED list message with ALL HEADERS intact
to make it easier to help you.


-Original Message-
From: Laurence Mayer [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 9:55 AM
To: '[EMAIL PROTECTED]'
Subject: RE: * URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST *



I have been trying for days, still cannot unsubscribe, if you do find the
way, please let me know how.

Thanks

-Original Message-
From: Sharad Mohan [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 2:45 PM
To: [EMAIL PROTECTED]
Subject: * URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST * 


* URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST * 

_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com






Re: Images not showing on Win2000

2001-05-21 Thread oLi

I get the same under NT. Obviously it is a bug, when I
have my static content served by IIS it works fine.

oLi

--- Eric Lubin [EMAIL PROTECTED] schrieb:  Can
someone running Jakarta Tomcat 3.2.1  on Windows
 2000 test this for me?
 Maybe it's a bug and i'll post it to the dev list.
 
 Create a new directory
 Put 2 JPG images in it, or the same one renamed. 
 Name one hello.jpg and
 the other hello test.jpg (WITH THE SPACE)
 Now point your browser at that directory and let
 Tomcat build the page for
 you.
 Click on both images
 
 In my case, only the first one will display.  The
 second will give a 404
 page not found error.
 
 Eric Lubin
 [EMAIL PROTECTED]
 


__
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de



RE: Running Tomcat as an NT Service

2001-05-21 Thread Ronald G. Louzon

I currently have the following 2 system environment variables (I double
checked to be sure there were no USER environment variables of the same
name):

JAVA_HOME=jdk1.3
TOMCAT_HOME=c:\MCA5.5\tomcat-3.2.1


In the wrapper.properties file, I have made the mods:

wrapper.tomcat_home=C:\MCA5.5\tomcat-3.2.1
wrapper.java_home=C:\jdk1.3


In the Server.XML file, which is in c:\MCA5.5\tomcat-3.2.1\conf, I have
added the context:

Context path=/soap 
docBase=C:\MCA5.5\tomcat-3.2.1\webapps\soap
debug=1 
reloadable=true
/Context



And, in the c:\MCA5.5\tomcat-3.2.1\webapps\soap\WEB-INF\classes directory, I
have added all of my classes.  The class directory structure has been
reproduced under the directory and the classes are actually in the directory


c:\MCA5.5\tomcat-3.2.1\webapps\soap\WEB-INF\classes\samples\addressbook  

When I run Tomcat as a service, it knows the context soap is there but it
cannot find any of the class files.  
If I add the following line to worker.properties, everything works fine:

wrapper.class_path=$(wrapper.tomcat_home)\webapps\soap\WEB-INF\classes

Is there something else I need to configure?

thanks,
ron

-Original Message-
From: Hunor Nam [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 10:23 AM
To: [EMAIL PROTECTED]
Subject: RE: Running Tomcat as an NT Service


just make sure that your enviroment varibles are set for SYSTEM !!! not
for USER varables
Hades

-Original Message-
From: Ronald G. Louzon [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 3:35 PM
To: '[EMAIL PROTECTED]'
Subject: Running Tomcat as an NT Service


When running Tomcat as a Windows NT service, the NT wrapper
jk_nt_service.exe must be installed and run instead of using the startup
batch file.  It appears that the jk_nt_service application reads its
entire
configuration from the wrapper.properties file.  What this means is that
the
classes and jar files under WEB-INF/classes and WEB-INF/lib are not
automatically loaded for a servlet.  Instead, they must all be added
manually in the wrapper.properties file.

Has anyone else run Tomcat as an NT Service and seen this same
behaviour?
If this behaviour is correct, why is so much functionality lost when
running
with the wrapper service?

Thanks,
ron



Re: Session vs Beans

2001-05-21 Thread Egidijus Drobavicius

I think bean is much more clear approach. As i understood you have 2 ways --
store items directly to hashtable or store javabean and all you items into
this bean.
If you choose the first way the hashtable of the session would contain
pretty much of your crap and in case you want to dump all of it you will run
into problems which of these items are necessary for you and which were
placed by some other bean/jsp or so on.
If you use your own bean with a scope set to session (actually this would
place your bean to the _same_ hashtable of session object), you will have
all your form based valued concentrated in one single bean and that data
will be encapsulated.
When looking at performance and memory consumtion issues, the difference
will me so miserable that even computer would not be able to distinct :)
Regards,
Egidijus

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 21, 2001 3:17 PM
Subject: Session vs Beans


 Last week I proposed this question to the discission group:

 I am currently writing a pretty complex data entry HTML page for an
 application.  The HTML has 7 different frames where data is input, one
 represents the master table and the others detail tables.  I am trying to
 come up with a way to keep all of the data entered into each frame for
 updating the database (I want to update all the records in one
 transaction).  There some obvious ways of doing this as with invisible
 fields on the master frame, and URL rewriting (cookies are out in this
 case) but I have also been looking into using the Session object.  I know
 the object is used for shopping carts on commercial web sites but would it
 be a good to use it to keep all the input values for various input forms?
 There will be from 40 - 50 items of data stored in the session object and
a
 user will only be able to have one form at a time?

 The unamious (and very helpful)  response was yes use a session object.

 Now however, I have learned to use Java Beans in JSP and was wondering, is
 it better to use a session object or a Java Bean with the scope set to
 session to store these values?

 Thanks for you help

 Jeff Sulman






RE: ***** URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST *****

2001-05-21 Thread Michael Wentzel

 This is a copy of the welcome message you get when subscribing to
 this group.  You can use one of two methods.

'ya know, I'm a huge proponent of NO html messages on the list
(especially since it's in the usage policy!), but maybe the welcome
message should be changed to an html message.  Here's my proposal:

Purple background with a BIG, flashing heading in Pink text saying
Read This! and so on.

Maybe then people would read the welcom message! ;}  Then again maybe
I'm just dreaming.



Re: Bean Choices (code question)

2001-05-21 Thread Michael Stacey



I have a lot of informational beans that hold static reference data (think
ISO codes, State abbreviations, etc...) With these types of beans, I have
the choice of instantiating a singleton object reference to the bean and
accessing the methods through the object, or making all the methods public
static so I can access them via BeanName.method(). For the former, the bean
does all of it's initialization and database access in it's constructor and
my JSP's have something like the following at the top:

Isn't this a prime candidate for application-level beans?  These are 
instantiated
when the servlet is started and reused, no?

-- Michael 





Editting server.xml with text editor

2001-05-21 Thread Harry Mantheakis


I am using Tomcat 4 b5 on a Mac OS X.

I can edit web.xml with my text editor, but not server.xml.

If I open server.xml in my text editor I get the following:

 usersa password driverClassName org.hsql.jdbcDriver driverName
jdbc:HypersonicSQL:database  mail.smtp.host localhost

If I use pico in tcsh then I can see everything and I can edit the file
normally.

I have downloaded T4 twice (b3 and b5) but the problem remains.

Does anyone know why I cannot use my text editor to edit server.xml?

TIA and regards

Harry Mantheakis
London, UK




RE: installation problems.

2001-05-21 Thread Christian Rudolph

Aristide,

My first suggestion would be that you use a different port than 88,
(I remember something about ports lower than ~1000 being restricted use).
Try using a port in the high end of the range, say above 8080.

-Christian 

Christian Rudolph
NewsEdge Corp.
80 Blanchard Road
Burlington, MA 01803


-Original Message-
From: Aristide Aragon [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 2:33 AM
To: [EMAIL PROTECTED]
Subject: Re: installation problems.


I was able to solve the instal. problems I described in this post, however,
a new problem surged.
When I start tomcat, by typing $TOMCAT_HOME/bin/startup.sh I get the
classpath printed, and then I get:

FATAL: configuration error
java.lang.SecurityException: sealing violation
at java.net.URLClassLoader.defineClass(URLClassLoader.java:234)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:117)
at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:210)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)

What could that be?

I changed the conf. file from port 8080 to port 88, but nothing other than
that, and it did give the error before I changed that.
I am starting tomcat as root on a Linux system using JDK 1.3, and the most
recent versions of everything tomcat requires (actually I had to symlink
directory jaxp-1.1 to jaxp-1.0.1 because it apparetnly is hardwired to that
dir name.

Any help would be appreciated.

Aristide -hog



Tomcat 4, mod_webapp problem

2001-05-21 Thread Laurens Fridael



Hi,


I've managed to 
build mod_webapp on ourLinux machine.First Iencountered 
troubles with the APXS script of the current installation. I then installed the 
latest version of Apache (1.3.20) and still ran into difficulties. With a little 
modification of the apxs script (a hint from the Tomcat mailing archive) 
Icould finally build it.

However, when I try 
to load mod_webapp into Apache (using LoadModule) I get this error 
message:
"Cannot 
load /usr/local/apache/libexec/mod_webapp.so into server: 
/usr/local/apache/libexec/mod_webapp.so: undefined symbol: pthread_sigmask"

Apparently 
there are still unresolved symbols, or my paths aren't set correctly. Can anyone 
give me a hint?

I'm thinking 
of reinstalling Linux. The current installation is flaky at best but it worked 
alright for well over a year.


Thanks
-Laurens


3.2.1 Dies

2001-05-21 Thread Hunter Hillegas

I am running a high traffic site with Tomcat 3.2.1/Sun JVM 1.3/Linux
2.4.4/Apache 1.3.19. After a few days of serving up the hits very well,
Tomcat just dies. It won't respond to shutdown requests and stops serving
pages, giving out only null pointer exceptions. Killing the java processes
manually and restarting Tomcat clears it up.

Anyone else seen this? Any idea how to work around it?

Hunter





RE: RewritingURL with Tomcat3.2.1

2001-05-21 Thread Lessault Jean-Luc


Thanks but I already use servlet mapping.
More preciasely my question is in which file I have to put the following
instructions

  LoadModule rewrite_module module/mod_rewrite.dll
 IfModule mod_rewrite.c
  RewriteEngine On
  RewriteBase /ContextServlet/
  RewriteRule ^file.html
 /ContextServlet/MyServletName?parameter=file.html.
 /IfModule

Have a good day




RE: ***** URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST *****

2001-05-21 Thread Laurence Mayer

I have tried what you suggested, here is the error :

Hi. This is the qmail-send program at apache.org.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

[EMAIL PROTECTED]:
Sorry, no mailbox here by that name. (#5.1.1)

--- Below this line is a copy of the message.

Return-Path: [EMAIL PROTECTED]
Received: (qmail 93559 invoked from network); 21 May 2001 14:43:22 -
Received: from unknown (HELO jlm-exchange.yazam.com) (212.25.111.209)
  by h31.sny.collab.net with SMTP; 21 May 2001 14:43:22 -
Received: by JLM-EXCHANGE with Internet Mail Service (5.5.2650.21)
id K0LXY4KC; Mon, 21 May 2001 17:41:25 +0200
Message-ID: A581F7261949D5118D7600062938CD4AC1D9@JLM-EXCHANGE
From: Laurence Mayer [EMAIL PROTECTED]
To: 'tomcat-user-unsubscribe-lmayer=' [EMAIL PROTECTED]
Subject: 
Date: Mon, 21 May 2001 17:41:21 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
charset=iso-8859-1
X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N


-Original Message-
From: Mike Braden [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 4:36 PM
To: [EMAIL PROTECTED]
Subject: RE: * URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST *



This is a copy of the welcome message you get when subscribing to
this group.  You can use one of two methods.

Send a message to the address listed below, which includes the
command for the mail system.

If you are still at the same address use:

[EMAIL PROTECTED]

or if your mail address has changed, use

[EMAIL PROTECTED]

Inserting your old email address in place of xxx=xxx.com

You can also unsubscribe via the mail list web page on
the Jakarta site.

Mike.
--
Mike Braden
[EMAIL PROTECTED]
[EMAIL PROTECTED] 

Hi! This is the ezmlm program. I'm managing the
[EMAIL PROTECTED] mailing list.

I'm working for my owner, who can be reached
at [EMAIL PROTECTED]

Acknowledgment: I have added the address

  [EMAIL PROTECTED]

to the tomcat-user mailing list.

Welcome to [EMAIL PROTECTED]!

Please save this message so that you know the address you are
subscribed under, in case you later want to unsubscribe or change your
subscription address.

To unsubscribe, send a message to:

[EMAIL PROTECTED]


--- Administrative commands for the tomcat-user list ---

I can handle administrative requests automatically. Please
do not send them to the list address! Instead, send
your message to the correct command address:

For help and a description of available commands, send a message to:
   [EMAIL PROTECTED]

To subscribe to the list, send a message to:
   [EMAIL PROTECTED]

To remove your address from the list, just send a message to
the address in the ``List-Unsubscribe'' header of any list
message. If you haven't changed addresses since subscribing,
you can also send a message to:
   [EMAIL PROTECTED]

or for the digest to:
   [EMAIL PROTECTED]

For addition or removal of addresses, I'll send a confirmation
message to that address. When you receive it, simply reply to it
to complete the transaction.

If you need to get in touch with the human owner of this list,
please send a message to:

[EMAIL PROTECTED]

Please include a FORWARDED list message with ALL HEADERS intact
to make it easier to help you.


-Original Message-
From: Laurence Mayer [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 9:55 AM
To: '[EMAIL PROTECTED]'
Subject: RE: * URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST *



I have been trying for days, still cannot unsubscribe, if you do find the
way, please let me know how.

Thanks

-Original Message-
From: Sharad Mohan [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 2:45 PM
To: [EMAIL PROTECTED]
Subject: * URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST * 


* URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST * 

_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com





Welcome-file

2001-05-21 Thread TRichter

Hello,

I noticed during development that Tomcat only serves *.html files in the
welcome-file-list. It tried to put index.jsp to the list - no reaction, the
file wasn't be served. I changed the name to index.html - every okay. Is
this a bug or a feature?

Regards
   Thomas




SSL support for Tomcat 3.2.1 with IIS

2001-05-21 Thread Hawkins, Keith (Keith)
Title: SSL support for Tomcat 3.2.1 with IIS 







If one is deploying ISS + Tomcat 3.2.1, what is required to support SSL connections via HTTPS?


Is the configuration done in ISS, Tomcat, or both?


Thanks,

Keith






RE: ***** URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST *****

2001-05-21 Thread Fred Huelsbeck
Title: RE: * URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST * 





THIS DOES NOT WORK!!! I have even gotten the confirmation message back stating I had been removed, that was a week ago. So far I have deleted over 1000 e-mail message since then.

Good luck!!


-Original Message-
From: Mike Braden [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 7:36 AM
To: [EMAIL PROTECTED]
Subject: RE: * URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST *




This is a copy of the welcome message you get when subscribing to
this group. You can use one of two methods.


Send a message to the address listed below, which includes the
command for the mail system.


If you are still at the same address use:


[EMAIL PROTECTED]


or if your mail address has changed, use


[EMAIL PROTECTED]


Inserting your old email address in place of xxx=xxx.com


You can also unsubscribe via the mail list web page on
the Jakarta site.


Mike.
--
Mike Braden
[EMAIL PROTECTED]
[EMAIL PROTECTED] 


Hi! This is the ezmlm program. I'm managing the
[EMAIL PROTECTED] mailing list.


I'm working for my owner, who can be reached
at [EMAIL PROTECTED]


Acknowledgment: I have added the address


 [EMAIL PROTECTED]


to the tomcat-user mailing list.


Welcome to [EMAIL PROTECTED]!


Please save this message so that you know the address you are
subscribed under, in case you later want to unsubscribe or change your
subscription address.


To unsubscribe, send a message to:


 [EMAIL PROTECTED]



--- Administrative commands for the tomcat-user list ---


I can handle administrative requests automatically. Please
do not send them to the list address! Instead, send
your message to the correct command address:


For help and a description of available commands, send a message to:
 [EMAIL PROTECTED]


To subscribe to the list, send a message to:
 [EMAIL PROTECTED]


To remove your address from the list, just send a message to
the address in the ``List-Unsubscribe'' header of any list
message. If you haven't changed addresses since subscribing,
you can also send a message to:
 [EMAIL PROTECTED]


or for the digest to:
 [EMAIL PROTECTED]


For addition or removal of addresses, I'll send a confirmation
message to that address. When you receive it, simply reply to it
to complete the transaction.


If you need to get in touch with the human owner of this list,
please send a message to:


 [EMAIL PROTECTED]


Please include a FORWARDED list message with ALL HEADERS intact
to make it easier to help you.



-Original Message-
From: Laurence Mayer [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 9:55 AM
To: '[EMAIL PROTECTED]'
Subject: RE: * URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST *




I have been trying for days, still cannot unsubscribe, if you do find the
way, please let me know how.


Thanks


-Original Message-
From: Sharad Mohan [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 2:45 PM
To: [EMAIL PROTECTED]
Subject: * URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST * 



* URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST * 


_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com






Catalina + Jbuilder 4.0

2001-05-21 Thread John Menke

Is there any information on how to setup JBuilder 4.0 to debug Catalina
servlets?









Custom Tag Problem

2001-05-21 Thread Kevin Long


I'm using Tomcat 3.2.1.  I have a custom tag that has some standard HTML
attributes in the custom tag.  One of the attributes is called class.
When I try to load the JSP page that contains this tag with the attribute,
I'm getting a compile error.  Here is the stack trace:

org.apache.jasper.JasperException: Unable to compile class for JSP
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:476)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484

Thanks for any assistance!

Kevin Long
[EMAIL PROTECTED]



RE: Virtual host application directories in Tomcat 3.2 and 4.0

2001-05-21 Thread Jonas Björnerstedt

I want to have a webapps/ directory for each virtual host. A home directory
such as this allows the user to add subdirectories without explicitly adding
the contexts to server.xml. Using a Context element as you suggested will
only give me one application. I suppose I could specify each application as
a Context element, but the ease of use and flexibility of the webapps/
directory is then lost.

Jonas

-Original Message-
From: Williamson, James [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 2:48 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Virtual host application directories in Tomcat 3.2 and 4.0


Jonas,
Try using the absolute path in the docBase attribute within the Context
element. Hazarding a guess, I would expect if you used a relative path it
would be 'relative' to the docBase in the ContextManager element.
Regards,
James
-Original Message-
From: Jonas Björnerstedt [mailto:[EMAIL PROTECTED]]
Sent: 21 May 2001 09:58
To: '[EMAIL PROTECTED]'
Subject: Virtual host application directories in Tomcat 3.2 and 4.0


Although I haven't tried it, in Tomcat 4.0 each Host directive can specify
an application base directory (webapps/) for the host. The appBase attribute
specifies for each host where applications will be deployed.
Can the same thing be done in 3.2, if virtual hosts are specified with the
Host directive? The only way I have found for specifying the directory, is
by using the home attribute to the ContextManager directive. This can't be
the right approach, as each host is specified within the ContextManager
directive.
Does anybody have any suggestions?
Jonas


**
This e-mail (including any documents which may accompany it) contains
information which is confidential and may also be privileged.
It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s) please note that any form of
distribution, copying or use of this e-mail or the information in it
or attached to it is strictly prohibited and may be unlawful.
If you have received this e-mail in error please notify us immediately
by e-mail to [EMAIL PROTECTED] or telephone +44 (0)207 940 1200 and
delete the e-mail.
Please advise immediately if you or your employer do not consent to
Internet E-Mail for messages of this type.
Information or opinions in this message that do not relate to the
business of Windsor plc and/or subsidiary and/or associated companies
shall be treated as neither given or endorsed by it.
**




memory limitation

2001-05-21 Thread Will Glass-Husain



Hi,

I've created a small 
application for the web that has suddenly received a significant increase in 
traffic. When I have more than 10 simultaneous users, all my JSP pages 
return "Out of Memory" exceptions.

I'd like to be able 
to support 100+ users. I have one session bean with about 1-2 KB of 
instance variables. With 400 MB free hard drive space, it seems like I 
should be able to support tons of users. Any advice?
Thanks, 
WILL






___Forio Business 
SimulationsWill Glass-Husain(415) 440-7500 phone(415) 235-4293 
mobile
[EMAIL PROTECTED]www.forio.com



RE: Browser Closed

2001-05-21 Thread Devon Ziegler

I ran into a similar problem.  The servlet sessions will timeout so the user
has to log in again, but that doesn't help with what you are talking about
(which seems to be cleaning up things after a user has been inactive long
enough).

I basically created a context wide vector of user sessions (my own notion
of a session, not servlet's) that had inside it the last time a request was
received by that user.  Upon any request I update the list for the current
request (setting the time of last request to now) and clean up any
sessions that have gone beyond my timeout period (which is slightly longer
than my servlet session timeout period to be safe).  Admittedly this cleanup
will only happen if a request occurs after the user has been inactive long
enough, but, for me, that was acceptable.

HTH.  -Devon



-Original Message-
From: Alin Simionoiu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 17, 2001 12:18 AM
To: [EMAIL PROTECTED]
Subject: Browser Closed


Hello everybody,

I'm implementing a login/logout from a web page.
Everithing is absolutly fine if the user it's using my logout button.

But, if the user just close the browser, without using the logout button,
then I'm in trouble.
Has anybody any ideea if is possible to know when a user close the
browser?..

I'm not using a keep-alive connection.
Probably is not possible, considering that http is a stateless protocol.

Alin




Re: 3.2.1 Dies

2001-05-21 Thread Srinadh Karumuri

Did you check the log files?
This sounds like a OutOfMemoryError.

You can increase the heap size while starting the tomcat.

-Sri

At 08:16 AM 05/21/2001 -0700, Hunter Hillegas wrote:
I am running a high traffic site with Tomcat 3.2.1/Sun JVM 1.3/Linux
2.4.4/Apache 1.3.19. After a few days of serving up the hits very well,
Tomcat just dies. It won't respond to shutdown requests and stops serving
pages, giving out only null pointer exceptions. Killing the java processes
manually and restarting Tomcat clears it up.

Anyone else seen this? Any idea how to work around it?

Hunter



Srinadh Karumuri
Senior Programmer/Analyst
Business Apps.
BBN Technologies (Verizon)
Ph:(617)873-2841




RE: RewritingURL with Tomcat3.2.1

2001-05-21 Thread Rob Ewaschuk


There is fairly good documentation of the mod_rewrite on the apache httpd
website at http://httpd.apache.org/docs/misc/rewrite

I believe you will need to have ^/file.html and not just ^file.html - the
paths that are parsed include (I think) the leading slash. 

hth...

-Rob

: Rob Ewaschuk :  University of Waterloo  :
:  theideaproject.org  : Computer Science :

On Mon, 21 May 2001, Lessault Jean-Luc wrote:

 
 Thanks but I already use servlet mapping.
 More preciasely my question is in which file I have to put the following
 instructions
 
   LoadModule rewrite_module module/mod_rewrite.dll
  IfModule mod_rewrite.c
   RewriteEngine On
   RewriteBase /ContextServlet/
   RewriteRule ^file.html
  /ContextServlet/MyServletName?parameter=file.html.
  /IfModule
 
 Have a good day
 




RE: Welcome-file

2001-05-21 Thread Randy Layman


I don't have this problem, I use index.jsp as my start page.  Did
you start and stop Tomcat to make the change take effect?  Did you remove
the index.html entry, or put index.jsp after it in the file?

Randy


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 21, 2001 11:26 AM
 To: [EMAIL PROTECTED]
 Subject: Welcome-file
 
 
 Hello,
 
 I noticed during development that Tomcat only serves *.html 
 files in the
 welcome-file-list. It tried to put index.jsp to the list - no 
 reaction, the
 file wasn't be served. I changed the name to index.html - 
 every okay. Is
 this a bug or a feature?
 
 Regards
Thomas
 



RE: ***** URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST *****

2001-05-21 Thread Randy Layman


It seems like your mail program mucked with the to address:
 To: 'tomcat-user-unsubscribe-lmayer=' [EMAIL PROTECTED]

it shouldn't be breaking at the = sign.  I would suggest trying
again making sure that there are no spaces between the = and usxx.  If that
doesn't work, then either try with a different mail program or try
telnetting to port 25 of a mail server and type the message in manually.

Randy

 -Original Message-
 From: Laurence Mayer [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 21, 2001 12:24 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: * URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER 
 LIST *
 
 
 
 I have tried what you suggested, here is the error :
 
 Hi. This is the qmail-send program at apache.org.
 I'm afraid I wasn't able to deliver your message to the 
 following addresses.
 This is a permanent error; I've given up. Sorry it didn't work out.
 
 [EMAIL PROTECTED]:
 Sorry, no mailbox here by that name. (#5.1.1)
 
 --- Below this line is a copy of the message.
 
 Return-Path: [EMAIL PROTECTED]
 Received: (qmail 93559 invoked from network); 21 May 2001 
 14:43:22 -
 Received: from unknown (HELO jlm-exchange.yazam.com) (212.25.111.209)
   by h31.sny.collab.net with SMTP; 21 May 2001 14:43:22 -
 Received: by JLM-EXCHANGE with Internet Mail Service (5.5.2650.21)
   id K0LXY4KC; Mon, 21 May 2001 17:41:25 +0200
 Message-ID: A581F7261949D5118D7600062938CD4AC1D9@JLM-EXCHANGE
 From: Laurence Mayer [EMAIL PROTECTED]
 To: 'tomcat-user-unsubscribe-lmayer=' [EMAIL PROTECTED]
 Subject: 
 Date: Mon, 21 May 2001 17:41:21 +0200
 MIME-Version: 1.0
 X-Mailer: Internet Mail Service (5.5.2650.21)
 Content-Type: text/plain;
   charset=iso-8859-1
 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
 
 
 -Original Message-
 From: Mike Braden [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 21, 2001 4:36 PM
 To: [EMAIL PROTECTED]
 Subject: RE: * URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER 
 LIST *
 
 
 
 This is a copy of the welcome message you get when subscribing to
 this group.  You can use one of two methods.
 
 Send a message to the address listed below, which includes the
 command for the mail system.
 
 If you are still at the same address use:
 
 [EMAIL PROTECTED]
 
 or if your mail address has changed, use
 
 [EMAIL PROTECTED]
 
 Inserting your old email address in place of xxx=xxx.com
 
 You can also unsubscribe via the mail list web page on
 the Jakarta site.
 
 Mike.
 --
 Mike Braden
 [EMAIL PROTECTED]
 [EMAIL PROTECTED] 
 
 Hi! This is the ezmlm program. I'm managing the
 [EMAIL PROTECTED] mailing list.
 
 I'm working for my owner, who can be reached
 at [EMAIL PROTECTED]
 
 Acknowledgment: I have added the address
 
   [EMAIL PROTECTED]
 
 to the tomcat-user mailing list.
 
 Welcome to [EMAIL PROTECTED]!
 
 Please save this message so that you know the address you are
 subscribed under, in case you later want to unsubscribe or change your
 subscription address.
 
 To unsubscribe, send a message to:
 
 [EMAIL PROTECTED]
 
 
 --- Administrative commands for the tomcat-user list ---
 
 I can handle administrative requests automatically. Please
 do not send them to the list address! Instead, send
 your message to the correct command address:
 
 For help and a description of available commands, send a message to:
[EMAIL PROTECTED]
 
 To subscribe to the list, send a message to:
[EMAIL PROTECTED]
 
 To remove your address from the list, just send a message to
 the address in the ``List-Unsubscribe'' header of any list
 message. If you haven't changed addresses since subscribing,
 you can also send a message to:
[EMAIL PROTECTED]
 
 or for the digest to:
[EMAIL PROTECTED]
 
 For addition or removal of addresses, I'll send a confirmation
 message to that address. When you receive it, simply reply to it
 to complete the transaction.
 
 If you need to get in touch with the human owner of this list,
 please send a message to:
 
 [EMAIL PROTECTED]
 
 Please include a FORWARDED list message with ALL HEADERS intact
 to make it easier to help you.
 
 
 -Original Message-
 From: Laurence Mayer [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 21, 2001 9:55 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: * URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER 
 LIST *
 
 
 
 I have been trying for days, still cannot unsubscribe, if you 
 do find the
 way, please let me know how.
 
 Thanks
 
 -Original Message-
 From: Sharad Mohan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 21, 2001 2:45 PM
 To: [EMAIL PROTECTED]
 Subject: * URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST * 
 
 
 * URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST * 
 
 _
 Chat with your friends as soon as they come online. Get Rediff Bol at
 http://bol.rediff.com
 
 



AW: ***** URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST *****

2001-05-21 Thread Ralph Einfeldt

It looks like either you or your mailer are sending this:
tomcat-user-unsubscribe-lmayer=' [EMAIL PROTECTED]
instead of this:
[EMAIL PROTECTED]

My guess is your mailer. Some mailers are somewhat limited
in the syntax of e-mailadresses.

 -Ursprüngliche Nachricht-
 Von: Laurence Mayer [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 21. Mai 2001 18:24
 An: '[EMAIL PROTECTED]'
 Betreff: RE: * URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER 
 LIST *
snip/ 
 [EMAIL PROTECTED]:
 Sorry, no mailbox here by that name. (#5.1.1)
 From: Laurence Mayer [EMAIL PROTECTED]
 To: 'tomcat-user-unsubscribe-lmayer=' [EMAIL PROTECTED]
snip/ 



RE: Tomcat 4, mod_webapp problem

2001-05-21 Thread Williamson, James



Sorry 
typo, on non thread enabled OS 'es

  -Original Message-From: Laurens Fridael 
  [mailto:[EMAIL PROTECTED]]Sent: 21 May 2001 
  16:10To: Tomcat mailing listSubject: Tomcat 4, 
  mod_webapp problem
  Hi,
  
  
  I've managed to 
  build mod_webapp on ourLinux machine.First Iencountered 
  troubles with the APXS script of the current installation. I then installed 
  the latest version of Apache (1.3.20) and still ran into difficulties. With a 
  little modification of the apxs script (a hint from the Tomcat mailing 
  archive) Icould finally build it.
  
  However, when I 
  try to load mod_webapp into Apache (using LoadModule) I get this error 
  message:
  "Cannot load 
  /usr/local/apache/libexec/mod_webapp.so into server: 
  /usr/local/apache/libexec/mod_webapp.so: undefined symbol: 
  pthread_sigmask"
  
  Apparently 
  there are still unresolved symbols, or my paths aren't set correctly. Can 
  anyone give me a hint?
  
  I'm thinking 
  of reinstalling Linux. The current installation is flaky at best but it worked 
  alright for well over a year.
  
  
  Thanks
  -Laurens

**
This e-mail (including any documents which may accompany it) contains
information which is confidential and may also be privileged.
It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s) please note that any form of
distribution, copying or use of this e-mail or the information in it
or attached to it is strictly prohibited and may be unlawful.
If you have received this e-mail in error please notify us immediately
by e-mail to [EMAIL PROTECTED] or telephone +44 (0)207 940 1200 and
delete the e-mail.
Please advise immediately if you or your employer do not consent to
Internet E-Mail for messages of this type.
Information or opinions in this message that do not relate to the
business of Windsor plc and/or subsidiary and/or associated companies
shall be treated as neither given or endorsed by it.
**



error reading request --please help

2001-05-21 Thread Vasanth Krishnan Venkatachalam

Hi everyone, 

I'm trying to test tomcat 3.2.1 from the web. I have it running on a
server
called vader.ics.uci.edu, on port 19000. I want to access the file,
source.jsp, which is located in the directory, 
webapps/examples/jsp/

But when I point my browser to
http://vader.ics.uci.edu:19000/webapps/examples/jsp/source.jsp

I notice, in the window where startup.sh is running the following error:


5-19 09:23:30 - ContextManager: Error reading request, ignored - java.lang
.NullPointerException
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java, Compiled Code)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.j
ava, Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)  


Any suggestions on how to beat this?

Vasanth






RE: Tomcat 4, mod_webapp problem

2001-05-21 Thread Williamson, James



Laurens, 

Which 
version of Linux are you running? pthreads aren't an integral part of the OS, 
they're a library which as far as I remember were a hack toprovide some 
form of threadingcapacity on thread enabledOS 'es (i.e Linux). So 
the question is, are they in your library path (i.e. /lib)? Look for files like 
libpthread.so.0, It would explain why ld.so (the dynamic 
linker)can't find these symbols.

Regards, 

James

  -Original Message-From: Laurens Fridael 
  [mailto:[EMAIL PROTECTED]]Sent: 21 May 2001 
  16:10To: Tomcat mailing listSubject: Tomcat 4, 
  mod_webapp problem
  Hi,
  
  
  I've managed to 
  build mod_webapp on ourLinux machine.First Iencountered 
  troubles with the APXS script of the current installation. I then installed 
  the latest version of Apache (1.3.20) and still ran into difficulties. With a 
  little modification of the apxs script (a hint from the Tomcat mailing 
  archive) Icould finally build it.
  
  However, when I 
  try to load mod_webapp into Apache (using LoadModule) I get this error 
  message:
  "Cannot load 
  /usr/local/apache/libexec/mod_webapp.so into server: 
  /usr/local/apache/libexec/mod_webapp.so: undefined symbol: 
  pthread_sigmask"
  
  Apparently 
  there are still unresolved symbols, or my paths aren't set correctly. Can 
  anyone give me a hint?
  
  I'm thinking 
  of reinstalling Linux. The current installation is flaky at best but it worked 
  alright for well over a year.
  
  
  Thanks
  -Laurens

**
This e-mail (including any documents which may accompany it) contains
information which is confidential and may also be privileged.
It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s) please note that any form of
distribution, copying or use of this e-mail or the information in it
or attached to it is strictly prohibited and may be unlawful.
If you have received this e-mail in error please notify us immediately
by e-mail to [EMAIL PROTECTED] or telephone +44 (0)207 940 1200 and
delete the e-mail.
Please advise immediately if you or your employer do not consent to
Internet E-Mail for messages of this type.
Information or opinions in this message that do not relate to the
business of Windsor plc and/or subsidiary and/or associated companies
shall be treated as neither given or endorsed by it.
**



RE: AW: mailing list or news group??

2001-05-21 Thread Devon Ziegler

Frankly it doesn't seem like it would take much work to have BOTH (newsgroup
and mailing list).  Route messages arriving to one type into the other and
vice versa with some back-end software.  Most of us are developers here
aren't we :)

Just a thought.

-Devon

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 17, 2001 9:02 AM
To: [EMAIL PROTECTED]
Subject: RE: AW: mailing list or news group??


that's not a bad cut - another way of slicing might be -

tomcat - config  install
tomcat - applications

It seems to me, that the cross-platform differences aren't enough to warrant
splitting it along those lines. That's if we want to do it that way.

My vote is for a Mailing list. Means that I ain't going to break out my
newsreader...

At 5/17/01 1:49:40 PM, Robert Wohlgemuth [EMAIL PROTECTED]
wrote:
#  Hi!
#
#  Mailinglists are very good, but if the amount of messages explode (like
in
#  this mailing list) it should be considered to split the mailinglist into
#  several more specific ones:
#  e.g. tomcat + IIS
#   tomcat + apache (win)
#   tomcat + apache (linux)
#   tomcat + security
#
#  and so on.
#
#  I think this would improve the quality of service.
#
#  best regards,
#   r00bi

Roger





Re: Changing Tomcat's User ID

2001-05-21 Thread Boris Niyazov

you may want to use in your script:

/usr/bin/su nobody -c $TOMCAT_HOME/bin/startup.sh

hth
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 




I'm running tomcat 3.2.1 on Solaris. It is started in an rc2.d/ script by
root, and therefore runs as root. We'd like to be able to have it run as
nobody like apache does. Is there a way to do this? I read through the
documentation on it, and it mentioned using su inside of the start scripts,
but that method did not work.
Any help would be greatly appreciated.
Thanks,
Jason Majors





URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST

2001-05-21 Thread Geetha Subramanian

 
 

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



Trying to build tomcat contrib example - need some help

2001-05-21 Thread Derek Laufenberg

Hello,

I'm very new to EJB/Tomcat and I am having trouble building the contrib
examples.
Ive installed JBoss-2.2.1_Tomcat-3.2.1 bundle and was able to run the
system.  Next I wanted
to build the example out of the contrib package.  I've unzipped the contrib
files and tried to compile
as directed by the readme.  The build starts, but fails to find the
javax.ejb package.

I know I'm missing some setup or something simple.  Could anyone send me a
pointer?

Thanks,

Derek Laufenberg

Output from build process:

F:\ejb_dev\contrib\tomcat\src\buildbuild.bat install
build.bat install
Searching for build.xml ...
Buildfile: F:\ejb_dev\contrib\tomcat\src\build\build.xml

init:
Using jboss.dist=F:\JBoss-2.2.1_Tomcat-3.2.1\jboss
Using tomcat.dist=F:\JBoss-2.2.1_Tomcat-3.2.1\tomcat
Using
classpath=F:\JBoss-2.2.1_Tomcat-3.2.1\jboss\client\jaas.jar;F:\JBoss-2.2.1_T
omcat-3.2.1\jboss\client\jbosssx-client.jar;F:\JBoss-2.2.1_Tomcat-3.2.1\jbos
s\client\jnp-client.jar;F:\JBoss-2.2.1_Tomcat-3.2.1\jboss\client\jta-spec1_0
_1.jar;F:\JBoss-2.2.1_Tomcat-3.2.1\jboss\lib\jdbc2_0-stdext.jar;F:\JBoss-2.2
.1_Tomcat-3.2.1\jboss\lib\jaxp.jar;F:\JBoss-2.2.1_Tomcat-3.2.1\jboss\lib\cri
mson.jar;F:\JBoss-2.2.1_Tomcat-3.2.1\jboss\lib\jmxri.jar;F:\JBoss-2.2.1_Tomc
at-3.2.1\jboss\lib\jboss-jaas.jar;F:\JBoss-2.2.1_Tomcat-3.2.1\jboss\lib\ext\
jboss-j2ee.jar;F:\JBoss-2.2.1_Tomcat-3.2.1\jboss\lib\ext\jboss.jar;F:\JBoss-
2.2.1_Tomcat-3.2.1\jboss\lib\ext\jbosssx.jar;F:\JBoss-2.2.1_Tomcat-3.2.1\jbo
ss\lib\ext\log4j.jar;F:\JBoss-2.2.1_Tomcat-3.2.1\tomcat\lib\webserver.jar;F:
\JBoss-2.2.1_Tomcat-3.2.1\tomcat\lib\servlet.jar;F:\ejb_dev\contrib\tomcat\b
uild\classes

prepare:

compile:
[javac] Compiling 5 source files to
F:\ejb_dev\contrib\tomcat\build\classes
[javac] Modern compiler is not available - using classic compiler
[javac]
F:\ejb_dev\contrib\tomcat\src\main\org\jboss\test\tomcat\ejb\bean\StatelessS
essionBean.java:8: Package javax.ejb not found in import.
[javac] import javax.ejb.*;
[javac]^
[javac]
F:\ejb_dev\contrib\tomcat\src\main\org\jboss\test\tomcat\ejb\bean\StatelessS
essionBean.java:12: Interface org.jboss.test.tomcat.ejb.bean.SessionBean of
class org.jboss.test.tomcat.ejb.bean.StatelessSessionBean not found.
[javac] public class StatelessSessionBean implements SessionBean {

   . more of the same










RE: ***** URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST *****

2001-05-21 Thread Vollmer, Thomas - CannonSA

Laurence and others,

it is a little tricky to unsubscribe from tomcat-user
when you have changed your e-mail address and need to
use this

[EMAIL PROTECTED]

to unsubscribe. Some mail clients like MS-Outlook have
trouble with the equal-sign = in the recipients address.
Here's the e-mail header you sent. If you look closely at
the To: line, you will see what has happened:

 To: 'tomcat-user-unsubscribe-lmayer=' [EMAIL PROTECTED]

Your e-mail client has split the recipients address at the =
into the display name (tomcat-user-unsubscribe-lmayer=) and
the e-mail address ([EMAIL PROTECTED]).

Somehow you need to make sure that your e-mail client
really sends a message to

[EMAIL PROTECTED]

For MS-Outlook, the following has worked for me:
1. type the correct unsubscribe address into the To: field.
2. click outside of the To: field and watch Outlook convert
the address you typed into display name and e-mail address.
3. double click on the display name in the To: field, note
the wrong e-mail address in there and adjust the e-mail address
to the correct one.
4. done.

Hope that helps.

Thomas






 -Original Message-
 From: Laurence Mayer [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 21, 2001 9:24 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: * URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER 
 LIST *
 
 
 
 I have tried what you suggested, here is the error :
 
 Hi. This is the qmail-send program at apache.org.
 I'm afraid I wasn't able to deliver your message to the 
 following addresses.
 This is a permanent error; I've given up. Sorry it didn't work out.
 
 [EMAIL PROTECTED]:
 Sorry, no mailbox here by that name. (#5.1.1)
 
 --- Below this line is a copy of the message.
 
 Return-Path: [EMAIL PROTECTED]
 Received: (qmail 93559 invoked from network); 21 May 2001 
 14:43:22 -
 Received: from unknown (HELO jlm-exchange.yazam.com) (212.25.111.209)
   by h31.sny.collab.net with SMTP; 21 May 2001 14:43:22 -
 Received: by JLM-EXCHANGE with Internet Mail Service (5.5.2650.21)
   id K0LXY4KC; Mon, 21 May 2001 17:41:25 +0200
 Message-ID: A581F7261949D5118D7600062938CD4AC1D9@JLM-EXCHANGE
 From: Laurence Mayer [EMAIL PROTECTED]
 To: 'tomcat-user-unsubscribe-lmayer=' [EMAIL PROTECTED]
 Subject: 
 Date: Mon, 21 May 2001 17:41:21 +0200
 MIME-Version: 1.0
 X-Mailer: Internet Mail Service (5.5.2650.21)
 Content-Type: text/plain;
   charset=iso-8859-1
 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N

 
If this email is not intended for you, or you are not responsible for the
delivery of this message to the addressee, please note that this message may
contain ITT Privileged/Proprietary Information.  In such a case, you may not
copy or deliver this message to anyone.  You should destroy this message and
kindly notify the sender by reply email.  Information contained in this
message that does not relate to the business of ITT is neither endorsed by
nor attributable to ITT. 
 




Re: 3.2.1 Dies

2001-05-21 Thread Hunter Hillegas

Which log file would I look in?

servlet.log shows nothing, neither does jasper.log...

Hunter

 From: Srinadh Karumuri [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Mon, 21 May 2001 12:03:45 -0400
 To: [EMAIL PROTECTED], Tomcat User List
 [EMAIL PROTECTED]
 Subject: Re: 3.2.1 Dies
 
 Did you check the log files?
 This sounds like a OutOfMemoryError.
 
 You can increase the heap size while starting the tomcat.
 
 -Sri
 
 At 08:16 AM 05/21/2001 -0700, Hunter Hillegas wrote:
 I am running a high traffic site with Tomcat 3.2.1/Sun JVM 1.3/Linux
 2.4.4/Apache 1.3.19. After a few days of serving up the hits very well,
 Tomcat just dies. It won't respond to shutdown requests and stops serving
 pages, giving out only null pointer exceptions. Killing the java processes
 manually and restarting Tomcat clears it up.
 
 Anyone else seen this? Any idea how to work around it?
 
 Hunter




RE: Custom Tag Problem

2001-05-21 Thread Robert Petersen

I don't think your tag should compile because you can't have a getClass()
method.
Reason being that getClass() lives on java.lang.Object and is final, i.e.
you
can't override it.

- Robert Petersen
http://www.orangefood.com

-Original Message-
From: Kevin Long [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 8:43 AM
To: '[EMAIL PROTECTED]'
Subject: Custom Tag Problem



I'm using Tomcat 3.2.1.  I have a custom tag that has some standard HTML
attributes in the custom tag.  One of the attributes is called class.
When I try to load the JSP page that contains this tag with the attribute,
I'm getting a compile error.  Here is the stack trace:

org.apache.jasper.JasperException: Unable to compile class for JSP
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:476)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484

Thanks for any assistance!

Kevin Long
[EMAIL PROTECTED]




multiple instance of tomcat services

2001-05-21 Thread Vanclef Frederic

Hello,


I would like to run multiple instances of tomcat services. In fact one by
web site to avoid to disturb other developments on separate web site.  I am
using IIS and I am wondering how to configure server.xml, wrapper.properties
files and IIS  to be able to run the complete configuration. When I am using
one instance of tomcat it works properly but when I try to start two, the
IIS web site says that he didn't receive any response from tomcat. I am
pretty sure that the HTTP port has to be different but I am using 2
differents IP address and then why is it necessary to specify the different
ports maybe have you some examples of configuration, it will be helpfull.


Thank you very much


Frédéric Vanclef   



RE: Custom Tag Problem

2001-05-21 Thread Hawkins, Keith (Keith)
Title: RE: Custom Tag Problem






Are you running into a reserved word problem? Have you tried renaming the

attribute to something other than class? (I don't know much about custom

tags, so I am just going by a hunch here.)


-Original Message-

From: Kevin Long [mailto:[EMAIL PROTECTED]]

Sent: Monday, May 21, 2001 11:43 AM

To: '[EMAIL PROTECTED]'

Subject: Custom Tag Problem




I'm using Tomcat 3.2.1. I have a custom tag that has some standard HTML

attributes in the custom tag. One of the attributes is called class.

When I try to load the JSP page that contains this tag with the attribute,

I'm getting a compile error. Here is the stack trace:


org.apache.jasper.JasperException: Unable to compile class for JSP

 at

org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:476)

 at

org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)

 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)

 at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe

rvlet.java:152)

 at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja

va:164)

 at

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)

 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

 at

org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)

 at org.apache.tomcat.core.Handler.service(Handler.java:286)

 at

org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)

 at

org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79

7)

 at

org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)

 at

org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC

onnectionHandler.java:210)

 at

org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)

 at

org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)

 at java.lang.Thread.run(Thread.java:484


Thanks for any assistance!


Kevin Long

[EMAIL PROTECTED]





Re: RewritingURL with Tomcat3.2.1

2001-05-21 Thread Tim O'Neil

Anyone have any problems with Apache's mod re-write
and tomcat and ssl? Our web server seems to be completely
ignoring the mod re-write rules when in ssl mode...




RE: admin question

2001-05-21 Thread Venkatesh Sangam

Hi Randy,

How do u start a tomcat server using a Java program ??
How do I say Net Start service Name on the Dos Prompt
what is the service name to be specificed
If Not is ther any other method to start Tomcat using a Java program

thanks
Venkatesh


From: Randy Layman [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: admin question
Date: Mon, 21 May 2001 07:05:21 -0400



  -Original Message-
  From: Venkatesh Sangam [mailto:[EMAIL PROTECTED]]
  Sent: Friday, May 18, 2001 6:29 PM
  To: [EMAIL PROTECTED]
  Subject: RE: admin question
 
 
  hey the in second option what u suggested  ...
  did u mean that have an application running on the computer
  where the tomcat
  is installed ??
 
  If the tomcat server is physically not accessible then what to do ??

If, by not physically accessible I assume that you mean you can't
get to it to install software, write a servlet that will install things on
the server.  If you mean that you can't install software, then you are out
of luck and will have to rely on the network support of the people running
the computer to restart the service for you.
 
 
 
 
  From: Randy Layman [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: RE: admin question
  Date: Fri, 18 May 2001 16:08:52 -0400
 
 
   The problem with this is, how to you restart Tomcat?
 
   I see two basic choices:
   1.  Use some other package to remotely control the
  services.  This
  has been the methodology used here for 90% of our projects
   2.  Write an application that listens to a port for the
  startup/shutdown command.  I did this once and its not to big
  of a deal (but
  I can't give you the source).  The basic structure is:
   Get Server Socket
   Read a command (will block until command sent)
   Process command (some forethought here will make this
  easy to adapt
  to other projects)
   Repeat
 
   Really, not a lot to it, however if you get smart and
  start adding
  other features (like cleaning up log files while the service
  is down, doing
  multiple services in a particular order) it can get
  complicated and messy
  without forethought.
 
   Randy
 
-Original Message-
From: Mark Mynsted [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 3:31 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: admin question
   
   
Could you not create a servlet to run the following?
org.apache.tomcat.startup.Tomcat -stop
   
Sincerely yours;
   
Mark Mynsted
   
   
   
VHA Management Information Systems Client Services
[EMAIL PROTECTED]
(972) 830 - 0592, Internal x1592
   
 [EMAIL PROTECTED] 5/18/2001 2:26:14 PM 
is there any way to stop/restart the server remotely without telnet
access??  I know I can do a net stop jakarta and net start
jakarta.  Is
there any restart option on the admin console?  Has anyone
written a Java
utilility to do this?
   
Thanks,
   
Eric Lubin
[EMAIL PROTECTED]
   
   
 
  __
  ___
  Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: Editting server.xml with text editor

2001-05-21 Thread Beau Bisquette

Hi,

Don't know about OS X, but all the earlier Mac OSs use \r (0x0D) as the 
line terminator ... and do not see the Unix \n (0x0A).  Probably the file 
that appears correctly has \r\n pairs -- likely 'cause it came from a 
DOS/Windows box.

If you use BBEdit, I believe you can tell it that the file is from a Unix 
machine, and it will then understand the line terminators.

hth,

Beau.

At 05/21/2001 16:12 +0100, Harry Mantheakis wrote:

I am using Tomcat 4 b5 on a Mac OS X.
I can edit web.xml with my text editor, but not server.xml.
If I open server.xml in my text editor I get the following:

 usersa password driverClassName org.hsql.jdbcDriver driverName
jdbc:HypersonicSQL:database  mail.smtp.host localhost

If I use pico in tcsh then I can see everything and I can edit the file
normally.
I have downloaded T4 twice (b3 and b5) but the problem remains.
Does anyone know why I cannot use my text editor to edit server.xml?


Beau Bisquette
TPC Productions
Oakland, California




Re: 3.2.1 Dies

2001-05-21 Thread Srinadh Karumuri


- I am running the tomcat using 'nohup' (UNIX command) on Solaris. My
OutOfMemory errors were logged in nohup.log
- Also, I remember seeing that NullPointer error when the old Tomcat didn't
shutdown properly. I manually killed the old hanging java process using
'kill -9' and the new one is all set (no errors).

Hope this helps,
-Sri

At 10:20 AM 05/21/2001 -0700, Hunter Hillegas wrote:
Which log file would I look in?

servlet.log shows nothing, neither does jasper.log...

Hunter

 From: Srinadh Karumuri [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Mon, 21 May 2001 12:03:45 -0400
 To: [EMAIL PROTECTED], Tomcat User List
 [EMAIL PROTECTED]
 Subject: Re: 3.2.1 Dies
 
 Did you check the log files?
 This sounds like a OutOfMemoryError.
 
 You can increase the heap size while starting the tomcat.
 
 -Sri
 
 At 08:16 AM 05/21/2001 -0700, Hunter Hillegas wrote:
 I am running a high traffic site with Tomcat 3.2.1/Sun JVM 1.3/Linux
 2.4.4/Apache 1.3.19. After a few days of serving up the hits very well,
 Tomcat just dies. It won't respond to shutdown requests and stops serving
 pages, giving out only null pointer exceptions. Killing the java processes
 manually and restarting Tomcat clears it up.
 
 Anyone else seen this? Any idea how to work around it?
 
 Hunter


Srinadh Karumuri
Senior Programmer/Analyst
Business Apps.
BBN Technologies (Verizon)
Ph:(617)873-2841




Re: 3.2.1 Dies

2001-05-21 Thread Hunter Hillegas

What does running with nohup do for you?

I usually start Tomcat using tomcat.sh start and then just log out...

Hunter

 From: Srinadh Karumuri [EMAIL PROTECTED]
 Date: Mon, 21 May 2001 13:43:53 -0400
 To: Hunter Hillegas [EMAIL PROTECTED], Tomcat User List
 [EMAIL PROTECTED]
 Subject: Re: 3.2.1 Dies
 
 - I am running the tomcat using 'nohup' (UNIX command) on Solaris. My
 OutOfMemory errors were logged in nohup.log




Re: 3.2.1 Dies

2001-05-21 Thread Srinadh Karumuri

STDOUT  STDERR messages go to nohup.log. In your case you might be loosing
those messages as you logged off (they will be sent to /dev/null - trash).

Sri

At 10:54 AM 05/21/2001 -0700, Hunter Hillegas wrote:
What does running with nohup do for you?

I usually start Tomcat using tomcat.sh start and then just log out...

Hunter

 From: Srinadh Karumuri [EMAIL PROTECTED]
 Date: Mon, 21 May 2001 13:43:53 -0400
 To: Hunter Hillegas [EMAIL PROTECTED], Tomcat User List
 [EMAIL PROTECTED]
 Subject: Re: 3.2.1 Dies
 
 - I am running the tomcat using 'nohup' (UNIX command) on Solaris. My
 OutOfMemory errors were logged in nohup.log


Srinadh Karumuri
Senior Programmer/Analyst
Business Apps.
BBN Technologies (Verizon)
Ph:(617)873-2841




JServ 1.2 issue ...

2001-05-21 Thread Anil Kumar


I have configures Jserv bindaddress to an IP address . Still it looks at
localhost and give the following error...
[21/05/2001 12:49:56:511] (EMERGENCY) ajp12: can not connect to host
127.0.0.1:9878
[21/05/2001 12:49:56:512] (EMERGENCY) ajp12: connection fail
[21/05/2001 12:49:56:512] (ERROR) an error returned handling request
via protocol "ajpv12"
Some one can help?
Thanks in advance ...
Anil


Help Needed

2001-05-21 Thread Venkatesh Sangam

Hi,

can anyone please tell me what does embedding tomcat in an appl mean and how 
does it help
I am new to Tomcat..Please tell me
thanks
Venkatesh
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




mod_jk source available?

2001-05-21 Thread Ted Garrett

I'm running Suse Linux 7.1 on a SUN Ultra-2, and must compile my own
apache modules.  I have thus far been unable to find the source for mod_jk
in order to build it into my apache server.  This means that while I have
the whole shebang (tomcat, cocoon, jetspeed, etc.) running quite well on
their own, I cannot let the world at them through my webserver...

Any pointers?

---
Steele's Plagiarism of Somebody's Philosophy:
Everybody should believe in something -- I believe I'll have
   another drink.
---
Ted Garrett  (703)869-9994 Cell
Unix Systems Administrator   (703)498-3610 Home




Re: installation problems.

2001-05-21 Thread Aristide Aragon

Yes, ports smaller than 1024 are resticted but not to the root user.
Anyway I first tried with the config file as it came (with port 8080) and it didn't 
work, it gave the very same error.

Thanks

 My first suggestion would be that you use a different port than 88,
 (I remember something about ports lower than ~1000 being restricted use).
 Try using a port in the high end of the range, say above 8080.



 
 FATAL: configuration error
 java.lang.SecurityException: sealing violation
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:234)
 at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:120)
 at
 javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:117)
 at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:210)
 at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187)
 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
 
 What could that be?
 
 I changed the conf. file from port 8080 to port 88, but nothing other than
 that, and it did give the error before I changed that.
 I am starting tomcat as root on a Linux system using JDK 1.3, and the most
 recent versions of everything tomcat requires (actually I had to symlink
 directory jaxp-1.1 to jaxp-1.0.1 because it apparetnly is hardwired to that
 dir name.
 
 Any help would be appreciated.
 
 Aristide -hog



Tomcat 3.2.1 JSP compile problem - A quick look, please?

2001-05-21 Thread Bryan Connor

Thanks to anyone out there in the ether that responds...

Did my homework,  still can't figure it out...  After hours spinning through the 
archives of this mail forum, I have to break down and ask for help

I am trying to run a simple  login.jsp  from  
/opt/jakarta-tomcat-3.2.1/webapps/portal2
The URL would be like http://999.99.99.245:8080/portal2/logon.jsp  

Even the simplest Hello world.JSP yields the error below.  
I have re-installed Tomcat,  thrashed around with the /conf/server.xml,  sacrificed a 
chicken,  and still no luck

The weird thing is that I have another application defined in this Tomcat instance 
located at   
/opt/jakarta-tomcat-3.2.1/webapps/portal/servlet
If I address a URl like  http://999.99.99.245:8080/portal/servlet/logon.jsp  This 
works fine, the .JSP compiles clean and all is well.   

Any ideas?  


Error: 500
Location: /portal2/logon.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for 
JSP/opt/jakarta-tomcat-3.2.1/work/localhost_8080%2Fportal2/_0002flogon_0002ejsplogon_jsp_0.java:52:
 Incompatible type for =. Explicit cast needed to convert 
javax.servlet.http.HttpSession to HttpSession.
   session = pageContext.getSession();
   ^
1 error

   at java.lang.Throwable.fillInStackTrace(Native Method)
   at java.lang.Throwable.fillInStackTrace(Compiled Code)
   at java.lang.Throwable.(Compiled Code)
   at java.lang.Exception.(Compiled Code)
   at javax.servlet.ServletException.(ServletException.java:107)
   at org.apache.jasper.JasperException.(JasperException.java:73)
   at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
   at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
   at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
   at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
   at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152)
   at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
   at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
   at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
   at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
   at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
   at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
   at java.lang.Thread.run(Thread.java:479)


Environment
Tomcat  3.2.1   Binaries version
Solaris 8  (I think..)
Java  1.2
No Apache in the mix at all...yet!

2001-05-18 05:21:01 - ContextManager: Tomcat classpath = 
./../lib/ant.jar:./../lib/jasper.jar:./../lib/jaxp.jar:./../lib/parser.jar:./../lib/servlet.jar:./../lib/test:./../lib/webserver.jar:/usr/java1.2/lib/tools.jar:/usr/java1.2/lib/classes.zip:/opt/oracle/8.1.7/jdbc/lib/classes12.zip:/opt/jakarta-tomcat-3.2.1/webapps/portal/WEB-INF/classes

Thanks
Bryan Connor 
Consultant  (Pennsylvania, USA)






__
Get your own FREE, personal Netscape Webmail account today at 
http://webmail.netscape.com/



Re: Redhat 7.1 ApacheTomcat How-to (long)

2001-05-21 Thread Renato Salazar

Hello Neil,

I've tried what you recommend and everything works fine 
but I still have a little problem.
Apache and Tomcat work well but separately (not 
together).
 
I have two httpd.conf files, /etc/httpd/conf/httpd.conf 
and /APACHE_HOME/conf/httpd.conf. In the procedure 
you've sent, you said that we have to include 
mod_jk.conf in /etc/httpd/conf/httpd.conf but it doesn't 
work out to me (http://localhost/examples doesn't find 
the page, but http://localhost:8080/examples does).

Then I tried to do the same 
with /APACHE_HOME/conf/httpd.conf and I got the 
following message when Apache tried to start:

Syntax error on line 8 
of /usr/local/tomcat/conf/mod_jk.conf:
API module structure 'jk_module' in 
file /usr/lib/apache/mod_jk.so is garbled - perhaps this 
is not an Apache module DSO?

So Apache couldn´t start. When I cut that Include line 
from the /APACHE_HOME/conf/httpd.conf both, Apache and 
Tomcat start but still work separately.

I suppouse there is some kind of conflict between this 
two httpd.conf files, I'd had this problem before, do I 
have to rebuild the .so file??, what do you think??
Thanks in advance.

Renato

 I've finally managed to get apache/tomcat running 
successfully  on a redhat 
 7.1 box (with stock kernel). Since I've seen several 
posts asking about this 
 so I'll post a quick how-to.
 
 Install Sun's JavaTM 2 Standard Edition, 1.3.1 RC2 
 from: http://java.sun.com/j2se/1.3/download-linux.html
 
 Install tomcat (I used Jakarta-Tomcat 3.2.1) 
 Setup your classpaths, and environment in /etc/profile
 Here's mine:
 #Java Environment
 JAVA_HOME=/usr/local/java
 export JAVA_HOME
 
 #Tomcat Environment
 TOMCAT_HOME=/usr/local/tomcat
 export TOMCAT_HOME
 
 #Set Classpaths for java servlets
 
CLASSPATH=$TOMCAT_HOME/lib/servlet.jar:$JAVA_HOME/lib/:$T
OMCAT_HOME/lib:$TOMCAT_HOME/classes:.
 export CLASSPATH
 
 Create a directory named classes in your $TOMCAT_HOME 
directory
 
 Copy $JAVA_HOME/lib/tools.jar to $TOMCAT_HOME/classes
 
 Change to the $TOMCAT_HOME/classes directory
 
 Expand with the command jar xvf tools.jar
 
 Make sure you've added $TOMCAT_HOME/classes to you 
classpath as I did above
 
 You should be able to start tomcat as a stand alone 
server at this point by 
 running the startup.sh script in $TOMCAT_HOME/bin
 
 Test the server by connecting to http://localhost:8080
 
 Shutdown tomcat using the $TOMCAT_HOME/bin/shutdown.sh 
script
 
 If all works well all that remains is to integrate 
apache and tomcat
 ( if not figure out whats wrong with these 
directions ;-0 )
 
 Shutdown Apache
 
 Follow the instructions at: 
 http://jakarta.apache.org/tomcat/jakarta-
tomcat/src/doc/mod_jk-howto.html
 
 The only place I deviated from the instructions was:
 Move the original $TOMCAT_HOME/conf/mod_jk.conf to 
 $TOMCAT_HOME/conf/mod_jk.conf-orig as a backup
 
 Copy $TOMCAT_HOME/conf/mod_jk.conf -auto to 
$TOMCAT_HOME/conf/mod_jk.conf 
 
 Change the line -- LoadModule jk_module 
libexec/mod_jk.so 
 to read -- LoadModule 
jk_module /usr/lib/apache/mod_jk.so ( or wherever you 
 put it!)
 
 Add the following to your /etc/httpd/conf/httpd.conf:
 
#
##
 # 
#
 # Tomcat support  
#
 
#
##
 
 Include /usr/local/jakarta-tomcat-
3.2.1/conf/mod_jk.conf
 
 I also changed /etc/rc.d/init.d/httpd to start tomcat 
as well. Here's my 
 script:
 #!/bin/bash
 #
 # Startup script for the Apache Web Server
 # Modified to start apache with tomcat
 # by Neil Jolly [EMAIL PROTECTED]
 # chkconfig: - 85 15
 # description: Apache is a World Wide Web server.  It 
is used to serve \
 #HTML files and CGI.
 # processname: httpd
 # pidfile: /var/run/httpd.pid
 # config: /etc/httpd/conf/access.conf
 # config: /etc/httpd/conf/httpd.conf
 # config: /etc/httpd/conf/srm.conf
 
 # Set path for java and tomcat
 
 #Java Environment
 JAVA_HOME=/usr/local/java
 export JAVA_HOME
 
 #Tomcat Environment
 TOMCAT_HOME=/usr/local/tomcat
 export TOMCAT_HOME
 
CLASSPATH=$TOMCAT_HOME/lib/servlet.jar:$JAVA_HOME/lib/:$T
OMCAT_HOME/lib:$TOMCAT_HOME/classes:.
 export CLASSPATH
 
 # Source function library.
 . /etc/rc.d/init.d/functions
 
 # This will prevent initlog from swallowing up a pass-
phrase prompt.
 INITLOG_ARGS=
 
 # Source additional OPTIONS if we have them.
 if [ -f /etc/sysconfig/apache ] ; then
   . /etc/sysconfig/apache
 fi
 
 # Path to the httpd binary.
 httpd=/usr/sbin/httpd
 prog=httpd
 RETVAL=0
 
 # Change the major functions into functions.
 moduleargs() {
   moduledir=/usr/lib/apache
   moduleargs=`
   /usr/bin/find ${moduledir} -type f -perm -0100 -
name *.so | awk '{\
   gsub(.*/,);\
   gsub(^mod_,);\
   gsub(^lib,);\
   gsub(\.so$,);\
   print -DHAVE_ toupper($0)}'`
   echo 

Strange

2001-05-21 Thread Martin Mauri

Hi,

Why were mod_jk and Tomcat running ok, when I hadn't set up JkWorkersFile
directive in httpd.conf, isn't it necessary to run Apache integrated with
Tomcat?

regards.

m-

Lic. Martin O. Mauri
Profesion + Auge A.F.J.P
Parana 666 - Cap. Federal
TE: (011) 4373-7786/7 int: 422
[EMAIL PROTECTED]
www.profesi.com.ar




Re: Browser Closed

2001-05-21 Thread Alin Simionoiu

That was a solution that come in my mind also.
But, I don't think you need to build you're own time-out mechanism.
There already one in place.
If you register a SessionBinding listener, you can be notified on
valueUnbound when the session has expire.
I do some testing with the default value for session timeout ( which I think
is 30 sec.) and is working pretty good.
You can modify this value from tomcat setting or from you're code.

BTW, HttpSession has a method named  setMaxInactiveInterval which take as
input a int value.
The problem were is that his method is obsolete, and I think I read some
ware that it doesn't have a replacement...right?

Alin



- Original Message -
From: Devon Ziegler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 21, 2001 9:02 AM
Subject: RE: Browser Closed


 I ran into a similar problem.  The servlet sessions will timeout so the
user
 has to log in again, but that doesn't help with what you are talking about
 (which seems to be cleaning up things after a user has been inactive long
 enough).

 I basically created a context wide vector of user sessions (my own
notion
 of a session, not servlet's) that had inside it the last time a request
was
 received by that user.  Upon any request I update the list for the current
 request (setting the time of last request to now) and clean up any
 sessions that have gone beyond my timeout period (which is slightly
longer
 than my servlet session timeout period to be safe).  Admittedly this
cleanup
 will only happen if a request occurs after the user has been inactive long
 enough, but, for me, that was acceptable.

 HTH.  -Devon



 -Original Message-
 From: Alin Simionoiu [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 17, 2001 12:18 AM
 To: [EMAIL PROTECTED]
 Subject: Browser Closed


 Hello everybody,

 I'm implementing a login/logout from a web page.
 Everithing is absolutly fine if the user it's using my logout button.

 But, if the user just close the browser, without using the logout button,
 then I'm in trouble.
 Has anybody any ideea if is possible to know when a user close the
 browser?..

 I'm not using a keep-alive connection.
 Probably is not possible, considering that http is a stateless protocol.

 Alin





RE: Tomcat 3.2.1 JSP compile problem - A quick look, please?

2001-05-21 Thread Posey, Dan

Try this:


session = (HttpSession)pageContext.getSession();


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 11:29 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 3.2.1 JSP compile problem - A quick look, please?


Thanks to anyone out there in the ether that responds...

Did my homework,  still can't figure it out...  After hours spinning through
the archives of this mail forum, I have to break down and ask for help

I am trying to run a simple  login.jsp  from  
/opt/jakarta-tomcat-3.2.1/webapps/portal2
The URL would be like http://999.99.99.245:8080/portal2/logon.jsp  

Even the simplest Hello world.JSP yields the error below.  
I have re-installed Tomcat,  thrashed around with the /conf/server.xml,
sacrificed a chicken,  and still no luck

The weird thing is that I have another application defined in this Tomcat
instance located at   
/opt/jakarta-tomcat-3.2.1/webapps/portal/servlet
If I address a URl like  http://999.99.99.245:8080/portal/servlet/logon.jsp
This works fine, the .JSP compiles clean and all is well.   

Any ideas?  


Error: 500
Location: /portal2/logon.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for
JSP/opt/jakarta-tomcat-3.2.1/work/localhost_8080%2Fportal2/_0002flogon_0002e
jsplogon_jsp_0.java:52: Incompatible type for =. Explicit cast needed to
convert javax.servlet.http.HttpSession to HttpSession.
   session = pageContext.getSession();
   ^
1 error

   at java.lang.Throwable.fillInStackTrace(Native Method)
   at java.lang.Throwable.fillInStackTrace(Compiled Code)
   at java.lang.Throwable.(Compiled Code)
   at java.lang.Exception.(Compiled Code)
   at javax.servlet.ServletException.(ServletException.java:107)
   at org.apache.jasper.JasperException.(JasperException.java:73)
   at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
   at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
   at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
   at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
   at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
   at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
   at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
   at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
   at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
   at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
   at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
   at java.lang.Thread.run(Thread.java:479)


Environment
Tomcat  3.2.1   Binaries version
Solaris 8  (I think..)
Java  1.2
No Apache in the mix at all...yet!

2001-05-18 05:21:01 - ContextManager: Tomcat classpath =
./../lib/ant.jar:./../lib/jasper.jar:./../lib/jaxp.jar:./../lib/parser.jar:.
/../lib/servlet.jar:./../lib/test:./../lib/webserver.jar:/usr/java1.2/lib/to
ols.jar:/usr/java1.2/lib/classes.zip:/opt/oracle/8.1.7/jdbc/lib/classes12.zi
p:/opt/jakarta-tomcat-3.2.1/webapps/portal/WEB-INF/classes

Thanks
Bryan Connor 
Consultant  (Pennsylvania, USA)






__
Get your own FREE, personal Netscape Webmail account today at
http://webmail.netscape.com/



Re: 3.2.1 Dies

2001-05-21 Thread Tim O'Neil

At 10:54 AM 5/21/2001 -0700, you wrote:
What does running with nohup do for you?

I usually start Tomcat using tomcat.sh start and then just log out...

Me too. Nohup (no hangup) runs the command in an ingnore
hangup signal mode- not the same as a process fork. I think
the cmd runs as an orphaned process. If he runs it as nohup
cmd  that's pretty much what the tomcat startup script
does, minus the process env setup. Really he should use the
scripts. I'm guessing he's not using the  at the end of
the invocation, the os sees the process is orphaned after
a while, and kills it.





Re: Strange

2001-05-21 Thread Martin Mauri


forget about the last email


 Hi,
 
 Why were mod_jk and Tomcat running ok, when I hadn't set up JkWorkersFile
 directive in httpd.conf, isn't it necessary to run Apache integrated with
 Tomcat?
 
 regards.
 
 m-
 
 Lic. Martin O. Mauri
 Profesion + Auge A.F.J.P
 Parana 666 - Cap. Federal
 TE: (011) 4373-7786/7 int: 422
 [EMAIL PROTECTED]
 www.profesi.com.ar




RE: Browser Closed

2001-05-21 Thread Nael Mohammad

Talk to me about your other secrets, I do love the sounds of your laugh,
this Crazy Dog, is hungry now, so im getting a tuna sandwich for lunch
today, what do you think? Do you have any other things on your mind today
that I should no of? 

Oh well, it looks like 4 of the people who were from our company did not
show up after all yesterdays race,  I don't feel too bad now. 

What does Sylvia do with all her time during the day?

-Original Message-
From: Alin Simionoiu [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 11:42 AM
To: [EMAIL PROTECTED]
Subject: Re: Browser Closed


That was a solution that come in my mind also.
But, I don't think you need to build you're own time-out mechanism.
There already one in place.
If you register a SessionBinding listener, you can be notified on
valueUnbound when the session has expire.
I do some testing with the default value for session timeout ( which I think
is 30 sec.) and is working pretty good.
You can modify this value from tomcat setting or from you're code.

BTW, HttpSession has a method named  setMaxInactiveInterval which take as
input a int value.
The problem were is that his method is obsolete, and I think I read some
ware that it doesn't have a replacement...right?

Alin



- Original Message -
From: Devon Ziegler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 21, 2001 9:02 AM
Subject: RE: Browser Closed


 I ran into a similar problem.  The servlet sessions will timeout so the
user
 has to log in again, but that doesn't help with what you are talking about
 (which seems to be cleaning up things after a user has been inactive long
 enough).

 I basically created a context wide vector of user sessions (my own
notion
 of a session, not servlet's) that had inside it the last time a request
was
 received by that user.  Upon any request I update the list for the current
 request (setting the time of last request to now) and clean up any
 sessions that have gone beyond my timeout period (which is slightly
longer
 than my servlet session timeout period to be safe).  Admittedly this
cleanup
 will only happen if a request occurs after the user has been inactive long
 enough, but, for me, that was acceptable.

 HTH.  -Devon



 -Original Message-
 From: Alin Simionoiu [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 17, 2001 12:18 AM
 To: [EMAIL PROTECTED]
 Subject: Browser Closed


 Hello everybody,

 I'm implementing a login/logout from a web page.
 Everithing is absolutly fine if the user it's using my logout button.

 But, if the user just close the browser, without using the logout button,
 then I'm in trouble.
 Has anybody any ideea if is possible to know when a user close the
 browser?..

 I'm not using a keep-alive connection.
 Probably is not possible, considering that http is a stateless protocol.

 Alin




RE: Running Tomcat as an NT Service

2001-05-21 Thread Ronald G. Louzon

I have found my problem.  It was being caused by some classes being loaded
by the system class loader and other files being loaded by the servlet class
loader.

By adding the servlet jar files to wrapper.properties, they were being
loaded by the system class loader.  But, they could not find any of the
servlet supporting classes because these classes, which were in the classes
directory of the servlet's context, were being loaded by the servlet class
loader.  When I removed all of my entries from wrapper.properties and put
the jars into the lib directory under my servlet's context, everything
worked.  

- ron

-Original Message-
From: Hunor Nam [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 10:23 AM
To: [EMAIL PROTECTED]
Subject: RE: Running Tomcat as an NT Service


just make sure that your enviroment varibles are set for SYSTEM !!! not
for USER varables
Hades

-Original Message-
From: Ronald G. Louzon [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 3:35 PM
To: '[EMAIL PROTECTED]'
Subject: Running Tomcat as an NT Service


When running Tomcat as a Windows NT service, the NT wrapper
jk_nt_service.exe must be installed and run instead of using the startup
batch file.  It appears that the jk_nt_service application reads its
entire
configuration from the wrapper.properties file.  What this means is that
the
classes and jar files under WEB-INF/classes and WEB-INF/lib are not
automatically loaded for a servlet.  Instead, they must all be added
manually in the wrapper.properties file.

Has anyone else run Tomcat as an NT Service and seen this same
behaviour?
If this behaviour is correct, why is so much functionality lost when
running
with the wrapper service?

Thanks,
ron



RE: admin question

2001-05-21 Thread Randy Layman


Two thoughts come to my mind immediately:
1.  Use Runtime.exec to call tomcat.bat/sh - benefit of this is that
it lives in a separate OS thread and the starter can then be started/stopped
independent of Tomcat.  The downside is that the starter needs to know the
values (or how to find them) of Tomcat Home and Java Home.
2.  Call org.apacheTomcat.main passing the arguments that would
be set by tomcat.bat/sh.  The benefit of this is that the starter doesn't
need to know how to find the Tomcat/Java home variables.  The downside is
that the starter's JVM is now linked to Tomcat's (thus not allowing the
starter to be restarted without Tomcat, also the starter is tied to the
current method of invoking Tomcat, which could change in the future
releases.

Randy

 -Original Message-
 From: Venkatesh Sangam [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 21, 2001 1:41 PM
 To: [EMAIL PROTECTED]
 Subject: RE: admin question
 
 
 Hi Randy,
 
 How do u start a tomcat server using a Java program ??
 How do I say Net Start service Name on the Dos Prompt
 what is the service name to be specificed
 If Not is ther any other method to start Tomcat using a Java program
 
 thanks
 Venkatesh
 
 
 From: Randy Layman [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: admin question
 Date: Mon, 21 May 2001 07:05:21 -0400
 
 
 
   -Original Message-
   From: Venkatesh Sangam [mailto:[EMAIL PROTECTED]]
   Sent: Friday, May 18, 2001 6:29 PM
   To: [EMAIL PROTECTED]
   Subject: RE: admin question
  
  
   hey the in second option what u suggested  ...
   did u mean that have an application running on the computer
   where the tomcat
   is installed ??
  
   If the tomcat server is physically not accessible then 
 what to do ??
 
   If, by not physically accessible I assume that you mean 
 you can't
 get to it to install software, write a servlet that will 
 install things on
 the server.  If you mean that you can't install software, 
 then you are out
 of luck and will have to rely on the network support of the 
 people running
 the computer to restart the service for you.
  
  
  
  
   From: Randy Layman [EMAIL PROTECTED]
   Reply-To: [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject: RE: admin question
   Date: Fri, 18 May 2001 16:08:52 -0400
  
  
  The problem with this is, how to you restart Tomcat?
  
  I see two basic choices:
  1.  Use some other package to remotely control the
   services.  This
   has been the methodology used here for 90% of our projects
  2.  Write an application that listens to a port for the
   startup/shutdown command.  I did this once and its not to big
   of a deal (but
   I can't give you the source).  The basic structure is:
  Get Server Socket
  Read a command (will block until command sent)
  Process command (some forethought here will make this
   easy to adapt
   to other projects)
  Repeat
  
  Really, not a lot to it, however if you get smart and
   start adding
   other features (like cleaning up log files while the service
   is down, doing
   multiple services in a particular order) it can get
   complicated and messy
   without forethought.
  
  Randy
  
 -Original Message-
 From: Mark Mynsted [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 18, 2001 3:31 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: admin question


 Could you not create a servlet to run the following?
 org.apache.tomcat.startup.Tomcat -stop

 Sincerely yours;

 Mark Mynsted



 VHA Management Information Systems Client Services
 [EMAIL PROTECTED]
 (972) 830 - 0592, Internal x1592

  [EMAIL PROTECTED] 5/18/2001 2:26:14 PM 
 is there any way to stop/restart the server remotely 
 without telnet
 access??  I know I can do a net stop jakarta and net start
 jakarta.  Is
 there any restart option on the admin console?  Has anyone
 written a Java
 utilility to do this?

 Thanks,

 Eric Lubin
 [EMAIL PROTECTED]


  
   __
   ___
   Get Your Private, Free E-mail from MSN Hotmail at
 http://www.hotmail.com.
 
 __
 ___
 Get Your Private, Free E-mail from MSN Hotmail at 
http://www.hotmail.com.



RE: Custom Tag Problem

2001-05-21 Thread Kevin Long


It does appear to be a reserved word problem. However, I tried the same tag
in JRun and the attribute did not cause any problems.


-Original Message-
From: Hawkins, Keith (Keith)
To: [EMAIL PROTECTED]
Sent: 5/21/01 12:31 PM
Subject: RE: Custom Tag Problem

Are you running into a reserved word problem?  Have you tried renaming
the 
attribute to something other than class?  (I don't know much about
custom 
tags, so I am just going by a hunch here.) 

-Original Message- 
From: Kevin Long [ mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] ] 
Sent: Monday, May 21, 2001 11:43 AM 
To: '[EMAIL PROTECTED]' 
Subject: Custom Tag Problem 



I'm using Tomcat 3.2.1.  I have a custom tag that has some standard HTML

attributes in the custom tag.  One of the attributes is called class. 
When I try to load the JSP page that contains this tag with the
attribute, 
I'm getting a compile error.  Here is the stack trace: 

org.apache.jasper.JasperException: Unable to compile class for JSP 
at 
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:476) 
at 
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146
) 
at
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) 
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(J
spSe 
rvlet.java:152) 
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle
t.ja 
va:164) 
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)

at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)

at org.apache.tomcat.core.Handler.service(Handler.java:286) 
at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) 
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:79 
7) 
at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) 
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
ttpC 
onnectionHandler.java:210) 
at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
) 
at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:49
8) 
at java.lang.Thread.run(Thread.java:484 

Thanks for any assistance! 

Kevin Long 
[EMAIL PROTECTED] 




RE: Custom Tag Problem

2001-05-21 Thread Kevin Long


In order to compile a custom tag, you don't need a get accessor method (i.e.
getClass()).  You need to have the corresponding set method for each
attribute.  In this case, there is not a setClass() in Object.

-Original Message-
From: Robert Petersen
To: [EMAIL PROTECTED]
Sent: 5/21/01 12:27 PM
Subject: RE: Custom Tag Problem

I don't think your tag should compile because you can't have a
getClass()
method.
Reason being that getClass() lives on java.lang.Object and is final,
i.e.
you
can't override it.

- Robert Petersen
http://www.orangefood.com

-Original Message-
From: Kevin Long [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 8:43 AM
To: '[EMAIL PROTECTED]'
Subject: Custom Tag Problem



I'm using Tomcat 3.2.1.  I have a custom tag that has some standard HTML
attributes in the custom tag.  One of the attributes is called class.
When I try to load the JSP page that contains this tag with the
attribute,
I'm getting a compile error.  Here is the stack trace:

org.apache.jasper.JasperException: Unable to compile class for JSP
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:476)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146
)
at
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(J
spSe
rvlet.java:152)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle
t.ja
va:164)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
ttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:49
8)
at java.lang.Thread.run(Thread.java:484

Thanks for any assistance!

Kevin Long
[EMAIL PROTECTED]



Re: RE: Tomcat 3.2.1  JSP compile problem - A quick look, please?

2001-05-21 Thread Bryan Connor

Dan
I might have a too much info in my question,  down in the detail of the question,  I 
mention the compile error occurs on a simple .jsp.  Since the error happens when the 
.JSP is being compiled into a Servlet, and the 'JSP has no direct reference to 
pageContext.getSession().  I don't have any control over casting the object.  It is in 
the java that is generated for me when converting it into a Servlet.  Sincere thanks 
for looking at the issue.  Any other ideas?

bryan Connor



[EMAIL PROTECTED] wrote:

 Try this:
 
 
 session = (HttpSession)pageContext.getSession();
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 21, 2001 11:29 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 3.2.1 JSP compile problem - A quick look, please?
 
 
 Thanks to anyone out there in the ether that responds...
 
 Did my homework,  still can't figure it out...  After hours spinning through
 the archives of this mail forum, I have to break down and ask for help
 
 I am trying to run a simple  login.jsp  from  
 /opt/jakarta-tomcat-3.2.1/webapps/portal2
 The URL would be like http://999.99.99.245:8080/portal2/logon.jsp  
 
 Even the simplest Hello world    .JSP yields the error below.  
 I have re-installed Tomcat,  thrashed around with the /conf/server.xml,
 sacrificed a chicken,  and still no luck
 
 The weird thing is that I have another application defined in this Tomcat
 instance located at   
 /opt/jakarta-tomcat-3.2.1/webapps/portal/servlet    
 If I address a URl like  http://999.99.99.245:8080/portal/servlet/logon.jsp
 This works fine, the .JSP compiles clean and all is well.   
 
 Any ideas?  
 
 
 Error: 500
 Location: /portal2/logon.jsp
 Internal Servlet Error:
 org.apache.jasper.JasperException: Unable to compile class for
 JSP/opt/jakarta-tomcat-3.2.1/work/localhost_8080%2Fportal2/_0002flogon_0002e
 jsplogon_jsp_0.java:52: Incompatible type for =. Explicit cast needed to
 convert javax.servlet.http.HttpSession to HttpSession.
            session = pageContext.getSession();
                    ^
 1 error
 
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.(Compiled Code)
    at java.lang.Exception.(Compiled Code)
    at javax.servlet.ServletException.(ServletException.java:107)
    at org.apache.jasper.JasperException.(JasperException.java:73)
    at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
    at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
    at
 org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
    at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
    at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
 rvlet.java:152)
    at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
 va:164)
    at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
    at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
    at org.apache.tomcat.core.Handler.service(Handler.java:286)
    at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
    at
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
 7)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
    at
 org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
 onnectionHandler.java:210)
    at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
    at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
    at java.lang.Thread.run(Thread.java:479)
 
 
 Environment
 Tomcat  3.2.1   Binaries version
 Solaris 8  (I think..)
 Java  1.2
 No Apache in the mix at all...yet!
 
 2001-05-18 05:21:01 - ContextManager: Tomcat classpath =
 ./../lib/ant.jar:./../lib/jasper.jar:./../lib/jaxp.jar:./../lib/parser.jar:.
 /../lib/servlet.jar:./../lib/test:./../lib/webserver.jar:/usr/java1.2/lib/to
 ols.jar:/usr/java1.2/lib/classes.zip:/opt/oracle/8.1.7/jdbc/lib/classes12.zi
 p:/opt/jakarta-tomcat-3.2.1/webapps/portal/WEB-INF/classes
 
 Thanks
 Bryan Connor 
 Consultant  (Pennsylvania, USA)
 
 
 
 
 
 
 __
 Get your own FREE, personal Netscape Webmail account today at
 http://webmail.netscape.com/
 
__
Get your own FREE, personal Netscape Webmail account today at 
http://webmail.netscape.com/



Re: 3.2.1 Dies

2001-05-21 Thread Hunter Hillegas

Well, I am using the scripts and my Tomcat just dies after a few days of
heavy load...

We're talking hundreds of thousands of hits...

Any other ideas are appreciated. I'm tempted to try 3.2.2 but since this is
a production site, I'm a bit scared off by the beta status of the software.

Hunter

 From: Tim O'Neil [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Mon, 21 May 2001 12:18:52 -0700
 To: [EMAIL PROTECTED]
 Subject: Re: 3.2.1 Dies
 
 What does running with nohup do for you?
 
 I usually start Tomcat using tomcat.sh start and then just log out...
 
 Me too. Nohup (no hangup) runs the command in an ingnore
 hangup signal mode- not the same as a process fork. I think
 the cmd runs as an orphaned process. If he runs it as nohup
 cmd  that's pretty much what the tomcat startup script
 does, minus the process env setup. Really he should use the
 scripts. I'm guessing he's not using the  at the end of
 the invocation, the os sees the process is orphaned after
 a while, and kills it.




Re: 3.2.1 Dies

2001-05-21 Thread Boris Niyazov

Why use nohup if you can configure tomcat to log into a file?

Logger name=tc_log
path=logs/tomcat.log
verbosityLevel = DEBUG
/

*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 





STDOUT  STDERR messages go to nohup.log. In your case you might be loosing
those messages as you logged off (they will be sent to /dev/null - trash).

Sri

At 10:54 AM 05/21/2001 -0700, Hunter Hillegas wrote:
What does running with nohup do for you?

I usually start Tomcat using tomcat.sh start and then just log out...

Hunter

 From: Srinadh Karumuri [EMAIL PROTECTED]
 Date: Mon, 21 May 2001 13:43:53 -0400
 To: Hunter Hillegas [EMAIL PROTECTED], Tomcat User List
 [EMAIL PROTECTED]
 Subject: Re: 3.2.1 Dies
 
 - I am running the tomcat using 'nohup' (UNIX command) on Solaris. My
 OutOfMemory errors were logged in nohup.log


Srinadh Karumuri
Senior Programmer/Analyst
Business Apps.
BBN Technologies (Verizon)
Ph:(617)873-2841





RE: admin question

2001-05-21 Thread Venkatesh Sangam

Hi Randy.
I am actually trying to execute like this ..

Runtime rt = Runtime.getRuntime();
Process pc = null;
try{
  pc = rt.exec(D:\\Venky\\jakarta-tomcat-3.2.1\\bin\\Tomcat.bat);
   }
catch (Exception e) { System.out.println(Error Occered);}

But it is still not working ..
I  have no idea as to what the problem is ..
if there is any mistake in this please let me know
thanks
Venkatesh


From: Randy Layman [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: admin question
Date: Mon, 21 May 2001 14:54:39 -0400


Two thoughts come to my mind immediately:
1.  Use Runtime.exec to call tomcat.bat/sh - benefit of this is that
it lives in a separate OS thread and the starter can then be started/stopped
independent of Tomcat.  The downside is that the starter needs to know the
values (or how to find them) of Tomcat Home and Java Home.
2.  Call org.apacheTomcat.main passing the arguments that would
be set by tomcat.bat/sh.  The benefit of this is that the starter doesn't
need to know how to find the Tomcat/Java home variables.  The downside is
that the starter's JVM is now linked to Tomcat's (thus not allowing the
starter to be restarted without Tomcat, also the starter is tied to the
current method of invoking Tomcat, which could change in the future
releases.

Randy

  -Original Message-
  From: Venkatesh Sangam [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 21, 2001 1:41 PM
  To: [EMAIL PROTECTED]
  Subject: RE: admin question
 
 
  Hi Randy,
 
  How do u start a tomcat server using a Java program ??
  How do I say Net Start service Name on the Dos Prompt
  what is the service name to be specificed
  If Not is ther any other method to start Tomcat using a Java program
 
  thanks
  Venkatesh
 
 
  From: Randy Layman [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: RE: admin question
  Date: Mon, 21 May 2001 07:05:21 -0400
 
 
 
-Original Message-
From: Venkatesh Sangam [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 6:29 PM
To: [EMAIL PROTECTED]
Subject: RE: admin question
   
   
hey the in second option what u suggested  ...
did u mean that have an application running on the computer
where the tomcat
is installed ??
   
If the tomcat server is physically not accessible then
  what to do ??
 
   If, by not physically accessible I assume that you mean
  you can't
  get to it to install software, write a servlet that will
  install things on
  the server.  If you mean that you can't install software,
  then you are out
  of luck and will have to rely on the network support of the
  people running
  the computer to restart the service for you.
   
   
   
   
From: Randy Layman [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: admin question
Date: Fri, 18 May 2001 16:08:52 -0400
   
   
  The problem with this is, how to you restart Tomcat?
   
  I see two basic choices:
  1.  Use some other package to remotely control the
services.  This
has been the methodology used here for 90% of our projects
  2.  Write an application that listens to a port for the
startup/shutdown command.  I did this once and its not to big
of a deal (but
I can't give you the source).  The basic structure is:
  Get Server Socket
  Read a command (will block until command sent)
  Process command (some forethought here will make this
easy to adapt
to other projects)
  Repeat
   
  Really, not a lot to it, however if you get smart and
start adding
other features (like cleaning up log files while the service
is down, doing
multiple services in a particular order) it can get
complicated and messy
without forethought.
   
  Randy
   
  -Original Message-
  From: Mark Mynsted [mailto:[EMAIL PROTECTED]]
  Sent: Friday, May 18, 2001 3:31 PM
  To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Subject: Re: admin question
 
 
  Could you not create a servlet to run the following?
  org.apache.tomcat.startup.Tomcat -stop
 
  Sincerely yours;
 
  Mark Mynsted
 
 
 
  VHA Management Information Systems Client Services
  [EMAIL PROTECTED]
  (972) 830 - 0592, Internal x1592
 
   [EMAIL PROTECTED] 5/18/2001 2:26:14 PM 
  is there any way to stop/restart the server remotely
  without telnet
  access??  I know I can do a net stop jakarta and net start
  jakarta.  Is
  there any restart option on the admin console?  Has anyone
  written a Java
  utilility to do this?
 
  Thanks,
 
  Eric Lubin
  [EMAIL PROTECTED]
 
 
   
__
___
Get Your Private, Free E-mail from MSN Hotmail at
  http://www.hotmail.com.
 
  

Re: RewritingURL with Tomcat3.2.1

2001-05-21 Thread Jan Labanowski



On Mon, 21 May 2001, Tim O'Neil wrote:

 Anyone have any problems with Apache's mod re-write
 and tomcat and ssl? Our web server seems to be completely
 ignoring the mod re-write rules when in ssl mode...
 

Make sure that your rewrite rules are within the SSL virtual server block.
VirtualHost _default_:443
..
IfModule mod_rewrite.c
 RewriteEngine On
 RewriteLog /usr/local/apache_1.3.14/logs/rewrite_log
 RewriteLogLevel 1
 RewriteRule ^/ROOT/examples /examples [R]
   
/IfModule

/VirtualHost

Make sure that your  modules are in the following order in httpd.conf

LoadModule jk_module  libexec/mod_jk.so
 
LoadModule rewrite_module libexec/mod_rewrite.so
 
LoadModule ssl_module libexec/libssl.so
 
AddModule mod_jk.c
 
AddModule mod_rewrite.c
 
AddModule mod_ssl.c

Make sure that you do not have the AddModule mod_jk.c and LoadModule jk_module
in the mod_jk.conf file which you include at the end





Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/




Re: Editing server.xml with text editor

2001-05-21 Thread Harry Mantheakis


Beau

Thanks for that. I tried CodeWarrior and it worked :-)

 Don't know about OS X, but all the earlier Mac OSs use \r (0x0D) as the
 line terminator ... and do not see the Unix \n (0x0A).  Probably the file
 that appears correctly has \r\n pairs -- likely 'cause it came from a
 DOS/Windows box.
 
 If you use BBEdit, I believe you can tell it that the file is from a Unix
 machine, and it will then understand the line terminators.

 I am using Tomcat 4 b5 on a Mac OS X.
 I can edit web.xml with my text editor, but not server.xml.
 If I open server.xml in my text editor I get the following:
 
  usersa password driverClassName org.hsql.jdbcDriver driverName
 jdbc:HypersonicSQL:database  mail.smtp.host localhost
 
 If I use pico in tcsh then I can see everything and I can edit the file
 normally.
 I have downloaded T4 twice (b3 and b5) but the problem remains.
 Does anyone know why I cannot use my text editor to edit server.xml?




  1   2   >