Re: File Upload

2001-03-28 Thread NSB)Hiroshi Kasamatsu
Hi,Valeriy


I found it here.

http://www.servlets.com/resources/com.oreilly.servlet/





Valeriy Molyakov wrote:

 Hi!
 Where I can found class MultipartRequest ?

 - Original Message -
 From: "NSB)Hiroshi Kasamatsu" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, March 28, 2001 10:12 AM
 Subject: Re: File Upload

  Hi,Fabien
 
  MultipartRequest works very fine.
  You may use file stream wrongly.
 
  My coding is as follows. I make it in any file because of byte
  input-output.
 
  MultipartRequest multi=new MultipartRequest(req,".");
 
Enumeration params=multi.getParameterNames();
Enumeration files=multi.getFileNames();
 
 
File f=null;
 
 String f_name=null;
 while(files.hasMoreElements()){
 f_name=(String)files.nextElement();
  f_name=f_name.trim();
 
  st_type=multi.getContentType(f_name);
  f=multi.getFile(f_name);
 }
 
  if(f!=null){
 FileInputStream fis=new FileInputStream(f);
 
 FileOutputStream fos=new FileOutputStream(fname);
 int b;
 while((b=fis.read())!=-1){
  fos.write((byte)b);
  }
 fis.close();fos.close();
  }
 
 
 
 
 
 
 
 
 
  Fabien Modoux wrote:
 
   Hello,
  
   I am using Tomcat with Apache on Linux. I am using the OReilly
   package to upload files through a servlet, but it only works
   for text files. I found several messages in the archive about
   that, but haven't been able to find a good solution. Does
   anyone know how to go around or fix this problem.
  
   Thanks,
  
   -Fabien


Knowing if a servlet is started

2001-03-28 Thread dsergent

How can I know if a servlet configured in the web.xml file is 
started ?


thks 4 all
David




RE: Compressing Tomcat output.

2001-03-28 Thread Bartosz Staniszewski

