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
 



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.



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







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
http://java.sun.com/products/jdbc.

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:
 
 ?xml version="1.0" encoding="ISO-8859-1"?
 
 !DOCTYPE web-app
   PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
   "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd"
 
 web-app
  servlet
   servlet-namewcfsystem/servlet-name
   display-namewcfsystem/display-name
   servlet-classcom.itsit.wcf.adaptor.WCFSystem/servlet-class
   init-param
param-namewcf.properties/param-name
param-value/wcf.properties/param-value
   /init-param
   load-on-startup1/load-on-startup
  /servlet
session-config
   session-timeout10/session-timeout
/session-config
welcome-file-list
   welcome-fileindex.html/welcome-file
   welcome-fileindex.jsp/welcome-file
/welcome-file-list
  security-constraint
   web-resource-collection
web-resource-nameWCF Administration/web-resource-name
descriptionWebComponents Administration/description
url-pattern*/WCFAdmin.jsp/url-pattern
url-pattern*/wcfsystem/url-pattern
   /web-resource-collection
   auth-constraint
descriptionAdministrators only/description
role-nameadmins/role-name
   /auth-constraint
  /security-constraint
  login-config
   auth-methodFORM/auth-method
   form-login-config
  form-login-page/content/login.html/form-login-page
  form-error-page/content/loginerr.html/form-error-page
   /form-login-config
  /login-config
  security-role
   descriptionWCF Users/description
   role-nameusers/role-name
  /security-role
  security-role
   descriptionWCF Administrators/description
   role-nameadmins/role-name
  /security-role
 /web-app

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



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

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

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




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


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:
 
  ?xml version="1.0" encoding="ISO-8859-1"?
 
  !DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd"
 
  web-app
   servlet
servlet-namewcfsystem/servlet-name
display-namewcfsystem/display-name
servlet-classcom.itsit.wcf.adaptor.WCFSystem/servlet-class
init-param
 param-namewcf.properties/param-name
 param-value/wcf.properties/param-value
/init-param
load-on-startup1/load-on-startup
   /servlet
 session-config
session-timeout10/session-timeout
 /session-config
 welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.jsp/welcome-file
 /welcome-file-list
   security-constraint
web-resource-collection
 web-resource-nameWCF Administration/web-resource-name
 descriptionWebComponents Administration/description
 url-pattern*/WCFAdmin.jsp/url-pattern
 url-pattern*/wcfsystem/url-pattern
/web-resource-collection
auth-constraint
 descriptionAdministrators only/description
 role-nameadmins/role-name
/auth-constraint
   /security-constraint
   login-config
auth-methodFORM/auth-method
form-login-config
   form-login-page/content/login.html/form-login-page
   form-error-page/content/loginerr.html/form-error-page
/form-login-config
   /login-config
   security-role
descriptionWCF Users/description
role-nameusers/role-name
   /security-role
   security-role
descriptionWCF Administrators/description
role-nameadmins/role-name
   /security-role
  /web-app

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





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:
  
   ?xml version="1.0" encoding="ISO-8859-1"?
  
   !DOCTYPE web-app
 PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
 "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd"
  
   web-app
servlet
 servlet-namewcfsystem/servlet-name
 display-namewcfsystem/display-name
 servlet-classcom.itsit.wcf.adaptor.WCFSystem/servlet-class
 init-param
  param-namewcf.properties/param-name
  param-value/wcf.properties/param-value
 /init-param
 load-on-startup1/load-on-startup
/servlet
  session-config
 session-timeout10/session-timeout
  /session-config
  welcome-file-list
 welcome-fileindex.html/welcome-file
 welcome-fileindex.jsp/welcome-file
  /welcome-file-list
security-constraint
 web-resource-collection
  web-resource-nameWCF Administration/web-resource-name
  descriptionWebComponents Administration/description
  url-pattern*/WCFAdmin.jsp/url-pattern
  url-pattern*/wcfsystem/url-pattern
 /web-resource-collection
 auth-constraint
  descriptionAdministrators only/description
  role-nameadmins/role-name
 /auth-constraint
/security-constraint
login-config
 auth-methodFORM/auth-method
 form-login-config
form-login-page/content/login.html/form-login-page
form-error-page/content/loginerr.html/form-error-page
 /form-login-config
/login-config
security-role
 descriptionWCF Users/description
 role-nameusers/role-name
/security-role
security-role
 descriptionWCF Administrators/description
 role-nameadmins/role-name
/security-role
   /web-app
 
  --
  Joakim Verona
  [EMAIL PROTECTED]
  http://www.verona.se/
 
 



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




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
IfModule mod_jk.c
... rest of file
/IfModule


-- 
 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. 
path-to-tomcat/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
   
path-to-jdk/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

 Context path="/java"
  docBase ="/export/home/cci/public_html/java"
  croseContext="true"
  debug="0"
  reloadable="true"
 /Context

then in my httpd.conf file i have
VirtualHost 111.111.111.111
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /export/home/cci/public_html
 ServerName my.domain.com
 DirectoryIndex index.cgi index.pl index.html index.shtml
 Directory /export/home/cci/public_html
   Options All
 /Directory

 Directory /export/home/cci/public_html/cgi-bin
   Options All
 /Directory
 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

