Re: Install Apache3.14 with mod_jk.so and Tomcat3.2

2000-12-08 Thread Sandy McPherson

Mario Beekwilder wrote:

 Hi,

 We are trying to get Apache3.14 working with mod_jk.so and Tomcat3.2
 on a Digital Alpha Tru64 4.0D Unix, with J2SDK 1.2.2.
 Everything compiled fine (thanks to the other mail-threads :)

 Apache with mod_jserv runs fine.
 Now the configuration of Tomcat and Apache with mod_jk. That's hard!
 Anyone already up-and-running?

 Mario Beekwilder
 Software Engineer  - CMG-TP

I have had no problems with Linux and Solaris. Getting mod_jk to compile
is explained the the mod_jkHowto file in in the doc directory. It was
really quite straightforward. Then you need to take the mod_jk.conf-auto
file include it in the httpd.conf and tune it to your needs. You
probably also need some Location and LocationMatch directives in the
httpd.conf file to get Apache to see the static files in your Tomcat
contexts.

If you explain what the problems are, then we could help, but as we
don't know what precisely is going wrong we can't help much!

Sandy


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



Servlet and pathinfo with jsp in Tomcat 3.2

2000-12-08 Thread Lipner, Tomas

The below code runs servlet "myservlet" with pathinfo "pages/welcome.jsp".
frame NAME="main" SRC="%= context %/servlet/myservlet/pages/welcome.jsp"
NORESIZE 

It functions correctly with Tomcat 3.1, but Tomcat 3.2 returns error message
"The page cannot be found".
Tomcat 3.2 doesn't interpret it as 'myservlet' with path info
'pages/welcome.jsp', but wants to open page
"/servlet/myservlet/pages/welcome.jsp" directly.


When I use:
/servlet/myservlet/servlet/anotherservlet 

it functions correctly, i.e. myservlet is called with path info
'servlet/anotherservlet'

Tomas




Re: preloaded feture

2000-12-08 Thread Jon Skeet

 May I know that is't tomcat have the feture that preload a servlet each
 time I start the tomcat? For example, every time I start the tomcat, it
 will automatically load a servlet (this servlet will read a properties
 file, and set these properties to to ServletContext). If so, how to
 configure? Below is the sample servlet. Many thanks!!

Set the load-on-startup parameter in web.xml for that particular servlet to
be a positive integer.

Jon



compile errors for JSP

2000-12-08 Thread Stefan Woithe

Hi all,

The situation is, that I have a JSP which contains an error. If I call an
servlet that includes this JSP I don't get the compilation errors in the
deliverd HTML Page. There is also no error stack printout on the console from
which I've started tomcat.

How can I get this error messages displayed (I would prefer just on the console
of tomcat)? It worked with tomcat 3.1final and I've just upgraded to tomcat
3.2final.

Thank you indeed

Stefan



Re: Application Path

2000-12-08 Thread Jon Skeet

 Hello All,
 I have a question regarding application path in Tomcat. I have
 loaded and application named "myapp" under 'webapps' of Tomcat. Now, is it
 possible to know the full path of my application "myapp"?[i.e upto and including
 the folder 'myapp']

Within a request, use something like the following:

String requestURL = HttpUtils.getRequestURL (req).toString();
String path = req.getPathInfo();
if (path==null)
 servletURL=requestURL;
else
{
if (!requestURL.endsWith (path))
{
 // Panic and use something else... your choice!
}
else
servletURL = requestURL.substring (0, requestURL.length()-path.length());
}

Jon



RE: Install Apache3.14 with mod_jk.so and Tomcat3.2

2000-12-08 Thread Jan Stevens

Hi, 
What seems to happen is:
Tomcat starts ( works fine)
But when I start apache and include the mod_jk config file
Apache doesn't start anymore. Unfortunately
we don't get any error messages in any logfile.
Where are working on an Alpha 1000 with Tru64 Unix 4.0D

Jan

-Original Message-
From: Sandy McPherson [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 8 december 2000 10:04
To: [EMAIL PROTECTED]
Subject: Re: Install Apache3.14 with mod_jk.so and Tomcat3.2


Mario Beekwilder wrote:

 Hi,

 We are trying to get Apache3.14 working with mod_jk.so and Tomcat3.2
 on a Digital Alpha Tru64 4.0D Unix, with J2SDK 1.2.2.
 Everything compiled fine (thanks to the other mail-threads :)

 Apache with mod_jserv runs fine.
 Now the configuration of Tomcat and Apache with mod_jk. That's hard!
 Anyone already up-and-running?

 Mario Beekwilder
 Software Engineer  - CMG-TP

I have had no problems with Linux and Solaris. Getting mod_jk to compile
is explained the the mod_jkHowto file in in the doc directory. It was
really quite straightforward. Then you need to take the mod_jk.conf-auto
file include it in the httpd.conf and tune it to your needs. You
probably also need some Location and LocationMatch directives in the
httpd.conf file to get Apache to see the static files in your Tomcat
contexts.

If you explain what the problems are, then we could help, but as we
don't know what precisely is going wrong we can't help much!

Sandy



RE: Application Path

2000-12-08 Thread Albert Chang -

String appPath = request.getRealPath("/");

-Original Message-
From: Saikat Chatterjee [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 5:17 PM
To: [EMAIL PROTECTED]
Subject: Application Path


Hello All,
I have a question regarding application path in Tomcat. I have
loaded and application named "myapp" under 'webapps' of Tomcat. Now, is it
possible to know the full path of my application "myapp"?[i.e upto and
including
the folder 'myapp']

Thanks in advance,

Saikat




How to get

2000-12-08 Thread Vanja Vlaski

my application to run when I access http://localhost:8080
I must be able to run my application but instead of having 
http://localhost:8080/greeting/index.html to do this I would like to just 
type http://localhost:8080.How do I implement this?


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




RE: Application Path

2000-12-08 Thread Jon Skeet

   You can use the "getDocumentBase()" method to find the path/URL of your
 servlet. and/or "getCodeBase()" which gets the base URL.

No - both of those methods are for *applets*, not servlets.

Jon



Diffs between 3.1 and 3.2

2000-12-08 Thread Patrik Beno

Hi people!

I have application which behaves differently in tomcat 3.1 and 3.2.

3.1: loads ok, first page is displayd correctly
3.2: Browser complains document contained no data; tomcat or my code
 (don't know which of 'em) runs much longer - seems like looping
 somewhere

I have to say this is application handled by one central servlet
written for jserv (servlet 2.0 implementation) -- we want to rewrite
it for 2.2/tomcat

initial request is something like:
  localhost:8080/apps/example1/Start/Start
where apps is logical name of the servlet

I'm sorry if I did not provide enough info. but can you tell me what
has changed between 3.1 and 3.2 that could cause this ?

Thanks.



patrik.beno@{qbizm.com|inmail.sk}   ICQ#98931498 
----
Patrik Beno Qbizm technologies, Inc.
developer   ... the art of internet.

Kralovopolska 139  tel: +420 5 4124 2414
601 12 Brno, CZ  http://www.qbizm.com  fax: +420 5 4121 2696





Multiple GETs on an SSLSocket

2000-12-08 Thread Michael Cohen (ETL)


Hi,

This is more a java/ssl question then tomcat but any ideas on the following will be
much appreciated...

I'm using a servlet (will be using a servlet at the moment I'm testing in a standalone 
app.) 
as a client to connect via https to a server. I've got as far as making the 
server trusted and performing the ssl handshake and then downloading the first html 
page.

The problem arises when I try to write the second GET request and flush it down
the output stream. The flush() method throws an IOException. I'm using the sample code
provided with jsse to implement things but that sample code only has one GET request 
and
so works fine. The exception comes with the second GET?

Any ideas?


Mike C.





Re: Multiple GETs on an SSLSocket

2000-12-08 Thread horn_ken



Have you tried this on a non-SSL connection?
A general problem with the IO in java (afaik) is that, if you read from the
stream, such that you get a -1 returned, then the stream is effectively
closed. You have to reconnect (I haven't tried SSL on this, but a plain
socket works like this). If you can control the sending response, ensure
either the content-length is specified or the stream is chunked so that you
can know when to stop reading -- avoiding getting a -1. YOu can then reuse
the socket, without reconnecting.

Ken





[EMAIL PROTECTED] on 08/12/2000 06:25:10

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: Ken X Horn)
Subject:  Multiple GETs on an SSLSocket




Hi,

This is more a java/ssl question then tomcat but any ideas on the following
will be
much appreciated...

I'm using a servlet (will be using a servlet at the moment I'm testing in a
standalone app.)
as a client to connect via https to a server. I've got as far as making the
server trusted and performing the ssl handshake and then downloading the
first html page.

The problem arises when I try to write the second GET request and flush it
down
the output stream. The flush() method throws an IOException. I'm using the
sample code
provided with jsse to implement things but that sample code only has one
GET request and
so works fine. The exception comes with the second GET?

Any ideas?


Mike C.











servelet problem

2000-12-08 Thread Affan Alim

Hi,

When i write a servelet and make a class file and where i put it. What is
the directory structure in apache web server.
please send me directroy structure.

"affan"




RE: servelet problem

2000-12-08 Thread Subha Gowri K V

Hi,
We are assuming that you want to use tomcat to execute jsp and servlets.

1. Edit your server.xml file.
2. Add a new context like this:
  Context path="/myproj" docBase="c:\Program Files\Apache
Group\Apache\htdocs\myproj" debug="0" reloadable="true"/
3. Create a folder structure like
c:\Program Files\Apache Group\Apache\htdocs\myproj
4. Edit Tomcat.conf. Add these lines
Alias /myproj "C:\Program Files\Apache Group\apache\htdocs\myproj"
ApJservMount /myproj/servlet /root
 Location /myproj/WEB-INF/ 
AllowOverride None
  deny from all
 /Location
5. In your apache's httpd.conf, include this line
Include "C:\Tomcat\Tomcat\conf\Tomcat.conf" - or wherever your tomcat is
installed.
6. Under htdocs\myproj, create a folder web-inf\classes. Put all your class
files here.
7. Put all your jsp pages under htdocs\myproj.
8. You can now access your servlet as:
http://localhost/myproj/servlet/SimpleServlet

We got this solution from this mailing list too!!
Regards,
Subha

-Original Message-
From: Affan Alim [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 5:46 PM
To: [EMAIL PROTECTED]
Subject: servelet problem


Hi,

When i write a servelet and make a class file and where i put it. What is
the directory structure in apache web server.
please send me directroy structure.

"affan"




Help needed for SSL

2000-12-08 Thread amit



HiAll,I'm using Tomcat as an Application server with Apache 
for an ecom site.I want to implement SSL to secure my online transactions 
from Apacheserver to client browser.With this reference , could you 
please comment on following issues:1) How I can accept data in a JSP , from 
a simple HTML form which has been submited via SSL 
?2) Is it necessary to implement SSL support in Tomcat 
***also for above mentioned type of security 
?3) Is it needed to use JSSE (Java Secure Socket Extension) 
for implementing this ?4) Can I access same 
session before and after SSL-enabled JSP page ?5) How to install 
Digital Certificates with Apache/Tomcat ?I would be thnakful to you 
if you coluld please guide me about the same.If possible any kind of 
resource / book / URL are higly 
welcome.Regards,-AmitE-Mail:[EMAIL PROTECTED]Sansui 
Software Pvt. Ltd., India


Subscribe me and my Email is shafi_yusuf@talk21.com

2000-12-08 Thread Shafi Yusuf

 



Subsccribtion

2000-12-08 Thread Shafi Yusuf

Could you subscribe me Tomcat please
My email is [EMAIL PROTECTED]
Thanks Bye



RE: Help needed for SSL

2000-12-08 Thread Michael Cohen (ETL)

Hi Amit,
 
Easiest thing to do is set up apache with modssl and tomcat. Theres an excellent howto
I found:- http://www.ccl.net/cca/software/UNIX/apache/ 
http://www.ccl.net/cca/software/UNIX/apache/  following the first installation link.
The installation includes a makefile for setting up a self signed server certificate.
 
I don't know about using jsse from within the servlet - its something I'm attempting 
to do at
the moment but I can say that its not simple.
 
I've done this and am able to set up ssl between apache and client before the servlet 
is invoked.
You then use the usual HttpServlet classes to get incoming data which have already 
been decrypted
by the time they go through the tomcat worker.
 
Mike C.

-Original Message-
From: amit [mailto:[EMAIL PROTECTED]]
Sent: 08 December 2000 12:27
To: [EMAIL PROTECTED]
Subject: Help needed for SSL


Hi All,

I'm using Tomcat as an Application server with Apache for an ecom site.
I want to implement SSL to secure my online transactions from Apache
server to client browser.

With this reference , could you please comment on following issues:
1) How I can accept data in a JSP , from a simple HTML form which
 has been submited via SSL ?
2) Is it necessary to implement SSL support in Tomcat ***also
 for above mentioned type of security ?
3) Is it needed to use JSSE (Java Secure Socket Extension) for
 implementing this ?
4) Can I access same session  before and after SSL-enabled JSP page ?
5) How to install Digital Certificates with Apache/Tomcat ?


I would be thnakful to you if you coluld please guide me about the same.
If possible any kind of  resource / book / URL are higly  welcome.

Regards,
-Amit
E-Mail:[EMAIL PROTECTED]
Sansui Software Pvt. Ltd., India





RE: servelet problem

2000-12-08 Thread Affan Alim

Thankyou very much for you reply. I am running Apache on Linux Redhat 6.2 so
could you please guide me how to set this up on linux.
Please send me again directory structure if you know.

Thanks and regards

"Affan"

