Re: It is getting closer to make "mod_jk.so", but??

2000-12-05 Thread sliu

Thanks all. It is solved.

Scott
Quoting [EMAIL PROTECTED]:

> Hi All,
> 
> I downloaded a precompiled "mod_jk.so" for solaris 2.6 offered
> by a tomcat-user and it did not work on my system. I still need
> to compile it myself. It is almost there.
> 
> Solaris 2.6/tomcat3.2/perl5/apache1.3.14
> 
> command used to build "mod_jk.so":
> 
> /usr/local/apache/bin/apxs  -o mod_jk.so -DSOLARIS -I../jk
> -I/usr/j2se/include 
> -I/usr/j2se/include/solaris -c *.c ../jk/*.c
> 
> log result with error "apxs:Break: Command failed with rc=16777215":
> 
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
> -I/usr/j2se/include/solaris -DSOLARIS  -c mod_jk.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_ajp12_worker.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_ajp13.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_ajp13_worker.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_connect.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_jni_worker.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_lb_worker.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_map.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_msg_buff.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_nwmain.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_pool.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_sockbuf.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_uri_worker_map.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_util.c
> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_worker.c
>   -o mod_jk.so jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o
> jk_pool.o 
> jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o jk_jni_worker.o
> jk_connect.o 
> jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o mod_jk.o 
> apxs:Break: Command failed with rc=16777215
> 
> Thanks,
> 
> Scott
> 



container managed authentication - how?

2000-12-05 Thread Christian Sell

hello,

I just installed Tomcat 3.2 and deployed my web application, which is
running sucessfully nuder Orion and JRun, using form-based authentication.
However, Tomcat completely ignores the security-constraint settings. How can
I get Tomcat to enforce this? Does Tomcat support container-managed
security?

thanks in advance..
Christian

BTW, Heres my web.xml, in case somebody wants to take a look:



http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">


 
  wcfsystem
  wcfsystem
  com.itsit.wcf.adaptor.WCFSystem
  
   wcf.properties
   /wcf.properties
  
  1
 
   
  10
   
   
  index.html
  index.jsp
   
 
  
   WCF Administration
   WebComponents Administration
   */WCFAdmin.jsp
   */wcfsystem
  
  
   Administrators only
   admins
  
 
 
  FORM
  
 /content/login.html
 /content/loginerr.html
  
 
 
  WCF Users
  users
 
 
  WCF Administrators
  admins
 






Re: It is getting closer to make "mod_jk.so", but??

2000-12-05 Thread jun xu sun

hi, scott,
how do you resolve it?
I have same problem, is it because of jdk?
 
rgds
brent

-Original Message-
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, December 05, 2000 2:25 AM
Subject: Re: It is getting closer to make "mod_jk.so", but??


>Thanks all. It is solved.
>
>Scott
>Quoting [EMAIL PROTECTED]:
>
>> Hi All,
>> 
>> I downloaded a precompiled "mod_jk.so" for solaris 2.6 offered
>> by a tomcat-user and it did not work on my system. I still need
>> to compile it myself. It is almost there.
>> 
>> Solaris 2.6/tomcat3.2/perl5/apache1.3.14
>> 
>> command used to build "mod_jk.so":
>> 
>> /usr/local/apache/bin/apxs  -o mod_jk.so -DSOLARIS -I../jk
>> -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -c *.c ../jk/*.c
>> 
>> log result with error "apxs:Break: Command failed with rc=16777215":
>> 
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c mod_jk.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_ajp12_worker.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_ajp13.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_ajp13_worker.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_connect.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_jni_worker.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_lb_worker.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_map.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_msg_buff.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_nwmain.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_pool.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_sockbuf.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_uri_worker_map.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_util.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_worker.c
>>   -o mod_jk.so jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o
>> jk_pool.o 
>> jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o jk_jni_worker.o
>> jk_connect.o 
>> jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o mod_jk.o 
>> apxs:Break: Command failed with rc=16777215
>> 
>> Thanks,
>> 
>> Scott
>>




RE: VAJ and Tomcat 3.2

2000-12-05 Thread FREY Thibault



> >Seems that the 8080 port never get's released...

>But I'm running a normal Tomcat -stop type shutdown.

>And why do Tomcat 3.1 work properly, but not 3.2?

Because 3.2 crashes with your config. Here is my congig :

* to start :

public class StartTomcat {
public static void main(java.lang.String[] args) {
try {
Class aClass =
Class.forName("org.apache.tomcat.startup.Tomcat");
java.lang.reflect.Method method = null;
Class[] argsClass = new Class[] {String[].class};
method = aClass.getMethod("main", argsClass);
Object object = null;
Object[] arguments = new Object[] {new String[] {}};
method.invoke(object, arguments);
}
catch (Exception e) {
System.out.println("Exception occurred: " +
e.getMessage());
e.printStackTrace();
}
}
}

Properties for TomcatStart :

- in Program / Properties : tomcat.home=d:\tomcat3.2\
- in Class Path :
- Project path : Tomcat, Servlet API, Xerces and all my stuff
- Extra directories path :
d:\tomcat3.2\classes\;d:\tomcat3.2\webapps\examples\WEB-INF\classes\;

where tomcat dir is d:\tomcat3.2\ and d:\tomcat3.2\classes\ are deflated
classes of d:\tomcat3.2\lib\

* to stop :

public class StopTomcat {
public static void main(java.lang.String[] args) {
try {
Class aClass =
Class.forName("org.apache.tomcat.startup.Tomcat");
java.lang.reflect.Method method = null;
Class[] argsClass = new Class[] {String[].class};
method = aClass.getMethod("main", argsClass);
Object object = null;
Object[] arguments = new Object[] {new String[]
{"-stop"}};
method.invoke(object, arguments);
}
catch (Exception e) {
System.out.println("Exception occurred: " +
e.getMessage());
e.printStackTrace();
}
}
}

with the same properties than StartTomcat.

* Be sure that HttpConnectionHandler for port 8080 is set (that's default)

* If you use mod_jk, let ajp13 far away, because it is not as robust as
ajp12, even if faster


>> The only solution I found is to restart IVJ (and therefore the JVM).

>You mean restarting Visual Age, or?

Yes restarting IBM VisualAge for Java (IVJ).

When I said that IVJ doesn't close socket, 

I would say that IVJ doesn't close sockets which were not closed by program.

For example, it's the case if your modify an instance variable while
debugging,

because program craches.


Regards
Thibault FREY.



Apache 1.3.14 + Tomcat 3.2 - Context

2000-12-05 Thread Martin Bouman

Hi everyone,

I have put a directory 'samples' as a subdir of 'htdocs'. In it I placed the
content of %TOMCAT%\webapps\examples.
I have put these lines in 'server.xml':

 


 


and these in 'mod_jk.config' (which I include with A[ache hhtpd.conf):

###
# Manual configuration for the /samples context starts.
###

#
# The following line makes apache aware of the location of the /voyager
context
#
Alias /samples c:/Apache/htdocs/samples
 
 Options Indexes FollowSymLinks
 

#
# The following line mounts all JSP files to tomcat
#
JkMount /samples/servlet/* ajp13
JkMount /samples/*.jsp ajp13

#
# The following line prohibits users from directly accessing WEB-INF
#

 AllowOverride None
 deny from all


#
# Use Directory too. On Windows, Location doesn't work unless case matches
#

AllowOverride None
deny from all

###
# Manual configuration for the /samples context ends.
###

The JSP files work fine, but the servlets don not.
When I look into 'error.log' from Apache it says: client denied by server
configuration: c:/apache/htdocs/samples/web-inf
If I disable (comment (#)) the Location and Directory tags (see above) they
do work, but WEB-INF is not protected anymore.

Does anyone have a solution to this problem?


Martin



new user : modules mod_jk.so and mod_rewrite.so

2000-12-05 Thread christophe grosjean

Hi,

How can I get modules such as mod_jk.so (is this one better than
mod_jserv.so?)
and mod_rewrite.so.  ?

Christophe





Re: Using JAR files

2000-12-05 Thread Trond-Helge Groth

I believe you have to put the full path of the jar-file including the filename in 
classpath..and not just the path  to the directory where the jar-file is 
located


THG

- Original Message - 
From: "Keith Schacht" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 05, 2000 5:38 AM
Subject: Using JAR files


> I have a servlet that references a bunch of classes that are all packaged
> nicely in a JAR file.  I put this JAR file into the
> /webappname/WEB-INF/servlet directory but I get:
> 
> 500 .NoClassDefFoundError: org/worthy/utilities/worthyConst
> 
> (the org/worthy/utitilities/worthyConst structure is all within the JAR
> file).  I realize I could probably just recreate the directory structure
> from within the WEB-INF/servlet directory and put each of the class files in
> its respective location but I would really rather use the JAR file.
> 
> I tried adding this directory /webappname/WEB-INF/servlet to classpath and
> restarting (even though it was recently mentioned you should not do it), but
> that didn't work.  I tried just copying the JAR file straight to
> /tomcat/lib/ and this time when I restarted I did indeed see it listed in
> the classpath startup message.. but still go the same 500 error.
> 
> Any ideas?
> 
> 
> Keith Schacht
> http://www.pididdle.com
> 
> - Original Message -
> From: "Bill Long" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, December 04, 2000 4:08 PM
> Subject: Re: Tomcat - mod_jk - Configuration : Need some help please
> 
> 
> > *This message was transferred with a trial version of CommuniGate(tm) Pro*
> > you are correct.
> >
> > now..*sigh* i looked at the build.xml , wrapper.properties,
> > tomcat.properties, server.xml and a bunch of other files.  I saw lots of
> > places to set the classpath, but none of them worked.
> >
> > I can set the classpath in an environment variable, but do you know where
> to
> > set the classpath for the tomcat server, or can you explicitly set the
> > classpath in the configuration files? common sense would indicate you can,
> > but I cant find any info on it.  meanwhile, i'll head back to the docs for
> > installing tomcat.
> >
> > thanks for you help, i think i'm almost there.
> >
> > - Original Message -
> > From: "Mike La Budde" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, December 04, 2000 1:29 PM
> > Subject: Re: Tomcat - mod_jk - Configuration : Need some help please
> >
> >
> > > *This message was transferred with a trial version of CommuniGate(tm)
> Pro*
> > > After starting tomcat look at the output in your console window to
> verify
> > > the classpath. I'll bet you won't see
> > >
> > > /lib/tools.jar
> > >
> > > (and it must be there to work)
> > >
> > > HTH,
> > >
> > > Mike
> > >
> > > At 12/04/2000 01:02 PM -0800, you wrote:
> > > >*This message was transferred with a trial version of CommuniGate(tm)
> > Pro*
> > > >Hi folks,
> > > >
> > > >Okay, I'm kind of new to this java stuff, so please bear with me. I
> think
> > > >I have it almost done but have reached a stumbling block which I cannot
> > > >resolve by searching through the archives.  I'm sure its a simple one,
> > but
> > > >It's got me stumped.
> > > >
> > > >FOR---
> > > >Solaris 2.6
> > > >Apache 1.3.12
> > > >Tomcat 3.2
> > > >mod_jk
> > > >JDK 1.3
> > > >
> > > >I have my apache set up to use virtual hosts.
> > > >I have the tomcat set up pretty much stock, with the exception that I
> > > >added ajp13(i'm not using it in my apache configuration though) and I
> > > >commented out the /examples, /admin, etc. now all i have in my
> server.xml
> > > >file for context is
> > > >
> > > >  > > >  docBase ="/export/home/cci/public_html/java"
> > > >  croseContext="true"
> > > >  debug="0"
> > > >  reloadable="true">
> > > > 
> > > >
> > > >then in my httpd.conf file i have
> > > >
> > > > ServerAdmin [EMAIL PROTECTED]
> > > > DocumentRoot /export/home/cci/public_html
> > > > ServerName my.domain.com
> > > > DirectoryIndex index.cgi index.pl index.html index.shtml
> > > > 
> > > >   Options All
> > > > 
> > > >
> > > > 
> > > >   Options All
> > > > 
> > > > AddHandler cgi-script .cgi
> > > > AddHandler cgi-script .pl
> > > > ErrorLog /export/home/cci/public_html/logs/error_log
> > > > TransferLog /export/home/cci/public_html/logs/access_log
> > > >
> > > >
> > > >  Options Indexes FollowSymLinks
> > > >
> > > >
> > > >   #
> > > >   # The following line mounts all JSP files and the /servlet/ uri to
> > tomcat
> > > >   #
> > > >   JkMount /java/servlet/* ajp12
> > > >   JkMount /java/*.jsp ajp12
> > > >   #
> > > >   # The following line prohibits users from directly accessing WEB-INF
> > > >   #
> > > >   
> > > >   AllowOverride None
> > > >   deny from all
> > > >   
> > >

RE: Isapi_redirect.dll v3.2 will not load

2000-12-05 Thread Nacho

It's working for me without problems, have you changed the name of the
dir that contains your working copy ? if yes you will need to change
things as appropiate in the config of isapi_redirect.dll, but nothing
more and and far diffrent from 3.1 to 3.2, please feel free to post all
the details ( reg excerpt, *.properties files etc ), to see if we can
help you ...

Saludos ,
Ignacio J. Ortega


> -Mensaje original-
> De: Desaulniers, Peter [mailto:[EMAIL PROTECTED]]
> Enviado el: martes 5 de diciembre de 2000 1:56
> Para: [EMAIL PROTECTED]
> Cc: Desaulniers, Peter
> Asunto: Isapi_redirect.dll v3.2 will not load
> 
> 
> Facts:
> 
> WinNT 4.0SP6a, IIS 4.0
> Tomcat 3.2
> JDK 1.3
> 
> I have successfully install, configured and ran Tomcat 3.1 
> (as stand-alone,
> then out of process, and finally in-process) following the 
> documentation
> closely. However, after removing 3.1 and installing 3.2, I am 
> unable to get
> the isapi_redirect.dll to load.  I have followed the exact 
> same steps as 3.1
> for the IIS How-To (for out of process) but the dll fails to load (red
> downward arrow).  Tomcat 3.2 as a stand-alone works fine.
> 
> Questions:
> 
> 1. When I unzipped 3.2, I noticed that all of the text files 
> in the conf
> directory have non-MS carriage returns (i.e. black boxes when 
> viewed with
> Notepad). The same files were fine in 3.1 when viewed with 
> Notepad.  Could
> the improper carriage returns cause problems with running 
> tomcat within IIS?
> 
> 2. Does the registry key version for the Jakarta Isapi 
> Redirector remain 1.0
> for 3.2 as it was for 3.1?
> 
> 3. Someone suggested that the isapi_redirect filter need be 
> added at the web
> server level and not the default web site level.  I had it at 
> the default
> web site level for 3.1 and it worked.  For 3.2, it does work at either
> level.  What is the real requirement for 3.2?
> 
> 4. tomcat 3.2 unzips to the jakarta-tomcat-3.2 directory.  
> Version 3.1 ran
> out of jakarta-tomcat.  I deleted jakarta-tomcat and replaced 
> it with the
> 3.2 tree. Does that matter?
> 
> 5. Regarding the out of process mode, do I need to edit any 
> of the conf
> files for 3.2?  I did not have to edit any for 3.1.  
> 
> 6. What else can I look at to determine why the redirector won't load?
> 
> This seems to be giving alot of people headaches.  It would 
> be nice if some
> who was successful could post their configuration procedure 
> (or a modified
> How To document).  I would be happy to but first I must join 
> those who have
> been successful.
> 
> -- Peter Desaulniers
> 



mod_jk & balanced multiple servlet servers per mount point

2000-12-05 Thread Niall Gormley

Hi,

As a followup to my question on load balancing yesterday.

Is it possible to do the Level 2 type of load balancing using mod_jk that
exists in Jserv?

1 host with Apache, m*n hosts with JServ. Every zone can have the incoming
load distributed on several JServs. (New sessions only)

I need to set up a load balanced configuration which uses multiple JVMs for
the same virtual host and path.

Regards,
Niall







Cache problem URGENT HELP

2000-12-05 Thread Vanja Vlaski

Hello

For a couple of days now I am trying to solve this problem and I have no 
idea what is going on.I can not get my servlet to display changes I make in 
it.The cached copy is being displaide whatever I try.I even remove the class 
from the application directory and I also remove instalation but still the 
same.Does anyone know what could be the solution for this.I would really 
appreciate help on this.

Thanks


>From: Nacho <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: RE: Isapi_redirect.dll v3.2 will not load
>Date: Tue, 5 Dec 2000 10:23:26 +0100
>
>It's working for me without problems, have you changed the name of the
>dir that contains your working copy ? if yes you will need to change
>things as appropiate in the config of isapi_redirect.dll, but nothing
>more and and far diffrent from 3.1 to 3.2, please feel free to post all
>the details ( reg excerpt, *.properties files etc ), to see if we can
>help you ...
>
>Saludos ,
>Ignacio J. Ortega
>
>
> > -Mensaje original-
> > De: Desaulniers, Peter [mailto:[EMAIL PROTECTED]]
> > Enviado el: martes 5 de diciembre de 2000 1:56
> > Para: [EMAIL PROTECTED]
> > Cc: Desaulniers, Peter
> > Asunto: Isapi_redirect.dll v3.2 will not load
> >
> >
> > Facts:
> >
> > WinNT 4.0SP6a, IIS 4.0
> > Tomcat 3.2
> > JDK 1.3
> >
> > I have successfully install, configured and ran Tomcat 3.1
> > (as stand-alone,
> > then out of process, and finally in-process) following the
> > documentation
> > closely. However, after removing 3.1 and installing 3.2, I am
> > unable to get
> > the isapi_redirect.dll to load.  I have followed the exact
> > same steps as 3.1
> > for the IIS How-To (for out of process) but the dll fails to load (red
> > downward arrow).  Tomcat 3.2 as a stand-alone works fine.
> >
> > Questions:
> >
> > 1. When I unzipped 3.2, I noticed that all of the text files
> > in the conf
> > directory have non-MS carriage returns (i.e. black boxes when
> > viewed with
> > Notepad). The same files were fine in 3.1 when viewed with
> > Notepad.  Could
> > the improper carriage returns cause problems with running
> > tomcat within IIS?
> >
> > 2. Does the registry key version for the Jakarta Isapi
> > Redirector remain 1.0
> > for 3.2 as it was for 3.1?
> >
> > 3. Someone suggested that the isapi_redirect filter need be
> > added at the web
> > server level and not the default web site level.  I had it at
> > the default
> > web site level for 3.1 and it worked.  For 3.2, it does work at either
> > level.  What is the real requirement for 3.2?
> >
> > 4. tomcat 3.2 unzips to the jakarta-tomcat-3.2 directory.
> > Version 3.1 ran
> > out of jakarta-tomcat.  I deleted jakarta-tomcat and replaced
> > it with the
> > 3.2 tree. Does that matter?
> >
> > 5. Regarding the out of process mode, do I need to edit any
> > of the conf
> > files for 3.2?  I did not have to edit any for 3.1.
> >
> > 6. What else can I look at to determine why the redirector won't load?
> >
> > This seems to be giving alot of people headaches.  It would
> > be nice if some
> > who was successful could post their configuration procedure
> > (or a modified
> > How To document).  I would be happy to but first I must join
> > those who have
> > been successful.
> >
> > -- Peter Desaulniers
> >

_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com




Re: Isapi_redirect.dll v3.2 will not load

2000-12-05 Thread Lee Poh Heng

The workers.properties and uriworkermap.properties files in
Tomcat 3.2 is different from 3.1. I suggest you use back the
3.1 version of properties files with  Tomcat 3.2.

I have encountered many problem in setting up IIS with Tomcat.
So I have written a program to configure IIS and Tomcat. You
can find the program at my homepage:
http://www.namesdb.com/leeph/

The zip file comes with Delphi source code.

Hope this helps you.


- Original Message -
From: "Desaulniers, Peter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Desaulniers, Peter" <[EMAIL PROTECTED]>
Sent: Tuesday, December 05, 2000 8:55 AM
Subject: Isapi_redirect.dll v3.2 will not load


> Facts:
>
> WinNT 4.0SP6a, IIS 4.0
> Tomcat 3.2
> JDK 1.3
>
> I have successfully install, configured and ran Tomcat 3.1 (as
stand-alone,
> then out of process, and finally in-process) following the documentation
> closely. However, after removing 3.1 and installing 3.2, I am unable to
get
> the isapi_redirect.dll to load.  I have followed the exact same steps as
3.1
> for the IIS How-To (for out of process) but the dll fails to load (red
> downward arrow).  Tomcat 3.2 as a stand-alone works fine.
>
> Questions:
>
> 1. When I unzipped 3.2, I noticed that all of the text files in the conf
> directory have non-MS carriage returns (i.e. black boxes when viewed with
> Notepad). The same files were fine in 3.1 when viewed with Notepad.  Could
> the improper carriage returns cause problems with running tomcat within
IIS?
>
> 2. Does the registry key version for the Jakarta Isapi Redirector remain
1.0
> for 3.2 as it was for 3.1?
>
> 3. Someone suggested that the isapi_redirect filter need be added at the
web
> server level and not the default web site level.  I had it at the default
> web site level for 3.1 and it worked.  For 3.2, it does work at either
> level.  What is the real requirement for 3.2?
>
> 4. tomcat 3.2 unzips to the jakarta-tomcat-3.2 directory.  Version 3.1 ran
> out of jakarta-tomcat.  I deleted jakarta-tomcat and replaced it with the
> 3.2 tree. Does that matter?
>
> 5. Regarding the out of process mode, do I need to edit any of the conf
> files for 3.2?  I did not have to edit any for 3.1.
>
> 6. What else can I look at to determine why the redirector won't load?
>
> This seems to be giving alot of people headaches.  It would be nice if
some
> who was successful could post their configuration procedure (or a modified
> How To document).  I would be happy to but first I must join those who
have
> been successful.
>
> -- Peter Desaulniers
>





doPost() and concurrency issue

2000-12-05 Thread Heinemann, Andreas



Hi,

i've got a question/problem concerning the doPost() method.

As far as I know, whenever there is a new request, tomcat creates
a new thread running through the doPost() method. Inside this
method, my code does nothing special. But is passes the request and
response objects to a queue. this queue is managed by other threads.
then doPost() finishes. 

My question is: What happens to the request response objects when 
doPost() ends?

It  looks to me, that tomcat does some kind of cleanup, especially 
doing something with the stream objects attached to the 
request/response objects.

I've outlined some code in the 'first scenario' and got unexpected
behavior. Seldom there occurs no error. Most of the time a client, who
is reading the response, gets an java.io.StreamCorruptedError. 
Sometimes  it is an java.io.EOFException.

In the 'second scenario', I block the doPost()-thread, therefore making
sure,
that the request and response objects are still there and  valid.
Now there is no such problem.

Any ideas?

thanks, andreas

ps: i'm using tomcat 3.1 and java 1.3 under winNT


first scenario:
---

public void doPost(HttpServletRequest request,
   HttpServletResponse response)
   throws ServletException, IOException {
 .
 .
 // pass request and response object to a
 // queue. this queue will be managed by
 // another thread. eventually this other thread
 // will take the response object, call
 // response.getOutputStream()
 // and write to the client using this stream.
 .
 .
 .
 // leave doPost()
}



second scenario:


public void doPost(HttpServletRequest request,
   HttpServletResponse response)
   throws ServletException, IOException {
 .
 .
 // pass request and response object to a
 // queue. this queue will be managed by
 // another thread. eventually this other thread
 // will take the response object, call
 // response.getOutputStream()
 // and write to the client using this stream.
 .
 .
 // block the  thread and wait for the 'queue' thread to
 // write a response via response.getOutputStream()
 .
 .
 // leave doPost()
}




RE: connection pooling

2000-12-05 Thread Stevenson, John

Have a look at the following, you might find it interesting for pooling.  I
have not tried it myself, but would be interested if anyone outthere finds
it useful.

http://poolman.sourceforge.net/

Enjoy..
Johnny.

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: 05 December 2000 01:36
To: [EMAIL PROTECTED]
Subject: Re: connection pooling


Mukul Sood wrote:

> Hello All,
>
> I would like to know whether Tomcat supports database connection pooling.
> If not then do developers have to implement their own connection pool.
> Also can one use jdbc 2.0 data source with Tomcat.
> Would appreciate any info on these questions.
>
> Thanks in advance
>
> Mukul

Tomcat has no built-in support for database connection pooling.  However,
since
a connection pool is just Java code, any connection pool you find will run
under
it.  A place to start looking for more info would be the "JDBC Drivers" page
at
.

Craig McClanahan




Re: container managed authentication - how?

2000-12-05 Thread Joakim Verona

hello,

try reading the server.xml file. you must activate an interceptor.
you can choose from several. 

Christian Sell wrote:
> 
> hello,
> 
> I just installed Tomcat 3.2 and deployed my web application, which is
> running sucessfully nuder Orion and JRun, using form-based authentication.
> However, Tomcat completely ignores the security-constraint settings. How can
> I get Tomcat to enforce this? Does Tomcat support container-managed
> security?
> 
> thanks in advance..
> Christian
> 
> BTW, Heres my web.xml, in case somebody wants to take a look:
> 
> 
> 
>PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>   "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
> 
> 
>  
>   wcfsystem
>   wcfsystem
>   com.itsit.wcf.adaptor.WCFSystem
>   
>wcf.properties
>/wcf.properties
>   
>   1
>  
>
>   10
>
>
>   index.html
>   index.jsp
>
>  
>   
>WCF Administration
>WebComponents Administration
>*/WCFAdmin.jsp
>*/wcfsystem
>   
>   
>Administrators only
>admins
>   
>  
>  
>   FORM
>   
>  /content/login.html
>  /content/loginerr.html
>   
>  
>  
>   WCF Users
>   users
>  
>  
>   WCF Administrators
>   admins
>  
> 