Directory "/export/home/cci/public_html/java"
  Options Indexes FollowSymLinks
/Directory

   #
   # The following line mounts all JSP files and the /servlet/ uri 

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

servlet
   servlet-namesaynumb.au/servlet-name
  
servlet-classcom.JSPbook.Chap04.NumberSoundServ/servlet-class
 init-param
param-namebasepath/param-name
   
param-valuec:\\tomcat\\webapps\\Root\\JSPbook\\Chap04\\sounds/param-value
/init-param  
/servlet 


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



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: 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...
snip
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;
  }
/snip
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 http://java.sun.com/products/javamail.
 
 Craig McClanahan
 



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: properties

2000-12-05 Thread William Brogden



Jon Skeet wrote:
 
 [In web.xml]
 
  param-valuec:\\tomcat\\webapps\\Root\\JSPbook\\Chap04\\sounds/param-value
 
 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
 
 param-valuec:\tomcat\webapps\Root\JSPbook\Chap04\sounds/param-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



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: properties

2000-12-05 Thread Servais, Pascal-Eric

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

param-valuec:/tomcat/webapps/Root/JSPbook/Chap04/sounds/param-value

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]
#  
#   
# param-valuec:\\tomcat\\webapps\\Root\\JSPbook\\Chap04\\soun
# ds/param-value
#  
#  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
#  
#  
# param-valuec:\tomcat\webapps\Root\JSPbook\Chap04\sounds/pa
# 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: 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





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: htmltitle etc...

Any ideas ?



I cannot get error-page 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 error-page 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 exception-type rather than an error-code 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:

error-page
error-code404/error-code
location/error/error.html/location
/error-page

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: htmltitle 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 http://jakarta.apache.org/mail.html

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  mailto:[EMAIL PROTECTED]

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.
 
 
 





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 notin 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 filesI 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.


Apache, tomcat and mod_jk

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: IIS help

2000-12-05 Thread Christian Rauh

Every time you use the 8080, you are going directly to tomcat so you are
NOT using the IIS or whatever other web server .

Christian