Hello, AL!
If i uderstand, your code is a servlet body?
But we search for other kind of solution...
We have application running on the web, and we want add gzip functionality
to its all (without some exceptions - small sites, gif and jpg's) contents
without modifications in jsp sources.
As You wrote mod_gzip is a less flexible solution (if i'm right - i didn't
try it). I try to write a request Interceptor for this.
We can't migrate to Tomcat 4.0 as long as it is beta. With valves - new
features of 4.0 version, dynamic compressing of some contents should be
easier.

Thanks,
Stanisz

-Original Message-
From: Alistair Hopkins [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 27, 2001 4:15 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Compressing Tomcat output.


We have a conditional compression setup: if some pages are small, it is
better not to compress them as the time the browser takes to decompress
makes the site slower on aggregate, esp with netscape.

The settings to control whether we zip and the threshold at which to zip can
then be adjusted for the most responsive 'feel'

import java.util.zip.*;
.
.
ByteArrayOutputStream bytes;
 (put html into bytes)
..
bytes.writeTo(out);
out.close();
}
else
{
resource.log.debug("no zip");
bytes.writeTo(response.getOutputStream());
}
Works well.

AL





RE: File Upload

2001-03-28 Thread Suresh Krishna M (RBIN/DBA-JOT)

hi man  goto www.servlets.com / www.servlets.com in that u will have
Oreilley's servlet package for download.get bak if u have any problem.





 -Original Message-
 From: Valeriy Molyakov [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, March 28, 2001 12:10 PM
 To:   [EMAIL PROTECTED]
 Subject:  Re: File Upload
 
 What is the url of this package ?
 
 - Original Message - 
 From: "Fabien Modoux" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, March 27, 2001 8:41 PM
 Subject: File Upload
 
 
  Hello,
  
  I am using Tomcat with Apache on Linux. I am using the OReilly
  package to upload files through a servlet, but it only works
  for text files. I found several messages in the archive about
  that, but haven't been able to find a good solution. Does
  anyone know how to go around or fix this problem.
  
  Thanks,
  
  -Fabien



RE: Sun Seeking Experts for New Java Certification!

2001-03-28 Thread Parry, Alan

unsubscribe



Server Side Include

2001-03-28 Thread vinod

hai

  How to make server-side Include in Tomcat.How to configure tomcat to run
"shtml" file.Let me please know at the earliest

vinod



how to work togather tomcat and apache in using mod_jk.so

2001-03-28 Thread

help me...

I wanna work togather tomcat and apache.
It was so easy to combine tomcat and apache in WindowsNT, but not in
linux.
First time, I already downloaded a file that was named mod_jk.so in
jakarta.apache.org.
And added the line like "Include $TOMCAT_HOME/conf/mod_jk.conf-auto" to
file named httpd.conf in $APACHE_HOME/conf.
I started the apache then. apache message say ...

Syntax error on line 8 of /usr/local/apache/jakarta-tomcat-
3.2.1/conf/mod_jk.con
f-auto:
API module structure `jk_module' in file
/usr/local/apache/apache_1.3.12/libexec
/mod_jk.so is garbled - perhaps this is not an Apache module DSO?
./apachectl start: httpd could not be started

So, I've got the source file and build mod_jk.so but I got the same
message.

please help me...




Please Help (Urgent) problem : Tomcat3.1 and Nt services

2001-03-28 Thread Tarek gh

Hi,
I used Tomcat 3.1 and Apache 1.4.17 and i copied the jk_nt_service in the 
directory c:\jdk1.3\jre\bin\classic\

and in command prompt i used :
jk_nt_service.exe -i Tomcat c:\Apache\tomcat\conf\wrapper.properties

i created the service and everything is ok ,but i uused in some jsp file the 
command :
Process p =Runtime.getRuntime().exec("Myexe");

the command is off the jsp run without execute this command

if i started the Tomcat without the servis that's mean from Startup.bat
the command work prperly

Please Help.
Thanks
Bye

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




Linux:Tomcat 3.2.1 and oracle 8.1.6 problem when I insert or delete data?

2001-03-28 Thread Hoang Viet Thach

Dear all!
I use Oracle 8i with Tomcat.3.2.1 . When I inerts or
delete for oracle databse table, i recive a error with
netscape browser on Linux. Normal Tomcat is down, or
not responding.

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text



LdapRealm

2001-03-28 Thread Torgeir Veimo

Is there any impl of this somewhere allready?

-- 
- Torgeir



PLEASE fix mailing list bounces!

2001-03-28 Thread Torgeir Veimo

Could somebody PLEASE fix this mailing list so that bouncing messages
doesn't go back to the poster!

This is VERY ANNOYING!

-- 
- Torgeir



Re: Please Help (Urgent) problem : Tomcat3.1 and Nt services

2001-03-28 Thread Valeriy Molyakov

The problem in the permissions on start service Apache.


- Original Message -
From: "Tarek gh" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 28, 2001 1:26 PM
Subject: Please Help (Urgent) problem : Tomcat3.1 and Nt services


 Hi,
 I used Tomcat 3.1 and Apache 1.4.17 and i copied the jk_nt_service in the
 directory c:\jdk1.3\jre\bin\classic\

 and in command prompt i used :
 jk_nt_service.exe -i Tomcat c:\Apache\tomcat\conf\wrapper.properties

 i created the service and everything is ok ,but i uused in some jsp file
the
 command :
 Process p =Runtime.getRuntime().exec("Myexe");

 the command is off the jsp run without execute this command

 if i started the Tomcat without the servis that's mean from Startup.bat
 the command work prperly

 Please Help.
 Thanks
 Bye

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




Memory exception

2001-03-28 Thread Heijns, P.J.B.

Hi

How can you set the internal memory size in tomcat higher? I have made a
file-upload servlet, if I want to upload a big file for example 80 MB, it
crashes, tomcat gives a out of memory exeption. By smaller files everting
goes oke.

Thanks, Pietert



Re: Security

2001-03-28 Thread Kaneda K

At 17:16 27/03/2001 -0300, you wrote:

  Hi guys!!
  
  I'm using Apache.1.3.19 - Tomcat.3.2.1 - Mod_jk over Solaris v2.7
  
  The fact is that I want build a security schema but I'm confused because
I
  can do it with Apache or Tomcat. So what do you suggest to me? Should I
  build the schema over Apache or Tomcat?
  
  hope to hear from you!
 
  I would say, That I depends from you and your time (teams has well)
  a Apache+Tomcat would be the best, meanhwhile you could (like I do) Do not
  have time to learn Apache AND Tomcat, then Tomcat Stand Alone would be
  enough. I personnally only use Tomcat StandAlone because, I rather focus
on
  my JSP and servlet then on Apache Conf, but Apache allow Load Ballancing
  and Security Far better then Tomcat (Does Tomcat Allow Load ballancing in
  stand Alone BTW). So Count your time. And Focus. At leats have a look at
  both basic user guide. It you catch fast, that also count a lot.
  :) good Luck

I'm sorry, but I'm just running Apache-Tomcat because it's more efficient
and robust, what I need to know is if I can configure the security schema of
my contexts within Tomcat in the mod_jk.conf file or directly in the
httpd.conf.

I would say httpd.conf then.

thanks,

Martin

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




RE: Compressing Tomcat output.

2001-03-28 Thread Alistair Hopkins

I have a kind of MVC architecture and the compressor-code is in the
controller thru' which all requests pass, so it is kind of easy.

For your site it sounds a lot more like a job for 2.3 specific things.  I
only mentioned it as I think that there's not enough talk of real speed vs
perceived speed: ie, it's more complex than 'smallest fastest file'.

-Original Message-
From: Bartosz Staniszewski [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 10:32 AM
To: [EMAIL PROTECTED]
Subject: RE: Compressing Tomcat output.


Hello, AL!
If i uderstand, your code is a servlet body?
But we search for other kind of solution...
We have application running on the web, and we want add gzip functionality
to its all (without some exceptions - small sites, gif and jpg's) contents
without modifications in jsp sources.
As You wrote mod_gzip is a less flexible solution (if i'm right - i didn't
try it). I try to write a request Interceptor for this.
We can't migrate to Tomcat 4.0 as long as it is beta. With valves - new
features of 4.0 version, dynamic compressing of some contents should be
easier.

Thanks,
Stanisz

-Original Message-
From: Alistair Hopkins [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 27, 2001 4:15 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Compressing Tomcat output.


We have a conditional compression setup: if some pages are small, it is
better not to compress them as the time the browser takes to decompress
makes the site slower on aggregate, esp with netscape.

The settings to control whether we zip and the threshold at which to zip can
then be adjusted for the most responsive 'feel'

import java.util.zip.*;
.
.
ByteArrayOutputStream bytes;
 (put html into bytes)
..
bytes.writeTo(out);
out.close();
}
else
{
resource.log.debug("no zip");
bytes.writeTo(response.getOutputStream());
}
Works well.

AL






testing...

2001-03-28 Thread Yum Mil Ho

Is it the right address to post question?
_
Get your FREE download of MSN Explorer at http://explorer.msn.com




servlet started

2001-03-28 Thread dsergent

I change my web.xml file to load another servlet on startup  where 
should I put the class file ??? 

David




The page you are looking for cannot be found

2001-03-28 Thread Yum Mil Ho

Hi there,

   I have set up an apache server with SSL. I wrote a servlet, which will 
make a https connection to retrieve a page content from other web site. I 
access my own servlet (Servlet 1) through SSL. My servlet (Servlet 1)  works 
just fine when it tries to retreive a content from a static page or a asp 
page. However, it receive an error when it try to retreive the content from 
a servlet (Servlet 2) . I just got the "The page you are looking for cannot 
be found" error. Actually, I was using iPAQ to make the request. I checked 
the servlet (Servlet 2) , which provides the content. It did receive the 
request from my servlet (Servlet 1) and returned whatever it's supposed to 
do. However, if I make a http request to my servlet (Servlet 1), it works 
fine. Does any one of you have any clue about this issue? Thanks.

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




how to run tomcat on a standalone server

2001-03-28 Thread Marot Laurent


Hi all,

i've been trying to use Tomcat fo a few days.
everything is ok when i work on my notebook connected to my LAN but
doesn't work when i'm not
plugged.
something to do ???

thanks



Re: importing multiple packages

2001-03-28 Thread William Brogden



Kris Gonzalez wrote:
 
 tej...
 
 you have to use multiple import items, one for each class or package you're
 importing
 
 such as:
 
 %@ page language="java" import="java.util.*" import="java.io.*" %

According to the spec, you import multiple items as a comma separated
list.
%@ page language="java" import="java.util.*,java.io.*" %

-- 
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2






Re: BookDOMbean class not found

2001-03-28 Thread William Brogden



MingLong Wu wrote:
 
 Hi,
 
 I got the following error when I type
 http://localhost:8080/JSPbook/Chap06/BookTopics.jsp
 
 Error: 500
 
 Location: /JSPbook/Chap06\BookTopics.jsp
 
 Internal Servlet Error:
 
 org.apache.jasper.JasperException: Unable to compile class for
 
JSPC:\tomcat\work\localhost_8080%2FJSPbook\_0002fChap_00030_00036_0002fBookTopics_0002ejspBookTopics_jsp_1.java:66:
 Class com.JSPbook.Chap06.BookDOMbean not found.
 com.JSPbook.Chap06.BookDOMbean bookBean = null;
.
 I do success compile and get BookDOMbean.class. Can anyone tell me what it
 means?

you have to put BookDOMbean.class where the compiler can find it, 
according to the servlet specification, this is under the WEB-INV
classes directory structure.

 WEB-INF\classes\com\JSPbook\Chap06\




Réf. : testing...

2001-03-28 Thread dsergent

Yes 

great test :o




"Yum Mil Ho" [EMAIL PROTECTED]
28/03/01 14:17
Veuillez rpondre  tomcat-user

 
Pour :  [EMAIL PROTECTED]
cc : 
Objet : testing...


Is it the right address to post question?
_
Get your FREE download of MSN Explorer at http://explorer.msn.com






RE: Memory exception

2001-03-28 Thread Burkeman

Search the archives for "out of memory".  This was answered a million times.

-Original Message-
From: Heijns, P.J.B. [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 5:57 AM
To: '[EMAIL PROTECTED]'
Subject: Memory exception


Hi

How can you set the internal memory size in tomcat higher? I have made a
file-upload servlet, if I want to upload a big file for example 80 MB, it
crashes, tomcat gives a out of memory exeption. By smaller files everting
goes oke.

Thanks, Pietert



Réf. : Re: add a new servlet ....

2001-03-28 Thread dsergent

ok fine, I creat a application in another folder (configured in 
server.xml) I put the class in a folder names Web-inf and in a subfolder 
names classes, but it doesn't work, my servlet doesn't start ... aaarg 
help me

David





"Neill" [EMAIL PROTECTED]
28/03/01 15:14
Veuillez rpondre  tomcat-user

 
Pour :  [EMAIL PROTECTED]
cc : 
Objet : Re: add a new servlet 



the directory structure of the web application is:
-TOMCAT_ROOT
- - webapps
- - - application root (this is where you place HTML and JSP files)
- - - - subdirectory (hierarchical organization of HTML and JSP files)
- - - -  WEB_INF (this is where web.xml will go)
- - - - - classes (this is where class files will go and is the CLASSPATH
of the application)


System.out.print statements will output to the Tomcat command line
(STOUT/STERR)
print statements using PrintWriter will output to the response object (to
your HTML page)



Neill Laney
http://home.nc.rr.com/nlaney
--
Web Developer/Technical Support Specialist.




dsergent@imex
pert.com To: 
[EMAIL PROTECTED]
 cc:
03/27/2001   Subject: add a new servlet 

04:50 AM
Please
respond to
tomcat-user






I try to add a new servlet which is supposed to load on startup. But I
don't know where I'm supposed to put the class file. If I use a println()
method in the init fonction of my class, where is it supposed to write
something ???

my web.xml file :

servlet
servlet-name
Settings
/servlet-name
servlet-class
SettingsServlet
/servlet-class
init-param
param-namerootFile/param-name
param-valuec:\testJSP\init.conf/param-value
/init-param
load-on-startup
-2147483646
/load-on-startup
/servlet
servlet-mapping
servlet-nameSettings/servlet-name
url-pattern/servlet/Settings/url-pattern
/servlet-mapping



thks a lot for your answer

David
a french tomcat beginner









Is Apache/Tomcat an alternative for us?

2001-03-28 Thread Eyvind Almquist



The mission was to set up a Java-application with 
servlets.The persons to perform this task was two IT-consultants who both 
hadprevious experience from setting up webservers and web-based 
applications.Apache webserver 1.3.11 was already installed and had been used 
for some time to serve static content.Since Apache webserver do not have 
support for servlets we needed to install Tomcat also.This is how the work 
proceeded:

Tomcat 3.2.1 was installed on the 
Unix-machine.According to the Tomcat website this was "the latest release 
quality Tomcat build". Apache webserver was stopped. Then we tried to start 
Tomcat. However it refused to start until wechanged the configuration-script 
to another port than 8007.Then we changed the Apache configuration file to 
include the Tomcat configuration file.

To connect Apache and Tomcat we needed to get 
a webserver-adapter called Jserv. The User guide for Tomcat says that we need to 
compile the source-files for Jserv to get a working version for our OS (Solaris 
5).After an extensive detective workwe found the needed source-file in 
the source version of Tomcat. The detective worktook a very long time, since 
these files where not in the place indicated by the User guide for 
Tomcat. So we downloaded the source for Tomcat 3.2.1.We located the 
source-files for Jserv.Then we moved to that directory and ran the commands 
for compiling. However these commandsdidn't succed, since they called a 
Perl-script and we didn't have Perl on our machine.Since Perl was not 
included in the Apache server or our version of Solaris,we needed to install 
the Perl parser.

We found Perl 5.005_03 for Solaris on 
Netscape's site and installed it. However the Perl parser didn't accept the 
included script from Tomcat for compiling called "apxs"due to several errors 
in it.So we nowhave three alternatives.

Alternative 1

Skip Apache web-server and use another one that can 
handle Java-servlets better.If we used a Java-based web-server with built-in 
support for servlets we wouldn't need a webserver-adapterlike Jserv and no 
seperate servlet-engine like Tomcat.

Alternative 2

Download another version of Tomcat and hope that 
the Perl-script apxs and everything else in itis correct this time. 


Alternative 3

Download another version of the Perl-parser and 
hope that it accepts the Perl-script apxs.

Does anyone has any opionons on what alternative we 
should go for or some other alternative? We also need the webserver to handle 
SSL, which means that
we later would have to download and install a 
module for that, since our Apache web-server don't support that.


Eyvind AlmquistTietoenator 
Consulting


Re: Réf. : Re: add a new servlet ....

2001-03-28 Thread Neill


Have you tested your setup and run any examples or snoop?

Neill Laney
http://home.nc.rr.com/nlaney
--
Web Developer/Technical Support Specialist.



   
   
dsergent@imex  
   
pert.com To: [EMAIL PROTECTED]
   
 cc:   
   
03/28/2001   Subject: Rf. : Re: add a new servlet 
   
08:14 AM   
   
Please 
   
respond to 
   
tomcat-user
   
   
   
   
   




ok fine, I creat a application in another folder (configured in
server.xml) I put the class in a folder names Web-inf and in a subfolder
names classes, but it doesn't work, my servlet doesn't start ... aaarg
help me

David





"Neill" [EMAIL PROTECTED]
28/03/01 15:14
Veuillez rpondre  tomcat-user


Pour :  [EMAIL PROTECTED]
cc :
Objet : Re: add a new servlet 



the directory structure of the web application is:
-TOMCAT_ROOT
- - webapps
- - - application root (this is where you place HTML and JSP files)
- - - - subdirectory (hierarchical organization of HTML and JSP files)
- - - -  WEB_INF (this is where web.xml will go)
- - - - - classes (this is where class files will go and is the CLASSPATH
of the application)


System.out.print statements will output to the Tomcat command line
(STOUT/STERR)
print statements using PrintWriter will output to the response object (to
your HTML page)



Neill Laney
http://home.nc.rr.com/nlaney
--
Web Developer/Technical Support Specialist.




dsergent@imex
pert.com To:
[EMAIL PROTECTED]
 cc:
03/27/2001   Subject: add a new servlet

04:50 AM
Please
respond to
tomcat-user






I try to add a new servlet which is supposed to load on startup. But I
don't know where I'm supposed to put the class file. If I use a println()
method in the init fonction of my class, where is it supposed to write
something ???

my web.xml file :

servlet
servlet-name
Settings
/servlet-name
servlet-class
SettingsServlet
/servlet-class
init-param
param-namerootFile/param-name
param-valuec:\testJSP\init.conf/param-value
/init-param
load-on-startup
-2147483646
/load-on-startup
/servlet
servlet-mapping
servlet-nameSettings/servlet-name
url-pattern/servlet/Settings/url-pattern
/servlet-mapping



thks a lot for your answer

David
a french tomcat beginner













timeout on form based security

2001-03-28 Thread simone cecchini

dear colleagues,
i have noted that, when using form based security (tomcat 3.2.1), a kind of expiration 
is on: if i connect to a secured page (actually a servlet) and stay inactive for a 
while (not sure about the lapse) when i reload the page or try to connect to another 
resource, i have to re insert username and password.
am i right? which parameter have i to change to prevent tomcat to do this?
thanks,
simone



Réf. : Re: Réf. : Re: add a new servlet....

2001-03-28 Thread dsergent

Excuse me but I don't understand what do you mean by tested my setup ... 
and I test it with a jsp page which is supposed to use a variable declared 
by the servlet but my variable is always null.

David






"Neill" [EMAIL PROTECTED]
28/03/01 16:07
Veuillez rpondre  tomcat-user

 
Pour :  [EMAIL PROTECTED]
cc : 
Objet : Re: Rf. : Re: add a new servlet 



Have you tested your setup and run any examples or snoop?

Neill Laney
http://home.nc.rr.com/nlaney
--
Web Developer/Technical Support Specialist.




dsergent@imex
pert.com To: 
[EMAIL PROTECTED]
 cc:
03/28/2001   Subject: Rf. : Re: add a new 
servlet 
08:14 AM
Please
respond to
tomcat-user






ok fine, I creat a application in another folder (configured in
server.xml) I put the class in a folder names Web-inf and in a subfolder
names classes, but it doesn't work, my servlet doesn't start ... aaarg
help me

David





"Neill" [EMAIL PROTECTED]
28/03/01 15:14
Veuillez rpondre  tomcat-user


Pour :  [EMAIL PROTECTED]
cc :
Objet : Re: add a new servlet 



the directory structure of the web application is:
-TOMCAT_ROOT
- - webapps
- - - application root (this is where you place HTML and JSP files)
- - - - subdirectory (hierarchical organization of HTML and JSP files)
- - - -  WEB_INF (this is where web.xml will go)
- - - - - classes (this is where class files will go and is the CLASSPATH
of the application)


System.out.print statements will output to the Tomcat command line
(STOUT/STERR)
print statements using PrintWriter will output to the response object (to
your HTML page)



Neill Laney
http://home.nc.rr.com/nlaney
--
Web Developer/Technical Support Specialist.




dsergent@imex
pert.com To:
[EMAIL PROTECTED]
 cc:
03/27/2001   Subject: add a new servlet

04:50 AM
Please
respond to
tomcat-user






I try to add a new servlet which is supposed to load on startup. But I
don't know where I'm supposed to put the class file. If I use a println()
method in the init fonction of my class, where is it supposed to write
something ???

my web.xml file :

servlet
servlet-name
Settings
/servlet-name
servlet-class
SettingsServlet
/servlet-class
init-param
param-namerootFile/param-name
param-valuec:\testJSP\init.conf/param-value
/init-param
load-on-startup
-2147483646
/load-on-startup
/servlet
servlet-mapping
servlet-nameSettings/servlet-name
url-pattern/servlet/Settings/url-pattern
/servlet-mapping



thks a lot for your answer

David
a french tomcat beginner















RE: timeout on form based security

2001-03-28 Thread Michael Wentzel

 i have noted that, when using form based security (tomcat 
 3.2.1), a kind of expiration is on: if i connect to a secured 
 page (actually a servlet) and stay inactive for a while (not 
 sure about the lapse) when i reload the page or try to 
 connect to another resource, i have to re insert username and 
 password.
 am i right? which parameter have i to change to prevent 
 tomcat to do this?

Set your session timeout in your web.xml.  Or you can set the session
timeout in your jsp as well.


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]

- Punisher of those who cannot spell dumb!



RE: IOException

2001-03-28 Thread William Kaufman

You're using IE, right?  It seems that, rather than specifying a time on the
GET call, it just gets the file, _then_ looks at the file's Last-Modified
header: if it's older than the version sitting in IE's cache, it just breaks
the connection, prompting an IOException on the server side.

At the very least, I only see this exception with IE: Netscape, Opera, even
Lynx don't pop exceptions on the server.  I don't see a work-around for
this, either: I'd need IE's source code for that,...

-- Bill K.


 -Original Message-
 From: subhadeep de [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 27, 2001 10:29 PM
 To: [EMAIL PROTECTED]
 Subject: IOException 
 
 
 
 I get the following errors: for gifs in an html page
 
 2000-12-12 09:27:41 - Ctx(  ): IOException in: R(  + /index.html +
 null)
 socket write error (code=10053)
 2000-12-12 09:27:41 - Ctx(  ): IOException in: R(  + /tomcat-
 power.gif +
 null) socket write error (code=10053)
 
 but page loads fine. Any ideas?
 
 
 __
 ___
 Get Your Private, Free E-mail from MSN Hotmail at 
 http://www.hotmail.com.
 



RE: timeout on form based security

2001-03-28 Thread simone cecchini

At 09:05 3/28/01 -0500, you wrote:
 i have noted that, when using form based security (tomcat 
 3.2.1), a kind of expiration is on: if i connect to a secured 
 page (actually a servlet) and stay inactive for a while (not 
 sure about the lapse) when i reload the page or try to 
 connect to another resource, i have to re insert username and 
 password.
 am i right? which parameter have i to change to prevent 
 tomcat to do this?

Set your session timeout in your web.xml.  Or you can set the session
timeout in your jsp as well.


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]

- Punisher of those who cannot spell dumb!

thanks for your reply, but i am not using sessions any way. either this does not 
happen when i use simple basic authentication.
it seems that session management is turned on some way, when i use form based sec.
any hint?
simone



Re: timeout on form based security

2001-03-28 Thread Andrew Robson

Hi,
  One possibility: you can set a sesson timout value in the web.xml  for your
application

!--  session timeout --
  session-config
session-timeout30/session-timeout!-- 30 minutes --
  /session-config

Don't know what default is if you don't

andrew 

On Wed, 28 Mar 2001, you wrote:
 dear colleagues,
 i have noted that, when using form based security (tomcat 3.2.1), a kind of 
expiration is on: if i connect to a secured page (actually a servlet) and stay 
inactive for a while (not sure about the lapse) when i reload the page or try to 
connect to another resource, i have to re insert username and password.
 am i right? which parameter have i to change to prevent tomcat to do this?
 thanks,
 simone





Re: PLEASE fix mailing list bounces!

2001-03-28 Thread Milt Epstein

On Wed, 28 Mar 2001, Torgeir Veimo wrote:

 Could somebody PLEASE fix this mailing list so that bouncing
 messages doesn't go back to the poster!
 
 This is VERY ANNOYING!

I second that!  Currently I get two bounces each time I post something
(i.e. there are two addresses that are bad).  I can save them and mail
them to an appropriate person/entity next time I post something.

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]




Can't load JSP pages on IE5.5 with Tomcat

2001-03-28 Thread Enrica Giambruno

Hi,
I want to load a Jsp page with Tomcat3.1 active from IE5.5, the address is
http://localhost:8080/prova2/JspWithCountingBean.jsp

I have this error:
Error: 500
Location: /prova2/JspWithCountingBean.jsp
sun/tools/javac/Main

If I load a HTML page, I have not problems.

If I run the jsp with JBuilder4 I load the page succesfully.
While the jsp is loaded on JBuilder4, I can run it also from IE5.5
Somebody can help me, please?
Thanks for attention.

Enrica


My address is: [EMAIL PROTECTED]




Can't load JSP pages on IE5.5 with Tomcat

2001-03-28 Thread Enrica Giambruno

Hi,
I want to load a Jsp page with Tomcat3.1 active from IE5.5, the address is
http://localhost:8080/prova2/JspWithCountingBean.jsp

I have this error:
Error: 500
Location: /prova2/JspWithCountingBean.jsp
sun/tools/javac/Main

If I load a HTML page, I have not problems.

If I run the jsp with JBuilder4 I load the page succesfully.
While the jsp is loaded on JBuilder4, I can run it also from IE5.5
Somebody can help me, please?
Thanks for attention.

Enrica




RE: timeout on form based security

2001-03-28 Thread Michael Wentzel

 thanks for your reply, but i am not using sessions any way. 
 either this does not happen when i use simple basic authentication.
 it seems that session management is turned on some way, when 
 i use form based sec.
 any hint?

Not sure I understand what you mean by not using sessions?  You mean
you never access any instances of HttpSession?  Did you do something
like get rid of(from server.xml):

RequestInterceptor
className="org.apache.tomcat.session.StandardSessionInterceptor" /

To the best of my knowledge Tomcat does session management despite
whatever type of authentication you are using(correct me if I'm wrong
anyone...).  I believe your servlet would work fine, as long as you
don't get an instance of HttpSession, if you removed the RequestInterceptor
for the Session Manager; but jsp pages will still have a problem.

Of course, this is all to the best of my knowledge...
Anyone else have comments on this?


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]

- Punisher of those who cannot spell dumb!



RE: PLEASE fix mailing list bounces!

2001-03-28 Thread Randy Layman


The problem is that neither are directly subscribed to the list -
they are the result of mail forwards (I've already asked Craig about this).
The only way to find the bad addresses would be to send an email to every
address separately and determine which outgoing message produced the
failure.

Randy


 -Original Message-
 From: Milt Epstein [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 28, 2001 9:52 AM
 To: [EMAIL PROTECTED]
 Subject: Re: PLEASE fix mailing list bounces!
 
 
 On Wed, 28 Mar 2001, Torgeir Veimo wrote:
 
  Could somebody PLEASE fix this mailing list so that bouncing
  messages doesn't go back to the poster!
  
  This is VERY ANNOYING!
 
 I second that!  Currently I get two bounces each time I post something
 (i.e. there are two addresses that are bad).  I can save them and mail
 them to an appropriate person/entity next time I post something.
 
 Milt Epstein
 Research Programmer
 Software/Systems Development Group
 Computing and Communications Services Office (CCSO)
 University of Illinois at Urbana-Champaign (UIUC)
 [EMAIL PROTECTED]
 



RE: Can't load JSP pages on IE5.5 with Tomcat

2001-03-28 Thread Randy Layman


Set your JAVA_HOME to point to your JDK.  Its not an IE 5.5 problem,
its how you configured Tomcat.

Randy

 -Original Message-
 From: Enrica Giambruno [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 28, 2001 9:59 AM
 To: [EMAIL PROTECTED]; 
 [EMAIL PROTECTED]
 Subject: Can't load JSP pages on IE5.5 with Tomcat
 
 
 Hi,
 I want to load a Jsp page with Tomcat3.1 active from IE5.5, 
 the address is
 http://localhost:8080/prova2/JspWithCountingBean.jsp
 
 I have this error:
 Error: 500
 Location: /prova2/JspWithCountingBean.jsp
 sun/tools/javac/Main
 
 If I load a HTML page, I have not problems.
 
 If I run the jsp with JBuilder4 I load the page succesfully.
 While the jsp is loaded on JBuilder4, I can run it also from IE5.5
 Somebody can help me, please?
 Thanks for attention.
 
 Enrica
 



RE: LdapRealm

2001-03-28 Thread GOMEZ Henri

I may try to do something to TC 3.3 if nobody volunteer

"Entre truands, les bnfices, a se partage, la rclusion, a
s'additionne."
-- Michel Audiard
 

-Original Message-
From: Torgeir Veimo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 12:39 PM
To: [EMAIL PROTECTED]
Subject: LdapRealm


Is there any impl of this somewhere allready?

-- 
- Torgeir




RE: timeout on form based security

2001-03-28 Thread simone cecchini

At 09:35 3/28/01 -0500, you wrote:
 thanks for your reply, but i am not using sessions any way. 
 either this does not happen when i use simple basic authentication.
 it seems that session management is turned on some way, when 
 i use form based sec.
 any hint?

Not sure I understand what you mean by not using sessions? You mean
you never access any instances of HttpSession?

yes, this is what i mean.

  Did you do something
like get rid of(from server.xml):

RequestInterceptor
className="org.apache.tomcat.session.StandardSessionInterceptor" /

no, i haven't dared ;-)

To the best of my knowledge Tomcat does session management despite
whatever type of authentication you are using(correct me if I'm wrong
anyone...).

this is the answer i was looking for: by default, sessions are working under the hood.
the basic authorization is likely to be a bit more slack dealing with timeout, since 
the client just has to send correct authorization headers.

  I believe your servlet would work fine, as long as you
don't get an instance of HttpSession, if you removed the RequestInterceptor
for the Session Manager; but jsp pages will still have a problem.

Of course, this is all to the best of my knowledge...

thanks again for your answer.
btw: servlet specs  v2.2 do not describe the authentication scheme used by form based 
auth. where can i find a tomcat-based description of it?
simone
Anyone else have comments on this?


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]

- Punisher of those who cannot spell dumb!





SSI and PHP

2001-03-28 Thread Georg Schmitt

Hello,

is it possible to use SSI or/and PHP with tomcat 3.2.1 webserver?

Georg




Re: LdapRealm

2001-03-28 Thread Torgeir Veimo

GOMEZ Henri wrote:
 
 I may try to do something to TC 3.3 if nobody volunteer

I allready have some initial code. I don't handle digest authentication,
and don't search for group membership to determine roles yet, but it's a
start. I'm working with 4.0beta.

I would be very happy for feedback on this code.

-- 
- Torgeir

package com.ecomda.ldap;

import java.beans.*;
import java.security.Principal;
import java.io.*;
import java.util.*;
import org.apache.catalina.Container;
import org.apache.catalina.LifecycleException;
import org.apache.catalina.util.*;
import org.apache.catalina.util.xml.*;
import org.xml.sax.AttributeList;
import javax.naming.*;
import javax.naming.directory.*;

import org.apache.catalina.realm.*;

import com.ecomda.ldap.security.*;

public class LdapRealm extends RealmBase {

protected static final String info = "ecomda.ldap.LdapRealm/1.0";
protected static final String name = "LdapRealm";

private Container   container = null;
private HashMap principals = new HashMap();
private static  StringManager sm = StringManager.getManager(Constants.Package);
private boolean started = false;

protected StringsearchBase;
protected StringproviderURL;
protected StringauthMechanism;

public String getInfo() { return info; }
public String getName() { return name; }

public LdapRealm() { authMechanism = "simple"; }

public void setProviderURL(String providerURL) {
if (debug  1)
System.out.println("setting providerURL: " + providerURL);
this.providerURL = providerURL;
}

public void setSearchBase(String searchBase) {
if (debug  1)
System.out.println("setting searchBase: " + searchBase);
this.searchBase = searchBase;
}

public void setAuthMechanism(String authMechanism) {
if (debug  1)
System.out.println("setting authMechanism: " + authMechanism);
this.authMechanism = authMechanism;
}

public Principal authenticate(String username, String credentials) {

String dn = "uid="+ username + ", " + searchBase;

// First check if we have cached info on this user.
LdapRealmPrincipal principal = (LdapRealmPrincipal) principals.get(username);
if ((principal != null)  principal.checkCredentials(dn, credentials)) {  
  
if (debug  1)
log(sm.getString("ldapRealm.authenticateSuccess", username));
return (principal);
} 

// FIX! How do we age and remove old cached principals? Maybe use soft 
references?.

// If not, try authenticate to LDAP server.
try {
if (debug  1)
System.out.println("trying to authenticate with dn: " + dn + ", to 
URL: " + providerURL);

Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, 
"com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, providerURL);
env.put(Context.SECURITY_AUTHENTICATION, authMechanism);
env.put(Context.SECURITY_PRINCIPAL, dn);
env.put(Context.SECURITY_CREDENTIALS, credentials);

DirContext ctx = new InitialDirContext(env);
ctx.lookup(dn);

if (debug  1)
log(sm.getString("ldapRealm.authenticateSuccess", username));

principal = new LdapRealmPrincipal(dn, credentials);
principals.put(username, principal);

return principal;

} catch (NamingException ne) {
if (debug  1)
log(sm.getString("ldapRealm.authenticateFailure", username));
}
return null;
}

protected String getPassword(String username) { return null; }

public boolean hasRole(Principal principal, String role) {

// FIX! should we really define this static role?
if (role.equalsIgnoreCase("authenticated")) 
return true;

if ((principal == null) || (role == null) || !(principal instanceof 
LdapRealmPrincipal))
return (false);

boolean result = ((LdapRealmPrincipal) principal).hasRole(role);
if (debug  1) {
String name = principal.getName();
if (result)
log(sm.getString("ldapRealm.hasRoleSuccess", name, role));
else
log(sm.getString("ldapRealm.hasRoleFailure", name, role));
}
return (result);
}


void addUser(String username, String password, String roles) {
LdapRealmPrincipal principal = new LdapRealmPrincipal(username, password);
principals.put(username, principal);

roles += ",";

while (true) {
int comma = roles.indexOf(",");
if (comma  0)
break;
String role = roles.substring(0, comma).trim();

Setting a servlet to be SSL only

2001-03-28 Thread Robert Arthur

Hi - I am new to all forms of web server configuration, so please bear with
me!

I am using Apache+mod_ssl and tomcat (mod_jk), with Cocoon installed under
tomcat.   I wish to create a username and logon page index.xml with secure
transmission of data to connection.xml.

After much agony, I managed to get to the stage where
https://the-host/Cocoon/Connection/index.xml would give me a secure
connection.   However, http://the-host/Cocoon/Connection/index.xml would
still work to give a non-secure connection.

I added SSLRequireSSL to the Directory pointing to
$TOMCAT-HOME/webapps/Cocoon, and included SSLOptions +StrictRequire in the
SSL configuration, but to no avail.

Do I need to inform tomcat of the SSL requirement, and if so how?

Many thanks,

Bob.





Re: PLEASE fix mailing list bounces!

2001-03-28 Thread Torgeir Veimo

Randy Layman wrote:
 
 The problem is that neither are directly subscribed to the list -
 they are the result of mail forwards (I've already asked Craig about this).
 The only way to find the bad addresses would be to send an email to every
 address separately and determine which outgoing message produced the
 failure.

And it IS possible to do just that without interfering with normal
operation; just add a random character (to a header field which get
replied) for each normal ML message which is different for each
recipient. 

-- 
- Torgeir



Re: Is Apache/Tomcat an alternative for us?

2001-03-28 Thread Robert de Geus



As far as I am aware, apxs is a utilty created when 
compiling apache when apache is configured for loadable modules. This program 
contains all information about the apache installation (header files, libraries, 
installation directory) and can be used to compile loadable apache modules. 
Running this program on jakarta-tomcat-3.2.1-src/src/native/apache/jserv with 
the commandline as specified in the tomcat installation manual gives the 
mod_serv.so which should be copied in the libexec directory of the apache 
installation. Include tomcat.conf in httpd.conf, and restart apache.  No perl 
needed to install tomcat and apache and mod_jserv. Apxs just saves you the 
problem to create the module inside the apache makefile structure etc. This is 
what I used to compile apache:

To create apache for loadable modules:
CFLAGS="-D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64"export CFLAGS

./configure --enable-rule=SHARED_CORE 
\ --enable-module=so 

make
make install

The compile the jserv module using apsx in the 
apache/bin directory.

you can startservlet using http://localhost/examples instead of http://localhost:8080/

Kind regards,
Robert de Geus


  - Original Message - 
  From: 
  Eyvind Almquist 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, March 28, 2001 3:29 
  PM
  Subject: Is Apache/Tomcat an alternative 
  for us?
  
  The mission was to set up a Java-application with 
  servlets.The persons to perform this task was two IT-consultants who both 
  hadprevious experience from setting up webservers and web-based 
  applications.Apache webserver 1.3.11 was already installed and had been 
  used for some time to serve static content.Since Apache webserver do not 
  have support for servlets we needed to install Tomcat also.This is how the 
  work proceeded:
  
  Tomcat 3.2.1 was installed on the 
  Unix-machine.According to the Tomcat website this was "the latest release 
  quality Tomcat build". Apache webserver was stopped. Then we tried to 
  start Tomcat. However it refused to start until wechanged the 
  configuration-script to another port than 8007.Then we changed the Apache 
  configuration file to include the Tomcat configuration file.
  
  To connect Apache and Tomcat we needed to 
  get a webserver-adapter called Jserv. The User guide for Tomcat says 
  that we need to compile the source-files for Jserv to get a working version 
  for our OS (Solaris 5).After an extensive detective workwe found the 
  needed source-file in the source version of Tomcat. The detective worktook 
  a very long time, since these files where not in the place indicated by 
  the User guide for Tomcat. So we downloaded the source for Tomcat 
  3.2.1.We located the source-files for Jserv.Then we moved to that 
  directory and ran the commands for compiling. However these commandsdidn't 
  succed, since they called a Perl-script and we didn't have Perl on our 
  machine.Since Perl was not included in the Apache server or our version of 
  Solaris,we needed to install the Perl parser.
  
  We found Perl 5.005_03 for Solaris on 
  Netscape's site and installed it. However the Perl parser didn't accept 
  the included script from Tomcat for compiling called "apxs"due to several 
  errors in it.So we nowhave three alternatives.
  
  Alternative 1
  
  Skip Apache web-server and use another one that 
  can handle Java-servlets better.If we used a Java-based web-server with 
  built-in support for servlets we wouldn't need a webserver-adapterlike 
  Jserv and no seperate servlet-engine like Tomcat.
  
  Alternative 2
  
  Download another version of Tomcat and hope that 
  the Perl-script apxs and everything else in itis correct this time. 
  
  
  Alternative 3
  
  Download another version of the Perl-parser and 
  hope that it accepts the Perl-script apxs.
  
  Does anyone has any opionons on what alternative 
  we should go for or some other alternative? We also need the webserver to 
  handle SSL, which means that
  we later would have to download and install a 
  module for that, since our Apache web-server don't support that.
  
  
  Eyvind AlmquistTietoenator 
  Consulting


Re: Logging in tomcat

2001-03-28 Thread tomcat user

Thanks for the info! That helps. I'll check out the log4j.

--Original Message--
From: Anuj Agrawal [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: March 23, 2001 12:11:51 AM GMT
Subject: Re: Logging in tomcat


tomcat user wrote:

 I haven't found much info on logging in tomcat. Is there somewhere I can
go
 to look up this info?

Definetly!  You might want to look at the Log4j project at
http://jakarta.apache.org/log4j/docs/index.html
Extremely Cool! 8)

 How does logging work in tomcat. If I write system.out's, will I see those
 on the tomcat console? Or, does this have to go through logging? If so,
how

in {TOMCAT_HOME}/conf/wrapper.properties, it indicates the following:
# Defining where the service is going to put the standard
# output of Tomcat. This is where System.out.println and
# System.err.println goes to.
#
wrapper.stdout=$(wrapper.tomcat_home)\logs\jvm.stdout
wrapper.stderr=$(wrapper.tomcat_home)\logs\jvm.stderr

So your system.out's will go to logs/jvm.stdout

HTH.
Anuj.


__
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup



Re: Logging in tomcat

2001-03-28 Thread tomcat user

Thanks for the good info!

--Original Message--
From: "Mark Mynsted" [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Sent: March 23, 2001 3:07:21 PM GMT
Subject: Re: Logging in tomcat


I think the simplest way is to just use
application.log("This is a message to be logged");

This goes to the Servlet.log.  A little better maybe would be to define
something like:
String logHeader = request.getServletPath() + ": ";

Then use
application.log(logHeader + "This is a message to be logged.");

This way the log message will be prefixed with the servlet generating the
message.

The "application" variable is automatically defined for the service method.

 tomcat user [EMAIL PROTECTED] 3/22/2001 3:04:12 PM 
I am a new user to the Tomcat world.

I haven't found much info on logging in tomcat. Is there somewhere I can go
to look up this info?

How does logging work in tomcat. If I write system.out's, will I see those
on the tomcat console? Or, does this have to go through logging? If so, how
would I invoke the logging mechanism?

I'm just interested in getting debug info out of Tomcat.

Thanks


__
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup


__
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup



Re: doGet - doPost

2001-03-28 Thread Bo Xu

Sunil Chandurkar wrote:

 Hello All..

 Though i'm working on servlets from couple of months
 i'm getting confused between doGet and doPost whenever i'm trying to do 
Applet-Servlet Communication.

 My Problem is :

 On particular event my Applet is sending one string to Servlet and inresponse 
servlet is sending one Vector to applet.
 If i will keep on performing Applet - Servlet communication,hardly i can perform 2-3 
transactions.
 On 4th request from applet to servlet .. my browser gets hung.
 I have written entire code in doPost of servlet.

 I am very much confused where shall i write the code on servlet side in doGet or in 
doPost.. and one more thing.. i have tried by writing code into doGet also.

 I have already visited lots of sites from where i could get this solution.. and 
according to their samples. i did everything. but still problem is there only.

 If anybody is having perfect solution on this Applet-Servlet communication please 
let me know...

 Regards
 Sunil
 [...]

haha :-)  I think I know a little about it, I find it is interesting :-)  but I am
not sure, the following is just as a reference:

*  I use:
- standalone Java Appllication: JDK1.3 + winnt40
- Servlet:  jakarta-tomcat-4.0-b1(standalone, JDK1.3, winnt40)

* I guess Applet-Servlet communication is similar with Application-Servlet
   communication.

*  normally, it is Appllication-side who starts one Appllication-Servlet communication:

*  client First Read style:
in Appllication-side, if we first Read something from Servlet,  then no matter
 we will continue to Write something to Servlet or not,  doGet will be
 invoked

*  client First Write style:
in Appllication side, if we first Write something to Servlet, then:
   - if we don't continue to Read somwthing from Servlet, then neither doGet
 now doPost will be invoked :-)
   - if we continue to Read something from Servlet, then doPost will be invoked :-)
   - if we want to Write something, we need: uc.setDoOutput(true),  otherwise I
 got a java.net.ProtocalException

*
   - if we want to Read something, we need: uc.setDoInput(true),  otherwise I
 got a java.net.ProtocalException
   - if we want to Write something, we need: uc.setDoOutput(true),  otherwise I
 got a java.net.ProtocalException

*  we can use both URLConnection and HttpURLConnection. but I remember
HttpURLConnection is not in NN4.7 and IE4.x(perhaps I remember wrong)



Bo
Mar.28, 2001





documention need for IIS

2001-03-28 Thread affan



Hi All,

I need configuration documention of tomcat with IIS 
any body have the configuration documentation please send me or from where i 
will get the configuration documentation.

[EMAIL PROTECTED]

Affan




Using property files/java beans

2001-03-28 Thread tomcat user

I'm using Tomcat3.2.1. Does this version support java beans? I would like to
setup some property files with the name/value pair and have that property
file get mapped to my java bean. If tomcat does support java beans, how
would I implement this? i.e. what would my property file look like and where
should I place my property file in the tomcat directory structure (which, I
then add to my .war file).

Thanks


__
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup



RE: SSI and PHP

2001-03-28 Thread Filip Hanik

yes it is, if you place Apache in front of it.
SSI is a functionality of Apache.

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net 

 -Original Message-
 From: Georg Schmitt [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 28, 2001 7:49 AM
 To: tomcat-user
 Subject: SSI and PHP
 
 
 Hello,
 
 is it possible to use SSI or/and PHP with tomcat 3.2.1 webserver?
 
 Georg
 
 



Response.sendError in TC4

2001-03-28 Thread Kevin Jones

Can I configure the way that TC interprets this API?

I was thinking I'd like to fully format the output of the error, but TC4
builds an HTML response and includes whatever I write as part of that
string. Is there a way to override this?

Kevin Jones
DevelopMentor
www.develop.com




Re: documention need for IIS

2001-03-28 Thread Matt Warmbir




http://jakarta.apache.org:8080/jyve-faq/Turbine/screen/DisplayQuestionAnswer/action/SetAll/project_id/2/faq_id/12/topic_id/102/question_id/455 


  - Original Message - 
  From: 
  affan 
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, March 28, 2001 11:25 
  AM
  Subject: documention need for IIS
  
  Hi All,
  
  I need configuration documention of tomcat with 
  IIS any body have the configuration documentation please send me or from where 
  i will get the configuration documentation.
  
  [EMAIL PROTECTED]
  
  Affan
  
  


nsapi_redirect on HP-UX (with NES 4)

2001-03-28 Thread Diego Rodrigo

HI,
has anyone been able to compile nsapi_redirect on HP-UX?
I am trying to find a compiled version, but if I can't get it, any help about the 
tools needed in order to compile it are welcome.
Do i need gcc ? or plain HP cc is ok?
Has anyone used tomcat with Netscape Enterprise Server 4.0 (in HP-UX) ? (the doc 
says the connector will work on NES 3.0 or 3.6)

thanks a lot.

diego.

--
Diego Rodrigo
+54(11)4811-0956
Vates S.A.
Argentina



Re: PLEASE fix mailing list bounces!

2001-03-28 Thread Kief Morris

Torgeir Veimo typed the following on 06:12 PM 3/28/2001 +0200
 The problem is that neither are directly subscribed to the list -

But shouldn't the reply-to field point to the mailing list address
instead of the original mailer? 

The Sender address is the one which mail servers should use to
decide who to send bounces to, and it should be set to the list
admin who can remove the offending address. Some servers
are misconfigured to send bounces to the From or Reply-to address,
which is wrong.

K




Re: add a new servlet ....

2001-03-28 Thread Neill


You stated you were not able to add a new servlet, have you been able to
run any servlets? If not, it may be an installation issue and that is what
should be addressed. If you have run at least the example Servlets and JSP,
then we can start looking closer at what's going on with this particular
one.

Neill Laney
http://home.nc.rr.com/nlaney
--
Web Developer/Technical Support Specialist.



   
   
dsergent@imex  
   
pert.com To: [EMAIL PROTECTED]
   
 cc:   
   
03/28/2001   Subject: Rf. : Re: Rf. : Re: add a new 
servlet 
09:31 AM   
   
Please 
   
respond to 
   
tomcat-user
   
   
   
   
   




Excuse me but I don't understand what do you mean by tested my setup ...
and I test it with a jsp page which is supposed to use a variable declared
by the servlet but my variable is always null.

David






"Neill" [EMAIL PROTECTED]
28/03/01 16:07
Veuillez rpondre  tomcat-user


Pour :  [EMAIL PROTECTED]
cc :
Objet : Re: Rf. : Re: add a new servlet 



Have you tested your setup and run any examples or snoop?

Neill Laney
http://home.nc.rr.com/nlaney
--
Web Developer/Technical Support Specialist.




dsergent@imex
pert.com To:
[EMAIL PROTECTED]
 cc:
03/28/2001   Subject: Rf. : Re: add a new
servlet 
08:14 AM
Please
respond to
tomcat-user






ok fine, I creat a application in another folder (configured in
server.xml) I put the class in a folder names Web-inf and in a subfolder
names classes, but it doesn't work, my servlet doesn't start ... aaarg
help me

David





"Neill" [EMAIL PROTECTED]
28/03/01 15:14
Veuillez rpondre  tomcat-user


Pour :  [EMAIL PROTECTED]
cc :
Objet : Re: add a new servlet 



the directory structure of the web application is:
-TOMCAT_ROOT
- - webapps
- - - application root (this is where you place HTML and JSP files)
- - - - subdirectory (hierarchical organization of HTML and JSP files)
- - - -  WEB_INF (this is where web.xml will go)
- - - - - classes (this is where class files will go and is the CLASSPATH
of the application)


System.out.print statements will output to the Tomcat command line
(STOUT/STERR)
print statements using PrintWriter will output to the response object (to
your HTML page)



Neill Laney
http://home.nc.rr.com/nlaney
--
Web Developer/Technical Support Specialist.




dsergent@imex
pert.com To:
[EMAIL PROTECTED]
 cc:
03/27/2001   Subject: add a new servlet

04:50 AM
Please
respond to
tomcat-user






I try to add a new servlet which is supposed to load on startup. But I
don't know where I'm supposed to put the class file. If I use a println()
method in the init fonction of my class, where is it supposed to write
something ???

my web.xml file :

servlet
servlet-name
Settings
/servlet-name
servlet-class
SettingsServlet
/servlet-class
init-param
param-namerootFile/param-name
param-valuec:\testJSP\init.conf/param-value
/init-param
load-on-startup
-2147483646
/load-on-startup
/servlet
servlet-mapping
servlet-nameSettings/servlet-name
url-pattern/servlet/Settings/url-pattern
/servlet-mapping



thks a lot for your answer

David
a french tomcat beginner



















auth-method

2001-03-28 Thread Batsheva Raviv

I have found about 2 or 3 type of auth-method Basic, Form and digest. Are
there more?
Can someone help me find documentation how should I set the Login-config.
Thank you,
Batsheva




realm resource factories

2001-03-28 Thread Torgeir Veimo

We use a realm implementation that will use a resource factory in the
same way as a servlet uses it.

Since the realm is specified on an engine level, and not on a web
application level, we need to use an indirection to get to the correct
resource factory based on which web application the realm is currently
authenticating for. (We do this because we reuse connections on a per
web application basis).

I don't know the best way of doing this. 

Can I get some information from the container that can allow me to do
jndi style resource factory lookup automagically, without knowing what
web application the realm is currently authenticating for?


-- 
- Torgeir



RE: auth-method

2001-03-28 Thread Julien, Timothy

there are:
1. FORM:

login-config
 auth-methodFORM/auth-method
 form-login-config
 form-login-pagelogin.jsp/form-login-page
 form-error-pageerror.jsp/form-error-page
 /form-login-config
/login-config

login.jsp needs an html form with action='j_security_check'
and inputs named: 'j_username' and 'j_password'

2. BASIC:

login-config
 auth-methodBASIC/auth-method
 realm-namedefault/realm-name !-- dont actually know how this affects
the container --
/login-config

for this you will most likely need to configure your web server to accept
BASIC header information, and also configure it to either let those headers
through, or verify the user at the web-server level (at which point it will
let the request through).

3. CLIENT-CERT:

(this is a Client Certificate, like an SSL X509 Certificate):
login-config
 auth-methodCLIENT-CERT/auth-method
/login-config

you'll probably need to do the same thing as BASIC, except instead of BASIC
headers, you'll need certain certificate headers to get through - this is
web-server dependant what they're called.

4. DIGEST - Not supported in all containers:

login-config
 auth-methodDIGEST/auth-method
/login-config

Tim Julien
HP middleware

-Original Message-
From: Batsheva Raviv [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 12:20 PM
To: Tomcat Usr (E-mail)
Subject: auth-method


I have found about 2 or 3 type of auth-method Basic, Form and digest. Are
there more?
Can someone help me find documentation how should I set the Login-config.
Thank you,
Batsheva





Fwd: JSSE

2001-03-28 Thread Robin Green

Wrong mail list. Forwarding to tomcat-user. Please, no replies to 
cocoon-users or me.

--- forwarded ---
[EMAIL PROTECTED] wrote:
my config:
OS: WinNt4.0 SP6
Apache Server 1.3.19
jakarta-Tomcat 3.2.1

Problem:
i want to install JSSE
so i followed the instructions in the "tomcat\conf\server.xml" file

-- cut --

 !--
Uncomment this for SSL support.
 You _need_ to set up a server certificate if you want this
 to work, and you need JSSE.
 1. Add JSSE jars to CLASSPATH
 2. Edit java.home/jre/lib/security/java.security
Add:
security.provider.2=com.sun.net.ssl.internal.ssl.Provider
 3. Do: keytool -genkey -alias tomcat -keyalg RSA
RSA is essential to work with Netscape and IIS.
Use "changeit" as password. ( or add keypass attribute )
You don't need to sign the certificate.

 You can set parameter keystore and keypass if you want
 to change the default ( user.home/.keystore with changeit )
  --
 !--
 Connector className="org.apache.tomcat.service.PoolTcpConnector"
 Parameter name="handler"

value="org.apache.tomcat.service.http.HttpConnectionHandler"/
 Parameter name="port"
 value="8443"/
 Parameter name="socketFactory"
 value="org.apache.tomcat.net.SSLSocketFactory" /
 /Connector
 --

-- cut --

so i downloaded jsse-1_0_2-do.zip and copied the jar files to my
JAVA_HOME/Lib and added the files in the "tomcat.bat" file to CLASSPATH.
in the "java.security" there was following entry:

security.provider.1=sun.security.provider.Sun
security.provider.2=com.sun.rsajca.Provider

which i have replaced

security.provider.1=sun.security.provider.Sun
security.provider.2=com.sun.net.ssl.internal.ssl.Provider

after that i did:
keytool -genkey -alias tomcat -keyalg RSA

than i uncommented the following part in the server.xml file:
 Connector className="org.apache.tomcat.service.PoolTcpConnector"
 Parameter name="handler"

value="org.apache.tomcat.service.http.HttpConnectionHandler"/
 Parameter name="port"
 value="8443"/
 Parameter name="socketFactory"
 value="org.apache.tomcat.net.SSLSocketFactory" /
 /Connector

I restarted the computer. i started apache server - it runs. but when i
start tomcat. tomcat stops without an error message.
tomcat only runs when i comment the upper part in the server.xml file. but
then i can't connect on port 8443

did i forget something for using JSSE?

Georg



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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




RE: auth-method

2001-03-28 Thread Batsheva Raviv

Thank you Tim,
Where is 'j_security_check' defined and read?
Do you have any idea to how I connect realm-name to a protected directory?
Thank you,
Batsheva

-Original Message-
From: Julien, Timothy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 9:36 AM
To: '[EMAIL PROTECTED]'
Subject: RE: auth-method


there are:
1. FORM:

login-config
 auth-methodFORM/auth-method
 form-login-config
form-login-pagelogin.jsp/form-login-page
form-error-pageerror.jsp/form-error-page
 /form-login-config
/login-config

login.jsp needs an html form with action='j_security_check'
and inputs named: 'j_username' and 'j_password'

2. BASIC:

login-config
 auth-methodBASIC/auth-method
 realm-namedefault/realm-name !-- dont actually know how this affects
the container --
/login-config

for this you will most likely need to configure your web server to accept
BASIC header information, and also configure it to either let those headers
through, or verify the user at the web-server level (at which point it will
let the request through).

3. CLIENT-CERT:

(this is a Client Certificate, like an SSL X509 Certificate):
login-config
 auth-methodCLIENT-CERT/auth-method
/login-config

you'll probably need to do the same thing as BASIC, except instead of BASIC
headers, you'll need certain certificate headers to get through - this is
web-server dependant what they're called.

4. DIGEST - Not supported in all containers:

login-config
 auth-methodDIGEST/auth-method
/login-config

Tim Julien
HP middleware

-Original Message-
From: Batsheva Raviv [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 12:20 PM
To: Tomcat Usr (E-mail)
Subject: auth-method


I have found about 2 or 3 type of auth-method Basic, Form and digest. Are
there more?
Can someone help me find documentation how should I set the Login-config.
Thank you,
Batsheva





ajp12 vs ajp13 for Tomcat 3.2.1

2001-03-28 Thread Peter Dai

Could someone please clarify the following for me?

Besides SSL via JSSE, what else do I lose if I use ajp12 instead of ajp13?

(ajp13 is supposed to be faster, right?).

The reason that I would like to stay with ajp12 is ajp13 can not handle POST
with object.

Thanks,

Peter




Security Constraints

2001-03-28 Thread Martin Mauri

Hi users!

I'm trying to configure the security constraints with FORM login method.
I've defined to name the rola as "role1" but where and how do I add users to
that roles and where do I configure their passwords?

regards.

Martin


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




log4j in Tomcat 4.x

2001-03-28 Thread Ceki Gülcü


Hello,

I would like to inquire about the status of log4j in Tomcat 4.x, more specifically in 
Catalina. I had heard through the grapevine that Catalina was going to use log4j 
internally. Is this correct? Thanks for any info on this matter. Ceki



--
Ceki Glc  Web: http://qos.ch
email: [EMAIL PROTECTED] (preferred)
 [EMAIL PROTECTED]

I hope to see you at my ApacheCon 2001 presentation 
entitled "Log4j, A Logging Package for Java".

See http://ApacheCon.Com/2001/US/ for more details.




BY ANY BEANS NECESSARY!

2001-03-28 Thread Arif Tayebali

Does anyone know where to place JavaBeans in Tomcat??
And how do I reference these Beans from JSP pages??
And are these beans are to be saved as .class files??

Tomcat is located at D:\Tomcat
Webapps is located at D:\webpage\jsp

I have compiled my Beans and placed them in the 

D:\Tomcat\webapps\examples\WEB-INF\classes dir

But receivee this error at runtime:

Root cause: 
  java.lang.ClassNotFoundException: Unable to load class TimeBean

The bean looks like this:

public class TimeBean {

   private int hours;
   private int minutes;

   public TimeBean() {
  java.util.Date now = new java.util.Date();
  this.hours = now.getHours();
  this.minutes = now.getMinutes();
   }

   public int getHours() {
  return hours;
   }

   public int getMinutes() {
  return minutes;
   }

}

and the jsp file looks like this:

jsp:useBean id="help" scope="session" class="TimeBean" /
jsp:setProperty name="help" property="*" /

html
body
You entered the input, bjsp:getProperty name="help"
property="minutes"//bbr
/body
/html

Thanks in advance!



Compiling mod_webapp.c

2001-03-28 Thread Jack Lauman

I downloaded the tomcat v4.0 from CVS, how do I get the Apache module
to compile under RedHat 7.0?

Jack



mapping initial parameters

2001-03-28 Thread Helen Zeng

Hi,

I am porting a small application from Jserv to Tomcat.

I have calls in html files:
/servlet/servlet/com.mycompany.aaa.Exec?COMMANDNAME=panel.

The way I mapped it in the web.xml file look like this:

servlet
  servlet-name
Panel
  /servlet-name
  servlet-class
com.mycompany.aaa.Exec
  /servlet-class
  init-param
param-nameCOMMANDNAME/param-name
param-valuepanel/param-value
  /init-param
/servlet
servlet-mapping

servlet-namePanel/servlet-name
url-pattern/servlet/com.mycompany.aaa.Exec?COMMANDNAME=panel/url-pattern
/servlet-mapping

But when I call with this url:
www.hostname.com:8080/servlet/servlet/com.mycompany.aaa.Exec?COMMANDNAME=panel

I got the following error message -

Error: 500

Location: /servlet/servlet/com.mycompany.aaa.Exec

Internal Servlet Error:

javax.servlet.ServletException: AAA Servlets initialization error:
java.lang.NullPointerException
at com.mycompany.aaa.AAAServlet.init(AAAServlet.java:98)
at com.mycompany.aaa.Exec.init(Exec.java:145)
at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
at org.apache.tomcat.core.Handler.init(Handler.java:215)
at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
at org.apache.tomcat.core.Handler.service(Handler.java:254)
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)

What should I do to solve this problem?

Thank you in advance for your help!

Helen




Multiple files upload

2001-03-28 Thread Adilakshmi Lingam

Hi,

We need to upload all the files in a directory from the clients machine to
the server.
I've been reading that we could achieve that using the Oreilly's
MultipartRequest object. But I understood that you can do that file by file
only but not all the files if the client selects a directory.

If anyone has experience in uploading multiple files through a servlet, I
would appreciate if you could guide me in the right direction.

I was also considering using FTPClient class in sun.net package. But
couldn't find any documentation for that. Is it advisable to use that? any
thoughts on FTP from a servlet??

Thanks for your help,
Lakshmi




FW: context manager

2001-03-28 Thread Adilakshmi Lingam

Follow up to my mail.

This is what I've done based on some info from java forums.

1)I copied the entire tomcat dir into a new "tomcat2" directory.
2) Changed the port settings in file"/conf/server.xml" from 8080 to 8081 adn
from 8007 to 8008.
3) Changed the word "TOMCAT_HOME" to "TOMCAT2_HOME" in all the files in
"/bin" directory and created a "TOMCAT2_HOME" variable.

Now when I run the second tomcat server, and a servlet is invoked from a
html page, Nothing happens.
This is what I see in the server window.

2001-03-28 01:48:00 - ContextManager: Adding context Ctx( /examples )
2001-03-28 01:48:00 - ContextManager: Adding context Ctx( /admin )
2001-03-28 01:48:00 - ContextManager: Adding context Ctx( /development )
Starting tomcat. Check logs/tomcat.log for error messages
2001-03-28 01:48:00 - ContextManager: Adding context Ctx(  )
2001-03-28 01:48:00 - ContextManager: Adding context Ctx( /test )
2001-03-28 01:48:01 - PoolTcpConnector: Starting HttpConnectionHandler on
8081
2001-03-28 01:48:01 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
8008
2001-03-28 01:48:05 - Ctx(  ): 400 R( /) null
2001-03-28 01:48:05 - Ctx(  ): 400 R( /) null

Is there anything else that I need to change. I don't even see a tomcat.log
at all to check for error messages.

Thanks,
Lakshmi.

ps: running tomcat as a stand alone server and trying to run both the tomcat
instances at the same time.





-Original Message-
From: Adilakshmi Lingam [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 27, 2001 3:24 PM
To: [EMAIL PROTECTED]
Subject: context manager


Hi,

I've Tomcat 3.2.1 running on win 2k along with Jdk1.3
I would like to have two setups for development and testing.
Can someone point me to the right documentation or tell me how to do the
setup.

Thanks in advance,
Lakshmi.




RE: BY ANY BEANS NECESSARY!

2001-03-28 Thread Stefn F. Stefnsson

you need to compile your beans into "d:\webpage\jsp\WEB-INF\classes".
You shold look at documentation about webapps in the Servlet
specification and Tomcat documentation.

-Original Message-
From: Arif Tayebali [mailto:[EMAIL PROTECTED]]
Sent: 28. mars 2001 20:26
To: '[EMAIL PROTECTED]'
Subject: BY ANY BEANS NECESSARY!
Importance: High


Does anyone know where to place JavaBeans in Tomcat??
And how do I reference these Beans from JSP pages??
And are these beans are to be saved as .class files??

Tomcat is located at D:\Tomcat
Webapps is located at D:\webpage\jsp

I have compiled my Beans and placed them in the 

D:\Tomcat\webapps\examples\WEB-INF\classes dir

But receivee this error at runtime:

Root cause: 
  java.lang.ClassNotFoundException: Unable to load class TimeBean

The bean looks like this:

public class TimeBean {

   private int hours;
   private int minutes;

   public TimeBean() {
  java.util.Date now = new java.util.Date();
  this.hours = now.getHours();
  this.minutes = now.getMinutes();
   }

   public int getHours() {
  return hours;
   }

   public int getMinutes() {
  return minutes;
   }

}

and the jsp file looks like this:

jsp:useBean id="help" scope="session" class="TimeBean" /
jsp:setProperty name="help" property="*" /

html
body
You entered the input, bjsp:getProperty name="help"
property="minutes"//bbr
/body
/html

Thanks in advance!




Re: BY ANY BEANS NECESSARY!

2001-03-28 Thread Kevin Sangeelee

On Wed, 28 Mar 2001, Arif Tayebali wrote:

 Does anyone know where to place JavaBeans in Tomcat??
 And how do I reference these Beans from JSP pages??
 And are these beans are to be saved as .class files??
 

Make sure your beans are in a package, and that they are instantiated on
the JSP page using their fully qualified name: -

.../webapps/myapp/WEB-INF/classes/com/mydomain/TimeBean.class

and ... class="com.mydomain.TimeBean" ... in the useBean tags.

Remember to add a corresponding package directive at the top of your bean
code. That's all there is to it.





unscribe

2001-03-28 Thread Zenon Braga F.


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




need help with linux, apache, tomcat environment

2001-03-28 Thread Todd Pfaff

I'm having some problems getting started with tomcat.  My environment
consists of:

linux mandrake 7.2
linux 2.4.1 kernel
apache (Apache-AdvancedExtranetServer/1.3.14 (Linux-Mandrake/2mdk))
these bits downloaded from the jakarta-tomcat web site
  jakarta-tomcat-3.2.1.tar.gz
  mod_jk.so
  mod_jserv_tomcat.so

I've unpacked jakarta-tomcat-3.2.1.tar.gz into /usr/local/tomcat and I've
installed the mod_* files into /usr/lib/apache.  I added code to
httpd.conf to load the modules and include the appropriate tomcat
configuration files.

I have tomcat running and the example servlets run as expected when I
access them via port 8080 (ie. through the tomcat web server).

I've tried integrating tomcat with apache using either mod_jserv_tomcat.so
or mod_jk.so.

When using mod_jserv_tomcat.so, whenever I try to access an example
servlet, something is aborting and I see this apache error_log message:

[Wed Mar 28 16:02:59 2001] [notice] child pid 15023 exit signal
Segmentation fault (11)


When using mod_jk.so, I am including the mod_jk.conf-auto built by the
tomcat startup.  In this case, when I try to access an example servlet the
apache server complains:

[Wed Mar 28 16:16:07 2001] [error] [client xxx.xxx.xxx.xxx] File does not
exist: /usr/local/jakarta-tomcat-3.2.1/webapps/examples/servlet/HelloWorldExample


Why is apache looking for this file rather than invoking the
HelloWorldExample servlet?


Anyone have any ideas?  Does it look like I'm going to have to build my
own module binaries?

--
Todd Pfaff \  Email: [EMAIL PROTECTED]
Computing and Information Services  \ Voice: (905) 525-9140 x22920
ABB 132  \  FAX: (905) 528-3773
McMaster University   \
Hamilton, Ontario, Canada  L8S 4M1 \




mod_jk on Solaris 8

2001-03-28 Thread Ryan J. McDonough

I'm trying help a client build mod_jk on a Solaris 8 System. I'm running 
into some problems that I think are cause by something not being 
installed. I don't have root access to the box so I can't just install 
things. Like I said, the system is Solaris 8 running JDK 1.3 and Tomcat 
3.2.1. When I try to build mod_jk on the box as defined by the mod_jk 
howto, I get the following error:

cc -DEAPI -DMOD_PERL -DUSE_EXPAT -O -G -Kpic -I/usr/apache/include 
-I../jk
-I/usr/j2se/include -I
/usr/j2se/include/solaris -DSOLARIS  -c mod_jk.c
/usr/ucb/cc:  language optional software package not installed
apxs:Break: Command failed with rc=65536

I'm assuming something is missing in "cc". Also "make" is not installed 
on this system either, which I believe could be part of the problem but 
I haven't had enough time with Solaris to be sure. Are there any know 
issues with mod_jk on Solaris 8 or does this installation need something 
further. Thanks in advance.

Ryan-



Intended use for Tomcat web server

2001-03-28 Thread Dave Brown


Is the Tomcat Web Server intended for anything other than testing purposes?
It seems to be very reliable from my testing and I was wondering if anyone
has deployed it in a production environment.

How's it compare to Apache in performance?

Thanks,

Dave Brown




Who know Tomcat server can support Solaris 8

2001-03-28 Thread DC Yin

who know which version of Tomcat server support
Solaris 8

Dongcheng

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



Beans do not get reloaded

2001-03-28 Thread Boris Niyazov

Hi there,

I have Tomcat 3.2.1, Java SDK 1.3.0 installed on Solaris 7 machine.

I am having intermittent problems with beans reloading. It seems that sometimes 
the beans are not reloaded after the compilation, and the jsp page is referecing 
the old version of the bean. I have to restart tomcat in order for it to reload 
the beans.

Again I can't find a pattern when this happens but it does happen. I'm not sure 
whether it's a memory leak or I am missing something. 

Any help/hint will be greatly appreciated.

Thanks in advance,

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


 




error 500, cannot find sun.tools.javac.Main

2001-03-28 Thread eric

I've seen that this problem has been addressed several times in the 
listserv logs but none of the solutions seem to fit my problem.

Tomcat will start and will work with servlet's but it will not run JSP's
when I try to run a JSP I get an class not found exception that cannot fine 
sun.tools.javac.Main, the full text of the error message is included at the 
end of this message.

I have included tools.jar and the other jar files that are needed in my 
classpath, TOMCAT_HOME and JAVA_HOME have been set. My path does include 
jdk/bin. I am using IBM's jdk rather htan sun's but I dont' think that 
should cause any problems. Running under Linux, debian, kernel 2.4.2.

Using 
classpath: /usr/java/tomcat/lib/ant.jar:/usr/java/tomcat/lib/jasper.jar:/usr
/java/tomcat/lib/jaxp.jar:/usr/java/tomcat/lib/parser.jar:/usr/java/tomcat/l
ib/servlet.jar:/usr/java/tomcat/lib/test:/usr/java/tomcat/lib/webserver.jar:
/usr/java/jdk//lib/tools.jar:.

$TOMCAT_HOME=/usr/java/tomat
$JAVA_HOME-/usr/java/jdk/

I don't think it should matter, but the folder jdk is a symlink 
to /usr/java/IBMJava2-13/



tomcat error message:

digitalsorcery:/usr/java/tomcat# 2001-03-28 04:35:04 - Ctx( /examples ): 
Exception in: R( /examples + /jsp/num/numguess.jsp + null) - 
javax.servlet.ServletException: sun/tools/javac/Main
at java.lang.Throwable.init(Throwable.java:96)
at java.lang.Exception.init(Exception.java:44)
at javax.servlet.ServletException.init(ServletException.java:158)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:388)
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:498)
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:240)
at org.apache.jasper.servlet.JspServlet.doLoadJSP
(JspServlet.java:448)
at org.apache.jasper.servlet.JasperLoader12.loadJSP
(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:419)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary
(JspServlet.java:151)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
(JspServlet.java:163)
at org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:307)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
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:498)





Re: error 500, cannot find sun.tools.javac.Main

2001-03-28 Thread Srikanth Kurdukar

Remove the extra '/' in your classpath at (/usr/java/jdk//lib/tools.jar) and
try again.

--Srikanth

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 28, 2001 5:20 PM
Subject: error 500, cannot find sun.tools.javac.Main


I've seen that this problem has been addressed several times in the
listserv logs but none of the solutions seem to fit my problem.

Tomcat will start and will work with servlet's but it will not run JSP's
when I try to run a JSP I get an class not found exception that cannot fine
sun.tools.javac.Main, the full text of the error message is included at the
end of this message.

I have included tools.jar and the other jar files that are needed in my
classpath, TOMCAT_HOME and JAVA_HOME have been set. My path does include
jdk/bin. I am using IBM's jdk rather htan sun's but I dont' think that
should cause any problems. Running under Linux, debian, kernel 2.4.2.

Using
classpath: /usr/java/tomcat/lib/ant.jar:/usr/java/tomcat/lib/jasper.jar:/usr
/java/tomcat/lib/jaxp.jar:/usr/java/tomcat/lib/parser.jar:/usr/java/tomcat/l
ib/servlet.jar:/usr/java/tomcat/lib/test:/usr/java/tomcat/lib/webserver.jar:
/usr/java/jdk//lib/tools.jar:.

$TOMCAT_HOME=/usr/java/tomat
$JAVA_HOME-/usr/java/jdk/

I don't think it should matter, but the folder jdk is a symlink
to /usr/java/IBMJava2-13/



tomcat error message:

digitalsorcery:/usr/java/tomcat# 2001-03-28 04:35:04 - Ctx( /examples ):
Exception in: R( /examples + /jsp/num/numguess.jsp + null) -
javax.servlet.ServletException: sun/tools/javac/Main
at java.lang.Throwable.init(Throwable.java:96)
at java.lang.Exception.init(Exception.java:44)
at javax.servlet.ServletException.init(ServletException.java:158)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:388)
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:498)
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:240)
at org.apache.jasper.servlet.JspServlet.doLoadJSP
(JspServlet.java:448)
at org.apache.jasper.servlet.JasperLoader12.loadJSP
(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:419)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary
(JspServlet.java:151)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
(JspServlet.java:163)
at org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:307)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
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:498)







RE: error 500, cannot find sun.tools.javac.Main

2001-03-28 Thread Stefán F. Stefánsson

Have you tried changing JAVA_HOME to point directly to the folder?  It's
worth the try.

Another thing I would like to know is how you are starting Tomcat up.
Are you doing it with the shell script or through something like ant?

Regards, Stefan.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 28. mars 2001 22:20
To: [EMAIL PROTECTED]
Subject: error 500, cannot find sun.tools.javac.Main


I've seen that this problem has been addressed several times in the 
listserv logs but none of the solutions seem to fit my problem.

Tomcat will start and will work with servlet's but it will not run JSP's
when I try to run a JSP I get an class not found exception that cannot
fine 
sun.tools.javac.Main, the full text of the error message is included at
the 
end of this message.

I have included tools.jar and the other jar files that are needed in my 
classpath, TOMCAT_HOME and JAVA_HOME have been set. My path does include

jdk/bin. I am using IBM's jdk rather htan sun's but I dont' think that 
should cause any problems. Running under Linux, debian, kernel 2.4.2.

Using 
classpath:
/usr/java/tomcat/lib/ant.jar:/usr/java/tomcat/lib/jasper.jar:/usr
/java/tomcat/lib/jaxp.jar:/usr/java/tomcat/lib/parser.jar:/usr/java/tomc
at/l
ib/servlet.jar:/usr/java/tomcat/lib/test:/usr/java/tomcat/lib/webserver.
jar:
/usr/java/jdk//lib/tools.jar:.

$TOMCAT_HOME=/usr/java/tomat
$JAVA_HOME-/usr/java/jdk/

I don't think it should matter, but the folder jdk is a symlink 
to /usr/java/IBMJava2-13/



tomcat error message:

digitalsorcery:/usr/java/tomcat# 2001-03-28 04:35:04 - Ctx( /examples ):

Exception in: R( /examples + /jsp/num/numguess.jsp + null) - 
javax.servlet.ServletException: sun/tools/javac/Main
at java.lang.Throwable.init(Throwable.java:96)
at java.lang.Exception.init(Exception.java:44)
at
javax.servlet.ServletException.init(ServletException.java:158)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:388)
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:498)
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:240)
at org.apache.jasper.servlet.JspServlet.doLoadJSP
(JspServlet.java:448)
at org.apache.jasper.servlet.JasperLoader12.loadJSP
(JasperLoader12.java:146)
at
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:419)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary
(JspServlet.java:151)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
(JspServlet.java:163)
at org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:307)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
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:498)





RE: error 500, cannot find sun.tools.javac.Main

2001-03-28 Thread Stefán F. Stefánsson

or that might be it :o)

-Original Message-
From: Srikanth Kurdukar [mailto:[EMAIL PROTECTED]]
Sent: 28. mars 2001 22:27
To: [EMAIL PROTECTED]
Subject: Re: error 500, cannot find sun.tools.javac.Main


Remove the extra '/' in your classpath at (/usr/java/jdk//lib/tools.jar)
and
try again.

--Srikanth

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 28, 2001 5:20 PM
Subject: error 500, cannot find sun.tools.javac.Main


I've seen that this problem has been addressed several times in the
listserv logs but none of the solutions seem to fit my problem.

Tomcat will start and will work with servlet's but it will not run JSP's
when I try to run a JSP I get an class not found exception that cannot
fine
sun.tools.javac.Main, the full text of the error message is included at
the
end of this message.

I have included tools.jar and the other jar files that are needed in my
classpath, TOMCAT_HOME and JAVA_HOME have been set. My path does include
jdk/bin. I am using IBM's jdk rather htan sun's but I dont' think that
should cause any problems. Running under Linux, debian, kernel 2.4.2.

Using
classpath:
/usr/java/tomcat/lib/ant.jar:/usr/java/tomcat/lib/jasper.jar:/usr
/java/tomcat/lib/jaxp.jar:/usr/java/tomcat/lib/parser.jar:/usr/java/tomc
at/l
ib/servlet.jar:/usr/java/tomcat/lib/test:/usr/java/tomcat/lib/webserver.
jar:
/usr/java/jdk//lib/tools.jar:.

$TOMCAT_HOME=/usr/java/tomat
$JAVA_HOME-/usr/java/jdk/

I don't think it should matter, but the folder jdk is a symlink
to /usr/java/IBMJava2-13/



tomcat error message:

digitalsorcery:/usr/java/tomcat# 2001-03-28 04:35:04 - Ctx( /examples ):
Exception in: R( /examples + /jsp/num/numguess.jsp + null) -
javax.servlet.ServletException: sun/tools/javac/Main
at java.lang.Throwable.init(Throwable.java:96)
at java.lang.Exception.init(Exception.java:44)
at
javax.servlet.ServletException.init(ServletException.java:158)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:388)
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:498)
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:240)
at org.apache.jasper.servlet.JspServlet.doLoadJSP
(JspServlet.java:448)
at org.apache.jasper.servlet.JasperLoader12.loadJSP
(JasperLoader12.java:146)
at
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:419)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary
(JspServlet.java:151)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
(JspServlet.java:163)
at org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:307)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
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:498)







jbuilder - setting tomcat.home

2001-03-28 Thread Heather M. Buch

Hi. I know this has been hashed over already, but I am having trouble
setting tomcat.home from jbuilder, and therefore debugging servlets.


When I attempt to set a breakpoint and step into a servlet, jbuilder
gives me this message:



/var/local/jbuilder4/jdk1.3/bin/java -classpath
"/var/local/jbuilder4/tomcat/lib/webserver.jar:/var/local/jbuilder4/tomcat/lib/jasper.jar:/var/local/jbuilder4/tomcat/lib/xml.jar:/var/local/jbuilder4/lib/servlet.jar:/var/local/jbuilder4/lib/webserverglue.jar:/var/local/jbuilder4/jbproject/okapi_servlets/classes:/var/local/jbuilder4/lib/servlet.jar:/var/local/jbuilder4/jdk1.3/jre/lib/javaplugin.jar:/var/local/jbuilder4/jdk1.3/jre/lib/i18n.jar:/var/local/jbuilder4/jdk1.3/jre/lib/ext/indicim.jar:/var/local/jbuilder4/jdk1.3/jre/lib/rt.jar:/var/local/jbuilder4/jdk1.3/lib/tools.jar:/var/local/jbuilder4/jdk1.3/lib/dt.jar:/var/local/jbuilder4/jdk1.3/demo/jfc/Java2D/Java2Demo.jar"
   
-Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,address=myhost@mydomain:1498,suspend=y
org.apache.tomcat.startup.Tomcat -config /conf/server8080.xml
FATAL: configuration error
java.lang.Exception: Can't open config file: /conf/server8080.xml due
to: java.io.FileNotFoundException: /conf/server8080.xml (No such file or
directory)
at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:214)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)


it looks for server8080.xml in "/". I guess this is because TOMCAT_HOME
is not set.

So, I go into Project Properties - Run - JSP/Servlet - VM Parameters,
and do:

-Dtomcat.home=/var/local/jbuilder4/tomcat

Then I try to step through again and get this:

/var/local/jbuilder4/jdk1.3/bin/java -classpath
"/var/local/jbuilder4/tomcat/lib/webserver.jar:/var/local/jbuilder4/tomcat/lib/jasper.jar:/var/local/jbuilder4/tomcat/lib/xml.jar:/var/local/jbuilder4/lib/servlet.jar:/var/local/jbuilder4/lib/webserverglue.jar:/var/local/jbuilder4/jbproject/okapi_servlets/classes:/var/local/jbuilder4/lib/servlet.jar:/var/local/jbuilder4/jdk1.3/jre/lib/javaplugin.jar:/var/local/jbuilder4/jdk1.3/jre/lib/i18n.jar:/var/local/jbuilder4/jdk1.3/jre/lib/ext/indicim.jar:/var/local/jbuilder4/jdk1.3/jre/lib/rt.jar:/var/local/jbuilder4/jdk1.3/lib/tools.jar:/var/local/jbuilder4/jdk1.3/lib/dt.jar:/var/local/jbuilder4/jdk1.3/demo/jfc/Java2D/Java2Demo.jar"
  
-Dtomcat.home=/var/local/jbuilder4/tomcat -Xdebug -Xnoagent
-Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,address=myhost@mydomain:1543,suspend=y
org.apache.tomcat.startup.Tomcat -config /conf/server8080.xml
FATAL: configuration error
java.lang.Exception: Can't open config file: /conf/server8080.xml due
to: java.io.FileNotFoundException: /conf/server8080.xml (No such file or
directory)
at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:214)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)



it just put -Dtomcat.home in as another java parameter, but it looks
like org.apache.tomcat.startup.Tomcat still can't see it because it
still looks for server8080.xml in "/". Has anyone had this problem? Is
there a remedy?

Thanks!

Heather Buch



Re: mod_jk on Solaris 8

2001-03-28 Thread Simon Chatfield


You'll need to install a binary gcc in your own directory if you don't have
root. SUN charges for the cc compiler so that's your best option. after
installing gcc, make sure /usr/ccs/bin is in your path as well for the
linker and other required tools.

there is also a version of make in /usr/ccs/bin, though I don't like it as
much as gmake. which you can download and compile after installing gcc.

"Ryan J. McDonough" wrote:

 I'm trying help a client build mod_jk on a Solaris 8 System. I'm running
 into some problems that I think are cause by something not being
 installed. I don't have root access to the box so I can't just install
 things. Like I said, the system is Solaris 8 running JDK 1.3 and Tomcat
 3.2.1. When I try to build mod_jk on the box as defined by the mod_jk
 howto, I get the following error:

 cc -DEAPI -DMOD_PERL -DUSE_EXPAT -O -G -Kpic -I/usr/apache/include
 -I../jk
 -I/usr/j2se/include -I
 /usr/j2se/include/solaris -DSOLARIS  -c mod_jk.c
 /usr/ucb/cc:  language optional software package not installed
 apxs:Break: Command failed with rc=65536

 I'm assuming something is missing in "cc". Also "make" is not installed
 on this system either, which I believe could be part of the problem but
 I haven't had enough time with Solaris to be sure. Are there any know
 issues with mod_jk on Solaris 8 or does this installation need something
 further. Thanks in advance.

 Ryan-




Re: How to get request prameters in right order.

2001-03-28 Thread Samuel Arnod-Prin

There is a simple way...
don't call request.getParameter
otherwise the post-stream will be read.
and read it by youself (request.getInputStream or something like that..
and parse the string yourself)

Krzysztof Zielinski wrote:

 Hello Filip,

 Tuesday, March 27, 2001, 7:24:27 PM, you wrote:

 FH public java.lang.String getQueryString()
 FH in HTTPServletRequest and you can parse them yourself

 I'm afraid that parameters passed by the help method="post" in HTML
 Form aren't available by getQueryString().

 I can't use method="get" in HTML Form.

 --
 Best regards,
  Krzysztofmailto:[EMAIL PROTECTED]
   ICQ # 47933362




FW: context manager

2001-03-28 Thread Adilakshmi Lingam


Hi,

Can someone please show me how to setup multiple instances of Tomcat as two
standone servers.

pretty please...

TIA,
Lakshmi


-Original Message-
From: Adilakshmi Lingam [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 2:43 PM
To: Tomcat-User@Jakarta. Apache. Org
Subject: FW: context manager


Follow up to my mail.

This is what I've done based on some info from java forums.

1)I copied the entire tomcat dir into a new "tomcat2" directory.
2) Changed the port settings in file"/conf/server.xml" from 8080 to 8081 adn
from 8007 to 8008.
3) Changed the word "TOMCAT_HOME" to "TOMCAT2_HOME" in all the files in
"/bin" directory and created a "TOMCAT2_HOME" variable.

Now when I run the second tomcat server, and a servlet is invoked from a
html page, Nothing happens.
This is what I see in the server window.

2001-03-28 01:48:00 - ContextManager: Adding context Ctx( /examples )
2001-03-28 01:48:00 - ContextManager: Adding context Ctx( /admin )
2001-03-28 01:48:00 - ContextManager: Adding context Ctx( /development )
Starting tomcat. Check logs/tomcat.log for error messages
2001-03-28 01:48:00 - ContextManager: Adding context Ctx(  )
2001-03-28 01:48:00 - ContextManager: Adding context Ctx( /test )
2001-03-28 01:48:01 - PoolTcpConnector: Starting HttpConnectionHandler on
8081
2001-03-28 01:48:01 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
8008
2001-03-28 01:48:05 - Ctx(  ): 400 R( /) null
2001-03-28 01:48:05 - Ctx(  ): 400 R( /) null

Is there anything else that I need to change. I don't even see a tomcat.log
at all to check for error messages.

Thanks,
Lakshmi.

ps: running tomcat as a stand alone server and trying to run both the tomcat
instances at the same time.





-Original Message-
From: Adilakshmi Lingam [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 27, 2001 3:24 PM
To: [EMAIL PROTECTED]
Subject: context manager


Hi,

I've Tomcat 3.2.1 running on win 2k along with Jdk1.3
I would like to have two setups for development and testing.
Can someone point me to the right documentation or tell me how to do the
setup.

Thanks in advance,
Lakshmi.




Re: Who know Tomcat server can support Solaris 8

2001-03-28 Thread Tom Horn

I run version 3.2.1 on Solaris 8. 
gp

--- DC Yin [EMAIL PROTECTED] wrote:
 who know which version of Tomcat server support
 Solaris 8
 
 Dongcheng
 

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


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text



Tomcat Help?

2001-03-28 Thread Ben Sifuentes

All,

I've posted several times and have had no response to any of my questions.

Most of my questions are related to setup and about context and a Thread
Exception.

Could someone please give me some help?

If I'm posting to the wrong group please let me know and direct me to the
right place?
If for some reason you can't post to me. Please post directly to the User
group and let me know.

Thanks,
-Ben




Re: mod_jk on Solaris 8

2001-03-28 Thread Tom Horn

If your client got the minimal Solaris 8 configuration
then he probably did not register most of the software
that came with the box.  You will have to get cc and
make somewhere else unless he registers the software
that is on the CDs.  Good luck.
gp

--- "Ryan J. McDonough" [EMAIL PROTECTED]
wrote:
 I'm trying help a client build mod_jk on a Solaris 8
 System. I'm running 
 into some problems that I think are cause by
 something not being 
 installed. I don't have root access to the box so I
 can't just install 
 things. Like I said, the system is Solaris 8 running
 JDK 1.3 and Tomcat 
 3.2.1. When I try to build mod_jk on the box as
 defined by the mod_jk 
 howto, I get the following error:
 
 cc -DEAPI -DMOD_PERL -DUSE_EXPAT -O -G -Kpic
 -I/usr/apache/include 
 -I../jk
 -I/usr/j2se/include -I
 /usr/j2se/include/solaris -DSOLARIS  -c mod_jk.c
 /usr/ucb/cc:  language optional software package not
 installed
 apxs:Break: Command failed with rc=65536
 
 I'm assuming something is missing in "cc". Also
 "make" is not installed 
 on this system either, which I believe could be part
 of the problem but 
 I haven't had enough time with Solaris to be sure.
 Are there any know 
 issues with mod_jk on Solaris 8 or does this
 installation need something 
 further. Thanks in advance.
 
 Ryan-


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text



does not see jsp files, err-404

2001-03-28 Thread Tom Horn

We just recently moved and so there were some
modifications to the LAN.  Well, for some reason some
but not all examples quit working like numguess.jsp.
this is the error:
"Ctx( /examples ): 404 R( /examples +
/jsp/num/numguess.jsp + null) JSP file not found"
Anyone might have any idea what happened.
Thanks, gp

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text



Modify startup script – allocate more memory

2001-03-28 Thread brian luk

Hi,
-- My servlet got java.lang.OutOfMemoryError and my
Solaris machine is still have free memory left ( no
disk swap occur ).  Any way to modify tomcat startup
file to allocate more memory?

-- Does VM only use only PART of the system memroy? 
like 32MB or 64MB out of 128MB system memory? would
that means VM will never use the virtual memory ( Disk
Swap )? 
 
-- Why VM doesn't use all the system RAM ( for
example128MB) by default?  and need to manually
specify the amount of system RAM it use through java
-Xmx128m option? 

-- If one specify VM to use as much as memory it can
use ( Include virtual memroy ) disk swap, then I will
never get java.lang.OutOfMemoryError, right?

thanks.



__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text



RE: context manager

2001-03-28 Thread Ben Sifuentes

This document shows how to do this. Currently I am doing this but I've got a
few errors with the process.

http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/uguide/tomcat_ug.htm
l


-Ben

-Original Message-
From: Adilakshmi Lingam [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 5:54 PM
To: [EMAIL PROTECTED]
Subject: FW: context manager



Hi,

Can someone please show me how to setup multiple instances of Tomcat as two
standone servers.

pretty please...

TIA,
Lakshmi


-Original Message-
From: Adilakshmi Lingam [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 2:43 PM
To: Tomcat-User@Jakarta. Apache. Org
Subject: FW: context manager


Follow up to my mail.

This is what I've done based on some info from java forums.

1)I copied the entire tomcat dir into a new "tomcat2" directory.
2) Changed the port settings in file"/conf/server.xml" from 8080 to 8081 adn
from 8007 to 8008.
3) Changed the word "TOMCAT_HOME" to "TOMCAT2_HOME" in all the files in
"/bin" directory and created a "TOMCAT2_HOME" variable.

Now when I run the second tomcat server, and a servlet is invoked from a
html page, Nothing happens.
This is what I see in the server window.

2001-03-28 01:48:00 - ContextManager: Adding context Ctx( /examples )
2001-03-28 01:48:00 - ContextManager: Adding context Ctx( /admin )
2001-03-28 01:48:00 - ContextManager: Adding context Ctx( /development )
Starting tomcat. Check logs/tomcat.log for error messages
2001-03-28 01:48:00 - ContextManager: Adding context Ctx(  )
2001-03-28 01:48:00 - ContextManager: Adding context Ctx( /test )
2001-03-28 01:48:01 - PoolTcpConnector: Starting HttpConnectionHandler on
8081
2001-03-28 01:48:01 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
8008
2001-03-28 01:48:05 - Ctx(  ): 400 R( /) null
2001-03-28 01:48:05 - Ctx(  ): 400 R( /) null

Is there anything else that I need to change. I don't even see a tomcat.log
at all to check for error messages.

Thanks,
Lakshmi.

ps: running tomcat as a stand alone server and trying to run both the tomcat
instances at the same time.





-Original Message-
From: Adilakshmi Lingam [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 27, 2001 3:24 PM
To: [EMAIL PROTECTED]
Subject: context manager


Hi,

I've Tomcat 3.2.1 running on win 2k along with Jdk1.3
I would like to have two setups for development and testing.
Can someone point me to the right documentation or tell me how to do the
setup.

Thanks in advance,
Lakshmi.




FW: Erreur du systeme de messagerie - Courrier renvoye / Mail System Error - Returned Mail

2001-03-28 Thread Ben Sifuentes

Why am I getting this?

Thanks,
-Ben

-Original Message-
From: Administrateur du courrier / Mail Administrator
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 6:25 PM
To: [EMAIL PROTECTED]
Subject: Erreur du systeme de messagerie - Courrier renvoye / Mail
System Error - Returned Mail


Ce message n=27a pas =E9t=E9 remis pour la raison suivante / This Message=
 was undeliverable due to the following reason=3A

Les adresses de destination suivantes sont inconnues (v=E9rifiez-les puis=
 renvoyez le message) / The following destination addresses were unknown =
(please check the addresses and re-mail the message)=3A

SMTP [EMAIL PROTECTED]

Veuillez ne pas r=E9pondre =E0 / Please do not reply to
[EMAIL PROTECTED]
mais plut=F4t =E0 / but rather to =3Cassistance=40videotron=2Eca=3E=2E





Final-Recipient: rfc822;[EMAIL PROTECTED]
Diagnostic-Code: smtp;551 User unknown
Action: failed 
Status: 5.1.6
Last-Attempt-Date: Wed, 28 Mar 2001 18:24:54 -0500




All,

I've posted several times and have had no response to any of my questions.

Most of my questions are related to setup and about context and a Thread
Exception.

Could someone please give me some help?

If I'm posting to the wrong group please let me know and direct me to the
right place?
If for some reason you can't post to me. Please post directly to the User
group and let me know.

Thanks,
-Ben





Re: Modify startup script - allocate more memory

2001-03-28 Thread Simon Chatfield


You need to allocate the memory using the jvm argument -Xmxamount of
megabitesM

Tomcat reads an env variable named TOMCAT_OPTS, (ex. set
TOMCAT_OPTS=-Xmx128M )

brian luk wrote:

 Hi,
 -- My servlet got java.lang.OutOfMemoryError and my
 Solaris machine is still have free memory left ( no
 disk swap occur ).  Any way to modify tomcat startup
 file to allocate more memory?

 -- Does VM only use only PART of the system memroy?
 like 32MB or 64MB out of 128MB system memory? would
 that means VM will never use the virtual memory ( Disk
 Swap )?

 -- Why VM doesn't use all the system RAM ( for
 example128MB) by default?  and need to manually
 specify the amount of system RAM it use through java
 -Xmx128m option?

 -- If one specify VM to use as much as memory it can
 use ( Include virtual memroy ) disk swap, then I will
 never get java.lang.OutOfMemoryError, right?

 thanks.

 __
 Do You Yahoo!?
 Get email at your own domain with Yahoo! Mail.
 http://personal.mail.yahoo.com/?.refer=text




BEANS CONFIG ???

2001-03-28 Thread Arif Tayebali

Does anyone know where to place JavaBeans if 

Tomcat home is located at D:\Tomcat
Web Page is located at D:\some other dir\jsp

And how do I reference these Beans from JSP pages??

I have compiled my Beans, but should I place them in the 

  D:\Tomcat\webapps\examples\WEB-INF\classes dir?

Is there any additional configuration to Tomcat needed in this setup?

Gen Info:

WinNT
Apache 1.3
Tomcat (mod_jk)


Thanks in advance!



RE: BY ANY BEANS NECESSARY!

2001-03-28 Thread Arif Tayebali

Do instantiate a bean with:

  %@ import="/webapps/myapp/WEB-INF/classes/com/mydomain/TimeBean.class" %

LMK

-Original Message-
From: Kevin Sangeelee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 12:38 PM
To: '[EMAIL PROTECTED]'
Subject: Re: BY ANY BEANS NECESSARY!


On Wed, 28 Mar 2001, Arif Tayebali wrote:

 Does anyone know where to place JavaBeans in Tomcat??
 And how do I reference these Beans from JSP pages??
 And are these beans are to be saved as .class files??
 

Make sure your beans are in a package, and that they are instantiated on
the JSP page using their fully qualified name: -

.../webapps/myapp/WEB-INF/classes/com/mydomain/TimeBean.class

and ... class="com.mydomain.TimeBean" ... in the useBean tags.

Remember to add a corresponding package directive at the top of your bean
code. That's all there is to it.




URI Rewrtigning with mod_SSL

2001-03-28 Thread Wolle

Hello ,
I have wrote some Java Servlets, that works with Session Tracking.
I use the response.encodeURL Methode for it.
 when the client has disabled cookies, the jsessionID is suffixed. Thats

fine ;-)
 this will work with Tomcat , and Tomcat over Apache. Now, when I User
mod_ssl for the connection,  the jsessionID is gone, an no session
traking is possible without cookies.
My System is : Apache 1.3.17-10, jdk 1.3.0 ,mod_ssl-2.7.1-0,
jakarta-tomcat 3.2.1 and I've tried jakarta-Tomcat3.2.2b2

Has someone the same experience, some workaround or so ??

plz write brack, it's urgently and very important,

thank you for inconvenience,
Michael
[EMAIL PROTECTED]






getPathInfo()

2001-03-28 Thread Dalia, Keith A - TOS-DITT1

I want to use the request.getPathInfo() but am not sure how it works with
tomcat's config.  When you alias you servlet you specify a path

ie:
servlet
servlet-nameTWAUTHID/servlet-name
servlet-classtwauthid/servlet-class
/servlet

servlet-mapping
servlet-nameTWAUTHID/servlet-name
url-pattern/twauthid/url-pattern
/servlet-mapping

so in the twauthid servlet getPathInfo() returns null.

Do I have to do something different with the url-pattern if I want to use
getPathInfor()?


TIA, Keith



RE: mod_jk on Solaris 8

2001-03-28 Thread Mike Braden

OK.  Try this:

# file `which cc`
/usr/ucb/cc:executable /usr/bin/sh script

Solaris 8 ships with a batch file called cc in /usr/ucb

For a compiler, download the gcc package from
http://www.sunfreeware.com

as for make, you should check your path.  Make is in
/usr/cc/bin

# which make
/usr/ccs/bin/make

If make is not located there, then you should check to see
if the system was setup with the Entire Distribution or
developers distribution options.  If it was installed
with only the base distribution (packages), then
the libraries and utilities for compiling software
will not be installed.

Also note, you'll have much better luck building mod_jk
if you build apache from source.

There is a build script in the TC3.3m2 package for mod_jk
that can be used with any TC3 version.

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

-Original Message-
From: Ryan J. McDonough [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 4:48 PM
To: [EMAIL PROTECTED]
Subject: mod_jk on Solaris 8


I'm trying help a client build mod_jk on a Solaris 8 System. I'm running 
into some problems that I think are cause by something not being 
installed. I don't have root access to the box so I can't just install 
things. Like I said, the system is Solaris 8 running JDK 1.3 and Tomcat 
3.2.1. When I try to build mod_jk on the box as defined by the mod_jk 
howto, I get the following error:

cc -DEAPI -DMOD_PERL -DUSE_EXPAT -O -G -Kpic -I/usr/apache/include 
-I../jk
-I/usr/j2se/include -I
/usr/j2se/include/solaris -DSOLARIS  -c mod_jk.c
/usr/ucb/cc:  language optional software package not installed
apxs:Break: Command failed with rc=65536

I'm assuming something is missing in "cc". Also "make" is not installed 
on this system either, which I believe could be part of the problem but 
I haven't had enough time with Solaris to be sure. Are there any know 
issues with mod_jk on Solaris 8 or does this installation need something 
further. Thanks in advance.

Ryan-



RE: BY ANY BEANS NECESSARY!

2001-03-28 Thread Tom Horn

Are you saying that the bean will not be loaded if it
is not in a package?!
Thanks,gp

--- Arif Tayebali [EMAIL PROTECTED] wrote:
 Do instantiate a bean with:
 
   %@

import="/webapps/myapp/WEB-INF/classes/com/mydomain/TimeBean.class"
 %
 
 LMK
 
 -Original Message-
 From: Kevin Sangeelee [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 28, 2001 12:38 PM
 To: '[EMAIL PROTECTED]'
 Subject: Re: BY ANY BEANS NECESSARY!
 
 
 On Wed, 28 Mar 2001, Arif Tayebali wrote:
 
  Does anyone know where to place JavaBeans in
 Tomcat??
  And how do I reference these Beans from JSP
 pages??
  And are these beans are to be saved as .class
 files??
  
 
 Make sure your beans are in a package, and that they
 are instantiated on
 the JSP page using their fully qualified name: -
 

.../webapps/myapp/WEB-INF/classes/com/mydomain/TimeBean.class
 
 and ... class="com.mydomain.TimeBean" ... in the
 useBean tags.
 
 Remember to add a corresponding package directive at
 the top of your bean
 code. That's all there is to it.
 


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text



RE: BY ANY BEANS NECESSARY!

2001-03-28 Thread Arif Tayebali

Well the question is really whether the beans and jsps need to be under
webapps/examples to work. For me, the jsp are in a dir called D:\webpage and
the beans need to be in a place where I cannot determine.

See what I mean?


-Original Message-
From: Tom Horn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 4:47 PM
To: [EMAIL PROTECTED]
Subject: RE: BY ANY BEANS NECESSARY!


Are you saying that the bean will not be loaded if it
is not in a package?!
Thanks,gp

--- Arif Tayebali [EMAIL PROTECTED] wrote:
 Do instantiate a bean with:
 
   %@ import="/webapps/myapp/WEB-INF/classes/com/mydomain/TimeBean.class"
%
 
 LMK
 
 -Original Message-
 From: Kevin Sangeelee [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 28, 2001 12:38 PM
 To: '[EMAIL PROTECTED]'
 Subject: Re: BY ANY BEANS NECESSARY!
 
 
 On Wed, 28 Mar 2001, Arif Tayebali wrote:
 
  Does anyone know where to place JavaBeans in
 Tomcat??
  And how do I reference these Beans from JSP
 pages??
  And are these beans are to be saved as .class
 files??
  
 
 Make sure your beans are in a package, and that they
 are instantiated on
 the JSP page using their fully qualified name: -
 

.../webapps/myapp/WEB-INF/classes/com/mydomain/TimeBean.class
 
 and ... class="com.mydomain.TimeBean" ... in the
 useBean tags.
 
 Remember to add a corresponding package directive at
 the top of your bean
 code. That's all there is to it.
 


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text



  1   2   >