-- 
Joakim Verona
[EMAIL PROTECTED]
http://www.verona.se/



Re: It is getting closer to make "mod_jk.so", but??

2000-12-05 Thread jun xu sun

Scott:
how do you resolve it? thanks a lot for your helping.

rgds
brent

-Original Message-
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, December 05, 2000 2:25 AM
Subject: Re: It is getting closer to make "mod_jk.so", but??


>Thanks all. It is solved.
>
>Scott
>Quoting [EMAIL PROTECTED]:
>
>> Hi All,
>> 
>> I downloaded a precompiled "mod_jk.so" for solaris 2.6 offered
>> by a tomcat-user and it did not work on my system. I still need
>> to compile it myself. It is almost there.
>> 
>> Solaris 2.6/tomcat3.2/perl5/apache1.3.14
>> 
>> command used to build "mod_jk.so":
>> 
>> /usr/local/apache/bin/apxs  -o mod_jk.so -DSOLARIS -I../jk
>> -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -c *.c ../jk/*.c
>> 
>> log result with error "apxs:Break: Command failed with rc=16777215":
>> 
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c mod_jk.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_ajp12_worker.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_ajp13.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_ajp13_worker.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_connect.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_jni_worker.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_lb_worker.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_map.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_msg_buff.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_nwmain.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_pool.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_sockbuf.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_uri_worker_map.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_util.c
>> gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  
>> -I/usr/local/apache/include -I../jk -I/usr/j2se/include 
>> -I/usr/j2se/include/solaris -DSOLARIS  -c ../jk/jk_worker.c
>>   -o mod_jk.so jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o
>> jk_pool.o 
>> jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o jk_jni_worker.o
>> jk_connect.o 
>> jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o mod_jk.o 
>> apxs:Break: Command failed with rc=16777215
>> 
>> Thanks,
>> 
>> Scott
>>




tomcat on IIS4

2000-12-05 Thread Wong Chee Mon

Hi,

I have install tomcat with IIS4. some problem are I can run /admin with 
port 8080 but not port 80.
and I have build the sample /myapp. this also run on port 8080
the only site I can run on both port is the /examples

how do I make the /myapp run on port 80

I have add a myapp context in server.xml &
/myapp/*=ajp12  in the uriworkermap.properties
it still cannot work

where can I found doc about the /admin

Thank you

Chee Mon




Re: Cache problem URGENT HELP

2000-12-05 Thread Vanja Vlaski

Yes I did!I even delete the instalation and installed the new one but still 
does the same.Even if I delete the class file from the directory classes 
server finds it.It is really weird.
Do you have any other suggestions?

Cheers


>From: "Adrian Stabiszewski" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: Re: Cache problem URGENT HELP
>Date: Tue, 5 Dec 2000 10:41:06 +0100
>
>Hi!
>
>Have you tried to restart tomcat?
>
>Tomcat (3.1+) only reloads classes in the WEB-INF directory if the 
>application has the
>reload flag in the server.xml file.
>
>bye, adrian.
>
>
>- Original Message -
>From: "Vanja Vlaski" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, December 05, 2000 10:28 AM
>Subject: Cache problem URGENT HELP
>
>
> > Hello
> >
> > For a couple of days now I am trying to solve this problem and I have no
> > idea what is going on.I can not get my servlet to display changes I make 
>in
> > it.The cached copy is being displaide whatever I try.I even remove the 
>class
> > from the application directory and I also remove instalation but still 
>the
> > same.Does anyone know what could be the solution for this.I would really
> > appreciate help on this.
> >
> > Thanks
> >
> >
> > >From: Nacho <[EMAIL PROTECTED]>
> > >Reply-To: [EMAIL PROTECTED]
> > >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> > >Subject: RE: Isapi_redirect.dll v3.2 will not load
> > >Date: Tue, 5 Dec 2000 10:23:26 +0100
> > >
> > >It's working for me without problems, have you changed the name of the
> > >dir that contains your working copy ? if yes you will need to change
> > >things as appropiate in the config of isapi_redirect.dll, but nothing
> > >more and and far diffrent from 3.1 to 3.2, please feel free to post all
> > >the details ( reg excerpt, *.properties files etc ), to see if we can
> > >help you ...
> > >
> > >Saludos ,
> > >Ignacio J. Ortega
> > >
> > >
> > > > -Mensaje original-
> > > > De: Desaulniers, Peter [mailto:[EMAIL PROTECTED]]
> > > > Enviado el: martes 5 de diciembre de 2000 1:56
> > > > Para: [EMAIL PROTECTED]
> > > > Cc: Desaulniers, Peter
> > > > Asunto: Isapi_redirect.dll v3.2 will not load
> > > >
> > > >
> > > > Facts:
> > > >
> > > > WinNT 4.0SP6a, IIS 4.0
> > > > Tomcat 3.2
> > > > JDK 1.3
> > > >
> > > > I have successfully install, configured and ran Tomcat 3.1
> > > > (as stand-alone,
> > > > then out of process, and finally in-process) following the
> > > > documentation
> > > > closely. However, after removing 3.1 and installing 3.2, I am
> > > > unable to get
> > > > the isapi_redirect.dll to load.  I have followed the exact
> > > > same steps as 3.1
> > > > for the IIS How-To (for out of process) but the dll fails to load 
>(red
> > > > downward arrow).  Tomcat 3.2 as a stand-alone works fine.
> > > >
> > > > Questions:
> > > >
> > > > 1. When I unzipped 3.2, I noticed that all of the text files
> > > > in the conf
> > > > directory have non-MS carriage returns (i.e. black boxes when
> > > > viewed with
> > > > Notepad). The same files were fine in 3.1 when viewed with
> > > > Notepad.  Could
> > > > the improper carriage returns cause problems with running
> > > > tomcat within IIS?
> > > >
> > > > 2. Does the registry key version for the Jakarta Isapi
> > > > Redirector remain 1.0
> > > > for 3.2 as it was for 3.1?
> > > >
> > > > 3. Someone suggested that the isapi_redirect filter need be
> > > > added at the web
> > > > server level and not the default web site level.  I had it at
> > > > the default
> > > > web site level for 3.1 and it worked.  For 3.2, it does work at 
>either
> > > > level.  What is the real requirement for 3.2?
> > > >
> > > > 4. tomcat 3.2 unzips to the jakarta-tomcat-3.2 directory.
> > > > Version 3.1 ran
> > > > out of jakarta-tomcat.  I deleted jakarta-tomcat and replaced
> > > > it with the
> > > > 3.2 tree. Does that matter?
> > > >
> > > > 5. Regarding the out of process mode, do I need to edit any
> > > > of the conf
> > > > files for 3.2?  I did not have to edit any for 3.1.
> > > >
> > > > 6. What else can I look at to determine why the redirector won't 
>load?
> > > >
> > > > This seems to be giving alot of people headaches.  It would
> > > > be nice if some
> > > > who was successful could post their configuration procedure
> > > > (or a modified
> > > > How To document).  I would be happy to but first I must join
> > > > those who have
> > > > been successful.
> > > >
> > > > -- Peter Desaulniers
> > > >
> >
> > 
>_
> > Get more from the Web.  FREE MSN Explorer download : 
>http://explorer.msn.com
> >
>

_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com




Re: Cache problem URGENT HELP

2000-12-05 Thread Adrian Stabiszewski

Hi!

Have you tried to restart tomcat?

Tomcat (3.1+) only reloads classes in the WEB-INF directory if the application has the
reload flag in the server.xml file.

bye, adrian.


- Original Message -
From: "Vanja Vlaski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 05, 2000 10:28 AM
Subject: Cache problem URGENT HELP


> Hello
>
> For a couple of days now I am trying to solve this problem and I have no
> idea what is going on.I can not get my servlet to display changes I make in
> it.The cached copy is being displaide whatever I try.I even remove the class
> from the application directory and I also remove instalation but still the
> same.Does anyone know what could be the solution for this.I would really
> appreciate help on this.
>
> Thanks
>
>
> >From: Nacho <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> >Subject: RE: Isapi_redirect.dll v3.2 will not load
> >Date: Tue, 5 Dec 2000 10:23:26 +0100
> >
> >It's working for me without problems, have you changed the name of the
> >dir that contains your working copy ? if yes you will need to change
> >things as appropiate in the config of isapi_redirect.dll, but nothing
> >more and and far diffrent from 3.1 to 3.2, please feel free to post all
> >the details ( reg excerpt, *.properties files etc ), to see if we can
> >help you ...
> >
> >Saludos ,
> >Ignacio J. Ortega
> >
> >
> > > -Mensaje original-
> > > De: Desaulniers, Peter [mailto:[EMAIL PROTECTED]]
> > > Enviado el: martes 5 de diciembre de 2000 1:56
> > > Para: [EMAIL PROTECTED]
> > > Cc: Desaulniers, Peter
> > > Asunto: Isapi_redirect.dll v3.2 will not load
> > >
> > >
> > > Facts:
> > >
> > > WinNT 4.0SP6a, IIS 4.0
> > > Tomcat 3.2
> > > JDK 1.3
> > >
> > > I have successfully install, configured and ran Tomcat 3.1
> > > (as stand-alone,
> > > then out of process, and finally in-process) following the
> > > documentation
> > > closely. However, after removing 3.1 and installing 3.2, I am
> > > unable to get
> > > the isapi_redirect.dll to load.  I have followed the exact
> > > same steps as 3.1
> > > for the IIS How-To (for out of process) but the dll fails to load (red
> > > downward arrow).  Tomcat 3.2 as a stand-alone works fine.
> > >
> > > Questions:
> > >
> > > 1. When I unzipped 3.2, I noticed that all of the text files
> > > in the conf
> > > directory have non-MS carriage returns (i.e. black boxes when
> > > viewed with
> > > Notepad). The same files were fine in 3.1 when viewed with
> > > Notepad.  Could
> > > the improper carriage returns cause problems with running
> > > tomcat within IIS?
> > >
> > > 2. Does the registry key version for the Jakarta Isapi
> > > Redirector remain 1.0
> > > for 3.2 as it was for 3.1?
> > >
> > > 3. Someone suggested that the isapi_redirect filter need be
> > > added at the web
> > > server level and not the default web site level.  I had it at
> > > the default
> > > web site level for 3.1 and it worked.  For 3.2, it does work at either
> > > level.  What is the real requirement for 3.2?
> > >
> > > 4. tomcat 3.2 unzips to the jakarta-tomcat-3.2 directory.
> > > Version 3.1 ran
> > > out of jakarta-tomcat.  I deleted jakarta-tomcat and replaced
> > > it with the
> > > 3.2 tree. Does that matter?
> > >
> > > 5. Regarding the out of process mode, do I need to edit any
> > > of the conf
> > > files for 3.2?  I did not have to edit any for 3.1.
> > >
> > > 6. What else can I look at to determine why the redirector won't load?
> > >
> > > This seems to be giving alot of people headaches.  It would
> > > be nice if some
> > > who was successful could post their configuration procedure
> > > (or a modified
> > > How To document).  I would be happy to but first I must join
> > > those who have
> > > been successful.
> > >
> > > -- Peter Desaulniers
> > >
>
> _
> Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com
>




RE: Cache problem URGENT HELP

2000-12-05 Thread Panagiotis Konstantinidis
Title: RE: Cache problem URGENT HELP





  If you are using a package enter the full package's name. For instance if you are using my.package.myClass this must be inside the WEB-INF/classes/my/package/myClass. Alse check the web.xml file in the WEB-INF subdirectory that contains the right servlet name and path.

  Hope this helps


    Panos


> -Original Message-
> From: Vanja Vlaski [mailto:[EMAIL PROTECTED]]
> Sent: 05 December 2000 09:55
> To: [EMAIL PROTECTED]
> Subject: Re: Cache problem URGENT HELP
> 
> 
> Yes I did!I even delete the instalation and installed the new 
> one but still 
> does the same.Even if I delete the class file from the 
> directory classes 
> server finds it.It is really weird.
> Do you have any other suggestions?
> 
> Cheers
> 
> 
> >From: "Adrian Stabiszewski" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: <[EMAIL PROTECTED]>
> >Subject: Re: Cache problem URGENT HELP
> >Date: Tue, 5 Dec 2000 10:41:06 +0100
> >
> >Hi!
> >
> >Have you tried to restart tomcat?
> >
> >Tomcat (3.1+) only reloads classes in the WEB-INF directory if the 
> >application has the
> >reload flag in the server.xml file.
> >
> >bye, adrian.
> >
> >
> >- Original Message -
> >From: "Vanja Vlaski" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Tuesday, December 05, 2000 10:28 AM
> >Subject: Cache problem URGENT HELP
> >
> >
> > > Hello
> > >
> > > For a couple of days now I am trying to solve this 
> problem and I have no
> > > idea what is going on.I can not get my servlet to display 
> changes I make 
> >in
> > > it.The cached copy is being displaide whatever I try.I 
> even remove the 
> >class
> > > from the application directory and I also remove 
> instalation but still 
> >the
> > > same.Does anyone know what could be the solution for 
> this.I would really
> > > appreciate help on this.
> > >
> > > Thanks
> > >
> > >
> > > >From: Nacho <[EMAIL PROTECTED]>
> > > >Reply-To: [EMAIL PROTECTED]
> > > >To: "'[EMAIL PROTECTED]'" 
> <[EMAIL PROTECTED]>
> > > >Subject: RE: Isapi_redirect.dll v3.2 will not load
> > > >Date: Tue, 5 Dec 2000 10:23:26 +0100
> > > >
> > > >It's working for me without problems, have you changed 
> the name of the
> > > >dir that contains your working copy ? if yes you will 
> need to change
> > > >things as appropiate in the config of 
> isapi_redirect.dll, but nothing
> > > >more and and far diffrent from 3.1 to 3.2, please feel 
> free to post all
> > > >the details ( reg excerpt, *.properties files etc ), to 
> see if we can
> > > >help you ...
> > > >
> > > >Saludos ,
> > > >Ignacio J. Ortega
> > > >
> > > >
> > > > > -Mensaje original-
> > > > > De: Desaulniers, Peter 
> [mailto:[EMAIL PROTECTED]]
> > > > > Enviado el: martes 5 de diciembre de 2000 1:56
> > > > > Para: [EMAIL PROTECTED]
> > > > > Cc: Desaulniers, Peter
> > > > > Asunto: Isapi_redirect.dll v3.2 will not load
> > > > >
> > > > >
> > > > > Facts:
> > > > >
> > > > > WinNT 4.0SP6a, IIS 4.0
> > > > > Tomcat 3.2
> > > > > JDK 1.3
> > > > >
> > > > > I have successfully install, configured and ran Tomcat 3.1
> > > > > (as stand-alone,
> > > > > then out of process, and finally in-process) following the
> > > > > documentation
> > > > > closely. However, after removing 3.1 and installing 3.2, I am
> > > > > unable to get
> > > > > the isapi_redirect.dll to load.  I have followed the exact
> > > > > same steps as 3.1
> > > > > for the IIS How-To (for out of process) but the dll 
> fails to load 
> >(red
> > > > > downward arrow).  Tomcat 3.2 as a stand-alone works fine.
> > > > >
> > > > > Questions:
> > > > >
> > > > > 1. When I unzipped 3.2, I noticed that all of the text files
> > > > > in the conf
> > > > > directory have non-MS carriage returns (i.e. black boxes when
> > > > > viewed with
> > > > > Notepad). The same files were fine in 3.1 when viewed with
> > > > > Notepad.  Could
> > > > > the improper carriage returns cause problems with running
> > > > > tomcat within IIS?
> > > > >
> > > > > 2. Does the registry key version for the Jakarta Isapi
> > > > > Redirector remain 1.0
> > > > > for 3.2 as it was for 3.1?
> > > > >
> > > > > 3. Someone suggested that the isapi_redirect filter need be
> > > > > added at the web
> > > > > server level and not the default web site level.  I had it at
> > > > > the default
> > > > > web site level for 3.1 and it worked.  For 3.2, it 
> does work at 
> >either
> > > > > level.  What is the real requirement for 3.2?
> > > > >
> > > > > 4. tomcat 3.2 unzips to the jakarta-tomcat-3.2 directory.
> > > > > Version 3.1 ran
> > > > > out of jakarta-tomcat.  I deleted jakarta-tomcat and replaced
> > > > > it with the
> > > > > 3.2 tree. Does that matter?
> > > > >
> > > > > 5. Regarding the out of process mode, do I need to edit any
> > > > > of the conf
> > > > > files for 3.2?  I did not have to edit any for 3.1.
> > > > >
> > > > > 6. What else can I look at to determine why the 
> redirector won't 
> >load?
> > > > >
> > > > > This

AW: How to get HTTP 1.1 response

2000-12-05 Thread Ralph Einfeldt

Tomcat 3.* is HTTP 1.0. If you need HTTP 1.1 you have 
to use a webserver in front of tomcat (apache, IIS)
or try Tomcat 4.0. 

> -Ursprüngliche Nachricht-
> Von: Edara, Indira [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 4. Dezember 2000 22:58
> An: '[EMAIL PROTECTED]'
> Betreff: How to get HTTP 1.1 response
> 
> 
> I am using tomcat as standalone webserver. When I send simple 
> GET request I
> am always getting HTTP 1.0 request back. How do I get HTTP 
> 1.1 response?
> I am using Tomcat 3.1, I placed jsptest.jsp file under 
> /tomcat/ROOT folder
> and requesting this file using telnet.
> Thank you
> 
> 



RE: Cache problem URGENT HELP

2000-12-05 Thread Vanja Vlaski


Hello

Thanks for the suggestions.I do not use packeges  and web.xml looks fine to 
me.

Cheers

>From: Panagiotis Konstantinidis <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: RE: Cache problem URGENT HELP
>Date: Tue, 5 Dec 2000 10:04:47 -
>
>   If you are using a package enter the full package's name. For instance 
>if
>you are using my.package.myClass this must be inside the
>WEB-INF/classes/my/package/myClass. Alse check the web.xml file in the
>WEB-INF subdirectory that contains the right servlet name and path.
>   Hope this helps
>
> Panos
>
> > -Original Message-
> > From: Vanja Vlaski [mailto:[EMAIL PROTECTED]]
> > Sent: 05 December 2000 09:55
> > To: [EMAIL PROTECTED]
> > Subject: Re: Cache problem URGENT HELP
> >
> >
> > Yes I did!I even delete the instalation and installed the new
> > one but still
> > does the same.Even if I delete the class file from the
> > directory classes
> > server finds it.It is really weird.
> > Do you have any other suggestions?
> >
> > Cheers
> >
> >
> > >From: "Adrian Stabiszewski" <[EMAIL PROTECTED]>
> > >Reply-To: [EMAIL PROTECTED]
> > >To: <[EMAIL PROTECTED]>
> > >Subject: Re: Cache problem URGENT HELP
> > >Date: Tue, 5 Dec 2000 10:41:06 +0100
> > >
> > >Hi!
> > >
> > >Have you tried to restart tomcat?
> > >
> > >Tomcat (3.1+) only reloads classes in the WEB-INF directory if the
> > >application has the
> > >reload flag in the server.xml file.
> > >
> > >bye, adrian.
> > >
> > >
> > >- Original Message -
> > >From: "Vanja Vlaski" <[EMAIL PROTECTED]>
> > >To: <[EMAIL PROTECTED]>
> > >Sent: Tuesday, December 05, 2000 10:28 AM
> > >Subject: Cache problem URGENT HELP
> > >
> > >
> > > > Hello
> > > >
> > > > For a couple of days now I am trying to solve this
> > problem and I have no
> > > > idea what is going on.I can not get my servlet to display
> > changes I make
> > >in
> > > > it.The cached copy is being displaide whatever I try.I
> > even remove the
> > >class
> > > > from the application directory and I also remove
> > instalation but still
> > >the
> > > > same.Does anyone know what could be the solution for
> > this.I would really
> > > > appreciate help on this.
> > > >
> > > > Thanks
> > > >
> > > >
> > > > >From: Nacho <[EMAIL PROTECTED]>
> > > > >Reply-To: [EMAIL PROTECTED]
> > > > >To: "'[EMAIL PROTECTED]'"
> > <[EMAIL PROTECTED]>
> > > > >Subject: RE: Isapi_redirect.dll v3.2 will not load
> > > > >Date: Tue, 5 Dec 2000 10:23:26 +0100
> > > > >
> > > > >It's working for me without problems, have you changed
> > the name of the
> > > > >dir that contains your working copy ? if yes you will
> > need to change
> > > > >things as appropiate in the config of
> > isapi_redirect.dll, but nothing
> > > > >more and and far diffrent from 3.1 to 3.2, please feel
> > free to post all
> > > > >the details ( reg excerpt, *.properties files etc ), to
> > see if we can
> > > > >help you ...
> > > > >
> > > > >Saludos ,
> > > > >Ignacio J. Ortega
> > > > >
> > > > >
> > > > > > -Mensaje original-
> > > > > > De: Desaulniers, Peter
> > [mailto:[EMAIL PROTECTED]]
> > > > > > Enviado el: martes 5 de diciembre de 2000 1:56
> > > > > > Para: [EMAIL PROTECTED]
> > > > > > Cc: Desaulniers, Peter
> > > > > > Asunto: Isapi_redirect.dll v3.2 will not load
> > > > > >
> > > > > >
> > > > > > Facts:
> > > > > >
> > > > > > WinNT 4.0SP6a, IIS 4.0
> > > > > > Tomcat 3.2
> > > > > > JDK 1.3
> > > > > >
> > > > > > I have successfully install, configured and ran Tomcat 3.1
> > > > > > (as stand-alone,
> > > > > > then out of process, and finally in-process) following the
> > > > > > documentation
> > > > > > closely. However, after removing 3.1 and installing 3.2, I am
> > > > > > unable to get
> > > > > > the isapi_redirect.dll to load.  I have followed the exact
> > > > > > same steps as 3.1
> > > > > > for the IIS How-To (for out of process) but the dll
> > fails to load
> > >(red
> > > > > > downward arrow).  Tomcat 3.2 as a stand-alone works fine.
> > > > > >
> > > > > > Questions:
> > > > > >
> > > > > > 1. When I unzipped 3.2, I noticed that all of the text files
> > > > > > in the conf
> > > > > > directory have non-MS carriage returns (i.e. black boxes when
> > > > > > viewed with
> > > > > > Notepad). The same files were fine in 3.1 when viewed with
> > > > > > Notepad.  Could
> > > > > > the improper carriage returns cause problems with running
> > > > > > tomcat within IIS?
> > > > > >
> > > > > > 2. Does the registry key version for the Jakarta Isapi
> > > > > > Redirector remain 1.0
> > > > > > for 3.2 as it was for 3.1?
> > > > > >
> > > > > > 3. Someone suggested that the isapi_redirect filter need be
> > > > > > added at the web
> > > > > > server level and not the default web site level.  I had it at
> > > > > > the default
> > > > > > web site level for 3.1 and it worked.  For 3.2, it
> > does work at
> > >either
> > > > > > level.  What is the real requirement for 3.2?
> > >

Re: tomcat on IIS4

2000-12-05 Thread Clifford . Okoro



What are you getting in your IIS logs when you try the port 80?

Clifford







Wong Chee Mon <[EMAIL PROTECTED]> on 12/05/2000 09:57:26 AM


Please respond to [EMAIL PROTECTED]





  
  
  
 To:  [EMAIL PROTECTED]  
  
 cc:  (bcc: Clifford Okoro/Harrow/Ladbrokes)  
  
  
  
 Subject: tomcat on IIS4  
  







Hi,

I have install tomcat with IIS4. some problem are I can run /admin with
port 8080 but not port 80.
and I have build the sample /myapp. this also run on port 8080
the only site I can run on both port is the /examples

how do I make the /myapp run on port 80

I have add a myapp context in server.xml &
/myapp/*=ajp12  in the uriworkermap.properties
it still cannot work

where can I found doc about the /admin

Thank you

Chee Mon






__


   This communication and any files transmitted with it are confidential and
   intended solely for the use of the individual or entity to whom they are
   addressed. If you have received it in error please notify the sender or
   [EMAIL PROTECTED] or telephone +44 (0)20 8868 8899. The unauthorised
   use, disclosure, copying or alteration of this message is forbidden.
   Ladbrokes Limited will not be liable for direct, special, indirect or
   consequential damage as a result of any virus being passed on, or arising
   from alteration of the contents of this message by a third party. Please note
   that in replying to this mail, you are granting the right for that reply to
   be forwarded to any other individual and to be read by a surrogate in the
   event that the intended recipient is out of the office or is no longer
   employed by the company.
   Any views expressed by an individual within this message do not necessarily
   reflect the views of the firm.






Re: container managed authentication - how?

2000-12-05 Thread Christian Sell

thanks for the info, will try. However, seems weird to me that I have to go
through involved, non-documented (?) procedures to enable J2EE standard
behavior - on the J2EE reference implementation?? Is there anything else to
read on this besides server.xml?

thanks,
Christian

- Original Message -
From: "Joakim Verona" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 05, 2000 11:08 AM
Subject: Re: container managed authentication - how?


> hello,
>
> try reading the server.xml file. you must activate an interceptor.
> you can choose from several.
>
> Christian Sell wrote:
> >
> > hello,
> >
> > I just installed Tomcat 3.2 and deployed my web application, which is
> > running sucessfully nuder Orion and JRun, using form-based
authentication.
> > However, Tomcat completely ignores the security-constraint settings. How
can
> > I get Tomcat to enforce this? Does Tomcat support container-managed
> > security?
> >
> > thanks in advance..
> > Christian
> >
>
> --
> Joakim Verona
> [EMAIL PROTECTED]
> http://www.verona.se/




RE: virtuals/workers

2000-12-05 Thread Stubenrauch,Andreas

Yes, and they have to go on different ports

> -Original Message-
> From: oj14 [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 01, 2000 7:36 PM
> To: [EMAIL PROTECTED]
> Subject: Re: virtuals/workers
> 
> 
> OR do I have to create 2 server.xmls and start tomcat twice, 
> once for each
> virtual?
> 
> On Fri, 01 Dec 2000, you wrote:
> > Hi,
> > Just installed 3.2 and want to utilize the new virtual host support.
> > 
> > I defined 2 new workers (workerA workerB)
> > 
> > Both at using apj13 and port 8009
> > 
> > In my virtual host apache configs I properly mount my 
> servlets/jsps on the
> > corresponding workerA and workerB
> > 
> > my question is 
> > 
> > a. how do i ensure that both virtuals are actuall operating 
> in their own unique
> > jvms instances
> > 
> > b. can 2 workers share the same port? or do i need to 
> define another Connector
> > in server.xml using the apj13connection handler and just 
> changing the port for
> > each corresponding separate worker?
> 



RE: tools for Stress Testing

2000-12-05 Thread G.Nagarajan
Title: tools for Stress Testing



Hi,
Try 
OpenSta.org, MS web stress tool, www.rswsoftware.com.
 
These 
should help. I am using OpenSta for testing my jsps and servlets and it takes 
care of handling
cookies.
 
Cheers,
Nagaraj.

  -Original Message-From: Chris Chen 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, December 04, 2000 9:06 
  PMTo: '[EMAIL PROTECTED]'Subject: tools for 
  Stress Testing
  Hi all, 
   I am just wondering if there is a way to do a stress 
  testing on my jsp/servlet pages even I am using the 
  session tracking in my application. 
  for example, I have: 1.jsp for user 
  logon checking 2.jsp for loading data from 
  database 3.jsp for business data calculation 
  4.jsp for modifying data to database 
  The application works like:  when 
  user passed 1.jsp, there will be a set of data in their session, hold 
  by Java data Beans, from database. Base on those data, 
  3.jsp will performance a certain business logic, then 
  4.jsp will write data to database. 
   I want to build a set of benchmark/stress testing for 
  all those *.jsp pages. How long it will take? How's 
  the response performance? ... 
  How could I do this? Is there any this kind of tools? 
  By using Tomcat, how can I let tomcat know that I am in the 
  session, and performance certain data set for me? 
  Regards,  Chris 



web.xml question

2000-12-05 Thread Vanja Vlaski

Since I am new to the tomcat I have one probably stupid question.Do I have 
to register all the servlets I use in web.xml or just the first servlet that 
is called?

Also how can I call the servlet at the beging instead of index.html?

Thanks
_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com




WARNING--Building TOMCAT 3.2 when J2SDKEE is in classpath

2000-12-05 Thread Sandy McPherson

Dear All I had some problems building TOMCAT from source when Sun's
J2SDKEE j2ee.jar was in the class path. this is because it contains an
old version of Tomcat, with a Constants class in the utils directory
so make sure j2ee.jar is not in the path when building tomcat


begin:vcard 
n:McPherson;Sandy
tel;cell:+31 6 224 70517
tel;fax:+31 527 68 74 80
tel;work:+31 527 68 70 10
x-mozilla-html:TRUE
org:Allset Consultancy BV.
version:2.1
email;internet:[EMAIL PROTECTED]
title:Senior Consultant
adr;quoted-printable:;;Robbenplaat 18=0D=0A;Urk;;8321PA;Netherlands
x-mozilla-cpt:;32288
fn:Sandy McPherson
end:vcard



Error 404

2000-12-05 Thread nitin mundada

Hi all
I am facing a strange problem. I am getting error 404:
File not Found, though file is there.
I'll explain -- I want to connect to new.jsp, and
alter.jsp through start.html. when i click on link for
new.jsp, it works perfectly, but when i link on link
for alter.jsp, it shows Error 404.
alter.jsp is there in on the server.

I tried with other combinations also, like uploading
new.jsp(as this link was working properly) by other
name like new1.jsp, and trying to access it, it again
fails.

i.e. i am able to access only new.jsp and no other
file


Thank u in advance
Nitin  


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie



RE: Sessions don't work without cookies since 3.2beta6

2000-12-05 Thread Stubenrauch,Andreas

Basicly it works in 3.2 final, but I just found out it doesn't in conjuction
with ssl

Andreas

> -Original Message-
> From: Daniel Beaudry [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 04, 2000 9:23 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Sessions don't work without cookies since 3.2beta6
> 
> 
> Is it fixed in the tomcat 3.2 final release?
> 
> response.encodeURL(url) does not seem to work even if I specify the
> following in the file server.xml
>  className="org.apache.tomcat.request.SessionInterceptor"
> noCookies="true" />
> 
> "Stubenrauch,Andreas" wrote:
> > Hi Folks any comments are welcome:
>  >
>  > If Cookies are turned off in a browser the session-management by
>  > url-rewriting does not work. This bug was introduced by 
> 3.2 beta6 and
> is
>  > still around in beta7
>  >
>  > Just turn cookies off and try any of the session-examples in the
>  > tomcat-distribution
>  >
> 
>  This bug has been fixed, and the fix will appear in 3.2-b8 (which
> should become
>  available Monday night).
> 
>  >
>  > Regards,
>  > Andreas
> 
>  Craig McClanahan
> 
> 
> 
> 
> --
> Daniel Beaudry  [EMAIL PROTECTED]
> (514) 931-8356 #3330
> 
> 



Help with OSX

2000-12-05 Thread Cristian Pozzer

I have problem to install tomcat on my OSX.

Is there anybody that can help me?

Ciao

Cristian




Re: Sessions don't work without cookies since 3.2beta6

2000-12-05 Thread carnell

Sessions without cookies was fixed from 3.2b8. It works for me, but I don't
use ssl. (although I may in the future!).

- Original Message -
From: "Stubenrauch,Andreas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 05, 2000 11:40 AM
Subject: RE: Sessions don't work without cookies since 3.2beta6


> Basicly it works in 3.2 final, but I just found out it doesn't in
conjuction
> with ssl
>
> Andreas
>
> > -Original Message-
> > From: Daniel Beaudry [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, December 04, 2000 9:23 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Sessions don't work without cookies since 3.2beta6
> >
> >
> > Is it fixed in the tomcat 3.2 final release?
> >
> > response.encodeURL(url) does not seem to work even if I specify the
> > following in the file server.xml
> >  > className="org.apache.tomcat.request.SessionInterceptor"
> > noCookies="true" />
> >
> > "Stubenrauch,Andreas" wrote:
> > > Hi Folks any comments are welcome:
> >  >
> >  > If Cookies are turned off in a browser the session-management by
> >  > url-rewriting does not work. This bug was introduced by
> > 3.2 beta6 and
> > is
> >  > still around in beta7
> >  >
> >  > Just turn cookies off and try any of the session-examples in the
> >  > tomcat-distribution
> >  >
> >
> >  This bug has been fixed, and the fix will appear in 3.2-b8 (which
> > should become
> >  available Monday night).
> >
> >  >
> >  > Regards,
> >  > Andreas
> >
> >  Craig McClanahan
> >
> >
> >
> >
> > --
> > Daniel Beaudry  [EMAIL PROTECTED]
> > (514) 931-8356 #3330
> >
> >




cgi-bin

2000-12-05 Thread Pierre Roy



Hi there,
 
I'm running Tomcat on Windows 2000.  When I 
try to load http://localhost:8080/cgi-bin I get a 
"page not found message" from my browser.  Could someone tell me where I 
should put my .exe files, and how I should configure Tomcat to find 
them?
 
Thanks in advance,
Pierre


Strange session timeout

2000-12-05 Thread Forslöf Mats

Hello Tomcat'ers,

I've run in to a strange problem with the session refresh handling in Tomcat
3.2 (final). Here is the problem;

If I set the max inactive interval to 6 minutes (360 sec) for the session
and then make a client call after 4 minutes (240 sec) the session times out
after 2 minutes after the last call, i.e. 6 minutes from the initial call.
However, if I call every 3 minutes it works fine. I have tested with
different timeout values with the same result. It seems that you must make a
refresh call <= timeout/2.

Is this how it supposed to be or am I missing something here? I'm using URL
rewriting to send the session ID to the server and I have checked that it
receives it properly so it uses the same sessione every time.

Any help/ideas is appreciated!

Regards,
Mats Forslöf



Re: Problem with WAP Gateway and Tomcat standalone

2000-12-05 Thread Bernhard Wraase

> I checked the HTTP headers of both (standalone and Apache) and the only
> difference is, that Tomcat uses HTTP/1.0 and Apache uses HTTP/1.1 .

Try a newer version of tomact.

Bernhard




Re: container managed authentication - how?

2000-12-05 Thread Christian Sell

can you (or anyone) tell me WHAT I need to activate to enable J2EE standard
(form-based) authentication, simply using the tomcat-users.xml file? Is
there any place I can read up on this? Does this even work?

thanks,
Christian

- Original Message -
From: "Joakim Verona" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 05, 2000 11:08 AM
Subject: Re: container managed authentication - how?


> hello,
>
> try reading the server.xml file. you must activate an interceptor.
> you can choose from several.
>
> Christian Sell wrote:
> >
> > hello,
> >
> > I just installed Tomcat 3.2 and deployed my web application, which is
> > running sucessfully nuder Orion and JRun, using form-based
authentication.
> > However, Tomcat completely ignores the security-constraint settings. How
can
> > I get Tomcat to enforce this? Does Tomcat support container-managed
> > security?
> >
> > thanks in advance..
> > Christian
> >
> > BTW, Heres my web.xml, in case somebody wants to take a look:
> >
> > 
> >
> >  >   PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> >   "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
> >
> > 
> >  
> >   wcfsystem
> >   wcfsystem
> >   com.itsit.wcf.adaptor.WCFSystem
> >   
> >wcf.properties
> >/wcf.properties
> >   
> >   1
> >  
> >
> >   10
> >
> >
> >   index.html
> >   index.jsp
> >
> >  
> >   
> >WCF Administration
> >WebComponents Administration
> >*/WCFAdmin.jsp
> >*/wcfsystem
> >   
> >   
> >Administrators only
> >admins
> >   
> >  
> >  
> >   FORM
> >   
> >  /content/login.html
> >  /content/loginerr.html
> >   
> >  
> >  
> >   WCF Users
> >   users
> >  
> >  
> >   WCF Administrators
> >   admins
> >  
> > 
>
> --
> Joakim Verona
> [EMAIL PROTECTED]
> http://www.verona.se/