Mark Franz wrote:
 
 Is this on a NT Server with IIS?  Or a workstation, 95/98 machine with PWS?
 I ahve found that with the later you have to put in the 8080.
 
 Mark G. Franz
 
 
 
 -Original Message-
 From: Karim Amin [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 04, 2000 2:28 PM
 To: [EMAIL PROTECTED]
 Subject: IIS help
 
 Here is the isapi log file output:
 
 [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
 [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
 match ajp12
 [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/dates/date.jsp] is
 a servlet url - should redirect to ajp12
 [jk_isapi_plugin.c (461)]: HttpFilterProc check if
 [/examples/jsp/dates/date.jsp] is points to the web-inf directory
 
 Here is the web server log
 192.168.25.56 - - [04/Dec/2000:17:22:58 -0500] "GET
 /examples/jsp/dates/date.jsp HTTP/1.0" 404 604
 
 It works fine if I put in 192.168.25.56:8080 then i'm able to retrieve the
 pages.  If I leave the 8080 out, then I can't.
 
 I've read the documentation.  I've read the online messages.  What else is
 there.  Please don't respond by pointing me to another page.
 
 The dll filter is installed correctly.  The green arrow is pointing up.  I
 have IIS running on port 80 and I can't shut it down.  I need IIS and I need
 to server jsp pages.  With all the messages, one would think there would be
 a huge document on the front page that says, "IIS help click here." and
 lists out all the various methods of solving this problem which is obviously
 a problem due to the number of messages.



SeedGenerator thread generated an exception

2000-12-05 Thread NESTORS Andris (AC-Creation)

Hi

I've just upgraded from Tomcat 3.1 to Tomcat 3.2.

Now, my previously working apps are giving me the following error whenever
they encounter a JSP:

java.lang.InternalError: internal error: SeedGenerator thread generated an
exception

As a test, I tried some of the examples that come with Tomcat 3.2.

NumberGuess gives SeedGenerator exception
Date works ok
Snoop gives SeedGenerator exception
ErrorPage gives SeedGenerator exception
JSP-Servlet-JSP gives SeedGenerator exception
... and so on.

All of the servlet examples work OK except the Sessions servlet example.

My environment is: Solaris 2.6, Sun JDK 1.2, Tomcat 3.2.

I have already RTFM as much as possible - searched the tomcat list archive,
jguru site, etc...

 --
 Andris Nestors
 Denning House, London
 Tel. +44 20 7878 8159
 



Connection Reset by Peer with Tomcat 3.1 on RH Linux 6.1

2000-12-05 Thread Mike Papper

Hello, I have been using Tomcat 3.1 for 4 months under Windows 2000 with 
and without IIS "integration". It seems to work fine. I just started 
using it under Red Hat Linux 6.1 (Lunux kernel 2.2.12-20) and the JVM is 
"JVM.1.3.0beta_refresh-b09".

After the tomcat has been running and apparently working just fine, I 
will (out of nowhere) receive Connection Reset by Peer messages to the 
console. I get this just running the "examples" web site provided with 
tomcat.

Any ideas? Is there a newer JVM around that will help?

Could you email me if you have any info? At [EMAIL PROTECTED]

Thanks. Mike Papper



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

2000-12-05 Thread duncan

Hi Jon,
Thanks for your response.

There probably is more than 64K of code in a single method since all the
generated code is put into the _jspService method. But if this is the
limitation why does it work when I manually compile the class using JDK1.3? -
actually producing a larger class file. (But not when Tomcat/Jasper
automatically compiles it under JDK1.3).

Is this 64K limit a built in Java limitation?

Or is it a platform specific problem?  ie. a Win32 problem.

Anyone have any suggestions to get around it?

Thanks
Duncan

Jon Skeet wrote:

  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

--
-
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: IE Netscape

2000-12-05 Thread G.Nagarajan

Hi,
Try setting the content type to "text/html". 

Regards
Nagaraj.
-Original Message-
From: Adress, David S. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 05, 2000 4:59 PM
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: htmltitle etc...

Any ideas ?



Re: Apache, tomcat and mod_jk

2000-12-05 Thread John Cartwright

I think that you can resolve the problem by compiling mod_jk.so from
source.  See mod_jk-howto.html in $TOMCAT_HOME/docs.

-- john

Olivier Tourdes wrote:
 
 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
 

-- 
===
John Cartwright
Professional Research Assistant / Associate Scientist
CIRES, SEG/NGDC/NOAA
(303) 497-6284
[EMAIL PROTECTED]
===



formbased security

2000-12-05 Thread John de la Garza

Can someone tell me what the difference is between remote user and principal
name is?

For example at: http://127.0.0.1/examples/jsp/security/protected/index.jsp

I see:

You are logged in as remote user johnd

Your user principal name is johnd




Re: is it possible to dynamically create and interpret JSP?

2000-12-05 Thread Joakim Verona

Ok, this seems possible. My initial impression is that this would be cumbersome,
especially the first time you view a page with the tags, but on the other hand,
if the pages are long-lived, like in my case, it wouldnt be bad at all. hmm.
it is growing on me. 

Thanks! 

CPC Livelink Admin wrote:
 
 Sure it's possible - depending on your JVM's security manager.  If you have
 access to write to your document root directory, then you can write a file
 to that directory and then redirect/forward to it.  It will then be compiled
 and executed. You will probably want to create a directory in the webapp for
 the session to keep from stomping on other sessions files. You would also
 want to listen for the session ending event(s) to clean up the files after
 the session is over.
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
 Joakim Verona
 Sent: Monday, December 04, 2000 07:34 PM
 To: [EMAIL PROTECTED]
 Subject: is it possible to dynamically create and interpret JSP?
 
 hello,
 
 is it possible to dynamically generate and interpret jsp?
 the purpose is to reuse custom tag libraries.
 
 the jsp code would mainly be retreived from a database.
 
 is it at all possible, or should i rather look at some other template
 mechanism?
 
 --
 Joakim Verona
 [EMAIL PROTECTED]
 http://www.verona.se/

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



Re: Additional Context

2000-12-05 Thread Jacob Kjome

I had the same problem. I was able to see examples app, but was not
able to set up any other contexts.

Jake


At 12:12 PM 12/5/2000 -0800, you wrote:
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
path=/tds 

docBase=webapps/tds


crossContext=false

debug=0


reloadable=true
 

/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 Showers
Email:
mailto:[EMAIL PROTECTED]
Email:
mailto:[EMAIL PROTECTED]
Phone: 305.278.2017



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


Defintive context 'parameter' list.

2000-12-05 Thread Thom Park

HI All,

now that Tomcat 3.2 had gone final

where can I get a definitive list of all the valid (i.e. non-deprecated)
parameters that will be valid for a Context.
Currently I can see the following;

path,docBase,crossContext,debug,reloadable and trusted

However there are a few others (all marked deprecated in the source code)
e.g. isWarExpanded etc.

Are there any other 'hidden' parameters - how does one determine this list,
is it simply a case of looking for the public getter/setter methods
that correspond to these parameters and 'exposing' them in the XML?

There's a number of documents out there that refer to some of these more
obscure 'deprecated' parameters/attributes and was trying to determine what
would be valid in any given 3.2 compliant server.xml.

Out of interest, how can I  determine similar lists of attributes/parameters
for the other components in the server.xml (e.g. connectors etc.)

On the subject of connectors - can anyone explain if the parameters that
pertain to the Virtual Hosts would ever be exposed in the XML for a
Connector (e.g. PoolTCPConnector) or is the Virtual Host information always
managed via the Host construct.

Thanks for any help,

Thom



jun xu sun wrote:

 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 

RE: IE Netscape

2000-12-05 Thread Adress, David S.

Where do I set this?

-Original Message-
From: G.Nagarajan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 05, 2000 1:49 PM
To: [EMAIL PROTECTED]
Subject: RE: IE  Netscape


Hi,
Try setting the content type to "text/html". 

Regards
Nagaraj.
-Original Message-
From: Adress, David S. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 05, 2000 4:59 PM
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: htmltitle etc...

Any ideas ?



RE: IE Netscape

2000-12-05 Thread Adress, David S.

Thanks, it worked!

-Original Message-
From: G.Nagarajan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 05, 2000 1:49 PM
To: [EMAIL PROTECTED]
Subject: RE: IE  Netscape


Hi,
Try setting the content type to "text/html". 

Regards
Nagaraj.
-Original Message-
From: Adress, David S. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 05, 2000 4:59 PM
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: htmltitle etc...

Any ideas ?



AW: Apache, tomcat and mod_jk

2000-12-05 Thread Christoph Leser

are you sure the mod_jk.so is build with apache 1.3.14 on your system?
perhaps try to remove it and rebuild it with apache apsx command

Christoph Leser
SP Computersysteme GmbH
E-Mail:[EMAIL PROTECTED]
Tel. +49 711 7264112
Fax: +49 711 7289860

-Ursprüngliche Nachricht-
Von:Olivier Tourdes [SMTP:[EMAIL PROTECTED]]
Gesendet am:Dienstag, 5. Dezember 2000 18:42
An: Olivier Tourdes
Cc: [EMAIL PROTECTED]
Betreff:Apache, tomcat and mod_jk

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: I cannot get error-page to work

2000-12-05 Thread Kevin Sangeelee

The tags you describe below look almost exactly the same as those I
created myself just today, and it works OK.

Where is the 404 being generated? Are you using Apache and mod_jk? If
so, is the invalid path that you're providing one that would normally be
handled by Apache (i.e. Apache generates and handles the 404 entirely
without the knowledge of Tomcat)?

The only difference in my web.xml entries is that I defined the error-page
to be a .jsp, not a .html - I was using Tomcat as a stand-alone server. I
have a second server that's configured with Apache + mod_jserv. I don't
expect that this configuration will generate Tomcat 404s for URLs that
aren't destined for Tomcat.


On Tue, 5 Dec 2000, Catherine Jung wrote:

 I'm running Tomcat 3.2 Final (but also happens with b7) on Solaris 
 
 If I use an error-page 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 exception-type rather than an error-code I get the same problem





RE: IE Netscape

2000-12-05 Thread Adress, David S.

Never mind. I got it!

-Original Message-
From: Adress, David S. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 05, 2000 2:39 PM
To: '[EMAIL PROTECTED]'
Subject: RE: IE  Netscape


Where do I set this?

-Original Message-
From: G.Nagarajan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 05, 2000 1:49 PM
To: [EMAIL PROTECTED]
Subject: RE: IE  Netscape


Hi,
Try setting the content type to "text/html". 

Regards
Nagaraj.
-Original Message-
From: Adress, David S. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 05, 2000 4:59 PM
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: htmltitle etc...

Any ideas ?



Re: IE Netscape

2000-12-05 Thread Kurt Bernhard Pruenner

"Adress, David S." wrote:
 G.Nagarajan wrote:
  Try setting the content type to "text/html".
 
 Where do I set this?

Use response.setContentType("text/html") somewhere in the beginning of your
doPost(...)/doGet(...) method, where "response" is the name of the
HttpServletResponse parameter of said method.

Oh, and please write your replys _below_ the previous posting - it's much
easier to keep track of a thread that way... thanks...

-- 
Kurt Bernhard Pruenner --- Haendelstrasse 17 --- 4020 Linz --- Austria
Music: http://www.mp3.com/Leak --- Work: http://www.ssw.uni-linz.ac.at
...It might be written "Mindfuck", but it's spelt "L-A-I-N"...
np: Biosphere - Endurium



Re: Fwd:Re[2]: mod_jk and JDBC?

2000-12-05 Thread Travis Low

It's hard to tell from that stack trace.  It's clearly barfing inside
the oracle driver, not in tomcat.  But I think if you set the system
property "JdbcTrace=true", then you will see more detailed
information.  You might need to call "OracleLog.initialize()" first --
I'm not sure if it's done automatically or not.  Sorry I can't be of
more help.

T

Robert Dana wrote:
 
 Forward Header_
 Subject:Re[2]: mod_jk and JDBC?
 Author: Robert Dana
 Date:   12/5/00 12:46 PM
 
 Travis,
 
 Thanks for your interest.  Here it is:
 
 oracle.jdbc.dbaccess.DBError.check_error(DBError.java, Compiled Code) at
 oracle.jdbc.driver.OracleConnection.(OracleConnection.java, Compiled Code) at
 oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java, Compiled Code) at
 java.sql.DriverManager.getConnection(DriverManager.java, Compiled Code) at
 java.sql.DriverManager.getConnection(DriverManager.java, Compiled Code) at
 ReadFromCarmen.doGet(ReadFromCarmen.java, Compiled Code) at
 javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at
 javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java, Compiled
 Code) at
 org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code) at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled
 Code) at
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
 Compiled Code) at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled
 Code) at
 org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp
 12ConnectionHandler.java, Compiled
 Code) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
 Compiled Code) at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled
 Code) at
 java.lang.Thread.run(Thread.java, Compiled Code)
 
 Reply Separator
 Subject:Re: mod_jk and JDBC?
 Author: Travis Low [EMAIL PROTECTED]
 Date:   12/5/00 11:23 AM
 
 Would you please post the stack trace for the exception?
 
 T
 
 Robert Dana wrote:
 
  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...BR"); // 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...BR");   // this never makes it to the
  browser
 
  // Create a statement
  Statement stmt = conn.createStatement();
 
  out.println("created statement...BR");
 
  // Execute the query
  ResultSet rset = stmt.executeQuery(query);
 
  out.println("executed query...BR");
 
  