-Original Message-
From: Subha Gowri K V [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 12:33 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: servelet problem


Hi,
We are assuming that you want to use tomcat to execute jsp and servlets.

1. Edit your server.xml file.
2. Add a new context like this:
  Context path="/myproj" docBase="c:\Program Files\Apache
Group\Apache\htdocs\myproj" debug="0" reloadable="true"/
3. Create a folder structure like
c:\Program Files\Apache Group\Apache\htdocs\myproj
4. Edit Tomcat.conf. Add these lines
Alias /myproj "C:\Program Files\Apache Group\apache\htdocs\myproj"
ApJservMount /myproj/servlet /root
 Location /myproj/WEB-INF/ 
AllowOverride None
  deny from all
 /Location
5. In your apache's httpd.conf, include this line
Include "C:\Tomcat\Tomcat\conf\Tomcat.conf" - or wherever your tomcat is
installed.
6. Under htdocs\myproj, create a folder web-inf\classes. Put all your class
files here.
7. Put all your jsp pages under htdocs\myproj.
8. You can now access your servlet as:
http://localhost/myproj/servlet/SimpleServlet

We got this solution from this mailing list too!!
Regards,
Subha

-Original Message-
From: Affan Alim [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 5:46 PM
To: [EMAIL PROTECTED]
Subject: servelet problem


Hi,

When i write a servelet and make a class file and where i put it. What is
the directory structure in apache web server.
please send me directroy structure.

"affan"




$20 bucks to the 1st person who actually solves my problem!!!

2000-12-08 Thread Adress, David S.

I am on this for days and I can't figure out what I'm doing wrong. I will
send $20 bucks to 1st person who actually solves my problem.

I am using jsp page's to control the layout of my page and servlets to spit
back 
table data or to do database transactions.

I have a jsp page that displays a list of employees. The jsp page
has an include statement to include the servlet to spit out the table.
The jsp just handles the general look of the page and the servlet just 
spits out the table and table html tags. Next to each record I have an add
and 
delete hyperlink. If someone clicks the add link it displays another page to
add 
an employee and then the action servlet adds the record and then goes back
to the jsp 
list page. If some one deletes a record it calls a servlet to delete and
then the servlet redirects back to the jsp list page. But the list doesn't
display the updated data without having me hit the refresh button in the
browser.

I tried using Tomcat and now am using Jrun and am still having the same
problem.

I've included all the proper meta tags in the jsp list page not to cache but
it's not working. I've also tries doing it with reponse.setHeader but it
doesn't work either.

I've tried sending a random number param to the page
ShowList?rnd=Randomnumber it still doesn't work.





RE: $20 bucks to the 1st person who actually solves my problem!!!

2000-12-08 Thread Stefán F. Stefánsson

Try to find some way of using the javascript code
"this.location.refresh()" in this.  For example... you could have the
JSP page or the servlet add the code onLoad="this.location.refresh()"
into the body tag of the jsp page if the user has just deleted an entry.
That way the client browser should force the page to be refreshed.

I hope this helps solving your problem...  please forget about the money
;o)

Kind Regards,
Stefan Freyr

-Original Message-
From: Adress, David S. [mailto:[EMAIL PROTECTED]]
Sent: 8. desember 2000 13:29
To: '[EMAIL PROTECTED]'; 'JRun-Talk'
Subject: $20 bucks to the 1st person who actually solves my problem!!!


I am on this for days and I can't figure out what I'm doing wrong. I
will
send $20 bucks to 1st person who actually solves my problem.

I am using jsp page's to control the layout of my page and servlets to
spit
back 
table data or to do database transactions.

I have a jsp page that displays a list of employees. The jsp page
has an include statement to include the servlet to spit out the table.
The jsp just handles the general look of the page and the servlet just 
spits out the table and table html tags. Next to each record I have an
add
and 
delete hyperlink. If someone clicks the add link it displays another
page to
add 
an employee and then the action servlet adds the record and then goes
back
to the jsp 
list page. If some one deletes a record it calls a servlet to delete and
then the servlet redirects back to the jsp list page. But the list
doesn't
display the updated data without having me hit the refresh button in the
browser.

I tried using Tomcat and now am using Jrun and am still having the same
problem.

I've included all the proper meta tags in the jsp list page not to cache
but
it's not working. I've also tries doing it with reponse.setHeader but it
doesn't work either.

I've tried sending a random number param to the page
ShowList?rnd=Randomnumber it still doesn't work.





RE: $20 bucks to the 1st person who actually solves my problem!!!

2000-12-08 Thread Adress, David S.

In onload i'm trying a document.refresh. I'm not getting any javascript
error so it's definitely calling it but it didn't solve the problem...

Thanks 

-Original Message-
From: Stefán F. Stefánsson [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 8:41 AM
To: [EMAIL PROTECTED]
Subject: RE: $20 bucks to the 1st person who actually solves my
problem!!!


Try to find some way of using the javascript code
"this.location.refresh()" in this.  For example... you could have the
JSP page or the servlet add the code onLoad="this.location.refresh()"
into the body tag of the jsp page if the user has just deleted an entry.
That way the client browser should force the page to be refreshed.

I hope this helps solving your problem...  please forget about the money
;o)

Kind Regards,
Stefan Freyr

-Original Message-
From: Adress, David S. [mailto:[EMAIL PROTECTED]]
Sent: 8. desember 2000 13:29
To: '[EMAIL PROTECTED]'; 'JRun-Talk'
Subject: $20 bucks to the 1st person who actually solves my problem!!!


I am on this for days and I can't figure out what I'm doing wrong. I
will
send $20 bucks to 1st person who actually solves my problem.

I am using jsp page's to control the layout of my page and servlets to
spit
back 
table data or to do database transactions.

I have a jsp page that displays a list of employees. The jsp page
has an include statement to include the servlet to spit out the table.
The jsp just handles the general look of the page and the servlet just 
spits out the table and table html tags. Next to each record I have an
add
and 
delete hyperlink. If someone clicks the add link it displays another
page to
add 
an employee and then the action servlet adds the record and then goes
back
to the jsp 
list page. If some one deletes a record it calls a servlet to delete and
then the servlet redirects back to the jsp list page. But the list
doesn't
display the updated data without having me hit the refresh button in the
browser.

I tried using Tomcat and now am using Jrun and am still having the same
problem.

I've included all the proper meta tags in the jsp list page not to cache
but
it's not working. I've also tries doing it with reponse.setHeader but it
doesn't work either.

I've tried sending a random number param to the page
ShowList?rnd=Randomnumber it still doesn't work.




servelet problem

2000-12-08 Thread Affan Alim

Hi All,

I am running Apache on Linux Redhat 6.2 so could any one please guide me how
to set this up on linux.
as well as where i put the servelet in apache eb server please send the
directory structure of servlet class file.
Please send me again directory structure if you know.

Thanks and regards

"Affan"




RE: $20 bucks to the 1st person who actually solves my problem!!!

2000-12-08 Thread Adress, David S.

It didn't work

Here is a copy of the jsp page and the servlet

JSP PAGE


html
head
meta http-equiv="Cache-Control" content="no-cache, must-revalidate"
meta http-equiv="Expires" content="0"
titleEmployee List/title
/head
body
Employee List
jsp:include page="/servlet/EmployeeList" flush="true" /
/body
/html



List Servlet

import java.io.IOException;
import java.io.PrintWriter;
import java.util.Enumeration;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;

public class EmployeeList extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException
{

HttpSession session = request.getSession(true);
response.setIntHeader("Expires",0); 
response.setHeader("Cache-Control","no-cache");
response.setContentType("text/html");
PrintWriter out = response.getWriter();
String Logon = session.getAttribute("Logon").toString();
String Level = session.getAttribute("Level").toString();

if (Logon.compareTo("TRUE") == 0);
else
{
out.println("No Access");
return;
}

if (Level.compareTo("A") == 0);
else
{
out.println("No Access you need to be an Admin");
return;
}


String query = "SELECT EmployeeID, LastName, Firstname FROM
employees order by lastname";
out.println("TABLE BORDER=1");
out.println("   TR");
out.println("   TD COLSPAN=4 ALIGN=CENTERa
href=\"/skills/EmployeeAdd.jsp\"Add New Employee/a/TD");
out.println("   /TR");
out.println("   TR");
out.println("   TDEmployeeID/TD");
out.println("   TDLastname/TD");
out.println("   TDFirstname/TD");   
out.println("   TDCommands/TD");
out.println("   /TR");
try 
{
Connection dbconn;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

dbconn =
DriverManager.getConnection("jdbc:odbc:ADB");
Statement statement = dbconn.createStatement();
ResultSet rs = statement.executeQuery( query );

while(rs.next())
{
String empid = rs.getString(1);
out.println("   TR");
out.println("   TD" + empid  +
"/TD");   
out.println("   TD" +
rs.getString(2) + "/TD"); 
out.println("   TD" +
rs.getString(3) + "/TD"); 
out.println("   TDa
href=\"/servlet/EmployeeP?Process=DEmpID=" + empid + "\"Delete/a
Edit/TD");
out.println("   /TR");
}   
}
catch ( Exception excp ) 
{
 // process remaining Exceptions here
 excp.printStackTrace();
 out.println(excp.toString());
}
out.println("/TABLE");
}

}



-Original Message-
From: Chad Reese [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 8:59 AM
To: [EMAIL PROTECTED]
Subject: Re: $20 bucks to the 1st person who actually solves my
problem!!!


Try this in your servlet:
res.setIntHeader("Expires", 0);
res.setHeader("Cache-Control", "no-cache");

And this in the page source:
META HTTP-EQUIV="cache-control" CONTENT="no-cache"
META HTTP-EQUIV="expires" CONTENT="0"

IE ignores the cache directives but seems to respect the Expires header.
Both of

the above probably aren't necessary but they don't hurt. Hope this helps.

Chad

P.S. Help is free but the title did get my attention :-)

"Adress, David S." wrote:

 I am on this for days and I can't figure out what I'm doing wrong. I will
 send $20 bucks to 1st person who actually solves my problem.

 I am using jsp page's to control the layout of my page and servlets to
spit
 back
 table data or to do database transactions.

 I have a jsp page that displays a list of employees. The jsp page
 has an include statement to include the servlet to spit out the table.
 The jsp just handles the general look of the page and the servlet just
 spits out the table and table html tags. Next 

Re: servelet problem

2000-12-08 Thread Kief Morris

Affan Alim typed the following on 14:04 08/12/2000 +
 I am running Apache on Linux Redhat 6.2 so could any one please guide me how
 to set this up on linux.
 as well as where i put the servelet in apache eb server please send the
 directory structure of servlet class file.
 Please send me again directory structure if you know.

Affan, do you have Tomcat installed, or just the Apache web server?
If you have tomcat installed, the place to put your servlet is in
$TOMCAT_HOME/webapps/ROOT/WEB-INF/classes

If you don't have Tomcat installed yet, get it at
http://jakarta.apache.org/site/binindex.html. There are also documentation
pages there which you should find helpful.

Kief

---
   bitBull makes the Internet bite: http://www.bitBull.com/demos/




RE: $20 bucks to the 1st person who actually solves my problem!!!

2000-12-08 Thread Chris Stratton

Save your money - if this works, fine. I've had the same problems a time or
two myself.

First, try putting the meta tags at the end of the page as well as at the
start - something about the way the browsers process the information... I
don't know. I do it, it helps. Secondly, keeping in mind that a redirect is
a browser function and if the above is ineffective, rewrite the page logic
to perform the delete and then spit out the HTML from the display page, as
opposed to redirecting to it.

Hoping this helps,

Chris.

-Original Message-
From: Adress, David S. [mailto:[EMAIL PROTECTED]]
Sent: Friday, 8 December 2000 11:29 PM
To: '[EMAIL PROTECTED]'; 'JRun-Talk'
Subject: $20 bucks to the 1st person who actually solves my problem!!!


I am on this for days and I can't figure out what I'm doing wrong. I will
send $20 bucks to 1st person who actually solves my problem.

I am using jsp page's to control the layout of my page and servlets to spit
back
table data or to do database transactions.

I have a jsp page that displays a list of employees. The jsp page
has an include statement to include the servlet to spit out the table.
The jsp just handles the general look of the page and the servlet just
spits out the table and table html tags. Next to each record I have an add
and
delete hyperlink. If someone clicks the add link it displays another page to
add
an employee and then the action servlet adds the record and then goes back
to the jsp
list page. If some one deletes a record it calls a servlet to delete and
then the servlet redirects back to the jsp list page. But the list doesn't
display the updated data without having me hit the refresh button in the
browser.

I tried using Tomcat and now am using Jrun and am still having the same
problem.

I've included all the proper meta tags in the jsp list page not to cache but
it's not working. I've also tries doing it with reponse.setHeader but it
doesn't work either.

I've tried sending a random number param to the page
ShowList?rnd=Randomnumber it still doesn't work.






RE: who added this?

2000-12-08 Thread CPC Livelink Admin


I saw that the other day. It happened to me when I was trying to use the
/servlet/ and I mistyped it as /servlets/.  I was in a development cycle
though, so there may have been other problems, but changing from /servlets/
to /servlet/ mad it stop. Maybe it is something similar?

-Original Message-
From: jun xu sun [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 06:01 PM
To: [EMAIL PROTECTED]
Subject: who added this?


hi, there,
after I compile class and reload jsp again, I always get this error:

java.lang.IllegalStateException: Can't happen - classname is null, who added
this ?
 at java.lang.Throwable.fillInStackTrace(Native Method)
 at java.lang.Throwable.fillInStackTrace(Compiled Code)
 at java.lang.Throwable.(Compiled Code)
 at java.lang.Exception.(Compiled Code)
 at java.lang.RuntimeException.(Compiled Code)
 at java.lang.IllegalStateException.(Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.loadServlet(Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.init(Compiled Code)
 at org.apache.tomcat.core.Handler.service(Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
 at org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
 at org.apache.tomcat.core.ContextManager.service(Compiled Code)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compi
led Code)
 at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
 at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
 at java.lang.Thread.run(Thread.java:479)

how come to this?
I run tomcat 3.2 final on Solaris 2.7.

rgds
brent






RE: 404 error w/ isapi_redirect.dll

2000-12-08 Thread Marc Saegesser

I noticed that the URI your requesting is /examples:8080/jsp/index.html.
That'll never work.  Try something like
http://localhost:8080/examples/jsp/index.html


-Original Message-
From: Kintzer, Michael [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 07, 2000 12:05 PM
To: '[EMAIL PROTECTED]'
Subject: RE: 404 error w/ isapi_redirect.dll


Ignacio,

Attached are the IIS log and the isapi.log (excerpt).
Let me know if these are not the logs you intended.

Gracias,

Michael Kintzer

-Original Message-
From: Nacho [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 06, 2000 5:47 PM
To: '[EMAIL PROTECTED]'
Subject: RE: 404 error w/ isapi_redirect.dll


Append logs excerpts please, i have the same  conf working like a
charm..

Saludos ,
Ignacio J. Ortega


 -Mensaje original-
 De: Kintzer, Michael [mailto:[EMAIL PROTECTED]]
 Enviado el: jueves 7 de diciembre de 2000 2:47
 Para: '[EMAIL PROTECTED]'
 Asunto: RE: 404 error w/ isapi_redirect.dll


 I realize this topic has been covered nearly two months ago,
 but all the
 solutions given here have not worked for my environment.

 Here are the details:
 IIS 5.0, W2KPro, Tomcat 3.2
 I've configured everything according to the Tomcat-IIS HowTo
 and confirmed
 the following are working:

 -Tomcat hosted jsp/examples work fine (i.e. localhost:8080/)
 -isapi_redirect.dll has the green arrow
 -log files are being generated
 -isapi_redirect.dll is recognizing that it should handle jsp
 requests as
 evidenced by the line GET "/jakarta/isapi_redirect.dll" 200 in my
 SYSTEM32/LogFiles/W3SVC1/ log.
 -I can browse to the jakarta virtual directory
 -Anonymous access is enabled and file permissions on the
 redirect dll are
 also enabled for Full Control for Everyone.
 -the uriworkermap.properties file and the -auto file show
 that the examples
 context is being served by ajp12

 According to the HowTo, "200" implies the jakarta virtual
 directory is not
 configured for Execute permissions, but I've checked that and it is.

 I've rebooted and restarted both WWWService and AdminService,
 but nothing
 seems to fix the 404 error.

 Anybody have an idea for me?

 Thanks,

 Michael



 -Original Message-
 From: Paul FitzPatrick [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 16, 2000 7:26 AM
 To: [EMAIL PROTECTED]
 Subject: RE: 404 error w/ isapi_redirect.dll



 Stop/Start in the IIS Administrative Tool does not restart the admin
 service.  You have to do this from the control panel or a Dos
 Prompt like
 thus :

 net stop "IIS Admin Service"
 net start "IIS Admin Service"

 There are dependant services you may need to restart as well
 - this is the
 batch file I use to stop :

 @ECHO OFF
 NET STOP "FTP Publishing Service"
 NET STOP "World Wide Web Publishing Service"
 NET STOP "IIS Admin Service"

 In reverse order and replace STOP with START to start them all.


 -Original Message-
 From: David Young [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 16, 2000 10:11 AM
 To: [EMAIL PROTECTED]
 Subject: Re: 404 error w/ isapi_redirect.dll


 Stop/start did not do it, but rebooting did!

  From: Kieran Fitzpatrick [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  Date: Mon, 16 Oct 2000 09:52:55 +1000
  To: "'[EMAIL PROTECTED]'"
 [EMAIL PROTECTED]
  Subject: RE: 404 error w/ isapi_redirect.dll
 
  You might find that stopping and restarting the IIS Admin
 service via the
  Services applet in Control Panel is sufficient to get this
 working.  At
  least this seemed to work for me.
 
  Good luck,
 
  Kieran
 
  -Original Message-
  From: Christian Thomsen [mailto:[EMAIL PROTECTED]]
  Sent: Monday, 16 October 2000 6:07 AM
  To: [EMAIL PROTECTED]
  Subject: Re: 404 error w/ isapi_redirect.dll
 
 
  Hi !
 
  I had the same problem myself. I solved it by rebooting the
 computer (no
  kidding !). As I have verified several times, you have to
 do this when you
  change the IIS/Tomcat property files.
 
  I hope it helps,
 
  Chris
 
 
  - Original Message -
  From: "David Young" [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, October 13, 2000 4:39 AM
  Subject: 404 error w/ isapi_redirect.dll
 
 
  Hello,
 
  I am trying to get Tomcat working with IIS using the
 isapi_redirect.dll.
 I
  followed the How To instructions by Gal Shachor, however
 when I attempt
 to
  access http://localhost/examples/, I get a 404 saying it can't find
  /jakarta/isapi_redirect.dll.
 
  - Windows 2000 Professional
  - IIS is running on port 80
  - Anonymous access is enabled
  - I can browse to http://localhost/jakarta/, so the vdir seems OK
  - /jakarta vdir is set to allow execution
  - Permissions on isapi_redirect.dll allow everyone to exec
  - Tomcat is running fine on port 8080, including /examples
 
 
 
 







RE: $20 bucks to the 1st person who actually solves my problem!!!

2000-12-08 Thread horn_ken



This last one sounds odd but does work sometimes, alternatively, when you
send the add/delete command back, make it a POST on the form, IE will
expect this to be dynamic data and not cache. Make the link submit the form
with appropriate parameters.

Ken.






[EMAIL PROTECTED] on 08/12/2000 10:19:25

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: Ken X Horn)
Subject:  RE: $20 bucks to the 1st person who actually solves my problem!!!



Save your money - if this works, fine. I've had the same problems a time or
two myself.

First, try putting the meta tags at the end of the page as well as at the
start - something about the way the browsers process the information... I
don't know. I do it, it helps. Secondly, keeping in mind that a redirect is
a browser function and if the above is ineffective, rewrite the page logic
to perform the delete and then spit out the HTML from the display page, as
opposed to redirecting to it.

Hoping this helps,

Chris.

-Original Message-
From: Adress, David S. [mailto:[EMAIL PROTECTED]]
Sent: Friday, 8 December 2000 11:29 PM
To: '[EMAIL PROTECTED]'; 'JRun-Talk'
Subject: $20 bucks to the 1st person who actually solves my problem!!!


I am on this for days and I can't figure out what I'm doing wrong. I will
send $20 bucks to 1st person who actually solves my problem.

I am using jsp page's to control the layout of my page and servlets to spit
back
table data or to do database transactions.

I have a jsp page that displays a list of employees. The jsp page
has an include statement to include the servlet to spit out the table.
The jsp just handles the general look of the page and the servlet just
spits out the table and table html tags. Next to each record I have an add
and
delete hyperlink. If someone clicks the add link it displays another page
to
add
an employee and then the action servlet adds the record and then goes back
to the jsp
list page. If some one deletes a record it calls a servlet to delete and
then the servlet redirects back to the jsp list page. But the list doesn't
display the updated data without having me hit the refresh button in the
browser.

I tried using Tomcat and now am using Jrun and am still having the same
problem.

I've included all the proper meta tags in the jsp list page not to cache
but
it's not working. I've also tries doing it with reponse.setHeader but it
doesn't work either.

I've tried sending a random number param to the page
ShowList?rnd=Randomnumber it still doesn't work.












Configuring Tomcat

2000-12-08 Thread Bryan Burman

Hello,

I'm new to Java development and I recently installed Tomcat 3.1 in order
to have a server to run some servlet tutorials under. However, when I
follow the instructions to configure my system, it calls for a file
called servlets.properties to be present with some server configuration
info that is needed in order to locate the .class files that I have
assembled. It doesn't seem to be recognizing the settings that are in
this file, though, since when I type http://localhost:8080/servlet/...
the file is not found. If I type the name of the main class file it does
display the main page, but then the other pages are not found since it
makes references that are only included in the servlets.properties file.
I have tried several locations for this file, including
doc_root/WEB-INF/servlets. This is the servlets tutorial and
instructions from java.sun.com by the way. Any help would be
appreciated. I'm probably missing something very simple in my setup.

Thanks,

Bryan Burman



This List is over-whelming

2000-12-08 Thread John Marquart

TOMCATers,
Is there any way to make a digest form of this list available?  Is
there an archive?  I cannot find one mentioned at the jakarta homepage.


This list generates a huge amount of traffic - much of it redundant or
already contained in the faq.  This is the kind of traffic that will most
likely beat your best and brightest into the darkness and turns off
novices such as myself.  I have not been on a technical mailing list in
quite some-time which responds as consistently to questions already in the
FAQ.  The very few non-FAQ threads that I have found on the list have been
great and have taught me alot, but the noise-to-signal ratio in general is
troubling.

Once before there was a discussion about moving/adding a newsgroup /
digest format.  The newsgroups idea was shot-down because it would be
possible that some individuals would not be able to access it from behind
firewalls.  Can we have a digest then?  Most mailing-list software can
handle digests - it cannot be that difficult to configure.

If such a digest already exists - I apologize, and beg you to add its
subscription information to the jakarta.apache.org mailing list pages.

thank you,
-jamie


John "Jamie" Marquart   | This message posted 100% MS free.
Digital Library SysAdmin|  Work: 812-856-5174   Pager: 812-334-6018
Indiana University Libraries|  ICQ: 1131494 D'net Team:  6265




Re: This List is over-whelming

2000-12-08 Thread Trevor Little

Here's a searchable archive

http://w6.metronet.com/~wjm/tomcat/FromFeb11/mail11.html


John Marquart wrote:
 
 TOMCATers,
 Is there any way to make a digest form of this list available?  Is
 there an archive?  I cannot find one mentioned at the jakarta homepage.
 
 This list generates a huge amount of traffic - much of it redundant or
 already contained in the faq.  This is the kind of traffic that will most
 likely beat your best and brightest into the darkness and turns off
 novices such as myself.  I have not been on a technical mailing list in
 quite some-time which responds as consistently to questions already in the
 FAQ.  The very few non-FAQ threads that I have found on the list have been
 great and have taught me alot, but the noise-to-signal ratio in general is
 troubling.
 
 Once before there was a discussion about moving/adding a newsgroup /
 digest format.  The newsgroups idea was shot-down because it would be
 possible that some individuals would not be able to access it from behind
 firewalls.  Can we have a digest then?  Most mailing-list software can
 handle digests - it cannot be that difficult to configure.
 
 If such a digest already exists - I apologize, and beg you to add its
 subscription information to the jakarta.apache.org mailing list pages.
 
 thank you,
 -jamie
 
 John "Jamie" Marquart   | This message posted 100% MS free.
 Digital Library SysAdmin|  Work: 812-856-5174   Pager: 812-334-6018
 Indiana University Libraries|  ICQ: 1131494 D'net Team:  6265



Re: This List is over-whelming

2000-12-08 Thread Travis Low

How about a separate list for tomcat-jsp?

T

John Marquart wrote:
 
 TOMCATers,
 Is there any way to make a digest form of this list available?  Is
 there an archive?  I cannot find one mentioned at the jakarta homepage.
 
 This list generates a huge amount of traffic - much of it redundant or
 already contained in the faq.  This is the kind of traffic that will most
 likely beat your best and brightest into the darkness and turns off
 novices such as myself.  I have not been on a technical mailing list in
 quite some-time which responds as consistently to questions already in the
 FAQ.  The very few non-FAQ threads that I have found on the list have been
 great and have taught me alot, but the noise-to-signal ratio in general is
 troubling.
 
 Once before there was a discussion about moving/adding a newsgroup /
 digest format.  The newsgroups idea was shot-down because it would be
 possible that some individuals would not be able to access it from behind
 firewalls.  Can we have a digest then?  Most mailing-list software can
 handle digests - it cannot be that difficult to configure.
 
 If such a digest already exists - I apologize, and beg you to add its
 subscription information to the jakarta.apache.org mailing list pages.
 
 thank you,
 -jamie
 
 John "Jamie" Marquart   | This message posted 100% MS free.
 Digital Library SysAdmin|  Work: 812-856-5174   Pager: 812-334-6018
 Indiana University Libraries|  ICQ: 1131494 D'net Team:  6265

-- Travis Low  
   mailto:[EMAIL PROTECTED]
   http://dawnstar.org/travis



RE: $20 bucks to the 1st person who actually solves my problem!!!

2000-12-08 Thread Michael Remijan

David,

This might be worth a shot.  in the page you want reloaded, try adding in
this
head
META HTTP-EQUIV = "Pragma" CONTENT="no-cache"
/head

this meta tag forces no cache of the page so it is suppose to be refreshed
from the server everytime.  Let me know if this help.

Mike


 -Original Message-
 From: Adress, David S. [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 08, 2000 7:29 AM
 To: '[EMAIL PROTECTED]'; 'JRun-Talk'
 Subject: $20 bucks to the 1st person who actually solves my problem!!!


 I am on this for days and I can't figure out what I'm doing wrong. I will
 send $20 bucks to 1st person who actually solves my problem.

 I am using jsp page's to control the layout of my page and
 servlets to spit
 back
 table data or to do database transactions.

 I have a jsp page that displays a list of employees. The jsp page
 has an include statement to include the servlet to spit out the table.
 The jsp just handles the general look of the page and the servlet just
 spits out the table and table html tags. Next to each record I have an add
 and
 delete hyperlink. If someone clicks the add link it displays
 another page to
 add
 an employee and then the action servlet adds the record and then goes back
 to the jsp
 list page. If some one deletes a record it calls a servlet to delete and
 then the servlet redirects back to the jsp list page. But the list doesn't
 display the updated data without having me hit the refresh button in the
 browser.

 I tried using Tomcat and now am using Jrun and am still having the same
 problem.

 I've included all the proper meta tags in the jsp list page not
 to cache but
 it's not working. I've also tries doing it with reponse.setHeader but it
 doesn't work either.

 I've tried sending a random number param to the page
 ShowList?rnd=Randomnumber it still doesn't work.







FW: $20 bucks to the 1st person who actually solves my problem!!! - WE HAVE A WINNER!!!

2000-12-08 Thread Adress, David S.

FYI

-Original Message-
From: Adress, David S. 
Sent: Friday, December 08, 2000 10:08 AM
To: '[EMAIL PROTECTED]'
Subject: RE: $20 bucks to the 1st person who actually solves my
problem!!!


BINGO!

that's itI wasn't doing a commit and I was connecting to access...so
access doesn't do a commit until it moves to next row...

What's your address so I can send you the prize!!!

-Original Message-
From: Neil H. [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 9:00 AM
To: JRun-Talk
Subject: Re: $20 bucks to the 1st person who actually solves my
problem!!!


Make sure you display applet doesn't query the database BEFORE the action
takes place.  We do this in CF all the time.  Query the info we want then
make the change, at that point it was correct in the database but we
requested the info too soon.

Neil

- Original Message -
From: "Adress, David S." [EMAIL PROTECTED]
To: "JRun-Talk" [EMAIL PROTECTED]
Sent: Friday, December 08, 2000 8:29 AM
Subject: $20 bucks to the 1st person who actually solves my problem!!!


 I am on this for days and I can't figure out what I'm doing wrong. I will
 send $20 bucks to 1st person who actually solves my problem.

 I am using jsp page's to control the layout of my page and servlets to
spit
 back
 table data or to do database transactions.

 I have a jsp page that displays a list of employees. The jsp page
 has an include statement to include the servlet to spit out the table.
 The jsp just handles the general look of the page and the servlet just
 spits out the table and table html tags. Next to each record I have an add
 and
 delete hyperlink. If someone clicks the add link it displays another page
to
 add
 an employee and then the action servlet adds the record and then goes back
 to the jsp
 list page. If some one deletes a record it calls a servlet to delete and
 then the servlet redirects back to the jsp list page. But the list doesn't
 display the updated data without having me hit the refresh button in the
 browser.

 I tried using Tomcat and now am using Jrun and am still having the same
 problem.

 I've included all the proper meta tags in the jsp list page not to cache
but
 it's not working. I've also tries doing it with reponse.setHeader but it
 doesn't work either.

 I've tried sending a random number param to the page
 ShowList?rnd=Randomnumber it still doesn't work.


 
 Your ad could be here. Monies from ads go to support these lists and
provide more resources for the community.
http://www.fusionauthority.com/ads.cfm

 Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
 Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Your ad could be here. Monies from ads go to support these lists and provide
more resources for the community. http://www.fusionauthority.com/ads.cfm

Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



AW: AW: Java VJM won't quit?

2000-12-08 Thread Ralph Einfeldt

You can also create endless loops/recursions by misconfiguration.

And there can be a comletly other reason.

Did you try to increase the log level of tomcat?
Did you try to use a debugger?

 -Ursprüngliche Nachricht-
 Von: Matt White [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 8. Dezember 2000 14:19
 An: [EMAIL PROTECTED]
 Betreff: Re: AW: Java VJM won't quit?
 
 
 Ralph;
 
 At first I thought this was the case, but the same them 
 happens with the sample JSP scripts that Tomcat includes. (I 
 checked them all, it happens on all of them.)
 
 Servlets work just fine, however.
 
 - Matt
 
 
  [EMAIL PROTECTED] 12/07/00 02:09PM 
 Two suggestions for a cause:
   Recursive includes. 
   Endless loop.



Servlet Mapping

2000-12-08 Thread Edson Carlos Ericksson Richter

Hi!

I have several apps from same organization.
To permit one app exchange objects with others, I'm using a unique context,
and then each app have their sub-directory.

Like this:


webapps\app1
webapps\app2
webapps\app3\subdir1

and so on.

Using Resin Web Server, I`ve mapped servlet execution to work calling ROOT
servlets througt following configuration:

servlet-mapping url-pattern='*/servlet/*' servlet-name='invoker'/

Note the '*' before /servlet.

Since this, all the following are the same:

/servlet/LoginServlet
/app1/servlet/LoginServlet
/app2/servlet/LoginServlet

How can I configure Tomcat to work like this (yes, I`ve tried to use
*/servlet/*, but does not work).

All apps are on same context (thus sharing WEB-INF/classes).

TIA,

Edson Carlos Ericksson Richter




Re: This List is over-whelming

2000-12-08 Thread John Marquart

Well - I am glad that there does exist a list-archive, however that
appears to be the tomcat-dev list and not the tomcat-user list.  The view
by date links all appear to be broken as well.

The search function works :)  So I thanks you for the link.

-jamie


On Fri, 8 Dec 2000, Trevor Little wrote:

 Here's a searchable archive

 http://w6.metronet.com/~wjm/tomcat/FromFeb11/mail11.html


 John Marquart wrote:
 
  TOMCATers,
  Is there any way to make a digest form of this list available?  Is
  there an archive?  I cannot find one mentioned at the jakarta homepage.
 
  This list generates a huge amount of traffic - much of it redundant or
  already contained in the faq.  This is the kind of traffic that will most
  likely beat your best and brightest into the darkness and turns off
  novices such as myself.  I have not been on a technical mailing list in
  quite some-time which responds as consistently to questions already in the
  FAQ.  The very few non-FAQ threads that I have found on the list have been
  great and have taught me alot, but the noise-to-signal ratio in general is
  troubling.
 
  Once before there was a discussion about moving/adding a newsgroup /
  digest format.  The newsgroups idea was shot-down because it would be
  possible that some individuals would not be able to access it from behind
  firewalls.  Can we have a digest then?  Most mailing-list software can
  handle digests - it cannot be that difficult to configure.
 
  If such a digest already exists - I apologize, and beg you to add its
  subscription information to the jakarta.apache.org mailing list pages.
 
  thank you,
  -jamie
 
  John "Jamie" Marquart   | This message posted 100% MS free.
  Digital Library SysAdmin|  Work: 812-856-5174   Pager: 812-334-6018
  Indiana University Libraries|  ICQ: 1131494 D'net Team:  6265



John "Jamie" Marquart   | This message posted 100% MS free.
Digital Library SysAdmin|  Work: 812-856-5174   Pager: 812-334-6018
Indiana University Libraries|  ICQ: 1131494 D'net Team:  6265




Working with the Jakarta NT Service

2000-12-08 Thread Reto Badertscher

Hi Gal,

Setting up Tomcat 3.2 on my Windows System as a service and read youre note:
"Special note: The Tomcat service is using AJPV12 to perform clean shutdown
and you should make sure that an AJPV12 connector is defined in your
server.xml. In the absence of a configured AJPV12 port the Tomcat service
will kill Tomcat abruptly (that is murder it) without giving it a chance to
clean up."

How is this done or where can i get the needed information to do this?

Thanks for your help

Reto Badertscher




Starting Tomcat

2000-12-08 Thread Reto Badertscher

Hello,

I need some help to start Tomcat from KAWA to debug servlets and JSP's. My
Tomcat installation works (with the examples and servlets written by my
own).
I followed the instructions from the KAWA team, but every time when running
a servlet from within KAWA i got the following message:
"org.apache.tomcat.core.ContextManager: method
setInstallDir(Ljava/lang/String;)V not found"
see output.
Until now, the KAWA team couldn't help me and since KAWA belongs to Allaire
it's even worse. I like Tomcat and wouldn't like to change to an other
application server, i also like KAWA.

I hope now that someone from the Tomcat team could possible help me or give
me some hints what's wrong.
(Using JDK1.3, Tomcat 3.2, Windows2000 with sp 1, KAWA 5.0)

Thanks for any help.

Reto Badertscher

Output-Log from KAWA

Wait, Starting the JVMDI Debugger...
Working Directory - C:\jakarta-tomcat
ClassPath -
C:\j2sdkee1.2.1\lib\j2ee.jar;C:\jakarta-tomcat\lib\jasper.jar;C:\jakarta-tom
cat\lib\servlet.jar;C:\jakarta-tomcat\lib\webserver.jar;C:\jakarta-tomcat\li
b\ant.jar;C:\jdk1.3\lib\tools.jar;C:\jakarta-tomcat\webapps\examples\WEB-INF
\classes;.;c:\jdk1.3\jre\lib\rt.jar;c:\jdk1.3\jre\lib\i18n.jar;c:\KawaEnt5.0
\kawaclasses.zip
Properties - -classic  -Dtomcat.home=C:\jakarta-tomcat -Xbootclasspath:c:\jd
k1.3\lib\tools.jar;c:\jdk1.3\jre\lib\rt.jar;c:\jdk1.3\jre\lib\i18n.jar;
Debug Start...
java.lang.NoSuchMethodError: org.apache.tomcat.core.ContextManager: method
setInstallDir(Ljava/lang/String;)V not found
at org.apache.tomcat.startup.Tomcat.getConfigFile(Tomcat.java:162)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:185)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
Quit Event...
Debugger Quit...
Exception in thread "main"




limit threads per servlet in Tomcat

2000-12-08 Thread J Y

Hi

I wish to setup Tomcat to limit threads per servlet, say 20 threads to 
execute in one servlet concurrently. the 21th request would cause the
Tomecat engine to generate a new servlet instance.

Is there a way to do it. any comment appriciated.

Also, what's the performance concerns. is that possible to create a pool of 
servelts?

Thanks

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




RE: $20 bucks to the 1st person who actually solves my problem!!! - WE HAVE A WINNER!!!

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

So it was nothing to do with caching ?

# -Original Message-
# From: Adress, David S. [mailto:[EMAIL PROTECTED]]
# Sent: Friday, December 08, 2000 3:09 PM
# To: '[EMAIL PROTECTED]'
# Subject: FW: $20 bucks to the 1st person who actually solves my
# problem!!! - WE HAVE A WINNER!!!
# 
# 
# FYI
# 
# -Original Message-
# From: Adress, David S. 
# Sent: Friday, December 08, 2000 10:08 AM
# To: '[EMAIL PROTECTED]'
# Subject: RE: $20 bucks to the 1st person who actually solves my
# problem!!!
# 
# 
# BINGO!
# 
# that's itI wasn't doing a commit and I was connecting to 
# access...so
# access doesn't do a commit until it moves to next row...
# 
# What's your address so I can send you the prize!!!
# 
# -Original Message-
# From: Neil H. [mailto:[EMAIL PROTECTED]]
# Sent: Friday, December 08, 2000 9:00 AM
# To: JRun-Talk
# Subject: Re: $20 bucks to the 1st person who actually solves my
# problem!!!
# 
# 
# Make sure you display applet doesn't query the database 
# BEFORE the action
# takes place.  We do this in CF all the time.  Query the info 
# we want then
# make the change, at that point it was correct in the database but we
# requested the info too soon.
# 
# Neil
# 
# - Original Message -
# From: "Adress, David S." [EMAIL PROTECTED]
# To: "JRun-Talk" [EMAIL PROTECTED]
# Sent: Friday, December 08, 2000 8:29 AM
# Subject: $20 bucks to the 1st person who actually solves my problem!!!
# 
# 
#  I am on this for days and I can't figure out what I'm doing 
# wrong. I will
#  send $20 bucks to 1st person who actually solves my problem.
# 
#  I am using jsp page's to control the layout of my page and 
# servlets to
# spit
#  back
#  table data or to do database transactions.
# 
#  I have a jsp page that displays a list of employees. The jsp page
#  has an include statement to include the servlet to spit out 
# the table.
#  The jsp just handles the general look of the page and the 
# servlet just
#  spits out the table and table html tags. Next to each 
# record I have an add
#  and
#  delete hyperlink. If someone clicks the add link it 
# displays another page
# to
#  add
#  an employee and then the action servlet adds the record and 
# then goes back
#  to the jsp
#  list page. If some one deletes a record it calls a servlet 
# to delete and
#  then the servlet redirects back to the jsp list page. But 
# the list doesn't
#  display the updated data without having me hit the refresh 
# button in the
#  browser.
# 
#  I tried using Tomcat and now am using Jrun and am still 
# having the same
#  problem.
# 
#  I've included all the proper meta tags in the jsp list page 
# not to cache
# but
#  it's not working. I've also tries doing it with 
# reponse.setHeader but it
#  doesn't work either.
# 
#  I've tried sending a random number param to the page
#  ShowList?rnd=Randomnumber it still doesn't work.
# 
# 
#  
#  Your ad could be here. Monies from ads go to support these lists and
# provide more resources for the community.
# http://www.fusionauthority.com/ads.cfm
# 
#  Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
#  Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
# 
# 
# 
# Your ad could be here. Monies from ads go to support these 
# lists and provide
# more resources for the community. 
# http://www.fusionauthority.com/ads.cfm
# 
# Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
# Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
# 



RE: $20 bucks to the 1st person who actually solves my problem!!! - WE HAVE A WINNER!!!

2000-12-08 Thread Adress, David S.

I guess it appeared to be caching

-Original Message-
From: NESTORS Andris (AC-Creation) [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 10:57 AM
To: '[EMAIL PROTECTED]'
Subject: RE: $20 bucks to the 1st person who actually solves my
problem!!! - WE HAVE A WINNER!!!


So it was nothing to do with caching ?

# -Original Message-
# From: Adress, David S. [mailto:[EMAIL PROTECTED]]
# Sent: Friday, December 08, 2000 3:09 PM
# To: '[EMAIL PROTECTED]'
# Subject: FW: $20 bucks to the 1st person who actually solves my
# problem!!! - WE HAVE A WINNER!!!
# 
# 
# FYI
# 
# -Original Message-
# From: Adress, David S. 
# Sent: Friday, December 08, 2000 10:08 AM
# To: '[EMAIL PROTECTED]'
# Subject: RE: $20 bucks to the 1st person who actually solves my
# problem!!!
# 
# 
# BINGO!
# 
# that's itI wasn't doing a commit and I was connecting to 
# access...so
# access doesn't do a commit until it moves to next row...
# 
# What's your address so I can send you the prize!!!
# 
# -Original Message-
# From: Neil H. [mailto:[EMAIL PROTECTED]]
# Sent: Friday, December 08, 2000 9:00 AM
# To: JRun-Talk
# Subject: Re: $20 bucks to the 1st person who actually solves my
# problem!!!
# 
# 
# Make sure you display applet doesn't query the database 
# BEFORE the action
# takes place.  We do this in CF all the time.  Query the info 
# we want then
# make the change, at that point it was correct in the database but we
# requested the info too soon.
# 
# Neil
# 
# - Original Message -
# From: "Adress, David S." [EMAIL PROTECTED]
# To: "JRun-Talk" [EMAIL PROTECTED]
# Sent: Friday, December 08, 2000 8:29 AM
# Subject: $20 bucks to the 1st person who actually solves my problem!!!
# 
# 
#  I am on this for days and I can't figure out what I'm doing 
# wrong. I will
#  send $20 bucks to 1st person who actually solves my problem.
# 
#  I am using jsp page's to control the layout of my page and 
# servlets to
# spit
#  back
#  table data or to do database transactions.
# 
#  I have a jsp page that displays a list of employees. The jsp page
#  has an include statement to include the servlet to spit out 
# the table.
#  The jsp just handles the general look of the page and the 
# servlet just
#  spits out the table and table html tags. Next to each 
# record I have an add
#  and
#  delete hyperlink. If someone clicks the add link it 
# displays another page
# to
#  add
#  an employee and then the action servlet adds the record and 
# then goes back
#  to the jsp
#  list page. If some one deletes a record it calls a servlet 
# to delete and
#  then the servlet redirects back to the jsp list page. But 
# the list doesn't
#  display the updated data without having me hit the refresh 
# button in the
#  browser.
# 
#  I tried using Tomcat and now am using Jrun and am still 
# having the same
#  problem.
# 
#  I've included all the proper meta tags in the jsp list page 
# not to cache
# but
#  it's not working. I've also tries doing it with 
# reponse.setHeader but it
#  doesn't work either.
# 
#  I've tried sending a random number param to the page
#  ShowList?rnd=Randomnumber it still doesn't work.
# 
# 
#  
#  Your ad could be here. Monies from ads go to support these lists and
# provide more resources for the community.
# http://www.fusionauthority.com/ads.cfm
# 
#  Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
#  Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
# 
# 
# 
# Your ad could be here. Monies from ads go to support these 
# lists and provide
# more resources for the community. 
# http://www.fusionauthority.com/ads.cfm
# 
# Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
# Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
# 



Re: limit threads per servlet in Tomcat

2000-12-08 Thread Clifford . Okoro



Oh yes there is a way to set it. In the server.xml file. Like this

Connector className="org.apache.tomcat.service.PoolTcpConnector"
Parameter name="handler"
value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/
Parameter name="port" value="8007"/
Parameter
name="max_threads"
value="3"/
Parameter
name="max_spare_threads"
value="2"/
Parameter
name="min_spare_threads"
value="1" /
/Connector

Just find the Connector entry corresponding to the one above and go for it. The
nodes that youll need are the 'thread' named nodes.

Yes, it'll hit your performance (esp OutOfmemory) if you don't allocate enough
for the possible threads so take care.

Clifford







"J Y" [EMAIL PROTECTED] on 12/08/2000 03:35:09 PM


Please respond to [EMAIL PROTECTED]





  
  
  
 To:  [EMAIL PROTECTED]  
  
 cc:  (bcc: Clifford Okoro/Harrow/Ladbrokes)  
  
  
  
 Subject: limit threads per servlet in Tomcat 
  







Hi

I wish to setup Tomcat to limit threads per servlet, say 20 threads to
execute in one servlet concurrently. the 21th request would cause the
Tomecat engine to generate a new servlet instance.

Is there a way to do it. any comment appriciated.

Also, what's the performance concerns. is that possible to create a pool of
servelts?

Thanks

Jay
_

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




__


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






RE: limit threads per servlet in Tomcat

2000-12-08 Thread Kitching Simon

Hi Jay,

Why would you want to do this?

As far as I can see, having one object with 21 threads 
is *more* efficient than 21 threads distributed across
two objects.

If you have some kind of lock contention, then using two
objects is not going to improve this; by definition, a lock is
only required when threads need to share data. So if you have
a lock (with inter-thread contention), then you *cannot* create
two objects, as the data-sharing will then not work.

If you don't have lock contention, then why create new
instances? This just seems to me to use up memory

Is there something I'm missing ??

Cheers,

Simon

 -Original Message-
 From: J Y [SMTP:[EMAIL PROTECTED]]
 Sent: Friday, December 08, 2000 4:35 PM
 To:   [EMAIL PROTECTED]
 Subject:  limit threads per servlet in Tomcat
 
 Hi
 
 I wish to setup Tomcat to limit threads per servlet, say 20 threads to 
 execute in one servlet concurrently. the 21th request would cause the
 Tomecat engine to generate a new servlet instance.
 
 Is there a way to do it. any comment appriciated.
 
 Also, what's the performance concerns. is that possible to create a pool
 of 
 servelts?
 
 Thanks
 
 Jay
 __
 ___
 Get more from the Web.  FREE MSN Explorer download :
 http://explorer.msn.com



RE: limit threads per servlet in Tomcat

2000-12-08 Thread Kitching Simon

Hi,

I think this answer is to a slightly different 
question than the one that was asked...

The config example below limits the number of
threads handling client requests to 3. However,
any further clients that connect *wait* for an
earlier request to finish (freeing the thread).

The original question asked if a *new object*
could be spawned if the number of concurrent
requests exceeded a certain limit.

Now that I think of it, perhaps Jay's question
is a result of a minor misunderstanding about
tomcat's threads. Just in case, here's a brief
summary of thread-pools in tomcat.

A common misunderstanding is to think that
each servlet implements "runnable", and it is
the servlet's thread(s) that waits for a URL 
specifying itself. This won't work because
(a) a web application can have hundreds of
servlets in it. Allowing (for example) 20 threads
*per servlet* just won't work.
(b) a request can pass through multiple servlets
(via forward or include commands).

Instead, Tomcat creates threads to handle 
incoming requests. When a client connects, the 
thread gets assigned to that client, and runs 
*whatever* servlets need to be run to satisfy the 
request.

In summary, the solution is to use the example
as given below. This way, tomcat is configured 
to handle a certain number of requests in parallel,
no matter what servlets are to be executed. The 
upper bound on the number of threads ensures
that there is an upper bound on the resources
required by tomcat (at least thread-related resources).

There is only ever one instance of each servlet,
and this is all there needs to be, no matter how
many threads are configured in the thread pool.

Cheers,

Simon

 -Original Message-
 From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
 Sent: Friday, December 08, 2000 5:18 PM
 To:   [EMAIL PROTECTED]
 Subject:  Re: limit threads per servlet in Tomcat
 
 
 
 Oh yes there is a way to set it. In the server.xml file. Like this
 
 Connector className="org.apache.tomcat.service.PoolTcpConnector"
 Parameter name="handler"
 value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/
 Parameter name="port" value="8007"/
 Parameter
 name="max_threads"
 value="3"/
 Parameter
 name="max_spare_threads"
 value="2"/
 Parameter
 name="min_spare_threads"
 value="1" /
 /Connector
 
 Just find the Connector entry corresponding to the one above and go for
 it. The
 nodes that youll need are the 'thread' named nodes.
 
 Yes, it'll hit your performance (esp OutOfmemory) if you don't allocate
 enough
 for the possible threads so take care.
 
 Clifford
 
 
 
 
 
 
 
 "J Y" [EMAIL PROTECTED] on 12/08/2000 03:35:09 PM
 
 
 Please respond to [EMAIL PROTECTED]
  
 
  
 
  
 
 
 
   
   
   
  To:  [EMAIL PROTECTED]  
   
  cc:  (bcc: Clifford Okoro/Harrow/Ladbrokes)  
   
   
   
  Subject: limit threads per servlet in Tomcat 
   
 
 
 
 
 
 
 
 Hi
 
 I wish to setup Tomcat to limit threads per servlet, say 20 threads to
 execute in one servlet concurrently. the 21th request would cause the
 Tomecat engine to generate a new servlet instance.
 
 Is there a way to do it. any comment appriciated.
 
 Also, what's the performance concerns. is that possible to create a pool
 of
 servelts?
 
 Thanks
 
 Jay
 __
 ___
 
 Get more from the Web.  FREE MSN Explorer download :
 http://explorer.msn.com
 
 
 
 
 __
 
 
This communication and any files transmitted with it are confidential
 and
intended solely for the use of the individual or entity to whom they
 are
addressed. If you have received it in error please notify the sender or
[EMAIL PROTECTED] or telephone +44 (0)20 8868 8899. The
 unauthorised
use, disclosure, copying or alteration of this message is forbidden.
Ladbrokes Limited will not be liable for direct, special, indirect or
consequential damage as a result of any virus being passed on, or
 arising
from alteration of the contents of this message by a third party.
 Please note
that in replying to this mail, you are granting the right for that
 reply to
be forwarded to any other individual and to be read by a surrogate in
 the
event that the 

RE: $20 bucks to the 1st person who actually solves my problem!!! - WE HAVE A WINNER!!!

2000-12-08 Thread G.Nagarajan

This is off topic but this reminds me that most of the time we
try to solve problems thinking that we have understood the problem
completely and have
an intuition where the solution is.
And we spend lots of effort and time trying to fix the imaginary problem.
Like in
this case, we thought it was due to caching and tried to fix it and it has
turned
out to be with the database part !

I wonder what Adress would have done without this mailing list!

-Original Message-
From: Adress, David S. [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 5:16 PM
To: '[EMAIL PROTECTED]'
Subject: RE: $20 bucks to the 1st person who actually solves my
problem!!! - WE HAVE A WINNER!!!


I guess it appeared to be caching





RE: $20 bucks to the 1st person who actually solves my problem!!! - WE HAVE A WINNER!!!

2000-12-08 Thread Adress, David S.

These lists are great becuase sometimes you need others to provide a new
outlook to the problem

-Original Message-
From: G.Nagarajan [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 11:38 AM
To: [EMAIL PROTECTED]
Subject: RE: $20 bucks to the 1st person who actually solves my
problem!!! - WE HAVE A WINNER!!!


This is off topic but this reminds me that most of the time we
try to solve problems thinking that we have understood the problem
completely and have
an intuition where the solution is.
And we spend lots of effort and time trying to fix the imaginary problem.
Like in
this case, we thought it was due to caching and tried to fix it and it has
turned
out to be with the database part !

I wonder what Adress would have done without this mailing list!

-Original Message-
From: Adress, David S. [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 5:16 PM
To: '[EMAIL PROTECTED]'
Subject: RE: $20 bucks to the 1st person who actually solves my
problem!!! - WE HAVE A WINNER!!!


I guess it appeared to be caching




Re: running init() twice?

2000-12-08 Thread Irina Rubenchik


I'm running on winNT, and I do have print statements in my init(). This
is how I see that it is being called for both frames.
"Parayali, Jayesh 1065" wrote:

are you running
on winNT?
try displaying
something inside init()
like System.out.println("now
starting init");
-Original Message-
From:
Irina Rubenchik [SMTP:[EMAIL PROTECTED]]
Sent:
Thursday, December 07, 2000 9:36 AM
To:
Parayali, Jayesh 1065
Subject:
Re: running init() twice?
Then how come it is called twice?
"Parayali, Jayesh 1065" wrote:

init will be
called only once.. you don't need to set anything.
 -Original
Message-
From: Irina
Rubenchik [SMTP:[EMAIL PROTECTED]]
Sent: Thursday,
December 07, 2000 6:37 AM
To:
tomcat-user
Subject:
running init() twice?
 Hello,
 I
have a web page with 2 frames. Both frames invoke one servlet with
different parameters. When I run this
servlet, it seems like it is
executing the init method twice, once
for each frame. Is there an option
 that
I can set in tomcat, which would make sure that the init method of
my servlet only invoked once?
 Thanks
irina  File: Card for Irina
Rubenchik >>
 File: Card for Irina Rubenchik >>



begin:vcard 
n:Rubenchik;Irina
tel;pager:888-919-6628
tel;work:212-762-1594
x-mozilla-html:FALSE
org:MSDW;IT
adr:;;750 7th Ave, 14th Floor;New York;NY;10019;USA
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Irina Rubenchik
end:vcard



servlet or page target _top in IE

2000-12-08 Thread Michael Remijan

Hi,

Ok, in Navigator I can use
META HTTP-EQUIV="Window-target" CONTENT="_top"
and have a servlet call a page and have that page not be in a frame.

As usual, Navigator and IE don't agree.  IE ignores this META tag so
the page still appears in the frame.  I also tried
response.setHeader("Window-target", "_top"); but that doesn't work for
Navigator or IE.  So anyone know how to target _top?


Michael J. Remijan
Software Engineer

dChain Commerce
2401 South Neil Street
Champaign, IL 61820
217.398.1860 x249




RE: Using Jikes with Tomcat 3.2 final

2000-12-08 Thread Arun Katkere

We ended up writing our own ContextInterceptor which looked up servlet named
"jsp" and configured it to use jikes:

   public void contextInit(Context ctx)
  throws TomcatException
   {
  if(ctx.getDebug()  0) {
 ctx.log("JikesContextInterceptor - init  " + ctx.getPath() + " " +
ctx.getDocBase());
  }
  ServletWrapper wrapper = ctx.getServletByName("jsp");
  if(wrapper != null) {
 wrapper.addInitParam("jspCompilerPlugin",
"org.apache.jasper.compiler.JikesJavaCompiler");
  }
  else {
 ctx.log("JikesContextInterceptor - no servlet named \"jsp\": " +
ctx.getPath() + " " + ctx.getDocBase());
  }
   }

and added this class *after* WebXmlReader loading in server.xml.

Not the cleanest way, but we didn't want to put TomCat specific code in all
our web.xmls.

-arun

 -Original Message-
 From: Barbara Nelson [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 07, 2000 5:58 PM
 To: '[EMAIL PROTECTED]'
 Subject: Using Jikes with Tomcat 3.2 final
 
 
 Has anyone got Tomcat 3.2 final to use Jikes rather than the 
 Sun compiler?
 If so, what did you put in the web.xml file.  We had it 
 working for Tomcat
 3.1, but I can't seem to get it to work in Tomcat 3.2. I'll 
 start debugging
 it tomorrow, but if someone has already figured it out, that 
 would save me
 some time :-)
 
 Barbara Nelson.
 
 
 
 
 



Re: NT authentication

2000-12-08 Thread Craig R. McClanahan

Josh Knowles wrote:

  Is there any way that you can set up a page to tap into NT authentication?  I
 dont know if this would be something that gets set in tomcat or if it is
 something that is non-tomcat related so I thought I would just try this
 list.Thanks,JoshJosh Knowles
 Web Developer
 World Wide Packets
 [EMAIL PROTECTED]
 509.242.9247

It would be technically feasible to accomplish this, by creating a custom Realm
implementation for Tomcat that interfaced to NT's authentication mechanisms via
native code and JNI.

However, unless you run across an SSL connection (or on an Intranet that is not
exposed to the outside world), doing so would be a pretty incredible security
risk, because the username and password are communicated across the network in
an unencrypted form when you use BASIC or FORM-BASED authentication in your web
application.

Craig McClanahan



Re: Accessing the ServletOutputStream via RequestInterceptors

2000-12-08 Thread Craig R. McClanahan

Alex Garrett wrote:

 Hello, all,

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

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


I've got two suggestions for you to consider that would make life a lot easier:

* Look at Tomcat 4.0, which implements the new Servlet 2.3 Spec.
  In particular, the 2.3 API supports the concept of a Filter that can
  be used to pre-process and post-process requests.  One of the
  primary use cases that motivated this design was performing things
  like XSLT transformations after the fact.  And (as an added bonus),
  filters are portable -- not Tomcat specific like interceptors or Valves
  (the Tomcat 4.0 equivalent).

* Consider using the Cocoon publishing framework (which you can get
  at http://xml.apache.org/cocoon).  It is designed to deal with sites
  that are based on XML content and corresponding transformations.

Under any circumstance, you should upgrade to at least Tomcat 3.2 -- there have
been
a very large number of bug fixes, as well as performance improvements.

Craig McClanahan



Re: Form Authentication through Apache

2000-12-08 Thread Craig R. McClanahan

Yasunari Sato wrote:

 It seems to work well that user authenticate
 by form based authentication in stand alone tomcat service.
 But when I integrate apache and tomcat, authentication doesn't work.
 I ckecked that Servlets which does not require
 authentication works well.

 Is there a special configuration to enable
 form based authentication on apache-tomcat
 integrated environment?


The Apache connector does not know anything about what is in your web.xml file,
so it doesn't know about your security constraints that ask for authentication.
You will have to use standard Apache facilities to configure valid users.

In Tomcat 4.0, this will not be the case -- the web connector will be configured
from the contents of the web.xml file.


 My test environment:
 WinNT, apache1.3, tomcat3.2b6

 Thanks,

 Yasunari Sato

Craig McClanahan



Re: scope of a bean

2000-12-08 Thread Craig R. McClanahan

Randy Layman wrote:

 Section 1.4.3 of the JSP 1.1 Final Spec (page 24).  Its available at
 http://www.javasoft.com/products/jsp/download.html
 http://www.javasoft.com/products/jsp/download.html

 My own understanding:  Session starts at the first time a user in a
 particular web browser instance requests a "resource" from Tomcat.  The
 session ends after the user hasn't make any more requests - default
 configuration this is about 30 minutes (I believe, I've always reset this to
 something else).  There are some caveats about the instances of web browsers
 - some browsers have bugs that allow a session to be used by two separate
 instances if you're using cookie based sessions.


With slightly more precision:

* A session starts when a request is made to a servlet or JSP page
  that initiates it.  For servlets, you have to do this deliberately by
  calling request.getSession().  JSP pages create a session for you
  (if it doesn't exist already) unless you tell it not to in your %@ page %
  directive.

* A session ends when it either times out (see more below) or you
  call session.invalidate() on it.  The latter would typically be done
  by your "logout" processing.

Session timeouts are based on the time between requests, not the total time that
the session has been in existence.  The default session timeout is configured in
your web.xml file; you can also adjust it on the fly by calling
session.setMaxInactiveInterval().

You will want the servlet 2.2 spec (referenced in an earlier email message) as
well as the JSP spec to get the complete picture here.


 Randy


Craig McClanahan



why can't I get the ApJservMount right

2000-12-08 Thread Filip Hanik

I must be missing something crucial.

I am playing around with Tomcat and Apache and I am reading the Tomcat User
Guide.
I copied and pasted the examples on how to write a tomcat-apache
configuration file
I still can not get the ApJServMount command to work properly.
In the document it says
ApJServMount URI protocol://host:port/context

which would mean anything that gets sent to your URI will be proxied
forward.
So for example
ApJServMount /cgi-bin ajpv12://localhost:8007/examples
should redirect any request that comes in to /cgi-bin to Tomcat examples.

This works fine using the ProxyPass command but I can't get the context to
redirect properly

below is my configuration file, and everything works except for the last
APJServMount command for cgi-bin,
any ideas or clarification on the ApJServMount directive would be a great
deal of help

thanks
Filip


###
# Apache JServ Configuration File
#

###

 LoadModule jserv_module modules/ApacheModuleJServ.dll


IfModule mod_jserv.c
# Do not edit!
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice


ApJServDefaultHost localhost
ApJServDefaultPort 8007

AddType text/jsp .jsp
AddHandler jserv-servlet .jsp

Alias /examples D:\Apache\jakarta-tomcat\webapps\examples
Directory "D:\Apache\jakarta-tomcat\webapps\examples"
Options Indexes FollowSymLinks
Options -Indexes
DirectoryIndex index.html
/Directory

Location /examples/WEB-INF
AllowOverride None
deny from all
/Location

ApJServMount /examples/servlet /examples

#Why doesn't this one work?
ApJServMount /cgi-bin ajpv12://localhost:8007/examples

/IfModule


Filip Hanik
Technical Architect
Pakana Corporation
[EMAIL PROTECTED]
415-371 9200 ext 3529





RE: running init() twice?

2000-12-08 Thread Parayali, Jayesh 1065
Title: RE: running init() twice?





Send me the piece of html or jsp where u r invoking your servlet.


-Original Message-
From: Irina Rubenchik [SMTP:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 8:42 AM
To: Parayali, Jayesh 1065
Cc: tomcat-user
Subject: Re: running init() twice?


I'm running on winNT, and I do have print statements in my init(). This is how I see that it is being called for both frames. 

Parayali, Jayesh 1065 wrote: 


  


are you running on winNT?
try displaying something inside init()
like System.out.println(now starting init); 


 -Original Message-
From:   Irina Rubenchik [SMTP:[EMAIL PROTECTED]]
Sent:   Thursday, December 07, 2000 9:36 AM
To: Parayali, Jayesh 1065
Subject:    Re: running init() twice? 


 Then how come it is called twice? 


 Parayali, Jayesh 1065 wrote: 


   


 init will be called only once.. you don't need to set anything. 


     -Original Message-
From:   Irina Rubenchik [SMTP:[EMAIL PROTECTED]]
Sent:   Thursday, December 07, 2000 6:37 AM
To: tomcat-user
Subject:    running init() twice? 


     Hello, 


     I have a web page with 2 frames. Both frames invoke one servlet with
different parameters. When I run this servlet, it seems like it is
executing the init method twice, once for each frame. Is there an option 


     that I can set in tomcat, which would make sure that the init method of
my servlet only invoked once? 


     Thanks
irina  File: Card for Irina Rubenchik 


   File: Card for Irina Rubenchik 

 File: Card for Irina Rubenchik  





RE: Install Apache3.14 with mod_jk.so and Tomcat3.2

2000-12-08 Thread Hernandez, Rey

To add my dilemma, I have the same problem with Apache 1.3.14 on NT.  I have
installed Tomcat 3.2final and when I include the LoadModule jk_module
modules/mod_jk.dll apache doesn't start, no error message except for "The
service failed to start" and no logs or anything.  Apache worked fine with
mod_jserv, but I'd like to be on the cutting edge. :)

Rey

-Original Message-
From: Jan Stevens [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 1:29 AM
To: [EMAIL PROTECTED]
Subject: RE: Install Apache3.14 with mod_jk.so and Tomcat3.2


Hi, 
What seems to happen is:
Tomcat starts ( works fine)
But when I start apache and include the mod_jk config file
Apache doesn't start anymore. Unfortunately
we don't get any error messages in any logfile.
Where are working on an Alpha 1000 with Tru64 Unix 4.0D

Jan

-Original Message-
From: Sandy McPherson [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 8 december 2000 10:04
To: [EMAIL PROTECTED]
Subject: Re: Install Apache3.14 with mod_jk.so and Tomcat3.2


Mario Beekwilder wrote:

 Hi,

 We are trying to get Apache3.14 working with mod_jk.so and Tomcat3.2
 on a Digital Alpha Tru64 4.0D Unix, with J2SDK 1.2.2.
 Everything compiled fine (thanks to the other mail-threads :)

 Apache with mod_jserv runs fine.
 Now the configuration of Tomcat and Apache with mod_jk. That's hard!
 Anyone already up-and-running?

 Mario Beekwilder
 Software Engineer  - CMG-TP

I have had no problems with Linux and Solaris. Getting mod_jk to compile
is explained the the mod_jkHowto file in in the doc directory. It was
really quite straightforward. Then you need to take the mod_jk.conf-auto
file include it in the httpd.conf and tune it to your needs. You
probably also need some Location and LocationMatch directives in the
httpd.conf file to get Apache to see the static files in your Tomcat
contexts.

If you explain what the problems are, then we could help, but as we
don't know what precisely is going wrong we can't help much!

Sandy



RE: 404 error w/ isapi_redirect.dll

2000-12-08 Thread Kintzer, Michael

Yes you are right.  Obviously that won't work and I'm not sure where that
came from, maybe when I was trying different things.   It's hard for me to
tell what is actually going on in the isapi.log file, it doesn't seem clear
to me when a request starts and stops in the log.  Do you know what I should
look for?  

In any case, I do not want to route directly to tomcat (the reason I am
using the isapi_redirect.dll) so I want to avoid using 8080 all together.
The command I am trying is http://localhost/examples/jsp/index.html and this
still results in the 404 error (and the 200 error in the IIS log).

Thanks,

Michael

-Original Message-
From: Marc Saegesser [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 6:37 AM
To: [EMAIL PROTECTED]
Subject: RE: 404 error w/ isapi_redirect.dll


I noticed that the URI your requesting is /examples:8080/jsp/index.html.
That'll never work.  Try something like
http://localhost:8080/examples/jsp/index.html


-Original Message-
From: Kintzer, Michael [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 07, 2000 12:05 PM
To: '[EMAIL PROTECTED]'
Subject: RE: 404 error w/ isapi_redirect.dll


Ignacio,

Attached are the IIS log and the isapi.log (excerpt).
Let me know if these are not the logs you intended.

Gracias,

Michael Kintzer

-Original Message-
From: Nacho [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 06, 2000 5:47 PM
To: '[EMAIL PROTECTED]'
Subject: RE: 404 error w/ isapi_redirect.dll


Append logs excerpts please, i have the same  conf working like a
charm..

Saludos ,
Ignacio J. Ortega


 -Mensaje original-
 De: Kintzer, Michael [mailto:[EMAIL PROTECTED]]
 Enviado el: jueves 7 de diciembre de 2000 2:47
 Para: '[EMAIL PROTECTED]'
 Asunto: RE: 404 error w/ isapi_redirect.dll


 I realize this topic has been covered nearly two months ago,
 but all the
 solutions given here have not worked for my environment.

 Here are the details:
 IIS 5.0, W2KPro, Tomcat 3.2
 I've configured everything according to the Tomcat-IIS HowTo
 and confirmed
 the following are working:

 -Tomcat hosted jsp/examples work fine (i.e. localhost:8080/)
 -isapi_redirect.dll has the green arrow
 -log files are being generated
 -isapi_redirect.dll is recognizing that it should handle jsp
 requests as
 evidenced by the line GET "/jakarta/isapi_redirect.dll" 200 in my
 SYSTEM32/LogFiles/W3SVC1/ log.
 -I can browse to the jakarta virtual directory
 -Anonymous access is enabled and file permissions on the
 redirect dll are
 also enabled for Full Control for Everyone.
 -the uriworkermap.properties file and the -auto file show
 that the examples
 context is being served by ajp12

 According to the HowTo, "200" implies the jakarta virtual
 directory is not
 configured for Execute permissions, but I've checked that and it is.

 I've rebooted and restarted both WWWService and AdminService,
 but nothing
 seems to fix the 404 error.

 Anybody have an idea for me?

 Thanks,

 Michael



 -Original Message-
 From: Paul FitzPatrick [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 16, 2000 7:26 AM
 To: [EMAIL PROTECTED]
 Subject: RE: 404 error w/ isapi_redirect.dll



 Stop/Start in the IIS Administrative Tool does not restart the admin
 service.  You have to do this from the control panel or a Dos
 Prompt like
 thus :

 net stop "IIS Admin Service"
 net start "IIS Admin Service"

 There are dependant services you may need to restart as well
 - this is the
 batch file I use to stop :

 @ECHO OFF
 NET STOP "FTP Publishing Service"
 NET STOP "World Wide Web Publishing Service"
 NET STOP "IIS Admin Service"

 In reverse order and replace STOP with START to start them all.


 -Original Message-
 From: David Young [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 16, 2000 10:11 AM
 To: [EMAIL PROTECTED]
 Subject: Re: 404 error w/ isapi_redirect.dll


 Stop/start did not do it, but rebooting did!

  From: Kieran Fitzpatrick [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  Date: Mon, 16 Oct 2000 09:52:55 +1000
  To: "'[EMAIL PROTECTED]'"
 [EMAIL PROTECTED]
  Subject: RE: 404 error w/ isapi_redirect.dll
 
  You might find that stopping and restarting the IIS Admin
 service via the
  Services applet in Control Panel is sufficient to get this
 working.  At
  least this seemed to work for me.
 
  Good luck,
 
  Kieran
 
  -Original Message-
  From: Christian Thomsen [mailto:[EMAIL PROTECTED]]
  Sent: Monday, 16 October 2000 6:07 AM
  To: [EMAIL PROTECTED]
  Subject: Re: 404 error w/ isapi_redirect.dll
 
 
  Hi !
 
  I had the same problem myself. I solved it by rebooting the
 computer (no
  kidding !). As I have verified several times, you have to
 do this when you
  change the IIS/Tomcat property files.
 
  I hope it helps,
 
  Chris
 
 
  - Original Message -
  From: "David Young" [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, October 13, 2000 4:39 AM
  Subject: 404 error w/ isapi_redirect.dll
 
 
  Hello,
 
  I am trying to get 

List of archives for tomcat-user

2000-12-08 Thread David Rees

 TOMCATers,
   Is there any way to make a digest form of this list available?  Is
 there an archive?  I cannot find one mentioned at the jakarta homepage.

There is an archive (actually, two!)  In fact, I posted this information
last week:
http://marc.theaimsgroup.com/?l=tomcat-userm=97606009209403w=2

The one I like to use (which goes back to 3/2000):
http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2

And the official one (which may not work if you're behind a firewall, you
need outgoing access to port  to perform searches):

http://mikal.org/interests/java/tomcat/index.html

There's even one more!
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/

Can the webmaster of jakarta.apache.org put links to these additional
archives up on the site?

-Dave




mod_jserv versus mod_jk

2000-12-08 Thread Dan R. Labonte

hi all,

I'm wondering if any one has good reason to load mod_jk instead of
mod_jserv. And if so would anyone out there have install specific
instructions for HP-UX. I'm in dire need here and being a newbie doesn't
seem to help out any. I've searched the archives to no avail, and I'm still
waiting for a reply from my last post. Can someone help out a fellow geek.

My first post... Running Apache 1.3.14 with Tomcat 3.2 and trying to compile
with gcc like docs said and receive the following error message...I can read
the error about needing ANSI C but I'm using what the docs suggest...

in the process of making it on apache and during the build of Jserv I
receive the following error

# /opt/apache/bin/apxs -c *.c -o mod_jserv.so
cc -Ae +z -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -O
-DSHARED_MODULE -I/opt/apache/include  -c *.c
(Bundled) cc: warning 480: The -A option is available only with the C/ANSI C
product; ignored.
(Bundled) cc: warning 480: The +z option is available only with the C/ANSI C
product; ignored.
(Bundled) cc: warning 480: The -O option is available only with the C/ANSI C
product; ignored.
(Bundled) cc: warning 485: Can't open "*.c".
apxs:Break: Command failed with rc=1

Any ideas or way I could find a pre-built version of mod_jserv.so...


Always willing to go the extra step for my fellow geek
Dan



Regarding ISAPI_REDIRECT.DLL

2000-12-08 Thread Marimuthu Muthusamy

Hello,

I have tried to install and configure ISAPI Redirector with tomcat3.2 and 
IIS 4.0. I have done everything mentioned in the HOW-TO document. but still 
the IIS 4.0 id not loading the isapi_redirect.dll. it shows the red arrow 
pointing downwards. I have also troubleshooted with the troubleshooting 
document. I find everything is correct. So what may be the other problems 
with IIS for not loading the redirector dll.

Thank you,

Marimuthu M.


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




RES: multipart requests and file uploads problems on the Apache connection

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

-BEGIN PGP SIGNED MESSAGE-

Hi, everybody! Unfortunately, it seems that there is an important limitation
when  using Jason's components. The developer cant mix text fields and file
setting fields in the form!
Good luck,

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


- -Mensagem original-
De: Joe Laffey [SMTP:[EMAIL PROTECTED]]
Enviada em: Quinta-feira, 7 de Dezembro de 2000 13:50
Para:   [EMAIL PROTECTED]; [EMAIL PROTECTED]
Assunto:Re: multipart requests and file uploads problems on
the Apache connection

Take a look at the multipart classes by Jason Hunter that are free for use
if you own the book "Java Servlet Programming" from O'Reilly. The code can
be downloaded from O'Reilly's site www.ora.com

I have only had one problem with it, and I think I have coded around it.
The problem was that sometimes uploads from MSIE 5.01 Win do not send the
boundary correctly (it varies by two characters everytime).


Joe Laffey
LAFFEY Computer Imaging
St. Louis, MO
- -
With no walls or fences on the Internet, who needs Windows or Gates?
- -
-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOjFcat0YhuJ3BUxtAQEO+QP+LW4a8HpIGlHQr1Mpj0IGbkuwwVBXGpR4
0g4iWIGJXn5hmAFkyC35jZTokqqw8AM1+u77jLlKPt9lHeohrSyXLPwWCmWrSiKR
bDGHJ9Z/i3eZw4QF+se7dvjfGR1IdJLRgqDmVAwIF40GPICtcpMxefGzN3KfjLzx
U9DdkA2DJMU=
=ddTy
-END PGP SIGNATURE-



Re: Session snooper

2000-12-08 Thread Craig R. McClanahan

Matthew Preston wrote:

 I'm need to create a simple tool for Tomcat so that I can see how many users
 have active sessions for the available Contexts.  e.g. how many sessions are
 active for /admin with details for each.

 Rather than reinventing the wheel I was wondering if someone has already
 created such a beast - it seems like useful tool to have.


Under a servlet 2.2 environment (Tomcat 3.x), it is not feasible to write such a
generic tool without some help by your application (the login process adds an
object to the session that implements HttpSessionBindingListener that keeps a
local collection of active sessions), or writing custom extensions to Tomcat.

Under a servlet 2.3 environment (Tomcat 4.x), you can use an application event
listener to do stuff like this in a generic way.


 Any ideas?

 Cheers,
 Matt

Craig McClanahan





Re: limit threads per servlet in Tomcat

2000-12-08 Thread Craig R. McClanahan

J Y wrote:

 Hi

 I wish to setup Tomcat to limit threads per servlet, say 20 threads to
 execute in one servlet concurrently. the 21th request would cause the
 Tomecat engine to generate a new servlet instance.


There is no way to do this in Tomcat.

On the other hand, doing this would not help performance at all ... it would actually
make performance slightly worse (because of the additional memory occupancy of the 
second
instance).  It's also against the servlet spec to do this.


 Is there a way to do it. any comment appriciated.

 Also, what's the performance concerns. is that possible to create a pool of
 servelts?


The standard mechanism for this is to say that your servlet implements the
SingleThreadModel interface.  This tells the servlet container to ensure that only one
request at a time in any one servlet instance -- essentially the call to the service()
method becomes synchronized.

To keep performance from totally suffering when you do this, the servlet container has
the *option* to create a pool of instances for you -- which means that the maximum 
number
of requests you can process simultaneously is limited to the configured maximum number 
if
instances in this pool.  Tomcat does *not* support this capability -- effectively the
pool size is one.

Further, IMHO, using SingleThreadModel is a very bad idea.  People like it because it
lets them use instance variables to store per-request state information, instead of 
using
local variables and passing arguments around (like they should :-).  However,
SingleThreadModel only gives you the illusion of thread safety -- you're still going to
have to deal with simultaneous requests if you are using static variables, or if you 
are
using sessions.  Why artificially cripple your servlet's performance, and get yourself 
in
trouble?

You are far better off *not* implementing SingleThreadModel.  Then, the only limit on 
how
many simultaneous requests you can support is the maximum number of threads in your
container, with no artificial limits imposed at the individual servlet level.


 Thanks

 Jay

Craig McClanahan





User Authentication config (Tomcat vs. Apache)

2000-12-08 Thread Russell Allen



Greetings all,
 I am having trouble getting 
authorization to work for a web-app in Tomcat. I would appreciate any 
advise I can get. Here is my case:

I am using Apache 1.3.12  Tomcat 3.2 (I also 
want 3.1 to work)
I have a webapp deployed entirely under 
Tomcat/webapps/ecims

I want user authentication to happen on ANY file, 
servlet, jsp, etc... in that webapp.

This is what I have done, and the 
effect:

I added this to my 
Tomcat/webapps/ecims/web-inf/web.xml file:
security-constraintweb-resource-collectionweb-resource-nameProtected 
Area/web-resource-nameurl-pattern/*/url-pattern
http-methodDELETE/http-methodhttp-methodGET/http-methodhttp-methodPOST/http-methodhttp-methodPUT/http-method/web-resource-collectionauth-constraintrole-nameecims/role-name/auth-constraint/security-constraintlogin-configauth-methodBASIC/auth-methodrealm-nameExample 
Basic Authentication 
Area/realm-name/login-config

When I hit my index page, I got the Auth dialog 
from IE. (great! It works...)
Then as I browsed through all is well... until I 
hit an Applet. The Applet loading caused another auth dialog BUT it was a 
java based dialog. And it continued popping up java dialogs for my auth 
info. It asks about 6 or 8 times, and it hit about 30-40 urls. ALL 
of these connections are back to servlets in my webapp (ecims).
My only thoughts are... I am using the Java plugin 
and maybe it is connecting directly to the server instead of using IE. 
This would explain it not having the previously entered user and password. 
However it does not explain why I get asked several times for what is the same 
URL (excluding parameters).

I thought I would try using Apache 
security:
I did set it up but it is ignored if I use port 
8080 (Tomcat for me). If I use 80 (Apache) then it asks and works for 
static content of my web-app but any dynamic content fails to load.

Thoughts, comments, and pointers are all welcome. 
Thanks in advance.

RA.


Russell AllenSr. Software 
EngineerEmageon(205) 980-9222x605


Re: valueUnbound() event in HttpSessionBindingListener

2000-12-08 Thread Craig R. McClanahan

"G.Nagarajan" wrote:


 How is it actually done internally? i.e., is there a thread similar to the
 garbage
 collector which checks the current sessions or is the session invalidated
 only
 when a request comes from the client. The second option will mean that the
 objects
 in the session will be occupying memory till the server is shutdown.


Tomcat uses a background thread that times sessions out.  By default, it checks
once per minute.

 Nagaraj.

Craig McClanahan





RE: Error Messages

2000-12-08 Thread Duane Morse
Title: Error Messages



I think you 
can get errors of this type if the user clicks the STOP button on the browser 
before the
response is 
completely transmitted (or, equivalently, when the user closes the browser 
prematurely).

Duane Morse, Eldorado Computing Inc., Phoenix 
AZ 

  -Original Message-From: Parayali, Jayesh 1065 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, December 08, 2000 
  12:40 PMTo: '[EMAIL PROTECTED]'Subject: 
  Error Messages
  I am running tomcat 3.2 on windows NT 
  workstation 
  I am getting the below 
  messages 
  2000-12-08 11:08:38 - Ctx( ): 
  IOException in: R( + /00.jpg + null) Connection aborted by peer: socket 
  write error 
  Anybody encountered this 
  problem? 
  Thanks, Jayesh 


RE: multipart requests and file uploads problems on the Apache connection

2000-12-08 Thread CPC Livelink Admin

That's interesting, since I've been doing that for some time now with no
issues.

-Original Message-
From: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 03:20 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RES: multipart requests and file uploads problems on the Apache
connection


-BEGIN PGP SIGNED MESSAGE-

Hi, everybody! Unfortunately, it seems that there is an important limitation
when  using Jason's components. The developer cant mix text fields and file
setting fields in the form!
Good luck,

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


- -Mensagem original-
De: Joe Laffey [SMTP:[EMAIL PROTECTED]]
Enviada em: Quinta-feira, 7 de Dezembro de 2000 13:50
Para:   [EMAIL PROTECTED]; [EMAIL PROTECTED]
Assunto:Re: multipart requests and file uploads problems on
the Apache connection

Take a look at the multipart classes by Jason Hunter that are free for use
if you own the book "Java Servlet Programming" from O'Reilly. The code can
be downloaded from O'Reilly's site www.ora.com

I have only had one problem with it, and I think I have coded around it.
The problem was that sometimes uploads from MSIE 5.01 Win do not send the
boundary correctly (it varies by two characters everytime).


Joe Laffey
LAFFEY Computer Imaging
St. Louis, MO
- -
With no walls or fences on the Internet, who needs Windows or Gates?
- -
-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOjFcat0YhuJ3BUxtAQEO+QP+LW4a8HpIGlHQr1Mpj0IGbkuwwVBXGpR4
0g4iWIGJXn5hmAFkyC35jZTokqqw8AM1+u77jLlKPt9lHeohrSyXLPwWCmWrSiKR
bDGHJ9Z/i3eZw4QF+se7dvjfGR1IdJLRgqDmVAwIF40GPICtcpMxefGzN3KfjLzx
U9DdkA2DJMU=
=ddTy
-END PGP SIGNATURE-




Re: Diffs between 3.1 and 3.2

2000-12-08 Thread Craig R. McClanahan

Patrik Beno wrote:

 Hi people!

 I have application which behaves differently in tomcat 3.1 and 3.2.

 3.1: loads ok, first page is displayd correctly
 3.2: Browser complains document contained no data; tomcat or my code
  (don't know which of 'em) runs much longer - seems like looping
  somewhere


One change that affects the first request to an app (more precisely, the first
request that creates a session) is the way session ids are calculated.  Tomcat
3.2 now uses the java.security.SecureRandom class for this, which (on some
platforms) can take many seconds to initialize itself the very first time it is
called.

Craig McClanahan





RE: Error Messages

2000-12-08 Thread CPC Livelink Admin
Title: Error Messages



At the 
risk of a 'me too' barrage, I have encountered the same message on many static 
items like images. I was ignoring it since that pages worked, but it would 
be nice to know what it is. I did not see it in 3.1, only 3.2on NT 
2000

  -Original Message-From: Parayali, Jayesh 1065 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, December 08, 2000 
  02:40 PMTo: '[EMAIL PROTECTED]'Subject: 
  Error Messages
  I am running tomcat 3.2 on windows NT 
  workstation 
  I am getting the below 
  messages 
  2000-12-08 11:08:38 - Ctx( ): 
  IOException in: R( + /00.jpg + null) Connection aborted by peer: socket 
  write error 
  Anybody encountered this 
  problem? 
  Thanks, Jayesh 


Using Apache user authentication for pages served by Tomcat

2000-12-08 Thread guyr

Someone else said they could not get authentication directives defined to
Apache to work for pages redirected to Tomcat.  I encountered the same
problem, but have found a workaround.  If you update your server.xml file so
that the document root used by Tomcat for a particular context is in the
Apache document directory, it seems to work.  An example may clarify.
On Windows, I have Tomcat in c:\jakarta-tomcat-3.2 and Apache in c:\Apache.
Apache's document root is c:\apache\htdocs.  I originally had Tomcat context
"domino" with a docbase of "webapps/domino", and the following Directory
directive in httpd.conf:

Directory c:/jakarta-tomcat-3.2/webapps/domino

Going to a file in the domino context did not prompt for a userid/password.

I then updated Tomcat's server.xml to use a docbase of
c:\apache\htdocs\domino (and of course moved the files there) and changed
Apaches httpd.conf with the following Directory directive:

Directory c:/apache/htdocs/domino

Now, when I try to get a file from http://myserver/domino, I get the popup
dialog to enter a userid and password.



RE: Error Messages

2000-12-08 Thread Parayali, Jayesh 1065
Title: RE: Error Messages





Right now its not causing any problem. But it might be slowing down tomcat Its happening when I hit refresh on IE. It is not happening when I refresh using Netscape Communicator.

The HTTP protocol must be different. I will check that later and keep you posted if I find anything.


Thanks,
Jayesh


-Original Message-
From: CPC Livelink Admin [SMTP:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 12:01 PM
To: [EMAIL PROTECTED]
Subject: RE: Error Messages


At the risk of a 'me too' barrage, I have encountered the same message on many static items like images.  I was ignoring it since that pages worked, but it would be nice to know what it is. I did not see it in 3.1, only 3.2 on NT 2000

-Original Message-
From: Parayali, Jayesh 1065 [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 02:40 PM
To: '[EMAIL PROTECTED]'
Subject: Error Messages




I am running tomcat 3.2 on windows NT workstation 


I am getting the below messages 


2000-12-08 11:08:38 - Ctx( ): IOException in: R(  + /00.jpg + null) Connection aborted by peer: socket write error 


Anybody encountered this problem? 


Thanks,
Jayesh 





3.2 NullPointer tossed from HttpSessionFacade

2000-12-08 Thread Sean Kroah



We are migrating our tomcat 3.1 compatible serverlet to the 3.2Final release. Occassionally we see a NullPointerException get tossed

from HttpSessionFacade whenever we try to access something from the Session, say get or set an attribute. This only happens on very long transactions,

where we refresh the servlet to post a "still waiting message". If I remove the servlet refresh the problem seems to go away. It's possible there is a race condition and one of objects we are storing in the session is locked, but does anyone have a clue why it might behave

differently in 3.1 and 3.2. The only thing I see different is the addition of the Facade classes and frankly I can't see how this would cause any problems.



Thanks,

SKroah





--
Sean Kroah T:503.222.9660
 F:503.241.5682
WireX Communications, Inc.
Software Engineer, [EMAIL PROTECTED]



RE: multipart requests and file uploads problems on the Apache c onnection

2000-12-08 Thread Josh Knowles

I have had no problems mixing the two

-Original Message-
From: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 12:20 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RES: multipart requests and file uploads problems on the Apache
c onnection


-BEGIN PGP SIGNED MESSAGE-

Hi, everybody! Unfortunately, it seems that there is an important limitation
when  using Jason's components. The developer cant mix text fields and file
setting fields in the form!
Good luck,

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


- -Mensagem original-
De: Joe Laffey [SMTP:[EMAIL PROTECTED]]
Enviada em: Quinta-feira, 7 de Dezembro de 2000 13:50
Para:   [EMAIL PROTECTED]; [EMAIL PROTECTED]
Assunto:Re: multipart requests and file uploads problems on
the Apache connection

Take a look at the multipart classes by Jason Hunter that are free for use
if you own the book "Java Servlet Programming" from O'Reilly. The code can
be downloaded from O'Reilly's site www.ora.com

I have only had one problem with it, and I think I have coded around it.
The problem was that sometimes uploads from MSIE 5.01 Win do not send the
boundary correctly (it varies by two characters everytime).


Joe Laffey
LAFFEY Computer Imaging
St. Louis, MO
- -
With no walls or fences on the Internet, who needs Windows or Gates?
- -
-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOjFcat0YhuJ3BUxtAQEO+QP+LW4a8HpIGlHQr1Mpj0IGbkuwwVBXGpR4
0g4iWIGJXn5hmAFkyC35jZTokqqw8AM1+u77jLlKPt9lHeohrSyXLPwWCmWrSiKR
bDGHJ9Z/i3eZw4QF+se7dvjfGR1IdJLRgqDmVAwIF40GPICtcpMxefGzN3KfjLzx
U9DdkA2DJMU=
=ddTy
-END PGP SIGNATURE-



RES: multipart requests and file uploads problems on the Apache c onnection

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

-BEGIN PGP SIGNED MESSAGE-

Even in NT environment? Thank you.

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


- -Mensagem original-
De: Josh Knowles [SMTP:[EMAIL PROTECTED]]
Enviada em: Sexta-feira, 8 de Dezembro de 2000 18:45
Para:   '[EMAIL PROTECTED]'
Assunto:RE: multipart requests and file uploads problems on
the Apache c  onnection

I have had no problems mixing the two

- -Original Message-
From: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 12:20 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RES: multipart requests and file uploads problems on the Apache
c onnection



*** PGP Signature Status: bad
*** Signer: Jose Euclides Jr [EMAIL PROTECTED] 
*** Signed: 08/12/00 16:10:50
*** Verified: 08/12/00 17:46:20
*** BEGIN PGP VERIFIED MESSAGE ***

Hi, everybody! Unfortunately, it seems that there is an important limitation
when  using Jason's components. The developer cant mix text fields and file
setting fields in the form!
Good luck,

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


- -Mensagem original-
De: Joe Laffey [SMTP:[EMAIL PROTECTED]]
Enviada em: Quinta-feira, 7 de Dezembro de 2000 13:50
Para:   [EMAIL PROTECTED]; [EMAIL PROTECTED]
Assunto:Re: multipart requests and file uploads problems on
the Apache connection

Take a look at the multipart classes by Jason Hunter that are free for use
if you own the book "Java Servlet Programming" from O'Reilly. The code can
be downloaded from O'Reilly's site www.ora.com

I have only had one problem with it, and I think I have coded around it.
The problem was that sometimes uploads from MSIE 5.01 Win do not send the
boundary correctly (it varies by two characters everytime).


Joe Laffey
LAFFEY Computer Imaging
St. Louis, MO
- -
With no walls or fences on the Internet, who needs Windows or Gates?
- -

*** END PGP VERIFIED MESSAGE ***

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOjFzD90YhuJ3BUxtAQHrWwP+Maxhw3z2IBXwKg6J2DQdMlZGkwPVuJDN
d9CcksGgRHSaHR53p79VkXzceTC9acNITocFfiowpONKYhQOStGnQ/31fDFXMfbE
NBksfaubs8rUKf1TipRHvU9AVkTmI6mf7BuzI4ycmqKsanbLDMEM9TSG4CjG6PAp
McRn2ZG88hI=
=/TtX
-END PGP SIGNATURE-



problem with max_threads 100

2000-12-08 Thread William Au

I am getting the following exceptions when I set the max_threads
parameter to
256.  I am using Tomcat 3.2 standalone with the PoolTcpConnector.
I looked at
the source code of jasper.runtime.JspFactoryImpl and discovered that it
is
hard-coding 100 to be the size of a SimplePool it uses internally.

public class JspFactoryImpl extends JspFactory {
private SimplePool pool=new SimplePool( 100 );
private static final boolean usePool=true;
...
}

Is there any way to get around this problem?  Or is 100 the upper-bound
for
max_threads?

Bill

java.lang.ArrayIndexOutOfBoundsException: 100
at org.apache.tomcat.util.SimplePool.get(Compiled Code)
at
org.apache.jasper.runtime.JspFactoryImpl.getPageContext(Compiled Code
)
at _0002f_00031_00030k_0002ejsp10k_jsp_2._jspService(Compiled
Code)
at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compil
ed Code)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.doService(Compiled
Code)
at org.apache.tomcat.core.Handler.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
at
org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
at org.apache.tomcat.core.ContextManager.service(Compiled Code)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled
Code)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)






RE: bind error

2000-12-08 Thread John de la Garza

The jvm is not running...for sure it is not.  The funny thing is that aft4er
I get this error message it still works!

I am using jdbc real formbased security...I don't know if this could be part
of the issue.

as for 3.1 it is stopped...

also, I am running tomcat as a standalone server on port 80 for dev purposes


when I telnet to 127.0.0.1:80 I get this:



SunOS 5.6

login:




what's up with that?  Im running windows 2000!

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 12:44 PM
To: '[EMAIL PROTECTED]'
Subject: RE: bind error


Something else is using the port?

Check that:
1. You are not still running Tomcat 3.1 (is so, change the ports for
Tomcat 3.2 in the server.xml file)
2. Try stoping and then starting.  Make sure that the JVM actually
dies before restarting.
3. Without Tomcat running, telnet to the ports that Tomcat uses
(usually 8080 and 8007, check server.xml for actual).  See if you can figure
out what is actually running on the port.  (To check for HTTP, try GET
/enter, if this returns an HTML looking document then a webserver of some
kind is running on the port).

Randy

-Original Message-
From: John de la Garza [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 3:53 PM
To: Tomcat-Users (E-mail)
Subject: bind error


Since I have switched to tom cat 3.2 when I restart the server I get this:


Starting tomcat. Check logs/tomcat.log for error messages
FATAL:java.net.BindException: Address in use: JVM_Bind
java.net.BindException: Address in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397)
at java.net.ServerSocket.init(ServerSocket.java:170)
at java.net.ServerSocket.init(ServerSocket.java:121)
at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(Default
ServerSocketFactory.java:97)
at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoi
nt.java:239)
at
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.jav
a:188)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:204)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)



any clues to why?




RES: multipart requests and file uploads problems on the Apache c onnection

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

-BEGIN PGP SIGNED MESSAGE-

i KNOW IT. BUT IIS DOESNT...

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


- -Mensagem original-
De: Josh Knowles [SMTP:[EMAIL PROTECTED]]
Enviada em: Sexta-feira, 8 de Dezembro de 2000 19:15
Para:   '[EMAIL PROTECTED]'
Assunto:RE: multipart requests and file uploads problems on
the Apache c  onnection

Java is Java no matter what OS you are running on.  I have used the
multipart on both RedHat 6.2 and Win2k with no problems.

- -Original Message-
From: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 1:57 PM
To: [EMAIL PROTECTED]
Subject: RES: multipart requests and file uploads problems on the Apache
c onnection



*** PGP Signature Status: bad
*** Signer: Jose Euclides Jr [EMAIL PROTECTED] 
*** Signed: 08/12/00 17:47:27
*** Verified: 08/12/00 18:16:42
*** BEGIN PGP VERIFIED MESSAGE ***

Even in NT environment? Thank you.

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


- -Mensagem original-
De: Josh Knowles [SMTP:[EMAIL PROTECTED]]
Enviada em: Sexta-feira, 8 de Dezembro de 2000 18:45
Para:   '[EMAIL PROTECTED]'
Assunto:RE: multipart requests and file uploads problems on
the Apache c  onnection

I have had no problems mixing the two

- -Original Message-
From: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 12:20 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RES: multipart requests and file uploads problems on the Apache
c onnection



*** PGP Signature Status: bad
*** Signer: Jose Euclides Jr [EMAIL PROTECTED] 
*** Signed: 08/12/00 16:10:50
*** Verified: 08/12/00 17:46:20
*** BEGIN PGP VERIFIED MESSAGE ***

Hi, everybody! Unfortunately, it seems that there is an important limitation
when  using Jason's components. The developer cant mix text fields and file
setting fields in the form!
Good luck,

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


- -Mensagem original-
De: Joe Laffey [SMTP:[EMAIL PROTECTED]]
Enviada em: Quinta-feira, 7 de Dezembro de 2000 13:50
Para:   [EMAIL PROTECTED]; [EMAIL PROTECTED]
Assunto:Re: multipart requests and file uploads problems on
the Apache connection

Take a look at the multipart classes by Jason Hunter that are free for use
if you own the book "Java Servlet Programming" from O'Reilly. The code can
be downloaded from O'Reilly's site www.ora.com

I have only had one problem with it, and I think I have coded around it.
The problem was that sometimes uploads from MSIE 5.01 Win do not send the
boundary correctly (it varies by two characters everytime).


Joe Laffey
LAFFEY Computer Imaging
St. Louis, MO
- -
With no walls or fences on the Internet, who needs Windows or Gates?
- -

*** END PGP VERIFIED MESSAGE ***


*** END PGP VERIFIED MESSAGE ***

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOjF6GN0YhuJ3BUxtAQGGXgQAgjricxofr5wqwVfQimz1n2wwlro3y7b4
Spw+yr5O9tY5tsDaAsUaxyrhALtbXdYTE8BJ6gfSzmAJ1d2mgnc9XfcsVXg9s2sx
qnopUqAVHUSTCxovLEjbavAJjWYlKSSyzGuGMy2WAAvm20kjqNTlbCf5rlFck7tj
ntu9ic1jV/g=
=GtrT
-END PGP SIGNATURE-



RES: multipart requests and file uploads problems on the Apache c onnection

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

-BEGIN PGP SIGNED MESSAGE-

tank you.

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


- -Mensagem original-
De: Chris Halverson [SMTP:[EMAIL PROTECTED]]
Enviada em: Sexta-feira, 8 de Dezembro de 2000 19:28
Para:   [EMAIL PROTECTED]
Assunto:RE: multipart requests and file uploads problems on
the Apache c  onnection

NT4.0, Solaris 2.6 and Solaris 2.8 work fine too as you would expect. 

-Original Message- 
From:   Josh Knowles [SMTP:[EMAIL PROTECTED]] 
Sent:   Friday, December 08, 2000 2:15 PM 
To: '[EMAIL PROTECTED]' 
Subject:    RE: multipart requests and file uploads problems on the
Apache c  onnection 

Java is Java no matter what OS you are running on.  I have used the 
multipart on both RedHat 6.2 and Win2k with no problems. 

-Original Message- 
From: Jose Euclides da Silva Junior - DIGR.O 
[ mailto:[EMAIL PROTECTED]] 
Sent: Friday, December 08, 2000 1:57 PM 
To: [EMAIL PROTECTED] 
Subject: RES: multipart requests and file uploads problems on the Apache 
c onnection 


-BEGIN PGP SIGNED MESSAGE- 

Even in NT environment? Thank you. 

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


- -Mensagem original- 
De:     Josh Knowles [SMTP:[EMAIL PROTECTED]] 
Enviada em:     Sexta-feira, 8 de Dezembro de 2000 18:45 
Para:       '[EMAIL PROTECTED]' 
Assunto:        RE: multipart requests and file uploads problems on 
the Apache c  onnection 

I have had no problems mixing the two 

- -Original Message- 
From: Jose Euclides da Silva Junior - DIGR.O 
[ mailto:[EMAIL PROTECTED]] 
Sent: Friday, December 08, 2000 12:20 PM 
To: [EMAIL PROTECTED]; [EMAIL PROTECTED] 
Subject: RES: multipart requests and file uploads problems on the Apache 
c onnection 



*** PGP Signature Status: bad 
*** Signer: Jose Euclides Jr [EMAIL PROTECTED] 
*** Signed: 08/12/00 16:10:50 
*** Verified: 08/12/00 17:46:20 
*** BEGIN PGP VERIFIED MESSAGE *** 

Hi, everybody! Unfortunately, it seems that there is an important
limitation 
when  using Jason's components. The developer cant mix text fields and file 
setting fields in the form! 
Good luck, 

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


- -Mensagem original- 
De:     Joe Laffey [SMTP:[EMAIL PROTECTED]] 
Enviada em:     Quinta-feira, 7 de Dezembro de 2000 13:50 
Para:       [EMAIL PROTECTED]; [EMAIL PROTECTED] 
Assunto:        Re: multipart requests and file uploads problems on 
the Apache connection 

Take a look at the multipart classes by Jason Hunter that are free
for use 
if you own the book "Java Servlet Programming" from O'Reilly. The code can 
be downloaded from O'Reilly's site www.ora.com 

I have only had one problem with it, and I think I have coded around
it. 
The problem was that sometimes uploads from MSIE 5.01 Win do not send the 
boundary correctly (it varies by two characters everytime). 


Joe Laffey 
LAFFEY Computer Imaging 
St. Louis, MO 
- - - 
With no walls or fences on the Internet, who needs Windows or Gates? 
- - - 

*** END PGP VERIFIED MESSAGE *** 

-BEGIN PGP SIGNATURE- 
Version: PGP 6.5.1 

iQCVAwUBOjFzD90YhuJ3BUxtAQHrWwP+Maxhw3z2IBXwKg6J2DQdMlZGkwPVuJDN 
d9CcksGgRHSaHR53p79VkXzceTC9acNITocFfiowpONKYhQOStGnQ/31fDFXMfbE 
NBksfaubs8rUKf1TipRHvU9AVkTmI6mf7BuzI4ycmqKsanbLDMEM9TSG4CjG6PAp 
McRn2ZG88hI= 
=/TtX 
- -END PGP SIGNATURE- 

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOjF6M90YhuJ3BUxtAQEY3QP/QbVysTn6FGYo4Zl2mJqqWECcm/+0A0LK
VXQ5N393WTyhgZAil1g4TgvPPUP4HiYNtQMbZeZedbmp8xFm6lAdKB3XVHSoN3tL
c8iHhnKlQZd1qk/1iUUdJ/ch6KegdyGnzOz1PgenBN4H2BhkV6oembeCRhbmzvTs
/6yp9B27vtA=
=wg6u
-END PGP SIGNATURE-



Re: multipart requests and file uploads problems on the Apache c onnection

2000-12-08 Thread Steve Ruby


I agree, works fine for me, make sure you are trying to read the
non-file parameters with the multipart reader and not just with the
method from Tomcat.. Once the user sends the mime post the whole
thing is mime not just the file...


 Chris Halverson wrote:
 
 NT4.0, Solaris 2.6 and Solaris 2.8 work fine too as you would expect.
 
  -Original Message-
  From:   Josh Knowles [SMTP:[EMAIL PROTECTED]]
  Sent:   Friday, December 08, 2000 2:15 PM
  To: '[EMAIL PROTECTED]'
  Subject:RE: multipart requests and file uploads problems
  on the Apache c  onnection
 
  Java is Java no matter what OS you are running on.  I have used
  the
  multipart on both RedHat 6.2 and Win2k with no problems.
 
  -Original Message-
  From: Jose Euclides da Silva Junior - DIGR.O
  [mailto:[EMAIL PROTECTED]]
  Sent: Friday, December 08, 2000 1:57 PM
  To: [EMAIL PROTECTED]
  Subject: RES: multipart requests and file uploads problems on the
  Apache
  c onnection
 
  -BEGIN PGP SIGNED MESSAGE-
 
  Even in NT environment? Thank you.
 
  José Euclides Júnior
  __
  E-mail: [EMAIL PROTECTED]
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
  http://euclides.8m.com
 
  - -Mensagem original-
  De: Josh Knowles
  [SMTP:[EMAIL PROTECTED]]
  Enviada em: Sexta-feira, 8 de Dezembro de 2000 18:45
  Para:   '[EMAIL PROTECTED]'
  Assunto:RE: multipart requests and file uploads
  problems on
  the Apache c  onnection
 
  I have had no problems mixing the two
 
  - -Original Message-
  From: Jose Euclides da Silva Junior - DIGR.O
  [mailto:[EMAIL PROTECTED]]
  Sent: Friday, December 08, 2000 12:20 PM
  To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Subject: RES: multipart requests and file uploads problems on the
  Apache
  c onnection
 
  *** PGP Signature Status: bad
  *** Signer: Jose Euclides Jr
  [EMAIL PROTECTED]
  *** Signed: 08/12/00 16:10:50
  *** Verified: 08/12/00 17:46:20
  *** BEGIN PGP VERIFIED MESSAGE ***
 
  Hi, everybody! Unfortunately, it seems that there is an important
  limitation
  when  using Jason's components. The developer cant mix text
  fields and file
  setting fields in the form!
  Good luck,
 
  José Euclides Júnior
  __
  E-mail: [EMAIL PROTECTED]
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
  http://euclides.8m.com
 
  - -Mensagem original-
  De: Joe Laffey [SMTP:[EMAIL PROTECTED]]
  Enviada em: Quinta-feira, 7 de Dezembro de 2000 13:50
 
  Para:   [EMAIL PROTECTED];
  [EMAIL PROTECTED]
  Assunto:Re: multipart requests and file uploads
  problems on
  the Apache connection
 
  Take a look at the multipart classes by Jason Hunter that are
  free for use
  if you own the book "Java Servlet Programming" from O'Reilly. The
  code can
  be downloaded from O'Reilly's site www.ora.com
 
  I have only had one problem with it, and I think I have coded
  around it.
  The problem was that sometimes uploads from MSIE 5.01 Win do not
  send the
  boundary correctly (it varies by two characters everytime).
 
  Joe Laffey
  LAFFEY Computer Imaging
  St. Louis, MO
  - -
  With no walls or fences on the Internet, who needs Windows or
  Gates?
  -
  -
 
  *** END PGP VERIFIED MESSAGE ***
 
  -BEGIN PGP SIGNATURE-
  Version: PGP 6.5.1
 
  iQCVAwUBOjFzD90YhuJ3BUxtAQHrWwP+Maxhw3z2IBXwKg6J2DQdMlZGkwPVuJDN
  d9CcksGgRHSaHR53p79VkXzceTC9acNITocFfiowpONKYhQOStGnQ/31fDFXMfbE
  NBksfaubs8rUKf1TipRHvU9AVkTmI6mf7BuzI4ycmqKsanbLDMEM9TSG4CjG6PAp
  McRn2ZG88hI=
  =/TtX
  -END PGP SIGNATURE-



RE: bind error

2000-12-08 Thread Randy Layman

Something else is using the port?

Check that:
1. You are not still running Tomcat 3.1 (is so, change the ports for
Tomcat 3.2 in the server.xml file)
2. Try stoping and then starting.  Make sure that the JVM actually
dies before restarting.
3. Without Tomcat running, telnet to the ports that Tomcat uses
(usually 8080 and 8007, check server.xml for actual).  See if you can figure
out what is actually running on the port.  (To check for HTTP, try GET
/enter, if this returns an HTML looking document then a webserver of some
kind is running on the port).

Randy

-Original Message-
From: John de la Garza [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 3:53 PM
To: Tomcat-Users (E-mail)
Subject: bind error


Since I have switched to tom cat 3.2 when I restart the server I get this:


Starting tomcat. Check logs/tomcat.log for error messages
FATAL:java.net.BindException: Address in use: JVM_Bind
java.net.BindException: Address in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397)
at java.net.ServerSocket.init(ServerSocket.java:170)
at java.net.ServerSocket.init(ServerSocket.java:121)
at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(Default
ServerSocketFactory.java:97)
at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoi
nt.java:239)
at
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.jav
a:188)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:204)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)



any clues to why?



RE: multipart requests and file uploads problems on the Apache c onnection

2000-12-08 Thread Josh Knowles

Java is Java no matter what OS you are running on.  I have used the
multipart on both RedHat 6.2 and Win2k with no problems.

-Original Message-
From: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 1:57 PM
To: [EMAIL PROTECTED]
Subject: RES: multipart requests and file uploads problems on the Apache
c onnection


-BEGIN PGP SIGNED MESSAGE-

Even in NT environment? Thank you.

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


- -Mensagem original-
De: Josh Knowles [SMTP:[EMAIL PROTECTED]]
Enviada em: Sexta-feira, 8 de Dezembro de 2000 18:45
Para:   '[EMAIL PROTECTED]'
Assunto:RE: multipart requests and file uploads problems on
the Apache c  onnection

I have had no problems mixing the two

- -Original Message-
From: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 12:20 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RES: multipart requests and file uploads problems on the Apache
c onnection



*** PGP Signature Status: bad
*** Signer: Jose Euclides Jr [EMAIL PROTECTED] 
*** Signed: 08/12/00 16:10:50
*** Verified: 08/12/00 17:46:20
*** BEGIN PGP VERIFIED MESSAGE ***

Hi, everybody! Unfortunately, it seems that there is an important limitation
when  using Jason's components. The developer cant mix text fields and file
setting fields in the form!
Good luck,

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


- -Mensagem original-
De: Joe Laffey [SMTP:[EMAIL PROTECTED]]
Enviada em: Quinta-feira, 7 de Dezembro de 2000 13:50
Para:   [EMAIL PROTECTED]; [EMAIL PROTECTED]
Assunto:Re: multipart requests and file uploads problems on
the Apache connection

Take a look at the multipart classes by Jason Hunter that are free for use
if you own the book "Java Servlet Programming" from O'Reilly. The code can
be downloaded from O'Reilly's site www.ora.com

I have only had one problem with it, and I think I have coded around it.
The problem was that sometimes uploads from MSIE 5.01 Win do not send the
boundary correctly (it varies by two characters everytime).


Joe Laffey
LAFFEY Computer Imaging
St. Louis, MO
- -
With no walls or fences on the Internet, who needs Windows or Gates?
- -

*** END PGP VERIFIED MESSAGE ***

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOjFzD90YhuJ3BUxtAQHrWwP+Maxhw3z2IBXwKg6J2DQdMlZGkwPVuJDN
d9CcksGgRHSaHR53p79VkXzceTC9acNITocFfiowpONKYhQOStGnQ/31fDFXMfbE
NBksfaubs8rUKf1TipRHvU9AVkTmI6mf7BuzI4ycmqKsanbLDMEM9TSG4CjG6PAp
McRn2ZG88hI=
=/TtX
-END PGP SIGNATURE-



RE: bind error

2000-12-08 Thread John de la Garza

also,


SunOS 5.6

login:

only shows up when I am running tomcat on port 80...


If tomcat is not running telnet can't connect to port 80, but I still get
the bind error!

This all started since I switched to JDBC realm security stuff...

-Original Message-
From: John de la Garza [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 1:26 PM
To: [EMAIL PROTECTED]
Subject: RE: bind error


The jvm is not running...for sure it is not.  The funny thing is that aft4er
I get this error message it still works!

I am using jdbc real formbased security...I don't know if this could be part
of the issue.

as for 3.1 it is stopped...

also, I am running tomcat as a standalone server on port 80 for dev purposes


when I telnet to 127.0.0.1:80 I get this:



SunOS 5.6

login:




what's up with that?  Im running windows 2000!

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 12:44 PM
To: '[EMAIL PROTECTED]'
Subject: RE: bind error


Something else is using the port?

Check that:
1. You are not still running Tomcat 3.1 (is so, change the ports for
Tomcat 3.2 in the server.xml file)
2. Try stoping and then starting.  Make sure that the JVM actually
dies before restarting.
3. Without Tomcat running, telnet to the ports that Tomcat uses
(usually 8080 and 8007, check server.xml for actual).  See if you can figure
out what is actually running on the port.  (To check for HTTP, try GET
/enter, if this returns an HTML looking document then a webserver of some
kind is running on the port).

Randy

-Original Message-
From: John de la Garza [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 3:53 PM
To: Tomcat-Users (E-mail)
Subject: bind error


Since I have switched to tom cat 3.2 when I restart the server I get this:


Starting tomcat. Check logs/tomcat.log for error messages
FATAL:java.net.BindException: Address in use: JVM_Bind
java.net.BindException: Address in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397)
at java.net.ServerSocket.init(ServerSocket.java:170)
at java.net.ServerSocket.init(ServerSocket.java:121)
at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(Default
ServerSocketFactory.java:97)
at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoi
nt.java:239)
at
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.jav
a:188)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:204)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)