RE: Help with OSX

2000-12-05 Thread Nacho

I have a 3.2 beta 7 working on MacOSX, with no much hassle, a matter so
untar and shot startup.sh, to get servlets to work, the only problem was
to have to find the tools.jar included with MacOSX, to be able to use
JSPs, but it's not a difficult task :-).

be a more explicit to be able to help  what's is your problem??

Saludos ,
Ignacio J. Ortega


> -Mensaje original-
> De: Cristian Pozzer [mailto:[EMAIL PROTECTED]]
> Enviado el: martes 5 de diciembre de 2000 11:46
> Para: [EMAIL PROTECTED]
> Asunto: Help with OSX
> 
> 
> I have problem to install tomcat on my OSX.
> 
> Is there anybody that can help me?
> 
> Ciao
> 
> Cristian
> 



RE: container managed authentication - how?

2000-12-05 Thread Nacho

Have a look over the examples webapp, if you try to access
http://localhost:8080/examples/jsp/security/protected you will trigger a
form based auth over that webapp directory use "user" & "pass" as
credentials.

Look at the web.xml file contained in the examples/web-inf dir to see a
working config on that.

Hope this helps.

Saludos ,
Ignacio J. Ortega


> -Mensaje original-
> De: Christian Sell [mailto:[EMAIL PROTECTED]]
> Enviado el: martes 5 de diciembre de 2000 11:57
> Para: [EMAIL PROTECTED]
> Asunto: Re: container managed authentication - how?
> 
> 
> can you (or anyone) tell me WHAT I need to activate to enable 
> J2EE standard
> (form-based) authentication, simply using the 
> tomcat-users.xml file? Is
> there any place I can read up on this? Does this even work?
> 
> thanks,
> Christian
> 
> - Original Message -
> From: "Joakim Verona" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, December 05, 2000 11:08 AM
> Subject: Re: container managed authentication - how?
> 
> 
> > hello,
> >
> > try reading the server.xml file. you must activate an interceptor.
> > you can choose from several.
> >
> > Christian Sell wrote:
> > >
> > > hello,
> > >
> > > I just installed Tomcat 3.2 and deployed my web 
> application, which is
> > > running sucessfully nuder Orion and JRun, using form-based
> authentication.
> > > However, Tomcat completely ignores the 
> security-constraint settings. How
> can
> > > I get Tomcat to enforce this? Does Tomcat support 
> container-managed
> > > security?
> > >
> > > thanks in advance..
> > > Christian
> > >
> > > BTW, Heres my web.xml, in case somebody wants to take a look:
> > >
> > > 
> > >
> > >  > >   PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> > >   "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
> > >
> > > 
> > >  
> > >   wcfsystem
> > >   wcfsystem
> > >   com.itsit.wcf.adaptor.WCFSystem
> > >   
> > >wcf.properties
> > >/wcf.properties
> > >   
> > >   1
> > >  
> > >
> > >   10
> > >
> > >
> > >   index.html
> > >   index.jsp
> > >
> > >  
> > >   
> > >WCF Administration
> > >WebComponents Administration
> > >*/WCFAdmin.jsp
> > >*/wcfsystem
> > >   
> > >   
> > >Administrators only
> > >admins
> > >   
> > >  
> > >  
> > >   FORM
> > >   
> > >  /content/login.html
> > >  /content/loginerr.html
> > >   
> > >  
> > >  
> > >   WCF Users
> > >   users
> > >  
> > >  
> > >   WCF Administrators
> > >   admins
> > >  
> > > 
> >
> > --
> > Joakim Verona
> > [EMAIL PROTECTED]
> > http://www.verona.se/
> 
> 