Where are the searchable archives for this list?

2000-12-05 Thread Desaulniers, Peter

I have been to the tomcat site and can't seem to locate the access point for
the list archives.  Would some please post the access point for the
archives.  

Most lists include that type of information as part of each message as a
footer.  Would be nice if this list did too.

Thanks,

-- Peter Desaulniers



tomcat - application welcome page

2000-12-05 Thread Parayali, Jayesh 1065
Title: tomcat - application welcome page





I have created a web application called project


I want HomePage.jsp under project to be on when I browse http://hostname, instead of index.html


Any suggestions to configure tomcat to do that.


Thank you,
Jayesh





NT authentication

2000-12-05 Thread Josh Knowles



Is there any way 
that you can set up a page to tap into NT authentication? I dont know if 
this would be something that gets set in tomcat or if it is something that is 
non-tomcat related so I thought I would just try this list.

Thanks,

Josh
Josh Knowles Web Developer World Wide 
Packets [EMAIL PROTECTED] 509.242.9247 



Apache and tomcat

2000-12-05 Thread Mohamed Nasser

Hello.
I am trying to set up Apache to work with Tomcat as  JSP/servlet engine.
I have followed as much as I could from the documentation. I have created a
zone of my own.
Somehow I am getting to a point where only the sevlet does not run.
 
