RE : RE : Bugzilla down, can't submit tomcat bug

2002-08-26 Thread Michael

I was able to troubleshoot the problem.  When I trimmed down my summary
to just one paragraph, it worked.  I then tried to add the rest of my
summary to the bug and it hangs.  So something in my summary is screwing
up the processing.  I'm not sure what it is but I submitted the bug with
a reference to the post in the mailing list archives.

Thanks for your help, I had thought bugzilla wasn't working but it
turned out to be a problem with the content of my summary.

Michael


> -Original Message-
> From: Andrew Conrad [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, August 26, 2002 9:06 PM
> To: 'Tomcat Users List'
> Subject: RE: RE : Bugzilla down, can't submit tomcat bug
> 
> 
> I haven't submitted a bug, but new bugs are appearing.  
> Example -> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12046
> 
> The date is 2002-08-26 17:06
> 
> - Andrew
> 
> > -Original Message-
> > From: Michael [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, August 26, 2002 12:09 PM
> > To: 'Tomcat Users List'
> > Subject: RE : Bugzilla down, can't submit tomcat bug
> > 
> > 
> > Did you actually submit a bug?  I tried several times on
> > Friday, Saturday, and again today and each time it takes 
> > about 5 minutes to time out.
> > 
> > The bug I want to submit is for the CATALINA_BASE variable..
> > When I use it my web app is not accessible.  I've posted a 
> > few messages about it but haven't gotten much of a response, 
> > I don't think many people have tried using it.
> > 
> > http://marc.theaimsgroup.com/?l=tomcat-user&m=103000367314894&w=2
> > 
> > 
> > > -Original Message-
> > > From: Andrew Conrad [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, August 26, 2002 5:26 PM
> > > To: 'Tomcat Users List'
> > > Subject: RE: Bugzilla down, can't submit tomcat bug
> > > 
> > > 
> > > Bugzilla seems to be working for me.
> > > 
> > > I read your msg concerning differentiation between SQLException's 
> > > and user login failure.  I don't think it's possible, and I don't 
> > > think it's a bug.  Mainly because not all Realm's use 
> SQLExceptions.  
> > > I think you would have to modify the Realm interface and the 
> > > BaseRealm class to add this functionality.
> > > 
> > > If you are just trying to request an enhancement, that 
> would be the 
> > > place too.
> > > 
> > > - Andrew
> > > 
> > > > -Original Message-
> > > > From: Michael [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, August 26, 2002 11:10 AM
> > > > To: Tomcat Users List
> > > > Subject: Bugzilla down, can't submit tomcat bug
> > > > 
> > > > 
> > > > I've emailed the contact listed on the error page but the email
> > > > bounces back.  I'm not sure what I can do to report a 
> tomcat bug.
> > > > 
> > > > --
> > > > 
> > > > 
> > > http://issues.apache.org/bugzilla/post_bug.cgi
> > > 
> > > Internal Server Error
> > > The server encountered an internal error or 
> misconfiguration and was 
> > > unable to complete your request.
> > > 
> > > Please contact the server administrator, [EMAIL PROTECTED] 
> and inform 
> > > them of the time the error occurred, and anything you might have 
> > > done that may have caused the error.
> > > 
> > > More information about this error may be available in the server 
> > > error log.
> > > 
> > > Additionally, a 400 Bad Request error was encountered while
> > trying to
> > > use an ErrorDocument to handle the request.   
> > > 
> > > 
> > > 
> > > --
> > > To unsubscribe, e-mail:
> > >  [EMAIL PROTECTED]>
> > > For
> > > additional commands, 
> > > e-mail: 
> > > 
> > > 
> > > --
> > > To unsubscribe, e-mail:   
> > >  [EMAIL PROTECTED]>
> > > For
> > > additional commands,
> > > e-mail: 
> > > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> >  [EMAIL PROTECTED]>
> > For
> > additional commands, 
> > e-mail: 
> > 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat Realms with Digested Passwords -Urgent- ( A little longish...)

2002-08-26 Thread ahmet dalli

Hi all,

I am trying to use JDBCRealm to store user login
information in an oracle database. I am working on a
Windows2000 machine, using jdk1.4, and Tomcat4.0.4.

In server.xml, i have this configuration: 
^^

^^

In an Oracle8i database, i have a table called "users"
which has two columns named "user_name" and
"user_pass" ; and yet another one called 
"user_roles" with to columns named "user_name" and
"user_role". 

When i store user passwords in cleartext, everything
works fine.

I want to store passwords in a digested form. So, i
have used the following code to store a user_name :
baris, user_pass : aksu and user_role : director.

^^^
import org.apache.catalina.realm.RealmBase;
import java.io.*;
import java.sql.*;

public class DigestDene {
  public static void main(String[] args) {
   try {
String username = args[0];
String password = args[1];
String role = args[2];
String digested = 
RealmBase.Digest(password, "MD5");
 //Here, code that connects to the database
  /* .. */
stmt.executeUpdate("insert into users values('" +
 username + "', '" + digested + "')");
stmt.executeUpdate("insert into user_roles values
   ('" + username + "', '" + role + "')");
   }
   catch(Exception ex) {}
   }
} 

Then, i have inserted my user's info from the
command-line with :
^^
java DigestDene baris aksu director
^^^
After this, I have these values in the database :
(in table users)
 USER_NAMEUSER_PASS
--- 
baris394e654ca65973f232653fb0008c603d

(in table user_roles)
USER_NAME   USER_ROLE
--- -
baris   director

Lastly, in web.xml i have these lines :
^^^


 Protected Basla Servlet
 
 /servlet/IlkGirisServlet
 


 director


 NONE
  
 
 
  BASIC
  
^
When i try to acces my protected resource, i am
presented with the classic login screen for BASIC
authentication, and after i type "baris" for username
and "aksu" for password, Tomcat doesn't simply let me
in.

Any suggestions or comments will be greatly
appreciated. 

Baris.

__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




setting classpath variable

2002-08-26 Thread randie ursal


hi,

  i have this newbie question.

  here is the scenario, i have a servlet that will read a ".properties" 
file and i make use
  of PropertyResourceBundle to read the value from it.

  the problem is that the PropertyResourceBundle doesn't find the 
properties file.
  the API for ResourceBundle said that my properties file must be set on 
the classpath.
 
  so, how do i set the classpath variable on Tomcat so that my 
properties file will
  be located...i tried placing my properties file on the /lib directory 
of my web application
  but it doesn't work...or do i have to explicitly include it on my 
classpath environment
  variable?

thanks in advance.

  randie
 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: creating virtual hosts - HOW TO?

2002-08-26 Thread neal

Are you referring to the action servlet of Struts?

I just want the default URL to be www.hotel.us rather than
www.hotel.us/index.html.  Granted, they mean the same thing (if index.html
is the default page) ... I just thought it was more graceful for it show
only the URL where possible.

Is there something else you were referring to that I'm not aware of?

Thanks.
Neal


-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 9:37 PM
To: Tomcat Users List
Subject: RE: creating virtual hosts - HOW TO?


Look at struts.

At 02:32 PM 8/26/2002 -0700, you wrote:
>Just one last thing.
>
>Perhaps this is getting picky but ...
>
>currently, Tomcat will forward the URL to the default page I list in the
>web.xml file.  For instance, if I navigate to www.hotel.us ... and the
>default page is index.html ... the URL window will actually show that I've
>been sent to www.hotel.us/index.html. I would prefer that it simply show
>www.hotel.us and figure out which page to display behind the scenes.
>
>Does anyone know how to configure that?
>
>Thanks.
>Neal
>
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: sweeping stale connections - Commons DBCP and Tomcat 4.1.9

2002-08-26 Thread Jay Gardner

Hi Paul,

I don't have experience with this pool, but I have experienced this
disconnection problem with mysql. Got around it using the mysql parameter
autoReconnect=true. I would suggest trying either of the following:

 
   autoReconnect
   true


or


  url
  jdbc:mysql://localhost:3306/javatest?autoReconnect=true


If one is successful, please report back so that we know if it worked for
you or not.


Regards,

--Jay Gardner

-Original Message-
From: Paul Phillips [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 10:04 PM
To: Tomcat Users List
Subject: sweeping stale connections - Commons DBCP and Tomcat 4.1.9

I'm using Tomcat 4.1.9.  I have been having a problem with the DBCP jdbc
connection pool when used with MySQL.  Apparently MySQL kills off stale
connections after an 8 hour period.  According to Mark Matthews (developer
of the jdbc-mysql driver), I need to configure the pool to sweep out the
stale connections, and initiate new ones.

I have looked and looked in vain for documentation for DBCP that would
explain how to set the configuration in my Tomcat server.xml file (using
JNDI) that would enable this.  I can't find anything.  I've tried examining
the source of DBCP, but I'm afraid that I can't figure it out.

My Tomcat server.xml file uses this configuration below, which is right out
of:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-ho
wto.html

>From what I can tell, there are other parameters that  I can enter to force
the sweeping of stale connections.  However, I don't know what they are, or
how to use them.  If anyone can give me an example of the correct syntax
here, I would be very grateful, ( since my webapp dies every night, due to
this problem!)

Thanks --

Paul Phillips

(excerpt of server.xml...)



  

  

  

  factory
  org.apache.commons.dbcp.BasicDataSourceFactory


  maxActive
  100


  maxIdle
  3


  maxWait
  100


 username
 javauser


 password
 javadude



   driverClassName
   org.gjt.mm.mysql.Driver



  url
  jdbc:mysql://localhost:3306/javatest

  



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: OUT OF MEMORY ERROR

2002-08-26 Thread Jay Gardner

Hi Pat,

Not closing a database connection should not run you out of memory, unless
you have ALOT of traffic or no memory to begin with. Connections should time
out after a period of time, if you have relinquished to reference to them.
It is obviously best to close them explicitly when you are finished with
them.

How long does it take before you run out of memory? I seem to recall that
older versions of SUN's jdk had memory leaks when compiling JSP pages. Do
you only run out of memory after new JSP pages have been loaded or existing
ones have been changed? Or is this a slow leak that has some sort of
predictable behavior, like it runs out of memory three days after a restart,
etc...

Could you give more info? Without it, we are just guessing.

--Jay Gardner

-Original Message-
From: Patrick Codere [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 4:15 PM
To: 'Tomcat Users List'
Subject: OUT OF MEMORY ERROR

Hi everyone,

I have been getting this error for the past few weeks without
solving the issue.  But I just found out that I had forgotten to close a
database connection.  Could that have been the problem?  Time will tell, but
what exactly happens when you don't close a db connection?

Thanks for your help.

Pat


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: i can't acces absolute symbolic link created with ln -s comma nd on LINUX

2002-08-26 Thread CouasPhilippe



-Message d'origine-
De: Liu, Xiaoyan [SMTP:[EMAIL PROTECTED]]
Date:   lundi 26 aout 2002 22:43
A:  'Tomcat Users List'
Cc: '[EMAIL PROTECTED]'
Objet:  RE: i can't acces absolute symbolic link created with ln -s comma   nd on 
LINUX

No idea, 
my problem is unresolved, so i don't instal Tomcat 4.1.x
it seems link working, if link is realise with a directory which is under 
webapps directory, perhaps this is a security problems ?
But i don't know
Send me email if you find solution

Philippe






Any ideas on this bug?

I posted exactly the same question before and got no
response. jsp:include seems not working with symlinked
directory.

It works on 4.0 version, but stops working on 4.1 version.
Is it a tomcat bug or coyote bug?

I thought [4.1.9] build with bug fix for #10949 will solve
the problem, but does not seem so.

Thanks.


-Original Message-
From: CouasPhilippe [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 9:57 AM
To: 'Tomcat Users List'
Subject: RE: i can't acces absolute symbolic link created with ln -s
command on LINUX




-Message d'origine-
De: Irina Lishchenko [SMTP:[EMAIL PROTECTED]]
Date:   mercredi 31 juillet 2002 09:59
A:  Tomcat Users List
Objet:  Re: i can't acces absolute symbolic link created with ln -s command
on LINUX

A new Idea for resolving this problem ?

Thanks
Philippe


I have reproduced this situation and have the same problem here

I have made a link to Tomcat examples directory. 
ln -s /path/to/tomcat/webapps/examples example
So with FollowSymLinks and Indexes options I see the direcory context, see 
static files, but as soon as I try to get jsp page I have the same 404 error
[GET /examples/jsp/snp/snoop.jsp HTTP/1.1" 404 687]
And the similar error with servlet examplesThe requested URL 
/examples/servlet/RequestParamExample was not found on this server.

Although I just have noticed that I use TC 4.0.4 where you seem don't have 
this issue


On Wednesday 31 July 2002 08:04, you wrote:
> -Message d'origine-
> De:   Irina Lishchenko [SMTP:[EMAIL PROTECTED]]
> Date: mercredi 31 juillet 2002 07:47
> A:Tomcat Users List
> Objet:Re: i can't acces absolute symbolic link created with ln -s
command
> on LINUX
>
> I use Tomcat 4.1.7 Standalone
> my link is ln -s /appli appli
> and Tomcat is in /usr/bin Directory.
>
> I have exactly same problem with AIX
> I think there is as security parameter somewhere
>
>
> Thanks
>

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: postgresql jndi jdbc getConnection() problem

2002-08-26 Thread Irina Lishchenko

On Monday 26 August 2002 22:47, you wrote:
> I saw one other post on the archives about this but it has no resolution.
>
> I have set up Tomcat 4.0.4 to use the jndi resource factory to use pgsql
> jdbc connection "pooling" (fake pooling).
>
> Whenever I call the second
> line of this code:
> Context ctx = (Context) new InitialContext().lookup("java:comp/env");
> conn = ((DataSource) ctx.lookup("jdbc/IFDB")).getConnection();
>
> I get a "Something unusual has occured to cause the driver to fail. Please
> report this exception: Exception: java.lang.NullPointerException Stack
> Trace: java.lang.NullPointerException at
> org.postgresql.Connection.openConnection(Connection.java:155)"
> error.
>
> My server.xml resource looks like this within the context tag:
>   
> 
>   user
>   kenjackson
> 
> 
>   password
>   29gzy8
> 
> 
>   driverClassName
>   org.postgresql.Driver
> 
> 
>   driverName
>   jdbc:postgresql://postgresql1.eapps.com:5432/
> 
>   
>

First quick look says me that you need one extra line before 
 entry
It should be something like


Do you have it and miss it in you e-mail or you don't have it at all?

> NOTE: I have changed the user parameter to name "username" but that
> doesn't help and the tyrex api asks for "user" so I'm assuming that's
> right.
>
>  and my webapp web.xml:
>   
> 
> Resource reference to a factory for java.sql.Connection
> instances that may be used for talking to a particular
> database that is configured in the server.xml file.
> 
> 
>   jdbc/IFDB
> 
> 
>   javax.sql.DataSource
> 
> 
>   Container
> 
>   
>
> Has anyone else run into a similar problem. From what I have seen on the
> list the Tyrex api is a problem, but I'm currently stuck with it.
>
> thanks,
> Adam Kramer

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: problems with init params

2002-08-26 Thread Rum Pel


>
> 
>   
> message
>   
>   
> Hello
>   
> 

>   message = config.getInitParameter("message");

These two are not compatible. Write the xml removing whitespaces.
   message
   Hello


--rp


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


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: creating virtual hosts - HOW TO?

2002-08-26 Thread micael

Look at struts.

At 02:32 PM 8/26/2002 -0700, you wrote:
>Just one last thing.
>
>Perhaps this is getting picky but ...
>
>currently, Tomcat will forward the URL to the default page I list in the
>web.xml file.  For instance, if I navigate to www.hotel.us ... and the
>default page is index.html ... the URL window will actually show that I've
>been sent to www.hotel.us/index.html. I would prefer that it simply show
>www.hotel.us and figure out which page to display behind the scenes.
>
>Does anyone know how to configure that?
>
>Thanks.
>Neal
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




sweeping stale connections - Commons DBCP and Tomcat 4.1.9

2002-08-26 Thread Paul Phillips

I'm using Tomcat 4.1.9.  I have been having a problem with the DBCP jdbc 
connection pool when used with MySQL.  Apparently MySQL kills off stale 
connections after an 8 hour period.  According to Mark Matthews (developer 
of the jdbc-mysql driver), I need to configure the pool to sweep out the 
stale connections, and initiate new ones.

I have looked and looked in vain for documentation for DBCP that would 
explain how to set the configuration in my Tomcat server.xml file (using 
JNDI) that would enable this.  I can't find anything.  I've tried examining 
the source of DBCP, but I'm afraid that I can't figure it out.

My Tomcat server.xml file uses this configuration below, which is right out 
of:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-ho
wto.html

>From what I can tell, there are other parameters that  I can enter to force 
the sweeping of stale connections.  However, I don't know what they are, or 
how to use them.  If anyone can give me an example of the correct syntax 
here, I would be very grateful, ( since my webapp dies every night, due to 
this problem!)

Thanks --

Paul Phillips

(excerpt of server.xml...)



  

  

  

  factory
  org.apache.commons.dbcp.BasicDataSourceFactory


  maxActive
  100


  maxIdle
  3


  maxWait
  100


 username
 javauser


 password
 javadude



   driverClassName
   org.gjt.mm.mysql.Driver



  url
  jdbc:mysql://localhost:3306/javatest

  



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Confused about Tomcat version numbering

2002-08-26 Thread Craig R. McClanahan

Hi Martin,

On Mon, 26 Aug 2002, Martin Cooper wrote:

> Date: Mon, 26 Aug 2002 19:05:17 -0700
> From: Martin Cooper <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: Confused about Tomcat version numbering
>
> I was trying to figure out which Tomcat 4.1.x I should be downloading, and I
> got myself totally confused about how the versions are numbered.
>
> Looking here:
>
> http://jakarta.apache.org/builds/jakarta-tomcat-4.0/
>
> I find that 'release' contains v4.1.9-beta, 'nightly' contains nothing at
> all, and 'archive' contains the following versions:
>
> v4.1.0-alpha
> v4.1.2-alpha
> v4.1.3-beta
> v4.1.5
> v4.1.6
> v4.1.7-beta
> v4.1.8-beta
>
> This leaves me flummoxed. I see no evidence of a 4.1 release at all, only
> follow-ons to 4.1, which I assume are patch releases, and mostly unfinished
> ones at that.
>
> >From the above list, the most recent stable version of the 4.1.x line would
> appear to be 4.1.6. Is this correct? If not, could someone tell me which one
> I want, and, preferably, explain the numbering system for me?
>

Tomcat 4.1 is using the same release philosphy as the Apache HTTPD server
(and several other Apache projects) -- 4.1.x releases are milestones that
are released and *then* voted on as to quality.  Milestones with
showstopper bugs are abandoned; no 4.1 release has yet been voted as
"general availablility", although 4.1.9 is looking pretty solid.

For comparison, it took 35 dot releases (and over two years) to get to a
general availability release of Apache 2.0.  It shouldn't take that long
for Tomcat 4.1 (especially since it's primarily an incremental release off
the 4.0 codebase, rather than being a majorly new thing).  I'd bet we are
not too far away from GA quality on 4.1, but you know how open source
works ...

> Also, on the web site, I see mention of Tomcat 5.0.x, not yet released.
> Where would I find the code base for the ongoing development of that
> version?

Right now, it's just what you can build from CVS.  There's a
"BUILDING.txt" document in "jakarta-tomcat-5" that outlines all of
the dependencies.  Nobody has had time to get nightly builds started yet.

>
> Thanks!
>
> --
> Martin Cooper

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Confused about Tomcat version numbering

2002-08-26 Thread Martin Cooper

I was trying to figure out which Tomcat 4.1.x I should be downloading, and I
got myself totally confused about how the versions are numbered.

Looking here:

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/

I find that 'release' contains v4.1.9-beta, 'nightly' contains nothing at
all, and 'archive' contains the following versions:

v4.1.0-alpha
v4.1.2-alpha
v4.1.3-beta
v4.1.5
v4.1.6
v4.1.7-beta
v4.1.8-beta

This leaves me flummoxed. I see no evidence of a 4.1 release at all, only
follow-ons to 4.1, which I assume are patch releases, and mostly unfinished
ones at that.

>From the above list, the most recent stable version of the 4.1.x line would
appear to be 4.1.6. Is this correct? If not, could someone tell me which one
I want, and, preferably, explain the numbering system for me?

Also, on the web site, I see mention of Tomcat 5.0.x, not yet released.
Where would I find the code base for the ongoing development of that
version?

Thanks!

--
Martin Cooper


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




mod_jk URL mapping

2002-08-26 Thread Milo Hyson

I've just started working with mod_jk so I apologize if I've overlooked 
something. Is there any way to mount a specific Tomcat context-prefix into a 
specific part of Apache's URL-space? I find the direct mapping of Tomcat's 
context-path-space to Apache's URL-space to be kind of cumbersome. For 
example, if I have a context of /myapp in Tomcat, I can't make it appear at 
/mydir/myapp in Apache -- it's forced to /myapp. The mapping is hardcoded, 
root-to-root.

Now I can control the context path (and subsequently the Apache URL path) in 
Tomcat's server.xml, but it seems rather hokey to change Apache's URL-space 
from somewhere other than within Apache. Not only that, but what if you 
wanted to make only part of a context accessible from Apache? Suppose you 
want /myapp/mysubsystem in Tomcat to be accessed via /mything in Apache? 
Granted, one could set up a redirect or rewrite, but then it would be 
accessible from two points within Apache: /mything AND /myapp/mysubsystem.

I think there needs to be something like a cross between JkMount and Alias. 
For example:

JkMountPath /myapp/mysubsystem /mything ajp13
JkMountPath /myapp/myothersubsystem /myotherthing ajp13

Is this already implemented in mod_jk, or is there another way to do it? Any 
advice would be appreciated.

-- 
Milo Hyson
CyberLife Labs, LLC

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Design Questions..

2002-08-26 Thread Michael E. Locasto

The Tomcat distribution has great docs. There is a tutorial on how to
develop a simple app also. Also, you may want to check out Sun's Java
tutorial on Servlets:

http://java.sun.com/docs/books/tutorial/servlets/


Enjoy!

Michael

- Original Message -
From: "Michael Hanna" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, August 26, 2002 8:00 PM
Subject: Re: Design Questions..


> thanks, I think I'm starting to understand how all this stuff is
> supposed to work...
>
> Michael
>
> On Monday, August 26, 2002, at 05:59  PM, Michael E. Locasto wrote:
>
> > Michael,
> >
> > I'm sure everyone else is gonna tell you this too, but here are some
> > pointers from just glancing over the code.
> >
> > - set up your db connection in the init() method, not doGet().
> > doGet()
> > is executed every time the servlet is called with an HTTP GET. So,
> > effectively, you are loading the driver and creating a connection and
> > DBThing object and blah blah blah every time your servlet is called.
> > That's
> > a performance killer.
> >
> > - better yet, use a Connection Pool that's created on startup. Write
> > your own, or there are many available. I'm sure others will provide
> > links...
> >
> > - as far as your question: I'm assuming you're using an HTML form to
> > POST/GET to the servlet. There are alot of ways you can go, but a
> > simple one
> > is to have a parameter called 'databaseaction' or whatever, and that
> > indicates which operation the servlet will perform from it's doGet() or
> > doPost(). Alternatvely, you can have a different HTML form/page for each
> > action that calls
> > the servlet (or a different servlet, although that's pretty inefficient)
> > with a different parameter.
> >
> >>
> >> This is easy enough, but how do I have the servlet update its own
> >> output
> >> in the web browser so that it reflects the new changes? Is there a
> >> refresh command or something.
> >
> > You can have the servlet (or JSP) just call itself, and at the end of
> > processing, just display whatever you were going to display normally.
> > Servlets are based on a request/response model, so once the servlet has
> > finished returning data to your browser, it is not going to attempt to
> > push
> > new data out. It would have to be called again after the update takes
> > place.
> >
> >> I was thinking having a jsp page where the user inputs the changes, and
> >> then POST it to the servlet.. still not sure how the page gets updated.
> >> Anybody have any example sites/code??
> >
> > You can have the form on the JSP just call the JSP again. The JSP tests
> > for
> > the right combination of parameters and performs the appropriate
> > actions...
> >
> > e.g. in 'faq.jsp' (this is basically just snippits)
> >
> > 
> > 
> > <%
> > JDBCConnectionPool connectionPool =
> >
> >
(JDBCConnectionPool)application.getAttribute("edu.tcnj.cs.cmsc446.Connection
> > pool");
> > %>
> > 
> > ...
> > 
> >
> >
> > <%
> > /* get params, test for form submission, take appropriate action */
> > String submitted=request.getParameter( "Submit" );
> > String questiontext=request.getParameter( "questiontext" );
> > String username=request.getParameter( "username" );
> > if( submitted!=null
> >  && submitted.equals( "Submit Question" )
> >  && questiontext!=null
> >  && !questiontext.equals( "" )
> >  && username!=null
> >  && !username.equals( "" ) ){
> >
> >  edu.tcnj.cs.cmsc446.SQLWorker sqlWorker = new
> > edu.tcnj.cs.cmsc446.SQLWorker();
> >
> >
> >  try{
> >
> >   sqlWorker.setConnection( connectionPool.getConnection() );
> >   sqlWorker.submitQuestion( questiontext, username );
> >   sqlWorker.logQuestionPost( username, "question",
> > request.getRemoteAddr() );
> >
> >  }catch(Exception badQues){
> >   application.log( "faq.jsp: error submitting new question="+badQues );
> >  }finally{
> >   if( connectionPool!=null )
> >connectionPool.free( sqlWorker.getConnection() );
> >  }
> > }else{
> >  out.println( "No question asked at this time. Enjoy
> > browsing." );
> > }
> > %>
> >
> > 
> > <%
> >  edu.tcnj.cs.cmsc446.SQLWorker sqlWorker = new
> > edu.tcnj.cs.cmsc446.SQLWorker();
> > try{
> >
> >  sqlWorker.setConnection( connectionPool.getConnection() );
> >  Vector entries = sqlWorker.getQuestions();
> >
> >  if( entries!=null ){
> >   Question ques=null;
> >   for( int i=0;i >ques = (Question)entries.elementAt( i );
> >out.println( " > sans-serif\" size=\"2\"> >
href=\"answer.jsp?refNum="+ques.getRefNum()+"\">"+ques.getRefNum()+" > nt>" );
> >out.println( " > sans-serif\" size=\"2\">"+ques.getQuestion()+"" );
> >   }
> >  }else{
> >   out.println( "no entriesno questions at this
> > time" );
> >  }
> > }catch( Exception e ){
> >  application.log( "faq.jsp: error getting all questions="+e );
> > }finally{
> >  if( connectionPool!=null )
> >   connectionPool.free( sqlWorker.getConnection() );
> > }
> > %>
> >
> > 
> > 
> >
> > Regards,
> > Michael
> >
> >
> >
> > --
> > To u

Re: Design Questions..

2002-08-26 Thread Michael Hanna

thanks, I think I'm starting to understand how all this stuff is 
supposed to work...

Michael

On Monday, August 26, 2002, at 05:59  PM, Michael E. Locasto wrote:

> Michael,
>
> I'm sure everyone else is gonna tell you this too, but here are some
> pointers from just glancing over the code.
>
> - set up your db connection in the init() method, not doGet(). 
> doGet()
> is executed every time the servlet is called with an HTTP GET. So,
> effectively, you are loading the driver and creating a connection and
> DBThing object and blah blah blah every time your servlet is called. 
> That's
> a performance killer.
>
> - better yet, use a Connection Pool that's created on startup. Write
> your own, or there are many available. I'm sure others will provide 
> links...
>
> - as far as your question: I'm assuming you're using an HTML form to
> POST/GET to the servlet. There are alot of ways you can go, but a 
> simple one
> is to have a parameter called 'databaseaction' or whatever, and that
> indicates which operation the servlet will perform from it's doGet() or
> doPost(). Alternatvely, you can have a different HTML form/page for each
> action that calls
> the servlet (or a different servlet, although that's pretty inefficient)
> with a different parameter.
>
>>
>> This is easy enough, but how do I have the servlet update its own 
>> output
>> in the web browser so that it reflects the new changes? Is there a
>> refresh command or something.
>
> You can have the servlet (or JSP) just call itself, and at the end of
> processing, just display whatever you were going to display normally.
> Servlets are based on a request/response model, so once the servlet has
> finished returning data to your browser, it is not going to attempt to 
> push
> new data out. It would have to be called again after the update takes 
> place.
>
>> I was thinking having a jsp page where the user inputs the changes, and
>> then POST it to the servlet.. still not sure how the page gets updated.
>> Anybody have any example sites/code??
>
> You can have the form on the JSP just call the JSP again. The JSP tests 
> for
> the right combination of parameters and performs the appropriate 
> actions...
>
> e.g. in 'faq.jsp' (this is basically just snippits)
>
> 
> 
> <%
> JDBCConnectionPool connectionPool =
>
> (JDBCConnectionPool)application.getAttribute("edu.tcnj.cs.cmsc446.Connection
> pool");
> %>
> 
> ...
> 
>
>
> <%
> /* get params, test for form submission, take appropriate action */
> String submitted=request.getParameter( "Submit" );
> String questiontext=request.getParameter( "questiontext" );
> String username=request.getParameter( "username" );
> if( submitted!=null
>  && submitted.equals( "Submit Question" )
>  && questiontext!=null
>  && !questiontext.equals( "" )
>  && username!=null
>  && !username.equals( "" ) ){
>
>  edu.tcnj.cs.cmsc446.SQLWorker sqlWorker = new
> edu.tcnj.cs.cmsc446.SQLWorker();
>
>
>  try{
>
>   sqlWorker.setConnection( connectionPool.getConnection() );
>   sqlWorker.submitQuestion( questiontext, username );
>   sqlWorker.logQuestionPost( username, "question",
> request.getRemoteAddr() );
>
>  }catch(Exception badQues){
>   application.log( "faq.jsp: error submitting new question="+badQues );
>  }finally{
>   if( connectionPool!=null )
>connectionPool.free( sqlWorker.getConnection() );
>  }
> }else{
>  out.println( "No question asked at this time. Enjoy 
> browsing." );
> }
> %>
>
> 
> <%
>  edu.tcnj.cs.cmsc446.SQLWorker sqlWorker = new
> edu.tcnj.cs.cmsc446.SQLWorker();
> try{
>
>  sqlWorker.setConnection( connectionPool.getConnection() );
>  Vector entries = sqlWorker.getQuestions();
>
>  if( entries!=null ){
>   Question ques=null;
>   for( int i=0;iques = (Question)entries.elementAt( i );
>out.println( " sans-serif\" size=\"2\"> href=\"answer.jsp?refNum="+ques.getRefNum()+"\">"+ques.getRefNum()+" nt>" );
>out.println( " sans-serif\" size=\"2\">"+ques.getQuestion()+"" );
>   }
>  }else{
>   out.println( "no entriesno questions at this
> time" );
>  }
> }catch( Exception e ){
>  application.log( "faq.jsp: error getting all questions="+e );
> }finally{
>  if( connectionPool!=null )
>   connectionPool.free( sqlWorker.getConnection() );
> }
> %>
>
> 
> 
>
> Regards,
> Michael
>
>
>
> --
> To unsubscribe, e-mail:    [EMAIL PROTECTED]>
> For additional commands, e-mail:  [EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




APRVARS error trying to build mod_webapp

2002-08-26 Thread Bryan Field-Elliot

Hi,

I'm using Tomcat 4.0.4, and now, from sources, I'm trying to build
mod_webapp.

Every time I try "./configure" (with various option combinations), I get
this error:

configure: error: cannot find APRVARS file in
/root/src/jakarta-tomcat-connectors-4.0.4-src/webapp/apr

This is with jakarta-tomcat-connectors-4.0.4-src, and the latest APR
from CVS (I got the apr sources per the mod-webapp README).

The version of apache I'm using is Redhat's RPM (apache-1.3.23-14.rpm
and apache-devel-1.3.23-14.rpm)

Any help would be appreciated,

Thank you,

Bryan









RE: CLIENT-CERT and JDBCRealm

2002-08-26 Thread Hendryx-Parker, Calvin

> I Have the security constraint set for the role testing in my web.xml
> file. In the logs I am getting this which make me think I am close:
>
> 2002-08-25 11:55:05 JDBCRealm[Standalone]: Authenticating client
> certificate chain
> 2002-08-25 11:55:05 JDBCRealm[Standalone]:  Checking validity for
> 'CN=Calvin Hendyrx-Parker, OU=Engineering, O=Epylon, L=San Francisco,
> ST=California, C=US'
> 2002-08-25 11:55:05 JDBCRealm[Standalone]:  Checking validity for
> '[EMAIL PROTECTED], CN=EpylonCA, OU=Engineering, O=Epylon,
> L=San Francisco, ST=California, C=US'
>
> But I still get a 401 error and it doesn't give me the message that that
> primary is in a certain role.  What am I still missing?

2002-08-26 15:23:47 MemoryRealm[Standalone]: Authenticating client 
certificate chain
2002-08-26 15:23:47 MemoryRealm[Standalone]:  Checking validity for 
'[EMAIL PROTECTED], CN=Calvin, OU=Engineering, O=Epylon, L=San 
Francisco, ST=California, C=US'
2002-08-26 15:23:47 MemoryRealm[Standalone]: Username 
[EMAIL PROTECTED], CN=Calvin, OU=Engineering, O=Epylon, L=San 
Francisco, ST=California, C=US has role testing

I just setup the MemoryReam with my DN as the username and it works fine, 
but I really want to use the JDBCRealm.  Anyone have any info on using the 
DN as the username and how to store it in the DB?   It seems like the 
JDBCRealm is having trouble matching the DN string in the DB.

Thanks,
Calvin

-- 
calvin hendyrx-parker  www.epylon.com
enterprise infomediary, engineering

415.593.2738 o | 415.593.2738 f

Epylon Corporation
645 Harrison Street, Suite 200
San Francisco, CA 94107

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: OUT OF MEMORY ERROR

2002-08-26 Thread Mike Jackson

If you don't close the connection you'll eventually run the database out
of connections.  Also an open connection will use memory within the JVM
and build up the memory in use.  Another thing to do is to avoid using
strings, use stringbuffers instead.  Try to avoid doing things like this:

String str = "This " + number + " that " + anotherString;

If you do this you're creating a number of string objects, and the garbage
collector may not reclaim the memory quickly.  You can try adjusting the
memory that the JVM grabs at startup as well, the arguement is something
like -Xmx512M (that would grab 512 megs of ram).

One thing to consider, and it works great for me, is to use your servlets
and jsp's for access control through the application, but to use some
XML/XSLT
engine to actually retrieve and format the data coming from the database.
I use Oracle's XSQL Servlet, seems to work great and also seems to be less
filling (memory filling that is).

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

> -Original Message-
> From: Patrick Codere [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 26, 2002 3:15 PM
> To: 'Tomcat Users List'
> Subject: OUT OF MEMORY ERROR
>
>
> Hi everyone,
>
>   I have been getting this error for the past few weeks without
> solving the issue.  But I just found out that I had forgotten to close a
> database connection.  Could that have been the problem?  Time
> will tell, but
> what exactly happens when you don't close a db connection?
>
> Thanks for your help.
>
> Pat
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




service.properties instead of wrapper.properties

2002-08-26 Thread Michael Finney

http://jakarta.apache.org/tomcat/tomcat-3.2-doc/NT-Service-howto.html

In regards to making Jakarta an NT service, I heard
someone had configured things somehow so that
service.properties instead of wrapper.properties was
used to configure things like classpath.

Has anyone heard of such a thing and how did they do
it?

I am doing detective work.

Thanks,
Michael


=
Michael Finney
719-572-1577 (H)
Sun Certified Programmer for the Java 2 Platform
Sun Certified Developer for the Java 2 Platform
Sun Certified Web Component Developer for J2EE Platform 
Co-founder of PPJDG - http://www.ppjdg.org
Co-founder of cosAgile - Colorado Springs XP Users Group - 
http://www.yahoogroups.com/group/cosAgile

__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




OUT OF MEMORY ERROR

2002-08-26 Thread Patrick Codere

Hi everyone,

I have been getting this error for the past few weeks without
solving the issue.  But I just found out that I had forgotten to close a
database connection.  Could that have been the problem?  Time will tell, but
what exactly happens when you don't close a db connection? 

Thanks for your help.

Pat



RE: creating virtual hosts - HOW TO?

2002-08-26 Thread neal

Just one last thing.

Perhaps this is getting picky but ...

currently, Tomcat will forward the URL to the default page I list in the
web.xml file.  For instance, if I navigate to www.hotel.us ... and the
default page is index.html ... the URL window will actually show that I've
been sent to www.hotel.us/index.html. I would prefer that it simply show
www.hotel.us and figure out which page to display behind the scenes.

Does anyone know how to configure that?

Thanks.
Neal


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Design Questions..

2002-08-26 Thread Michael E. Locasto

Michael,

I'm sure everyone else is gonna tell you this too, but here are some
pointers from just glancing over the code.

- set up your db connection in the init() method, not doGet(). doGet()
is executed every time the servlet is called with an HTTP GET. So,
effectively, you are loading the driver and creating a connection and
DBThing object and blah blah blah every time your servlet is called. That's
a performance killer.

- better yet, use a Connection Pool that's created on startup. Write
your own, or there are many available. I'm sure others will provide links...

- as far as your question: I'm assuming you're using an HTML form to
POST/GET to the servlet. There are alot of ways you can go, but a simple one
is to have a parameter called 'databaseaction' or whatever, and that
indicates which operation the servlet will perform from it's doGet() or
doPost(). Alternatvely, you can have a different HTML form/page for each
action that calls
the servlet (or a different servlet, although that's pretty inefficient)
with a different parameter.

>
> This is easy enough, but how do I have the servlet update its own output
> in the web browser so that it reflects the new changes? Is there a
> refresh command or something.

You can have the servlet (or JSP) just call itself, and at the end of
processing, just display whatever you were going to display normally.
Servlets are based on a request/response model, so once the servlet has
finished returning data to your browser, it is not going to attempt to push
new data out. It would have to be called again after the update takes place.

> I was thinking having a jsp page where the user inputs the changes, and
> then POST it to the servlet.. still not sure how the page gets updated.
> Anybody have any example sites/code??

You can have the form on the JSP just call the JSP again. The JSP tests for
the right combination of parameters and performs the appropriate actions...

e.g. in 'faq.jsp' (this is basically just snippits)



<%
JDBCConnectionPool connectionPool =

(JDBCConnectionPool)application.getAttribute("edu.tcnj.cs.cmsc446.Connection
pool");
%>

...



<%
/* get params, test for form submission, take appropriate action */
String submitted=request.getParameter( "Submit" );
String questiontext=request.getParameter( "questiontext" );
String username=request.getParameter( "username" );
if( submitted!=null
 && submitted.equals( "Submit Question" )
 && questiontext!=null
 && !questiontext.equals( "" )
 && username!=null
 && !username.equals( "" ) ){

 edu.tcnj.cs.cmsc446.SQLWorker sqlWorker = new
edu.tcnj.cs.cmsc446.SQLWorker();


 try{

  sqlWorker.setConnection( connectionPool.getConnection() );
  sqlWorker.submitQuestion( questiontext, username );
  sqlWorker.logQuestionPost( username, "question",
request.getRemoteAddr() );

 }catch(Exception badQues){
  application.log( "faq.jsp: error submitting new question="+badQues );
 }finally{
  if( connectionPool!=null )
   connectionPool.free( sqlWorker.getConnection() );
 }
}else{
 out.println( "No question asked at this time. Enjoy browsing." );
}
%>


<%
 edu.tcnj.cs.cmsc446.SQLWorker sqlWorker = new
edu.tcnj.cs.cmsc446.SQLWorker();
try{

 sqlWorker.setConnection( connectionPool.getConnection() );
 Vector entries = sqlWorker.getQuestions();

 if( entries!=null ){
  Question ques=null;
  for( int i=0;i"+ques.getRefNum()+"" );
   out.println( ""+ques.getQuestion()+"" );
  }
 }else{
  out.println( "no entriesno questions at this
time" );
 }
}catch( Exception e ){
 application.log( "faq.jsp: error getting all questions="+e );
}finally{
 if( connectionPool!=null )
  connectionPool.free( sqlWorker.getConnection() );
}
%>




Regards,
Michael



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: javax directory

2002-08-26 Thread Irina Lishchenko

On Thursday 22 August 2002 20:21, you wrote:
> I am trying to compile a application that uses import
> javax.servlet.*; import javax.servlet.http.HttpServlet; in the code. When I
> attempt to compile this code I receive errors stating that it could not
> find these symbols. I noticed that they are actually located in the tomcat
> directory. Should this be copied to the java directory or is there
> something else I should do.


This problem of compiling is very well described at

http://developer.java.sun.com/developer/onlineTraining/new2java/divelog/part1/page9.jsp

not only described but there is a given solution to this issue

Take a look, may be you find your solution there

ilis

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Design Questions..

2002-08-26 Thread Michael Hanna

I created a simple servlet that will use a JDBC driver and access a 
table in a postgresql database.

It will display the table in HTML formatted output. This is great but 
I'd like to extend it's functionality.

I'd like to have a way so that the user can Add, Delete and Update the 
table via the web page/servlet.

This is easy enough, but how do I have the servlet update its own output 
in the web browser so that it reflects the new changes? Is there a 
refresh command or something.

I was thinking having a jsp page where the user inputs the changes, and 
then POST it to the servlet.. still not sure how the page gets updated. 
Anybody have any example sites/code??

Here's my classes

Rigby.class is the client class that calls on DBThing to do the database 
access.

---
Rigby.java

---

// Copyright Michael Hanna 2002
// do not use without permission of author

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;   // All we need for JDBC

public class Rigby extends HttpServlet {

 public void doGet(HttpServletRequest request, HttpServletResponse 
response)throws IOException, ServletException
{
 PrintWriter out;
 DBThing dbt;
 ResultSet results;
 Date birthdate, now;
 boolean isColoured = true; // is this table row coloured or not

String database = "rigby";
String username = "nevermind";
String password = "nevermind";

String mdMsg;

response.setContentType("text/html");
out = response.getWriter();
out.println("");
out.println("");
out.println("");
out.println("Rigby");
out.println("");
out.println("");
out.println("Contents of friends:");

try {
Class.forName("org.postgresql.Driver"); //load the driver
//out.println("Inside try2");
dbt = new DBThing(database, username, password);
mdMsg = dbt.getMetaDataMsg();
out.println(mdMsg + "");

results = dbt.queryDB("select firstname, surname, email, tel, 
birthdate from friends order by surname asc");

//isNull = results.wasNull();
out.println("ResultSet null?: " + results.wasNull() + "");
//results.last();
//out.println("Current Row: " + results.getRow() + "");

out.println("");
out.println("");
out.println("Order by:");

out.println("");
out.println("First Name");
out.println("Surname");
out.println("Birthdate");
out.println("");
out.println("");
out.println("");
out.println("");
out.println("");
//out.println("id"
out.println("First Name" 
+"Surname" + "Email" + 
"Phone"+"Birthdate");
out.println("");
//out.println("\n");
while (results.next())
{
if (isColoured == false) {
out.println("");
isColoured = true;
}
else {
out.println("");
isColoured = false;
}

//birthdate = new Date(results.getDate("birthdate"));
//now = new Date();


//out.println("" + results.getInt("id") + "");
out.println("" + results.getString("firstname") + 
"" + "" + results.getString("surname")+ "" + " mailto:"; + results.getString("email") +">"+ 
results.getString("email")+ " " + "" 
+results.getString("tel")+"" + "" + 
results.getString("birthdate")+"");
out.println("");
}
}
else {
out.println("The friends database is empty.");
}
results.close();
out.println("");
} catch (ClassNotFoundException cnf) {
out.println("***Exception:\n"+cnf);
cnf.printStackTrace();
} catch (SQLException se) {
out.println("***Exception:\n"+se);
se.printStackTrace();
}
//out.println("hey2");
out.println("");
out.println("");

}
}


---
DBThing.java

---

// Copyright Michael Hanna 2002
// do not use without permission of author

import java.sql.*;   // All we need for JDBC
import java.lang.*;

public class DBThing
{
 Connection   db;// A connection to the database
 Statementsql;   // Our statement to run queries with
 DatabaseMetaData dbmd;  // This is basically info the driver 
delivers
// about the DB it just connected to. I use
 // it to get the DB version to confirm the
 // connection in this example.

 public DBThing(String database, String username, String password)
throws 

Internal Sever Error

2002-08-26 Thread Vanna, Gabrielle



> Hi Everyone,
> I recently installed the Tomcat 4.0.3 on a windows 2000 sever machine
> running with Microsoft IIS. I needed to do this to run a war file that
> controls a web-base application of documentum (our current content
> management system). After I installed Tomcat the test serlvets and other
> pages worked fine, but when I went to test the documentum software I get
> the following error (I have read a lot of documentation and have talked to
> several documentum tech supports with no success), would anybody know why
> I am getting the following error, Any help is much appreciated, Thank you.
> 
> Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error
> 
> type Exception report
> message Internal Server Error
> description The server encountered an internal error (Internal Server
> Error) that prevented it from fulfilling this request.
> exception 
> javax.servlet.ServletException: Servlet execution threw an exception
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
> onFilterChain.java:269)
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
> Chain.java:193)
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.
> java:243)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
> :566)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472
> )
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.
> java:190)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
> :566)
>   at
> org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java
> :246)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
> :564)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472
> )
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
>   at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1
> 80)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
> :566)
>   at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValv
> e.java:170)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
> :564)
>   at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1
> 70)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
> :564)
>   at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
> :564)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472
> )
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja
> va:174)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
> :566)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472
> )
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.jav
> a:1012)
>   at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:11
> 07)
>   at java.lang.Thread.run(Thread.java:536)
> root cause 
> java.lang.VerifyError: (class:
> com/documentum/web/formext/config/ConfigFile, method: loadXML signature:
> (Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Element;) Incompatible
> object argument for function call
>   at
> com.documentum.web.formext.config.HttpConfigReader.loadAppConfigFile(HttpC
> onfigReader.java:109)
>   at
> com.documentum.web.formext.config.ConfigService.initialiseApp(ConfigServic
> e.java:513)
>   at
> com.documentum.web.formext.config.ConfigService.(ConfigService.java:441)
>   at
> com.documentum.web.formext.config.ConfigService.refresh(ConfigService.java
> :89)
>   at
> com.documentum.web.formext.config.ConfigService.getConfigLookup(ConfigServ
> ice.java:67)
>   at
> com.documentum.web.common.LocaleService.getDefaultLocale(LocaleService.jav
> a:113)
>   at
> com.documentum.web.formext.component.ComponentDispatcher.onSessionStart(Co
> mponentDispatcher.java:195)
>   at
> com.documentum.web.formext.component.ComponentDispatcher.mapRequestToCompo
> nent(ComponentDispatcher.java:266)
>   at
> com.documentum.web.formext.component.ComponentDispatcher.doGet(ComponentDi
> spatcher.java:150)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>  

postgresql jndi jdbc getConnection() problem

2002-08-26 Thread adam kramer


I saw one other post on the archives about this but it has no resolution.

I have set up Tomcat 4.0.4 to use the jndi resource factory to use pgsql
jdbc connection "pooling" (fake pooling).

Whenever I call the second
line of this code:
Context ctx = (Context) new InitialContext().lookup("java:comp/env");
conn = ((DataSource) ctx.lookup("jdbc/IFDB")).getConnection();

I get a "Something unusual has occured to cause the driver to fail. Please
report this exception: Exception: java.lang.NullPointerException Stack
Trace: java.lang.NullPointerException at
org.postgresql.Connection.openConnection(Connection.java:155)"
error.

My server.xml resource looks like this within the context tag:
  

  user
  kenjackson


  password
  29gzy8


  driverClassName
  org.postgresql.Driver


  driverName
  jdbc:postgresql://postgresql1.eapps.com:5432/

  

NOTE: I have changed the user parameter to name "username" but that
doesn't help and the tyrex api asks for "user" so I'm assuming that's
right.

 and my webapp web.xml:
  

Resource reference to a factory for java.sql.Connection
instances that may be used for talking to a particular
database that is configured in the server.xml file.


  jdbc/IFDB


  javax.sql.DataSource


  Container

  

Has anyone else run into a similar problem. From what I have seen on the
list the Tyrex api is a problem, but I'm currently stuck with it.

thanks,
Adam Kramer



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




How does Tomcat and/or servlets handle HTTP chunked reads?

2002-08-26 Thread Will Hartung

I'm just curious how Tomcat handles HTTP requests that only want a portion
of the content. I'm specifically interested in things like PDF files, which
is the most common client of chunked data.

I suppose its solely up to the Servlet to figure out that the request wants
a chunk of data (from the request headers) and return the appropriate bits
(and status code), correct?

Has anyone played with this at all?

We're getting ready to put some Filters in front of some PDFs, and this
little detail caught my eye. We haven't actually tried anything yet. Just
wondering what others experiences were regarding chunked reads.

Thanx!

Regards,

Will Hartung
([EMAIL PROTECTED])





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: i can't acces absolute symbolic link created with ln -s command on LINUX

2002-08-26 Thread Liu, Xiaoyan

Any ideas on this bug?

I posted exactly the same question before and got no
response. jsp:include seems not working with symlinked
directory.

It works on 4.0 version, but stops working on 4.1 version.
Is it a tomcat bug or coyote bug?

I thought [4.1.9] build with bug fix for #10949 will solve
the problem, but does not seem so.

Thanks.


-Original Message-
From: CouasPhilippe [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 9:57 AM
To: 'Tomcat Users List'
Subject: RE: i can't acces absolute symbolic link created with ln -s
command on LINUX




-Message d'origine-
De: Irina Lishchenko [SMTP:[EMAIL PROTECTED]]
Date:   mercredi 31 juillet 2002 09:59
A:  Tomcat Users List
Objet:  Re: i can't acces absolute symbolic link created with ln -s command
on LINUX

A new Idea for resolving this problem ?

Thanks
Philippe


I have reproduced this situation and have the same problem here

I have made a link to Tomcat examples directory. 
ln -s /path/to/tomcat/webapps/examples example
So with FollowSymLinks and Indexes options I see the direcory context, see 
static files, but as soon as I try to get jsp page I have the same 404 error
[GET /examples/jsp/snp/snoop.jsp HTTP/1.1" 404 687]
And the similar error with servlet examplesThe requested URL 
/examples/servlet/RequestParamExample was not found on this server.

Although I just have noticed that I use TC 4.0.4 where you seem don't have 
this issue


On Wednesday 31 July 2002 08:04, you wrote:
> -Message d'origine-
> De:   Irina Lishchenko [SMTP:[EMAIL PROTECTED]]
> Date: mercredi 31 juillet 2002 07:47
> A:Tomcat Users List
> Objet:Re: i can't acces absolute symbolic link created with ln -s
command
> on LINUX
>
> I use Tomcat 4.1.7 Standalone
> my link is ln -s /appli appli
> and Tomcat is in /usr/bin Directory.
>
> I have exactly same problem with AIX
> I think there is as security parameter somewhere
>
>
> Thanks
>

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: Tomcat4.0 with and Apache2

2002-08-26 Thread Raj Mettai

Hi,

I am running both Apache2.0 and Tomcat4.0  on solaris8, I have downloaded binaries of 
tomcat4 and I have compiled Apache from source code.It didnot do --enable-module=so 
while configuring apache, that means do I have to re-configure apache again. My 
modules directory under apache doesn't have any mod_* files.

mod_jk comes with tomcat or do i need to separately download it, if so please give me 
the link

can you give me a resource link for configuration of tomact4 and apache2 on solaris 
environment.


thanks a lot...
Raj




>>> [EMAIL PROTECTED] 08/26/02 02:41PM >>>

If your documentation is telling you to use mod_proxy to connect apache to
tomcat, burn that documentation.

You want to use mod_jk or mod_webapp with tomcat and apache.  mod_jk is more
robust at this juncture, and there are good resources available to explain
how to get mod_jk working with apache and tomcat.

Which platform are you using? Windows? Linux/UNIX?  I'm not familiar enought
wiht iPlanet OS support to be able to tell which platform you are using.

Here is a resource for apache 2.0 and tomcat 4 on Win2K:
http://www.cnr.berkeley.edu/~salazar/apache_tomcat.html

Here is a resource for apache 1.3 and RH 7.2:
http://www.johnturner.com/howto/apache-tomcat-howto.html (apache 2.0 is not
that different, you just need an apache-2.0 specific mod_jk.so).

In addition, the list can help you out pretty easily if you post back with
more specific information.

Don't rely on whatever documentation you have, it seems to be grossly in
error.

John Turner
[EMAIL PROTECTED]

> -Original Message-
> From: Raj Mettai [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 26, 2002 2:33 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat4.0 with and Apache2
> 
> 
> Hello,
>  
> We're attempting to connect Tomcat 4.0 to Apache 2.0 but are 
> having problems. All of the existing documention focuses on 
> connecting Apache 1.3 to Tomcat 4.0, but there is nothing we 
> have seen that discusses connecting Tomcat 4.0 to Apache 2.0 
> and there are enough differences between Apache 1.3 and 
> Apache 2.0 that the existing documentation does not help us.
>  
> Specifically, when connection Apache 1.3 to Tomcat 4.0, it 
> discusses the following items:
>
>  LoadModule proxy_module  {path-to-modules}/mod_proxy.so
> 
> AddModule  mod_proxy.c
> ProxyPass /myapp  http://localhost:8081/myapp
> 
> ProxyPassReverse  /myapp  http://localhost:8081/myapp
>  
> 
> but, we don't see mod_proxy.so in the Apache 2.0 modules 
> directory, so we don't know what to do. What is the 
> equivalent configuration for Apache 2.0? Is there any 
> documentation that exists for connecting these specific versions?
>  
> Also, does anybody know of a way to connect iPlanet 6.0sp2 to 
> Tomcat 4.0? We have iPlanet and would like to continue using 
> it, but we can't find any way to get the two products to work 
> together.
>  
> thank you in advance for your assistance,
> Raj and Brandon - Broward Community College
>  
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



RE: creating virtual hosts - HOW TO?

2002-08-26 Thread neal

Aah.  Good catch.  Yeah, you're right ... that's what its doing.  Alright.
I will definitely change that.

Cheers.
Neal

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 12:45 PM
To: Tomcat Users List
Cc: Jacob Kjome
Subject: RE: creating virtual hosts - HOW TO?




On Mon, 26 Aug 2002, neal wrote:

> Date: Mon, 26 Aug 2002 11:15:17 -0700
> From: neal <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>,
>  Jacob Kjome <[EMAIL PROTECTED]>
> Subject: RE: creating virtual hosts - HOW TO?
>
> Jacob,
>
> Cool thanks!  I just had to play with those settings  but in principal
> you're right on the money!
>
> Here's what finally worked:
>
>  
>  
>  

Note that this will cause your app to be deployed under context path
"/hotel" on the default host, in addition to being deployed as the root
webapp of the virtual host.  That's probably not what you want -- the
solution is to make the appBase of this host be someplace else.  Note that
you can use an absolute pathname for either appBase or docBase.

>
>
> Cheers!
> Neal

Craig

>
>
> -Original Message-
> From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 26, 2002 10:43 AM
> To: Tomcat Users List
> Subject: Re: creating virtual hosts - HOW TO?
>
>
> Hello neal,
>
> Your appBase attribute on the  element plus your docBase on
> your  element implies that you have the following
> directory structure:
>
> $TOMCAT_HOME/webapps/hotel/hotel
>
> Note that the docBase for a particular webapp looks for the named
> directory inside the appBase.  Since your appBase is webapps/hotel,
> there should be another "hotel" directory inside the appBase where
> your context exists.  I'm assuming what you have set up is actually
> this:
>
> $TOMCAT_HOME/webapps/hotel
>
> and you have your webapp inside that first "hotel" directory.  That
> won't work.  Put your webapp inside another hotel directory inside the
> first "hotel" directory and your example should work.  Or, it might
> work if you use a docBase of "".  I'm not positive about that, though,
> so you'd have to test and see.  The first solution should work.
>
> Jake
>
> Monday, August 26, 2002, 12:26:48 PM, you wrote:
>
>
>
>
> n> I am attempting to create multiple discreet web apps, each of whom can
> n> listen to their own URLs for page requests.  Here's an example of what
> I've
> n> done for each webApp (virtual host):
>
> n> 
> n> 
> n> 
>
> n>  But, I am getting a 500 error with the message "No Context configured
to
> n> process this request".  It sees to be at least redirecting the requests
> for
> n> the specified URLs correctly (away from the default webapp) ... but I'm
> n> getting that darned 500 error ... dispite specifying the Context node.
> n> grrr
>
> n> Any thoughts?
>
> n> Thanks!
> n> Neal
>
>
>
> n> --
> n> To unsubscribe, e-mail:
> 
> n> For additional commands, e-mail:
> 
>
>
>
> --
> Best regards,
>  Jacobmailto:[EMAIL PROTECTED]
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: creating virtual hosts - HOW TO?

2002-08-26 Thread Craig R. McClanahan



On Mon, 26 Aug 2002, neal wrote:

> Date: Mon, 26 Aug 2002 11:15:17 -0700
> From: neal <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>,
>  Jacob Kjome <[EMAIL PROTECTED]>
> Subject: RE: creating virtual hosts - HOW TO?
>
> Jacob,
>
> Cool thanks!  I just had to play with those settings  but in principal
> you're right on the money!
>
> Here's what finally worked:
>
>  
>  
>  

Note that this will cause your app to be deployed under context path
"/hotel" on the default host, in addition to being deployed as the root
webapp of the virtual host.  That's probably not what you want -- the
solution is to make the appBase of this host be someplace else.  Note that
you can use an absolute pathname for either appBase or docBase.

>
>
> Cheers!
> Neal

Craig

>
>
> -Original Message-
> From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 26, 2002 10:43 AM
> To: Tomcat Users List
> Subject: Re: creating virtual hosts - HOW TO?
>
>
> Hello neal,
>
> Your appBase attribute on the  element plus your docBase on
> your  element implies that you have the following
> directory structure:
>
> $TOMCAT_HOME/webapps/hotel/hotel
>
> Note that the docBase for a particular webapp looks for the named
> directory inside the appBase.  Since your appBase is webapps/hotel,
> there should be another "hotel" directory inside the appBase where
> your context exists.  I'm assuming what you have set up is actually
> this:
>
> $TOMCAT_HOME/webapps/hotel
>
> and you have your webapp inside that first "hotel" directory.  That
> won't work.  Put your webapp inside another hotel directory inside the
> first "hotel" directory and your example should work.  Or, it might
> work if you use a docBase of "".  I'm not positive about that, though,
> so you'd have to test and see.  The first solution should work.
>
> Jake
>
> Monday, August 26, 2002, 12:26:48 PM, you wrote:
>
>
>
>
> n> I am attempting to create multiple discreet web apps, each of whom can
> n> listen to their own URLs for page requests.  Here's an example of what
> I've
> n> done for each webApp (virtual host):
>
> n> 
> n> 
> n> 
>
> n>  But, I am getting a 500 error with the message "No Context configured to
> n> process this request".  It sees to be at least redirecting the requests
> for
> n> the specified URLs correctly (away from the default webapp) ... but I'm
> n> getting that darned 500 error ... dispite specifying the Context node.
> n> grrr
>
> n> Any thoughts?
>
> n> Thanks!
> n> Neal
>
>
>
> n> --
> n> To unsubscribe, e-mail:
> 
> n> For additional commands, e-mail:
> 
>
>
>
> --
> Best regards,
>  Jacobmailto:[EMAIL PROTECTED]
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: creating virtual hosts - HOW TO?

2002-08-26 Thread Craig R. McClanahan

I'd try putting the appBase (not appbase !!!) for your virtual host
somewhere *other* than the "webapps" subdirectory -- that is just going to
cause confusion for the default host.

Second, the docBase directory for a  is resolved relative to the
directory of the parent appBase, so you'd end up looking for this webapp
in $CATALINA_HOME/webapps/hotel/hotel.

Craig


On Mon, 26 Aug 2002, neal wrote:

> Date: Mon, 26 Aug 2002 10:26:48 -0700
> From: neal <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: creating virtual hosts - HOW TO?
>
>
>
>
> I am attempting to create multiple discreet web apps, each of whom can
> listen to their own URLs for page requests.  Here's an example of what I've
> done for each webApp (virtual host):
>
>   
>   
>   
>
>  But, I am getting a 500 error with the message "No Context configured to
> process this request".  It sees to be at least redirecting the requests for
> the specified URLs correctly (away from the default webapp) ... but I'm
> getting that darned 500 error ... dispite specifying the Context node.
> grrr
>
> Any thoughts?
>
> Thanks!
> Neal
>
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




process: invoke java.lang.NoSuchMethodError

2002-08-26 Thread Jill Veronda


I am using Tomcat 4.0.4, Apache 1.3.12, JDK 1.3.1 on Windows 2000 Server.

When trying to run a jsp file I get the error:

2002-08-26 12:02:36 Ajp13Processor[8009][2] process: invoke
java.lang.NoSuchMethodError
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:159)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:479)

Anyone have any ideas?  

jav

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: env variable keeps resetting on restart of server

2002-08-26 Thread neal

Thanks John, I did not realize this.  I'll make this change.  :)

Neal

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 11:32 AM
To: 'Tomcat Users List'
Subject: RE: env variable keeps resetting on restart of server



If you are setting it after you login, it only holds for that login session.
If you logout or restart the server, it is gone.

If you need it to stick around, you can put it in /etc/profile if you want
it to apply to every person who logs in, or put it in your .profile
($HOME/.profile) file so that it is set when you login.

John Turner
[EMAIL PROTECTED]


> -Original Message-
> From: neal [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 26, 2002 2:29 PM
> To: Tomcat Users List
> Subject: env variable keeps resetting on restart of server
>
>
> Does anyone know why my JAVA_HOME environment variable won't
> keep when I
> restart the server (Linux)?  Here's how I set it (note I set
> TOMCAT_HOME the
> same way and it hasn't been a problem):
>
> JAVA_HOME=/usr/java/j2sdk1.4.0_01; export JAVA_HOME
>
> Thanks.
> Neal
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: RE : Bugzilla down, can't submit tomcat bug

2002-08-26 Thread Andrew Conrad

I haven't submitted a bug, but new bugs are appearing.  Example ->
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12046

The date is 2002-08-26 17:06

- Andrew

> -Original Message-
> From: Michael [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, August 26, 2002 12:09 PM
> To: 'Tomcat Users List'
> Subject: RE : Bugzilla down, can't submit tomcat bug
> 
> 
> Did you actually submit a bug?  I tried several times on 
> Friday, Saturday, and again today and each time it takes 
> about 5 minutes to time out.
> 
> The bug I want to submit is for the CATALINA_BASE variable.. 
> When I use it my web app is not accessible.  I've posted a 
> few messages about it but haven't gotten much of a response, 
> I don't think many people have tried using it.
> 
> http://marc.theaimsgroup.com/?l=tomcat-user&m=103000367314894&w=2
> 
> 
> > -Original Message-
> > From: Andrew Conrad [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, August 26, 2002 5:26 PM
> > To: 'Tomcat Users List'
> > Subject: RE: Bugzilla down, can't submit tomcat bug
> > 
> > 
> > Bugzilla seems to be working for me.
> > 
> > I read your msg concerning differentiation between
> > SQLException's and user login failure.  I don't think it's 
> > possible, and I don't think it's a bug.  Mainly because not 
> > all Realm's use SQLExceptions.  I think you would have to 
> > modify the Realm interface and the BaseRealm class to add 
> > this functionality.
> > 
> > If you are just trying to request an enhancement, that would
> > be the place too.  
> > 
> > - Andrew
> > 
> > > -Original Message-
> > > From: Michael [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, August 26, 2002 11:10 AM
> > > To: Tomcat Users List
> > > Subject: Bugzilla down, can't submit tomcat bug
> > > 
> > > 
> > > I've emailed the contact listed on the error page but the email 
> > > bounces back.  I'm not sure what I can do to report a tomcat bug.
> > > 
> > > --
> > > 
> > > 
> > http://issues.apache.org/bugzilla/post_bug.cgi
> > 
> > Internal Server Error
> > The server encountered an internal error or misconfiguration
> > and was unable to complete your request.
> > 
> > Please contact the server administrator, [EMAIL PROTECTED] and
> > inform them of the time the error occurred, and anything you 
> > might have done that may have caused the error.
> > 
> > More information about this error may be available in the
> > server error log.
> > 
> > Additionally, a 400 Bad Request error was encountered while 
> trying to
> > use an ErrorDocument to handle the request. 
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:
> >  [EMAIL PROTECTED]>
> > For 
> > additional commands, 
> > e-mail: 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> >  [EMAIL PROTECTED]>
> > For
> > additional commands, 
> > e-mail: 
> > 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




'Caching' of JSP pages

2002-08-26 Thread Bill Leath

I am running Tomcat 4.1 on Linux 7.2.

When I edit a jsp page, I continue to see the old page even after: using
the 'reload' command of the 'Manager' app, and using the 'reload' and
'install' commands.  Where is the compiled version of the page being
cached? and How can I get it it to re-compile the new jsp's?

Any help would be appreciated.

Thanks.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: env variable keeps resetting on restart of server

2002-08-26 Thread micael

Neal, you never give the info we need at the start.  Where have you set the 
JAVA_HOME variable? /etc/profile?

At 11:29 AM 8/26/2002 -0700, you wrote:
>Does anyone know why my JAVA_HOME environment variable won't keep when I
>restart the server (Linux)?  Here's how I set it (note I set TOMCAT_HOME the
>same way and it hasn't been a problem):
>
>JAVA_HOME=/usr/java/j2sdk1.4.0_01; export JAVA_HOME
>
>Thanks.
>Neal
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat4.0 with and Apache2

2002-08-26 Thread Turner, John


Sorry, perhaps that was too harsh.

You don't need mod_proxy to put tomcat on a separate machine from apache.
mod_jk supports load-balancing (http://www.ubeans.com/tomcat for a HOWTO),
and if you just want tomcat on a separate machine without load-balancing,
you change the host parameter in mod_jk's worker.properties file to the
hostname of the tomcat server instead of "localhost" or whatever the default
is (see earlier posts today on this list on exactly this topic).

In addition, with mod_jk, you can set tomcat (provided tomcat is on the same
machine) to auto-generate the mod_jk configuration directives for apache.
That means that you only need to change one server configuration (tomcat),
and the apache configuration will follow.

mod_proxy probably works (I haven't tried it) and others are probably doing
it that way, but in my opinion it would make sense to use the tool that was
specifically developed to integrate with tomcat, and that means one of the
connectors such as mod_jk or mod_webapp.

Obviously, you are welcome to use whatever suits your environment and
situation.

John Turner
[EMAIL PROTECTED]

> -Original Message-
> From: Milhomem, Marcus [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 26, 2002 2:47 PM
> To: Tomcat Users List
> Subject: RE: Tomcat4.0 with and Apache2
> 
> 
> Hi,
>   I am planing to use tomcat4.0 with Apache2 using the mod_proxy,
> because I think that it ahs more scalability as you can   
> after sometime
> move the tomcat to other machine. But as I saw your e-mail, saying to
> burn What Integration do you tinhk it´s better and why?
> 
> 
> 
> 
> thank you

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat4.0 with and Apache2

2002-08-26 Thread Milhomem, Marcus

Hi,
I am planing to use tomcat4.0 with Apache2 using the mod_proxy,
because I think that it ahs more scalability as you can   after sometime
move the tomcat to other machine. But as I saw your e-mail, saying to
burn What Integration do you tinhk it´s better and why?




thank you
-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 11:41 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat4.0 with and Apache2



If your documentation is telling you to use mod_proxy to connect apache to
tomcat, burn that documentation.

You want to use mod_jk or mod_webapp with tomcat and apache.  mod_jk is more
robust at this juncture, and there are good resources available to explain
how to get mod_jk working with apache and tomcat.

Which platform are you using? Windows? Linux/UNIX?  I'm not familiar enought
wiht iPlanet OS support to be able to tell which platform you are using.

Here is a resource for apache 2.0 and tomcat 4 on Win2K:
http://www.cnr.berkeley.edu/~salazar/apache_tomcat.html

Here is a resource for apache 1.3 and RH 7.2:
http://www.johnturner.com/howto/apache-tomcat-howto.html (apache 2.0 is not
that different, you just need an apache-2.0 specific mod_jk.so).

In addition, the list can help you out pretty easily if you post back with
more specific information.

Don't rely on whatever documentation you have, it seems to be grossly in
error.

John Turner
[EMAIL PROTECTED]

> -Original Message-
> From: Raj Mettai [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 26, 2002 2:33 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat4.0 with and Apache2
> 
> 
> Hello,
>  
> We're attempting to connect Tomcat 4.0 to Apache 2.0 but are 
> having problems. All of the existing documention focuses on 
> connecting Apache 1.3 to Tomcat 4.0, but there is nothing we 
> have seen that discusses connecting Tomcat 4.0 to Apache 2.0 
> and there are enough differences between Apache 1.3 and 
> Apache 2.0 that the existing documentation does not help us.
>  
> Specifically, when connection Apache 1.3 to Tomcat 4.0, it 
> discusses the following items:
>
>  LoadModule proxy_module  {path-to-modules}/mod_proxy.so
> 
> AddModule  mod_proxy.c
> ProxyPass /myapp  http://localhost:8081/myapp
> 
> ProxyPassReverse  /myapp  http://localhost:8081/myapp
>  
> 
> but, we don't see mod_proxy.so in the Apache 2.0 modules 
> directory, so we don't know what to do. What is the 
> equivalent configuration for Apache 2.0? Is there any 
> documentation that exists for connecting these specific versions?
>  
> Also, does anybody know of a way to connect iPlanet 6.0sp2 to 
> Tomcat 4.0? We have iPlanet and would like to continue using 
> it, but we can't find any way to get the two products to work 
> together.
>  
> thank you in advance for your assistance,
> Raj and Brandon - Broward Community College
>  
> 

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat4.0 with and Apache2

2002-08-26 Thread Turner, John


If your documentation is telling you to use mod_proxy to connect apache to
tomcat, burn that documentation.

You want to use mod_jk or mod_webapp with tomcat and apache.  mod_jk is more
robust at this juncture, and there are good resources available to explain
how to get mod_jk working with apache and tomcat.

Which platform are you using? Windows? Linux/UNIX?  I'm not familiar enought
wiht iPlanet OS support to be able to tell which platform you are using.

Here is a resource for apache 2.0 and tomcat 4 on Win2K:
http://www.cnr.berkeley.edu/~salazar/apache_tomcat.html

Here is a resource for apache 1.3 and RH 7.2:
http://www.johnturner.com/howto/apache-tomcat-howto.html (apache 2.0 is not
that different, you just need an apache-2.0 specific mod_jk.so).

In addition, the list can help you out pretty easily if you post back with
more specific information.

Don't rely on whatever documentation you have, it seems to be grossly in
error.

John Turner
[EMAIL PROTECTED]

> -Original Message-
> From: Raj Mettai [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 26, 2002 2:33 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat4.0 with and Apache2
> 
> 
> Hello,
>  
> We're attempting to connect Tomcat 4.0 to Apache 2.0 but are 
> having problems. All of the existing documention focuses on 
> connecting Apache 1.3 to Tomcat 4.0, but there is nothing we 
> have seen that discusses connecting Tomcat 4.0 to Apache 2.0 
> and there are enough differences between Apache 1.3 and 
> Apache 2.0 that the existing documentation does not help us.
>  
> Specifically, when connection Apache 1.3 to Tomcat 4.0, it 
> discusses the following items:
>
>  LoadModule proxy_module  {path-to-modules}/mod_proxy.so
> 
> AddModule  mod_proxy.c
> ProxyPass /myapp  http://localhost:8081/myapp
> 
> ProxyPassReverse  /myapp  http://localhost:8081/myapp
>  
> 
> but, we don't see mod_proxy.so in the Apache 2.0 modules 
> directory, so we don't know what to do. What is the 
> equivalent configuration for Apache 2.0? Is there any 
> documentation that exists for connecting these specific versions?
>  
> Also, does anybody know of a way to connect iPlanet 6.0sp2 to 
> Tomcat 4.0? We have iPlanet and would like to continue using 
> it, but we can't find any way to get the two products to work 
> together.
>  
> thank you in advance for your assistance,
> Raj and Brandon - Broward Community College
>  
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: env variable keeps resetting on restart of server

2002-08-26 Thread Dan Lipofsky

> If you are setting it after you login, it only holds for that login
session.
> If you logout or restart the server, it is gone.
>
> If you need it to stick around, you can put it in /etc/profile if you want
> it to apply to every person who logs in, or put it in your .profile
> ($HOME/.profile) file so that it is set when you login.
>
> John Turner
> [EMAIL PROTECTED]

 Correct, except the file has different names depending on what shell
you are using.  ".bash_profile" or ".bash_login" for bash, ".login" for csh
or tcsh.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat4.0 with and Apache2

2002-08-26 Thread Raj Mettai

Hello,
 
We're attempting to connect Tomcat 4.0 to Apache 2.0 but are having problems. All of 
the existing documention focuses on connecting Apache 1.3 to Tomcat 4.0, but there is 
nothing we have seen that discusses connecting Tomcat 4.0 to Apache 2.0 and there are 
enough differences between Apache 1.3 and Apache 2.0 that the existing documentation 
does not help us.
 
Specifically, when connection Apache 1.3 to Tomcat 4.0, it discusses the following 
items:
   
 LoadModule proxy_module  {path-to-modules}/mod_proxy.so

AddModule  mod_proxy.c
ProxyPass /myapp  http://localhost:8081/myapp

ProxyPassReverse  /myapp  http://localhost:8081/myapp
 

but, we don't see mod_proxy.so in the Apache 2.0 modules directory, so we don't know 
what to do. What is the equivalent configuration for Apache 2.0? Is there any 
documentation that exists for connecting these specific versions?
 
Also, does anybody know of a way to connect iPlanet 6.0sp2 to Tomcat 4.0? We have 
iPlanet and would like to continue using it, but we can't find any way to get the two 
products to work together.
 
thank you in advance for your assistance,
Raj and Brandon - Broward Community College
 



RE: env variable keeps resetting on restart of server

2002-08-26 Thread Turner, John


If you are setting it after you login, it only holds for that login session.
If you logout or restart the server, it is gone.

If you need it to stick around, you can put it in /etc/profile if you want
it to apply to every person who logs in, or put it in your .profile
($HOME/.profile) file so that it is set when you login.

John Turner
[EMAIL PROTECTED]


> -Original Message-
> From: neal [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 26, 2002 2:29 PM
> To: Tomcat Users List
> Subject: env variable keeps resetting on restart of server
> 
> 
> Does anyone know why my JAVA_HOME environment variable won't 
> keep when I
> restart the server (Linux)?  Here's how I set it (note I set 
> TOMCAT_HOME the
> same way and it hasn't been a problem):
> 
> JAVA_HOME=/usr/java/j2sdk1.4.0_01; export JAVA_HOME
> 
> Thanks.
> Neal
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




env variable keeps resetting on restart of server

2002-08-26 Thread neal

Does anyone know why my JAVA_HOME environment variable won't keep when I
restart the server (Linux)?  Here's how I set it (note I set TOMCAT_HOME the
same way and it hasn't been a problem):

JAVA_HOME=/usr/java/j2sdk1.4.0_01; export JAVA_HOME

Thanks.
Neal


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: creating virtual hosts - HOW TO?

2002-08-26 Thread neal

Jacob,

Cool thanks!  I just had to play with those settings  but in principal
you're right on the money!

Here's what finally worked:

 
 
 


Cheers!
Neal


-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 10:43 AM
To: Tomcat Users List
Subject: Re: creating virtual hosts - HOW TO?


Hello neal,

Your appBase attribute on the  element plus your docBase on
your  element implies that you have the following
directory structure:

$TOMCAT_HOME/webapps/hotel/hotel

Note that the docBase for a particular webapp looks for the named
directory inside the appBase.  Since your appBase is webapps/hotel,
there should be another "hotel" directory inside the appBase where
your context exists.  I'm assuming what you have set up is actually
this:

$TOMCAT_HOME/webapps/hotel

and you have your webapp inside that first "hotel" directory.  That
won't work.  Put your webapp inside another hotel directory inside the
first "hotel" directory and your example should work.  Or, it might
work if you use a docBase of "".  I'm not positive about that, though,
so you'd have to test and see.  The first solution should work.

Jake

Monday, August 26, 2002, 12:26:48 PM, you wrote:




n> I am attempting to create multiple discreet web apps, each of whom can
n> listen to their own URLs for page requests.  Here's an example of what
I've
n> done for each webApp (virtual host):

n> 
n> 
n> 

n>  But, I am getting a 500 error with the message "No Context configured to
n> process this request".  It sees to be at least redirecting the requests
for
n> the specified URLs correctly (away from the default webapp) ... but I'm
n> getting that darned 500 error ... dispite specifying the Context node.
n> grrr

n> Any thoughts?

n> Thanks!
n> Neal



n> --
n> To unsubscribe, e-mail:

n> For additional commands, e-mail:




--
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat-connector....

2002-08-26 Thread Michael Delamere

that´s more than sufficient.  I was looking at the wrong place!

Mind you, it makes sense to look under
"builds/jakarta-tomcat-connectors/jk/" :-)

Thanks a bunch,

Michael


- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, August 26, 2002 8:08 PM
Subject: RE: Tomcat-connector


>
> H...not sure what the complaint is here.
>
> The binaries are here (mod_jk, tomcat 3 and 4 compatible):
>
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3.1/bin/linux/i38
> 6/
>
> And the source is here:
> http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/src/
>
> Let us know if that isn't sufficient.
>
> John Turner
> [EMAIL PROTECTED]
>
>
> > -Original Message-
> > From: Michael Delamere [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, August 26, 2002 2:09 PM
> > To: [EMAIL PROTECTED]
> > Subject: Tomcat-connector
> >
> >
> > Hi,
> >
> > I know that this is a never ending story but just one thing
> >
> > Why is there a special effort being made in creating the directory
> > structure, yet when I get to the final folder it´s empty!?
> >
> > For example:
> >
> > http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/
> > release/v1.2.0
> > /bin/linux/i386/
> >
> > Please don´t flame because I´m not trying to be rude.  It´s
> > just that it
> > would be easier if it was there...
> >
> > Regards,
> >
> > Michael
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat-connector....

2002-08-26 Thread Turner, John


H...not sure what the complaint is here.

The binaries are here (mod_jk, tomcat 3 and 4 compatible):
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3.1/bin/linux/i38
6/

And the source is here:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/src/

Let us know if that isn't sufficient.

John Turner
[EMAIL PROTECTED]


> -Original Message-
> From: Michael Delamere [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 26, 2002 2:09 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat-connector
> 
> 
> Hi,
> 
> I know that this is a never ending story but just one thing
> 
> Why is there a special effort being made in creating the directory
> structure, yet when I get to the final folder it´s empty!?
> 
> For example:
> 
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/
> release/v1.2.0
> /bin/linux/i386/
> 
> Please don´t flame because I´m not trying to be rude.  It´s 
> just that it
> would be easier if it was there...
> 
> Regards,
> 
> Michael
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat-connector....

2002-08-26 Thread Michael Delamere

Hi,

I know that this is a never ending story but just one thing

Why is there a special effort being made in creating the directory
structure, yet when I get to the final folder it´s empty!?

For example:

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0
/bin/linux/i386/

Please don´t flame because I´m not trying to be rude.  It´s just that it
would be easier if it was there...

Regards,

Michael



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[TC 4.1] Defining jsp reloading using conf/web.xml

2002-08-26 Thread Andrew Conrad

The conf/web.xml seems to define two parameters ( development, reloading
) for the JSP page compiler that do not seem to work.  Can anyone
confirm that these work for them, or has the   replaced this type of configuration? 

Example:




jsp
 
org.apache.jasper.servlet.JspServlet

logVerbosityLevel
WARNING


development
true


reloading
true

3




Andrew Conrad
617.470.8045
[EMAIL PROTECTED] 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: creating virtual hosts - HOW TO?

2002-08-26 Thread Jacob Kjome

Hello neal,

Your appBase attribute on the  element plus your docBase on
your  element implies that you have the following
directory structure:

$TOMCAT_HOME/webapps/hotel/hotel

Note that the docBase for a particular webapp looks for the named
directory inside the appBase.  Since your appBase is webapps/hotel,
there should be another "hotel" directory inside the appBase where
your context exists.  I'm assuming what you have set up is actually
this:

$TOMCAT_HOME/webapps/hotel

and you have your webapp inside that first "hotel" directory.  That
won't work.  Put your webapp inside another hotel directory inside the
first "hotel" directory and your example should work.  Or, it might
work if you use a docBase of "".  I'm not positive about that, though,
so you'd have to test and see.  The first solution should work.

Jake

Monday, August 26, 2002, 12:26:48 PM, you wrote:




n> I am attempting to create multiple discreet web apps, each of whom can
n> listen to their own URLs for page requests.  Here's an example of what I've
n> done for each webApp (virtual host):

n> 
n> 
n> 

n>  But, I am getting a 500 error with the message "No Context configured to
n> process this request".  It sees to be at least redirecting the requests for
n> the specified URLs correctly (away from the default webapp) ... but I'm
n> getting that darned 500 error ... dispite specifying the Context node.
n> grrr

n> Any thoughts?

n> Thanks!
n> Neal



n> --
n> To unsubscribe, e-mail:   
n> For additional commands, e-mail: 



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat log in linux

2002-08-26 Thread micael

There is "top" and "ps aux".

At 07:54 AM 8/26/2002 -0400, you wrote:

>No, there is nothing analogous to the command line window that pops up in
>Windows in Linux when starting tomcat.
>
>Windows is a poor operating system for running services.  Linux/UNIX is a
>proper operating system for running services...there is no need to startup
>another process to run tomcat on Linux.  Tomcat (and other services) simply
>run as they should.
>
>If you post error messages, and possibly snippets of your log files, and
>what you've done to try and resolve any of them, it would be much easier for
>someone to help.  We don't even know what Linux you are using.
>
>That said, depending on the version of Linux you are using, and the version
>of tomcat, you can determine if something is running with the "ps" command.
>"man ps" will provide you with help, in general tomcat can be seen running
>by looking for lines that have "java" in them, after using the command: "ps
>-ef"
>
>A shorthand way of doing this is "ps -ef |grep java".
>
>John Turner
>[EMAIL PROTECTED]
>
>
> > -Original Message-
> > From: neal [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, August 26, 2002 2:46 AM
> > To: Tomcat Users List
> > Subject: Tomcat log in linux
> >
> >
> > In Windows, when you run Tomcat, a DOS command line window
> > pops up and you
> > see real-time messages from Tomcat.  If something isn't going
> > right ... you
> > see those messages.  Is there something analogous in
> > Linux/Tomcat?  I'm
> > trying to get the dumb thing running but I'm not seeing any
> > debug info and
> > the logs look relatively empty.
> >
> > Thanks.
> > NEal
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat 4.x body tags not exposing variables?

2002-08-26 Thread Ryan Daigle

I'm having a problem with Tomcat 4.x and body tags.  I am trying to migrate
from a JBoss/Tomcat4.x environment to a Tomcat 4.1.9 setup.  I say this
because the tags in question function as I would expect with the JBoss setup
but not the Tomcat setup.

Here is the situation.  I have a tag that exposes certain variables to the
page:

public class ExposerTag extends BodyTagSupport {

   public int doStartTag() throws JspTagException {
   
  //This "team" variable is properly declared in a TEI class   
  pageContext.setAttribute("team", team);
  return EVAL_BODY_INCLUDE;
}
}

And I call this tag as such within a jsp page:


   <%= team.toString(); %>


I get a NullPointer exception from this JSP page at the "team.toString()"
line.  I know from logging statements within the tag that there is a valid
Team object being sent to the page context.

Taking a look at the resulting servlet source of this jsp page, it looks
like that because the tag returns the EVAL_BODY_INCLUDE result, the team
attribute is never set (the code has been cleaned for your viewing
pleasure):

int result = exposer.doStartTag();
if (result != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
   if (result != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
javax.servlet.jsp.tagext.BodyContent _bc =
pageContext.pushBody();
_bc.clear();
out = _bc;
exposer.setBodyContent(_bc);
exposer.doInitBody();
team = (Team) pageContext.findAttribute("team");
   }
   do {
  out.write(team.toString());
   } while {
  //blah 
   }
}

So I believe my problem is that because I am using the EVAL_BODY_INCLUDE
result for the doStartTag() method of my exposer tag, the attribute is never
sent to the page context for consumption within the page.

My questions are; 1) Why would this work in a JBoss/Tomcat setup and not in
a purely Tomcat setup and 2) Should I not be using the EVAL_BODY_INCLUDE
result code for a method of this type?

When I change the tag to return the EVAL_BODY_BUFFERED result, then any
nested tags are properly written out to the output stream, so I don't
believe this is an acceptable option.

Can anybody shed some light on my situation.  I have that eerie feeling that
I'm missing something incredibly simple here...

-Ryan

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




creating virtual hosts - HOW TO?

2002-08-26 Thread neal




I am attempting to create multiple discreet web apps, each of whom can
listen to their own URLs for page requests.  Here's an example of what I've
done for each webApp (virtual host):





 But, I am getting a 500 error with the message "No Context configured to
process this request".  It sees to be at least redirecting the requests for
the specified URLs correctly (away from the default webapp) ... but I'm
getting that darned 500 error ... dispite specifying the Context node.
grrr

Any thoughts?

Thanks!
Neal



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Can't restart Linux

2002-08-26 Thread neal

Turns out it was my bad.  I had edited a roles in the tomcat users xml file
and omotted a quotation mark - thus tomcat wasn't able to parse the XML.  It
was confusing though becuase the debug info wasn't forthcoming. Jacob's
suggestion to set the debug levels though seems to have helpd.  That and
discoving the catalina.out file.  :)

Cheers.
Neal


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 4:57 AM
To: 'Tomcat Users List'
Subject: RE: Can't restart Linux



Please give us more information.  Be specific.

What URL is not giving a response?

What do the logs say?

After you run startup.sh, what is the output of "ps -ef |grep java"?

John Turner
[EMAIL PROTECTED]

> -Original Message-
> From: neal [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 26, 2002 4:52 AM
> To: Tomcat Users List
> Subject: Can't restart Linux
>
>
> I can't get tomcat to restart in linux.
>
> I run the ./bin/startup.sh file and it lists a fe env variables ... no
> errors.  This seems to imply that its starting ... but yet I
> never get a
> response back from the server.  It was working fine until I
> added a couple
> of host and connector nodes to the server.xml file and
> restarted the server.
> Since then I've removed those additional nodes, rebooted, and again
> attempted to to start Tomcat.  Still no luck.
>
> Any thoughts?
>
> Neal
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat log in linux

2002-08-26 Thread micael

Have you even opened the command line in Linux?

At 11:46 PM 8/25/2002 -0700, you wrote:
>In Windows, when you run Tomcat, a DOS command line window pops up and you
>see real-time messages from Tomcat.  If something isn't going right ... you
>see those messages.  Is there something analogous in Linux/Tomcat?  I'm
>trying to get the dumb thing running but I'm not seeing any debug info and
>the logs look relatively empty.
>
>Thanks.
>NEal
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: startup/shutdown Tomcat on Linux

2002-08-26 Thread micael

sh startup.sh

sh is the shell.

At 10:04 PM 8/25/2002 -0700, you wrote:
>How do you start and shutdown Tomcat on Linux?
>
>I'm (obvioulsy) a windows person.  I am attempting to get my app running on
>Linux.  From the /bin directory I attempted to call "shutdown.bat".  This
>didn't work so I restarted the server (shutdown -r now).  When the server
>came back, Tomcat was no longer responding.  Attempting to call the URLs
>pointing to Tomcat, I now get either (a) a DNS error or (b) a hung request
>that never comes back.
>
>I guess my ideal would be that Tomcat would auto-start upon reboot of the
>server.  Is this easy to setup? In the near-term though I just need to know
>how to start/restart/shutdown tomcat.
>
>Thanks in advance!
>
>Neal
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: mod_jk error

2002-08-26 Thread Carsten Burstedde

Hi Nicholas,

> I have always assumed these error messages were caused by
> the browser closing the connection -- generally because the
> user has clicked on something else or pressed STOP.
> (Of course, a double-click can exhibit the same way.)
> 
> The servlet doesn't know that the user is no longer listening,
> so when it tries to write the response to a closed connection,
> it get's an error.  

thanks for the answer... so nothing serious (no bugs in mod_jk) :) . 
What about buggy browsers needing a workaround in httpd.conf or similar? 
Are the following directives sufficient?

httpd.conf (SSL virtual host):
   SetEnvIf User-Agent ".*MSIE.*" \
   nokeepalive ssl-unclean-shutdown \
   downgrade-1.0 force-response-1.0

Greetings,

Carsten


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Context management and virtual host

2002-08-26 Thread Q. Werty

OK, thanks a lot too.

>
>
> On Mon, 26 Aug 2002, Q. Werty wrote:
>
> > Date: Mon, 26 Aug 2002 17:48:10 +0200
> > From: Q. Werty <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: "[utf-8] tomcat-user" <[EMAIL PROTECTED]>
> > Subject: Re: Context management and virtual host
> >
> > I agree there's no problem with installing the manager
> > application in each virtual host. I just don't want to do
this
> > because I don't want to publish this context to anyone, even
> > with credentials.
> > I would be ready to this on our production server if I could
> > restrict manager context access to some IP adresses
(127.0.0.1
> > for exemple).
> > ==> Is it possible? (if not, what about thinking of this in
> > future release?)
> >
>
> Check out the "Request Filters" section on:
>
>   http://jakarta.apache.org/tomcat/tomcat-4.1-
doc/config/context.html
>
> Craig
>
>
> >
> >
> > > There is no current support for a manager webapp that
works
> > cross-host.
> > > The people I know using multiple virtual hosts haven't had
> > any problems
> > > with the notion of installing manager in each host
(usually
> > with a unique
> > > username/password if you allow the virtual host users to
> > manage their own
> > > webapps).
> > >
> > > Admin webapp support for contexts is primarily for
tweaking
> > existing
> > > config properties.  I view manager as the standard
mechanism
> > for dynamic
> > > starting and stopping of webapps, in addition to
deploying,
> > undeploying,
> > > and reloading.  Although the "user interface" of manager
is
> > quite limited,
> > > it is expressly designed to be used by tools -- such as
the
> > Ant custom
> > > tasks included in Tomcat 4.1, and the version of
deploytool
> > shipped with
> > > the JWSDP .
> > >
> > > People building plugins for IDEs should really be
integrating
> > support for
> > > manager commands instead of trying to embed Tomcat inside
> > their
> > > environments.  They'd find it a lot easier.
> > >
> > > Craig
> > >
> > >
> > > On Mon, 26 Aug 2002, Q. Werty wrote:
> > >
> > > > Date: Mon, 26 Aug 2002 16:42:32 +0200
> > > > From: Q. Werty <[EMAIL PROTECTED]>
> > > > Reply-To: Tomcat Users List 
> > > > To: "[utf-8] tomcat-user" 
> > > > Subject: Context management and virtual host
> > > >
> > > > I'am looking for a way to manage all contexts installed
on
> > my
> > > > server.
> > > > I've got numerous virtual hosts and I'like NOT to
install
> > > > manager context in all virtual hosts. How can I do?
> > > > - Is it possible to install a "cross-host" context in
> > Tomcat?
> > > > - I saw the administration interface in Tomcat 4.1 beta.
> > It's a
> > > > very great work, this interface enable to
see/add/remove all
> > > > contexts accross all virtual hosts. I thought it was
what I
> > was
> > > > looking for but apparently there's nothing to
> > start/stop/reload
> > > > context. Is it planned for final version?
> > > >
> > > > Thanks in advance for any response
> > > >
> > > > Accédez au courrier électronique de La Poste :
> > www.laposte.net ; 3615 LAPOSTENET (0,13 €/mn) ; tél : 08 92
68
> > 13 50 (0,34€/mn)"
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:    > [EMAIL PROTECTED]>
> > > > For additional commands, e-mail:  > [EMAIL PROTECTED]>
> > > >
> > > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:    > [EMAIL PROTECTED]>
> > > For additional commands, e-mail:  > [EMAIL PROTECTED]>
> > >
> > >
> >
> > Accédez au courrier électronique de La Poste :
www.laposte.net ; 3615 LAPOSTENET (0,13 €/mn) ; tél : 08 92 68
13 50 (0,34€/mn)"
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:   
> > For additional commands, e-mail: 
> >
> >
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>

Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 
€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)"




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Context management and virtual host

2002-08-26 Thread Q. Werty

OK, I haven't saw this. Thanks a lot

> Use the Remote Address Valve
>
> 
>allow="127.0.0.1" />
> 
>
> More info is here ->
> http://jakarta.apache.org/tomcat/tomcat-4.0-
doc/config/valve.html
>
> - Andrew
>
> > -Original Message-
> > From: Q. Werty [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, August 26, 2002 11:48 AM
> > To: tomcat-user
> > Subject: Re: Context management and virtual host
> >
> >
> > I agree there's no problem with installing the manager
> > application in each virtual host. I just don't want to do
this
> > because I don't want to publish this context to anyone,
even
> > with credentials.
> > I would be ready to this on our production server if I
could
> > restrict manager context access to some IP adresses
(127.0.0.1
> > for exemple).
> > ==> Is it possible? (if not, what about thinking of this in
> > future release?)
> >
> >
> >
> > > There is no current support for a manager webapp that
works
> > cross-host.
> > > The people I know using multiple virtual hosts haven't had
> > any problems
> > > with the notion of installing manager in each host
(usually
> > with a unique
> > > username/password if you allow the virtual host users to
> > manage their own
> > > webapps).
> > >
> > > Admin webapp support for contexts is primarily for
tweaking
> > existing
> > > config properties.  I view manager as the standard
mechanism
> > for dynamic
> > > starting and stopping of webapps, in addition to
deploying,
> > undeploying,
> > > and reloading.  Although the "user interface" of manager
is
> > quite limited,
> > > it is expressly designed to be used by tools -- such as
the
> > Ant custom
> > > tasks included in Tomcat 4.1, and the version of
deploytool
> > shipped with
> > > the JWSDP .
> > >
> > > People building plugins for IDEs should really be
integrating
> > support for
> > > manager commands instead of trying to embed Tomcat inside
> > their
> > > environments.  They'd find it a lot easier.
> > >
> > > Craig
> > >
> > >
> > > On Mon, 26 Aug 2002, Q. Werty wrote:
> > >
> > > > Date: Mon, 26 Aug 2002 16:42:32 +0200
> > > > From: Q. Werty <[EMAIL PROTECTED]>
> > > > Reply-To: Tomcat Users List 
> > > > To: "[utf-8] tomcat-user" 
> > > > Subject: Context management and virtual host
> > > >
> > > > I'am looking for a way to manage all contexts installed
on
> > my
> > > > server.
> > > > I've got numerous virtual hosts and I'like NOT to
install manager
> > > > context in all virtual hosts. How can I do?
> > > > - Is it possible to install a "cross-host" context in
> > Tomcat?
> > > > - I saw the administration interface in Tomcat 4.1 beta.
> > It's a
> > > > very great work, this interface enable to
see/add/remove all
> > > > contexts accross all virtual hosts. I thought it was
what I
> > was
> > > > looking for but apparently there's nothing to
> > start/stop/reload
> > > > context. Is it planned for final version?
> > > >
> > > > Thanks in advance for any response
> > > >
> > > > Accédez au courrier électronique de La Poste :
> > www.laposte.net ; 3615 LAPOSTENET (0,13 €/mn) ; tél : 08 92
68
> > 13 50 (0,34€/mn)"
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:    > [EMAIL PROTECTED]>
> > > > For additional commands, e-mail:  > [EMAIL PROTECTED]>
> > > >
> > > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:    > [EMAIL PROTECTED]>
> > > For additional commands, e-mail:  > [EMAIL PROTECTED]>
> > >
> > >
> >
> > Accédez au courrier électronique de La Poste :
> > www.laposte.net ; 3615 LAPOSTENET (0,13 €/mn) > ; tél : 08
92
> > 68 13 50 (0,34€/mn)"
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> >  [EMAIL PROTECTED]>
> > For
> > additional commands,
> > e-mail: 
> >
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>

Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 
€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)"




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Context management and virtual host

2002-08-26 Thread Craig R. McClanahan



On Mon, 26 Aug 2002, Q. Werty wrote:

> Date: Mon, 26 Aug 2002 17:48:10 +0200
> From: Q. Werty <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: "[utf-8] tomcat-user" <[EMAIL PROTECTED]>
> Subject: Re: Context management and virtual host
>
> I agree there's no problem with installing the manager
> application in each virtual host. I just don't want to do this
> because I don't want to publish this context to anyone, even
> with credentials.
> I would be ready to this on our production server if I could
> restrict manager context access to some IP adresses (127.0.0.1
> for exemple).
> ==> Is it possible? (if not, what about thinking of this in
> future release?)
>

Check out the "Request Filters" section on:

  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html

Craig


>
>
> > There is no current support for a manager webapp that works
> cross-host.
> > The people I know using multiple virtual hosts haven't had
> any problems
> > with the notion of installing manager in each host (usually
> with a unique
> > username/password if you allow the virtual host users to
> manage their own
> > webapps).
> >
> > Admin webapp support for contexts is primarily for tweaking
> existing
> > config properties.  I view manager as the standard mechanism
> for dynamic
> > starting and stopping of webapps, in addition to deploying,
> undeploying,
> > and reloading.  Although the "user interface" of manager is
> quite limited,
> > it is expressly designed to be used by tools -- such as the
> Ant custom
> > tasks included in Tomcat 4.1, and the version of deploytool
> shipped with
> > the JWSDP .
> >
> > People building plugins for IDEs should really be integrating
> support for
> > manager commands instead of trying to embed Tomcat inside
> their
> > environments.  They'd find it a lot easier.
> >
> > Craig
> >
> >
> > On Mon, 26 Aug 2002, Q. Werty wrote:
> >
> > > Date: Mon, 26 Aug 2002 16:42:32 +0200
> > > From: Q. Werty <[EMAIL PROTECTED]>
> > > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > > To: "[utf-8] tomcat-user" <[EMAIL PROTECTED]>
> > > Subject: Context management and virtual host
> > >
> > > I'am looking for a way to manage all contexts installed on
> my
> > > server.
> > > I've got numerous virtual hosts and I'like NOT to install
> > > manager context in all virtual hosts. How can I do?
> > > - Is it possible to install a "cross-host" context in
> Tomcat?
> > > - I saw the administration interface in Tomcat 4.1 beta.
> It's a
> > > very great work, this interface enable to see/add/remove all
> > > contexts accross all virtual hosts. I thought it was what I
> was
> > > looking for but apparently there's nothing to
> start/stop/reload
> > > context. Is it planned for final version?
> > >
> > > Thanks in advance for any response
> > >
> > > Accédez au courrier électronique de La Poste :
> www.laposte.net ; 3615 LAPOSTENET (0,13 €/mn) ; tél : 08 92 68
> 13 50 (0,34€/mn)"
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:    [EMAIL PROTECTED]>
> > > For additional commands, e-mail:  [EMAIL PROTECTED]>
> > >
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:    [EMAIL PROTECTED]>
> > For additional commands, e-mail:  [EMAIL PROTECTED]>
> >
> >
>
> Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET 
>(0,13 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)"
>
>
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat Installation on linux

2002-08-26 Thread Peter T. Abplanalp

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Aug 26, 2002 at 09:07:31AM -0700, Randall R Schulz wrote:
> Hi,

hello.

> sh -x shutdown.sh > shutdown.txt 2>&1
> 
> The real point is to include the standard error in the output captured in 
> "shutdown.txt"

good point.

> And really, a ".txt" suffix? Yuck!

well, i wanted to make sure our windows listeners where able to open
it without having to do some "open with" rigamaroll if they were so
inclined.  personally, i don't use an os that makes me put extensions
on things so that it knows how to open them.  my os assumes i know
what i am doing and lets me open things any way i want.

- -- 
Peter Abplanalp

Email:   [EMAIL PROTECTED]
PGP: pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9alO9ggA8sH0iRXQRAmEPAJ4+1lGkbkOELcS6HpaD13+Qupx+JQCeLV2/
bffV6TxM26YUNoKD+Stg168=
=XuOI
-END PGP SIGNATURE-

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Context management and virtual host

2002-08-26 Thread Andrew Conrad

Use the Remote Address Valve





More info is here ->
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/valve.html

- Andrew

> -Original Message-
> From: Q. Werty [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, August 26, 2002 11:48 AM
> To: tomcat-user
> Subject: Re: Context management and virtual host
> 
> 
> I agree there's no problem with installing the manager 
> application in each virtual host. I just don't want to do this  
> because I don't want to publish this context to anyone, even 
> with credentials.
> I would be ready to this on our production server if I could 
> restrict manager context access to some IP adresses (127.0.0.1 
> for exemple).
> ==> Is it possible? (if not, what about thinking of this in 
> future release?)
> 
> 
> 
> > There is no current support for a manager webapp that works
> cross-host.
> > The people I know using multiple virtual hosts haven't had
> any problems
> > with the notion of installing manager in each host (usually
> with a unique
> > username/password if you allow the virtual host users to
> manage their own
> > webapps).
> > 
> > Admin webapp support for contexts is primarily for tweaking
> existing
> > config properties.  I view manager as the standard mechanism
> for dynamic
> > starting and stopping of webapps, in addition to deploying,
> undeploying,
> > and reloading.  Although the "user interface" of manager is
> quite limited,
> > it is expressly designed to be used by tools -- such as the
> Ant custom
> > tasks included in Tomcat 4.1, and the version of deploytool
> shipped with
> > the JWSDP .
> > 
> > People building plugins for IDEs should really be integrating
> support for
> > manager commands instead of trying to embed Tomcat inside
> their
> > environments.  They'd find it a lot easier.
> > 
> > Craig
> > 
> > 
> > On Mon, 26 Aug 2002, Q. Werty wrote:
> > 
> > > Date: Mon, 26 Aug 2002 16:42:32 +0200
> > > From: Q. Werty <[EMAIL PROTECTED]>
> > > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > > To: "[utf-8] tomcat-user" <[EMAIL PROTECTED]>
> > > Subject: Context management and virtual host
> > >
> > > I'am looking for a way to manage all contexts installed on
> my
> > > server.
> > > I've got numerous virtual hosts and I'like NOT to install manager 
> > > context in all virtual hosts. How can I do?
> > > - Is it possible to install a "cross-host" context in
> Tomcat?
> > > - I saw the administration interface in Tomcat 4.1 beta.
> It's a
> > > very great work, this interface enable to see/add/remove all 
> > > contexts accross all virtual hosts. I thought it was what I
> was
> > > looking for but apparently there's nothing to
> start/stop/reload
> > > context. Is it planned for final version?
> > >
> > > Thanks in advance for any response
> > >
> > > Accédez au courrier électronique de La Poste :
> www.laposte.net ; 3615 LAPOSTENET (0,13 €/mn) ; tél : 08 92 68 
> 13 50 (0,34€/mn)"
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:    [EMAIL PROTECTED]>
> > > For additional commands, e-mail:  [EMAIL PROTECTED]>
> > >
> > >
> > 
> > 
> > --
> > To unsubscribe, e-mail:    [EMAIL PROTECTED]>
> > For additional commands, e-mail:  [EMAIL PROTECTED]>
> > 
> > 
> 
> Accédez au courrier électronique de La Poste : 
> www.laposte.net ; 3615 LAPOSTENET (0,13 €/mn) > ; tél : 08 92 
> 68 13 50 (0,34€/mn)"
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE : Bugzilla down, can't submit tomcat bug

2002-08-26 Thread Michael

Did you actually submit a bug?  I tried several times on Friday,
Saturday, and again today and each time it takes about 5 minutes to time
out.

The bug I want to submit is for the CATALINA_BASE variable.. When I use
it my web app is not accessible.  I've posted a few messages about it
but haven't gotten much of a response, I don't think many people have
tried using it.

http://marc.theaimsgroup.com/?l=tomcat-user&m=103000367314894&w=2


> -Original Message-
> From: Andrew Conrad [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, August 26, 2002 5:26 PM
> To: 'Tomcat Users List'
> Subject: RE: Bugzilla down, can't submit tomcat bug
> 
> 
> Bugzilla seems to be working for me.
> 
> I read your msg concerning differentiation between 
> SQLException's and user login failure.  I don't think it's 
> possible, and I don't think it's a bug.  Mainly because not 
> all Realm's use SQLExceptions.  I think you would have to 
> modify the Realm interface and the BaseRealm class to add 
> this functionality.
> 
> If you are just trying to request an enhancement, that would 
> be the place too.  
> 
> - Andrew
> 
> > -Original Message-
> > From: Michael [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, August 26, 2002 11:10 AM
> > To: Tomcat Users List
> > Subject: Bugzilla down, can't submit tomcat bug
> > 
> > 
> > I've emailed the contact listed on the error page but the
> > email bounces back.  I'm not sure what I can do to report a 
> > tomcat bug.
> > 
> > --
> > 
> > 
> http://issues.apache.org/bugzilla/post_bug.cgi
> 
> Internal Server Error
> The server encountered an internal error or misconfiguration 
> and was unable to complete your request.
> 
> Please contact the server administrator, [EMAIL PROTECTED] and 
> inform them of the time the error occurred, and anything you 
> might have done that may have caused the error.
> 
> More information about this error may be available in the 
> server error log.
> 
> Additionally, a 400 Bad Request error was encountered while trying to
> use an ErrorDocument to handle the request.   
> 
> 
> 
> --
> To unsubscribe, e-mail: 
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat Installation on linux

2002-08-26 Thread Randall R Schulz

Hi,

At 08:48 2002-08-26, Peter T. Abplanalp wrote:

>On Mon, Aug 26, 2002 at 11:23:16AM -0400, khozaima shakir wrote:
> > Hi Randall,
> > Sorry, guess the way i typed was misleading, i typed just
> > "shutdown.sh" at command prompt.
> > The directory that I was in when I type in startup.sh or shutdown.sh is
> > user/userName/jakarta-tomcat-4.0.4/bin>
> > The output i get on shutdown is --  Segmentation fault
>
>Please execute the following in user/userName/jakarta-tomcat-4.0.4/bin
>and post it to the list:
>
>   sh -x ./shutdown.sh > shutdown.txt


Better make that:

sh -x shutdown.sh > shutdown.txt 2>&1

(the "./" is unnecessary here, since the PATH is not used to find 
"shutdown.sh" -- PATH would be consulted if you included the "-c" option, 
however)

The real point is to include the standard error in the output captured in 
"shutdown.txt"

And really, a ".txt" suffix? Yuck!

Randall "when in Rome ..." Schulz
Mountain View, CA USA


>The command will create a file shutdown.txt which you can post.  This
>will give us an idea of where the seg fault is happening.
>
>- --
>Peter Abplanalp


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat Installation on linux

2002-08-26 Thread Peter T. Abplanalp

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Aug 26, 2002 at 11:23:16AM -0400, khozaima shakir wrote:
> Hi Randall,
> Sorry, guess the way i typed was misleading, i typed just
> "shutdown.sh" at command prompt.
> The directory that I was in when I type in startup.sh or shutdown.sh is 
> user/userName/jakarta-tomcat-4.0.4/bin>
> The output i get on shutdown is --  Segmentation fault

please execute the following in user/userName/jakarta-tomcat-4.0.4/bin
and post it to the list:

  sh -x ./shutdown.sh > shutdown.txt

the command will create a file shutdown.txt which you can post.  this
will give us an idea of where the seg fault is happening.

- -- 
Peter Abplanalp

Email:   [EMAIL PROTECTED]
PGP: pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9ak3kggA8sH0iRXQRAsWRAKCEY9kcw+0Z5hp0JHQJogUS0Y7fCgCeKB19
ig4T5NBEsdnRqZYSXX68hDQ=
=c+G2
-END PGP SIGNATURE-

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Context management and virtual host

2002-08-26 Thread Q. Werty

I agree there's no problem with installing the manager
application in each virtual host. I just don't want to do this
because I don't want to publish this context to anyone, even
with credentials.
I would be ready to this on our production server if I could
restrict manager context access to some IP adresses (127.0.0.1
for exemple).
==> Is it possible? (if not, what about thinking of this in
future release?)



> There is no current support for a manager webapp that works
cross-host.
> The people I know using multiple virtual hosts haven't had
any problems
> with the notion of installing manager in each host (usually
with a unique
> username/password if you allow the virtual host users to
manage their own
> webapps).
>
> Admin webapp support for contexts is primarily for tweaking
existing
> config properties.  I view manager as the standard mechanism
for dynamic
> starting and stopping of webapps, in addition to deploying,
undeploying,
> and reloading.  Although the "user interface" of manager is
quite limited,
> it is expressly designed to be used by tools -- such as the
Ant custom
> tasks included in Tomcat 4.1, and the version of deploytool
shipped with
> the JWSDP .
>
> People building plugins for IDEs should really be integrating
support for
> manager commands instead of trying to embed Tomcat inside
their
> environments.  They'd find it a lot easier.
>
> Craig
>
>
> On Mon, 26 Aug 2002, Q. Werty wrote:
>
> > Date: Mon, 26 Aug 2002 16:42:32 +0200
> > From: Q. Werty <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: "[utf-8] tomcat-user" <[EMAIL PROTECTED]>
> > Subject: Context management and virtual host
> >
> > I'am looking for a way to manage all contexts installed on
my
> > server.
> > I've got numerous virtual hosts and I'like NOT to install
> > manager context in all virtual hosts. How can I do?
> > - Is it possible to install a "cross-host" context in
Tomcat?
> > - I saw the administration interface in Tomcat 4.1 beta.
It's a
> > very great work, this interface enable to see/add/remove all
> > contexts accross all virtual hosts. I thought it was what I
was
> > looking for but apparently there's nothing to
start/stop/reload
> > context. Is it planned for final version?
> >
> > Thanks in advance for any response
> >
> > Accédez au courrier électronique de La Poste :
www.laposte.net ; 3615 LAPOSTENET (0,13 €/mn) ; tél : 08 92 68
13 50 (0,34€/mn)"
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:   
> > For additional commands, e-mail: 
> >
> >
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>

Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 
€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)"




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat Installation on linux

2002-08-26 Thread Randall R Schulz

Shakir,

Sorry for the misunderstanding.

That's pretty odd. It's typical nowadays on Unix systems to omit "." from 
the PATH, so unless you've added "." (or an empty PATH element, which is to 
say a leading colon or two colons in a row), you need to enter "./shutdown" 
or a full path name ".../jakarta-tomcat-4.0.4/bin/shutdown.sh" (where "..." 
is the directory in which the Tomcat installation was performed) in order 
to invoke the proper script.

The Segmentation fault certainly should not occur. If it was the JVM that 
crashed like that, it's a sure indication of a bug in the JVM or in a 
native (as in JNI) library used by your platform's Java system. Make sure 
you have the latest stable release of Java installed on your system.

Randall Schulz
Mountain View, CA USA


At 08:23 2002-08-26, khozaima shakir wrote:
>Hi Randall,
>Sorry, guess the way i typed was misleading, i typed just
>"shutdown.sh" at command prompt.
>The directory that I was in when I type in startup.sh or shutdown.sh is 
>user/userName/jakarta-tomcat-4.0.4/bin>
>The output i get on shutdown is --  Segmentation fault
>Shakir
>
>
>>From: Randall R Schulz <[EMAIL PROTECTED]>
>>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>To: [EMAIL PROTECTED]
>>Subject: Re: Tomcat Installation on linux
>>Date: Mon, 26 Aug 2002 07:18:58 -0700
>>
>>Shakir,
>>
>>Where did you get that command from?
>>
>>Here's what you did: You truncated your "shutdown.sh" script. The ":" is 
>>the no-op command that is used when one wants to use side-effects (such 
>>as I/O redirection) without running a command. The ">" is similar to that 
>>of the DOS/CMD.exe/Command.com in Windows, it redirects output to the 
>>file whose name follows. So you ran the null command (which produces no 
>>output) and redirected it to the "shutdown.sh" script, thus truncating 
>>it. Had you used the append output redirection, ">>", all would be OK, 
>>since adding 0 bytes to the end of "shutdown.sh" would not do any damage 
>>(it would only alter the last modification time of that file, which you 
>>could see with "ls -l shutdown.sh").
>>
>>So you'll have to retrieve the "shutdown.sh" script from your Tomcat 
>>distribution.
>>
>>Then to use it, just invoke it. Since it usually does not run 
>>indefinitely and does not produce a lot of output or usually any 
>>particularly interesting output, there's no need to redirect its output.
>>
>>
>>I recommend that people recently switching from Windows to Linux or 
>>another Unix-like system get some tutorial materials on these basics. 
>>There are some vague similarities with Windows, but a lot is different 
>>and groping around in the dark is not really advisable.
>>
>>Good luck.
>>
>>Randall Schulz
>>Mountain View, CA USA
>>
>>
>>At 04:21 2002-08-26, khozaima shakir wrote:
>>>Hi Jhair,
>>>yes, I am running tomcat from shell.
>>>About shoutdown, I shutdown tomcat by : > shutdown.sh
>>>Thanks
>>>Shakir


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Strange message compiling a JSP in Tomcat 4.0.4

2002-08-26 Thread Michael E. Locasto

Nome,

Although I'm not sure exactly what the problem is, this has happened to me
before when I've replaced some class files or jars that a JSP uses while
Tomcat was running, and then updated the JSP so Tomcat had to recompile it.
A restart of Tomcat fixed the problem.

regards,
Michael


- Original Message -
From: "Adziashvili, Itzik" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, August 26, 2002 11:13 AM
Subject: RE: Strange message compiling a JSP in Tomcat 4.0.4


> Do you have the stack trace?
>
> -Original Message-
> From: Nome real [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 26, 2002 4:19 PM
> To: Tomcat Users List
> Subject: Strange message compiling a JSP in Tomcat 4.0.4
>
>
> Hi all,
>
> I'm using Tomcat 4.0.4 with Security Manager, Sun JDK 1.3.1_04 , trying to
> run a JSP. I receive the following error:
>
> org.apache.jasper.JasperException: Unable to compile class for JSPerror:
An
> error has occurred in the compiler;
> please file a bug report (http://java.sun.com/cgi-bin/bugreport.cgi).
> 1 error
>
> Unfortunately, I have no access to the source code. Any hint ?
>
> Thanks
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Context management and virtual host

2002-08-26 Thread Craig R. McClanahan

There is no current support for a manager webapp that works cross-host.
The people I know using multiple virtual hosts haven't had any problems
with the notion of installing manager in each host (usually with a unique
username/password if you allow the virtual host users to manage their own
webapps).

Admin webapp support for contexts is primarily for tweaking existing
config properties.  I view manager as the standard mechanism for dynamic
starting and stopping of webapps, in addition to deploying, undeploying,
and reloading.  Although the "user interface" of manager is quite limited,
it is expressly designed to be used by tools -- such as the Ant custom
tasks included in Tomcat 4.1, and the version of deploytool shipped with
the JWSDP .

People building plugins for IDEs should really be integrating support for
manager commands instead of trying to embed Tomcat inside their
environments.  They'd find it a lot easier.

Craig


On Mon, 26 Aug 2002, Q. Werty wrote:

> Date: Mon, 26 Aug 2002 16:42:32 +0200
> From: Q. Werty <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: "[utf-8] tomcat-user" <[EMAIL PROTECTED]>
> Subject: Context management and virtual host
>
> I'am looking for a way to manage all contexts installed on my
> server.
> I've got numerous virtual hosts and I'like NOT to install
> manager context in all virtual hosts. How can I do?
> - Is it possible to install a "cross-host" context in Tomcat?
> - I saw the administration interface in Tomcat 4.1 beta. It's a
> very great work, this interface enable to see/add/remove all
> contexts accross all virtual hosts. I thought it was what I was
> looking for but apparently there's nothing to start/stop/reload
> context. Is it planned for final version?
>
> Thanks in advance for any response
>
> Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET 
>(0,13 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)"
>
>
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat Installation on linux

2002-08-26 Thread Michael E. Locasto

try 'sh ./catalina.sh start' from jakarta-tomcat-4.0.4/bin

regards,
michael


- Original Message -
From: "khozaima shakir" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 26, 2002 11:23 AM
Subject: Re: Tomcat Installation on linux


> Hi Randall,
> Sorry, guess the way i typed was misleading, i typed just
> "shutdown.sh" at command prompt.
> The directory that I was in when I type in startup.sh or shutdown.sh is
> user/userName/jakarta-tomcat-4.0.4/bin>
> The output i get on shutdown is --  Segmentation fault
> Shakir
>
>
> >From: Randall R Schulz <[EMAIL PROTECTED]>
> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: Tomcat Installation on linux
> >Date: Mon, 26 Aug 2002 07:18:58 -0700
> >
> >Shakir,
> >
> >Where did you get that command from?
> >
> >Here's what you did: You truncated your "shutdown.sh" script. The ":" is
> >the no-op command that is used when one wants to use side-effects (such
as
> >I/O redirection) without running a command. The ">" is similar to that of
> >the DOS/CMD.exe/Command.com in Windows, it redirects output to the file
> >whose name follows. So you ran the null command (which produces no
output)
> >and redirected it to the "shutdown.sh" script, thus truncating it. Had
you
> >used the append output redirection, ">>", all would be OK, since adding 0
> >bytes to the end of "shutdown.sh" would not do any damage (it would only
> >alter the last modification time of that file, which you could see with
"ls
> >-l shutdown.sh").
> >
> >So you'll have to retrieve the "shutdown.sh" script from your Tomcat
> >distribution.
> >
> >Then to use it, just invoke it. Since it usually does not run
indefinitely
> >and does not produce a lot of output or usually any particularly
> >interesting output, there's no need to redirect its output.
> >
> >
> >I recommend that people recently switching from Windows to Linux or
another
> >Unix-like system get some tutorial materials on these basics. There are
> >some vague similarities with Windows, but a lot is different and groping
> >around in the dark is not really advisable.
> >
> >Good luck.
> >
> >Randall Schulz
> >Mountain View, CA USA
> >
> >
> >At 04:21 2002-08-26, khozaima shakir wrote:
> >>Hi Jhair,
> >>yes, I am running tomcat from shell.
> >>About shoutdown, I shutdown tomcat by : > shutdown.sh
> >>Thanks
> >>Shakir
> >
> >
> >--
> >To unsubscribe, e-mail:
> >
> >For additional commands, e-mail:
> >
> >
>
>
>
>
> _
> Join the worlds largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Bugzilla down, can't submit tomcat bug

2002-08-26 Thread Andrew Conrad

Bugzilla seems to be working for me.

I read your msg concerning differentiation between SQLException's and
user login failure.  I don't think it's possible, and I don't think it's
a bug.  Mainly because not all Realm's use SQLExceptions.  I think you
would have to modify the Realm interface and the BaseRealm class to add
this functionality.

If you are just trying to request an enhancement, that would be the
place too.  

- Andrew

> -Original Message-
> From: Michael [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, August 26, 2002 11:10 AM
> To: Tomcat Users List
> Subject: Bugzilla down, can't submit tomcat bug
> 
> 
> I've emailed the contact listed on the error page but the 
> email bounces back.  I'm not sure what I can do to report a 
> tomcat bug.
> 
> --
> 
> 
http://issues.apache.org/bugzilla/post_bug.cgi

Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.

Please contact the server administrator, [EMAIL PROTECTED] and inform them
of the time the error occurred, and anything you might have done that
may have caused the error.

More information about this error may be available in the server error
log.

Additionally, a 400 Bad Request error was encountered while trying to
use an ErrorDocument to handle the request. 



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat Installation on linux

2002-08-26 Thread khozaima shakir

Hi Randall,
Sorry, guess the way i typed was misleading, i typed just
"shutdown.sh" at command prompt.
The directory that I was in when I type in startup.sh or shutdown.sh is 
user/userName/jakarta-tomcat-4.0.4/bin>
The output i get on shutdown is --  Segmentation fault
Shakir


>From: Randall R Schulz <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Tomcat Installation on linux
>Date: Mon, 26 Aug 2002 07:18:58 -0700
>
>Shakir,
>
>Where did you get that command from?
>
>Here's what you did: You truncated your "shutdown.sh" script. The ":" is 
>the no-op command that is used when one wants to use side-effects (such as 
>I/O redirection) without running a command. The ">" is similar to that of 
>the DOS/CMD.exe/Command.com in Windows, it redirects output to the file 
>whose name follows. So you ran the null command (which produces no output) 
>and redirected it to the "shutdown.sh" script, thus truncating it. Had you 
>used the append output redirection, ">>", all would be OK, since adding 0 
>bytes to the end of "shutdown.sh" would not do any damage (it would only 
>alter the last modification time of that file, which you could see with "ls 
>-l shutdown.sh").
>
>So you'll have to retrieve the "shutdown.sh" script from your Tomcat 
>distribution.
>
>Then to use it, just invoke it. Since it usually does not run indefinitely 
>and does not produce a lot of output or usually any particularly 
>interesting output, there's no need to redirect its output.
>
>
>I recommend that people recently switching from Windows to Linux or another 
>Unix-like system get some tutorial materials on these basics. There are 
>some vague similarities with Windows, but a lot is different and groping 
>around in the dark is not really advisable.
>
>Good luck.
>
>Randall Schulz
>Mountain View, CA USA
>
>
>At 04:21 2002-08-26, khozaima shakir wrote:
>>Hi Jhair,
>>yes, I am running tomcat from shell.
>>About shoutdown, I shutdown tomcat by : > shutdown.sh
>>Thanks
>>Shakir
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>




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


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Strange message compiling a JSP in Tomcat 4.0.4

2002-08-26 Thread Adziashvili, Itzik

Do you have the stack trace?

-Original Message-
From: Nome real [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 4:19 PM
To: Tomcat Users List
Subject: Strange message compiling a JSP in Tomcat 4.0.4


Hi all,

I'm using Tomcat 4.0.4 with Security Manager, Sun JDK 1.3.1_04 , trying to
run a JSP. I receive the following error:

org.apache.jasper.JasperException: Unable to compile class for JSPerror: An
error has occurred in the compiler; 
please file a bug report (http://java.sun.com/cgi-bin/bugreport.cgi).
1 error

Unfortunately, I have no access to the source code. Any hint ?

Thanks

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Bugzilla down, can't submit tomcat bug

2002-08-26 Thread Michael

I've emailed the contact listed on the error page but the email bounces
back.  I'm not sure what I can do to report a tomcat bug.

--


http://issues.apache.org/bugzilla/post_bug.cgi

Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.

Please contact the server administrator, [EMAIL PROTECTED] and inform them
of the time the error occurred, and anything you might have done that
may have caused the error.

More information about this error may be available in the server error
log.

Additionally, a 400 Bad Request error was encountered while trying to
use an ErrorDocument to handle the request. 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: CGI FORM entry empty with TOMCAT standalone

2002-08-26 Thread Stephan Orme

See earlier postings on CGI's I don't think included CGI's work in Tomcat
Standalone. I haven't been able to confirm this. Here's my earlier post:

I'm using Tomcat 4.0.4 to serve dynamic and static pages. I can get includes
to work and I can get CGI's to work but I can't get included CGI's to work.

Anyway, here's what works:

includes on .html pages:


includes on .jsp pages:
<%@ include file="Shared/footer" %>

CGI that works:
http://localhost/PCW/cgi-bin/test-cgi

And here's what DOESN'T work (this is on a .html page)




My Tomcat config file is completely standard - I uncommented the SSI and CGI
bits and renamed the appropriate .jar files but there are no other config
changes. Since both CGI's and includes work my assumption here is that the
SSI servlet doesn't call the CGI servlet. In other words when I call the CGI
from the URL it gets handled by the CGI servlet, and when I include it it
gets handled by the SSI servlet but what I need is for the SSI servlet to
call the CGI servlet which it doesn't do.

Or I could just be making all this up. Anyone want to set me straight? Or,
even better, just tell me how to make it work. I've a lot of trouble using
Tomcat with Apache so I'd prefer to avoid that route and go with a straight
Tomcat solution if at all possible.  TIA, steve



> Hi,
> 
> I Need to integrate some current CGI with an new Java Application.
> So i have installed CGI in Tomcat 4.0.4 standalone and i want not use Apache.
> 
> CGI is running BUT I CAN'T receive FORM DATA. ?
> my variable $keywords is empty.
> 
> I have also tried it with an Apache Standalone and that is Ok.
> I suppose some problem with  CGI ReadParse function.
> 
> Anyone have an idea ??
> 
> Thanks
> Philippe
> 
> 
> 
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: connect Apache + Tomcat on different hosts

2002-08-26 Thread Milt Epstein

On Mon, 26 Aug 2002, Peter Choe wrote:

> just modify the workers.properties file on the server running the apache.
>
> look for the ajp13 connector properties and change:
>
> workers.ajp13.home=www.tomcatserver.com

That should be "host", not "home".

> and make sure the ajp13 on your tomcat server in the server.xml file
> is enabled.

Also make sure the ports match up.


> At 10:22 AM 8/26/2002, you wrote:
> >Hi Peter!
> >
> >Thanks for the reply.
> >
> >I am still confused about the "worker.home" and "workers.java_home"
> >properties in the "worker.properties" file.
> >This configuration file is placed on the unix host, where apache runs.
> >Tomcat runs on my local dev maschine (NT).
> >Should I use the local path for both?
> >
> >Regards
> >Christopher
> >
> >-Original Message-
> >From: Peter Choe [mailto:[EMAIL PROTECTED]]
> >Sent: Montag, 26. August 2002 16:12
> >To: Tomcat Users List; '[EMAIL PROTECTED]'
> >Subject: Re: connect Apache + Tomcat on different hosts
> >
> >
> >modify the workers.properties file and change the host name of the ajp13
> >connector to the tomcat server.
> >
> >At 09:48 AM 8/26/2002, Bauer, Christopher wrote:
> > >Hi!
> > >
> > >Is it possible to have Apache on one host (Solaris 8) and tomcat on another
> > >(Win NT 4) connected via mod_jk?
> > >If yes, how can I achieve this?
> > >
> > >Thanks in advance!
> > >
> > >
> > >Kind Regards
> > >Christopher
> > >
> > >---
> > >Christopher Bauer
> > >
> > >Dresdner Bank AG
> > >RCO  - Intranet Team
> > >Juergen-Ponto-Platz 1
> > >D-60301 Frankfurt am Main
> > >
> > >Phone: ++49(0)69/263-17717
> > >Mail: [EMAIL PROTECTED]
> > >-

Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: connect Apache + Tomcat on different hosts

2002-08-26 Thread Milt Epstein

On Mon, 26 Aug 2002, Bauer, Christopher wrote:

> Hi Peter!
>
> Thanks for the reply.
>
> I am still confused about the "worker.home" and "workers.java_home"
> properties in the "worker.properties" file.
> This configuration file is placed on the unix host, where apache runs.
> Tomcat runs on my local dev maschine (NT).
> Should I use the local path for both?

Those values are not needed by mod_jk (or anything else), they're just
"macros" (variables) you can set in that file to make it easier to
specify (and change) some of the other settings.


> -Original Message-
> From: Peter Choe [mailto:[EMAIL PROTECTED]]
> Sent: Montag, 26. August 2002 16:12
> To: Tomcat Users List; '[EMAIL PROTECTED]'
> Subject: Re: connect Apache + Tomcat on different hosts
>
>
> modify the workers.properties file and change the host name of the ajp13
> connector to the tomcat server.
>
> At 09:48 AM 8/26/2002, Bauer, Christopher wrote:
> >Hi!
> >
> >Is it possible to have Apache on one host (Solaris 8) and tomcat on another
> >(Win NT 4) connected via mod_jk?
> >If yes, how can I achieve this?
> >
> >Thanks in advance!
> >
> >
> >Kind Regards
> >Christopher
> >
> >---
> >Christopher Bauer
> >
> >Dresdner Bank AG
> >RCO  - Intranet Team
> >Juergen-Ponto-Platz 1
> >D-60301 Frankfurt am Main
> >
> >Phone: ++49(0)69/263-17717
> >Mail: [EMAIL PROTECTED]
> >-

Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: connect Apache + Tomcat on different hosts

2002-08-26 Thread Peter Choe

just modify the workers.properties file on the server running the apache.

look for the ajp13 connector properties and change:

workers.ajp13.home=www.tomcatserver.com

and make sure the ajp13 on your tomcat server in the server.xml file is 
enabled.

At 10:22 AM 8/26/2002, you wrote:
>Hi Peter!
>
>Thanks for the reply.
>
>I am still confused about the "worker.home" and "workers.java_home"
>properties in the "worker.properties" file.
>This configuration file is placed on the unix host, where apache runs.
>Tomcat runs on my local dev maschine (NT).
>Should I use the local path for both?
>
>Regards
>Christopher
>
>-Original Message-
>From: Peter Choe [mailto:[EMAIL PROTECTED]]
>Sent: Montag, 26. August 2002 16:12
>To: Tomcat Users List; '[EMAIL PROTECTED]'
>Subject: Re: connect Apache + Tomcat on different hosts
>
>
>modify the workers.properties file and change the host name of the ajp13
>connector to the tomcat server.
>
>At 09:48 AM 8/26/2002, Bauer, Christopher wrote:
> >Hi!
> >
> >Is it possible to have Apache on one host (Solaris 8) and tomcat on another
> >(Win NT 4) connected via mod_jk?
> >If yes, how can I achieve this?
> >
> >Thanks in advance!
> >
> >
> >Kind Regards
> >Christopher
> >
> >---
> >Christopher Bauer
> >
> >Dresdner Bank AG
> >RCO  - Intranet Team
> >Juergen-Ponto-Platz 1
> >D-60301 Frankfurt am Main
> >
> >Phone: ++49(0)69/263-17717
> >Mail: [EMAIL PROTECTED]
> >-
> >
> >
> >--
> >To unsubscribe, e-mail:
>
> >For additional commands, e-mail:
>
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: changing workers in mod_jk

2002-08-26 Thread Milt Epstein

On Mon, 26 Aug 2002, Adar Wesley wrote:

> Hi Group !
>
> when generating mod_jk.conf using "tomcat run -jkconf" I always get workers
> named ajpxx,
> can I change that ?
> I'd like the mod_jk.conf to be created with workers_named ajpxx_blah.

I don't know how to change what's in the automatically generated
config file, but you can always just copy that and edit it, and then
use the edited version (i.e. Include that in your httpd.conf instead
of the automatically generated one).

Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




JWSDP-TOMCAT - how to install Running a bookStore example

2002-08-26 Thread Sundar Manyapu

Hi Friends,

I am facing the following problem when i am trying to
build, install and run the example.

Here is the link what i am trying.
http://java.sun.com/webservices/docs/1.0/tutorial/doc/JSTL2.html

upto step 3 it is ok.

when i try to run
ant install

i am facing the problem.
Here is the list from the command prompt:

C:\jwsdp-tute\jwsdp-1_0\docs\tutorial\examples\web\bookstore4>ant
install
Buildfile: build.xml

init:

prepare:

build:

install:
  [install] FAIL - Encountered exception
java.io.IOException: java.lang.reflect.
InvocationTargetException

BUILD FAILED
  [install]

Total time: 1 second

C:\jwsdp-tute\jwsdp-1_0\docs\tutorial\examples\web\bookstore4\build.xml:93:
FAIL
 - Encountered exception java.io.IOException:
java.lang.reflect.InvocationTarget
Exception

If somebody knows kindly help me.
Thanks in Advance.

Regards,
Sundar



-- Peter Choe <[EMAIL PROTECTED]> wrote:
> modify the workers.properties file and change the
> host name of the ajp13 
> connector to the tomcat server.
> 
> At 09:48 AM 8/26/2002, Bauer, Christopher wrote:
> >Hi!
> >
> >Is it possible to have Apache on one host (Solaris
> 8) and tomcat on another
> >(Win NT 4) connected via mod_jk?
> >If yes, how can I achieve this?
> >
> >Thanks in advance!
> >
> >
> >Kind Regards
> >Christopher
> >
>
>---
> >Christopher Bauer
> >
> >Dresdner Bank AG
> >RCO  - Intranet Team
> >Juergen-Ponto-Platz 1
> >D-60301 Frankfurt am Main
> >
> >Phone: ++49(0)69/263-17717
> >Mail: [EMAIL PROTECTED]
>
>-
> >
> >
> >--
> >To unsubscribe, e-mail:  
> 
> >For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




JWSDP-TOMCAT - how to install Running a bookStore example

2002-08-26 Thread Sundar Manyapu

Hi Friends,

I am facing the following problem when i am trying to
build, install and run the example.

Here is the link what i am trying.
http://java.sun.com/webservices/docs/1.0/tutorial/doc/JSTL2.html

upto step 3 it is ok.

when i try to run
ant install

i am facing the problem.
Here is the list from the command prompt:

C:\jwsdp-tute\jwsdp-1_0\docs\tutorial\examples\web\bookstore4>ant
install
Buildfile: build.xml

init:

prepare:

build:

install:
  [install] FAIL - Encountered exception
java.io.IOException: java.lang.reflect.
InvocationTargetException

BUILD FAILED
  [install]

Total time: 1 second

C:\jwsdp-tute\jwsdp-1_0\docs\tutorial\examples\web\bookstore4\build.xml:93:
FAIL
 - Encountered exception java.io.IOException:
java.lang.reflect.InvocationTarget
Exception

If somebody knows kindly help me.
Thanks in Advance.

Regards,
Sundar



-- Peter Choe <[EMAIL PROTECTED]> wrote:
> modify the workers.properties file and change the
> host name of the ajp13 
> connector to the tomcat server.
> 
> At 09:48 AM 8/26/2002, Bauer, Christopher wrote:
> >Hi!
> >
> >Is it possible to have Apache on one host (Solaris
> 8) and tomcat on another
> >(Win NT 4) connected via mod_jk?
> >If yes, how can I achieve this?
> >
> >Thanks in advance!
> >
> >
> >Kind Regards
> >Christopher
> >
>
>---
> >Christopher Bauer
> >
> >Dresdner Bank AG
> >RCO  - Intranet Team
> >Juergen-Ponto-Platz 1
> >D-60301 Frankfurt am Main
> >
> >Phone: ++49(0)69/263-17717
> >Mail: [EMAIL PROTECTED]
>
>-
> >
> >
> >--
> >To unsubscribe, e-mail:  
> 
> >For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Context management and virtual host

2002-08-26 Thread Q. Werty

I'am looking for a way to manage all contexts installed on my
server.
I've got numerous virtual hosts and I'like NOT to install
manager context in all virtual hosts. How can I do?
- Is it possible to install a "cross-host" context in Tomcat?
- I saw the administration interface in Tomcat 4.1 beta. It's a
very great work, this interface enable to see/add/remove all
contexts accross all virtual hosts. I thought it was what I was
looking for but apparently there's nothing to start/stop/reload
context. Is it planned for final version?

Thanks in advance for any response

Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 
€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)"




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: connect Apache + Tomcat on different hosts

2002-08-26 Thread Bauer, Christopher

Hi Peter!

Thanks for the reply.

I am still confused about the "worker.home" and "workers.java_home"
properties in the "worker.properties" file. 
This configuration file is placed on the unix host, where apache runs.
Tomcat runs on my local dev maschine (NT).
Should I use the local path for both?

Regards
Christopher

-Original Message-
From: Peter Choe [mailto:[EMAIL PROTECTED]]
Sent: Montag, 26. August 2002 16:12
To: Tomcat Users List; '[EMAIL PROTECTED]'
Subject: Re: connect Apache + Tomcat on different hosts


modify the workers.properties file and change the host name of the ajp13 
connector to the tomcat server.

At 09:48 AM 8/26/2002, Bauer, Christopher wrote:
>Hi!
>
>Is it possible to have Apache on one host (Solaris 8) and tomcat on another
>(Win NT 4) connected via mod_jk?
>If yes, how can I achieve this?
>
>Thanks in advance!
>
>
>Kind Regards
>Christopher
>
>---
>Christopher Bauer
>
>Dresdner Bank AG
>RCO  - Intranet Team
>Juergen-Ponto-Platz 1
>D-60301 Frankfurt am Main
>
>Phone: ++49(0)69/263-17717
>Mail: [EMAIL PROTECTED]
>-
>
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: javax directory

2002-08-26 Thread Reis, Tom

I do have the servlet.jar set in the classpath and I still have the same
problem.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 8:56 AM
To: Tomcat Users List
Subject: RE: javax directory



The classpath used when you do your Java compiling.  Tomcat is not involved
at
all at this stage in the game.



 

"Reis, Tom"


t.cod.edu>   cc:

 Subject: RE: javax directory

08/26/02

08:52 AM

Please

respond to

"Tomcat Users

List"

 

 





Would that in the classpath for java or for the Tomcat.

-Original Message-
From: Goverdhan Nookala [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 22, 2002 1:23 PM
To: 'Tomcat Users List'
Subject: RE: javax directory


you need to set the servlet.jar or j2ee.jar file in classpath
Thanks
Goverdhan

-Original Message-
From: Reis, Tom [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 22, 2002 2:21 PM
To: Tomcat Users List (E-mail)
Subject: javax directory


   I am trying to compile a application that uses import
javax.servlet.*; import javax.servlet.http.HttpServlet; in the code. When I
attempt to compile this code I receive errors stating that it could not find
these symbols. I noticed that they are actually located in the tomcat
directory. Should this be copied to the java directory or is there something
else I should do.

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:







--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat log in linux

2002-08-26 Thread Randall R Schulz

Neal,

On Unix (-like) systems, I'll usually start a separate terminal window (I 
assume you've got an X Window System display connected to the Unix system 
you're using) and start Tomcat there so I can monitor the standard output. 
This achieves the same results as the window created by Windows when you 
launch Tomcat there.

You should familiarize yourself with the "tail" command, particularly it's 
"-f" option. (Use the "man" command: "man tail"). This allows you to 
monitor additions to a file as they appear. This way you can keep log files 
and monitor them visually at the same time.

For an alternative with similar possibilities, lear about the "tee" 
utility. It operates in a pipeline by copying its input to its output (as 
"cat" would do with no arguments) but also writes a copy of all the data 
that passes through it to a file. I can append to the file, too.

Keep in mind that the terminal emulators have options that allow you to 
specify how many lines scroll-back to preserve.

Good luck.

Randall Schulz
Mountain View, CA USA


At 23:46 2002-08-25, neal wrote:
>In Windows, when you run Tomcat, a DOS command line window pops up and you
>see real-time messages from Tomcat.  If something isn't going right ... you
>see those messages.  Is there something analogous in Linux/Tomcat?  I'm
>trying to get the dumb thing running but I'm not seeing any debug info and
>the logs look relatively empty.
>
>Thanks.
>NEal


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




changing workers in mod_jk

2002-08-26 Thread Adar Wesley

Hi Group !

when generating mod_jk.conf using "tomcat run -jkconf" I always get workers
named ajpxx,
can I change that ? 
I'd like the mod_jk.conf to be created with workers_named ajpxx_blah.

Ciao
Tal
Log-On
[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Strange message compiling a JSP in Tomcat 4.0.4

2002-08-26 Thread Nome real

Hi all,

I'm using Tomcat 4.0.4 with Security Manager, Sun JDK 1.3.1_04 , trying to run a JSP. 
I receive the following error:

org.apache.jasper.JasperException: Unable to compile class for JSPerror: An error has 
occurred in the compiler; 
please file a bug report (http://java.sun.com/cgi-bin/bugreport.cgi).
1 error

Unfortunately, I have no access to the source code. Any hint ?

Thanks

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat Installation on linux

2002-08-26 Thread Randall R Schulz

Shakir,

Where did you get that command from?

Here's what you did: You truncated your "shutdown.sh" script. The ":" is 
the no-op command that is used when one wants to use side-effects (such as 
I/O redirection) without running a command. The ">" is similar to that of 
the DOS/CMD.exe/Command.com in Windows, it redirects output to the file 
whose name follows. So you ran the null command (which produces no output) 
and redirected it to the "shutdown.sh" script, thus truncating it. Had you 
used the append output redirection, ">>", all would be OK, since adding 0 
bytes to the end of "shutdown.sh" would not do any damage (it would only 
alter the last modification time of that file, which you could see with "ls 
-l shutdown.sh").

So you'll have to retrieve the "shutdown.sh" script from your Tomcat 
distribution.

Then to use it, just invoke it. Since it usually does not run indefinitely 
and does not produce a lot of output or usually any particularly 
interesting output, there's no need to redirect its output.


I recommend that people recently switching from Windows to Linux or another 
Unix-like system get some tutorial materials on these basics. There are 
some vague similarities with Windows, but a lot is different and groping 
around in the dark is not really advisable.

Good luck.

Randall Schulz
Mountain View, CA USA


At 04:21 2002-08-26, khozaima shakir wrote:
>Hi Jhair,
>yes, I am running tomcat from shell.
>About shoutdown, I shutdown tomcat by : > shutdown.sh
>Thanks
>Shakir


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: connect Apache + Tomcat on different hosts

2002-08-26 Thread Turner, John


I believe all you have to change is the "worker.ajp13.host" line in
workers.properties to the correct hostname, which would be the hostname of
the machine running tomcat.

John Turner
[EMAIL PROTECTED]


> -Original Message-
> From: Bauer, Christopher [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 26, 2002 9:49 AM
> To: '[EMAIL PROTECTED]'
> Subject: connect Apache + Tomcat on different hosts
> 
> 
> Hi!
> 
> Is it possible to have Apache on one host (Solaris 8) and 
> tomcat on another
> (Win NT 4) connected via mod_jk?
> If yes, how can I achieve this?
> 
> Thanks in advance!
> 
> 
> Kind Regards
> Christopher
> 
> ---
> Christopher Bauer
> 
> Dresdner Bank AG
> RCO  - Intranet Team
> Juergen-Ponto-Platz 1
> D-60301 Frankfurt am Main
> 
> Phone: ++49(0)69/263-17717
> Mail: [EMAIL PROTECTED]
> -

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




JDBCRealm - difference between no user/password and SQLException

2002-08-26 Thread Michael Remijan

Hi all,

Using the JDBCReal, you specify in web.xml what page to goto if there is an error
  However, I believe that this page is used for 
both non fatal situations, like the the username/password doesn't exist, and for fatal 
situations, like if if the database is down.  Is there any way to tell the difference 
so that a relogin page can be displayed in one instance and a fatal error page in the 
other?

thanks,


-Original Message-
From: Barney Hamish [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 22, 2002 12:01 PM
To: 'Tomcat Users List'
Subject: RE: specify the url after j_security_check login


The user is directed to the login when they request a secure resource. If
they complete the login process successfully then they ar forwarded to the
page that they asked for previously.
Hamish

-Original Message-
From: Michael Remijan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 22, 2002 6:53 PM
To: Tomcat Users List
Subject: specify the url after j_security_check login


Hi,

is it possible to specify what url tomcat should goto after a
j_security_check login is successful instead of tomcat just loading what's
in your  ?

thanks,


-Original Message-
From: Robert L Sowders [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 08, 2002 11:33 PM
To: Tomcat Users List
Cc: 'Tomcat Users List'
Subject: RE: Tomcat + apache


Here you go Aaron,

ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Win2k_TC4.1.8_JSDK1.4.doc

This is an install for Win2k, Tomcat 4.1.8, JDSK1.4.0, mod_jk2  It' fairly 
easy to install.  Sorry, all I have right now is a Word Doc, but all the 
hyper links work, I think. 

If you want Apache with SSL then I can do that too, but it's more 
complicated.

Yall have fun now, hear?

rls







"Aaron Chan" <[EMAIL PROTECTED]>
08/07/2002 02:29 AM
Please respond to "Tomcat Users List"

 
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
cc: 
Subject:RE: Tomcat + apache

Hi, I am using Windows 2000 Server instead of Linux. Anywhere I can go
to find help on setting up? Thanks.

Aaron Chan


-Original Message-
From: Simone Chiaretta [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, August 06, 2002 7:57 PM
To: Tomcat Users List
Subject: R: Tomcat + apache


Ops, sorry
I forgot to mention

I've linux red hat 7.3
Tomcat 4.0.4
Apache 2.0.39
java 1.4.0

I've seen the 3 connectors
which is the best?
Thx
Simone



> -Messaggio originale-
> Da: Turner, John [mailto:[EMAIL PROTECTED]]
> Inviato: martedì 6 agosto 2002 13.44
> A: 'Tomcat Users List'
> Oggetto: RE: Tomcat + apache
>
>
>
> To get tomcat to work with apache for serving mixed content, you will
need
> to choose a connector.  At this time, there are three to choose
> from: mod_jk
> (AJP), mod_webapp (WARP), and mod_jk2.  Then you configure apache to
serve
> certain content, and send other content to tomcat via the connector
for
> processing.
>
> Without knowing your platform and OS environment, there's no way to
point
> you to documentation on how to work with a connector.
>
> You can make the entire environment start at boot time quite
> easily.  Again,
> not knowing your environment, there's no way to point you to
alternatives.
>
> John Turner
> [EMAIL PROTECTED]
>
>
> -Original Message-
> From: Simone Chiaretta [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 06, 2002 7:28 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat + apache
>
>
> Sorry for this questions that could have been already answered,
> but I didn't
> find anything on the net and the archive doesn't have a search
feature.
>
> I'm new in tomcat world, basically I'm a programmer but I've to
> setup a web
> server on linux with apache and tomcat.
>
> What I'd like to know is:
> 1 -  How can I integrate apache 2.x with tomcat 4.0.4 (I mean
> having apache
> handle static files and php, while tomcat just handles java dynamic
> contents)
> 2 - How can I make this environment start at boot time.
>
> Thank you
> Simone
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:






--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:






--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Static pages dir inside webapps

2002-08-26 Thread Jeff Forbeck

D - 


I am a newbie, but may be able to help. The
$CATALINA_HOME\webapps\[your app] is the directory I
store static pages. This is the area for public files
where WEB-INF stores protected documents. Adding a
special subdir called [your app]\static\ worked for
me. Of course, I forgot to restart Tomcat the first
time (dah), but I eventually gathered my senses.

As far as what previous allowed, I can't help you. I
started with 2.3 and there is a strict directory
specification. 

Anyhow, I didn't see another repsonse - hope this
helps.

Jeff
--- D Bamud <[EMAIL PROTECTED]> wrote:
> I *need* to put a directory (say "static") inside
> webapps that contains
> static html pages. When I try to invoke
> http://localhost:8080/static/test.html  I get 404
> error. HOWEVER the moment
> I make *the* dir WEB-INF in static dir it starts
> working. It was working
> fine in TC3.x without WEB-INF dir but gives the
> problem in TC4.0.4. Does
> that mean that all the apps must adhere to have
> WEB-INF dir? Why?
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: connect Apache + Tomcat on different hosts

2002-08-26 Thread Peter Choe

modify the workers.properties file and change the host name of the ajp13 
connector to the tomcat server.

At 09:48 AM 8/26/2002, Bauer, Christopher wrote:
>Hi!
>
>Is it possible to have Apache on one host (Solaris 8) and tomcat on another
>(Win NT 4) connected via mod_jk?
>If yes, how can I achieve this?
>
>Thanks in advance!
>
>
>Kind Regards
>Christopher
>
>---
>Christopher Bauer
>
>Dresdner Bank AG
>RCO  - Intranet Team
>Juergen-Ponto-Platz 1
>D-60301 Frankfurt am Main
>
>Phone: ++49(0)69/263-17717
>Mail: [EMAIL PROTECTED]
>-
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Let me try this again: tomcat returns cached file rather than updated file

2002-08-26 Thread Wise, Bowden (Research)

Mike:
These are not JSP files, its just a regular file (its actually an XML file), that is 
being downloaded
from a webapp directory via tomcat using a 
java URL connection from a servlet.

Non-jsp files are not stored in work
directory.  

>-Original Message-
>From: Mike Jackson [mailto:[EMAIL PROTECTED]]
>Sent: Friday, August 23, 2002 4:46 PM
>To: Tomcat Users List
>Subject: RE: Let me try this again: tomcat returns cached file rather
>than updated file
>
>
>Hmm, I don't think that tomcat does cache files.  Or at least I haven't
>seen that behavior in version 3.x which is what I use.  Are 
>you sure that
>you deleted everything (and all subdirectories) in the work directory?
>I've seen what you're describing, but it seemed to go away after I did
>that.  You might also try "touch"'ing all the jsp files so that it 
>forces a recompile, but if you clear the work directory it shouldn't
>need that.
>
>--mikej
>-=-
>mike jackson
>[EMAIL PROTECTED] 
>
>> -Original Message-
>> From: Wise, Bowden (Research) [mailto:[EMAIL PROTECTED]]
>> Sent: Friday, August 23, 2002 11:44 AM
>> To: 'Tomcat Users List'
>> Subject: RE: Let me try this again: tomcat returns cached file rather
>> than updated file
>> 
>> 
>> Cleaning out the work directory did not help.
>> I think only compiled classes go there, not sure
>> what tomcat does with cached files...
>> 
>> Bowden
>> 
>> >-Original Message-
>> >From: Mike Jackson [mailto:[EMAIL PROTECTED]]
>> >Sent: Friday, August 23, 2002 2:33 PM
>> >To: Tomcat Users List
>> >Subject: RE: Let me try this again: tomcat returns cached 
>file rather
>> >than updated file
>> >
>> >
>> >Try restarting tomcat after clearing out the "work" directory.
>> >
>> >--mikej
>> >-=-
>> >mike jackson
>> >[EMAIL PROTECTED]
>> >
>> >> -Original Message-
>> >> From: Wise, Bowden (Research) [mailto:[EMAIL PROTECTED]]
>> >> Sent: Friday, August 23, 2002 11:16 AM
>> >> To: 'Tomcat Users List'
>> >> Subject: RE: Let me try this again: tomcat returns cached 
>file rather
>> >> than updated file
>> >>
>> >>
>> >> Thanks for the response, Mike:
>> >>
>> >> Note this test was done within a java program -- outside
>> >> the browser -- so there is no browser at all, has to be
>> >> coming from Tomcat in response to the underlying HTTP GET
>> >> sent by the call to get the content by the java URL
>> >> object
>> >>
>> >> Bowden
>> >>
>> >> >-Original Message-
>> >> >From: Mike Jackson [mailto:[EMAIL PROTECTED]]
>> >> >Sent: Friday, August 23, 2002 2:11 PM
>> >> >To: Tomcat Users List
>> >> >Subject: RE: Let me try this again: tomcat returns cached 
>> >file rather
>> >> >than updated file
>> >> >
>> >> >
>> >> >Check your browser settings, make sure it's set to check 
>> >the cache on
>> >> >every page access.  It's probably the browser that's the problem.
>> >> >
>> >> >--mikej
>> >> >-=-
>> >> >mike jackson
>> >> >[EMAIL PROTECTED]
>> >> >
>> >> >> -Original Message-
>> >> >> From: Wise, Bowden (Research) [mailto:[EMAIL PROTECTED]]
>> >> >> Sent: Friday, August 23, 2002 10:54 AM
>> >> >> To: 'Tomcat Users List'
>> >> >> Subject: Let me try this again: tomcat returns cached file
>> >> >rather than
>> >> >> updated file
>> >> >>
>> >> >>
>> >> >> Hi
>> >> >>
>> >> >> Sorry for the multiple postings about this, but I am
>> >> >> baffled, and am surprised at the behavior...
>> >> >>
>> >> >> When using a java.net.URL to download a file on a
>> >> >> tomcat webapp, i am finding that I get the OLD content
>> >> >> rather than the new content
>> >> >>
>> >> >> I wrote a simple java test program:
>> >> >> - write "first" to the file (FileWriter)
>> >> >> - read the file (URL), verify "first" is read
>> >> >> - write "second" to the file (FileWriter)
>> >> >> - read the file (URL), should be "second" but gets "first"
>> >> >>
>> >> >> If I insert a pause (sleep call) before the second
>> >> >> write, the second read does correctly obtain "second"
>> >> >>
>> >> >> I also tested on an Apache accesible directory and
>> >> >> the problem does not appear, the second read correctly
>> >> >> returns "second" immediately
>> >> >>
>> >> >> Does the tomcat cache mechanism not work when there is
>> >> >> not sufficient elapsed times between file updates?
>> >> >>
>> >> >> I can't believe noone has noticed this
>> >> >>
>> >> >> Or is there something wrong with my configuration?
>> >> >>
>> >> >> Thanks
>> >> >> Bowden
>> >> >>
>> >> >>
>> >> >>
>> >> >> >-Original Message-
>> >> >> >From: Wise, Bowden (Research)
>> >> >> >Sent: Friday, August 23, 2002 7:40 AM
>> >> >> >To: 'Tomcat Users List'
>> >> >> >Subject: Why does TOMCAT return cache page when file has been
>> >> >> >modified??
>> >> >> >
>> >> >> >
>> >> >> >Hi
>> >> >> >
>> >> >> >Please review my original message below and let me know
>> >> >> >if you have seen this or know why it is happening
>> >> >> >
>> >> >> >thanks
>> >> >> >Bowden
>> >> >> >
>> >> >> >>-Original Message-
>> >> >> >>From: Wise,

connect Apache + Tomcat on different hosts

2002-08-26 Thread Bauer, Christopher

Hi!

Is it possible to have Apache on one host (Solaris 8) and tomcat on another
(Win NT 4) connected via mod_jk?
If yes, how can I achieve this?

Thanks in advance!


Kind Regards
Christopher

---
Christopher Bauer

Dresdner Bank AG
RCO  - Intranet Team
Juergen-Ponto-Platz 1
D-60301 Frankfurt am Main

Phone: ++49(0)69/263-17717
Mail: [EMAIL PROTECTED]
-


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: javax directory

2002-08-26 Thread jeff . guttadauro


The classpath used when you do your Java compiling.  Tomcat is not involved at
all at this stage in the game.



   

"Reis, Tom"


t.cod.edu>   cc:   

 Subject: RE: javax directory  

08/26/02   

08:52 AM   

Please 

respond to 

"Tomcat Users  

List"  

   

   





Would that in the classpath for java or for the Tomcat.

-Original Message-
From: Goverdhan Nookala [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 22, 2002 1:23 PM
To: 'Tomcat Users List'
Subject: RE: javax directory


you need to set the servlet.jar or j2ee.jar file in classpath
Thanks
Goverdhan

-Original Message-
From: Reis, Tom [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 22, 2002 2:21 PM
To: Tomcat Users List (E-mail)
Subject: javax directory


   I am trying to compile a application that uses import
javax.servlet.*; import javax.servlet.http.HttpServlet; in the code. When I
attempt to compile this code I receive errors stating that it could not find
these symbols. I noticed that they are actually located in the tomcat
directory. Should this be copied to the java directory or is there something
else I should do.

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: javax directory

2002-08-26 Thread Reis, Tom

Would that in the classpath for java or for the Tomcat.

-Original Message-
From: Goverdhan Nookala [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 22, 2002 1:23 PM
To: 'Tomcat Users List'
Subject: RE: javax directory


you need to set the servlet.jar or j2ee.jar file in classpath
Thanks
Goverdhan

-Original Message-
From: Reis, Tom [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 22, 2002 2:21 PM
To: Tomcat Users List (E-mail)
Subject: javax directory


I am trying to compile a application that uses import
javax.servlet.*; import javax.servlet.http.HttpServlet; in the code. When I
attempt to compile this code I receive errors stating that it could not find
these symbols. I noticed that they are actually located in the tomcat
directory. Should this be copied to the java directory or is there something
else I should do.

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: AW: apache-tomcat

2002-08-26 Thread Glenn Nielsen

That article is for using mod_webapp as the connector between
Tomcat 4 and Apache.  I wouldn't necessarily consider that
a "best practice".  I have found mod_jk 1.2 a better solution
for my needs.

With mod_jk 1.2 I use the Apache mod_jk config directive JkAutoAlias.
This automatically maps Apache to serve static files for all web contexts.

Or you could do it individualu with yhe apache Alias directive.

The only docs I see for JkAutoAlias are in the jakarta-tomcat-connectors
CVS repository in file jk/doc/mod_jk-howto.html.

Regards,

Glenn

[EMAIL PROTECTED] wrote:
> Hi Tal,
> 
> never done it myself but here is a best practices
> "Making Tomcat Work with Apache":
> 
> http://dcb.sun.com/practices/howtos/tomcat_apache.jsp
> 
> Hope that helps,
> Carsten
> 
> -Ursprüngliche Nachricht-
> Von: Adar Wesley [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 26. August 2002 15:14
> An: 'Tomcat Users List'
> Betreff: apache-tomcat
> 
> 
> Hi Group !
> 
> I have a tomcat connected to apache. I would like to use apache for static
> content and tomcat for dynamic.
> Any ideas how to do that ?
> Any references ?
> 
> 
> Tal Moshaiov
> Log-On
> [EMAIL PROTECTED]
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail:  




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: apache-tomcat

2002-08-26 Thread Jacob Kjome

If you use mod_jk, you can auto-generate the config files that need to be 
included at the end of your httpd.conf file

Put this immediatey after the opening  element:



Make sure to set your paths accordingly for your own system setup.


Then, put this immediately after the opening the  element:




At the startup of Tomcat, this will generate a file in 
$TOMCAT_HOME/conf/auto called mod_jk.conf.  What I usually do is copy that 
out to conf/jk and point to that file.  I then comment out the Listeners in 
my server.xml from this point on unless my webapps running under Tomcat 
change significantly.  I just edit by hand since most of it will stay the same.

Make sure to include the new mod_jk.conf file in your httpd.conf like this:

Include "C:/Program Files/Apache 
Group/Jakarta/tomcat-4.1.9/conf/jk/mod_jk.conf"

Oh, and your workers.properties should look something like this:

workers.tomcat_home=$(CATALINA_HOME)
workers.java_home=$(JAVA_HOME)
ps=\
worker.list=ajp13, ajp14
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.ajp13.cachesize=8
worker.ajp14.port=8011
worker.ajp14.host=localhost
worker.ajp14.type=ajp14
worker.ajp14.secretkey=mysupersecretkey
worker.ajp14.credentials=mysuperveryrandomentropy
worker.ajp14.lbfactor=1
worker.ajp14.cachesize=8
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)server${ps}lib$(ps)catalina.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)server$(ps)jvm.dll
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr


Jake

At 03:14 PM 8/26/2002 +0200, you wrote:
>Hi Group !
>
>I have a tomcat connected to apache. I would like to use apache for static
>content and tomcat for dynamic.
>Any ideas how to do that ?
>Any references ?
>
>
>Tal Moshaiov
>Log-On
>[EMAIL PROTECTED]
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



Re: unpacking war files?

2002-08-26 Thread Jacob Kjome


You have to deploy your.war file to a directory on your own if you have a 
defined context pointing to a directory with the same name as a .war 
file.  It is actually stated in the docs that the auto deployment of 
the.war file will *not* happen in this case, however, I'm not entirely sure 
why?  There is actually a bug reported on this trying to determine whether 
the behavior is a feature or a  bug.  I don't have the bug URL handy, but 
you can search for it at http://nagoya.apache.org/bugzilla/ .

Jake

At 10:58 AM 8/26/2002 +0200, you wrote:
>Hi
>
>Thanks a lot. I actuallay already tried that way, but instead to put all 
>the files to the geonet directory it stored it in the weapps directory.
>But now it works!
>
>Cyrill
>
>
>
>[EMAIL PROTECTED] wrote:
>
>>
>>Hi Cyrill,
>>
>>put the .war right into the webapps/ directory (not into a subdirectory)
>>and I believe it will deploy.
>>
>>that will be webapps/geonet.war
>>
>>if it doesn't deploy try deleting the geonet directory first.
>>
>>Hope that helps,
>>
>>Jan
>>
>> 
>>
>>"Cyrill 
>> Zadra" 
>>
>><[EMAIL PROTECTED]   To: 
>> [EMAIL PROTECTED]
>>izh.ch>  cc: 
>>
>> Subject: unpacking war 
>> files?
>>26.08.2002 
>>
>>10:34 
>>
>>Please 
>> respond 
>>
>>to 
>> "Tomcat 
>>
>>Users 
>> List" 
>>
>> 
>>
>> 
>>
>>
>>
>>
>>
>>Hi
>>
>>I'm using tomcat 4.0.4. My ant building Script creates a war file and
>>put it to the in the subdirectory  "geonet" of the webapps directory.
>>But now the Tomcat don't automaticallly unpack this war file.
>>
>>In the server.xml configuration file I insert a new Context entry
>>
>>
>>
>>Is that a bug of tomcat, that it is not going to unpack it or did I
>>forgot to configure something in my configuration files?
>>
>>Thanks in advance!!!
>>
>>Cyrill
>>
>>
>>--
>>To unsubscribe, e-mail:   <
>>mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail: <
>>mailto:[EMAIL PROTECTED]>
>>
>>
>>
>>
>>
>>--
>>To unsubscribe, e-mail:   
>>For additional commands, e-mail: 
>>
>>
>
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



  1   2   >