Re: Help with OSX

2000-12-05 Thread Cristian Pozzer

on 5-12-2000 11:59, Nacho at [EMAIL PROTECTED] wrote:

> I have a 3.2 beta 7 working on MacOSX, with no much hassle, a matter so
> untar and shot startup.sh, to get servlets to work, the only problem was
> to have to find the tools.jar included with MacOSX, to be able to use
> JSPs, but it's not a difficult task :-).
> 
> be a more explicit to be able to help  what's is your problem??
> 
> Saludos ,
> Ignacio J. Ortega

Thanks a lot for your reply.

The documentation spoke about a TOMCAT_HOME directory with a special
configuration, right ?

How I can do that?

Cristian




Re: Error 404

2000-12-05 Thread Clifford . Okoro



What's in the IIS logs? That would help us in determining what the problem might
be. The IIS logs are probably in WINNT/System32/Logfiles/W3???.

Clifford







nitin mundada <[EMAIL PROTECTED]> on 12/05/2000 10:39:57 AM


Please respond to [EMAIL PROTECTED]





  
  
  
 To:  [EMAIL PROTECTED]  
  
 cc:  (bcc: Clifford Okoro/Harrow/Ladbrokes)  
  
  
  
 Subject: Error 404   
  







Hi all
I am facing a strange problem. I am getting error 404:
File not Found, though file is there.
I'll explain -- I want to connect to new.jsp, and
alter.jsp through start.html. when i click on link for
new.jsp, it works perfectly, but when i link on link
for alter.jsp, it shows Error 404.
alter.jsp is there in on the server.

I tried with other combinations also, like uploading
new.jsp(as this link was working properly) by other
name like new1.jsp, and trying to access it, it again
fails.

i.e. i am able to access only new.jsp and no other
file


Thank u in advance
Nitin


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie





__


   This communication and any files transmitted with it are confidential and
   intended solely for the use of the individual or entity to whom they are
   addressed. If you have received it in error please notify the sender or
   [EMAIL PROTECTED] or telephone +44 (0)20 8868 8899. The unauthorised
   use, disclosure, copying or alteration of this message is forbidden.
   Ladbrokes Limited will not be liable for direct, special, indirect or
   consequential damage as a result of any virus being passed on, or arising
   from alteration of the contents of this message by a third party. Please note
   that in replying to this mail, you are granting the right for that reply to
   be forwarded to any other individual and to be read by a surrogate in the
   event that the intended recipient is out of the office or is no longer
   employed by the company.
   Any views expressed by an individual within this message do not necessarily
   reflect the views of the firm.






RE: Help with OSX

2000-12-05 Thread Nacho

> 
> The documentation spoke about a TOMCAT_HOME directory with a special
> configuration, right ?

this is not need, or better to say autoconfigured if you use startup.sh
AFAIK, for me was a matter of shoot'em up startup.sh using "sh
startup.sh" from a shell, when inside the %TOMCAT_HOME%/bin directory

> 
> How I can do that?

urghhh, if needed you can do ( depending on the shell you are using ) :

set TOMCAT_HOME=/path/to/tomcat ; export TOMCAT_HOME

Please be aware that i don use *ixes everyday, take as a start ..

> 
> Cristian
> 


Saludos ,
Ignacio J. Ortega




Re: container managed authentication - how?

2000-12-05 Thread Joakim Verona

hello,

I use exactly this quite a lot, and it works well. 

try the example security contexts, so you can see how it works.
the interceptor in the server.xml you need to activate is clearly commented
in the file. tomcat needs to be responisble for security, so the easiest
way to test it is to go through port 8080.

the tomcat-users file is also clearly commented.

when you design your login forms, they should be placed somewhere unprotected,
this was a quirk that stymied me for a while.


look for these lines in server.xml:
(i have increased the debug level to see what happens)


  






Christian Sell wrote:
> 
> can you (or anyone) tell me WHAT I need to activate to enable J2EE standard
> (form-based) authentication, simply using the tomcat-users.xml file? Is
> there any place I can read up on this? Does this even work?
> 
> thanks,
> Christian
> 
> - Original Message -
> From: "Joakim Verona" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, December 05, 2000 11:08 AM
> Subject: Re: container managed authentication - how?
> 
> > hello,
> >
> > try reading the server.xml file. you must activate an interceptor.
> > you can choose from several.
> >
> > Christian Sell wrote:
> > >
> > > hello,
> > >
> > > I just installed Tomcat 3.2 and deployed my web application, which is
> > > running sucessfully nuder Orion and JRun, using form-based
> authentication.
> > > However, Tomcat completely ignores the security-constraint settings. How
> can
> > > I get Tomcat to enforce this? Does Tomcat support container-managed
> > > security?
> > >
> > > thanks in advance..
> > > Christian
> > >
> > > BTW, Heres my web.xml, in case somebody wants to take a look:
> > >
> > > 
> > >
> > >  > >   PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> > >   "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
> > >
> > > 
> > >  
> > >   wcfsystem
> > >   wcfsystem
> > >   com.itsit.wcf.adaptor.WCFSystem
> > >   
> > >wcf.properties
> > >/wcf.properties
> > >   
> > >   1
> > >  
> > >
> > >   10
> > >
> > >
> > >   index.html
> > >   index.jsp
> > >
> > >  
> > >   
> > >WCF Administration
> > >WebComponents Administration
> > >*/WCFAdmin.jsp
> > >*/wcfsystem
> > >   
> > >   
> > >Administrators only
> > >admins
> > >   
> > >  
> > >  
> > >   FORM
> > >   
> > >  /content/login.html
> > >  /content/loginerr.html
> > >   
> > >  
> > >  
> > >   WCF Users
> > >   users
> > >  
> > >  
> > >   WCF Administrators
> > >   admins
> > >  
> > > 
> >
> > --
> > Joakim Verona
> > [EMAIL PROTECTED]
> > http://www.verona.se/

-- 
Joakim Verona
[EMAIL PROTECTED]
http://www.verona.se/



Re: Error 404

2000-12-05 Thread nitin mundada

Thank Clifford for your suggestion, but I am working on unix server.
also, i can get only one file named new.jsp. if i change its name,
error 404 appears, or if i change other files name to new.jsp, it works
perfectly.

thank u
nitin
--- [EMAIL PROTECTED] wrote: > 
> 
> What's in the IIS logs? That would help us in determining what the
> problem might
> be. The IIS logs are probably in WINNT/System32/Logfiles/W3???.
> 
> Clifford
> 
> 
> 
> 
> 
> 
> 
> nitin mundada <[EMAIL PROTECTED]> on 12/05/2000 10:39:57 AM
> 
> 
> Please respond to [EMAIL PROTECTED]
>  
>   
>  
>   
>  
>   
> 
> 
>   
>   
>   
>  To:  [EMAIL PROTECTED]  
>   
>  cc:  (bcc: Clifford Okoro/Harrow/Ladbrokes)  
>   
>   
>   
>  Subject: Error 404   
>   
> 
> 
> 
> 
> 
> 
> 
> Hi all
> I am facing a strange problem. I am getting error 404:
> File not Found, though file is there.
> I'll explain -- I want to connect to new.jsp, and
> alter.jsp through start.html. when i click on link for
> new.jsp, it works perfectly, but when i link on link
> for alter.jsp, it shows Error 404.
> alter.jsp is there in on the server.
> 
> I tried with other combinations also, like uploading
> new.jsp(as this link was working properly) by other
> name like new1.jsp, and trying to access it, it again
> fails.
> 
> i.e. i am able to access only new.jsp and no other
> file
> 
> 
> Thank u in advance
> Nitin
> 
> 
> Do You Yahoo!?
> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
> or your free @yahoo.ie address at http://mail.yahoo.ie
> 
> 
> 
> 
> 
>
__
> 
> 
>This communication and any files transmitted with it are
> confidential and
>intended solely for the use of the individual or entity to whom
> they are
>addressed. If you have received it in error please notify the
> sender or
>[EMAIL PROTECTED] or telephone +44 (0)20 8868 8899. The
> unauthorised
>use, disclosure, copying or alteration of this message is
> forbidden.
>Ladbrokes Limited will not be liable for direct, special, indirect
> or
>consequential damage as a result of any virus being passed on, or
> arising
>from alteration of the contents of this message by a third party.
> Please note
>that in replying to this mail, you are granting the right for that
> reply to
>be forwarded to any other individual and to be read by a surrogate
> in the
>event that the intended recipient is out of the office or is no
> longer
>employed by the company.
>Any views expressed by an individual within this message do not
> necessarily
>reflect the views of the firm.
> 
> 
> 



Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie



web.xml question

2000-12-05 Thread Vanja Vlaski

In web.xml do I have to register all the servlets I will use or only first 
one that is being invoked?
Also how do I call servlet first instead of index.html?


Thanks

>From: "G.Nagarajan" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: RE: tools for Stress Testing
>Date: Tue, 5 Dec 2000 11:29:55 +0100
>
>tools for Stress TestingHi,
>Try OpenSta.org, MS web stress tool, www.rswsoftware.com.
>
>These should help. I am using OpenSta for testing my jsps and servlets and
>it takes care of handling
>cookies.
>
>Cheers,
>Nagaraj.
>   -Original Message-
>   From: Chris Chen [mailto:[EMAIL PROTECTED]]
>   Sent: Monday, December 04, 2000 9:06 PM
>   To: '[EMAIL PROTECTED]'
>   Subject: tools for Stress Testing
>
>
>   Hi all,
>
>I am just wondering if there is a way to do a stress testing on my
>jsp/servlet
>   pages even I am using the session tracking in my application.
>
>   for example, I have:
>   1.jsp for user logon checking
>   2.jsp for loading data from database
>   3.jsp for business data calculation
>   4.jsp for modifying data to database
>
>   The application works like:
>when user passed 1.jsp, there will be a set of data in their session,
>hold by
>   Java data Beans, from database. Base on those data, 3.jsp will 
>performance
>a
>   certain business logic, then 4.jsp will write data to database.
>
>I want to build a set of benchmark/stress testing for all those *.jsp
>pages.
>   How long it will take? How's the response performance? ...
>
>   How could I do this? Is there any this kind of tools?
>   By using Tomcat, how can I let tomcat know that I am in the session, and
>performance certain data set for me?
>
>   Regards,
>Chris
>