With port 8080 turned on ( line existing ) in the server.xml I get the
examples and my servlet to run without a problem using the URL.
However if I use the port defined in httpd.conf "" then I get a time out
on my page. This is all http. 
However with port  I can reach through a browse to the file and get to
the page for examples or my zone. Execution of the servlet program produces
a time out followed by an error on the screen that started the process that
looks like this:
$ HANDLER THREAD PROBLEM: java.io.IOException: Stream broken,
couldn'tdemarshal string :768:384java.io.IOException: Stream broken,
couldn't demarshal string :768:384 at
org.apache.tomcat.service.connector.Ajpv12InputStream.readString(Ajp12Connec
tionHandler.java, Compiled Code) at
org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp1
2ConnectionHandler.java, Compiled Code)at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java, Compiled Code)at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java,
Compiled Code)at java.lang.Thread.run(Thread.java, Compiled Code)

 This error was produced with and without the connector line port 8080 from
server.xml.
 
I am just not sure what have I missed to make my servlets run through the
port defined in httpd.conf file. I have added the tomcat.conf in httpd.conf
( removed jserv.conf as I was running jserv before)..pointed the conf file
to where the mod_jserv.so is located ( not in libexec) and made all the
configuration changes. Being able to browse the directories tells me the
configuartion is right, however I can't run my servlets.
any help will be appreciated.
 
Mohamed Nasser  



Using one directory structure with mod_jk

2000-12-05 Thread guyr



The Tomcat User's 
Guide has an example of usinga single directory structure for both Apache 
and Tomcat with ApacheModuleJServ. I'd like to accomplish the same thing 
with mod_jk. To be explicit, I'd like to specify a document directory (or 
root) of, say, /webdocs. Underneath that I would have /html and 
/images. In the html directory I would have a mix of HTML and JSP. 
I'd like Apache to serve the images and html files, and Tomcat only the JSP 
pages. How can I accomplish this with mod_jk? I look at the online 
resources and didn't see anything obvious. Thanks.
Guy Rouillier571-226-1229[EMAIL PROTECTED]BroadBand Office2950 Gallows 
RoadFalls Church, VA 22042



Re: build script is unable to find lang object?

2000-12-05 Thread Mark Koscak

Hi Steve,

Thanks for the reply.

Yes, unfortunately :(,  I think I'm going to go down the path of a different
jdk and complete reinstall of Tomcat.

It's the only thing I can think of as to why a previous installation (on my
other machine) would work and the current one does not.

Cheers
Mark

- Original Message -
From: Steve Weiss [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 06, 2000 3:22 AM
Subject: Re: build script is unable to find lang object?


 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: VAJ and Tomcat 3.2

2000-12-05 Thread Stein M. Eliassen

Hi,

I have now tested Tomcat 3.2 on VAJ 3.5 on W2K and it works as it should, it's
possible to re-start tomcat.

Since Tomcat 3.1 worked okey in VAJ 3.02 for Linux, I assume there is something
changed with the code that shuts down Tomcat 3.2.

Maybe some tomcat-developer could share some thoughts on this?

Regards
Stein



Accessing the ServletOutputStream via RequestInterceptors

2000-12-05 Thread Alex Garrett



Hello, all,

I'm trying to find a way to modify the content of a servlet after the servlet
has completed all of its processing but before it actually gets sent to the
browser (obviously).

Here's the context. Our web site stores all its content in XML. All servlets,
jsps, and static files return this XML and what I'd like to do is turn it all
into HTML on the fly without each servlet, etc., having to worry about doing the
transformation itself. My naive first idea was to set the content-type to
text/cml (CML is the name of the markup language) and have a
CmlToHtmlInterceptor (extends BaseInterceptor) with a afterBody method that
would check the content-type and if it's text/cml, retrieve the contents (maybe
from a ByteBuffer), run it through an XSL engine, turning it into HTML and
sending that back after changing the appropriate headers (content-type,
content-length, etc.).