any clues to why?





Re: RES: multipart requests and file uploads problems on the Apachec onnection

2000-12-08 Thread Joe Laffey

On Fri, 8 Dec 2000, Jose Euclides da Silva Junior - DIGR.O wrote:

 -BEGIN PGP SIGNED MESSAGE-

 Even in NT environment? Thank you.


 I have had no problems mixing the two

[regarding mixing file uploads with regular form data in multipart
requests]

I have had it work under NT (Apache with Tomcat). Though I mainly use
Unix, it should work anywhere like most server-side Javastuff.


Joe Laffey
LAFFEY Computer Imaging
St. Louis, MO
-
With no walls or fences on the Internet, who needs Windows or Gates?
-




Re: Error Messages

2000-12-08 Thread Rebecca
Title: Error Messages



i have sent 4 requests to unsubscribe to: [EMAIL PROTECTED]
but i keep getting messages.

any clue as to why this is?

  - Original Message - 
  From: 
  Duane Morse 
  
  To: '[EMAIL PROTECTED]' 
  
  Sent: Friday, December 08, 2000 2:56 
  PM
  Subject: RE: Error Messages
  
  I think you 
  can get errors of this type if the user clicks the STOP button on the browser 
  before the
  response is 
  completely transmitted (or, equivalently, when the user closes the browser 
  prematurely).
  
  Duane Morse, Eldorado Computing Inc., Phoenix 
  AZ 
  
