Re: Can't happen - classname is null, who added this ?

2001-11-02 Thread Sriram Narayanan

This happens when you make any changes to some servlets, and then access those 
servlets.

I see this in tomcat 3.2.3

Sriram




_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: TC4, mod_webapp, WebAppDeploy, Path to webapp

2001-11-02 Thread Christian Gothe

Hi Pier,

thanks for your help!

>
>BTW, there's a bug in the code distributed with TC4.0.1, make sure you get a
>nightly snapshot from http://nagoya.apache.org/~pier/
>

Is there a binary available? Because I cannot find the "apxs" for 
apache, so I cant compile the module. The reason is the RPM install, I 
think so...

>
>Pier
>
Christian



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




sql exception..

2001-11-02 Thread naveen

hi all,
What does this exception mean, I am using Tomcat 3.2.3. and postgres 7.1.2,
Well I havent put my server on the net as yet, so there is no question of
too many connections. Can anybody tell me where I am going wrong, or what
should I do to set this right...


SQL Exception : Something unusual has occured to cause the driver to fail.
Please report this exception: Exception: java.sql.SQLException: Sorry, too
many clients already


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: sql exception..

2001-11-02 Thread Mark Muffett

It could be that your servlets are not releasing connections, or just that
too many of them are trying to open them - are you using connection pooling?

Have a look at the number of connections (ps aux | grep postgres will work
on Unix / Linux, I don't know about Windows).

The default limit on connections to postgres is quite small and I have found
that I've had to increase it to run it sensibly with Tomcat.

Mark

- Original Message -
From: "naveen" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, November 02, 2001 9:03 AM
Subject: sql exception..


> hi all,
> What does this exception mean, I am using Tomcat 3.2.3. and postgres
7.1.2,
> Well I havent put my server on the net as yet, so there is no question of
> too many connections. Can anybody tell me where I am going wrong, or what
> should I do to set this right...
>
>
> SQL Exception : Something unusual has occured to cause the driver to fail.
> Please report this exception: Exception: java.sql.SQLException: Sorry, too
> many clients already
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Come and get mod_webapp.dll

2001-11-02 Thread fui koon

i want it. thanks

[EMAIL PROTECTED]

 --- David Oxley <[EMAIL PROTECTED]> wrote: >
All,
> 
> I have compiled up mod_webapp.dll and it works quite
> nicely. If you would
> like it reply TO THE LIST with your Email address I
> will send it to you. It
> is too big for the list. I have created a Visual
> Studio dsp file to do the
> compile and I will submit it shortly for check in.
> 
> Dave. 


Nokia Game is on again. 
Go to http://uk.yahoo.com/nokiagame/ and join the new
all media adventure before November 3rd.

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: TC4, mod_webapp, WebAppDeploy, Path to webapp

2001-11-02 Thread Christian Gothe

Hi Pier,

Log:

2001-11-02 11:31:58 
[org.apache.catalina.connector.warp.WarpConfigurationHandler] Cannot 
find "/var/tomcat4/webapps/home//html" for appl. 
"/home//html" host ".localdomain"

httpd.conf:

">
DocumentRoot /home//html
ServerName .localdomain

WebAppConnection  conn  warp  localhost:8008
WebAppDeploy  /home//html conn  /




What shall I do now? I have no clue...

Tanks a lot,.
Christian


Pier Fumagalli wrote:

>Christian Gothe at [EMAIL PROTECTED] wrote:
>
>>Hi!
>>
>>I seems to me that an application given in the "application name" parameter of
>>"WebAppDeploy" must be located in tomcat's webapps directory.
>>But, how can I use a absolut path in my filesystem instead?
>>
>>Example:
>>
>>WebAppDeploy examples  conn  /examples/
>>
>>/examples/ must be in TOMCAT_HOME/webapps!
>>
>>What I would like to have:
>>
>>WebAppDeploy examples  conn  /home//html
>>
>>The "WEB-INF" directory is below "html".
>>
>>
>>My workaround is to set a symbolic link in the "webapps" dir. but that isn't
>>what I want. ;-) I like to configure all webapps in httpd.conf
>>
>>Thanks for all answers,
>>
>
>It's all the way around... It's
>WebAppDeploy //home//html conn /xxx/
>
>Where "//home//html" is the directory on the disk where your
>web-application resides, and /xxx/ is the URL path that you will have to put
>after your http://myserver/... In your browser's URL (such as
>http://server/xxx/ to access the webapp in //home//html on disk)
>
>BTW, there's a bug in the code distributed with TC4.0.1, make sure you get a
>nightly snapshot from http://nagoya.apache.org/~pier/
>
>Pier
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Filters in Tomcat 4.0

2001-11-02 Thread =?646?q?Christoph_Sch=3Fnfeld?=

Donie,

perhaps you have some initialization code in the doFilter method? That would explain 
why the first request does not do what it should but all the subsequent runs do.
Check that all initialization code is in the constructor and/or in init(FilterConfig) 
method of your filter.

Christoph
---
This message has been posted through the Jakarta Tomcat 4.0 F.A.Q.
on line forum, and can be seen at:

For more informations about the on-line Jakarta forums, please go to:

---

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




[TOMCAT] Conflicts between more daemons

2001-11-02 Thread Stefano Unternaehrer


Hello.

We have an HP webserver running HP-UX 11.0, with 3 tomcat 
distributions installed, for different projects. 
One is v. 3.2.1, two are v. 3.2.3. 

I configured all server.xml files with different ports 
(8080, 8081, 8082) and started the daemons, and all _seems_ 
to works fine. All tomcats runs with the same JAVA_HOME but 
different TOMCAT_HOME .

Unfortunately, when 2nd and 3rd tomcat starts, we receive 
following output:

  FATAL:java.net.BindException: Address already in use

I saw something related to this in the mailinglist archive,
but didn't find a solution.
Moreover, all 3 tomcat distributions create work dirs with 
name starting with "localhost_8080".

It arrives that when we kill just one tomcat, others tomcat 
are also killed or doesn't respond anymore.

Is there a way to solve this conflicts? Thank you for any hints.
Best regards,
Stefano
-- 
 Sometimes it pays to stay in bed on Monday, rather than spending the 
 rest of the week debugging the Monday's code.  -- Dan Salmon
__
*** HP9000 L2000-36/A500-44 ** HP-UX 11.0 U 64bits ** Oracle 7.3.4 ***
--
Stefano UnternaehrerInformatico Sbt - DBA/SysAdmin
Sistema bibliotecario ticinese c/o Biblioteca Cantonale Bellinzona
Viale Stefano Franscini 30a6501 Bellinzona  Ticino Switzerland
voice +41 (0)91 814 15 13paper +41 (0)91 814 15 09
mailto:[EMAIL PROTECTED]  homepage: http://www.sbt.ti.ch/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AW: [TOMCAT] Conflicts between more daemons

2001-11-02 Thread Ralph Einfeldt

Each tomcat has by default to ports:
  - One to connect to the web (default: 8080)
  - One to receive the shutdown command (default: 8007 (not shure))

It looks like you have just made the first port unique.
You also have to assign unique port numbers for the
second port.

> -Ursprüngliche Nachricht-
> Von: Stefano Unternaehrer [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 2. November 2001 11:03
> An: TomCat Maillist
> Cc: Martinetti, Michela; Robertini, Marco
> Betreff: [TOMCAT] Conflicts between more daemons
> 
> 
> 
> Hello.
> 
> We have an HP webserver running HP-UX 11.0, with 3 tomcat 
> distributions installed, for different projects. 
> One is v. 3.2.1, two are v. 3.2.3. 
> 
> I configured all server.xml files with different ports 
> (8080, 8081, 8082) and started the daemons, and all _seems_ 
> to works fine. All tomcats runs with the same JAVA_HOME but 
> different TOMCAT_HOME .
> 
> Unfortunately, when 2nd and 3rd tomcat starts, we receive 
> following output:
> 
>   FATAL:java.net.BindException: Address already in use
> 
> I saw something related to this in the mailinglist archive,
> but didn't find a solution.
> Moreover, all 3 tomcat distributions create work dirs with 
> name starting with "localhost_8080".
> 
> It arrives that when we kill just one tomcat, others tomcat 
> are also killed or doesn't respond anymore.
> 
> Is there a way to solve this conflicts? Thank you for any hints.
> Best regards,
> Stefano
> -- 
>  Sometimes it pays to stay in bed on Monday, rather than spending the 
>  rest of the week debugging the Monday's code.  -- Dan Salmon
> __
> *** HP9000 L2000-36/A500-44 ** HP-UX 11.0 U 64bits ** Oracle 7.3.4 ***
> --
> Stefano UnternaehrerInformatico Sbt - DBA/SysAdmin
> Sistema bibliotecario ticinese c/o Biblioteca Cantonale Bellinzona
> Viale Stefano Franscini 30a6501 Bellinzona  Ticino Switzerland
> voice +41 (0)91 814 15 13paper +41 (0)91 814 15 09
> mailto:[EMAIL PROTECTED]  homepage: http://www.sbt.ti.ch/
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat 4.0.1 + Apache 1.3.22

2001-11-02 Thread Xavier NOPRE

Hi all,

I am desparate. I am trying to install tomcat running under apache. I have
search the WEB but I did not found any complete documentation.

The informations of what I have done are above:
- what is missing or wrong ?
- is the test URL correct ?
- What do I have to start first : apache or tomcat ?
- Do tomcat start the standalone service ?

Thanks for any help
Xavier


-
Informations:

- Windows NT 4
- Apache 1.3.22
- Tomcat 4.0.1
- webapp module downloaded
(http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/win3
2/webapp-module-1.0-tc40-windows.zip)
- libapr.dll and mod_webapp.so extracted in /apache/modules
- for apache, httpd.conf updated:
- after "#LoadModule" list, I have added the folowwing line:

LoadModule webapp_module modules/mod_webapp.so

- after the "AddModule" list, I have added the folowwing line (without
this line I have an error message):

AddModule   mod_webapp.c

- after section "", I have added the following
lines:

WebAppConnection conn  warp  localhost:8008
WebAppDeploy examples  conn  /examples
WebAppInfo   /webapp-info

- I have tried to replace the second line with the following:

WebAppDeploy examples  conn  "C:\Program Files\Apache Tomcat
4.0\webapps\example"

- I have changed nothin in the configuration of Tomcat, the file server.xml
containing a section ""
- I start tomcat, the output is :

Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Starting service Tomcat-Apache
Apache Tomcat/4.0.1

- I start apache
- I try : http://localhost/ : I get the apache test page
- I try : http://localhost/examples/ : error 404



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Can't happen - classname is null, who added this ?

2001-11-02 Thread James, Stuart

I get this error if i change/recompiled a class in web-inf/classes without
bouncing tomcat.
 

-Original Message-
From: Voon, Wendy [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 6:03 AM
To: '[EMAIL PROTECTED]'
Subject: Can't happen - classname is null, who added this ?


Hi,

I am running TC 3.2.3

I am getting a weird error, does anyone know what this means?

Internal Servlet Error:
java.lang.IllegalStateException: Can't happen - classname is null, who added
this ?

Cheers in advance,
Wendy Voon
Consultant
Black Diamond
T e c h n o l o g i e s
Level 1, 6 Riverside Quay,
Southbank, Victoria, 3006.
E-mail: [EMAIL PROTECTED]
Telephone: (03) 9698 - 7600
Facsimile: (03) 9698 - 7666
Web: http://www.bdt.com.au/ 

---INTERNET E-MAIL CONFIDENTIALITY/DISCLAIMER

Privileged and confidential information may be contained in this e-mail.  If
you are not the intended recipient of this communication please delete and
destroy all copies and kindly notify the sender by return e-mail.
Recipients of this e-mail must not use, disclose or forward any information
or attachments without express permission from Black Diamond Technologies. 

Any views expressed in this communication are those of the individual sender
except where the sender specifically states them to be the views of Black
Diamond Technologies.  Except as required at law, we do not represent
warrant and/or guarantee that the integrity of this communication has been
maintained or that it is free of errors, viruses, interception or
interference.




___
Email Disclaimer

This communication is for the attention of the
named recipient only and should not be passed
on to any other person. Information relating to
any company or security, is for information
purposes only and should not be interpreted as
a solicitation or offer to buy or sell any security.
The information on which this communication is based
has been obtained from sources we believe to be reliable,
but we do not guarantee its accuracy or completeness.
All expressions of opinion are subject to change
without notice.  All e-mail messages, and associated attachments,
are subject to interception and monitoring for lawful business purposes.
___

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Tomcat 4.0.1 + Apache 1.3.22

2001-11-02 Thread Xavier NOPRE

In fact, it is running. Tomcat must be started before apache. BUT:
- http://localhost/examples/ : I can see the index of the directory
- http://localhost/examples/jsp/ : I can see the page index.html with the
different JSP examples
- http://localhost/examples/jsp/num/numguess.jsp : the browser is blocked,
with the wait cursor

I can stop Tomcat, but I cannot stop apache who is running with full CPU


Any idea ?

Xavier

- Original Message -
From: Xavier NOPRE <[EMAIL PROTECTED]>
To: Mailing list Tomcat-User <[EMAIL PROTECTED]>
Sent: Friday, November 02, 2001 11:58 AM
Subject: Tomcat 4.0.1 + Apache 1.3.22


> Hi all,
>
> I am desparate. I am trying to install tomcat running under apache. I have
> search the WEB but I did not found any complete documentation.
>
> The informations of what I have done are above:
> - what is missing or wrong ?
> - is the test URL correct ?
> - What do I have to start first : apache or tomcat ?
> - Do tomcat start the standalone service ?
>
> Thanks for any help
> Xavier
>
>
> -
> Informations:
>
> - Windows NT 4
> - Apache 1.3.22
> - Tomcat 4.0.1
> - webapp module downloaded
>
(http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/win3
> 2/webapp-module-1.0-tc40-windows.zip)
> - libapr.dll and mod_webapp.so extracted in /apache/modules
> - for apache, httpd.conf updated:
> - after "#LoadModule" list, I have added the folowwing line:
>
> LoadModule webapp_module modules/mod_webapp.so
>
> - after the "AddModule" list, I have added the folowwing line (without
> this line I have an error message):
>
> AddModule   mod_webapp.c
>
> - after section "", I have added the
following
> lines:
>
> WebAppConnection conn  warp  localhost:8008
> WebAppDeploy examples  conn  /examples
> WebAppInfo   /webapp-info
>
> - I have tried to replace the second line with the following:
>
> WebAppDeploy examples  conn  "C:\Program Files\Apache Tomcat
> 4.0\webapps\example"
>
> - I have changed nothin in the configuration of Tomcat, the file
server.xml
> containing a section ""
> - I start tomcat, the output is :
>
> Starting service Tomcat-Standalone
> Apache Tomcat/4.0.1
> Starting service Tomcat-Apache
> Apache Tomcat/4.0.1
>
> - I start apache
> - I try : http://localhost/ : I get the apache test page
> - I try : http://localhost/examples/ : error 404
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Can't happen - classname is null, who added this ?

2001-11-02 Thread Erwin Ambrosch

I got the same message several times when I recompiled an already 
deployed web-app and configured tomcat to reload recompiled classes 
dynamically.

Erwin

Micael Padraig Og mac Grene wrote:

> Usually happens when you add something to a web container run in conjunction
> with a JBoss application server without bouncing JBoss.  Did you do that?
> 
> 
> -Original Message-
> From: Voon, Wendy <[EMAIL PROTECTED]>
> To: '[EMAIL PROTECTED]' <[EMAIL PROTECTED]>
> Date: Thursday, November 01, 2001 9:58 PM
> Subject: Can't happen - classname is null, who added this ?
> 
> 
> 
>>Hi,
>>
>>I am running TC 3.2.3
>>
>>I am getting a weird error, does anyone know what this means?
>>
>>Internal Servlet Error:
>>java.lang.IllegalStateException: Can't happen - classname is null, who
>>
> added
> 
>>this ?
>>
>>Cheers in advance,
>>Wendy Voon
>>Consultant
>>Black Diamond
>>T e c h n o l o g i e s
>>Level 1, 6 Riverside Quay,
>>Southbank, Victoria, 3006.
>>E-mail: [EMAIL PROTECTED]
>>Telephone: (03) 9698 - 7600
>>Facsimile: (03) 9698 - 7666
>>Web: http://www.bdt.com.au/
>>
>>---INTERNET E-MAIL CONFIDENTIALITY/DISCLAIMER
>>
>>Privileged and confidential information may be contained in this e-mail.
>>
> If
> 
>>you are not the intended recipient of this communication please delete and
>>destroy all copies and kindly notify the sender by return e-mail.
>>Recipients of this e-mail must not use, disclose or forward any information
>>or attachments without express permission from Black Diamond Technologies.
>>
>>Any views expressed in this communication are those of the individual
>>
> sender
> 
>>except where the sender specifically states them to be the views of Black
>>Diamond Technologies.  Except as required at law, we do not represent
>>warrant and/or guarantee that the integrity of this communication has been
>>maintained or that it is free of errors, viruses, interception or
>>interference.
>>
>>
>>
>>
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 


-- 
Mit freundlichen Grüssen

Erwin Ambrosch

== e-business for e-people ===
   DI(FH) Erwin Ambrosch
   ebutec business solutions

  email:mailto:[EMAIL PROTECTED]
  web:  http://www.ebutec.at

A - 9020 Klagenfurt == Peter Mitterhofergasse 33
   tel: +43-(0)463-429429-200
   fax: +43-(0)463-429429-9

==
Zur Information: Das Unternehmen 2A DTR-Services
wurde mit Wirkung vom 1. September 2001 in die
ebutec business solutions oeg umfirmiert.
 ebutec business solutions ===



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




ajp13 problems (IIS and TC 4.0)

2001-11-02 Thread Marcel Stoer

Hi all

I've successfully set up TC 4.0 to work with IIS 5.0 as an NT service. Most
of times all works fine and requests are being transfered to TC via IIS.
However, from time to time jsp pages or servlets are not being displayed. My
browser gives me a page not found message. If I request the URL a second
time the request is successful. My logs tell me that I'm having a problem
with socket timeouts. Where are those timeout settings deployed?

catalina log
===
2001-11-02 13:54:58 Ajp13Processor[8009][4] process:
ajp13.receiveNextRequest
java.net.SocketTimeoutException: Read timed out
 at java.net.SocketInputStream.socketRead0(Native Method)
 at java.net.SocketInputStream.read(Unknown Source)
 at org.apache.ajp.Ajp13.readN(Ajp13.java:849)
 at org.apache.ajp.Ajp13.receive(Ajp13.java:889)
 at org.apache.ajp.Ajp13.receiveNextRequest(Ajp13.java:285)
 at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:339)
 at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424)
 at java.lang.Thread.run(Unknown Source)