_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com




SOS virtual domains and forward

2000-12-05 Thread Carlos

if i make a forward from a pago to another page it not get the correct path
if i make a jsp:forward page="../page,jsp"
it include the page not send to that page
what can i make?
thaks




Re: Cache problem URGENT HELP

2000-12-05 Thread Adrian Stabiszewski

ehm, well, if you restart tomcat and it still loads your "old" classes then you should 
try
to search your hd for all classes.
may be there are some copies of your classes in the classpath and so tomcat finds them
again and again.

could you post your classpath here like tomcats displays it when it starts??


- Original Message -
From: "Vanja Vlaski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 05, 2000 10:55 AM
Subject: Re: Cache problem URGENT HELP


> Yes I did!I even delete the instalation and installed the new one but still
> does the same.Even if I delete the class file from the directory classes
> server finds it.It is really weird.
> Do you have any other suggestions?
>
> Cheers
>
>
> >From: "Adrian Stabiszewski" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: <[EMAIL PROTECTED]>
> >Subject: Re: Cache problem URGENT HELP
> >Date: Tue, 5 Dec 2000 10:41:06 +0100
> >
> >Hi!
> >
> >Have you tried to restart tomcat?
> >
> >Tomcat (3.1+) only reloads classes in the WEB-INF directory if the
> >application has the
> >reload flag in the server.xml file.
> >
> >bye, adrian.
> >
> >
> >- Original Message -
> >From: "Vanja Vlaski" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Tuesday, December 05, 2000 10:28 AM
> >Subject: Cache problem URGENT HELP
> >
> >
> > > Hello
> > >
> > > For a couple of days now I am trying to solve this problem and I have no
> > > idea what is going on.I can not get my servlet to display changes I make
> >in
> > > it.The cached copy is being displaide whatever I try.I even remove the
> >class
> > > from the application directory and I also remove instalation but still
> >the
> > > same.Does anyone know what could be the solution for this.I would really
> > > appreciate help on this.
> > >
> > > Thanks
> > >
> > >
> > > >From: Nacho <[EMAIL PROTECTED]>
> > > >Reply-To: [EMAIL PROTECTED]
> > > >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> > > >Subject: RE: Isapi_redirect.dll v3.2 will not load
> > > >Date: Tue, 5 Dec 2000 10:23:26 +0100
> > > >
> > > >It's working for me without problems, have you changed the name of the
> > > >dir that contains your working copy ? if yes you will need to change
> > > >things as appropiate in the config of isapi_redirect.dll, but nothing
> > > >more and and far diffrent from 3.1 to 3.2, please feel free to post all
> > > >the details ( reg excerpt, *.properties files etc ), to see if we can
> > > >help you ...
> > > >
> > > >Saludos ,
> > > >Ignacio J. Ortega
> > > >
> > > >
> > > > > -Mensaje original-
> > > > > De: Desaulniers, Peter [mailto:[EMAIL PROTECTED]]
> > > > > Enviado el: martes 5 de diciembre de 2000 1:56
> > > > > Para: [EMAIL PROTECTED]
> > > > > Cc: Desaulniers, Peter
> > > > > Asunto: Isapi_redirect.dll v3.2 will not load
> > > > >
> > > > >
> > > > > Facts:
> > > > >
> > > > > WinNT 4.0SP6a, IIS 4.0
> > > > > Tomcat 3.2
> > > > > JDK 1.3
> > > > >
> > > > > I have successfully install, configured and ran Tomcat 3.1
> > > > > (as stand-alone,
> > > > > then out of process, and finally in-process) following the
> > > > > documentation
> > > > > closely. However, after removing 3.1 and installing 3.2, I am
> > > > > unable to get
> > > > > the isapi_redirect.dll to load.  I have followed the exact
> > > > > same steps as 3.1
> > > > > for the IIS How-To (for out of process) but the dll fails to load
> >(red
> > > > > downward arrow).  Tomcat 3.2 as a stand-alone works fine.
> > > > >
> > > > > Questions:
> > > > >
> > > > > 1. When I unzipped 3.2, I noticed that all of the text files
> > > > > in the conf
> > > > > directory have non-MS carriage returns (i.e. black boxes when
> > > > > viewed with
> > > > > Notepad). The same files were fine in 3.1 when viewed with
> > > > > Notepad.  Could
> > > > > the improper carriage returns cause problems with running
> > > > > tomcat within IIS?
> > > > >
> > > > > 2. Does the registry key version for the Jakarta Isapi
> > > > > Redirector remain 1.0
> > > > > for 3.2 as it was for 3.1?
> > > > >
> > > > > 3. Someone suggested that the isapi_redirect filter need be
> > > > > added at the web
> > > > > server level and not the default web site level.  I had it at
> > > > > the default
> > > > > web site level for 3.1 and it worked.  For 3.2, it does work at
> >either
> > > > > level.  What is the real requirement for 3.2?
> > > > >
> > > > > 4. tomcat 3.2 unzips to the jakarta-tomcat-3.2 directory.
> > > > > Version 3.1 ran
> > > > > out of jakarta-tomcat.  I deleted jakarta-tomcat and replaced
> > > > > it with the
> > > > > 3.2 tree. Does that matter?
> > > > >
> > > > > 5. Regarding the out of process mode, do I need to edit any
> > > > > of the conf
> > > > > files for 3.2?  I did not have to edit any for 3.1.
> > > > >
> > > > > 6. What else can I look at to determine why the redirector won't
> >load?
> > > > >
> > > > > This seems to be giving alot of people headaches.  It would
> > > > > be nice if some
> > > > > who was 

Cookie problem max age problem

2000-12-05 Thread Pratik Machchar

Hi all
I set a cookie with certain maxAge() say 200.
now on logout I wan't to remove that cookie I set  maxAge(0) then also this
cookis is not removed
I am using tomcat3.2 final Release and IE 5 with windows 2000 standalon
tomcat server
same problem appears with
tomcat3.2 final Release IE5 and linux 7.0  apache.
Actually when I see that cookie on other page through request.getCookies();
I can get that cookie but when I try to see cookie.getMaxAge() it returns -1

any help
Thanks in advance






Re: new user : modules mod_jk.so and mod_rewrite.so

2000-12-05 Thread Robert B. Easter

On Tuesday 05 December 2000 04:18, christophe grosjean wrote:
> Hi,
>
> How can I get modules such as mod_jk.so (is this one better than
> mod_jserv.so?)
> and mod_rewrite.so.  ?
>
> Christophe

For mod_rewrite:

cd into the "src" directory of apache.
Edit the file "Configuration" and uncomment the line for mod_rewrite.
Run ./configure with --enable-module=rewrite
This builds mod_rewrite into apache.

http://www.engelschall.com/pw/apache/rewriteguide/


For mod_jk, this comes with the tomcat source:

cd src/native/apache1.3
cp Makefile.linux Makefile
Edit Makefile and make sure the apxs path is right and whatever else.
Then, run "make"
Copy the mod_jk.so file to $APACHE_HOME/libexec
You'll have to read the tomcat docs to setup httpd.conf to load the mod_jk.so 
and other stuff that is in $TOMCAT_HOME/conf/mod_jk.conf.  It says that you 
just: Include $TOMCAT_HOME/conf/mod_jk.conf into httpd.conf, but you'll want 
to edit mod_jk.conf and add:

(after LoadModule jk_module libexec/mod_jk.so )
AddModule mod_jk.c

... rest of file



-- 
 Robert B. Easter  [EMAIL PROTECTED] -
- CompTechNews Message Board   http://www.comptechnews.com/ -
- CompTechServ Tech Services   http://www.comptechserv.com/ -
-- http://www.comptechnews.com/~reaster/ 



Re: Using JAR files

2000-12-05 Thread Michael H. La Budde

At 12/5/2000 10:15 AM +0100, you wrote:
>I believe you have to put the full path of the jar-file including the 
>filename in classpath..and not just the path  to the directory where 
>the jar-file is located