Here are my problems: 1) I don't understand the order in which the interceptor
methods are called. Should this be done in afterBody? postService? Is the
calling sequence documented anywhere? 2) I don't understand the relationship
between ByteBuffers and ServletOutputStreams. Or am I completely barking up the
wrong tree? Maybe what I mean to ask is how do I get the contents of a servlet
in a way that's suitable for modification? 3) This is incidental, but
Request.getContentLength() always gives me a -1 when called in afterBody and
postService. Request.getOutputBuffer().count (correctly) gives me 8192 (for the
small pages I've done). How/where do I get an accurate content-length?

One level up, does this seem like a reasonable way to do the transformation of
aggregate XML docs? I didn't want to make a TransformationServlet and have
everything forward requests off to it for a number of reasons -- orthogonality
being a prime one. On the other hand, my understanding of the Tomcat 3.1 code
base is spotty at best. I may have no idea what I'm doing. Any feedback would be
most appreciated!

Thanks,
 Alex





Re: VAJ and Tomcat 3.2

2000-12-05 Thread Stein M. Eliassen

Rick Goeltz wrote:
 
 When you want to stop Tomcat, use the
 Console's top window, select the thread, and stop/remove it.
 
 To start Tomcat/VAJ, I go to the Tomcat class in the startup package and
 modify it's Run properties; classpath stuff, plus the -D parameter to point
 the standalone installation.
 

Rick,

Have you seen this?
http://muffin.kpnqwest.no/~steinme/vajtools/

Regards
Stein



directory listing

2000-12-05 Thread Greg Rodenhiser

Please help me..  I currently have Apache 1.3.12 passing any .jsp to
Tomcat.  (I'm new at this).  How do I turn off the Directory listing in
Tomcat?  I've tried editing every file I can think of.  This is getting VERY
frustrating.  Thanks in advance, Greg

Greg Rodenhiser
System Administrator
ThinkAgent Technologies, Inc.
2 Dundee Park Dr.
Andover, MA 01810




RE: Fwd:Re[2]: mod_jk and JDBC?

2000-12-05 Thread CPC Livelink Admin


Is this the thin driver or the one that requires OCI/client install.

I have been successfully running the thin drivers against 8.1.6 for some
time now (jdk 1.1.8)

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Travis Low
Sent: Tuesday, December 05, 2000 03:43 PM
To: [EMAIL PROTECTED]
Subject: Re: Fwd:Re[2]: mod_jk and JDBC?


It's hard to tell from that stack trace.  It's clearly barfing inside
the oracle driver, not in tomcat.  But I think if you set the system
property "JdbcTrace=true", then you will see more detailed
information.  You might need to call "OracleLog.initialize()" first --
I'm not sure if it's done automatically or not.  Sorry I can't be of
more help.

T

Robert Dana wrote:

 Forward Header_
 Subject:Re[2]: mod_jk and JDBC?
 Author: Robert Dana
 Date:   12/5/00 12:46 PM

 Travis,

 Thanks for your interest.  Here it is:

 oracle.jdbc.dbaccess.DBError.check_error(DBError.java, Compiled Code) at
 oracle.jdbc.driver.OracleConnection.(OracleConnection.java, Compiled Code)
at
 oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java, Compiled Code)
at
 java.sql.DriverManager.getConnection(DriverManager.java, Compiled Code) at
 java.sql.DriverManager.getConnection(DriverManager.java, Compiled Code) at
 ReadFromCarmen.doGet(ReadFromCarmen.java, Compiled Code) at
 javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at
 javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
Compiled
 Code) at
 org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code) at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
Compiled
 Code) at
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
 Compiled Code) at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java,
Compiled
 Code) at

org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp
 12ConnectionHandler.java, Compiled
 Code) at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
 Compiled Code) at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled
 Code) at
 java.lang.Thread.run(Thread.java, Compiled Code)

 Reply Separator
 Subject:Re: mod_jk and JDBC?
 Author: Travis Low [EMAIL PROTECTED]
 Date:   12/5/00 11:23 AM

 Would you please post the stack trace for the exception?

 T

 Robert Dana wrote:
 
  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...BR"); // 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");
 
  

RE: MVC problem

2000-12-05 Thread Bragg, Casey

This seems like a good solution!

Does it work with tomcat 3.1?

I tried a test case and got something, but I'm not sure what...