-Original Message-From: Parayali, Jayesh 1065 
[mailto:[EMAIL PROTECTED]]Sent: Friday, December 08, 
2000 12:40 PMTo: 
'[EMAIL PROTECTED]'Subject: Error 
Messages
I am running tomcat 3.2 on windows 
NT workstation 
I am getting the below 
messages 
2000-12-08 11:08:38 - Ctx( ): 
IOException in: R( + /00.jpg + null) Connection aborted by peer: 
socket write error 
Anybody encountered this 
problem? 
Thanks, Jayesh 


RE: multipart requests and file uploads problems on the Apache c onnection

2000-12-08 Thread Chris Halverson
Title: RE: multipart requests and file uploads problems on the Apache c  onnection





NT4.0, Solaris 2.6 and Solaris 2.8 work fine too as you would expect.


-Original Message-
From: Josh Knowles [SMTP:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 2:15 PM
To: '[EMAIL PROTECTED]'
Subject: RE: multipart requests and file uploads problems on the Apache c onnection


Java is Java no matter what OS you are running on. I have used the
multipart on both RedHat 6.2 and Win2k with no problems.


-Original Message-
From: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 1:57 PM
To: [EMAIL PROTECTED]
Subject: RES: multipart requests and file uploads problems on the Apache
c onnection



-BEGIN PGP SIGNED MESSAGE-


Even in NT environment? Thank you.


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



- -Mensagem original-
De:  Josh Knowles [SMTP:[EMAIL PROTECTED]]
Enviada em:  Sexta-feira, 8 de Dezembro de 2000 18:45
Para:  '[EMAIL PROTECTED]'
Assunto:  RE: multipart requests and file uploads problems on
the Apache c onnection


I have had no problems mixing the two


- -Original Message-
From: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 12:20 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RES: multipart requests and file uploads problems on the Apache
c onnection




*** PGP Signature Status: bad
*** Signer: Jose Euclides Jr [EMAIL PROTECTED] 
*** Signed: 08/12/00 16:10:50
*** Verified: 08/12/00 17:46:20
*** BEGIN PGP VERIFIED MESSAGE ***


Hi, everybody! Unfortunately, it seems that there is an important limitation
when using Jason's components. The developer cant mix text fields and file
setting fields in the form!
Good luck,


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



- -Mensagem original-
De:  Joe Laffey [SMTP:[EMAIL PROTECTED]]
Enviada em:  Quinta-feira, 7 de Dezembro de 2000 13:50
Para:  [EMAIL PROTECTED]; [EMAIL PROTECTED]
Assunto:  Re: multipart requests and file uploads problems on
the Apache connection


Take a look at the multipart classes by Jason Hunter that are free for use
if you own the book Java Servlet Programming from O'Reilly. The code can
be downloaded from O'Reilly's site www.ora.com


I have only had one problem with it, and I think I have coded around it.
The problem was that sometimes uploads from MSIE 5.01 Win do not send the
boundary correctly (it varies by two characters everytime).



Joe Laffey
LAFFEY Computer Imaging
St. Louis, MO
- -
With no walls or fences on the Internet, who needs Windows or Gates?
- -


*** END PGP VERIFIED MESSAGE ***


-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1


iQCVAwUBOjFzD90YhuJ3BUxtAQHrWwP+Maxhw3z2IBXwKg6J2DQdMlZGkwPVuJDN
d9CcksGgRHSaHR53p79VkXzceTC9acNITocFfiowpONKYhQOStGnQ/31fDFXMfbE
NBksfaubs8rUKf1TipRHvU9AVkTmI6mf7BuzI4ycmqKsanbLDMEM9TSG4CjG6PAp
McRn2ZG88hI=
=/TtX
-END PGP SIGNATURE-





Ant comile error

2000-12-08 Thread Matt Becker



Hi. I was trying to set up a simple web application 
and copied the sample application for a starting point. The Tomcat doc on web 
applications said to set everything up like so and run a build script which runs 
ant. I get this error:

Exception Thread: java.lang.NoClassDefFoundError: 
org/apache/tools/ant/main

I checked it out in tomcat and it doesn't have a 
tools/ant/main in it's org/apache directory.

Anyone know what gives? And...to start out doing 
jsp web applications on Tom Cat...is this ant stuff necessary?


Thanks


Matt


Security and virtual hosts on Tomcat 3.2

2000-12-08 Thread Nirav S. Desai

Hi,
I am trying to set up a secure tomcat/apache server. I have Apache set up with
mod_ssl and tomcat 3.2 setup with viruatl hosts. All of this works great. However, I am
haveing trouble getting the secure and insecure  hosts to map to different pages in
tomcat. That is, I want "http://www.host1.com" to map to directory A and
"https://www.host1.com"  map to directory B. Does anyone know how to do this? Thanks in
advance.

Nirav Desai




ApJServAction replacement in Tomcat?

2000-12-08 Thread Andrew Oliver

Hello,

I'm working with some 3rd party code that uses
ApJServAction (the servlets run in Jserv), I'm
attempting to convert over to Tomcat and Ajp13. 
However, I'm not sure how to set this up or even
IF it can be setup.  Is there a way to do something
similar with the new connector/tomcat?

Secondly, if not, is there a way to use both tomcat 
and jserv concurrently (point new code to one and old
code to the other and replace them as we rewrite it)?

Thanks.

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



JSP

2000-12-08 Thread Andy Fok

Please let me know and subsribe to this forum if this is where I can get
help from Tomcat installation that allows me to write JSP files and have
them displayed from my personal Apache server running on my own Pc (Windows
2000). Up to now, I still was not able to display the jsp files properly
thich are stored under examples.  When I read the documentation, I noticed
that I may need jsp.tar... which I cannot find them from the c-driver.
Basically all the request method calls (JSP request) return nothing to my
browser.  Hope someone can help me.

Andy Fok
Knowledge and Information Solutions 
TELUS Integrated Communications
[EMAIL PROTECTED]
(604) 432-2303




Re: mod_jk.so problem

2000-12-08 Thread bill french

hi, thanks for your reply.

i actually got it to work about a half an hour after i posted with this
command:

/usr/local/apache/bin/apxs -o mod_jk.so -I../jk
-I/usr/java/jdk1.3/include -I/usr/java/jdk1.3/include/linux -c *.c
../jk/*.c

hardcode once, hardcode again, i suppose. oh well.

-bill

John de la Garza wrote:
 
 let me know if this works or not, please...
 
 I had a similar problem with apache...I needed to recompile it so it would
 accept dynamic loading of modules...Sounds like your apache bin doesn't
 support dynamic loading.
 
 to enable as a dynamic loading try:
 
 ./configure --enable-module=most --enable-shared=max
 make install



Java Pet Store Demo in Tomcat/WebLogic

2000-12-08 Thread Robert Danek

Hello,

I'm trying to take the Java Pet Store demo that is available on the
java.sun.com site and have the JSPs/beans run in Tomcat and the EJBs run
as a back end on WebLogic. I have run into a number of technical
problems already (problems with the env-entry tags that are used in
web.xml, the JNDI names of the EJBs which get mapped to other names by
the weblogic specific deployment descriptors, etc), and I've just hit
another stumbling block, which has led me to prompt the question: Is it
futile to try getting the the Pet Store demo in this setup? The Pet
Store site
(http://developer.java.sun.com/developer/technicalArticles/J2EE/deployathon2/)
doesn't discuss deploying the app in such a manner. Has anyone here
tried doing this before? Are there any hints/tips/helpful URLs that you
can provide?

Regards,
Robert Danek




RE: Diffs between 3.1 and 3.2

2000-12-08 Thread Marc Saegesser

Ahhh, that explains it.  I've been meaning to look into why my first request
takes so damned long.

I just added the following line of code to the init() method of one of load
on startup servlets and now my first requests goes through just fine.

new java.security.SecureRandom().nextLong();

Now, I realize this is something of a hack.  Would it make sense to add
something to the session id generation code to initialize the rander number
generator when a Web Apps loads.  If other developers think this is a
reasonable idea I'll post a patch.

-Original Message-
snip
One change that affects the first request to an app (more precisely, the
first
request that creates a session) is the way session ids are calculated.
Tomcat
3.2 now uses the java.security.SecureRandom class for this, which (on some
platforms) can take many seconds to initialize itself the very first time it
is
called.

Craig McClanahan




bind error

2000-12-08 Thread John de la Garza

Since I have switched to tom cat 3.2 when I restart the server I get this:


Starting tomcat. Check logs/tomcat.log for error messages
FATAL:java.net.BindException: Address in use: JVM_Bind
java.net.BindException: Address in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397)
at java.net.ServerSocket.init(ServerSocket.java:170)
at java.net.ServerSocket.init(ServerSocket.java:121)
at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(Default
ServerSocketFactory.java:97)
at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoi
nt.java:239)
at
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.jav
a:188)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:204)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)



any clues to why?




apache - tomcat configuration- urgent

2000-12-08 Thread Kotturi, Rajendra

Hi,
  I have an application which consists of pure Java Servlets (not the
jsp) . I would like the request for these .class servlets to be sent tomcat
server by the apache. How should I configure my Tomcat  apache for doin
this. And where should I locate these class files. And what will be my URL
to access these servlets.

Thanks 
Rajendra




Re: Java Pet Store Demo in Tomcat/WebLogic

2000-12-08 Thread Madhu Narasa

Robert,

That should be possible, actually apart from the
"Connection reset messages" (the message posted
earlier) using Tomcat was relatively straightforward.
You can look at the following document that gives the
steps to port the example to jboss + Tomcat.

http://www.jboss.org/manual/examples.html#petstore

Regards,
Madhu


--- Robert Danek [EMAIL PROTECTED] wrote:
 Hello,
 
 I'm trying to take the Java Pet Store demo that is
 available on the
 java.sun.com site and have the JSPs/beans run in
 Tomcat and the EJBs run
 as a back end on WebLogic. I have run into a number
 of technical
 problems already (problems with the env-entry tags
 that are used in
 web.xml, the JNDI names of the EJBs which get mapped
 to other names by
 the weblogic specific deployment descriptors, etc),
 and I've just hit
 another stumbling block, which has led me to prompt
 the question: Is it
 futile to try getting the the Pet Store demo in this
 setup? The Pet
 Store site

(http://developer.java.sun.com/developer/technicalArticles/J2EE/deployathon2/)
 doesn't discuss deploying the app in such a manner.
 Has anyone here
 tried doing this before? Are there any
 hints/tips/helpful URLs that you
 can provide?
 
 Regards,
 Robert Danek
 


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



Problem with user authentication w/ Tomcat v4.0 m4

2000-12-08 Thread Bryan Basham

Hello,

[I attempted to look this topic up on the alias archive, but
 after reading a few unrelated posts (search on "authentication"
 AND "document contains no data") and then various server not
 available attempts I gave up and decided to write to the group.]

I am trying to test user authentication with Tomcat v4.0 m4.
I have a *very* simple configuration:

 * an index page that links to a view-common page and a view-restricted page
 
 * the web.xml security constraint on the view-restricted page are set up as:

!-- Restricted Resources --
security-constraint
web-resource-collection
web-resource-nameRestrictedResources/web-resource-name
url-pattern/view-restricted.html/url-pattern
http-methodGET/http-method
/web-resource-collection
auth-constraint
role-nameadmin/role-name
/auth-constraint
/security-constraint

login-config
auth-methodBASIC/auth-method
/login-config

security-role
descriptionA simple restricted-access user role./description
role-nameadmin/role-name
/security-role

 * the server.xml configuration file is using the MemoryRealm
 
 * the tomcat-users.xml config. file has three users:
tomcat-users
  user name="tomcat" password="tacmot" roles="tomcat" /
  user name="user1"  password="1resu"  roles="admin"  /
  user name="user2"  password="2resu"  roles="tomcat,admin" /
/tomcat-users

So, I would expect that when I attempt to access the view-restricted.html
page that I get BASIC HTTP user auth. dialog box in my browser (Netscape
v4.75) and I do.  That's not the weird thing.  Everything works as expected
when I enter a user that has 'admin' role (e.g. 'user1'), *but* I am getting
the following Netscape error when I enter any other user (e.g. 'tomcat'):

   The document contains no data.
   Try again later, or contact the server's administrator.

This is not what I was expecting.  Is this the correct behavior?  This is
a problem because it (the browser) will not allow me to attempt to link
to that page again and re-authenticate.  Note: if I miss type a given
user's password, then the browser correctly asks me to retry; it is only
when I give the correct password for a registered user but not in the
corrrect role for the restricted page that I get the above problem.

BTW, I have attached a WAR file distribution of this WebApp.

Thanks,
Bryan


+---+--+
| Bryan Basham  | "You are not an isolated entity, but
| Java Courseware Developer |  a unique, irreplaceable part of the
| Sun Educational Services  |  cosmos.  Don't forget this.  You are
|   Phone: 1-303-272-8766  (x78766) |  an essential piece of the puzzle of
|  E-mail: [EMAIL PROTECTED] |  humanity."
| Address: 500 Eldorado Blvd|
|  MailStop: UBRM05-135 |  -- The Art of Living, Epictetus
|  Broomfield, CO 80021 | (trans. Sharon Lebell)
+---+--+

 TestAuth1.war


Re: ENC: multipart requests and file uploads problems on the Apache connection

2000-12-08 Thread faustas . zilinskas


On Fri, 8 Dec 2000, Jose Euclides da Silva Junior - DIGR.O wrote:

 Hi, everybody! Unfortunately, it seems that there is an important
limitation
 when  using Jason's components. The developer cant mix text fields and
file
 setting fields in the form!

In the version I have you can mix them to your heart's content. I got the
latest version from the link on the www.ora.com site. Go here:

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

And you can mix them. What it does not do in this form is to hanlde
non-multipart/form-data requests. This can be done easily with a test at
the beginning. I am working on some additions to this code that throw a
special exception when it is not multipart, etc. This let's me use it more
generically. Anyone interested in this let me know and I can send you what
I have. It is a work in progress, and is not a clean as I want it to be
finally. But it works and will meet my deadline. (IDeally, I would
encapsulate the check to see if it is multipart or not and call the
ordinary getParamter routines if it is not multipart and the multi-part
ones if it is multipart.

Joe Laffey
LAFFEY Computer Imaging
St. Louis, MO
-
With no walls or fences on the Internet, who needs Windows or Gates?
-






RE: Tomcat + Jboss - porting Pet Store

2000-12-08 Thread Parayali, Jayesh 1065
Title: RE: Tomcat + Jboss - porting Pet Store





I checked the code... it says ignore this message.
Check out PoolTcpEndPoint.java


-Original Message-
From: Madhu Narasa [SMTP:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 2:20 PM
To: [EMAIL PROTECTED]
Subject: Tomcat + Jboss - porting Pet Store


I am running Tomcat 3.2 with Jboss and trying to port
the PetStore example (J2EE Sun RI, example).


I am almost done except that I see a lot of
Connection reset errors after every page request.
After searching through the archives, I see others
have had the same problems in different contexts but
there seems to be no solution to the problem.


The dev lists suggest the following (that is being
considered for 3.3 dev)
http://w4.metronet.com/~wjm/tomcat/2000/Jul/msg00910.html


Commenting out the following lines -
sout.write( buffer, 0, bufferCount );
sout.flush();


in the method endHeaders() of HttpResponseAdapter.java


The above fix did eliminate errors of the type -
2000-12-08 11:39:27 - Ctx( /estore ): IOException in:
R( /estore + /template.js + null) Connection reset by
peer: socket write error


but the stack trace reported below continued.


Any help is appreciated.


Thanks,
Madhu



 Complete Stack --
[Tomcat] java.net.SocketException: Connection reset by
peer: socket write error
[Tomcat] at
java.net.SocketOutputStream.socketWrite(Native Method)
[Tomcat] at
java.net.SocketOutputStream.write(SocketOutputStream.java:83)
[Tomcat] at
org.apache.tomcat.service.http.HttpResponseAdapter.doWrite(HttpResponseAdapter.java:164)
[Tomcat] at
org.apache.tomcat.core.BufferedServletOutputStream.doWrite(BufferedServletOutputStream.java:121)
[Tomcat] at
org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush(BufferedServletOutputStream.java:246)
[Tomcat] at
org.apache.tomcat.core.ResponseImpl.flushBuffer(ResponseImpl.java:417)
[Tomcat] at
org.apache.tomcat.facade.HttpServletResponseFacade.flushBuffer(HttpServletResponseFacade.java:295)
[Tomcat] at
org.apache.jasper.runtime.JspWriterImpl.flus(JspWriterImpl.java:209)
[Tomcat] at
_0002fbanner_0002ejspbanner_jsp_3._jspService(_0002fbanner_0002ejspbanner_jsp_3.java:306)
[Tomcat] at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
[Tomcat] at
javax.servlet.http.HttpServlet.servic(HttpServlet.java:853)
[Tomcat] at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
[Tomcat] at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
[Tomcat] at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:
391)
[Tomcat] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[Tomcat] at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
[Tomcat] at
org.apache.tomcat.core.Handler.service(Handler.java:286)
[Tomcat] at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
[Tomcat] at
org.apache.tomcat.facade.RequestDispatcherImpl.include(RequestDispatcherImpl.java:345)
[Tomcat] at com.sun.estore.taglib.InsertTag.doEndTag(InsertTag.java:67)


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





  1   2   >