isapi log
===
[jk_ajp13_worker.c (204)]: connection_tcp_get_message: Error -
jk_tcp_socket_recvfull failed
[jk_ajp13_worker.c (622)]: Error reading request
[jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed
[jk_ajp13_worker.c (609)]: Error sending request body
[jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Classpath problem with TC 3.2.3

2001-11-02 Thread Larry Isaacs

With ODBCConnection in the dbcall package, you should be able
to use <%@ page ... import="dbcall.ODBCConnection" ... %>, or
"dbcall.ODBCConnection" as a fully qualified class name
where needed.  I assume the ODBCConnection class file is
in the "WEB-INF/classes/dbcall" directory, or is it in a 
jar?  If it isn't working, what error are you seeing?

Larry

> -Original Message-
> From: Voon, Wendy [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 01, 2001 7:37 PM
> To: 'Tomcat Users List'
> Subject: RE: Classpath problem with TC 3.2.3
> 
> 
> Larry,
> 
> Thanks for the tip, I got it to work by putting the 
> ODBCConnection class in
> the package jsp.dbcall, whilst the jsp page resides in jsp/dbcall.
> 
> But now I am very confused, according to what you have said 
> in your email:
> 
>   If I place the ODBConnection class in package dbcall 
> and my jsp page
> resides in jsp/dbcall I should be able to reference ODBCConnection as
> dbcall.ODBCConnection.  But I couldn't.
> 
> Could it be the fact that I am importing the class like so:
> import="dbcall.ODBCConnection" 
> as opposed to using a bean:  class="cal.TableBean" />
> 
> Confused,
> Wendy
> 
> 
> > -Original Message-
> > From:   Larry Isaacs [SMTP:[EMAIL PROTECTED]]
> > Sent:   Wednesday, 31 October 2001 23:51
> > To: 'Tomcat Users List'
> > Subject:RE: Classpath problem with TC 3.2.3
> > 
> > It looks like the JSP you are executing is in a "jsp"
> > subdirectory of the web application.  If you check the Java
> > source for the JSP under the "work" directory you will find
> > that the servlet class for this JSP is in the "jsp"
> > package.  This means that classes specified without
> > package names will be expected to be found in the "jsp"
> > package.
> > 
> > Since ODBCConnection isn't in the "jsp" package it isn't
> > found.  If this JSP page is moved to the root of the
> > web application you wouldn't see this error since
> > the servlet class for the jsp wouldn't be in a package.
> > However, this isn't the correct solution for this
> > problem.  The correct solution is to *always* put
> > classes, like ODBCConnection, in a package so the package
> > the JSP servlet gets put in won't matter.
> > 
> > Hopefully this is what is causing your problem.
> > 
> > Cheers,
> > Larry
> > 
> > 
> > > -Original Message-
> > > From: Voon, Wendy [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, October 30, 2001 5:29 PM
> > > To: '[EMAIL PROTECTED]'
> > > Subject: Classpath problem with TC 3.2.3
> > > 
> > > 
> > > 
> > > 
> > > Hi,
> > > 
> > > I have installed TC 3.2.3.
> > > 
> > > When I try to execute a .jsp I get the following message:
> > > org.apache.jasper.JasperException: Unable to compile class for
> > > JSPC:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples\_000
> > > 2fjsp_0002ftes
> > > t_0002ejsptest_jsp_0.java:65: Class jsp.ODBCConnection not found.
> > > ODBCConnection p = new ODBCConnection(); 
> > > C:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples\_0002fj
> > > sp_0002ftest_0
> > > 002ejsptest_jsp_0.java:65: Class jsp.ODBCConnection not found.
> > > ODBCConnection p = new ODBCConnection(); 
> > > 
> > > I tried placing the .class file concerned in both :
> > > 
> > > jakarta-tomcat-3.2.3\classes directory  
> > > jakarta-tomcat-3.2.3\webapps\examples\web-info\classes
> > > 
> > > with no luck.
> > > 
> > > 
> > > Wendy Voon
> > > 
> > > 
> > > 
> > > Wendy Voon
> > > Consultant
> > > Black Diamond
> > > T e c h n o l o g i e s
> > > Level 1, 6 Riverside Quay,
> > > Southbank, Victoria, 3006.
> > > E-mail: [EMAIL PROTECTED]
> > > Telephone: (03) 9698 - 7600
> > > Facsimile: (03) 9698 - 7666
> > > Web: http://www.bdt.com.au/ 
> > > 
> > > ---INTERNET E-MAIL CONFIDENTIALITY/DISCLAIMER
> > > 
> > > Privileged and confidential information may be contained in 
> > > this e-mail.  If
> > > you are not the intended recipient of this communication 
> > > please delete and
> > > destroy all copies and kindly notify the sender by return e-mail.
> > > Recipients of this e-mail must not use, disclose or forward 
> > > any information
> > > or attachments without express permission from Black Diamond 
> > > Technologies. 
> > > 
> > > Any views expressed in this communication are those of the 
> > > individual sender
> > > except where the sender specifically states them to be the 
> > > views of Black
> > > Diamond Technologies.  Except as required at law, we do 
> not represent
> > > warrant and/or guarantee that the integrity of this 
> > > communication has been
> > > maintained or that it is free of errors, viruses, interception or
> > > interference.
> > > 
> > > 
> > > 
> > > --
> > > To unsubscribe, e-mail:   
> > > 
> > > For additional commands, e-mail: 
> > > 
> > > 
> > 
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> 

--
To unsubscribe:   

Tomcat on the mainframe

2001-11-02 Thread Campano, Troy

has anyone installed TOMCAT on the mainframe (IBM os/390)?

Do you know how this would work?
Where I could get the binaries (if there are any)?


thank you greatly for your timeit's appreciated!


Troy Campano

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: PasswordPrompter howto?

2001-11-02 Thread Larry Isaacs

The small amount of usage documentation is found where it was
downloaded, i.e.:



Adding more documentation is on my todo list.

I have tested it on Windows and Linux 7.1.  On which OS are you trying
use it?

Larry

> -Original Message-
> From: Dario Novakovic [mailto:[EMAIL PROTECTED]]
> Sent: None
> To: [EMAIL PROTECTED]
> Subject: PasswordPrompter howto?
> 
> 
> how do i work with add-on modules? i downloaded 
> PasswordPrompter.war and placed it in modules dir. it is 
> properly deployed (unpacked) but i don't know hoe to use it. 
> i coludn't find any docs about it. can i get some guideance please?
> 
> thanx
> --
> -
> This message has been posted through the Jakarta Tomcat 3.3 F.A.Q.
> on line forum, and can be seen at:
> 
> For more informations about the on-line Jakarta forums, please go to:
> 
> --
> -
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat on the mainframe

2001-11-02 Thread Troy . Campano

thanks Ralph!


would I use the TOMCAT binary or TOMCAT source code for the mainframe?
We're hoping to find the TOMCAT binary .tar.gz file so we just unpack it and
it ready to go.


thanks again, you've help immensely!


Troy Campano

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 8:25 AM
To: Tomcat Users List
Subject: AW: Tomcat on the mainframe


If you want to use Tomcat standalone you don't
need any binaries apart from the JDK.

The JDK you can find at:
http://www-106.ibm.com/developerworks/java/jdk/?dwzone=java

> -Ursprüngliche Nachricht-
> Von: Campano, Troy [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 2. November 2001 14:18
> An: 'Tomcat Users List'
> Betreff: Tomcat on the mainframe
> 
> 
> has anyone installed TOMCAT on the mainframe (IBM os/390)?
> 
> Do you know how this would work?
> Where I could get the binaries (if there are any)?
> 
> 
> thank you greatly for your timeit's appreciated!
> 
> 
> Troy Campano
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Tomcat 4.0.1 + Apache 1.3.22

2001-11-02 Thread Xavier NOPRE

In fact, I can see the examples directory indexes, but without icons, the
browser cannot download any icon, and I have difficulties to stop apache ...

What's happen ?

Thanks

Xavier

- Original Message -
From: Xavier NOPRE <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Sent: Friday, November 02, 2001 12:43 PM
Subject: Re: Tomcat 4.0.1 + Apache 1.3.22


> In fact, it is running. Tomcat must be started before apache. BUT:
> - http://localhost/examples/ : I can see the index of the directory
> - http://localhost/examples/jsp/ : I can see the page index.html with the
> different JSP examples
> - http://localhost/examples/jsp/num/numguess.jsp : the browser is blocked,
> with the wait cursor
>
> I can stop Tomcat, but I cannot stop apache who is running with full CPU
> 
>
> Any idea ?
>
> Xavier
>
> - Original Message -
> From: Xavier NOPRE <[EMAIL PROTECTED]>
> To: Mailing list Tomcat-User <[EMAIL PROTECTED]>
> Sent: Friday, November 02, 2001 11:58 AM
> Subject: Tomcat 4.0.1 + Apache 1.3.22
>
>
> > Hi all,
> >
> > I am desparate. I am trying to install tomcat running under apache. I
have
> > search the WEB but I did not found any complete documentation.
> >
> > The informations of what I have done are above:
> > - what is missing or wrong ?
> > - is the test URL correct ?
> > - What do I have to start first : apache or tomcat ?
> > - Do tomcat start the standalone service ?
> >
> > Thanks for any help
> > Xavier
> >
> >
> > -
> > Informations:
> >
> > - Windows NT 4
> > - Apache 1.3.22
> > - Tomcat 4.0.1
> > - webapp module downloaded
> >
>
(http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/win3
> > 2/webapp-module-1.0-tc40-windows.zip)
> > - libapr.dll and mod_webapp.so extracted in /apache/modules
> > - for apache, httpd.conf updated:
> > - after "#LoadModule" list, I have added the folowwing line:
> >
> > LoadModule webapp_module modules/mod_webapp.so
> >
> > - after the "AddModule" list, I have added the folowwing line
(without
> > this line I have an error message):
> >
> > AddModule   mod_webapp.c
> >
> > - after section "", I have added the
> following
> > lines:
> >
> > WebAppConnection conn  warp  localhost:8008
> > WebAppDeploy examples  conn  /examples
> > WebAppInfo   /webapp-info
> >
> > - I have tried to replace the second line with the following:
> >
> > WebAppDeploy examples  conn  "C:\Program Files\Apache Tomcat
> > 4.0\webapps\example"
> >
> > - I have changed nothin in the configuration of Tomcat, the file
> server.xml
> > containing a section ""
> > - I start tomcat, the output is :
> >
> > Starting service Tomcat-Standalone
> > Apache Tomcat/4.0.1
> > Starting service Tomcat-Apache
> > Apache Tomcat/4.0.1
> >
> > - I start apache
> > - I try : http://localhost/ : I get the apache test page
> > - I try : http://localhost/examples/ : error 404
> >
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: ClassNotFoundException

2001-11-02 Thread Smith, Lawrence T (Lance)

I have the same problem under 4.0.1 and the reason I posted this to the
Tomcat
group was that the exact same website with absolutely no changes works on
the 
Solaris box. And the class not being found is actually a JINI bass class
that I use
in multiple other non web based apps on NT with not problems.
Thanks again for at least looking:) guess I'll just have to make sure
I deploy on Unix boxes for the time being.
Lance

-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 01, 2001 3:28 PM
To: Tomcat Users List
Subject: Re: ClassNotFoundException


> HELP!!! :-)
> I am running on win2kpro, java version "1.3.1_01", Apache Tomcat/4.0-b7

Please upgrade :)
4.0.1

There may be a problem if the Tomcat directory contains spaces (bug 4543 -
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4543).
I may be wrong, but this bug doesn't look to me like a Tomcat bug.

Remy


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Classes in webapps not loaded udring deserialization of objects

2001-11-02 Thread Sriram Narayanan

Hi,

I'm developing this web based application that makes use of several serializable 
objects, all of a particular Serializable class.

I've kept this class along with other classes in the application's web-inf/classes 
folder.
During the workflow of the application, I have to store and retrieve the objects from 
the database.

I am able to serialize my Objects to the database, but when I try to read back the 
Objects, I get a ClassNotFoundException.

I also tried to store the Objects to a file, and then read them back, and faced the 
same problem.

I've solved (?) this by placing a copy of the class in the tomcat/classes folder.

My question is, is there any way to make my app's seriazable classes visible, without 
having to place them in the tomcat/classes folder ?

Here's my configuration:

Windows NT 4.0 SP6
Tomcat 3.2.3
Sun's JDK 1.3
MySQL/NT 3.23.39
MySQL JDBC driver mm.mysql-2.0.4-bin.jar

Here is the starting part of the stackTrace that I get
--- begin ---
java.sql.SQLException: Class not found: java.lang.ClassNotFoundException: 
com.objectedge.applicationauthorization.core.ApplicationAuthorizationKeyImpl while 
reading serialized object
at org.gjt.mm.mysql.ResultSet.getObject(ResultSet.java:1146)
at 
com.objectedge.applicationauthorization.core.ApplicationAuthorization.applicationKeyFrom(ApplicationAuthorization.java)
at 
com.objectedge.applicationauthorization.core.ApplicationAuthorization.populateKeys(ApplicationAuthorization.java)
(more app specific stuff here...)
--- end ---

I've just got my hands on the tomcat documentation, and would like pointers to other 
sources of information on Classloading.

Thanks

Sriram


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Reg. Multiple Server certificates at one Webserver for SSL connection

2001-11-02 Thread GOMEZ Henri


> Hi,
>   This ques. is Reg. to Multiple Server certificate support at one
> Webserver for SSL connection.
> 
>   How can l map different multiple server Certificates to one
> webserver?
> 
Impossible my friend, you could only have ONE SSL Server certificate

by IP adress.

>   My req.is , one webserver should work on behalf of many other
> servers. The client should feel that he is contacting to correct server,
> where this server cert is configured to the actual webserver.
> 
Use instead one Apache HTTP server running the SSL and use reverse
proxy
to real HTTP servers 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Odd include file behavior on test

2001-11-02 Thread Smith, Lawrence T (Lance)

That particular include statement actually pulls the second file as 
part of the source file before Tomcat compiles it. In so doing
Tomcat uses the timestamp on the main file and never checks the included
file. All you have to do is resave the master file and you should see
you're changes.
Lance

-Original Message-
From: smashingwebs [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 01, 2001 5:29 PM
To: [EMAIL PROTECTED]
Subject: Odd include file behavior on test


Hi I am developing a jsp web application and one
of my jsp pages has the <%@ include file="whatever.jsp" %>
tag. As you can see I am including another .jsp page.
If I make a change on the whatever.jsp page and visit
it with my browser, I can see the changes. But the
odd thing is, if I visit the other page which has the
whatever.jsp included, the old version of whatever.jsp
shows up. I am using tomcat with apache and win2000.
I have tried stopping and restarting both tomcat and
apache, but the old version still persits. I have even
tried restarting my computer and the old version
STILL persists. Very odd. It makes it difficult to
debug or make changes. Anyone have any ideas?
(p.s.) I have tried pointing my browser at localhost:8080,
reloading and also going out through my isp back to my own
server. The old version just wont go away!) 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AW: Tomcat on the mainframe

2001-11-02 Thread Ralph Einfeldt

If you want to use Tomcat standalone you don't
need any binaries apart from the JDK.

The JDK you can find at:
http://www-106.ibm.com/developerworks/java/jdk/?dwzone=java

> -Ursprüngliche Nachricht-
> Von: Campano, Troy [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 2. November 2001 14:18
> An: 'Tomcat Users List'
> Betreff: Tomcat on the mainframe
> 
> 
> has anyone installed TOMCAT on the mainframe (IBM os/390)?
> 
> Do you know how this would work?
> Where I could get the binaries (if there are any)?
> 
> 
> thank you greatly for your timeit's appreciated!
> 
> 
> Troy Campano
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Distribution/Licensing question

2001-11-02 Thread Brett M. Bergquist

Jeff, I just noticed on Sun's Java web pages that as of the 10/17/2001 that javac and 
tools.jar are now redistributable.  Here's a
link to a page with this information:

http://java.sun.com/j2se/1.3/jre/


- Original Message -
From: Jeff Corliss <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Sent: Thursday, November 01, 2001 3:50 PM
Subject: Re: Distribution/Licensing question


> Cool, I will check that out.  Thanks!
>
> --- "Brett M. Bergquist" <[EMAIL PROTECTED]> wrote:
> > Jeff, you need to contact Sun in regards to
> > redistributing the Java compiler.  But, you could go
> > the route that we did and use the
> > IBM Jikes Java compiler which is freely
> > distributable provided that you show the proper
> > notices and such.
> >
> >
> > - Original Message -
> > From: Jeff Corliss <[EMAIL PROTECTED]>
> > To: Tomcat Users List
> > <[EMAIL PROTECTED]>
> > Sent: Wednesday, October 31, 2001 1:14 PM
> > Subject: Distribution/Licensing question
> >
> >
> > > Quick newbie question, and if its just a case of
> > RTFM
> > > (which I have, but maybe I missed it), please feel
> > > free to say so ...
> > >
> > > I am writing a webapp that includes tag libraries
> > and
> > > the intent is to sell this to multiple customers,
> > each
> > > of whom will be designing their own JSPs using
> > those
> > > tags.  Now, since that means the JSPs will need to
> > be
> > > compiled by Tomcat at least once at each
> > customer's
> > > site, does this mean I need to actually distribute
> > not
> > > only Tomcat but also the JDK (not just the JRE)?
> > If
> > > that is the case, does that mean I have to make an
> > > arrangement with Sun for licensing the
> > redistribution
> > > of the JDK?
> > >
> > > Many thanks,
> > > Jeff
> > >
> > >
> > > __
> > > Do You Yahoo!?
> > > Make a great connection at Yahoo! Personals.
> > > http://personals.yahoo.com
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 
> > > For additional commands, e-mail:
> > 
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
>
> __
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Additionnal classpath

2001-11-02 Thread Xavier NOPRE

Hi,

I am compiling my classes in a specific directory. How can I do to tell
Tomcat to load classes from the classpath, without copying each time the
classes to web-inf/classes ?

Thanks

Xavier



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Come and get mod_webapp.dll

2001-11-02 Thread Doina Popa

I'd like it too, please. Thanks.

Doina

> -Original Message-
> From: fui koon [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 02, 2001 11:31 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Come and get mod_webapp.dll
> 
> 
> i want it. thanks
> 
> [EMAIL PROTECTED]
> 
>  --- David Oxley <[EMAIL PROTECTED]> wrote: >
> All,
> > 
> > I have compiled up mod_webapp.dll and it works quite
> > nicely. If you would
> > like it reply TO THE LIST with your Email address I
> > will send it to you. It
> > is too big for the list. I have created a Visual
> > Studio dsp file to do the
> > compile and I will submit it shortly for check in.
> > 
> > Dave. 
> 
> 
> Nokia Game is on again. 
> Go to http://uk.yahoo.com/nokiagame/ and join the new
> all media adventure before November 3rd.
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AW: Come and get mod_webapp.dll

2001-11-02 Thread Lauer, Oliver

What's the difference between mod_webapp.dll and the so-file. I ask due to
I've difficulties with Win NT SP 5 and Win XP works well. 
Olli

> AXA eSolutions GmbH
> AXA Konzern AG Germany
> Oliver Lauer 
> Web Architect
> Wörthstraße 34
> D-50668 Köln
> Germany
> Tel.: +49 221 148 31277
> Fax: +49 221 148 43963
> Mobil: +49 179 59 064 59
> e-Mail: [EMAIL PROTECTED]
> _
> 


-Ursprüngliche Nachricht-
Von: Doina Popa [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 2. November 2001 10:35
An: 'Tomcat Users List'
Betreff: RE: Come and get mod_webapp.dll


I'd like it too, please. Thanks.

Doina

> -Original Message-
> From: fui koon [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 02, 2001 11:31 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Come and get mod_webapp.dll
> 
> 
> i want it. thanks
> 
> [EMAIL PROTECTED]
> 
>  --- David Oxley <[EMAIL PROTECTED]> wrote: >
> All,
> > 
> > I have compiled up mod_webapp.dll and it works quite
> > nicely. If you would
> > like it reply TO THE LIST with your Email address I
> > will send it to you. It
> > is too big for the list. I have created a Visual
> > Studio dsp file to do the
> > compile and I will submit it shortly for check in.
> > 
> > Dave. 
> 
> 
> Nokia Game is on again. 
> Go to http://uk.yahoo.com/nokiagame/ and join the new
> all media adventure before November 3rd.
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AW: Come and get mod_webapp.dll

2001-11-02 Thread Ralph Einfeldt

.dll = Windows
.so = Linux/Unix

> -Ursprüngliche Nachricht-
> Von: Lauer, Oliver [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 2. November 2001 15:43
> An: 'Tomcat Users List'
> Betreff: AW: Come and get mod_webapp.dll
> 
> 
> What's the difference between mod_webapp.dll and the so-file. 
> I ask due to
> I've difficulties with Win NT SP 5 and Win XP works well. 
> Olli
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat on the mainframe

2001-11-02 Thread Kemp Randy-W18971

I think you will find it better to run Tomcat on a PC or workstation running
either a version of Windows or Unix.

-Original Message-
From: Campano, Troy [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 7:18 AM
To: 'Tomcat Users List'
Subject: Tomcat on the mainframe


has anyone installed TOMCAT on the mainframe (IBM os/390)?

Do you know how this would work?
Where I could get the binaries (if there are any)?


thank you greatly for your timeit's appreciated!


Troy Campano

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AW: Come and get mod_webapp.dll

2001-11-02 Thread Lauer, Oliver

But I'm using the mod_webapp.so for NT as well (plus libapr.dll). So what
benefit do I have with the webapp.dll ? 
Thanks.
Olli

> AXA eSolutions GmbH
> AXA Konzern AG Germany
> Oliver Lauer 
> Web Architect
> Wörthstraße 34
> D-50668 Köln
> Germany
> Tel.: +49 221 148 31277
> Fax: +49 221 148 43963
> Mobil: +49 179 59 064 59
> e-Mail: [EMAIL PROTECTED]
> _
> 


-Ursprüngliche Nachricht-
Von: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 2. November 2001 15:45
An: Tomcat Users List
Betreff: AW: Come and get mod_webapp.dll


.dll = Windows
.so = Linux/Unix

> -Ursprüngliche Nachricht-
> Von: Lauer, Oliver [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 2. November 2001 15:43
> An: 'Tomcat Users List'
> Betreff: AW: Come and get mod_webapp.dll
> 
> 
> What's the difference between mod_webapp.dll and the so-file. 
> I ask due to
> I've difficulties with Win NT SP 5 and Win XP works well. 
> Olli
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information 
nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne 
auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der 
unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des 
Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht  ist ausschliesslich fuer 
den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der 
vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich 
mit dem Absender der E-Mail in Verbindung zu setzen.

For legal and security reasons the information provided in this e-mail is not legally 
binding. Upon request we would be pleased to provide you with a legally binding 
confirmation in written form. Any form of unauthorised use, publication, reproduction, 
copying or disclosure of the content of this e-mail is not permitted. This message is 
exclusively for the person addressed or their representative. If you are not the 
intended recipient of this message and its contents, please notify the sender 
immediately.
---



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat on the mainframe

2001-11-02 Thread Troy . Campano

Currently I am running it on a Linux desktop and it runs great, but we have
a mainframe running Linux until the end of the year and we have to test
different database/web software for our evaluation with IBM.


thank you!


Troy Campano

-Original Message-
From: Kemp Randy-W18971 [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 9:47 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat on the mainframe


I think you will find it better to run Tomcat on a PC or workstation running
either a version of Windows or Unix.

-Original Message-
From: Campano, Troy [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 7:18 AM
To: 'Tomcat Users List'
Subject: Tomcat on the mainframe


has anyone installed TOMCAT on the mainframe (IBM os/390)?

Do you know how this would work?
Where I could get the binaries (if there are any)?


thank you greatly for your timeit's appreciated!


Troy Campano

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Come and get mod_webapp.dll

2001-11-02 Thread carlos . chaparro


hey, but i download...  the module in the .so version form the jakarta site
and it work fine on mi win2000

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/win32/webapp-module-1.0-tc40-windows.zip

download it...

Carlos Chaparro
Taller Web, Equant
Tel:  6211072
[EMAIL PROTECTED]


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Connection reset by peer

2001-11-02 Thread Nakhate, Monali


hello i am encountering this problem,and believe me,i have xhausted this
forum..and lloked for all possible solutions.Finally i am posting this
to find some help i have deployed a JSP(BC4J JSP application developed
in JDeveloper 3.2.3) application to Tomcat 3.2.3. the application runs
fine sometimes,but sometimes,when i try to refresh a jsp page,the jsp
page outputs only part of the page.The full page is not seen,if i see
the source of th page,i see Error:null and in Tomcat Console i see
IOException,Connection reset by peer if i keep refreshing the page,it
loads the complete page at some point.Otherwise i have to restart my
appliation and keep struggling again. Any help for this? Regards Monali 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Come and get mod_webapp.dll

2001-11-02 Thread Xavier NOPRE

Hi Carlos,

> hey, but i download...  the module in the .so version form the jakarta
site
> and it work fine on mi win2000
>
>
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/win32
/webapp-module-1.0-tc40-windows.zip

We are many users having problem to run tomcat under apache. Did you see my
post ? Do you have some information or idea to help us ?

Thanks

Xavier



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: TC4, mod_webapp, WebAppDeploy, Path to webapp

2001-11-02 Thread Pier Fumagalli

Christian Gothe at [EMAIL PROTECTED] wrote:

> Hi Pier,
> 
> thanks for your help!
> 
>> 
>> BTW, there's a bug in the code distributed with TC4.0.1, make sure you get a
>> nightly snapshot from http://nagoya.apache.org/~pier/
>> 
> 
> Is there a binary available? Because I cannot find the "apxs" for
> apache, so I cant compile the module. The reason is the RPM install, I
> think so...

Nope, and if APXS is not there, it's not a good sign... It means that
probably your Apache hasn't been compiled with DSO modules support (check in
httpd -l to see if there's a "mod_so..." entry)

Pier


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Form authentication/ password changing

2001-11-02 Thread Timothy Fisher

Experiencing what???


--- Micael Padraig Og mac Grene
<[EMAIL PROTECTED]> wrote:
> Are you experiencing the same thing?
> -Original Message-
> From: Timothy Fisher <[EMAIL PROTECTED]>
> To: Tomcat Users List
> <[EMAIL PROTECTED]>
> Date: Thursday, November 01, 2001 12:47 PM
> Subject: Re: Form authentication/ password changing
> 
> 
> >Craig,
> >
> >I agree with all of your comments.  From the tomcat
> >access perspective, your correct, flat file vs. DB
> >storage of users/passwords may be roughly
> equivalent
> >in terms of how secure that is.
> >
> >But, if you ignore tomcat, and just consider the
> >usernames and passwords sitting out there, I would
> >argue that they are more vulnerable sitting in a
> flat
> >file than in a database.  But I"m sure this could
> be
> >debated on an on...
> >
> >Tim
> >
> >--- "Craig R. McClanahan" <[EMAIL PROTECTED]>
> wrote:
> >> 
> >> 
> >> On Thu, 1 Nov 2001, Timothy Fisher wrote:
> >> 
> >> > Date: Thu, 1 Nov 2001 12:08:18 -0800 (PST)
> >> > From: Timothy Fisher <[EMAIL PROTECTED]>
> >> > Reply-To: Tomcat Users List
> >> <[EMAIL PROTECTED]>
> >> > To: Tomcat Users List
> >> <[EMAIL PROTECTED]>
> >> > Subject: Re: Form authentication/ password
> >> changing
> >> >
> >> > There is a sample tomcat-users.xml included
> with
> >> > tomcat 4.0 in the conf directory.  Just follow
> >> this
> >> > format.  Yes, the file must be in this format,
> >> unless
> >> > you write your own connector.
> >> >
> >> 
> >> Yep.
> >> 
> >> > The server containing the tomcat-users file
> >> definitely
> >> > must be protected.  Yes, this is less secure
> than
> >> > storing the users/passwords in a
> >> directory/database.
> >> >
> >> 
> >> It's hard to talk about "more secure" or "less
> >> secure" unless we define
> >> how you measure this :-).  However, I would
> suggest
> >> that this is not
> >> necessarily true.
> >> 
> >> First, under all circumstances, you should run
> >> Tomcat under a username
> >> other than root.  That username must (obviously)
> >> have read access to the
> >> files in the "conf" directory.  But, *no* other
> >> users on the server should
> >> be able to read those files.  This allows you to
> >> leverage your operating
> >> system's standard protection for files.
> >> 
> >> Second, let's assume that we put the users in a
> >> database instead, and
> >> configure JDBCRealm to have Tomcat talk to it. 
> If
> >> you examine the
> >> configuration parameters you have to set up in
> >> "conf/server.xml", you will
> >> note that you have to specify the database
> username
> >> and password -- so you
> >> are *still* depending on limiting access to the
> >> configuration files, even
> >> if you take this approach.  That doesn't sound
> "more
> >> secure" to me.
> >> 
> >> (An approach that would qualify as "more secure"
> >> would be to challenge the
> >> system administrator for a password when Tomcat
> is
> >> started up.  Some
> >> progress towards building such stuff has taken
> place
> >> with regards to the
> >> "keystore" files used for SSL certificates, but
> not
> >> yet for database
> >> passwords.  And, you have to balance the security
> >> with the extra hassle
> >> that you cannot script a startup of Tomcat
> without
> >> having someone around
> >> to answer the password prompt.)
> >> 
> >> > Tim
> >> >
> >> 
> >> Craig
> >> 
> >> 
> >> --
> >> To unsubscribe:  
> >>
> 
> >> For additional commands:
> >> 
> >> Troubles with the list:
> >> 
> >> 
> >
> >
> >__
> >Do You Yahoo!?
> >Make a great connection at Yahoo! Personals.
> >http://personals.yahoo.com
> >
> >--
> >To unsubscribe:  
> 
> >For additional commands:
> 
> >Troubles with the list:
> 
> >
> >
> 
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


__
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: AW: Come and get mod_webapp.dll

2001-11-02 Thread Pier Fumagalli

Wrong... From Apache 1.3.19 (or 20, can't remember _exactly_), for windows
too the default extension of loadable modules is ".so", as under unix.

Pier


Ralph Einfeldt at [EMAIL PROTECTED] wrote:

> .dll = Windows
> .so = Linux/Unix
> 
>> -Ursprüngliche Nachricht-
>> Von: Lauer, Oliver [mailto:[EMAIL PROTECTED]]
>> Gesendet: Freitag, 2. November 2001 15:43
>> An: 'Tomcat Users List'
>> Betreff: AW: Come and get mod_webapp.dll
>> 
>> 
>> What's the difference between mod_webapp.dll and the so-file.
>> I ask due to
>> I've difficulties with Win NT SP 5 and Win XP works well.
>> Olli


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Tomcat 4.0.1 + Apache 1.3.22

2001-11-02 Thread Pier Fumagalli

Xavier NOPRE at [EMAIL PROTECTED] wrote:

> WebAppDeploy examples  conn  "C:\Program Files\Apache Tomcat
> 4.0\webapps\example"

Try with
  WebAppDeploy examples conn /examples
You got it the way around.

Pier


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




adding a directory to the standard installation

2001-11-02 Thread Carsten Elshoff

Dear list,

I'm geeting a little desparate after installing Tomcat 3.3 and Apache
1.3.22! After installation everything was looking fine and even all of the
samples were working. As I ported my application from Jserv to tomcat it
drove me crazy. Basically the only thing I did was to add another directory
to the /webapps folder. 

My structure there looks like this : /webapps/www/web-inf/classes and on
this level there is a web.xml file. I have a context that's added to the
server.xml pointing to /webapps/www. So far everything seems to be ok, but I
can only call servlets within the following structure: /examples/servlet.
What I'd like to do is to omit the first part and set this to /servlets; but
the only way it's been working so far is /servlets/servlet. 

Where can I change this behavior? Any help is appreciated!!!

Thanks in advance,

Carsten

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Repost: jndi.properties

2001-11-02 Thread Jim Crossley

I'm reposting due to a lack of response.  I've searched the archives,
and I'm doing everything mentioned there, yet I still can't seem to
get the default InitialContext to load the jndi.properties from the
application's classpath.

PREVIOUS POST:

How do I make the default InitialContext use the jndi.properties in
my application's WEB-INF/classes directory?

I'm using 3.2.2 with the correct Interceptor:


I'm open to upgrading my Tomcat if that's the only way.

Thanks.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




How does/can Tomcat scale

2001-11-02 Thread Lauer, Oliver

Hi, 

could somebody briefly explain how Tomcat scales or how I could scale Tomcat
(maybe with Apache and on different hardware and with several VMs). 
I can't find anything in the docs.

Thanks
> AXA eSolutions GmbH
> AXA Konzern AG Germany
> Oliver Lauer 
> Web Architect
> Wörthstraße 34
> D-50668 Köln
> Germany
> Tel.: +49 221 148 31277
> Fax: +49 221 148 43963
> Mobil: +49 179 59 064 59
> e-Mail: [EMAIL PROTECTED]
> _
> 
> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Come and get mod_webapp.dll

2001-11-02 Thread carlos . chaparro


i have many problems too...
but i download the new version 4.0.1 and works fine...
my problem is that i can't change the docbase... but in the webapps
directory works.

was simple, i download de tomcat4.0.1 and the webapp module in .so
version..

i make a clean install... so i uninstall previous tomcat 4

i install and follow the instructions and everything works fine... with
apache 1.3.2..
in tomcat installation and zip with the .so module comes an installation
intructions.

i hope it helps...


Carlos Chaparro
Taller Web, Equant
Tel:  6211072
[EMAIL PROTECTED]


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AW: AW: Come and get mod_webapp.dll

2001-11-02 Thread Ralph Einfeldt

Sorry, wasn't aware of that. 
My last apache under windows was 1.3.12.

So the basic question of the poster is unanswered:
  'what's the difference between .so and .dll'

(Can the .so file be used with apache < 1.3.[19|20]
 and the .dll with apache >= 1.3.[19|20] ?)

> -Ursprüngliche Nachricht-
> Von: Pier Fumagalli [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 2. November 2001 16:48
> An: Tomcat Users List
> Betreff: Re: AW: Come and get mod_webapp.dll
> 
> 
> Wrong... From Apache 1.3.19 (or 20, can't remember 
> _exactly_), for windows
> too the default extension of loadable modules is ".so", as under unix.
> 
> Pier
> 
> 
> Ralph Einfeldt at [EMAIL PROTECTED] wrote:
> 
> > .dll = Windows
> > .so = Linux/Unix
> > 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Repost: jndi.properties

2001-11-02 Thread McDowell, Mark

I'll preface this with *I am NOT an expert* :)

The only information I'm aware of is that if the jndi.properties
file is in the CLASSPATH, it should be found Try adding 
WEB-INF/classes to the CLASSPATH prior to starting Tomcat...

Mark

-Original Message-
From: Jim Crossley [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 9:59 AM
To: Tomcat Users List
Subject: Repost: jndi.properties


I'm reposting due to a lack of response.  I've searched the archives,
and I'm doing everything mentioned there, yet I still can't seem to
get the default InitialContext to load the jndi.properties from the
application's classpath.

PREVIOUS POST:

How do I make the default InitialContext use the jndi.properties in
my application's WEB-INF/classes directory?

I'm using 3.2.2 with the correct Interceptor:


I'm open to upgrading my Tomcat if that's the only way.

Thanks.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Come and get mod_webapp.dll

2001-11-02 Thread Pier Fumagalli

[EMAIL PROTECTED] at [EMAIL PROTECTED] wrote:

> 
> i have many problems too...
> but i download the new version 4.0.1 and works fine...
> my problem is that i can't change the docbase... but in the webapps
> directory works.

It's a known bug which have been fixed and is available thru the
nightlies...

Pier


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: AW: AW: Come and get mod_webapp.dll

2001-11-02 Thread Pier Fumagalli

Ralph Einfeldt at [EMAIL PROTECTED] wrote:

> Sorry, wasn't aware of that.
> My last apache under windows was 1.3.12.

Upgrade it :)

> So the basic question of the poster is unanswered:
> 'what's the difference between .so and .dll'

A file name, they're both sharable objects.

> (Can the .so file be used with apache < 1.3.[19|20]
> and the .dll with apache >= 1.3.[19|20] ?)

It's just a file extension. People should realize that file extension don't
mean what's INSIDE the file... The contents are the same, the behavior is
the same.

Pier


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: TC4, mod_webapp, WebAppDeploy, Path to webapp

2001-11-02 Thread Christian Gothe

Pier Fumagalli wrote:

>Christian Gothe at [EMAIL PROTECTED] wrote:
>
>>>BTW, there's a bug in the code distributed with TC4.0.1, make sure you get a
>>>nightly snapshot from http://nagoya.apache.org/~pier/
>>>
>>Is there a binary available? Because I cannot find the "apxs" for
>>apache, so I cant compile the module. The reason is the RPM install, I
>>think so...
>>
>
>Nope, and if APXS is not there, it's not a good sign... It means that
>probably your Apache hasn't been compiled with DSO modules support (check in
>httpd -l to see if there's a "mod_so..." entry)
>
I found it in the apache-devel rpm. Compilation was successfull and the 
module works. But my problem isn't solved ;-)

>
>Pier
>
Christian


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat 4.0/Apache 1.3.22/WebApp problem

2001-11-02 Thread Doina Popa

Hello,

I have a problem connecting Tomcat 4.0.1 and Appache HTTP Server 1.3.22
through WebApp module. They however seem to connect but the HTTP server
doesn't seem to redirect the servlet calls to the Tomcat Engine.

I have loaded the WebbApp module and added it in the httpd.conf. Here is
also how I define the connection between the two in that file: 

WebAppConnection conn  warp  doinap:8008
WebAppDeploy   sivadocconn  /sivadoc


In the Tomcat server.xml file I have commented out the standalone service
and tried to configure the Tomcat-Apache service. Here is what my service
looks like:
  






  
  

  
  
  

  

The servlets initialize, the tomcat apache_log file says that the connection
has been made, I can connect to the system on the 8080 port defined for the
HTTP server, everything seems ok but when I try to use a servlet it says
that the page is unavailable and the Apache seems to get hanged. I guess
something is wrong in my configuration files...

I understand that there are problems with the webapp module and that we are
recommended to get a nightly version. Where can I find a build of one of
them? 

Thanks a lot for the support,
Doina


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Embedding Tomcat with intra-app Servlets

2001-11-02 Thread Todd Wright


I'd like to embed Tomcat within my Java application, but where some Servlet 
requests would *directly* call into my running application's code (+data).   
The current "EmbededTomcat" support seems to be aimed at launching a 
stand-alone Tomcat that only supports file contexts, with no callback support 
for access to the launching application.

I'm thinking of Tomcat 3.3, 'though 4.0 could be used if required.

For example, suppose I have a calendar application that I'd like to add web 
support.  Inside my application I have all the data I need, and I'd like my 
servlets to directly access my the data structures.  Flattening the data out 
to an external database/filesystem is not an option.  All Servlet requests 
would funnel into my application so I can call my own (inner) Servlet.   I 
still want Tomcat to do the HTTP parsing, SSL, sessions, Servlet-API, etc.   
My application must load the internal Servlet instance.

Can I use an interceptor, or (if needed) pull apart "EmbededTomcat"?  Is 
there an example of how to do this?  I hope it's clear why this would be a 
very useful embedding scenario...

Pseudocode:

public class MyApp implements Runnable {

   /** launcher */
   public static void main(String[] args) {
   // launch!
  (new MyApp()).run();
   }

   public void run() {
  // create my internal Servlet before Tomcat is launched
  //
  // this inner class is defined later in this method
  Servlet myServlet = new MyServlet();

  // launch Tomcat
  EmbeddedTomcat et = new EmbeddedTomcat();
  et.setArgs(new String[] {"start"});
  et.execute();

  //
  // hand-waving here!   Could be moved to before the "et.execute()".
  //
  insert myServlet into Tomcat to handle all "/*" requests

  // 
  //  I now want "myServlet" to be called with all "/*" requests
  // 

  // run forever in this example...
   }

   /**
* sample internal data method.
*
* MyServlet will call this method
*/
   public String getInternalString() {
  return "foo";
   }

   /** 
* My inner servlet -- has access back into "MyApp"  
*  instance (non-static).
*/
   private class MyServlet extends HttpServlet {
  public void doGet(
  HttpServletRequest request, 
  HttpServletResponse response)
   throws IOException, ServletException  {
   response.setContentType("text/html");
   PrintWriter out = response.getWriter();
   out.println("Internal String is ");

   // access internal MyApp method/data!
   out.println(getInternalString());

   out.println("");
   }
}

Thanks!
   Todd

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 4.0/Apache 1.3.22/WebApp problem

2001-11-02 Thread Doina Popa

Pier pointed to the nightly builds but I would like to find the binaries of
that build somewhere because I cannot build it myself, hence that's for
Unix.

> -Original Message-
> From: Lauer, Oliver [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 02, 2001 6:36 PM
> To: 'Tomcat Users List'
> Subject: AW: Tomcat 4.0/Apache 1.3.22/WebApp problem
> 
> 
> No, not yet, I hope the nightly build of webapp would do it. 
> Where can I
> find it ? 
> 
> > AXA eSolutions GmbH
> > AXA Konzern AG Germany
> > Oliver Lauer 
> > Web Architect
> > Wörthstraße 34
> > D-50668 Köln
> > Germany
> > Tel.: +49 221 148 31277
> > Fax: +49 221 148 43963
> > Mobil: +49 179 59 064 59
> > e-Mail: [EMAIL PROTECTED]
> > _
> > 
> 
> 
> -Ursprüngliche Nachricht-
> Von: Doina Popa [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 2. November 2001 17:34
> An: 'Tomcat Users List'
> Betreff: RE: Tomcat 4.0/Apache 1.3.22/WebApp problem
> 
> 
> My system is WIN NT SP 6... How can I get around it, do you 
> have any ideas?
> 
> Thanks
> 
> > -Original Message-
> > From: Lauer, Oliver [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, November 02, 2001 6:30 PM
> > To: 'Tomcat Users List'
> > Subject: AW: Tomcat 4.0/Apache 1.3.22/WebApp problem
> > 
> > 
> > I've nearly the same problem if that concerns to WIN NT SP5, 
> > on XP and SunOS
> > it works.
> > 
> > > AXA eSolutions GmbH
> > > AXA Konzern AG Germany
> > > Oliver Lauer 
> > > Web Architect
> > > Wörthstraße 34
> > > D-50668 Köln
> > > Germany
> > > Tel.: +49 221 148 31277
> > > Fax: +49 221 148 43963
> > > Mobil: +49 179 59 064 59
> > > e-Mail: [EMAIL PROTECTED]
> > > _
> > > 
> > 
> > 
> > -Ursprüngliche Nachricht-
> > Von: Doina Popa [mailto:[EMAIL PROTECTED]]
> > Gesendet: Freitag, 2. November 2001 17:24
> > An: Tomcat Users List (E-mail)
> > Betreff: Tomcat 4.0/Apache 1.3.22/WebApp problem
> > 
> > 
> > Hello,
> > 
> > I have a problem connecting Tomcat 4.0.1 and Appache HTTP 
> > Server 1.3.22
> > through WebApp module. They however seem to connect but the 
> > HTTP server
> > doesn't seem to redirect the servlet calls to the Tomcat Engine.
> > 
> > I have loaded the WebbApp module and added it in the 
> > httpd.conf. Here is
> > also how I define the connection between the two in that file: 
> > 
> > WebAppConnection conn  warp  doinap:8008
> > WebAppDeploy   sivadocconn  /sivadoc
> > 
> > 
> > In the Tomcat server.xml file I have commented out the 
> > standalone service
> > and tried to configure the Tomcat-Apache service. Here is 
> > what my service
> > looks like:
> >   
> > 
> >  > className="org.apache.catalina.connector.warp.WarpConnector"
> >  port="8008" minProcessors="5" maxProcessors="75"
> >  enableLookups="true"
> >  acceptCount="10" debug="0"/>
> > 
> > 
> >  className="org.apache.catalina.connector.warp.WarpEngine"
> >  name="Apache" debug="0" defaultHost="doinap" docBase="webapps">
> > 
> >   
> >>   prefix="apache_log." suffix=".txt"
> >   timestamp="true"/>
> > 
> >   
> >   
> >   
> > 
> >   
> > 
> > The servlets initialize, the tomcat apache_log file says that 
> > the connection
> > has been made, I can connect to the system on the 8080 port 
> > defined for the
> > HTTP server, everything seems ok but when I try to use a 
> > servlet it says
> > that the page is unavailable and the Apache seems to get 
> > hanged. I guess
> > something is wrong in my configuration files...
> > 
> > I understand that there are problems with the webapp module 
> > and that we are
> > recommended to get a nightly version. Where can I find a 
> > build of one of
> > them? 
> > 
> > Thanks a lot for the support,
> > Doina
> > 
> > 
> > --
> > To unsubscribe:   
> 
> > For additional commands: 
> 
> > Troubles with the list: 
> 
> > 
> > 
> > 
> > Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail 
> > gegebene Information nicht rechtsverbindlich. Eine 
> > rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf 
> > Anforderung in schriftlicher Form nach. Beachten Sie bitte, 
> > dass jede Form der unautorisierten Nutzung, 
> > Veroeffentlichung, Vervielfaeltigung oder Weitergabe des 
> > Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht  
> > ist ausschliesslich fuer den bezeichneten Adressaten oder 
> > dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene 
> > Adressat dieser E-Mail oder dessen Vertreter sein, so bitten 
> > wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen.
> > 
> > For legal and security reasons the information provided in 
> > this e-mail is not legally binding. Upon request we would be 
> > pleased to provide you with a legally binding confirmation in 
> > written form. Any form of unauthorised use, pub

Re: TC4, mod_webapp, WebAppDeploy, Path to webapp

2001-11-02 Thread Pier Fumagalli

Christian Gothe at [EMAIL PROTECTED] wrote:

> Pier Fumagalli wrote:
> 
>> Christian Gothe at [EMAIL PROTECTED] wrote:
>> 
 BTW, there's a bug in the code distributed with TC4.0.1, make sure you get
 a
 nightly snapshot from http://nagoya.apache.org/~pier/
 
>>> Is there a binary available? Because I cannot find the "apxs" for
>>> apache, so I cant compile the module. The reason is the RPM install, I
>>> think so...
>>> 
>> 
>> Nope, and if APXS is not there, it's not a good sign... It means that
>> probably your Apache hasn't been compiled with DSO modules support (check in
>> httpd -l to see if there's a "mod_so..." entry)
>> 
> I found it in the apache-devel rpm. Compilation was successfull and the
> module works. But my problem isn't solved ;-)

Did you recompile and changed also "warp.jar" in your tomcat 4.0
installation (as described in the README and INSTALL files?)

Pier


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: AW: AW: AW: Come and get mod_webapp.dll

2001-11-02 Thread Pier Fumagalli

Ralph Einfeldt at [EMAIL PROTECTED] wrote:

>>> Sorry, wasn't aware of that.
>>> My last apache under windows was 1.3.12.
>> 
>> Upgrade it :)
>
> Even better: We are using Apache under linux. 8}

Wrong choice of OS, then :) :) :)

>> It's just a file extension. People should realize that file extension don't
>> mean what's INSIDE the file... The contents are the same, the behavior is the
>> same.
>
> It clear for me that a different extension doesn't mean much be default.
> But the past has shown that with such name changes the probability
> of incompatible api's increases.

There haven't been major changes in the API since quite some time in Apache
1.3, so you shouldn't really worry... But  as if today, you're not running
1.3.22, well, you might be in trouble for something else...

Pier


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat on the mainframe

2001-11-02 Thread Kemp Randy-W18971

But you would still be doing that, no matter where Tomcat runs.  Or does the
nature of your work with IBM require Tomcat to be on a mainframe?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 8:52 AM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat on the mainframe


Currently I am running it on a Linux desktop and it runs great, but we have
a mainframe running Linux until the end of the year and we have to test
different database/web software for our evaluation with IBM.


thank you!


Troy Campano

-Original Message-
From: Kemp Randy-W18971 [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 9:47 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat on the mainframe


I think you will find it better to run Tomcat on a PC or workstation running
either a version of Windows or Unix.

-Original Message-
From: Campano, Troy [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 7:18 AM
To: 'Tomcat Users List'
Subject: Tomcat on the mainframe


has anyone installed TOMCAT on the mainframe (IBM os/390)?

Do you know how this would work?
Where I could get the binaries (if there are any)?


thank you greatly for your timeit's appreciated!


Troy Campano

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




The Infamous ClassCastException Problem

2001-11-02 Thread Frank Lawlor

I've noticed a couple of threads about strange ClassCastException
problems ("Call EJB in OC4J from Tomcat", 
"pulling my hair out re: EJB in tomcat").

I've run into a strange ClassCastException in a slightly different
context, but it seems that it might be related and might help
narrow down the problem.

I have an application that is broken into two tomcat web-apps 
(contexts) ("MainApp", "HelperApp").

One thing I am trying to do is have the MainApp populate a 
request with some beans and then include a jsp from HelperApp:

   populateRequestWithBeans(); // uses RequestDispatcher.include()
   sc.getRequestDispatcher(TargetPage).include(request, response);

If the TargetPage is in MainApp this works fine.

If the TargetPage is in HelperApp and I run it from my development
environment (Tomcat 3.2.1) it runs fine (gets context of HelperApp).

If the TargetPage is in HelperApp and I run it in Tomcat 4.0 then
I get a ClassCastException in TargetPage on the line where the
TargetPage jsp tries to retrieve the bean (2nd line below):

   com.athensgroup.autoweb_projects.ClientInfo ClientInfo = null;
   ...
   ClientInfo= (com.athensgroup.autoweb_projects.ClientInfo)
 pageContext.getAttribute("ClientInfo",PageContext.REQUEST_SCOPE);

The runtime error complains that the object is actually of type
com.athensgroup.autoweb_projects.ClientInfo
which is clearly the SAME (textually)!

Since this works in some environments it eliminates issues of typos,
logic errors, etc in the code.

The key seems to be that the two web-apps think that the same class
is a different class!  (Both have copies of the SAME class file in their 
WEB-INF\classes directories.  

Is there something in Tomcat or the JVM which would make two 
different web-apps think that the same class is not the same class?
Obviously there is something MORE than just the class name that
is being used to distinguish them.

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




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Come and get mod_webapp.dll

2001-11-02 Thread Bin . Huang

Please send me a copy, thanks.

-Original Message-
From: Doina Popa [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 1:35 AM
To: 'Tomcat Users List'
Subject: RE: Come and get mod_webapp.dll


I'd like it too, please. Thanks.

Doina

> -Original Message-
> From: fui koon [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 02, 2001 11:31 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Come and get mod_webapp.dll
> 
> 
> i want it. thanks
> 
> [EMAIL PROTECTED]
> 
>  --- David Oxley <[EMAIL PROTECTED]> wrote: >
> All,
> > 
> > I have compiled up mod_webapp.dll and it works quite
> > nicely. If you would
> > like it reply TO THE LIST with your Email address I
> > will send it to you. It
> > is too big for the list. I have created a Visual
> > Studio dsp file to do the
> > compile and I will submit it shortly for check in.
> > 
> > Dave. 
> 
> 
> Nokia Game is on again. 
> Go to http://uk.yahoo.com/nokiagame/ and join the new
> all media adventure before November 3rd.
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Repost: jndi.properties

2001-11-02 Thread Jim Crossley

"McDowell, Mark" <[EMAIL PROTECTED]> writes:

> I'll preface this with *I am NOT an expert* :)

Me neither.

> The only information I'm aware of is that if the jndi.properties
> file is in the CLASSPATH, it should be found Try adding 
> WEB-INF/classes to the CLASSPATH prior to starting Tomcat...

Yes, I *could* do that, but I don't really want to.  Besides, putting
jndi.properties in the system classpath enables me to find the JNDI
server, but I run into problems later when the system classloader
can't find the EJBHome class I'm trying to load from JNDI! (because
the app's class files aren't in the system classpath)  :-(

Thanks anyway, though.  Anybody else have any suggestions?

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Connection reset by peer

2001-11-02 Thread Steve Brunton

"Nakhate, Monali" wrote:
> 
> hello i am encountering this problem,and believe me,i have xhausted this
> forum..and lloked for all possible solutions.Finally i am posting this
> to find some help i have deployed a JSP(BC4J JSP application developed
> in JDeveloper 3.2.3) application to Tomcat 3.2.3. the application runs
> fine sometimes,but sometimes,when i try to refresh a jsp page,the jsp
> page outputs only part of the page.The full page is not seen,if i see
> the source of th page,i see Error:null and in Tomcat Console i see
> IOException,Connection reset by peer if i keep refreshing the page,it
> loads the complete page at some point.Otherwise i have to restart my
> appliation and keep struggling again. Any help for this? Regards Monali
> 


  How long is it taking the JSP page to generate and display? Usually
the "Connection Reset by Peer" is because the luser on the other side of
the browser has pressed the stop button in the middle of a request. It
started to show up alot more with HTTP/1.1 and request pipelining. If
it's taking a long time for the JSP to generate could the browser be
timing out and shutting down the connection? Are you using MSIE? It has
some really bad Keep Alive logic in it (at least with the 5.x strain, I
haven't tested out the 6.x strain fully yet). 
  And get the DirecTV US people to send TheWB and UPN to us folks in
Atlanta. Buffy and Angel and Smallville over Rabbit Ears sucks.


-- 
Steve Brunton   <[EMAIL PROTECTED]>  Phone: 404-827-2756
Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA
CNN Internet Technologies  ICBM: 84W 23' 45" 33N 45' 29"
<*> Reality is an illusion that occurs due to lack of alcohol. <*>

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: TC4, mod_webapp, WebAppDeploy, Path to webapp

2001-11-02 Thread Christian Gothe


>
>Did you recompile and changed also "warp.jar" in your tomcat 4.0
>installation (as described in the README and INSTALL files?)
>
>Pier
>
Hmm, that's great and works... :-)

Thank you!

Christian



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




[Fri Nov 02 18:05:10 2001] [error] K!

2001-11-02 Thread Lauer, Oliver

Hi, 

that's the Apache error message that is logged trying to call the
example-servlet-folder. It's Win NT SP5. Somebody any hint ? 


Thanks
Oliver 

> AXA eSolutions GmbH
> AXA Konzern AG Germany
> Oliver Lauer 
> Web Architect
> Wörthstraße 34
> D-50668 Köln
> Germany
> Tel.: +49 221 148 31277
> Fax: +49 221 148 43963
> Mobil: +49 179 59 064 59
> e-Mail: [EMAIL PROTECTED]
> _
> 
> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: TC4, mod_webapp, WebAppDeploy, Path to webapp

2001-11-02 Thread Pier Fumagalli

Christian Gothe at [EMAIL PROTECTED] wrote:

> 
>> 
>> Did you recompile and changed also "warp.jar" in your tomcat 4.0
>> installation (as described in the README and INSTALL files?)
>> 
>>Pier
> 
> Hmm, that's great and works... :-)

DOH! I knew it... I fixed it last week (and it also comes with a patch to
correctly upload binary files using the com.oreilly.servlets package!)

Pier


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: [Fri Nov 02 18:05:10 2001] [error] K!

2001-11-02 Thread Pier Fumagalli

Lauer, Oliver at [EMAIL PROTECTED] wrote:

> Hi, 
> 
> that's the Apache error message that is logged trying to call the
> example-servlet-folder. It's Win NT SP5. Somebody any hint ?
> 
> [Fri Nov 02 18:05:10 2001] [error] K!

FWICS, that error is NASTY... Seems like a memory pointer allocation
failure... Don't really know...

Pier


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AW: [Fri Nov 02 18:05:10 2001] [error] K!

2001-11-02 Thread Lauer, Oliver

Pier, 

I've heard that you have a new webapp-binary for Win !? 
Where can I find that ? Maybe that fixes that problem. With Win XP I don't
have that problem ! 

Oliver 

> AXA eSolutions GmbH
> AXA Konzern AG Germany
> Oliver Lauer 
> Web Architect
> Wörthstraße 34
> D-50668 Köln
> Germany
> Tel.: +49 221 148 31277
> Fax: +49 221 148 43963
> Mobil: +49 179 59 064 59
> e-Mail: [EMAIL PROTECTED]
> _
> 


-Ursprüngliche Nachricht-
Von: Pier Fumagalli [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 2. November 2001 18:19
An: Tomcat Users List
Betreff: Re: [Fri Nov 02 18:05:10 2001] [error] K!


Lauer, Oliver at [EMAIL PROTECTED] wrote:

> Hi, 
> 
> that's the Apache error message that is logged trying to call the
> example-servlet-folder. It's Win NT SP5. Somebody any hint ?
> 
> [Fri Nov 02 18:05:10 2001] [error] K!

FWICS, that error is NASTY... Seems like a memory pointer allocation
failure... Don't really know...

Pier


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: The Infamous ClassCastException Problem

2001-11-02 Thread Remy Maucherat

> I've noticed a couple of threads about strange ClassCastException
> problems ("Call EJB in OC4J from Tomcat",
> "pulling my hair out re: EJB in tomcat").
>
> I've run into a strange ClassCastException in a slightly different
> context, but it seems that it might be related and might help
> narrow down the problem.
>
> I have an application that is broken into two tomcat web-apps
> (contexts) ("MainApp", "HelperApp").
>
> One thing I am trying to do is have the MainApp populate a
> request with some beans and then include a jsp from HelperApp:
>
>populateRequestWithBeans(); // uses RequestDispatcher.include()
>sc.getRequestDispatcher(TargetPage).include(request, response);
>
> If the TargetPage is in MainApp this works fine.
>
> If the TargetPage is in HelperApp and I run it from my development
> environment (Tomcat 3.2.1) it runs fine (gets context of HelperApp).
>
> If the TargetPage is in HelperApp and I run it in Tomcat 4.0 then
> I get a ClassCastException in TargetPage on the line where the
> TargetPage jsp tries to retrieve the bean (2nd line below):
>
>com.athensgroup.autoweb_projects.ClientInfo ClientInfo = null;
>...
>ClientInfo= (com.athensgroup.autoweb_projects.ClientInfo)
>  pageContext.getAttribute("ClientInfo",PageContext.REQUEST_SCOPE);
>
> The runtime error complains that the object is actually of type
> com.athensgroup.autoweb_projects.ClientInfo
> which is clearly the SAME (textually)!
>
> Since this works in some environments it eliminates issues of typos,
> logic errors, etc in the code.
>
> The key seems to be that the two web-apps think that the same class
> is a different class!  (Both have copies of the SAME class file in their
> WEB-INF\classes directories.

This is normal then. Class foo loaded by class loader A is not castable to
class foo loaded by class loader B (if they are really independent, of
course - if A is the parent of B and B delegates, it will work). You have to
put the class in a spot shared by both webapps (that means the shared class
loader.

> Is there something in Tomcat or the JVM which would make two
> different web-apps think that the same class is not the same class?
> Obviously there is something MORE than just the class name that
> is being used to distinguish them.

Remy


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: AW: [Fri Nov 02 18:05:10 2001] [error] K!

2001-11-02 Thread Pier Fumagalli

Lauer, Oliver at [EMAIL PROTECTED] wrote:

> Pier, 
> 
> I've heard that you have a new webapp-binary for Win !?
> Where can I find that ? Maybe that fixes that problem. With Win XP I don't
> have that problem !

Sorry, but as of this morning, I don't even have a windows machine anymore
:) I don't have the binary...

Pier


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Using mod_webapp with Tomcat 4.0.1

2001-11-02 Thread Weaver, Scott

Hi All,

I searched the mail-archives and could not find any mention of this issue.
I recently attempted to use Tomcat 4.0.1 with Apache 1.3.20 on Win2k
professional.  Everything starts up correclty, except that CPU util goes up
to 100% with most of it (60 - 75%) being used by java.exe and it never
drops.  If remove all config references pertaining to mod_webapp from my
httpd.conf and restart, the cpu is fine.  Has anyone ever seen this kind of
behavior?  Are there any solutions?

p.s.

java -version
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)


Thanks,
Scott

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat 3.2.3 and IIS Win2000

2001-11-02 Thread Slava

Hello all,
I'm new here and realy need your help.
I tried to install ISAPI redirection using Tomcat IIS How To instruction but nothing 
work.
I've checked all of my configuration against Tomcat IIS How To several times - 
looks the same. Maybe I did something wrong but :
  http://localhost/examples/jsp/index.html - does not work.

  http://localhost:8080/examples/jsp/index.html - works.

Here is the isapi.log:
jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of 
/examples/jsp/index.html
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match 
ajp12
[jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a servlet url 
- should
redirect to ajp12
[jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/jsp/index.html] is 
points to the
web-inf directory

And IIS log:
17:05:40 127.0.0.1 GET /jakarta/isapi_redirect.dll+ 404

What did I miss?
Maybe someone has more detail instruction or trobleshooting.
Could you please help me with this installation.

Thanks,
Slava .

 

__
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 3.2.3 and IIS Win2000

2001-11-02 Thread Ratnakar Palle

Looks like the request is not being sent to Tomcat. Can you verify if the
path specified in the jakarta (jakarta is case sensitive) is correct? Also,
try giving the long path (C:\program files) instead of short path
(c:\progra~1\).

Hope this helps.

Thanks,
-Ratnakar


-Original Message-
From: Slava [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 9:35 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 3.2.3 and IIS Win2000


Hello all,
I'm new here and realy need your help.
I tried to install ISAPI redirection using Tomcat IIS How To instruction but
nothing work.
I've checked all of my configuration against Tomcat IIS How To several
times -
looks the same. Maybe I did something wrong but :
  http://localhost/examples/jsp/index.html - does not work.

  http://localhost:8080/examples/jsp/index.html - works.

Here is the isapi.log:
jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
/examples/jsp/index.html
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
match ajp12
[jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a
servlet url - should
redirect to ajp12
[jk_isapi_plugin.c (461)]: HttpFilterProc check if
[/examples/jsp/index.html] is points to the
web-inf directory

And IIS log:
17:05:40 127.0.0.1 GET /jakarta/isapi_redirect.dll+ 404

What did I miss?
Maybe someone has more detail instruction or trobleshooting.
Could you please help me with this installation.

Thanks,
Slava .



__
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 3.2.3 and IIS Win2000

2001-11-02 Thread Larry Isaacs

The IIS log shows a '+' after the ".dll".  I don't think
this is normal.  You may have a trailing space in your
extension_uri registry setting.  I don't know if this
could be the cause of your problem.  You can try using
the auto-generated conf\iis_redirect.reg-auto file to
create the registry settings.  Rename it to iis_redirect.reg,
make any needed modifications to the settings and apply
it to the registry.

Since you are using Win2k, you should *not* add
the "Filter DLLs" registry key which is only for Win98.
Remove it if it has been added.

Cheers,
Larry


> -Original Message-
> From: Slava [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 02, 2001 12:35 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 3.2.3 and IIS Win2000
> 
> 
> Hello all,
> I'm new here and realy need your help.
> I tried to install ISAPI redirection using Tomcat IIS How To 
> instruction but nothing work.
> I've checked all of my configuration against Tomcat IIS How 
> To several times - 
> looks the same. Maybe I did something wrong but :
>   http://localhost/examples/jsp/index.html - does not work.
> 
>   http://localhost:8080/examples/jsp/index.html - works.
> 
> Here is the isapi.log:
> jk_isapi_plugin.c (408)]: HttpFilterProc started
> [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection 
> of /examples/jsp/index.html
> [jk_uri_worker_map.c (345)]: Into 
> jk_uri_worker_map_t::map_uri_to_worker
> [jk_uri_worker_map.c (407)]: 
> jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp12
> [jk_isapi_plugin.c (439)]: HttpFilterProc 
> [/examples/jsp/index.html] is a servlet url - should
> redirect to ajp12
> [jk_isapi_plugin.c (461)]: HttpFilterProc check if 
> [/examples/jsp/index.html] is points to the
> web-inf directory
> 
> And IIS log:
> 17:05:40 127.0.0.1 GET /jakarta/isapi_redirect.dll+ 404
> 
> What did I miss?
> Maybe someone has more detail instruction or trobleshooting.
> Could you please help me with this installation.
> 
> Thanks,
> Slava .
> 
>  
> 
> __
> Do You Yahoo!?
> Find a job, post your resume.
> http://careers.yahoo.com
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: ....how to get tomcat running ? .........

2001-11-02 Thread Jeff Kean

try getting jdk1.3 +

-jeff
- Original Message -
From: "asheesh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 11, 2001 12:39 AM
Subject: Re: how to get tomcat running ? .


> have u changed port from 8080 to 8100 ? if no then try localhost:8080
>
> regards
> asheesh
>
> - Original Message -
> From: sunil <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, October 11, 2001 12:49 PM
> Subject: how to get tomcat running ? .
>
>
> > hi
> >
> > please help me with the following problem.
> > I  use a RedHat Linux 6.2  . JDK 1.2 .
> > Recently i 've downloaded the tomcat4-4.0-1.noarch.rpm and installed it
.
> > but when i tried to start it by "etc/rc.d/init.d/tomcat4 start"
> > it says ok . but i couldn't connect to http://localhost:8100 .
> > i tried "ps aux  " and there was no java process running .
> > the catalina.out log file is given below .
> >
> >
>

> **
> > Starting service Tomcat-Standalone
> > Apache Tomcat/4.0
> > SIGSEGV   11*  segmentation violation
> > stackpointer=0xbfffec64
> >
> > Full thread dump Classic VM (Linux_JDK_1.2_pre-release-v2, native
> threads):
> >  "Finalizer" (TID:0x404ce320, sys_thread_t:0x80cc5f0, state:CW,
native
> > ID:0xc04) prio=8
> > at java.lang.Object.wait(Native Method)
> > at java.lang.ref.ReferenceQueue.remove(Compiled Code)
> > at java.lang.ref.ReferenceQueue.remove(Compiled Code)
> > at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174)
> >  "Reference Handler" (TID:0x404ce3b0, sys_thread_t:0x80c7e38,
> state:CW,
> > native ID:0x803) prio=10
> > at java.lang.Object.wait(Native Method)
> > at java.lang.Object.wait(Compiled Code)
> > at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114)
> >  "SIGQUIT handler" (TID:0x404ce3e0, sys_thread_t:0x80c08d0, state:R,
> > native ID:0x402) prio=5
> >  "main" (TID:0x404ce1e0, sys_thread_t:0x804c048, state:R, native
> > ID:0x400) prio=5
> > at org.apache.catalina.core.StandardContext.setResources(Compiled Code)
> > at org.apache.catalina.core.StandardContext.start(Compiled Code)
> > at org.apache.catalina.core.ContainerBase.start(Compiled Code)
> > at org.apache.catalina.core.ContainerBase.start(Compiled Code)
> > at org.apache.catalina.core.StandardEngine.start(Compiled Code)
> > at org.apache.catalina.core.StandardService.start(Compiled Code)
> > at org.apache.catalina.core.StandardServer.start(Compiled Code)
> > at org.apache.catalina.startup.Catalina.start(Compiled Code)
> > at org.apache.catalina.startup.Catalina.execute(Compiled Code)
> > at org.apache.catalina.startup.Catalina.process(Compiled Code)
> > at java.lang.reflect.Method.invoke(Native Method)
> > at org.apache.catalina.startup.Bootstrap.main(Compiled Code)
> > Monitor Cache Dump:
> >  java.lang.ref.ReferenceQueue$Lock@404CE338/40503D78: 
> > Waiting to be notified:
> > "Finalizer" (0x80cc5f0)
> >  org.apache.catalina.core.StandardHost@404FB600/405DBFC0: owner
"main"
> > (0x804c048) 1 entry
> >  org.apache.catalina.Service[2]: owner "main" (0x804c048) 1 entry
> >   (0x404d3e71): owner "main" (0x804c048) 1 entry
> >  java.lang.ref.Reference$Lock@404CE3C0/405038A8: 
> > Waiting to be notified:
> > "Reference Handler" (0x80c7e38)
> >  org.apache.catalina.core.StandardContext@404F59A8/40605920: owner
> > "main" (0x804c048) 2 entries
> >  org.apache.catalina.core.StandardEngine@404CB6B0/405A2CD0: owner
> > "main" (0x804c048) 2 entries
> >
> >
> > Registered Monitor Dump:
> >  PCMap lock: 
> >  utf8 hash table: 
> >  JNI pinning lock: 
> >  JNI global reference lock: 
> >  BinClass lock: 
> >  Class linking lock: 
> >  System class loader lock: 
> >  Code rewrite lock: 
> >  Heap lock: 
> >  Monitor cache lock: owner "main" (0x804c048) 1 entry
> >  Thread queue lock: owner "main" (0x804c048) 1 entry
> >  Monitor registry: owner "main" (0x804c048) 1 entry
> >
> >
>

> ***
> >
> > please tell me what is wrong with this .
> > how this can be solved .
> >
> > many thanks.
> >Sunil
> >
> >
> >
> >
> >
> >
> > _
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




How do I merge Tomcat 4.0.1 with apache?

2001-11-02 Thread Gabriel J Zimmerman


I am finding little or no documentation on this anywhere on the web.

I want to:
- Have Apache serve the static files 
- Have Tomcat serve dynamic files
- Use a virtual host configuration where each host has its own webapp at
the root level.

Does anyone have any information on how I do this?

Thanks for the help,

Gabriel Zimmerman

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Install Tomcat

2001-11-02 Thread Daniel Kushner

Hi,

How can I install Tomcat as a module in Apache (like PHP). I have Apache
running on Win2K

Thanks...


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: How do I merge Tomcat 4.0.1 with apache?

2001-11-02 Thread Weaver, Scott

Download the mod_webapp binary.  The install.txt has very good instructions.
I takes the place of the old Ajap12

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/win32
/

Scott

-Original Message-
From: Gabriel J Zimmerman [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 12:51 PM
To: [EMAIL PROTECTED]
Subject: How do I merge Tomcat 4.0.1 with apache?



I am finding little or no documentation on this anywhere on the web.

I want to:
- Have Apache serve the static files 
- Have Tomcat serve dynamic files
- Use a virtual host configuration where each host has its own webapp at
the root level.

Does anyone have any information on how I do this?

Thanks for the help,

Gabriel Zimmerman

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: tomcat 4.0.1 & jetspeed

2001-11-02 Thread Craig R. McClanahan

Could you quote the entire exception traceback?  I don't think there is
anything in Tomcat that cares whether or not there is a MANIFEST.MF file
(which would make this a Jetspeed question rather than a Tomcat one), but
the only way to know for sure is to see the stack trace.

Craig


On Thu, 1 Nov 2001, Brad Smith wrote:

> Date: Thu, 1 Nov 2001 19:27:06 -0800
> From: Brad Smith <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: tomcat 4.0.1 & jetspeed
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> I am trying to use the manager app to install the jetspeed war. I apologize
> for a basic question. I have manager functioning properly. I followed these
> steps:
>
> 1. place jetspeed.war in /var/tomcat4/webapps
> 2. Use manager with this url:
> 
>http://localhost:8180/manager/install?path=/jetspeed&war=jar:file:/var/tomcat4/webapps/jetspeed.war!/
>
> A java io exception is returned:
> FAIL - Encountered exception java.io.FileNotFoundException:
> /var/tomcat4/webapps/jetspeed/META-INF/MANIFEST.MF (No such file or directory)
>
>
> Do I need to unpack the war file first? I have tried several variations on
> the above url with out success. Any help is appreciated.
>
> Brad Smith
> [EMAIL PROTECTED]
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
>
> iD8DBQE74hKKz+N9ZUywevwRAoIlAKCESKM9N5GizlaOY3Y9Wp783x9XlQCfSQEH
> /tr7qXLggO1p3rCgRrbrH4s=
> =LTzb
> -END PGP SIGNATURE-
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: disabling shutdown port

2001-11-02 Thread Craig R. McClanahan

The only way to do this would be to embed Tomcat inside your own app
somehow.

By the way, if there *was* such a configuration setting, how would you
plan on shutting Tomcat down?

Craig


On Fri, 2 Nov 2001, Taisto Qvist wrote:

> Date: Fri, 2 Nov 2001 08:51:55 +0100
> From: Taisto Qvist <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: disabling shutdown port
>
> Hi folks.
>
> I was wondering how i completely disable the port the tomcat
> opens, which can be used to to shutdown tomcat.
> I tried changing things in the  entry, but
> i didnt help.
>
> Ideas?
>
> Regards
> Taisto Qvist
> IP Solutions
>
>   
>   / ^  ^ \
>(\| (o)(o) |/)
> +---.OOOooooOOO.-+
> |  Taisto Qvist, IP Solutions AB |
> |  [EMAIL PROTECTED]JobPhone:   +46-(0)8 615 08 60  |
> |or [EMAIL PROTECTED] Fax:+46-(0)8 x  |
> |  http://tcp.ip-solutions.seMobile: +46-(0)708 88 02 63 |
> +--Oooo.+  Address: Bellmansgatan 30 1tr |
> .oooO  (   )|   118 47 Stockholm |
> (   )   ) / |   Sweden   |
>  \ (   (_/  ||
>   \_)   ++
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




FormAuthenticator calling directly from my code

2001-11-02 Thread Evan Swanson


I am would like to use the FormAuthenticator class directly in some of my
code.

I have some unique requirements that are not met by the context based
authentication.

Are there some examples for using this class for authenticating users?

No sense in writing my own right?

Anyway thanks for any help.


Thanks,
Evan

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: ....how to get tomcat running ? .........

2001-11-02 Thread Philippe Muller

I am running into the same types of problems with
Linux 7.0 running on a pentium

Has anyone here installed tomcat4 on Linux on a
pentium boxwhy is this so painful? the previous
install 3 and less were straightforward

Philippe. (totally frustrated)
--- Jeff Kean <[EMAIL PROTECTED]> wrote:
> try getting jdk1.3 +
> 
> -jeff
> - Original Message -
> From: "asheesh" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 11, 2001 12:39 AM
> Subject: Re: how to get tomcat running ?
> .
> 
> 
> > have u changed port from 8080 to 8100 ? if no then
> try localhost:8080
> >
> > regards
> > asheesh
> >
> > - Original Message -
> > From: sunil <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, October 11, 2001 12:49 PM
> > Subject: how to get tomcat running ? .
> >
> >
> > > hi
> > >
> > > please help me with the following problem.
> > > I  use a RedHat Linux 6.2  . JDK 1.2 .
> > > Recently i 've downloaded the
> tomcat4-4.0-1.noarch.rpm and installed it
> .
> > > but when i tried to start it by
> "etc/rc.d/init.d/tomcat4 start"
> > > it says ok . but i couldn't connect to
> http://localhost:8100 .
> > > i tried "ps aux  " and there was no java process
> running .
> > > the catalina.out log file is given below .
> > >
> > >
> >
>

> > **
> > > Starting service Tomcat-Standalone
> > > Apache Tomcat/4.0
> > > SIGSEGV   11*  segmentation violation
> > > stackpointer=0xbfffec64
> > >
> > > Full thread dump Classic VM
> (Linux_JDK_1.2_pre-release-v2, native
> > threads):
> > >  "Finalizer" (TID:0x404ce320,
> sys_thread_t:0x80cc5f0, state:CW,
> native
> > > ID:0xc04) prio=8
> > > at java.lang.Object.wait(Native Method)
> > > at java.lang.ref.ReferenceQueue.remove(Compiled
> Code)
> > > at java.lang.ref.ReferenceQueue.remove(Compiled
> Code)
> > > at
>
java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174)
> > >  "Reference Handler" (TID:0x404ce3b0,
> sys_thread_t:0x80c7e38,
> > state:CW,
> > > native ID:0x803) prio=10
> > > at java.lang.Object.wait(Native Method)
> > > at java.lang.Object.wait(Compiled Code)
> > > at
>
java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114)
> > >  "SIGQUIT handler" (TID:0x404ce3e0,
> sys_thread_t:0x80c08d0, state:R,
> > > native ID:0x402) prio=5
> > >  "main" (TID:0x404ce1e0,
> sys_thread_t:0x804c048, state:R, native
> > > ID:0x400) prio=5
> > > at
>
org.apache.catalina.core.StandardContext.setResources(Compiled
> Code)
> > > at
>
org.apache.catalina.core.StandardContext.start(Compiled
> Code)
> > > at
>
org.apache.catalina.core.ContainerBase.start(Compiled
> Code)
> > > at
>
org.apache.catalina.core.ContainerBase.start(Compiled
> Code)
> > > at
>
org.apache.catalina.core.StandardEngine.start(Compiled
> Code)
> > > at
>
org.apache.catalina.core.StandardService.start(Compiled
> Code)
> > > at
>
org.apache.catalina.core.StandardServer.start(Compiled
> Code)
> > > at
> org.apache.catalina.startup.Catalina.start(Compiled
> Code)
> > > at
>
org.apache.catalina.startup.Catalina.execute(Compiled
> Code)
> > > at
>
org.apache.catalina.startup.Catalina.process(Compiled
> Code)
> > > at java.lang.reflect.Method.invoke(Native
> Method)
> > > at
> org.apache.catalina.startup.Bootstrap.main(Compiled
> Code)
> > > Monitor Cache Dump:
> > > 
> java.lang.ref.ReferenceQueue$Lock@404CE338/40503D78:
> 
> > > Waiting to be notified:
> > > "Finalizer" (0x80cc5f0)
> > > 
>
org.apache.catalina.core.StandardHost@404FB600/405DBFC0:
> owner
> "main"
> > > (0x804c048) 1 entry
> > >  org.apache.catalina.Service[2]: owner
> "main" (0x804c048) 1 entry
> > >   (0x404d3e71): owner "main"
> (0x804c048) 1 entry
> > > 
> java.lang.ref.Reference$Lock@404CE3C0/405038A8:
> 
> > > Waiting to be notified:
> > > "Reference Handler" (0x80c7e38)
> > > 
>
org.apache.catalina.core.StandardContext@404F59A8/40605920:
> owner
> > > "main" (0x804c048) 2 entries
> > > 
>
org.apache.catalina.core.StandardEngine@404CB6B0/405A2CD0:
> owner
> > > "main" (0x804c048) 2 entries
> > >
> > >
> > > Registered Monitor Dump:
> > >  PCMap lock: 
> > >  utf8 hash table: 
> > >  JNI pinning lock: 
> > >  JNI global reference lock: 
> > >  BinClass lock: 
> > >  Class linking lock: 
> > >  System class loader lock: 
> > >  Code rewrite lock: 
> > >  Heap lock: 
> > >  Monitor cache lock: owner "main"
> (0x804c048) 1 entry
> > >  Thread queue lock: owner "main" (0x804c048)
> 1 entry
> > >  Monitor registry: owner "main" (0x804c048)
> 1 entry
> > >
> > >
> >
>

> > ***
> > >
> > > please tell me what is wrong with this .
> > > how this can be solved .
> > >
> > > many thanks.
> > >Sunil
> > >
> > >
> > >
> > >
> > >
> > >
> > >
>
___

Mod_webapp configuration

2001-11-02 Thread Cracauer, David D.

I am trying to setup mod_webapp with apache and can't figure out the config.

I also cannot find any in-depth documentation.
I can access my app directly at
http://localhost:8080/servlet/vue.web.core.VueWebPageServlet

but to get to it through apache I have to use
http://localhost/servlet/servlet/vue.web.core.VueWebPageServlet

here are the relevant lines from my httpd.conf

WebAppConnection conn  warp  localhost:
WebAppDeploy ROOT conn /servlet

How can I fix this?
Sorry if this is stupid...

Dave

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




show country / region by getRemoteAddr(), in Tomcat ?

2001-11-02 Thread Miao, Franco CAWS:EX

how to show country / region information in Jsp by getting remote IP address
with getRemoteAddr() ? Like the system get a remote IP address, and Jsp can
show up it from where. Does Tomcat can help this out?

Thanks!


Franco

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Mod_webapp configuration

2001-11-02 Thread Weaver, Scott

Dave,

Tomcat is working correctly.  Just because you have mapped to a WebAppDeploy
URL /servlet does not mean it will invoke a servlet class.  If you want to
be able to do something like this
http://localhost/servlet/vue.web.core.VueWebPageServlet

httpd.conf should look something like this

WebAppConnection conn  warp  localhost:8008
WebAppDeploy ROOT  conn  /


here is a named vhost example from my httpd.conf.

LoadModule webapp_module modules/mod_webapp.so
AddModule mod_webapp.c 


ServerName turbine.scottw
DocumentRoot "C:/webapps/Apache Tomcat 4.0/webapps/newportal"
WebAppConnection conn  warp  localhost:8008
WebAppDeploy ROOT  conn  /


 DirectoryIndex index.html




Scott

-Original Message-
From: Cracauer, David D. [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 1:48 PM
To: Tomcat Users List (E-mail)
Subject: Mod_webapp configuration


I am trying to setup mod_webapp with apache and can't figure out the config.

I also cannot find any in-depth documentation.
I can access my app directly at
http://localhost:8080/servlet/vue.web.core.VueWebPageServlet

but to get to it through apache I have to use
http://localhost/servlet/servlet/vue.web.core.VueWebPageServlet

here are the relevant lines from my httpd.conf

WebAppConnection conn  warp  localhost:
WebAppDeploy ROOT conn /servlet

How can I fix this?
Sorry if this is stupid...

Dave

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 3.2.3 and IIS Win2000

2001-11-02 Thread Slava

The path is correct.

Here is another piece of log:
[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of 
/examples/jsp/index.html
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match 
ajp12
[jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a servlet url 
- should
redirect to ajp12
[jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/jsp/index.html] is 
points to the
web-inf directory
[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of 
/jakarta/isapi_redirect.dll 
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (435)]: jk_uri_worker_map_t::map_uri_to_worker, done without a 
match
[jk_isapi_plugin.c (452)]: HttpFilterProc [/jakarta/isapi_redirect.dll ] is not a 
servlet url
[jk_isapi_plugin.c (461)]: HttpFilterProc check if [/jakarta/isapi_redirect.dll ] is 
points to the
web-inf directory


--- Ratnakar  Palle <[EMAIL PROTECTED]> wrote:
> Looks like the request is not being sent to Tomcat. Can you verify if the
> path specified in the jakarta (jakarta is case sensitive) is correct? Also,
> try giving the long path (C:\program files) instead of short path
> (c:\progra~1\).
> 
> Hope this helps.
> 
> Thanks,
> -Ratnakar
> 
> 
> -Original Message-
> From: Slava [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 02, 2001 9:35 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 3.2.3 and IIS Win2000
> 
> 
> Hello all,
> I'm new here and realy need your help.
> I tried to install ISAPI redirection using Tomcat IIS How To instruction but
> nothing work.
> I've checked all of my configuration against Tomcat IIS How To several
> times -
> looks the same. Maybe I did something wrong but :
>   http://localhost/examples/jsp/index.html - does not work.
> 
>   http://localhost:8080/examples/jsp/index.html - works.
> 
> Here is the isapi.log:
> jk_isapi_plugin.c (408)]: HttpFilterProc started
> [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
> /examples/jsp/index.html
> [jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker
> [jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
> match ajp12
> [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a
> servlet url - should
> redirect to ajp12
> [jk_isapi_plugin.c (461)]: HttpFilterProc check if
> [/examples/jsp/index.html] is points to the
> web-inf directory
> 
> And IIS log:
> 17:05:40 127.0.0.1 GET /jakarta/isapi_redirect.dll+ 404
> 
> What did I miss?
> Maybe someone has more detail instruction or trobleshooting.
> Could you please help me with this installation.
> 
> Thanks,
> Slava .
> 
> 
> 
> __
> Do You Yahoo!?
> Find a job, post your resume.
> http://careers.yahoo.com
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


__
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: The Infamous ClassCastException Problem

2001-11-02 Thread Frank Lawlor

> This is normal then. Class foo loaded by class 
> loader A is not castable to class foo loaded 
> by class loader B (if they are really independent, 
> of course - if A is the parent of B and B 
> delegates, it will work). You have to
> put the class in a spot shared by both 
> webapps (that means the shared class loader.
> 
> Remy

Then how does this work in a general client-
server relationship such as RMI servers, EJB
servers, etc.  Don't they usually just give
you a jar with the classes that you add to 
your client?

Having to use the exact same file seems 
excessive???!  Isn't there some way to allow
use of a copy of the class?
 
 -- Frank


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Embedding Tomcat with intra-app Servlets

2001-11-02 Thread Craig R. McClanahan

Here's the Tomcat 4 approach -- 3.x has similar things but I'm not as
familiar with the details.

You have two fundamental choices, based on whether you want to use
server.xml to configure Tomcat or not:

* To use server.xml, you just need to set up an environment
  like the "catalina.sh" script does, and call

Bootstrap.main("start");

  in a separate thread.  When you ultimately want to shut things
  down, call:

Bootstrap.main("stop");

* To configure all the components yourself, you will use the
  org.apache.catalina.startup.Embedded class (similar to
  EmbeddedTomcat in 3.x).  This class includes a dummy main()
  program that demonstrates how you do things.

For actually processing the requests yourself, you would only need a
single webapp (the ROOT webapp) with a web.xml that configures your
servlet to handle all requests (i.e. a  with a pattern of
"/*").  There's no need for interceptors (3.x) or valves (4.x) to do this.

I would recommend you implement the application logic as a standard
servlet, in its own class, and separate the startup/shutdown issues out to
their own class.  There is nothing to be gained by combining them.

Craig


On Fri, 2 Nov 2001, Todd Wright wrote:

> Date: Fri, 2 Nov 2001 12:25:23 -0400
> From: Todd Wright <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Embedding Tomcat with intra-app Servlets
>
>
> I'd like to embed Tomcat within my Java application, but where some Servlet
> requests would *directly* call into my running application's code (+data).
> The current "EmbededTomcat" support seems to be aimed at launching a
> stand-alone Tomcat that only supports file contexts, with no callback support
> for access to the launching application.
>
> I'm thinking of Tomcat 3.3, 'though 4.0 could be used if required.
>
> For example, suppose I have a calendar application that I'd like to add web
> support.  Inside my application I have all the data I need, and I'd like my
> servlets to directly access my the data structures.  Flattening the data out
> to an external database/filesystem is not an option.  All Servlet requests
> would funnel into my application so I can call my own (inner) Servlet.   I
> still want Tomcat to do the HTTP parsing, SSL, sessions, Servlet-API, etc.
> My application must load the internal Servlet instance.
>
> Can I use an interceptor, or (if needed) pull apart "EmbededTomcat"?  Is
> there an example of how to do this?  I hope it's clear why this would be a
> very useful embedding scenario...
>
> Pseudocode:
>
> public class MyApp implements Runnable {
>
>/** launcher */
>public static void main(String[] args) {
>// launch!
>   (new MyApp()).run();
>}
>
>public void run() {
>   // create my internal Servlet before Tomcat is launched
>   //
>   // this inner class is defined later in this method
>   Servlet myServlet = new MyServlet();
>
>   // launch Tomcat
>   EmbeddedTomcat et = new EmbeddedTomcat();
>   et.setArgs(new String[] {"start"});
>   et.execute();
>
>   //
>   // hand-waving here!   Could be moved to before the "et.execute()".
>   //
>   insert myServlet into Tomcat to handle all "/*" requests
>
>   //
>   //  I now want "myServlet" to be called with all "/*" requests
>   //
>
>   // run forever in this example...
>}
>
>/**
> * sample internal data method.
> *
> * MyServlet will call this method
> */
>public String getInternalString() {
>   return "foo";
>}
>
>/**
> * My inner servlet -- has access back into "MyApp"
> *  instance (non-static).
> */
>private class MyServlet extends HttpServlet {
>   public void doGet(
>   HttpServletRequest request,
>   HttpServletResponse response)
>throws IOException, ServletException  {
>response.setContentType("text/html");
>PrintWriter out = response.getWriter();
>out.println("Internal String is ");
>
>// access internal MyApp method/data!
>out.println(getInternalString());
>
>out.println("");
>}
> }
>
> Thanks!
>Todd
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 3.2.3 and IIS Win2000

2001-11-02 Thread Larry Isaacs

The "In HttpFilterProc test redirection of /jakarta/isapi_redirect.dll"
in the log means that you created the "Filter DLLs" key which should be
done only for Win9x.  Delete this key and it will work better.

Larry

> -Original Message-
> From: Slava [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 02, 2001 2:19 PM
> To: Tomcat Users List
> Subject: RE: Tomcat 3.2.3 and IIS Win2000
> 
> 
> The path is correct.
> 
> Here is another piece of log:
> [jk_isapi_plugin.c (408)]: HttpFilterProc started
> [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection 
> of /examples/jsp/index.html
> [jk_uri_worker_map.c (345)]: Into 
> jk_uri_worker_map_t::map_uri_to_worker
> [jk_uri_worker_map.c (407)]: 
> jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp12
> [jk_isapi_plugin.c (439)]: HttpFilterProc 
> [/examples/jsp/index.html] is a servlet url - should
> redirect to ajp12
> [jk_isapi_plugin.c (461)]: HttpFilterProc check if 
> [/examples/jsp/index.html] is points to the
> web-inf directory
> [jk_isapi_plugin.c (408)]: HttpFilterProc started
> [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection 
> of /jakarta/isapi_redirect.dll 
> [jk_uri_worker_map.c (345)]: Into 
> jk_uri_worker_map_t::map_uri_to_worker
> [jk_uri_worker_map.c (435)]: 
> jk_uri_worker_map_t::map_uri_to_worker, done without a match
> [jk_isapi_plugin.c (452)]: HttpFilterProc 
> [/jakarta/isapi_redirect.dll ] is not a servlet url
> [jk_isapi_plugin.c (461)]: HttpFilterProc check if 
> [/jakarta/isapi_redirect.dll ] is points to the
> web-inf directory
> 
> 
> --- Ratnakar  Palle <[EMAIL PROTECTED]> wrote:
> > Looks like the request is not being sent to Tomcat. Can you 
> verify if the
> > path specified in the jakarta (jakarta is case sensitive) 
> is correct? Also,
> > try giving the long path (C:\program files) instead of short path
> > (c:\progra~1\).
> > 
> > Hope this helps.
> > 
> > Thanks,
> > -Ratnakar
> > 
> > 
> > -Original Message-
> > From: Slava [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, November 02, 2001 9:35 AM
> > To: [EMAIL PROTECTED]
> > Subject: Tomcat 3.2.3 and IIS Win2000
> > 
> > 
> > Hello all,
> > I'm new here and realy need your help.
> > I tried to install ISAPI redirection using Tomcat IIS How 
> To instruction but
> > nothing work.
> > I've checked all of my configuration against Tomcat IIS How 
> To several
> > times -
> > looks the same. Maybe I did something wrong but :
> >   http://localhost/examples/jsp/index.html - does not work.
> > 
> >   http://localhost:8080/examples/jsp/index.html - works.
> > 
> > Here is the isapi.log:
> > jk_isapi_plugin.c (408)]: HttpFilterProc started
> > [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
> > /examples/jsp/index.html
> > [jk_uri_worker_map.c (345)]: Into 
> jk_uri_worker_map_t::map_uri_to_worker
> > [jk_uri_worker_map.c (407)]: 
> jk_uri_worker_map_t::map_uri_to_worker, Found a
> > match ajp12
> > [jk_isapi_plugin.c (439)]: HttpFilterProc 
> [/examples/jsp/index.html] is a
> > servlet url - should
> > redirect to ajp12
> > [jk_isapi_plugin.c (461)]: HttpFilterProc check if
> > [/examples/jsp/index.html] is points to the
> > web-inf directory
> > 
> > And IIS log:
> > 17:05:40 127.0.0.1 GET /jakarta/isapi_redirect.dll+ 404
> > 
> > What did I miss?
> > Maybe someone has more detail instruction or trobleshooting.
> > Could you please help me with this installation.
> > 
> > Thanks,
> > Slava .
> > 
> > 
> > 
> > __
> > Do You Yahoo!?
> > Find a job, post your resume.
> > http://careers.yahoo.com
> > 
> > --
> > To unsubscribe:   
> 
> > For additional commands: 
> 
> > Troubles with the list: 
> 
> > 
> > 
> > --
> > To unsubscribe:   
> 
> > For additional commands: 
> 
> > Troubles with the list: 
> 
> > 
> 
> 
> __
> Do You Yahoo!?
> Find a job, post your resume.
> http://careers.yahoo.com
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: The Infamous ClassCastException Problem

2001-11-02 Thread Craig R. McClanahan



On Fri, 2 Nov 2001, Frank Lawlor wrote:

> Date: Fri, 2 Nov 2001 13:20:07 -0600
> From: Frank Lawlor <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: 'Remy Maucherat' <[EMAIL PROTECTED]>,
>  "Tomcat (E-mail)" <[EMAIL PROTECTED]>
> Subject: RE: The Infamous ClassCastException Problem
>
> > This is normal then. Class foo loaded by class
> > loader A is not castable to class foo loaded
> > by class loader B (if they are really independent,
> > of course - if A is the parent of B and B
> > delegates, it will work). You have to
> > put the class in a spot shared by both
> > webapps (that means the shared class loader.
> >
> > Remy
>
> Then how does this work in a general client-
> server relationship such as RMI servers, EJB
> servers, etc.  Don't they usually just give
> you a jar with the classes that you add to
> your client?
>

> Having to use the exact same file seems
> excessive???!  Isn't there some way to allow
> use of a copy of the class?
>

The only way to use one copy of a class between webapps is to put that
class in a *parent* classloader -- for Tomcat, that means put the shared
class in the "lib"  directory, which is loaded into a classloader that is
the parent of the webapp class loader for each app.

For more info on class loading in Tomcat, see:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html

>  -- Frank
>

Craig


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Automatic generation of user webapps (http://localhost/~user/webapp)

2001-11-02 Thread =?646?q?Christoph_Sch=3Fnfeld?=

In Chapter 9.1 the Java Servlet Specification 2.3 says:

"A servlet container can establish rules for automatic generation of web applications. 
For example a ~user/ mapping could be used to map to a web application based at 
/home/user/public_html/."

Does Tomcat 4 support this? I know, the specification explicitly says "can," but this 
feature would be really useful! All servlet developers could just put their web 
applications into $HOME/webapps and Tomcat would automatically create them a context 
on startup.

The WebAppDeploy directive does not seem to support this. Can it be achieved somehow 
else?

thanks,
Christoph
---
This message has been posted through the Jakarta Tomcat 4.0 F.A.Q.
on line forum, and can be seen at:

For more informations about the on-line Jakarta forums, please go to:

---

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




initial construction of tomcat

2001-11-02 Thread Eric Strain

Hi All:
(new to TC) please forgive my ignorance of this topic :)
I have downloaded the tomcat binaries, configured my environment and run 
startup.bat from my tomcat directory. Now I have a tomcat.java file listed. 
How do I build TC into an executable servlet container? I usually use the 
following command line to construct my class files
C:\jdk11.8\bin>javac.exe MyProject.java
but that does not work in this case. Any help is appreciated

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Mod_webapp configuration

2001-11-02 Thread Cracauer, David D.

I was afraid of that..
I want all of my html served by apache, and anything in /servlet to be
served from tomcat as an app..

I am trying to replace Jrun, and this is how it needs to work for me to be
successful.

Is it possible?



-Original Message-
From: Weaver, Scott [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 1:00 PM
To: 'Tomcat Users List'
Subject: RE: Mod_webapp configuration


Dave,

Tomcat is working correctly.  Just because you have mapped to a WebAppDeploy
URL /servlet does not mean it will invoke a servlet class.  If you want to
be able to do something like this
http://localhost/servlet/vue.web.core.VueWebPageServlet

httpd.conf should look something like this

WebAppConnection conn  warp  localhost:8008
WebAppDeploy ROOT  conn  /


here is a named vhost example from my httpd.conf.

LoadModule webapp_module modules/mod_webapp.so
AddModule mod_webapp.c 


ServerName turbine.scottw
DocumentRoot "C:/webapps/Apache Tomcat 4.0/webapps/newportal"
WebAppConnection conn  warp  localhost:8008
WebAppDeploy ROOT  conn  /


 DirectoryIndex index.html




Scott

-Original Message-
From: Cracauer, David D. [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 1:48 PM
To: Tomcat Users List (E-mail)
Subject: Mod_webapp configuration


I am trying to setup mod_webapp with apache and can't figure out the config.

I also cannot find any in-depth documentation.
I can access my app directly at
http://localhost:8080/servlet/vue.web.core.VueWebPageServlet

but to get to it through apache I have to use
http://localhost/servlet/servlet/vue.web.core.VueWebPageServlet

here are the relevant lines from my httpd.conf

WebAppConnection conn  warp  localhost:
WebAppDeploy ROOT conn /servlet

How can I fix this?
Sorry if this is stupid...

Dave

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Automatic generation of user webapps (http://localhost/~user/webapp)

2001-11-02 Thread Craig R. McClanahan



On -1 xxx -1, [646] Christoph Sch?nfeld wrote:

> From: "[646] Christoph Sch?nfeld" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Automatic generation of user webapps
> (http://localhost/~user/webapp)
>
> In Chapter 9.1 the Java Servlet Specification 2.3 says:
>
> "A servlet container can establish rules for automatic generation of
> web applications. For example a ~user/ mapping could be used to map to
> a web application based at /home/user/public_html/."
>
> Does Tomcat 4 support this? I know, the specification explicitly says
> "can," but this feature would be really useful! All servlet developers
> could just put their web applications into $HOME/webapps and Tomcat
> would automatically create them a context on startup.
>
> The WebAppDeploy directive does not seem to support this. Can it be
> achieved somehow else?
>

Docs for doing this in Tomcat 4 (stand alone) are available at:

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

Scroll down to "User Web Applications" at the bottom.  To do this through
Apache, you'd need to convince Apache to do some things for you -- I don't
know how that would be done.

> thanks,
> Christoph

Craig


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Mod_webapp configuration

2001-11-02 Thread Steve Brunton

"Cracauer, David D." wrote:
> 
> I was afraid of that..
> I want all of my html served by apache, and anything in /servlet to be
> served from tomcat as an app..
> 
> I am trying to replace Jrun, and this is how it needs to work for me to be
> successful.
> 
> Is it possible?
> 

  If you don't run mod_webapp and run mod_jk as the connector between
Apache and Tomcat you can do exactly what you want. I've actually just
stepped back my config from mod_webapp to mod_jk because of this. 

-- 
Steve Brunton   <[EMAIL PROTECTED]>  Phone: 404-827-2756
Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA
CNN Internet Technologies  ICBM: 84W 23' 45" 33N 45' 29"
<*> Many people quit looking for work when they find a job.  <*>

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Embedding Tomcat with intra-app Servlets

2001-11-02 Thread Todd Wright


I'm not sure this solves my problem...

If I pull my Servlet out of my application's code then the instance will be 
constructed and loaded by Tomcat as usual, but then the Servlet can't access 
my application's internal data.  I need the Servlet to have a callback into 
my application for it to obtain the data required for generating the response.

As a more complex example, imagine creating an HTTP front-end to, say, a 
Java-based text editor.  For the Servlet to see what's happening within the 
editor -- which file is being edited, where's the cursor, etc --it'll need 
direct access the editor's data structures.  Spilling and updating this data 
to a shared file/database/whatever would be wasteful; in my intended 
application there's 100+ megs of constantly changing data that the Servlet 
may need to examine when generating its response.

Todd

On Friday 02 November 2001 14:10, Craig R. McClanahan wrote:
> Here's the Tomcat 4 approach -- 3.x has similar things but I'm not as
> familiar with the details.
>
> You have two fundamental choices, based on whether you want to use
> server.xml to configure Tomcat or not:
>
> * To use server.xml, you just need to set up an environment
>   like the "catalina.sh" script does, and call
>
> Bootstrap.main("start");
>
>   in a separate thread.  When you ultimately want to shut things
>   down, call:
>
> Bootstrap.main("stop");
>
> * To configure all the components yourself, you will use the
>   org.apache.catalina.startup.Embedded class (similar to
>   EmbeddedTomcat in 3.x).  This class includes a dummy main()
>   program that demonstrates how you do things.
>
> For actually processing the requests yourself, you would only need a
> single webapp (the ROOT webapp) with a web.xml that configures your
> servlet to handle all requests (i.e. a  with a pattern of
> "/*").  There's no need for interceptors (3.x) or valves (4.x) to do this.
>
> I would recommend you implement the application logic as a standard
> servlet, in its own class, and separate the startup/shutdown issues out to
> their own class.  There is nothing to be gained by combining them.
>
> Craig
>
> On Fri, 2 Nov 2001, Todd Wright wrote:
> > Date: Fri, 2 Nov 2001 12:25:23 -0400
> > From: Todd Wright <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: Embedding Tomcat with intra-app Servlets
> >
> >
> > I'd like to embed Tomcat within my Java application, but where some
> > Servlet requests would *directly* call into my running application's code
> > (+data). The current "EmbededTomcat" support seems to be aimed at
> > launching a stand-alone Tomcat that only supports file contexts, with no
> > callback support for access to the launching application.
> >
> > I'm thinking of Tomcat 3.3, 'though 4.0 could be used if required.
> >
> > For example, suppose I have a calendar application that I'd like to add
> > web support.  Inside my application I have all the data I need, and I'd
> > like my servlets to directly access my the data structures.  Flattening
> > the data out to an external database/filesystem is not an option.  All
> > Servlet requests would funnel into my application so I can call my own
> > (inner) Servlet.   I still want Tomcat to do the HTTP parsing, SSL,
> > sessions, Servlet-API, etc. My application must load the internal Servlet
> > instance.
> >
> > Can I use an interceptor, or (if needed) pull apart "EmbededTomcat"?  Is
> > there an example of how to do this?  I hope it's clear why this would be
> > a very useful embedding scenario...
> >
> > Pseudocode:
> >
> > public class MyApp implements Runnable {
> >
> >/** launcher */
> >public static void main(String[] args) {
> >// launch!
> >   (new MyApp()).run();
> >}
> >
> >public void run() {
> >   // create my internal Servlet before Tomcat is launched
> >   //
> >   // this inner class is defined later in this method
> >   Servlet myServlet = new MyServlet();
> >
> >   // launch Tomcat
> >   EmbeddedTomcat et = new EmbeddedTomcat();
> >   et.setArgs(new String[] {"start"});
> >   et.execute();
> >
> >   //
> >   // hand-waving here!   Could be moved to before the
> > "et.execute()". //
> >   insert myServlet into Tomcat to handle all "/*" requests
> >
> >   //
> >   //  I now want "myServlet" to be called with all "/*" requests
> >   //
> >
> >   // run forever in this example...
> >}
> >
> >/**
> > * sample internal data method.
> > *
> > * MyServlet will call this method
> > */
> >public String getInternalString() {
> >   return "foo";
> >}
> >
> >/**
> > * My inner servlet -- has access back into "MyApp"
> > *  instance (non-static).
> > */
> >private class MyServlet extends HttpServl

RE: Tomcat 3.2.3 and IIS Win2000

2001-11-02 Thread Slava

Thanks a lot.
I took off filter and rerun registry.
Now it's working.
Thanks again.
Slava.
  
--- Larry Isaacs <[EMAIL PROTECTED]> wrote:
> The "In HttpFilterProc test redirection of /jakarta/isapi_redirect.dll"
> in the log means that you created the "Filter DLLs" key which should be
> done only for Win9x.  Delete this key and it will work better.
> 
> Larry
> 
> > -Original Message-
> > From: Slava [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, November 02, 2001 2:19 PM
> > To: Tomcat Users List
> > Subject: RE: Tomcat 3.2.3 and IIS Win2000
> > 
> > 
> > The path is correct.
> > 
> > Here is another piece of log:
> > [jk_isapi_plugin.c (408)]: HttpFilterProc started
> > [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection 
> > of /examples/jsp/index.html
> > [jk_uri_worker_map.c (345)]: Into 
> > jk_uri_worker_map_t::map_uri_to_worker
> > [jk_uri_worker_map.c (407)]: 
> > jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp12
> > [jk_isapi_plugin.c (439)]: HttpFilterProc 
> > [/examples/jsp/index.html] is a servlet url - should
> > redirect to ajp12
> > [jk_isapi_plugin.c (461)]: HttpFilterProc check if 
> > [/examples/jsp/index.html] is points to the
> > web-inf directory
> > [jk_isapi_plugin.c (408)]: HttpFilterProc started
> > [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection 
> > of /jakarta/isapi_redirect.dll 
> > [jk_uri_worker_map.c (345)]: Into 
> > jk_uri_worker_map_t::map_uri_to_worker
> > [jk_uri_worker_map.c (435)]: 
> > jk_uri_worker_map_t::map_uri_to_worker, done without a match
> > [jk_isapi_plugin.c (452)]: HttpFilterProc 
> > [/jakarta/isapi_redirect.dll ] is not a servlet url
> > [jk_isapi_plugin.c (461)]: HttpFilterProc check if 
> > [/jakarta/isapi_redirect.dll ] is points to the
> > web-inf directory
> > 
> > 
> > --- Ratnakar  Palle <[EMAIL PROTECTED]> wrote:
> > > Looks like the request is not being sent to Tomcat. Can you 
> > verify if the
> > > path specified in the jakarta (jakarta is case sensitive) 
> > is correct? Also,
> > > try giving the long path (C:\program files) instead of short path
> > > (c:\progra~1\).
> > > 
> > > Hope this helps.
> > > 
> > > Thanks,
> > > -Ratnakar
> > > 
> > > 
> > > -Original Message-
> > > From: Slava [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, November 02, 2001 9:35 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Tomcat 3.2.3 and IIS Win2000
> > > 
> > > 
> > > Hello all,
> > > I'm new here and realy need your help.
> > > I tried to install ISAPI redirection using Tomcat IIS How 
> > To instruction but
> > > nothing work.
> > > I've checked all of my configuration against Tomcat IIS How 
> > To several
> > > times -
> > > looks the same. Maybe I did something wrong but :
> > >   http://localhost/examples/jsp/index.html - does not work.
> > > 
> > >   http://localhost:8080/examples/jsp/index.html - works.
> > > 
> > > Here is the isapi.log:
> > > jk_isapi_plugin.c (408)]: HttpFilterProc started
> > > [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
> > > /examples/jsp/index.html
> > > [jk_uri_worker_map.c (345)]: Into 
> > jk_uri_worker_map_t::map_uri_to_worker
> > > [jk_uri_worker_map.c (407)]: 
> > jk_uri_worker_map_t::map_uri_to_worker, Found a
> > > match ajp12
> > > [jk_isapi_plugin.c (439)]: HttpFilterProc 
> > [/examples/jsp/index.html] is a
> > > servlet url - should
> > > redirect to ajp12
> > > [jk_isapi_plugin.c (461)]: HttpFilterProc check if
> > > [/examples/jsp/index.html] is points to the
> > > web-inf directory
> > > 
> > > And IIS log:
> > > 17:05:40 127.0.0.1 GET /jakarta/isapi_redirect.dll+ 404
> > > 
> > > What did I miss?
> > > Maybe someone has more detail instruction or trobleshooting.
> > > Could you please help me with this installation.
> > > 
> > > Thanks,
> > > Slava .
> > > 
> > > 
> > > 
> > > __
> > > Do You Yahoo!?
> > > Find a job, post your resume.
> > > http://careers.yahoo.com
> > > 
> > > --
> > > To unsubscribe:   
> > 
> > > For additional commands: 
> > 
> > > Troubles with the list: 
> > 
> > > 
> > > 
> > > --
> > > To unsubscribe:   
> > 
> > > For additional commands: 
> > 
> > > Troubles with the list: 
> > 
> > > 
> > 
> > 
> > __
> > Do You Yahoo!?
> > Find a job, post your resume.
> > http://careers.yahoo.com
> > 
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> > 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


__
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

--
To unsubscribe:   

catalina shutdown problem - waiting for instance to be deallocated

2001-11-02 Thread Tsai, Eddie

i would like to stop tomcat4.0 no matter what the states of the servlets
are. here is my situation.

WHILE the LoginServlet is running, client stops the client program that
calls the servlet. i then used 'catalina.sh stop' command to stop tomcat.
the log then showed 

StandardWrapper[LoginServlet]: Waiting for 1 instance(s) to be deallocated

other servlets seemed to be destroyed fine, but not this one. it looks like
it thinks the servlet is still being used, but it is not. after waiting for
a long time, that servlet instance is still not deallocated. so the server
hangs.

is there a way i can set the time limit to wait for a servlet to be
deallocated? or force it to shutdown no matter what?

thanks

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Install Tomcat

2001-11-02 Thread carlos . chaparro


download tomcat 4.0.1 fomr jakarta.apache.org, download the mod_webapp.so
from the same site...
follow the instructions for the webapp connection...
put your apps under the webapps directory... thats all..
ahh you must have apache1.3.2

Carlos Chaparro
Taller Web, Equant
Tel:  6211072
[EMAIL PROTECTED]


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Mod_webapp configuration

2001-11-02 Thread Cracauer, David D.

He comes through again!  
I'll look into mod_jk. I assume I need to use ajpv13.


-Original Message-
From: Steve Brunton [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 1:58 PM
To: Tomcat Users List
Subject: Re: Mod_webapp configuration


"Cracauer, David D." wrote:
> 
> I was afraid of that..
> I want all of my html served by apache, and anything in /servlet to be
> served from tomcat as an app..
> 
> I am trying to replace Jrun, and this is how it needs to work for me to be
> successful.
> 
> Is it possible?
> 

  If you don't run mod_webapp and run mod_jk as the connector between
Apache and Tomcat you can do exactly what you want. I've actually just
stepped back my config from mod_webapp to mod_jk because of this. 

-- 
Steve Brunton   <[EMAIL PROTECTED]>  Phone: 404-827-2756
Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA
CNN Internet Technologies  ICBM: 84W 23' 45" 33N 45' 29"
<*> Many people quit looking for work when they find a job.  <*>

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Mod_webapp configuration

2001-11-02 Thread Steve Brunton

"Cracauer, David D." wrote:
> 
> He comes through again!
> I'll look into mod_jk. I assume I need to use ajpv13.
> 

  I'd use the Ajp13 stuff, but that's just me. You should be able to
find all the latest and greates mod_jk stuff at :

http://cvs.apache.org/snapshots/jakarta-tomcat-connectors/

build, both the .so and the .jar and let 'er rip.

-- 
Steve Brunton   <[EMAIL PROTECTED]>  Phone: 404-827-2756
Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA
CNN Internet Technologies  ICBM: 84W 23' 45" 33N 45' 29"
<*> If God dropped acid, would he see people? <*>

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: The Infamous ClassCastException Problem

2001-11-02 Thread Frank Lawlor

Thanks.  I packaged the classes in a jar and put them
in common\lib and now things work fine.

I'm still curious tho on how RMI/EJB clients manage
to do this without having the same class/classloader.

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




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Embedding Tomcat with intra-app Servlets

2001-11-02 Thread Frank Lawlor

One appraoch for data sharing is to structure the application as 
separate web-apps and use beans in the request (response, session
context, whatever) to pass information back and forth.

I currently have a web-app that gets the original request, populates
the request with needed beans and includes the target page from
the other web app.  Sounds complex, but it is only a couple of lines
of code.  One big advantage is that I can let "non-secure" people 
define the pages making up the backend portion of the app.  Since
they can only use the beans I give then and I update based upon
beans I'll accept, I don't need to worry about inappropriate behavior
by the backend jsps.

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




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Embedding Tomcat with intra-app Servlets

2001-11-02 Thread Craig R. McClanahan



On Fri, 2 Nov 2001, Todd Wright wrote:

> Date: Fri, 2 Nov 2001 15:56:44 -0400
> From: Todd Wright <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: Embedding Tomcat with intra-app Servlets
>
>
> I'm not sure this solves my problem...
>
> If I pull my Servlet out of my application's code then the instance will be
> constructed and loaded by Tomcat as usual, but then the Servlet can't access
> my application's internal data.  I need the Servlet to have a callback into
> my application for it to obtain the data required for generating the response.
>

What's wrong with passing the relevant stuff with static variables?  If
your application classes are visible to webapps (by virtue of being in the
"lib" directory), these static variables and all the correpsonding classes
are visible to both.

> As a more complex example, imagine creating an HTTP front-end to, say, a
> Java-based text editor.  For the Servlet to see what's happening within the
> editor -- which file is being edited, where's the cursor, etc --it'll need
> direct access the editor's data structures.  Spilling and updating this data
> to a shared file/database/whatever would be wasteful; in my intended
> application there's 100+ megs of constantly changing data that the Servlet
> may need to examine when generating its response.
>

It's your app, so architect it the way you want ... but I would do it
differently (essentially backwards from the way you are looking at it).
I would start by designing a standard web application in which your
application logic is embedded.  Then, the only issue becomes, how do I
start the web container up when I needed it?  That's easy to manage, using
either Bootstrap.main() or the embedded class.

> Todd
>

Craig



> On Friday 02 November 2001 14:10, Craig R. McClanahan wrote:
> > Here's the Tomcat 4 approach -- 3.x has similar things but I'm not as
> > familiar with the details.
> >
> > You have two fundamental choices, based on whether you want to use
> > server.xml to configure Tomcat or not:
> >
> > * To use server.xml, you just need to set up an environment
> >   like the "catalina.sh" script does, and call
> >
> > Bootstrap.main("start");
> >
> >   in a separate thread.  When you ultimately want to shut things
> >   down, call:
> >
> > Bootstrap.main("stop");
> >
> > * To configure all the components yourself, you will use the
> >   org.apache.catalina.startup.Embedded class (similar to
> >   EmbeddedTomcat in 3.x).  This class includes a dummy main()
> >   program that demonstrates how you do things.
> >
> > For actually processing the requests yourself, you would only need a
> > single webapp (the ROOT webapp) with a web.xml that configures your
> > servlet to handle all requests (i.e. a  with a pattern of
> > "/*").  There's no need for interceptors (3.x) or valves (4.x) to do this.
> >
> > I would recommend you implement the application logic as a standard
> > servlet, in its own class, and separate the startup/shutdown issues out to
> > their own class.  There is nothing to be gained by combining them.
> >
> > Craig
> >
> > On Fri, 2 Nov 2001, Todd Wright wrote:
> > > Date: Fri, 2 Nov 2001 12:25:23 -0400
> > > From: Todd Wright <[EMAIL PROTECTED]>
> > > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > > To: [EMAIL PROTECTED]
> > > Subject: Embedding Tomcat with intra-app Servlets
> > >
> > >
> > > I'd like to embed Tomcat within my Java application, but where some
> > > Servlet requests would *directly* call into my running application's code
> > > (+data). The current "EmbededTomcat" support seems to be aimed at
> > > launching a stand-alone Tomcat that only supports file contexts, with no
> > > callback support for access to the launching application.
> > >
> > > I'm thinking of Tomcat 3.3, 'though 4.0 could be used if required.
> > >
> > > For example, suppose I have a calendar application that I'd like to add
> > > web support.  Inside my application I have all the data I need, and I'd
> > > like my servlets to directly access my the data structures.  Flattening
> > > the data out to an external database/filesystem is not an option.  All
> > > Servlet requests would funnel into my application so I can call my own
> > > (inner) Servlet.   I still want Tomcat to do the HTTP parsing, SSL,
> > > sessions, Servlet-API, etc. My application must load the internal Servlet
> > > instance.
> > >
> > > Can I use an interceptor, or (if needed) pull apart "EmbededTomcat"?  Is
> > > there an example of how to do this?  I hope it's clear why this would be
> > > a very useful embedding scenario...
> > >
> > > Pseudocode:
> > >
> > > public class MyApp implements Runnable {
> > >
> > >/** launcher */
> > >public static void main(String[] args) {
> > >// launch!
> > >   (new MyApp()).run();
> > >}
> > >
> > >public void run() {
> > >   // create my internal Servlet

Re: catalina shutdown problem - waiting for instance to be deallocated

2001-11-02 Thread Craig R. McClanahan

There was a bug in the 4.0 release that made Tomcat think a servlet was
still in use when it wasn't.  I thought this was fixed in 4.0.1 -- which
are you using?

Craig


On Fri, 2 Nov 2001, Tsai, Eddie wrote:

> Date: Fri, 2 Nov 2001 14:07:33 -0600
> From: "Tsai, Eddie" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: catalina shutdown problem - waiting for instance to be
> deallocate d
>
> i would like to stop tomcat4.0 no matter what the states of the servlets
> are. here is my situation.
>
> WHILE the LoginServlet is running, client stops the client program that
> calls the servlet. i then used 'catalina.sh stop' command to stop tomcat.
> the log then showed
>
> StandardWrapper[LoginServlet]: Waiting for 1 instance(s) to be deallocated
>
> other servlets seemed to be destroyed fine, but not this one. it looks like
> it thinks the servlet is still being used, but it is not. after waiting for
> a long time, that servlet instance is still not deallocated. so the server
> hangs.
>
> is there a way i can set the time limit to wait for a servlet to be
> deallocated? or force it to shutdown no matter what?
>
> thanks
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




  1   2   >