I requested a jsp file in my testcase context, my servlet was hit as
expected (it spit out it's stderr message), and the following page was
returned : 

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
HTMLHEAD
META content="text/html; charset=windows-1252"
http-equiv=Content-Type/HEAD
BODYXMP/XMP/BODY/HTML

Does this mean that jserv-servlet didn't find anything to process?  I think
so, because I get the same thing if I hit a non-existent jsp page in the
same context.

Here's what I have in my servlet's doGet : 


getServletConfig().getServletContext().getNamedDispatcher("jserv-servlet").f
orward(request,response);

Thanks...

...Casey

==
Casey Bragg - Software Engineer
Allegiance Telecom, Inc.  Dallas, TX
214-261-8679 - [EMAIL PROTECTED]
==


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 04, 2000 11:35 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: MVC problem


I guess, there IS a way to forward the .jsp processing to tomcat's
jsp-servlet, even when you have registered your own servlet to process all
.jps requests.

Instead of using
ServletContext.getRequestDispatcher(url).forward(request, response);
use

ServletContext.getNamedRequestDispatcher("jserv-servlet").forward(request,
response);

It worked for me.

Note: This method does not work if you want to "re-write" the url in your
handler servlet. JSP files processed by the jserv-servlet is always the URL
of the original request.

Kedar




RE: Where are the searchable archives for this list?

2000-12-05 Thread David Rees

The one I use is here:

http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2

The archives go back to March of 2000.

There is another archive, but the search form posts to port  and my
company firewall blocks it.

-Dave

 -Original Message-
 From: Desaulniers, Peter [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 05, 2000 12:32 PM
 To: '[EMAIL PROTECTED]'
 Subject: Where are the searchable archives for this list?


 I have been to the tomcat site and can't seem to locate the
 access point for
 the list archives.  Would some please post the access point for the
 archives.

 Most lists include that type of information as part of each message as a
 footer.  Would be nice if this list did too.

 Thanks,

 -- Peter Desaulniers




Unable to run JSPs on Windows 98 using Tomcat

2000-12-05 Thread SBurli5064

Hi,

  I have installed Tomcat 3.1 on my Windows 98 machine. My servlets are 
running fine but I am unable to run JSPs. It is giving me the following error:

java.lang.NoClassDefFoundError: sun/tools/javac/Main
at 
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.ja
va:128)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java, 
Compiled C
ode)
at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
at 
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessar
y(JspServlet.java:149)
at 
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspSer
vlet.java:161)
at 
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:2
61)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, 
Compile
d Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.ja
va, Compiled Code)
at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559
)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:160)
at 
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.j
ava:338)
at java.lang.Thread.run(Thread.java:479)

Could someone suggest me a solution to this?
Thanks




Tomcat 3.2 Final and Taglibs

2000-12-05 Thread David Geary

I'm trying to get a tag library working with Tomcat 3.2 final, which
throws the
exception listed after my signature.

Does anyone know what this exception means, or how to get rid of it?

Apparently, Tomcat's looking for a TLD named taglib.tld which is
supposed
to be in the META-INF directory? It makes absolutely no sense to me.

Thanks,


david


Error: 500
Location: /iterator/test.jsp
Internal Servlet Error:

org.apache.jasper.compiler.CompileException:
F:\jakarta-tomcat-3.2\webapps\iterator\test.jsp(2,0) Unable to open
taglibrary /WEB-INF/tlds/iterator.tld : Could not locate TLD
META-INF/taglib.tld
 at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:713)

 at
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116)

 at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:182)
 at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
 at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)

 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152)

 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164)

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

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

 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)

 at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)

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

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

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






Re: Apache Tomcat running in different machine.

2000-12-05 Thread David Bussenschutt

This is because I just can't run Apache with Tomcat on Linux. 

Why not?

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.

SuSe Linux 6.4 and Redhat linux 7; Apache 1.3.14; Tomcat 3.2 Final;
mod_jk.so compiled with only a minor glitch in the linux makefile (wrong
include path).  
(P.S. I've also got a couple of statically linked modules - php and ssl as
well as the usual DSO)

David.


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




David Bussenschutt  Email: [EMAIL PROTECTED]
Senior Computing Support Officer  Systems Administrator/Programmer
Location: Griffith University. Information Technology Services
  Brisbane Qld. Aust.  (TEN bldg. rm 1.33) Ph: (07)38757079




Re: remove me too, too,too, too

2000-12-05 Thread LINDA HUANG


- Original Message - 
From: "Gani David" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 01, 2000 9:46 AM
Subject: remove me too, too


 ...please
 
 
 David Gani
 Orange Communications SA
 IT Department - Junior Developer
 021/216 52 62
 
 World Trade Center Lausanne
 Avenue Gratta-Paille 2
 1018 Lausanne 30
 




Reasons why executing build won't find java.lang.Object?

2000-12-05 Thread Mark Koscak



Hi everyone,

First this is NOT urgent.( I'm taking a break and cutting some 
servlet code onmy machine that works. )

Having said that I am absolutely baffeled, with my second 
install of Tomcat.

If anyone knows any off beat reasons as to 
why running a project build will not locate java.lang.Object please let me 
know. I do have the JDKtools.jar as a part of my CLASSPATH. 


I have re-installed Tomcattwice.

I have tarred the working Tomcat installation, ftp'ed it, 
untarred it... no joy.

I have tried with jdk1.3 and jdk1.2.2

Regards
Mark




Re: Using one directory structure with mod_jk

2000-12-05 Thread David Bussenschutt