Nope. Simply put the jar file in the WEB-INF/lib directory (e.g. 
/webapps/webappname/WEB-INF/lib/worthyorg.jar  and tomcat 
will setup the classpath for your webapp to include it (and all jars you 
put there)

HTH,

Mike


>THG
>
>- Original Message -
>From: "Keith Schacht" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, December 05, 2000 5:38 AM
>Subject: Using JAR files
>
>
> > I have a servlet that references a bunch of classes that are all packaged
> > nicely in a JAR file.  I put this JAR file into the
> > /webappname/WEB-INF/servlet directory but I get:
> >
> > 500 .NoClassDefFoundError: org/worthy/utilities/worthyConst
> >
> > (the org/worthy/utitilities/worthyConst structure is all within the JAR
> > file).  I realize I could probably just recreate the directory structure
> > from within the WEB-INF/servlet directory and put each of the class 
> files in
> > its respective location but I would really rather use the JAR file.
> >
> > I tried adding this directory /webappname/WEB-INF/servlet to classpath and
> > restarting (even though it was recently mentioned you should not do 
> it), but
> > that didn't work.  I tried just copying the JAR file straight to
> > /tomcat/lib/ and this time when I restarted I did indeed see it listed in
> > the classpath startup message.. but still go the same 500 error.
> >
> > Any ideas?
> >
> >
> > Keith Schacht
> > http://www.pididdle.com
> >
> > - Original Message -
> > From: "Bill Long" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, December 04, 2000 4:08 PM
> > Subject: Re: Tomcat - mod_jk - Configuration : Need some help please
> >
> >
> > > *This message was transferred with a trial version of CommuniGate(tm) 
> Pro*
> > > you are correct.
> > >
> > > now..*sigh* i looked at the build.xml , wrapper.properties,
> > > tomcat.properties, server.xml and a bunch of other files.  I saw lots of
> > > places to set the classpath, but none of them worked.
> > >
> > > I can set the classpath in an environment variable, but do you know where
> > to
> > > set the classpath for the tomcat server, or can you explicitly set the
> > > classpath in the configuration files? common sense would indicate you 
> can,
> > > but I cant find any info on it.  meanwhile, i'll head back to the 
> docs for
> > > installing tomcat.
> > >
> > > thanks for you help, i think i'm almost there.
> > >
> > > - Original Message -
> > > From: "Mike La Budde" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Monday, December 04, 2000 1:29 PM
> > > Subject: Re: Tomcat - mod_jk - Configuration : Need some help please
> > >
> > >
> > > > *This message was transferred with a trial version of CommuniGate(tm)
> > Pro*
> > > > After starting tomcat look at the output in your console window to
> > verify
> > > > the classpath. I'll bet you won't see
> > > >
> > > > /lib/tools.jar
> > > >
> > > > (and it must be there to work)
> > > >
> > > > HTH,
> > > >
> > > > Mike
> > > >
> > > > At 12/04/2000 01:02 PM -0800, you wrote:
> > > > >*This message was transferred with a trial version of CommuniGate(tm)
> > > Pro*
> > > > >Hi folks,
> > > > >
> > > > >Okay, I'm kind of new to this java stuff, so please bear with me. I
> > think
> > > > >I have it almost done but have reached a stumbling block which I 
> cannot
> > > > >resolve by searching through the archives.  I'm sure its a simple one,
> > > but
> > > > >It's got me stumped.
> > > > >
> > > > >FOR---
> > > > >Solaris 2.6
> > > > >Apache 1.3.12
> > > > >Tomcat 3.2
> > > > >mod_jk
> > > > >JDK 1.3
> > > > >
> > > > >I have my apache set up to use virtual hosts.
> > > > >I have the tomcat set up pretty much stock, with the exception that I
> > > > >added ajp13(i'm not using it in my apache configuration though) and I
> > > > >commented out the /examples, /admin, etc. now all i have in my
> > server.xml
> > > > >file for context is
> > > > >
> > > > >  > > > >  docBase ="/export/home/cci/public_html/java"
> > > > >  croseContext="true"
> > > > >  debug="0"
> > > > >  reloadable="true">
> > > > > 
> > > > >
> > > > >then in my httpd.conf file i have
> > > > >
> > > > > ServerAdmin [EMAIL PROTECTED]
> > > > > DocumentRoot /export/home/cci/public_html
> > > > > ServerName my.domain.com
> > > > > DirectoryIndex index.cgi index.pl index.html index.shtml
> > > > > 
> > > > >   Options All
> > > > > 
> > > > >
> > > > > 
> > > > >   Options All
> > > > > 
> > > > > AddHandler cgi-script .cgi
> > > > > AddHandler cgi-script .pl
> > > > > ErrorLog /export/home/cci/public_html/logs/error_log
> > > > >

Re: Error 404

2000-12-05 Thread Adrian Stabiszewski

Hi!

Could you send your server.xml file? Are you using tomcat directly or in combination 
with
another web server (apache)?
Where are your files located?

> alter.jsp is there in on the server.
is alter.jsp in the same directory as new.jsp??

send your start.html file too!

bye, adrian.


- Original Message -
From: "nitin mundada" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 05, 2000 11:39 AM
Subject: Error 404


> Hi all
> I am facing a strange problem. I am getting error 404:
> File not Found, though file is there.
> I'll explain -- I want to connect to new.jsp, and
> alter.jsp through start.html. when i click on link for
> new.jsp, it works perfectly, but when i link on link
> for alter.jsp, it shows Error 404.
>
> I tried with other combinations also, like uploading
> new.jsp(as this link was working properly) by other
> name like new1.jsp, and trying to access it, it again
> fails.
>
> i.e. i am able to access only new.jsp and no other
> file
>
>
> Thank u in advance
> Nitin
>
> 
> Do You Yahoo!?
> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
> or your free @yahoo.ie address at http://mail.yahoo.ie




Re: web.xml question

2000-12-05 Thread Adrian Stabiszewski

The Tomcat FAQ has only one answer to your question about the servlets as start pages:

  Can a servlet take the place of an index page? In other words, can
http:/myserver.mydomain.com/ execute a servlet rather than serve an index page? mhempel
Last Mod: 2000-04-06 15:25:26.0
  Of course it can. There are two ways to do this. Make the index page of the site
simply redirect to your Servlet or you can use mod_rewrite within Apache.



web.xml
I dont think that you have to register your servlets there. I havn't changed this file 
and
my servlets work fine.





- Original Message -
From: "Vanja Vlaski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 05, 2000 1:17 PM
Subject: web.xml question


> In web.xml do I have to register all the servlets I will use or only first
> one that is being invoked?
> Also how do I call servlet first instead of index.html?
>
>
> Thanks
>
> >From: "G.Nagarajan" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: <[EMAIL PROTECTED]>
> >Subject: RE: tools for Stress Testing
> >Date: Tue, 5 Dec 2000 11:29:55 +0100
> >
> >tools for Stress TestingHi,
> >Try OpenSta.org, MS web stress tool, www.rswsoftware.com.
> >
> >These should help. I am using OpenSta for testing my jsps and servlets and
> >it takes care of handling
> >cookies.
> >
> >Cheers,
> >Nagaraj.
> >   -Original Message-
> >   From: Chris Chen [mailto:[EMAIL PROTECTED]]
> >   Sent: Monday, December 04, 2000 9:06 PM
> >   To: '[EMAIL PROTECTED]'
> >   Subject: tools for Stress Testing
> >
> >
> >   Hi all,
> >
> >I am just wondering if there is a way to do a stress testing on my
> >jsp/servlet
> >   pages even I am using the session tracking in my application.
> >
> >   for example, I have:
> >   1.jsp for user logon checking
> >   2.jsp for loading data from database
> >   3.jsp for business data calculation
> >   4.jsp for modifying data to database
> >
> >   The application works like:
> >when user passed 1.jsp, there will be a set of data in their session,
> >hold by
> >   Java data Beans, from database. Base on those data, 3.jsp will
> >performance
> >a
> >   certain business logic, then 4.jsp will write data to database.
> >
> >I want to build a set of benchmark/stress testing for all those *.jsp
> >pages.
> >   How long it will take? How's the response performance? ...
> >
> >   How could I do this? Is there any this kind of tools?
> >   By using Tomcat, how can I let tomcat know that I am in the session, and
> >performance certain data set for me?
> >
> >   Regards,
> >Chris
> >
>
> _
> Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com
>




properties

2000-12-05 Thread andreas ebbert

Hi there,
does anybody know where
to put property-files for servlets
so that tomcat finds them?
I tried to place them in the
same location as the .class-
-file but that didn´t work, any
idea´s?

regards,
andreas

---
Andreas Ebbert, Kuthstrasse 43, 51107 Koeln
e-mail: [EMAIL PROTECTED]
Fon: 0221-8701503,Fax: 0221-5345842
---





Re: properties

2000-12-05 Thread William Brogden



andreas ebbert wrote:
> 
> Hi there,
> does anybody know where
> to put property-files for servlets
> so that tomcat finds them?
> I tried to place them in the
> same location as the .class-
> -file but that didn´t work, any
> idea´s?
> 
> regards,
> andreas

If you are going to open a file, you have to use a 
fully qualified path. Use web.xml to pass an initialization
parameter to the servlet giving the absolute path to
the properties file. Here is an example:


   saynumb.au
  
com.JSPbook.Chap04.NumberSoundServ
 
basepath
   
c:\\tomcat\\webapps\\Root\\JSPbook\\Chap04\\sounds
  
 


-- 
WBB - [EMAIL PROTECTED]
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2



Apache & Tomcat running in different machine.

2000-12-05 Thread Moursli Nabil

Hello everybody,

I'm developping an Intranet project using Tomcat3.1 on Mandrake 7.1. I was
wondering if
it's possible to run Apache on different machine than Tomcat one?

This is because I just can't run Apache with Tomcat on Linux. Now I have
Tomcat3.1 Running
on standAlone version.

Also if anyone could let me know if he's using Tomcat + Apache on Linux (and
everythingh is fine!)
wich version and configuration he's using.

Thanx in advance, this is realy urgent! I have to release the project in a
week!!!


Nabil.




Re: cgi-bin

2000-12-05 Thread Peter Choe

you don't put the .exe files anywhere.  you would put the .class files
or the .jsp files in tomcat/webapps/your_application_directory

> Pierre Roy wrote:
> 
> Hi there,
> 
> I'm running Tomcat on Windows 2000.  When I try to load
> http://localhost:8080/cgi-bin I get a "page not found message" from my
> browser.  Could someone tell me where I should put my .exe files, and
> how I should configure Tomcat to find them?
> 
> Thanks in advance,
> Pierre



Re: properties

2000-12-05 Thread Piotr Lipski

Hi,

I think You can use ResourceBundle.getBundle(YourPackageName.YourClassName)
to get access to properies file (it should be named
YourClassName.properties).


Piotr Lipski

- Original Message -
From: "William Brogden" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 05, 2000 3:00 PM
Subject: Re: properties


:
:
: andreas ebbert wrote:
: >
: > Hi there,
: > does anybody know where
: > to put property-files for servlets
: > so that tomcat finds them?
: > I tried to place them in the
: > same location as the .class-
: > -file but that didn´t work, any
: > idea´s?
: >
: > regards,
: > andreas
:
: If you are going to open a file, you have to use a
: fully qualified path. Use web.xml to pass an initialization
: parameter to the servlet giving the absolute path to
: the properties file. Here is an example:
:
: 
:saynumb.au
:
: com.JSPbook.Chap04.NumberSoundServ
:  
: basepath
:
:
c:\\tomcat\\webapps\\Root\\JSPbook\\Chap04\\sounds
: 
: 
:
:
: --
: WBB - [EMAIL PROTECTED]
: Author of Java Developer's Guide to Servlets and JSP
: ISBN 0-7821-2809-2




RE: properties

2000-12-05 Thread Servais, Pascal-Eric

If you put it winthin the same directory than the servlet, you can access it
the following way :

public class myServlet extends HttpServlet {

boolean debug = true;

/** Variable hoplding properties objecf */
Properties properties = null;

/**
 * Trying to access properties file
 */
public void init( ServletConfig config ) throws ServletException {
super.init(config);
String propertiesFile =
config.getInitParameter("properties");
if ( propertiesFile == null ) {
//> File name not defined within the web.xml
configuration file...
propertiesFile = new String(
this.getClass().getName() );
propertiesFile += ".properties";
}
if ( debug ) System.out.println( "Properties file : " +
propertiesFile );
try {
InputStream inputStream =
myServlet.class.getResourceAsStream( propertiesFile );
properties = new Properties();
properties.load( inputStream );
inputStream.close();
} catch ( IOException ioe ) {
this.getServletContext().log( "Unable to read
property file", ioe );
throw new ServletException( ioe.getMessage() );
}
}

} // End class

Hope that will help ! =;-)

Pascal-Eric Servais ( http://pages.infinit.net/denethor ) 
Cognicase ( division Web )
--- 
PGP Fingerprint : 8D0C FB66 CAF0 B9B3 E925  8D2E 7BDB 1D47 DC0B 4AEA 
"Engagez-vous qu'ils disaient, vous allez voir du pays...", Anonyme 



#> -Original Message-
#> From: Piotr Lipski [mailto:[EMAIL PROTECTED]]
#> Sent: Tuesday, December 05, 2000 9:11 AM
#> To: [EMAIL PROTECTED]
#> Subject: Re: properties
#> 
#> 
#> Hi,
#> 
#> I think You can use 
#> ResourceBundle.getBundle(YourPackageName.YourClassName)
#> to get access to properies file (it should be named
#> YourClassName.properties).
#> 
#> 
#> Piotr Lipski
#> 
#> - Original Message -
#> From: "William Brogden" <[EMAIL PROTECTED]>
#> To: <[EMAIL PROTECTED]>
#> Sent: Tuesday, December 05, 2000 3:00 PM
#> Subject: Re: properties
#> 
#> 
#> :
#> :
#> : andreas ebbert wrote:
#> : >
#> : > Hi there,
#> : > does anybody know where
#> : > to put property-files for servlets
#> : > so that tomcat finds them?
#> : > I tried to place them in the
#> : > same location as the .class-
#> : > -file but that didn´t work, any
#> : > idea´s?
#> : >
#> : > regards,
#> : > andreas
#> :
#> : If you are going to open a file, you have to use a
#> : fully qualified path. Use web.xml to pass an initialization
#> : parameter to the servlet giving the absolute path to
#> : the properties file. Here is an example:
#> :
#> : 
#> :saynumb.au
#> :
#> : com.JSPbook.Chap04.NumberSoundServ
#> :  
#> : basepath
#> :
#> :
#> c:\\tomcat\\webapps\\Root\\JSPbook\\Chap04\\soun
#> ds >
#> : 
#> : 
#> :
#> :
#> : --
#> : WBB - [EMAIL PROTECTED]
#> : Author of Java Developer's Guide to Servlets and JSP
#> : ISBN 0-7821-2809-2
#> 



RE: Apache & Tomcat running in different machine.

2000-12-05 Thread Stubenrauch,Andreas

Yes you can run them on different machines and connect them via ajp
check out the docs about mod_jk.

We are running tomcat 3.2 with Apache 3.1.12 on a Linux box (Kernel
2.2.16-SMP)
(more exactly: 3.2beta5 as the final does not work for our config)

> -Original Message-
> From: Moursli Nabil [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 05, 2000 3:08 PM
> To: [EMAIL PROTECTED]
> Subject: Apache & Tomcat running in different machine.
> 
> 
> Hello everybody,
> 
> I'm developping an Intranet project using Tomcat3.1 on 
> Mandrake 7.1. I was
> wondering if
> it's possible to run Apache on different machine than Tomcat one?
> 
> This is because I just can't run Apache with Tomcat on Linux. 
> Now I have
> Tomcat3.1 Running
> on standAlone version.
> 
> Also if anyone could let me know if he's using Tomcat + 
> Apache on Linux (and
> everythingh is fine!)
> wich version and configuration he's using.
> 
> Thanx in advance, this is realy urgent! I have to release the 
> project in a
> week!!!
> 
> 
> Nabil.
> 



JSP page not reloading

2000-12-05 Thread Sandhya MS

Hi,
We are using Apache Web Server with Tomcat JSP engine. We are facing a
problem. If we edit a jsp page, it does not get reflected on the browser. We
have to restart tomcat to see the changed output. In server.xml we have set
'reloadable=true' for our context. Is there any other setting which we have
missed?
Also, we have tomcat installed on another machine. We donot have the above
problem on this machine. If we edit a jsp page, when we refresh it in the
browser, the new output comes. The configuration files are the same for both
the machines.
Ideas Anybody??

Regards,
Sandhya




Re: cgi-bin

2000-12-05 Thread Pierre Roy

I have installed a Web search engine (namely Subject Search Server v1.1).
This software directs search requests to
http://localhost:8080/cgi-bin/SSServer.exe
Therefore there is no .class nor .jsp file to be accessed !

- Original Message -
From: "Peter Choe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 05, 2000 3:11 PM
Subject: Re: cgi-bin


> you don't put the .exe files anywhere.  you would put the .class files
> or the .jsp files in tomcat/webapps/your_application_directory
>
> > Pierre Roy wrote:
> >
> > Hi there,
> >
> > I'm running Tomcat on Windows 2000.  When I try to load
> > http://localhost:8080/cgi-bin I get a "page not found message" from my
> > browser.  Could someone tell me where I should put my .exe files, and
> > how I should configure Tomcat to find them?
> >
> > Thanks in advance,
> > Pierre




Re: properties

2000-12-05 Thread Jon Skeet

[In web.xml]

> c:\\tomcat\\webapps\\Root\\JSPbook\\Chap04\\sounds

Surely those backslashes don't need to be escaped, do they? XML doesn't
care about \ and I don't believe Java itself does either.

If this were a properties file it would be a different matter, but I'm
pretty sure you can just use

c:\tomcat\webapps\Root\JSPbook\Chap04\sounds

Anyone have more info?

Jon



Re: properties

2000-12-05 Thread Matt Goss

andreas,
place your properties file in the same location as your classes and try the
following... I've been doing it this way for a while now with no
problems...

InputStream is = getClass().getResourceAsStream("/rollout.properties");
  Properties props = new Properties();
  try
  {
 props.load(is);
  }
  catch (Exception e)
  {
 logger.log("Can't read the properties file. " +
"Make sure rollout.properties is in the CLASSPATH",
LogWriter.ERROR);
 return;
  }

Matt Goss

andreas ebbert wrote:

> Hi there,
> does anybody know where
> to put property-files for servlets
> so that tomcat finds them?
> I tried to place them in the
> same location as the .class-
> -file but that didn´t work, any
> idea´s?
>
> regards,
> andreas
>
> ---
> Andreas Ebbert, Kuthstrasse 43, 51107 Koeln
> e-mail: [EMAIL PROTECTED]
> Fon: 0221-8701503,Fax: 0221-5345842
> ---


begin:vcard 
n:Goss;Matt
tel;fax:919-657-1501
tel;work:919-657-1432
x-mozilla-html:FALSE
url:www.rtci.com
org:RTCI;Custom Solutions
adr:;;201 Shannon Oaks Circle;Cary;NC;27511;US
version:2.1
email;internet:[EMAIL PROTECTED]
title:Web Developer
fn:Matt
end:vcard



Re: Cookie problem max age problem

2000-12-05 Thread Kief Morris

Pratik Machchar typed the following on 05:57 PM 12/5/2000 +0530
>I set a cookie with certain maxAge() say 200.
>now on logout I wan't to remove that cookie I set  maxAge(0) then also this
>cookis is not removed

Are you getting the cookie with request.getCookies() and changing its
maxAge, or creating a new cookie with the same name? I seem to recall
having a problem with IE when doing it the second way, but doing it
the first way worked.

>Actually when I see that cookie on other page through request.getCookies();
>I can get that cookie but when I try to see cookie.getMaxAge() it returns -1

There's no way for Tomcat to know what the max age was on cookies
it gets from the request: The Cookie: header in the HTTP request doesn't
contain this information, it only sends the name and value. The browser
keeps track of the expiration and simply stops sending the Cookie:
header after it passes.

Kief





Tomcat, JNI and HP-UX

2000-12-05 Thread Eric Lee (LYN) (EUS)
Title: Tomcat, JNI and HP-UX





I am using Tomcat 3.1 on HP-UX 10.20 with Java version ("HP-UX Java C.01.18.03 05/12/2000 16:31:36 hkhd02") I am attempting to use a servlet that instantiates a class that contains JNI methods and I keep getting java.lang.UnsatisfiedLinkError exceptions when these native methods are accessed. The JNI methods execute fine from the command line with Java interpreter, I also know that the servlet is loading the shared library.  There are similar postings in the mailing list archives but they are without response.  If anyone has any comments, I sure would appreciate them.

Many Thanks, 
Eric Lee





RES: importing javax.mail.* from within JSP servlets

2000-12-05 Thread Jose Euclides da Silva Junior - DIGR.O

Hi Craiq,
what do you about using java mail api to upload a multipart-form/data into a
JSP or servlet?
Thanks Craiq 

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 
[EMAIL PROTECTED]
http://euclides.8m.com


> -Mensagem original-
> De:   Craig R. McClanahan [SMTP:[EMAIL PROTECTED]]
> Enviada em:   Segunda-feira, 27 de Novembro de 2000 21:22
> Para: [EMAIL PROTECTED]
> Assunto:  Re: importing javax.mail.* from within JSP servlets
> 
> Giorgio Brajnik wrote:
> 
> > Hi.
> >
> > I'm trying to write a jsp that imports javax.mail.* but jasper complains
> > with
> > "Package javax.mail not found in import.
> > import javax.mail.*;"
> >
> > I tried to put the i2ee.jar file almost everywhere, including
> >
> 
> What is the "i2ee.jar" file, and what does it contain?  (You can find out,
> if
> you're curious, by typing the following command):
> 
> jar tvf i2ee.jar
> 
> You need the "mail.jar" file from the JavaMail release, and the
> "activation.jar"
> from the Java Activation Framework release, on your classpath.  You can
> get
> these releases from .
> 
> Craig McClanahan
> 



CACHE

2000-12-05 Thread Adress, David S.

I was wondering if anyone can help. I have tomcat server 3.1 running a
servlet and jsp page.
I have a servlet calling a jsp page with the redirect method. I've put the
required meta tags on the jsp page  so the page should not cache. However,
the page is still caching. In order for my page to display the proper
results I need to have my browser reload. Are there any setups that need to
be done to Tomcat or do I need to have a web server running also
 
Thanks



REVERSE the AGING PROCESS 10-20 Years!

2000-12-05 Thread Younger


HAVE YOU HEARD OF HUMAN GROWTH HORMONE (HGH)???

Released by your own pituitary gland, HGH starts
declining in your 20s, even more in your 30s and 40s,
eventually resulting in the shrinkage of major
organs-plus all other symptoms related to old age.

THIS CAN NOW BE REVERSED!!! IN THOUSANDS OF CLINICAL
STUDIES, HGH HAS BEEN SHOWN TO ACCOMPLISH THE FOLLOWING:

* Reduce Body Fat Without Dieting
   Build Lean Muscle WITHOUT EXERCISE!

* Enhance Sexual Performance

* Remove Wrinkles and Cellulite

* Lower Blood Pressure and improve Cholesterol Profile

* Improve Sleep, Vision and Memory

* Restore Hair Color and Growth

* Strengthen the Immune System

* Increase Energy and Cardiac Output

* Turn back your body's Biological Time Clock 10-20
   years in 6 months of usage !!!

You don't have to spend thousands of dollars on shots.
You don't have to spend the $139.00 per bottle that
HGH is selling for at some Clinics in the
United States.

For the next 30 Days, you can obtain a complete
one-month supply of our HGH releaser for our special
"New Customers" price of just $69.95 plus $6.00
shipping and handling. To ensure a constant supply and
to SAVE EVEN MORE, you can order with confidence
3 bottles of HGH and GET 1 FREE - that's just $209.85 for
4 bottles, plus $6.00 shipping and handling.
You SAVE $69.95! ORDER TODAY!

Payment Methods

You may FAX or Postal Mail Checks, MasterCard, Visa,
& American Express payments. Money Orders
are accepted only by Postal Mail.


Step 1: Place a check by your desired quanity.


__ 1 Bottle of HGH $69.95


__ 2 Bottles of HGH $131.90 ($65.95 a bottle)


__ 4 Bottles of HGH (Buy 3 get 1 FREE. SAVE $69.95) $209.85


Please add $6 shipping and handling for any size order.
[ Total cost including shipping & handling,
1 bottle=$75.95, 2 bottles=$137.90, 4 bottles=$215.85 ]

International shipping, please add $35 for any size order
[ Total cost including shipping & handling,
1 bottle=$104.95, 2 bottles=$166.90, 4 bottles=$244.85 ]
Foreign checks are not accepted.  Credit cards & international
money orders only.

Step 2: Place a check by your desired payment method
and complete fields if necessary.


_Check or CHECK-BY-FAX [details below]


_Money Order


_American Express
Account Number__ Exp/

_Visa
Account Number__ Exp/

_MasterCard
Account Number__ Exp/


Please make your check or money order payable to
"Lion Sciences National".

Step 3: Please complete and print the following fields clearly.


Name ___


Address _


City 


State ___


Zip _


E-mail __


Signature _
[ required for check and credit card orders]



Toll Free FAX Order Line: 1-800-940-6590

If faxing in your order, please state whether you require
a fax, email, or no confirmation at all.
Allow up to one day for confirmation, if requested.
FAX orders are processed immediately.

Or, print & mail to:

Lion Sciences National
273 S. State Rd. 7  #193
Margate, FL 33068-5727


__


*CHECK BY FAX ORDERS: Complete the check as normal. Tape
the check in the area below. Below the check, clearly write
the check number, all numbers at the bottom of the check,
& your name. Tape the check below and fax the check to the
toll free FAX number above. Void the check. Our merchant
will electronically debit your account for the amount of
the check; your reference number for this transaction will
be your check number. Nothing could be safer & easier !

  TAPE CHECK BELOW
















_

This is a one time mailing: Removal is automatic and no further
contact is necessary. Please Note: HGH is not intended to
diagnose, treat, cure or prevent any disease. The FDA has not
evaluated these statements.



Re: Turning off /servlet/* mapping?

2000-12-05 Thread Thom Park

Hello,

this works for specific servlets in specific web-apps. I was curious how to turn off 
the
'magic' backwards compatability mapping
of /servlet/ in general.

To be honest, I was trying to find where this default mapping is being performed. I
would have thought if I removed the prefix= attribute from the
InvokerInterceptor in servlet.xml that would have solved the issue. but that doesn't
seem to do anything.

I understand I can craft specific servlet-mappings for each application - what about
'standalone' servlets (I.e. those not in web-apps). I can always modifiy
the ROOT/WEB-INF/web.xml to cover that case, however, If I were to turn off the
/servlet/ mapping then I wouldn't have to edit all of those web.xml
files in the web-apps ( and non-webapps).

I think what I'm asking here is whether the default mapping for any given servlet is
"http[s]://:/[webapp]/servlet/[servlet-name]"?

It seems to me that, unless I setup a url-pattern then this is the case - I'd just like
that to be verified so I can stick it in some documentation that I'm writing :-)

thanks,

Thom


"Craig R. McClanahan" wrote:

> Thom Park wrote:
>
> > I'm having Yet Another Servlet Mapping Problem.
> >
> > I'm trying to disable the /servlet/ mapping with my web-application. Here's the
> > gist of what's happening.
> >
> >  My webapp is called "songs" it get's deployed according to J2EE specs. In the
> > webapps folder there's a
> > songs folder with an html file called songs_index.html.
> >
> > in songs\WEB-INF, I put my servlet into the classes folder (and some dependent
> > jars in the lib folder).
> >
> > In web.xml I add the following:
> >
> > 
> > listSongs
> > com.music.songs.ListSongServlet
> > 
> >
>
> Add the following mapping in web.xml:
>
> 
> listSongs
> /listSongs/*
> 
>
> and the following URL will work:
>
> http://localhost:8080/songs/listSongs
>
> You don't really need to "turn off" the default mapping -- what we are doing here is
> defining a new one.  You should also know that the path used in a mapping need not
> have the same name as your servlet class.  For instance, if you change the mapping
> above to this:
>
> 
> listSongs
> /list/*
> 
>
> then the correct URL would be
>
> http://localhost:8080/songs/list
>
> instead.
>
> The rules for servlet mappings are found in the servlet API specification, which can
> be downloaded from
>
> http://java.sun.com/products/servlet/download.html
>
> Craig McClanahan




Re: properties

2000-12-05 Thread William Brogden



Jon Skeet wrote:
> 
> [In web.xml]
> 
> > c:\\tomcat\\webapps\\Root\\JSPbook\\Chap04\\sounds
> 
> Surely those backslashes don't need to be escaped, do they? XML doesn't
> care about \ and I don't believe Java itself does either.
> 
> If this were a properties file it would be a different matter, but I'm
> pretty sure you can just use
> 
> c:\tomcat\webapps\Root\JSPbook\Chap04\sounds
> 
> Anyone have more info?
> 
> Jon

As I recall, thats the way Java writes a String like that when
you do a Properties save( stream, header) method call.

-- 
WBB



INETINFO.exe on the rampage!!

2000-12-05 Thread Clifford . Okoro



When i run tomcat for awhile, INETINFO seems to just go nuclear and the only way
to stop it is to reboot. Has anybody had this problem and if so how did they
solve it?

Clifford



__


   This communication and any files transmitted with it are confidential and
   intended solely for the use of the individual or entity to whom they are
   addressed. If you have received it in error please notify the sender or
   [EMAIL PROTECTED] or telephone +44 (0)20 8868 8899. The unauthorised
   use, disclosure, copying or alteration of this message is forbidden.
   Ladbrokes Limited will not be liable for direct, special, indirect or
   consequential damage as a result of any virus being passed on, or arising
   from alteration of the contents of this message by a third party. Please note
   that in replying to this mail, you are granting the right for that reply to
   be forwarded to any other individual and to be read by a surrogate in the
   event that the intended recipient is out of the office or is no longer
   employed by the company.
   Any views expressed by an individual within this message do not necessarily
   reflect the views of the firm.






Re: cgi-bin

2000-12-05 Thread Pierre Roy

Yes, I thought one could handle cgi-bin with Tomcat. Apparently I can either
install Apache or call my .exe files from a servlet.

Thank you all for helpful information.
Pierre

- Original Message -
From: "Peter Choe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 05, 2000 3:55 PM
Subject: Re: cgi-bin


> tomcat is a servlet engine designed to handle java servlets.
>
> which are class files basically.  as far as i know, tomcat looks for the
> servlets in a specific directory, and basically handles .jsp files and
> .class files.
>
> perhaps you are looking for something else besides tomcat.
>
> Pierre Roy wrote:
> >
> > I have installed a Web search engine (namely Subject Search Server
v1.1).
> > This software directs search requests to
> > http://localhost:8080/cgi-bin/SSServer.exe
> > Therefore there is no .class nor .jsp file to be accessed !
> >
> > - Original Message -
> > From: "Peter Choe" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, December 05, 2000 3:11 PM
> > Subject: Re: cgi-bin
> >
> > > you don't put the .exe files anywhere.  you would put the .class files
> > > or the .jsp files in tomcat/webapps/your_application_directory
> > >
> > > > Pierre Roy wrote:
> > > >
> > > > Hi there,
> > > >
> > > > I'm running Tomcat on Windows 2000.  When I try to load
> > > > http://localhost:8080/cgi-bin I get a "page not found message" from
my
> > > > browser.  Could someone tell me where I should put my .exe files,
and
> > > > how I should configure Tomcat to find them?
> > > >
> > > > Thanks in advance,
> > > > Pierre




xml rendering using cocoon

2000-12-05 Thread Anand Raman

hi guys
This mail doesnt directly involve tomcat.. Please excuse.

For our content management we are storing all the xml content in a
database text column.

We are using cocoon for rendering xml documents to HTML. 

According to our original thoughts we were thinking that using XSP tags in
a temporary xml file we could pull the particular xml document from the database 
column 
and after that cocoon should render it using the supplied xsl transformation rules.
The sample temporary file is attched below

However things didnt quite happen the way we predicted as cocoon escapes
all the tag elements..

Could u please provide me with some solution to this problem..

Thanx
Anand Raman







http://www.apache.org/1999/SQL"
  xmlns:xsp="http://www.apache.org/1999/XSP/Core"
>
 

News Now

Amit Kaushik
[EMAIL PROTECTED]

request.getQueryString()

org.postgresql.Driver
jdbc:postgresql://localhost/newztoday
FOO
BAR
options
lower
yes
ID
foo_id 
select xml_story from content where news_id=(select 
max(news_id) from content)
count

 




Re: cgi-bin

2000-12-05 Thread William Brogden



Pierre Roy wrote:
> 
> I have installed a Web search engine (namely Subject Search Server v1.1).
> This software directs search requests to
> http://localhost:8080/cgi-bin/SSServer.exe
> Therefore there is no .class nor .jsp file to be accessed !
> 

If I understand you correctly, you want to be able to access
that SSServer.exe program functions from a servlet or JSP.
The way to do that is with the exec method in the java.lang.Runtime
class. This method lets you set up environment parameters
and streams to simulate the way CGI processes work.

-- 
WBB - [EMAIL PROTECTED]
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2



RE: properties

2000-12-05 Thread Servais, Pascal-Eric

I know that you can also write it with single slashes and it works :

c:/tomcat/webapps/Root/JSPbook/Chap04/sounds

Pascal-Eric Servais ( http://pages.infinit.net/denethor ) 
Cognicase ( division Web )
--- 
PGP Fingerprint : 8D0C FB66 CAF0 B9B3 E925  8D2E 7BDB 1D47 DC0B 4AEA 
"Engagez-vous qu'ils disaient, vous allez voir du pays...", Anonyme 



#> -Original Message-
#> From: William Brogden [mailto:[EMAIL PROTECTED]]
#> Sent: Tuesday, December 05, 2000 10:09 AM
#> To: [EMAIL PROTECTED]
#> Subject: Re: properties
#> 
#> 
#> 
#> 
#> Jon Skeet wrote:
#> > 
#> > [In web.xml]
#> > 
#> > > 
#> c:\\tomcat\\webapps\\Root\\JSPbook\\Chap04\\soun
#> ds
#> > 
#> > Surely those backslashes don't need to be escaped, do 
#> they? XML doesn't
#> > care about \ and I don't believe Java itself does either.
#> > 
#> > If this were a properties file it would be a different 
#> matter, but I'm
#> > pretty sure you can just use
#> > 
#> > 
#> c:\tomcat\webapps\Root\JSPbook\Chap04\sounds ram-value>
#> > 
#> > Anyone have more info?
#> > 
#> > Jon
#> 
#> As I recall, thats the way Java writes a String like that when
#> you do a Properties save( stream, header) method call.
#> 
#> -- 
#> WBB
#> 



Re: properties

2000-12-05 Thread Jon Skeet

> > > c:\\tomcat\\webapps\\Root\\JSPbook\\Chap04\\sounds
> > 
> > Surely those backslashes don't need to be escaped, do they? XML doesn't
> > care about \ and I don't believe Java itself does either.
> > 
> > If this were a properties file it would be a different matter, but I'm
> > pretty sure you can just use
> > 
> > c:\tomcat\webapps\Root\JSPbook\Chap04\sounds
> > 
> > Anyone have more info?
> 
> As I recall, thats the way Java writes a String like that when
> you do a Properties save( stream, header) method call.

Oh absolutely - but web.xml *isn't* a properties file - it's a text file
with XML escaping rather than properties escaping. Why would
Properties.save() come into it?

Jon



Re: cgi-bin

2000-12-05 Thread Peter Choe

tomcat is a servlet engine designed to handle java servlets.

which are class files basically.  as far as i know, tomcat looks for the
servlets in a specific directory, and basically handles .jsp files and
.class files.

perhaps you are looking for something else besides tomcat.

Pierre Roy wrote:
> 
> I have installed a Web search engine (namely Subject Search Server v1.1).
> This software directs search requests to
> http://localhost:8080/cgi-bin/SSServer.exe
> Therefore there is no .class nor .jsp file to be accessed !
> 
> - Original Message -
> From: "Peter Choe" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, December 05, 2000 3:11 PM
> Subject: Re: cgi-bin
> 
> > you don't put the .exe files anywhere.  you would put the .class files
> > or the .jsp files in tomcat/webapps/your_application_directory
> >
> > > Pierre Roy wrote:
> > >
> > > Hi there,
> > >
> > > I'm running Tomcat on Windows 2000.  When I try to load
> > > http://localhost:8080/cgi-bin I get a "page not found message" from my
> > > browser.  Could someone tell me where I should put my .exe files, and
> > > how I should configure Tomcat to find them?
> > >
> > > Thanks in advance,
> > > Pierre



RE: cgi-bin

2000-12-05 Thread CPC Livelink Admin


As has been mentioned earlier on this list, Tomcat does not have any CGI
capabilities.  This could, however, be implemented in a servlet.  A general
call went out to see if anyone was interested in writing one, but I did not
see any takers.

To implement what you want to work, you will need to place tomcat behind
another web server like apache or iis.  Then you can use them to do your
cgi, and tomcat to handle your servlets.

Regards,
Paul


-Original Message-
From: Pierre Roy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 05, 2000 09:24 AM
To: [EMAIL PROTECTED]
Subject: Re: cgi-bin


I have installed a Web search engine (namely Subject Search Server v1.1).
This software directs search requests to
http://localhost:8080/cgi-bin/SSServer.exe
Therefore there is no .class nor .jsp file to be accessed !

- Original Message -
From: "Peter Choe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 05, 2000 3:11 PM
Subject: Re: cgi-bin


> you don't put the .exe files anywhere.  you would put the .class files
> or the .jsp files in tomcat/webapps/your_application_directory
>
> > Pierre Roy wrote:
> >
> > Hi there,
> >
> > I'm running Tomcat on Windows 2000.  When I try to load
> > http://localhost:8080/cgi-bin I get a "page not found message" from my
> > browser.  Could someone tell me where I should put my .exe files, and
> > how I should configure Tomcat to find them?
> >
> > Thanks in advance,
> > Pierre





mod_jk and JDBC?

2000-12-05 Thread Robert Dana

I am trying to upgrade from Tomcat 3.1 and mod_jserv to Tomcat 3.2 and mod_jk. 
Everything seemed to go just fine with the installation, and I am able to run
JSPs and servlets without any problems.  With one BIG exception: the upgrade has
left me without the capacity to establish JDBC connections.  The details of my
environment are as follows:

RedHat Linux 6.2
Apache 1.3.9
mod_jk built from the Jakarta-tomcat-3.2-src distribution
Oracle 8.0.5

To illustrate the problem, I wrote a simple servlet to test if JDBC works.  I
also wrote this as a Java program, which runs from the command line without a
problem.  I know, therefore, that my database is responding normally to JDBC
calls.  As a servlet, however, the program reports that the driver is loaded and
then throws an SQLException indicating that it cannot connect to the database
server.  When Tomcat starts up, it does report that the JDBC drivers are in its
CLASSPATH and, as I said, the driver does get loaded OK, it just can't connect. 


By the way, just to keep things as simple as possible, Apache, Tomcat and Oracle
are all running on the same machine in this example.  The servlet also runs fine
under Tomcat 3.1 and mod_jserv.

Has anyone else experienced this problem?  Can anybody suggest a solution?

Robert Dana
ORC Macro International


import java.sql.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;


public class ReadFromCarmen extends HttpServlet
{
   public void doGet(HttpServletRequest req, HttpServletResponse res)
  throws ServletException, IOException
  {
   res.setContentType("text/html");
   PrintWriter out = res.getWriter();

   // The driver to load
   String driver_class = "oracle.jdbc.driver.OracleDriver";

   // The query we will execute
   String query = "select sysdate from dual";

   try
   {
// Load the JDBC driver
Class.forName(driver_class);

out.println("loaded..."); // servlet works up to this
point

// Connect to the database
// !! actual server name has been removed just for this email !!
Connection conn = DriverManager.getConnection
("jdbc:oracle:thin:@:1521:ora8",
 "scott", "tiger");

out.println("connected...");   // this never makes it to the
browser

// Create a statement
Statement stmt = conn.createStatement();

out.println("created statement...");

// Execute the query
ResultSet rset = stmt.executeQuery(query);

out.println("executed query...");

// Dump the result
while (rset.next ())

out.println(rset.getString(1));

  }
  catch (ClassNotFoundException e)
  {
out.println("Trouble loading JDBC driver...\n" + e.getMessage());
  }
  catch (SQLException e)
  {
out.println("SQL Trouble...\n " + e.getMessage());
  }
  }
}


***
This e-mail and any attached files are confidential.  If you feel you have received 
the transmission in error, please immediately notify the system  manager at ORC Macro, 
at e-mail [EMAIL PROTECTED] or by  phone at (301)572-0911.  The entire contents 
of this transmission were  scanned during the sending process using McAfee Anti-Virus 
software.  Macro assumes no responsibility or liability for undetected viruses.  All  
recipients are encouraged to further scan the message/files with their  product of 
choice prior to use.  Any viruses detected should be reported  as noted above.  Thank 
you.



Re: JSP page not reloading

2000-12-05 Thread Hussein Badakhchani

Hello, sound like a browser seeting.
Check to see if the browser you are using can be forced to search for the
lastest version of a page.
- Original Message -
From: "Sandhya MS" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 05, 2000 2:23 PM
Subject: JSP page not reloading


> Hi,
> We are using Apache Web Server with Tomcat JSP engine. We are facing a
> problem. If we edit a jsp page, it does not get reflected on the browser.
We
> have to restart tomcat to see the changed output. In server.xml we have
set
> 'reloadable=true' for our context. Is there any other setting which we
have
> missed?
> Also, we have tomcat installed on another machine. We donot have the above
> problem on this machine. If we edit a jsp page, when we refresh it in the
> browser, the new output comes. The configuration files are the same for
both
> the machines.
> Ideas Anybody??
>
> Regards,
> Sandhya
>




Class verify errors with large(?) JSP pages

2000-12-05 Thread duncan

I have seen in the archives several posts detailing the same problem.
However I could find no response. Hence I'm posting again.

OS - Win NT 4 sp6a
Suns JDK 1.2.1
Tomcat 3.2 final

The error occurs with JSP pages with a large number (250+) of taglib
actions.
The java source file is generated (500k). The class file is also
generated (90k).
When the page is accessed you get the java.lang.VerifyError.

When I compiled the generated java file myself with JDK 1.3 (default
options) I got a class file of (102k). This class file then works fine
when running Tomcat under JDK 1.2.1. However Running Tomcat under JDK
1.3 results in excessively large response times 40+ seconds (see my last
post - Performance problems with tomcat 3.2 and Sun's JDK1.3 for Win32).

Compiling manually with JDK 1.2.1 produces a class file of 90K and this
fails with the same verify error.

Does Jasper use any special compiler options ?

Could this be a memory problem that's not logged at compile time?

Any clues?

Regards
Duncan


--
-
Duncan Reade
TecSys Infopartners S.A.
4, rue Jos Felten,
L-1508 Howald
Luxembourg
[EMAIL PROTECTED]
Tel: +352 40116 3303
Fax: +352 40116 2331
-





Re: Need database recommendation

2000-12-05 Thread Rick Roberts

I recently ported a small Oracle web application to PostgreSQL.
Using Apache, Red Hat 6.2 and JDK1.2.2.
The database only used tables, views, and sequences, so it's a pretty small
test case, and the conversion went without much difficulty.  The only issues
were:

1.
In my Oracle app I was updating the views.
Can't do that in PostgreSQL.
No problem though, I just edited the table directly.

2.
Oracle has some nice text formating and date conversion functions which are not
in PostgreSQL.
I'm just living without them until I write some replacement functions.

3.
PostgreSQL Documentation is still not finished.
Don't stray to far, you will find yourself all on your own.

All in all.  I am happy with PostgreSQL.  Looking forward to seeing it mature a
little bit.  Once that happens, I expect it to shake up the industry a bit.
Much like Linux is doing now.

Rick





RE: Tomcat, JNI and HP-UX

2000-12-05 Thread Russell Freeman
Title: Tomcat, JNI and HP-UX



I have 
some tips from experience with both Win32 and AIX platforms. I'm assuming that 
HP UK C dynamic link libraries are built similar to AIX 
ones...?
 
- JDK 
1.18 uses JNI version 1.0 bindings by default. Use the -jni option with javah to 
create a JNI 1.1 style C headers. These are easier to link 
with.
- Make 
sure you use the generated header for the basis of the function implementation 
(rather than copying by hand). This will ensure you get the function header 
exactly right. 
- The 
unsatified link exception can occur for many reasons: the library is not found 
(not on the LIBPATH for instance), the method wasn't resolved (not exported or 
wrong signature in C)
 
Given 
the following java class with natic methods:
 

package  a.b;
 
public 
class c {
   public native void doSomething() 
{} 
   public native void doSomethingElse() 
{} 
}
 
You 
will need an export file with your so/shared library/DLL containing the mangled 
function prototypes, For example, in foo.exp ( the export file for the 
library foo.so ) I have: -
 
Java_a_b_c_doSomething

Java_a_b_c_doSomethingElse
 
This is the JNI 1.1 C export for the above 
java code.

  -Original Message-From: Eric Lee (LYN) (EUS) 
  [mailto:[EMAIL PROTECTED]]Sent: 05 December 2000 
  14:45To: '[EMAIL PROTECTED]'Subject: 
  Tomcat, JNI and HP-UX
  I am using Tomcat 3.1 on HP-UX 10.20 with Java 
  version ("HP-UX Java C.01.18.03 05/12/2000 16:31:36 hkhd02") I am attempting 
  to use a servlet that instantiates a class that contains JNI methods and I 
  keep getting java.lang.UnsatisfiedLinkError exceptions when these native 
  methods are accessed. The JNI methods execute fine from the command line with 
  Java interpreter, I also know that the servlet is loading the shared 
  library.  There are similar postings in the mailing list archives but 
  they are without response.  If anyone has any comments, I sure would 
  appreciate them.
  Many Thanks, 
  Eric Lee 



IE & Netscape

2000-12-05 Thread Adress, David S.

I have tomcat running and I have a jsp page. The page works fine in IE but
in Netscape I see the actual html code ex:  etc...

Any ideas ?



Re: container managed authentication - how?

2000-12-05 Thread Christian Sell

> try the example security contexts, so you can see how it works.
> the interceptor in the server.xml you need to activate is clearly
commented
> in the file.

the web.xml looks just as mine. Strange thing is also, that I have this same
webapp (in fact from the very same directory) running under Orion and JRun,
and authentication works as expected. Only Tomcat lets me access all
protected pages without saying anything.

>tomcat needs to be responisble for security, so the easiest
> way to test it is to go through port 8080.

thats what I am doing

> the tomcat-users file is also clearly commented.

huh?? I dont see a single comment

> look for these lines in server.xml:
> (i have increased the debug level to see what happens)

here are the respective lines from my server.xml, which have been there all
the time:







thanks for your help, anyway
Christian




I cannot get to work

2000-12-05 Thread Catherine Jung

Hi, I've searched the archives, and found many people saying that they've
had a problem with this, (and a few saying they haven't), but no message
with a definitive answer.

I'm running Tomcat 3.2 Final (but also happens with b7) on Solaris 

If I use an  tag with a valid path for an erro rpage to
display, Tomcat seems to repeatedly call that page until it gets a stack
overflow. If I put an invalid path to an error page, this doesn't happen
(I just get a 404 response with null returned), but obviously I still
don't get an error page. If I try to get it to display the error page
based on an  rather than an  I get the same problem

Can one of the people who got this to work please send me a listing of a
war file and the web.xml file that work?

This part of my web.xml is causing the problem:


404
/error/error.html


error.html is in the war file under the error directory. (although I've
tried putting it in various other places

Grateful for any help

Catherine.





jsp engine failing to find sun.tools.javac.Main...

2000-12-05 Thread Tony Dean

I downloaded jakarta-tomcat 3.2.  I have no problems running a servlet.  However, when 
the jsp-engine tries to compile a jsp (sample.jsp) located in the examples context, I 
get a NoClassDefFoundError.  I can't run any jsp, even the jakarta-tomcat supplied 
jsps.  sun.tools.javac.Main resides in my jdk\lib\tools.jar and from the 
jakarta-tomcat engine log, you can see that this jar file is included in the classpath.

 <<...OLE_Obj...>> 

Also, I am using jdk1.3.0_01.
Here is the actual error message that I receive.

Error: 500
Location: /examples/jsp/AppDevStudio/sample.jsp
Internal Servlet Error:
javax.servlet.ServletException: sun/tools/javac/Main
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:390)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)
at org.apache.tomcat.core.Handler.service(Handler.java:263)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:786)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:732)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
Root cause: 
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:453)
at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:424)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:382)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)
at org.apache.tomcat.core.Handler.service(Handler.java:263)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:786)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:732)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

Any clues to what's going on would be greatly appreciated.

Tony Dean
SAS Institute Inc.
The Power to Know
Sr. Systems Developer
Distributed Technologies
(919)677-8000 x6704
[EMAIL PROTECTED]




Re: Class verify errors with large(?) JSP pages

2000-12-05 Thread Jon Skeet

> I have seen in the archives several posts detailing the same problem.
> However I could find no response. Hence I'm posting again.
> 
> OS - Win NT 4 sp6a
> Suns JDK 1.2.1
> Tomcat 3.2 final
> 
> The error occurs with JSP pages with a large number (250+) of taglib
> actions.
> The java source file is generated (500k). The class file is also
> generated (90k).
> When the page is accessed you get the java.lang.VerifyError.

My guess is that this could be something to do with methods not being able
to contain more than 64K of code. How much of the generated source file
is in one method?

Jon



RE: Tomcat, JNI and HP-UX

2000-12-05 Thread Russell Freeman

I have some tips from experience with both Win32 and AIX platforms. I'm
assuming that HP UK C dynamic link libraries are built similar to AIX
ones...?

- JDK 1.18 uses JNI version 1.0 bindings by default. Use the -jni option
with javah to create a JNI 1.1 style C headers. These are easier to link
with.
- Make sure you use the generated header for the basis of the function
implementation (rather than copying by hand). This will ensure you get the
function header exactly right. 
- The unsatified link exception can occur for many reasons: the library is
not found (not on the LIBPATH for instance), the method wasn't resolved (not
exported or wrong signature in C)
 
Given the following java class with natic methods:
 
package  a.b;
 
public class c {
   public native void doSomething() {} 
   public native void doSomethingElse() {} 
}
 
You will need an export file with your so/shared library/DLL containing the
mangled function prototypes, For example, in foo.exp ( the export file for
the library foo.so ) I have: -
 
Java_a_b_c_doSomething
Java_a_b_c_doSomethingElse
 
This is the JNI 1.1 C export for the above java code.



RE: IE & Netscape

2000-12-05 Thread Eric Hartmann

You may configure Apache to send the content as html not text, change the
line "DefaultType ..." to "DefaultType text/html".

Eric

-Original Message-
From: Adress, David S. [mailto:[EMAIL PROTECTED]]
Sent: mardi 5 décembre 2000 16:59
To: [EMAIL PROTECTED]
Subject: IE & Netscape


I have tomcat running and I have a jsp page. The page works fine in IE but
in Netscape I see the actual html code ex:  etc...

Any ideas ?




Problem running tomcat with Apache

2000-12-05 Thread Luis Luévano



Hi:
 
    I have an issue running tomcat 
with Apache. Tomcat itself works fine, but with Apache only the servlets 
examples don't work (and any servlet). The following error occur:
 
Error: 500
 
Location: 
/examples/servlet/HelloWorldExample
 
Internal Servlet 
Error:
 
java.lang.NullPointerException    
at 
java.util.Hashtable.get(Hashtable.java:320)    
at 
org.apache.tomcat.request.SimpleMapper.getPathMatch(SimpleMapper.java:352)    
at 
org.apache.tomcat.request.SimpleMapper.findContainer(SimpleMapper.java:239)    
at 
org.apache.tomcat.request.SimpleMapper.requestMap(SimpleMapper.java:188)    
at 
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:594)    
at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:552)    
at 
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:156)    
at 
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)    
at java.lang.Thread.run(Thread.java:484)
 
    I have a Win98 machine with 
Apache 1.3.12 and tomcat 3.1. I appreciate any help.
 
Thanks.
 
    Luis 
Luévano


FW: Tomcat, JSP and Cache

2000-12-05 Thread Adress, David S.

I was wondering if anyone can help. I have tomcat server 3.1 running a
servlet and jsp page.
I have a servlet calling a jsp page with the redirect method. I've put the
required meta tags on the jsp page  so the page should not cache. However,
the page is still caching. In order for my page to display the proper
results I need to have my browser reload. Are there any setups that need to
be done to Tomcat or do I need to have a web server running also
 
Thanks

-Original Message-
From: Pier P. Fumagalli [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 04, 2000 3:49 PM
To: Adress, David S.; '[EMAIL PROTECTED]'
Subject: Re: Tomcat, JSP and Cache


Adress, David S. <[EMAIL PROTECTED]> wrote:
> 
> I was wondering if you can help.

Nope, I'm sorry... You'd better contact the Tomcat USERS mailing list. Check
out 

Pier

> I have tomcat server running a jsp page.
> I've put the required meta tags so the page should not cache. However, the
> page is still caching. In order for my page to display the proper results
I
> need to have my browser reload. Are there any setups that need to be done
to
> Tomcat ???
> 
> Thanks
> 
-- 
Pier P. Fumagalli  Apache Software Foundation  

Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur,
adipisci velit... (Cicero: "De Finibus" 1.10.32)




RE: Apache & Tomcat running in different machine.

2000-12-05 Thread Dave Fox

Andreas,

I've been trying in vain to get this to work in my environment - Could you
share your mod_jk.conf file?

Thanks,
Dave

-Original Message-
From: Stubenrauch,Andreas [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 05, 2000 7:24 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Apache & Tomcat running in different machine.


Yes you can run them on different machines and connect them via ajp
check out the docs about mod_jk.

We are running tomcat 3.2 with Apache 3.1.12 on a Linux box (Kernel
2.2.16-SMP)
(more exactly: 3.2beta5 as the final does not work for our config)

> -Original Message-
> From: Moursli Nabil [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 05, 2000 3:08 PM
> To: [EMAIL PROTECTED]
> Subject: Apache & Tomcat running in different machine.
>
>
> Hello everybody,
>
> I'm developping an Intranet project using Tomcat3.1 on
> Mandrake 7.1. I was
> wondering if
> it's possible to run Apache on different machine than Tomcat one?
>
> This is because I just can't run Apache with Tomcat on Linux.
> Now I have
> Tomcat3.1 Running
> on standAlone version.
>
> Also if anyone could let me know if he's using Tomcat +
> Apache on Linux (and
> everythingh is fine!)
> wich version and configuration he's using.
>
> Thanx in advance, this is realy urgent! I have to release the
> project in a
> week!!!
>
>
> Nabil.
>




Re: jsp engine failing to find sun.tools.javac.Main...

2000-12-05 Thread Trevor Little

Looks like something might be wrong with your CLASSPATH... take a look
at that


Tony Dean wrote:
> 
> I downloaded jakarta-tomcat 3.2.  I have no problems running a servlet.  However, 
>when the jsp-engine tries to compile a jsp (sample.jsp) located in the examples 
>context, I get a NoClassDefFoundError.  I can't run any jsp, even the jakarta-tomcat 
>supplied jsps.  sun.tools.javac.Main resides in my jdk\lib\tools.jar and from the 
>jakarta-tomcat engine log, you can see that this jar file is included in the 
>classpath.
> 
>  <<...OLE_Obj...>>
> 
> Also, I am using jdk1.3.0_01.
> Here is the actual error message that I receive.
> 
> Error: 500
> Location: /examples/jsp/AppDevStudio/sample.jsp
> Internal Servlet Error:
> javax.servlet.ServletException: sun/tools/javac/Main
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:390)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)
> at org.apache.tomcat.core.Handler.service(Handler.java:263)
> at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
> at 
>org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:786)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:732)
> at 
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
> at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
> at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> at java.lang.Thread.run(Thread.java:484)
> Root cause:
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
> at 
>org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
> at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:453)
> at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
> at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:424)
> at 
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152)
> at 
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:382)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)
> at org.apache.tomcat.core.Handler.service(Handler.java:263)
> at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
> at 
>org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:786)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:732)
> at 
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
> at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
> at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> at java.lang.Thread.run(Thread.java:484)
> 
> Any clues to what's going on would be greatly appreciated.
> 
> Tony Dean
> SAS Institute Inc.
> The Power to Know
> Sr. Systems Developer
> Distributed Technologies
> (919)677-8000 x6704
> [EMAIL PROTECTED]



RE: OJsp: can not compile Jsp files

2000-12-05 Thread Panagiotis Konstantinidis
Title: RE: OJsp: can not compile Jsp files





JServ does not support .jsp files. It is better to use Tomcat or JRun.


  Panos



> -Original Message-
> From: Antonio Trigo [mailto:[EMAIL PROTECTED]]
> Sent: 05 December 2000 16:36
> To: Tomcat-User (E-mail)
> Subject: OJsp: can not compile Jsp files
> 
> 
> I am using the Ojsp from Oracle.
> The Apache JServ 1.1 works fine with servlets, but we can not 
> compile jsp
> files.
> Whenever I try to see a xxx.jsp page I allways see the code 
> and note the
> compiled
> page.
> 
> Any clues ??
> 
> 
> Thanks in advanced.
> 
> 
> 





Additional Context

2000-12-05 Thread Tyrone Showers
I have successfully installed tomcat as an out-ot-process server.  I can view the examples directory and execute the examples.   My problem is in adding additional context.   I have followed the instrunctions below.   1. Adding the context to Tomcat (I am not going to talk about this).  (I added the following to the Server.xml file -    Context> ) And added a directory under the webapps called tds with one file in it called index.html     2. Adding the context to the ISAPI redirector. Adding a context to the ISAPI redirector is simple, all you need to do is to edit your uriworkermap.properties and to add a line that looks like:  /context/*=worker_name Workers and their name are defined in workers.properties, by default workers.properties comes with a single pre-configured worker named "ajp12" so you can use it. As an example, if you want to add a context named "shop", the line that you should add to uriworkermap.properties will be: /shop/*=ajp12  (I added the following to the uriworkermap.properties file -  /tds/*=ajp12 ) After saving uriworkermap.properties restart IIS and it will serve the new context. (Did this and the new context was not serverd) As a new feature in Tomcat 3.2, a uriworkermap.properties-auto is automatically written each time Tomcat is started. This file includes settings for each of the contexts that Tomcat will serve during its run. Each context has settings to have Tomcat handle servlet and JSP requests, but by default static content is left to be served by IIS. Each context also has a commented out setting to have Tomcat handle all requests to the context. You can rename this file (so it won't be overwritten the next time Tomcat is started) and uncomment this setting or make other customizations. You may also use this file as is in your worker_mount_file setting.(I also changed the uriworkermap.properties-auto file to serve up all pages    # # Auto configuration for the /tds context starts. # # # The following line mounts all JSP file and the /servlet/ uri to tomcat # /tds/servlet/*=$(default.worker) /tds/*.jsp=$(default.worker) # # If you want tomcat to serve all the resources (including static) that # are part of the /tds context, uncomment the following line # /tds/*=$(default.worker) I can't get my browser to display the index.html page.  I get a 404.  What am I missing?   Tyrone ShowersEmail: mailto:[EMAIL PROTECTED]Email: mailto:[EMAIL PROTECTED]Phone: 305.278.2017Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com


Re: FW: Tomcat, JSP and Cache

2000-12-05 Thread javabettin

Create the headers through jsp as follows:

response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");

Dave

--- "Adress, David S." <[EMAIL PROTECTED]>
wrote:
> I was wondering if anyone can help. I have tomcat
> server 3.1 running a
> servlet and jsp page.
> I have a servlet calling a jsp page with the
> redirect method. I've put the
> required meta tags on the jsp page  so the page
> should not cache. However,
> the page is still caching. In order for my page to
> display the proper
> results I need to have my browser reload. Are there
> any setups that need to
> be done to Tomcat or do I need to have a web server
> running also
>  
> Thanks
> 
> -Original Message-
> From: Pier P. Fumagalli
> [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 04, 2000 3:49 PM
> To: Adress, David S.; '[EMAIL PROTECTED]'
> Subject: Re: Tomcat, JSP and Cache
> 
> 
> Adress, David S. <[EMAIL PROTECTED]> wrote:
> > 
> > I was wondering if you can help.
> 
> Nope, I'm sorry... You'd better contact the Tomcat
> USERS mailing list. Check
> out 
> 
> Pier
> 
> > I have tomcat server running a jsp page.
> > I've put the required meta tags so the page should
> not cache. However, the
> > page is still caching. In order for my page to
> display the proper results
> I
> > need to have my browser reload. Are there any
> setups that need to be done
> to
> > Tomcat ???
> > 
> > Thanks
> > 
> -- 
> Pier P. Fumagalli  Apache Software Foundation 
> 
>

> Neque porro quisquam est qui dolorem ipsum quia
> dolor sit amet, consectetur,
> adipisci velit...
> (Cicero: "De Finibus" 1.10.32)
> 


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



Re: OJsp: can not compile Jsp files

2000-12-05 Thread Olivier Tourdes

Hello,

I'm attempting to install a 3.2 version of tomcat with Apache 1.3.14.

When I try to start apache I get this:

"Starting httpd: Syntax error on line 1 of
/usr/local/apache/conf/httpd.conf:API module structure `jk_module' in file
/usr/local/apache/libexec/mod_jk.so is garbled - perhaps this is not an
Apache module DSO?"

Any ideas ?



Olivier Tourdes
E-mail: [EMAIL PROTECTED]
Site: http://www.i-tipi.fr





Re: Apache & Tomcat running in different machine.

2000-12-05 Thread Scott Jones

Hi Nabil,

> Also if anyone could let me know if he's using Tomcat + Apache on Linux
(and
> everythingh is fine!)
> wich version and configuration he's using.

I'm running Tomcat 3.2 (final) on RedHat 7.0 with Apache 1.3.12, and
everything is working great.  (and I bet that the majority of the people
using Tomcat 3.X are either running it on Linux with Apache or on NT).

I am surprised to hear that you are having trouble integrating the two
together -- what exactly is happening?

-Scott




OJsp: can not compile Jsp files

2000-12-05 Thread Antonio Trigo

I am using the Ojsp from Oracle.
The Apache JServ 1.1 works fine with servlets, but we can not compile jsp
files.
Whenever I try to see a xxx.jsp page I allways see the code and note the
compiled
page.

Any clues ??


Thanks in advanced.






Re: build script is unable to find lang object?

2000-12-05 Thread Steve Weiss

Do you have $JAVA_HOME/lib/tools.jar in your classpath somewhere?

-S

Mark Koscak wrote:

> Hi everyone,
> 
> Following on from my earlier discussion. I have installed Tomcat3.2 and 
> am running jdk1.3. I can run the example Servlets and JSP's provided.
> 
> With thanks to Setve Weiss, I have managed to compile my individual java 
> class Hello.java provided as a part of the sample application.
> 
> However now when I attempt to use the build script I get the following 
> error message. (The build.xml script has been modified for the current 
> project). I read once that Tomcat does not work well with jdk1.3 could 
> this be my problem?
> 
>  
> 
> [root@netdev vesselenq]# ./build
> 
> Couldn't find or load essential class `java/lang/Object' 
> java.lang.NoClassDefFou
> 
> ndError java/lang/Object
> 
> ./btest: line 13: 4828 Aborted (core dumped) java -classpath $C
> 
> P:$CLASSPATH org.apache.tools.ant.Main \ -Dtomcat.home=$TOMCAT_HOME "$@"
> 
> Here are some of my settings...
> 
> I have set the CLASSPATH to include
> 
> /usr/local/jdk1.3
> 
> /usr/local/jakarta-tomcat/src
> 
> /usr/local/jakarta-tomcat/lib/servlet.jar
> 
> /usr/local/jdk1.3/lib
> 
> /usr/local/jdk1.3/lib/tools.jar
> 
> The build script...
> 
> #!/bin/sh
> 
> # Identify the custom class path components we need
> 
> CP=$TOMCAT_HOME/classes:$TOMCAT_HOME/lib/ant.jar:$TOMCAT_HOME/lib/xml.jar
> 
> CP=$CP:$TOMCAT_HOME/lib/jasper.jar:$TOMCAT_HOME/lib/servlet.jar
> 
> CP=$CP:$TOMCAT_HOME/lib/webserver.jar
> 
> # Execute ANT to perform the requested build target
> 
> java -classpath $CP:$CLASSPATH org.apache.tools.ant.Main \ 
> -Dtomcat.home=$TOMCAT
> 
> _HOME "$@"
> 
> #java -classpath $CP:$CLASSPATH org.apache.tools.ant.Main
> 
> If you need any more information on any other system settings, let me 
> know and I shall provide the information.
> 
> Many thanks
> 
> Mark


-- 
"If you watch TV news, you know less about the world than if
you just drank gin straight from the bottle."  - Garrison Keillor




RE: OJsp: can not compile Jsp files

2000-12-05 Thread Antonio Trigo
Title: RE: OJsp: can not compile Jsp files



    But it 
should work with the OJsp package from Oracle.
    I can put it 
to work in Win NT but not in Unix.
How can 
I make it work in Unix.
 
Thanks 
in advanced. 

  -Original Message-From: Panagiotis Konstantinidis 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, December 05, 2000 4:56 
  PMTo: '[EMAIL PROTECTED]'Subject: RE: OJsp: 
  can not compile Jsp files
  JServ does not support .jsp files. It is better to use Tomcat 
  or JRun. 
    Panos 
  > -Original Message- > 
  From: Antonio Trigo [mailto:[EMAIL PROTECTED]] 
  > Sent: 05 December 2000 16:36 > To: Tomcat-User (E-mail) > Subject: 
  OJsp: can not compile Jsp files > > > I am using the Ojsp from 
  Oracle. > The Apache JServ 1.1 works fine with 
  servlets, but we can not > compile jsp 
  > files. > Whenever I try to 
  see a xxx.jsp page I allways see the code > and 
  note the > compiled > 
  page. > > Any clues 
  ?? > > > Thanks in advanced. > > > 


  1   2   >