At 03:57 PM 12/5/00 -0500, you wrote:

The Tomcat User's Guide has an example of using a single directory
structure for both Apache and Tomcat with ApacheModuleJServ.  I'd like to
accomplish the same thing with mod_jk.  To be explicit, I'd like to
specify a document directory (or root) of, say, /webdocs.  Underneath that
I would have /html and /images.  In the html directory I would have a mix
of HTML and JSP.  I'd like Apache to serve the images and html files, and
Tomcat only the JSP pages.  How can I accomplish this with mod_jk?  I look
at the online resources and didn't see anything obvious.  Thanks.


Has anyone done this sort of thing? I'm sure there's someone out there! 

I'd be interested in hearing from you too, but I want to go a step further
and enable all of the above (html mixed with jsp) for ~username virtual web
folders too.


(and then I wan to add servlet contexts on a per-user basis too, but we'll
get to that later!)

David.



Guy Rouillier
571-226-1229
[EMAIL PROTECTED]
BroadBand Office
2950 Gallows Road
Falls Church, VA 22042



David Bussenschutt  Email: [EMAIL PROTECTED]
Senior Computing Support Officer  Systems Administrator/Programmer
Location: Griffith University. Information Technology Services
  Brisbane Qld. Aust.  (TEN bldg. rm 1.33) Ph: (07)38757079




RE: Tomcat 3.2 Final and Taglibs

2000-12-05 Thread Duane Morse

You're using a jar file for your tag library, right?  I think Tomcat is
expecting
to find the TLD file in the jar file under subdirectory META-INF; further,
it is
expecting the file name to be "taglib.tld".

-Original Message-
From: David Geary [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 05, 2000 4:09 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 3.2 Final and Taglibs


I'm trying to get a tag library working with Tomcat 3.2 final, which
throws the
exception listed after my signature.

Does anyone know what this exception means, or how to get rid of it?

Apparently, Tomcat's looking for a TLD named taglib.tld which is
supposed
to be in the META-INF directory? It makes absolutely no sense to me.

Thanks,


david


Error: 500
Location: /iterator/test.jsp
Internal Servlet Error:

org.apache.jasper.compiler.CompileException:
F:\jakarta-tomcat-3.2\webapps\iterator\test.jsp(2,0) Unable to open
taglibrary /WEB-INF/tlds/iterator.tld : Could not locate TLD
META-INF/taglib.tld
 at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve
ntListener.java:713)

 at
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList
ener.java:116)

 at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:182)
 at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
 at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)

 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)

 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)

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

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

 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)

 at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)

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

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

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





Using one directory structure with mod_jk

2000-12-05 Thread guyr




The Tomcat User's 
Guide has an example of usinga single directory structure for both Apache 
and Tomcat with ApacheModuleJServ. I'd like to accomplish the same thing 
with mod_jk. To be explicit, I'd like to specify a document directory (or 
root) of, say, /webdocs. Underneath that I would have /html and 
/images. In the html directory I would have a mix of HTML and JSP. 
I'd like Apache to serve the images and html files, and Tomcat only the JSP 
pages. How can I accomplish this with mod_jk? I look at the online 
resources and didn't see anything obvious. Thanks.
Guy Rouillier571-226-1229[EMAIL PROTECTED]BroadBand Office2950 Gallows 
RoadFalls Church, VA 22042

Guy Rouillier571-226-1229[EMAIL PROTECTED]BroadBand Office2950 Gallows 
RoadFalls Church, VA 22042



tomcat won't start

2000-12-05 Thread Didier Godefroy

Hi all,

I'm trying to start tomcat with the startup.sh script and I'm getting this:

#bin/startup.sh
Using classpath: 
/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:/usr/local/to
mcat/lib/jaxp.jar:/usr/local/tomcat/lib
/parser.jar:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/us
r/local/tomcat/lib/webserver.jar

# Usage: java org.apache.tomcat.startup.Tomcat {options}
  Options are:
-config file (or -f file)  Use this file instead of server.xml
-help (or help)Show this usage report
-home dir (or -h dir)  Use this directory as tomcat.home
-stop  Shut down currently running Tomcat

I don't give startup.sh any arguments, and this isn't coming from the other
script tomcat.sh, so where is this coming from and what am I missing

(I installed the tomcat binary and java is 1.1.8)

-- 
Didier Godefroy
mailto:[EMAIL PROTECTED]




problems in tomcat 3.2 with mod_jk and 404 errors?

2000-12-05 Thread Dave Emerson

I'm running under Win2k, Apache 1.3.14, and Tomcat 3.2.  I've tried 
rebuilding mod_jk but I get 404 errors when I try to run via 
mod_jk.  Tomcat and Apache are both working fine stand-alone.  I've bumped 
up the log levels but there's no evidence of anything being wrong except 
the 404 error itself which appears as

2000-12-03 08:12:10 - Ctx( ): 404 R( + /servlet/ + null) null

in the log if I try to access the default context.  The HelloWorldExample 
etc. examples don't work either.  I've updated workers.properties, tried 
both ajp12 and ajp13, etc.  I've also followed the various -howto files to 
the letter.  Is mod_jk supposed to be working?




  1   2   >