RE: Multipart and mod_jk

2000-12-12 Thread Kwan, Kenneth Y

Seems ajp13¡¦s problem as I can use the O¡¦Reilly package in JRun and
mod_jserv w/o any prob

Kenneth Kwan

-Original Message-
From:   AC [mailto:[EMAIL PROTECTED]]
Sent:   Tuesday, December 12, 2000 3:53 PM
To: [EMAIL PROTECTED]
Subject:RE: Multipart and mod_jk

Is this a bug on ajp13 or on O'Reilly package??

andrea

At 09.48 12/12/2000 +0800, you wrote:
Use mod_jk with AJP12 (not AJP13) will work

Kenneth Kwan

 -Original Message-
 From:   AC [mailto:[EMAIL PROTECTED]]
 Sent:   Tuesday, December 12, 2000 12:49 AM
 To: [EMAIL PROTECTED]
 Subject:Multipart and mod_jk

 I've got a servlet that use the O'Reilly package to manage
multipart

 request. If I use mod_jserv everything works fine. Once I
use mod_jk
the
 same servlet fails!!!

 Any solutions??

 andrea



RE: Rare problem

2000-12-12 Thread Stubenrauch,Andreas

This is a bug in 3.1. Propably you have case mixed filenames. If the file is
name.jsp and you enter name.JSP in your Browser the
Sourcecode will be displayed.
 
Regards,
Andreas

-Original Message-
From: Chris Chen [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 11, 2000 10:21 PM
To: '[EMAIL PROTECTED]'
Subject: Rare problem



Hi all, 

 My client is using tomcat3.1 as jsp engine. It looks like that his JSP
files 
are being interpreted into a plain text file(got the jsp source file in
broswer), 
even he gets all the tomcat JSP examples run correctly. 

Any suggestion is appreciated. 

Regards, 
 Chris 




RE: Rare problem

2000-12-12 Thread arnold



Pls create a handler for *.JSP files in web.xml file.
i think this prob occurs on Linux.

Hope this helps.

rahul





Reroute the output of a processed jsp page into a String

2000-12-12 Thread NINA.de Internet Service Agentur

Hello,

is it possible to reroute the output of a processed jsp page into a String
or
StringBuffer object in order to send it as an email message with the Java
Mail API?

We use Tomcat 3.2 final with beans and jsp pages and want to use the parse
mechanism
of jsp pages of Tomcat to generate user defined email messages. The contents
of the
messages are provided by beans with sessionwide scope.

Any ideas ?

Regards,
Ralf.D. Zimmerer






RE: Multipart and mod_jk

2000-12-12 Thread GOMEZ Henri

It's a known bug in ajp13.
I'll try to fix before 3.2.1 ;-)

"Pour la plupart des hommes, se corriger consiste à changer de défauts."
-- Voltaire 

-Original Message-
From: AC [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 8:53 AM
To: [EMAIL PROTECTED]
Subject: RE: Multipart and mod_jk


Is this a bug on ajp13 or on O'Reilly package??

andrea

At 09.48 12/12/2000 +0800, you wrote:
Use mod_jk with AJP12 (not AJP13) will work

Kenneth Kwan

 -Original Message-
 From:   AC [mailto:[EMAIL PROTECTED]]
 Sent:   Tuesday, December 12, 2000 12:49 AM
 To: [EMAIL PROTECTED]
 Subject:Multipart and mod_jk

 I've got a servlet that use the O'Reilly package to 
manage multipart

 request. If I use mod_jserv everything works fine. 
Once I use mod_jk
the
 same servlet fails!!!

 Any solutions??

 andrea




RE: Question about Linux install of Tomcat 3.2 (is there an RPM yet)

2000-12-12 Thread GOMEZ Henri

David Thompson wrote:
 
 What about the mod_jserv.so or whatever that connects Apache 
to Tomcat?
 dt
 

it's now mod_jk.so..;-)

There is two method to connect an apache server to tomcat :

- mod_jserv which use ajp12 protocol (from Apache JServ)
- mod_jk which could use ajp12 and also support the faster ajp13

In my RPM, the two modules are build and installed ;-)

 



Follow-up: Forward problems servlet to JSP in 3.2

2000-12-12 Thread Steve Quail

 Thanks for this, I now have the application working OK via a servlet 
 mapping in the applications web.xml file. For the benefit of those who 
 find themselves in the same situatuion and this is what I used :
 
 servlet-mapping
 servlet-name
 MyServlet
 /servlet-name
 url-pattern
 MyServlet.svlt
 /url-pattern
 /servlet-mapping

 Tried adding the following generic *.svlt mapping to the Tomcat base 
 web.xml (even tried changing my servlet name to MyServlet.svlt too) but 
 couldn't get it this work, if anyone knows why please email me - it seems 
 neater to have a generic mapping.
 
 servlet-mapping
 servlet-name
 invoker
 /servlet-name
 url-pattern
 *.svlt
 /url-pattern
 /servlet-mapping
 
 
 Thanks,
 Steve Quail.
 
 
 __ Reply Separator 
 _
 Subject: RE: Forward problems servlet to JSP in 3.2
 Author:  Kitching Simon [EMAIL PROTECTED] at internet-po
Date:11/12/00 15:30


Hi,
 
I just have a little bit extra to add to Andrea's email:
 
The problem is that when a browser has loaded a page containing
relative urls to other files, the *browser* resolves these into absolute 
references by merging them with the URL that it *thinks* the
parent page was loaded from.
 
Because a "forward" operation within the tomcat webserver (or 
any other webserver for that matter) is totally invisible to the 
browser, it thinks that the parent page came from 
/contextname/servlet/something, and therefore uses that
url to figure out what absolute page "images/mygif.gif" 
should be loaded from.
 
The solutions (as far as I know) are
 
(a) 
andrea's solution of mapping the servlet url, so that 
the servlet doing the forwarding appears to be in the 
same directory as the file it eventually forwards to. 
(but this won't work if you might be forwarding to 
files in different directories)
 
(b) 
to use absolute paths for all links
 
Neither of these solutions really appeals to me.
 
Anyone else out there (Craig??) got a better solution?
 
PS: I expect that this is a really common problem 
for Struts users, because forwarding is very common. 
Any comments, Struts users??
 
 
 -Original Message-
 From: AC [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, December 11, 2000 3:10 PM 
 To:   [EMAIL PROTECTED]
 Subject:  Re: Forward problems servlet to JSP in 3.2 
 
 You should use servlet mapping. If you have http://myhost/myjsp.jsp the 
 servlet that call your jsp should be mapped as http://myhost/myservlet . 
 In 
 this way all the relative links are still good.
 An additional hint.. if you map your servlet with an extension, for 
 instance myservlet.Svlt and use a configuration such as
 JkMount /tf/*.jsp ajp13
 JkMount /tf/*.Svlt ajp13
 
 all the request not related to tomcat are served by Apache 
 
 andrea
 
 
 At 13.48 11/12/2000 +, you wrote:
   I'm using using forward to pass a request from my servlet to a JSP 
   page i.e.ServletContext.getRequestDispatcher
 ("my.jsp").forward(req,
   res).
 
   This is fine (the JSP gets displayed no problem) but any relative 
   links in the JSP get messed up with a "/servlet" in the middle - 
 e.g.
   a graphic referenced as "images/mygif.gif" becomes a link to 
   "contextname/servlet/images/mygif.gif" rather than
   "contextname/images.mygif.gif", links to HTML files similarly get 
   "/servlet" inserted.
 
   Help ! There must be a simple solution I'm missing here. 
 
   Steve Quail.



RE: Question about Linux install of Tomcat 3.2 (is there an RPM yet)

2000-12-12 Thread GOMEZ Henri

I am a linux newbie so this might be a stupid question but...
I have linux 6.2 installed (using Redhat).
I have Apache 1.3.14 running well.

With mod_ssl ?

I have JDK 1.3 installed and working.

IBM or SUN ?

Now to get to where I want to be, I want to get Tomcat 3.2 running with
Apache. There are no RPM's for it as of last night (at least not at
redhat.com) and I do not want to mess with the older version. 
Can I install
the unix tars from apache.org on my system without building it 
myself? 

My RPMs do all the jobs. You can even rebuild them if you like.

would assume there are system specific things that would 
require a rebuild
but I really do not want to deal with that right now. How long does it
normally take to get RPMs on redhat.com for something like this?
Any advice would be appreciated.
thanks,

Often RPMs start their life as contributed RPMS.
If there is a demande Redhat could incorporate them in main
distribution or add them to the powertools.

They allready do that for many of my contrib RPMs



Re: Rare problem

2000-12-12 Thread Ludovic Maitre

[EMAIL PROTECTED] wrote:
 
 Pls create a handler for *.JSP files in web.xml file.
 i think this prob occurs on Linux.
 
 Hope this helps.
 
 rahul

Hello,

Did you know if this problem is fixed in 3.2 ? 

Regards,

-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02



Re: Rare problem

2000-12-12 Thread Sam Terburg

It's not a problem.
It's a feature of linux :)

as you know filenames in linux are case-sensitive.
read my previous email to solve the problem.

Sam




- Original Message - 
From: "Ludovic Maitre" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 12, 2000 11:07 AM
Subject: Re: Rare problem


 [EMAIL PROTECTED] wrote:
  
  Pls create a handler for *.JSP files in web.xml file.
  i think this prob occurs on Linux.
  
  Hope this helps.
  
  rahul
 
 Hello,
 
 Did you know if this problem is fixed in 3.2 ? 
 
 Regards,
 
 -- 
  [EMAIL PROTECTED]
 
  INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
  06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02
 




Re: Tomcat Build Problem on Solaris

2000-12-12 Thread Kief Morris

Stephen F. Kispersky typed the following on 11:55 11/12/2000 -0800
- In the README, "servletapi" is referenced, but it is not to be found on the
  Tomcat site that I could see. I tried substituting the JSAPI classes on
  Sun site (version 2.2).

If you go to http://jakarta.apache.org/builds/tomcat/release/v3.2/src/,
you should see jakarta-servletapi-3.2-src.tar.gz.

- After untaring the Tomcat source, I found the shell scripts to be lacking
  the executable file mode, and also had to translate them to Unix file
  format before they would run!

Hmm, I just downloaded a fresh copy of the 3.2 final source. build.sh has
its bits set properly, and line endings are Unix-style. Just for reference,
my jakarta-tomcat-3.2-src.tar is 6,256,640 bytes - double check yours,
maybe you should d/l it again.

I'm running TC 3.2 on Solaris 7 also, so let me know if you have problems.

Kief

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




Custom error pages!!

2000-12-12 Thread Pankaj Bhagat




Hi ppl:
I had posted a very simple query..but had 
not received any comments. So am i the only unlucky person who's stuck on this 
simple problem. Any suggestions are welcome plz.

I want Custom error pages, in my application, the 
two solutions i have is to use the "ErrorDocument" directive in Apache or to use 
the "error-pages" xml element while deploying my servlet in Tomcat (please note 
that i am using Apache 1.3 and Tomcat 3.2). But somehow both of them are not 
responding to the changes i try to make. Am only getting some satisfaction if i 
try and call a page which does not exist through Apache (with 
netscape...IE...still does nothing).

Hoping to get some replies this time.

Regards
Pankaj


Re: Multipart and mod_jk

2000-12-12 Thread Pier Paolo Bortone

Thanks,

now my multipart runs well

I'm come back to ajp12.

I'm using:
Linux OS (Best Linux distribution)
Apache 1.3.14
mod_jk (ajp12)
tomcat 3.2
and I'm not using JSP but servlet.

Pier Paolo.


- Original Message -
From: "GOMEZ Henri" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 12, 2000 9:55 AM
Subject: RE: Multipart and mod_jk


It's a known bug in ajp13.
I'll try to fix before 3.2.1 ;-)

"Pour la plupart des hommes, se corriger consiste à changer de défauts."
-- Voltaire

-Original Message-
From: AC [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 8:53 AM
To: [EMAIL PROTECTED]
Subject: RE: Multipart and mod_jk


Is this a bug on ajp13 or on O'Reilly package??

andrea

At 09.48 12/12/2000 +0800, you wrote:
Use mod_jk with AJP12 (not AJP13) will work

Kenneth Kwan

 -Original Message-
 From:   AC [mailto:[EMAIL PROTECTED]]
 Sent:   Tuesday, December 12, 2000 12:49 AM
 To: [EMAIL PROTECTED]
 Subject:Multipart and mod_jk

 I've got a servlet that use the O'Reilly package to
manage multipart

 request. If I use mod_jserv everything works fine.
Once I use mod_jk
the
 same servlet fails!!!

 Any solutions??

 andrea





Re: Custom error pages!!

2000-12-12 Thread Kief Morris

Pankaj Bhagat typed the following on 11:17 12/12/2000 +0100
I want Custom error pages, in my application, the two solutions i have is to use the 
"ErrorDocument" directive in Apache or to use the "error-pages" xml element while 
deploying my servlet in Tomcat (please note that i am using Apache 1.3 and Tomcat 
3.2). But somehow both of them are not responding to the changes i try to make. Am 
only getting some satisfaction if i try and call a page which does not exist through 
Apache (with netscape...IE...still does nothing).

I don't completely understand what you're trying to do. What kinds of errors are you
trying to catch with customized pages, and what are you doing to test it? 

JSP errors pages will only be displayed by Tomcat when there is a Java exception
processing a JSP page which has the error page configured like:

%@ page language="java" errorPage="/error.jsp"%

It won't work if the exception is thrown after the headers have already been sent
to the client, as when you use autoFlush=true.

The Apache httpd error pages aren't really on topic here, since they don't involve
Tomcat.

Kief


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




RE: a great problem with tomcat in linux whit the system memory

2000-12-12 Thread Stubenrauch,Andreas

This is the standard linux behaviour. If any application claims memory it is
taken from the free-pages. If the memory is not in use anymore it is not put
back to the amount of free memory (even if the application is shutdown).
Instead it is chached and freed on demand.

So don't worry here

Regards,
Andreas

 -Original Message-
 From: Carlos [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 12, 2000 9:33 AM
 To: [EMAIL PROTECTED]
 Subject: a great problem with tomcat in linux whit the system memory
 
 
 Hello.
 If i restyart my system and i run the command free the system 
 free memory is
 200MB.
 If my jakarta (in linux) is running several days the sysmten 
 memory goes
 down, if the jsp pages are used. The problem is that the 
 memory goes down
 and it not does up, only restarting the system.
 How can i resolv this problem?
 thanks
 Carlos
 



Re: Custom error pages!!

2000-12-12 Thread Kief Morris

Pankaj Bhagat typed the following on 11:58 12/12/2000 +0100
So now what i can understand is that it should be Tomcat's problem to
intercept any errors occuring in the servlet and then passing me onto the
specified url in the deployment descriptor.

I believe this only applies to JSP pages. For your servlet, you should just
catch it normally:

public void doGet (...)
{
try {
// your code here
} catch (Throwable e) {
// forward to an error page
}
// write headers and output
}

If you want to take advantage of JSP error page handling, a slick thing to do 
might be to insert the Throwable object into the request as an attribute 
named "javax.servlet.jsp.jspException", then forward to a JSP page whose 
page directive includes the parameter isErrorPage="true". This will automatically
create a variable called "exception" in the error page, which will be a reference
to the Throwable object you set in the request.

Check out section 2.7.1 of the JSP specification document for details on how
this works.

Kief

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




RE: Multiple GETs on an SSLSocket

2000-12-12 Thread Michael Cohen (ETL)

Hi Ken,
Thanks for your suggestion. Certainly helped but not the whole ten
yards. I found that by not reading the 'null' at the end of the buffer
the IO exception is not thrown. I did this using the ready() method of
BufferedReader. ready() returns false if there is no data in the buffer
to be read. When it returns false I break out of the loop and send the second
GET request to the server. So the second GET doesn't cause a IO error. The problem
is that it doesn't cause the second page of html to be downloaded. The buffer just
remians in state 'not ready'. 

Right now I'm trying to get it working from the servlet and have run into an
unrelated problem.

I'll let you if I find a solution.

Thanks again.

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



RE: How can i share session between servlet and jsp

2000-12-12 Thread Raphaël Lemaitre

 Raphaël Lemaitre typed the following on 11:56 12/12/2000 +
 But when i want to follow a hyperlink that points to a
 servlet, i do not get the same session (session Ids are different). 
 
 How are you building this hyperlink exactly? Is it a relative link?
 What exactly does the URL to the JSP page look like vs. the
 URL to the servlet? Are the hostnames exactly the same? If
 not you could be losing the session ID cookie. Are you sure your
 browser is taking the cookie? 
 
 Kief
 
Thanks, the problem is solved. In fact, i mispelled my webapp name in the
URL.

Raphael Lemaitre



Re: How can i share session between servlet and jsp

2000-12-12 Thread John Clark L. Naldoza

Raphaël Lemaitre wrote:
 
 Hi,
 
 I've got a big urgent problem : it seems that mu JSPs and my
 servlets don't share the same session. I explain :
 I have a JSP login form which action points to a servlet. In this servlet, i
 create the HttpSession object using request.getSession(true), i put an
 userID (String) in the session and forward to a JSP. In this JSP and all the
 JSPs i access directly (without passing through a servlet), the userID is
 still in the session. But when i want to follow a hyperlink that points to a
 servlet, i do not get the same session (session Ids are different). How can
 i do to make this work?
 
 thanks in advance

Perhaps you'd like to look at setParameters method of your http response
object...;-)

And then it would be a matter of forwarding the request,response to and
from your jsp and servlet.

Hope that helps.


John Clark
-- 
 /) John Clark Naldoza y Lopez   (\
/ )Software Design Engineer II   ( \
  _( (__  Web-Application Development_) )_
 (((\ \  /_Cable Modem Network Management System _\  / /)))
 ( \_/ / NEC Telecom Software Phils., Inc.  \ \_/ )
  \   /  \   /
   \_/  phone: (+63 32) 233-9142 loc. 3112\_/
   /   /  cellphone: (+63 919) 813-6274 \   \
  /   / email: [EMAIL PROTECTED]\   \



RE: Multiple GETs on an SSLSocket

2000-12-12 Thread horn_ken


I wouldn't rely on the ready() to get this right - it will depend on
whether data has arrived in the underlying stream (native). This will
probably be system dependent ;o)  The only way I've had this working
reliably is to rely on content length headers or chunking. Chunking is
probably best it you can force it.

Ken.





[EMAIL PROTECTED] on 12/12/2000 06:27:04

Please respond to [EMAIL PROTECTED]

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



Hi Ken,
Thanks for your suggestion. Certainly helped but not the whole ten
yards. I found that by not reading the 'null' at the end of the buffer
the IO exception is not thrown. I did this using the ready() method of
BufferedReader. ready() returns false if there is no data in the buffer
to be read. When it returns false I break out of the loop and send the
second
GET request to the server. So the second GET doesn't cause a IO error. The
problem
is that it doesn't cause the second page of html to be downloaded. The
buffer just
remians in state 'not ready'.

Right now I'm trying to get it working from the servlet and have run into
an
unrelated problem.

I'll let you if I find a solution.

Thanks again.

Mike.

 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.

















AW: Custom error pages!!

2000-12-12 Thread Amrhein, Thomas

Hi,

How is your error-page named?
I use JSP and have found, that the error-page itself has to be a
.jsp-file.
With .html it did not work (Tomcat 3.2b6). Haven't tested 3.2 (final).
But I don't expect any changes.

Try to name your error-page a .jsp-file and retry it. Perhaps it works.

regards,

Thomas


-Ursprüngliche Nachricht-
Von: Pankaj Bhagat [mailto:[EMAIL PROTECTED]]
Gesendet am: Dienstag, 12. Dezember 2000 12:59
An: [EMAIL PROTECTED]
Betreff: Re: Custom error pages!!

Thanks for your response. The solution really sounds good.

But just for information, can you comment on the error-pages tag not
working in the deployment descriptor of Tomcat 3.2

Anybody else who has been successful with this can also plese comment.

Regards
Pankaj
- Original Message -
From: "Kief Morris" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 12, 2000 12:26 PM
Subject: Re: Custom error pages!!


 Pankaj Bhagat typed the following on 11:58 12/12/2000 +0100
 So now what i can understand is that it should be Tomcat's problem to
 intercept any errors occuring in the servlet and then passing me onto the
 specified url in the deployment descriptor.

 I believe this only applies to JSP pages. For your servlet, you should
just
 catch it normally:

 public void doGet (...)
 {
 try {
 // your code here
 } catch (Throwable e) {
 // forward to an error page
 }
 // write headers and output
 }

 If you want to take advantage of JSP error page handling, a slick thing to
do
 might be to insert the Throwable object into the request as an attribute
 named "javax.servlet.jsp.jspException", then forward to a JSP page whose
 page directive includes the parameter isErrorPage="true". This will
automatically
 create a variable called "exception" in the error page, which will be a
reference
 to the Throwable object you set in the request.

 Check out section 2.7.1 of the JSP specification document for details on
how
 this works.

 Kief

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




RE: Multiple GETs on an SSLSocket

2000-12-12 Thread Michael Cohen (ETL)

Hi Ken,

Can you give me a more explicit idea of what you mean
by 'chunking'? Ie the kind of stream/methods to use?

Mike.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: 12 December 2000 12:22
 To: [EMAIL PROTECTED]
 Subject: RE: Multiple GETs on an SSLSocket
 
 
 
 I wouldn't rely on the ready() to get this right - it will depend on
 whether data has arrived in the underlying stream (native). This will
 probably be system dependent ;o)  The only way I've had this working
 reliably is to rely on content length headers or chunking. Chunking is
 probably best it you can force it.
 
 Ken.
 
 
 
 
 
 [EMAIL PROTECTED] on 12/12/2000 06:27:04
 
 Please respond to [EMAIL PROTECTED]
 
 To:   [EMAIL PROTECTED]
 cc:(bcc: Ken X Horn)
 Subject:  RE: Multiple GETs on an SSLSocket
 
 
 
 Hi Ken,
 Thanks for your suggestion. Certainly helped but not the whole ten
 yards. I found that by not reading the 'null' at the end of the buffer
 the IO exception is not thrown. I did this using the ready() method of
 BufferedReader. ready() returns false if there is no data in 
 the buffer
 to be read. When it returns false I break out of the loop and send the
 second
 GET request to the server. So the second GET doesn't cause a 
 IO error. The
 problem
 is that it doesn't cause the second page of html to be downloaded. The
 buffer just
 remians in state 'not ready'.
 
 Right now I'm trying to get it working from the servlet and 
 have run into
 an
 unrelated problem.
 
 I'll let you if I find a solution.
 
 Thanks again.
 
 Mike.
 
  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.
 
 
 
 
 
 
 
 
 
 
 
 
 
 



Re: Custom error pages!!

2000-12-12 Thread Kief Morris

Pankaj Bhagat typed the following on 12:58 12/12/2000 +0100
But just for information, can you comment on the error-pages tag not
working in the deployment descriptor of Tomcat 3.2

I just tried it, it works fine for me. Are you specifying the full names of the
exceptions? e.g. java.lang.IllegalArgumentException rather than just
IllegalArgumentException.

Here's what worked for me in my WEB-INF/web.xml file, Tomcat 3.2 final.

error-page
error-code404/error-code
location/not_found.jsp/location
/error-page

error-page
exception-typejava.lang.NullPointerException/exception-type
location/error.jsp/location
/error-page

Kief

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




Problems with Tomcat Netscape Intgeration

2000-12-12 Thread Nijholt, Ralf

Hello there,
I followed the instructions in the how-to file on the jakarta.apache.org
site. But i keep getting this error when i try to start the Netscape server
(4.1): 

Status: 
[https-inv31254.noblestar.com]: start failed. (2: unknown early startup
error)
[https-inv31254.noblestar.com]: warning: daemon is running as super-user 
[https-inv31254.noblestar.com]: In jk_init
/jsp/jakarta-tomcat/conf/workers.propertiesserver terminated (signal 11):
watchdog is
restarting it 
[https-inv31254.noblestar.com]: failure: server initialization failed 
Error
An error occurred during startup.
The server https-inv31254.noblestar.com was not started. 
The workers.properties file is as follow: 
# cat workers.properties
worker.list=ajp12
worker.ajp12.port=8007
worker.ajp12.host=https-inv31254.noblestar.com 
The obj.conf is as follow: 
# pwd
/usr/netscape/https-inv31254.noblestar.com/config
# cat obj.conf
# Sun Netscape Alliance - obj.conf
# You can edit this file, but comments and formatting changes
# might be lost when the admin server makes changes. 
Init fn="flex-init"
access="/usr/netscape/https-inv31254.noblestar.com/logs/access"
format.access="%Ses-client.ip% - %Req-va
rs.auth-user% [%SYSDATE%] \"%Req-reqpb.clf-request%\"
%Req-srvhdrs.clf-status% %Req-srvhdrs.content-length%"
Init fn="load-types" mime-types="mime.types"
Init fn="load-modules" funcs="jk_init,jk_service"
shlib="/jsp/jakarta-tomcat/bin/nsapi_redirector.so"
Init fn="jk_init" worker_file="/jsp/jakarta-tomcat/conf/workers.properties" 
Object name="default"
NameTrans fn="assign-name" from="/servlet/*" name="servlet"
NameTrans fn="assign-name" from="/examples/*" name="servlet"
NameTrans fn="pfx2dir" from="/cgi-bin" dir="/usr/netscape/cgi-bin"
name="cgi"
NameTrans fn="pfx2dir" from="/ns-icons" dir="/usr/netscape/ns-icons"
name="es-internal"
NameTrans fn="pfx2dir" from="/mc-icons" dir="/usr/netscape/ns-icons"
name="es-internal"
NameTrans fn="pfx2dir" from="/help" dir="/usr/netscape/manual/https/ug"
name="es-internal"
NameTrans fn="pfx2dir" from="/manual" dir="/usr/netscape/manual/https"
name="es-internal"
NameTrans fn="pfx2dir" from="/temp" dir="/usr/netscape/docs"
NameTrans fn="document-root" root="/content4all"
PathCheck fn="unix-uri-clean"
PathCheck fn="check-acl" acl="default"
PathCheck fn="find-pathinfo"
PathCheck fn="find-index" index-names="index.html,home.html"
ObjectType fn="type-by-extension"
ObjectType fn="force-type" type="text/plain"
Service method="(GET|HEAD)" type="magnus-internal/imagemap" fn="imagemap"
Service method="(GET|HEAD)" type="magnus-internal/directory"
fn="index-common"
Service method="(GET|HEAD)" type="*~magnus-internal/*" fn="send-file"
AddLog fn="flex-log" name="access"
/Object 
Object name="cgi"
ObjectType fn="force-type" type="magnus-internal/cgi"
Service fn="send-cgi"
/Object 
Object name="servlet"
ObjectType fn="force-type" type="text/html"
Service fn="NSServletService"
/Object 
Object name="jsp092"
ObjectType fn="type-by-extension"
ObjectType fn="change-type" type="magnus-internal/jsp092"
if-type="magnus-internal/jsp"
Service fn="NSServletService" type="magnus-internal/jsp092"
/Object 
Object name="ServletByExt"
ObjectType fn="force-type" type="magnus-internal/servlet"
Service type="magnus-internal/servlet" fn="NSServletService"
/Object 
Object name="es-internal"
PathCheck fn="check-acl" acl="es-internal"
/Object 
Object name="servlet"
ObjectType fn=force-type type=text/plain
Service fn="jk_service" worker="ajp12"
/Object 
Object name="jsp"
Service fn="NSServletService"
/Object 
# 
Do you know what is wrong with this configuration? 
Thanks a lot in advance, 
Ralf


NOBLE(STAR
Ralf Nijholt
Technical Manager Benelux

Rijksstraatweg 104
3532 AD Loenen a/d Vecht
+31 294 237 260 (Office)
+31 294 230 254 (Fax)
+31 622 455 274 (GSM)
[EMAIL PROTECTED]
http://www.noblestar.com




Re: Custom error pages!!

2000-12-12 Thread Pankaj Bhagat

Thanks a lot for ur help atleast now i am atleast near to the solution.

Hey but i was just aping what you suggested and it worked.

The only difference in what i was trying previously and this one is that
for an error page i was going to an html file whereas now its
working if i redirect to a jsp.

Dont know why.but till the time it works i guess its fine.

I also dont know if thats a bug with Tomcat 3.2 or not.

Thanks and Regards
Pankaj
- Original Message -
From: "Kief Morris" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 12, 2000 1:32 PM
Subject: Re: Custom error pages!!


 Pankaj Bhagat typed the following on 12:58 12/12/2000 +0100
 But just for information, can you comment on the error-pages tag not
 working in the deployment descriptor of Tomcat 3.2

 I just tried it, it works fine for me. Are you specifying the full names
of the
 exceptions? e.g. java.lang.IllegalArgumentException rather than just
 IllegalArgumentException.

 Here's what worked for me in my WEB-INF/web.xml file, Tomcat 3.2 final.

 error-page
 error-code404/error-code
 location/not_found.jsp/location
 /error-page

 error-page
 exception-typejava.lang.NullPointerException/exception-type
 location/error.jsp/location
 /error-page

 Kief

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





Re: I have Small Problem

2000-12-12 Thread Matt Goss

Sunil
put your servlet class in the webapps/contextname/WEB-INF/classes/ folder,
then call them via http://localhost:8080/contextname/servlet/servletname.
Matt

Sunil Chandurkar wrote:

 I am new user of Tomcat.  I have created simple helloworld servlet. Please
 can u
 tell me where to copy class file and how to call this from browser.
 I have worked on Java Web Server, there i used to copy servlet file in the
 following diretory: JWS-HOME/examples/Web-Inf/servlets
 and used to call this file as: http://localhost:8080/ServletName

 How to do it in Tomcat?

 Regards
 Sunil


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



Re: Custom error pages!!

2000-12-12 Thread Kief Morris

Pankaj Bhagat typed the following on 14:58 12/12/2000 +0100
The only difference in what i was trying previously and this one is that
for an error page i was going to an html file whereas now its
working if i redirect to a jsp.

Aha, someone else just pointed this out.

Dont know why.but till the time it works i guess its fine.

I also dont know if thats a bug with Tomcat 3.2 or not.

I think there is a bug, the spec says:

"The location element contains the location of the resource in the
web application relative to the root of the web application. The
value of the location must have a leading ‘/’."

The spec seems to include static (html, gif) files in its definition of "resources",
so it ought to work.

I tried it with an html file and Tomcat chokes: I get:

java.lang.StackOverflowError 
at java.io.FileNotFoundException.(FileNotFoundException.java:62) 
at java.io.FileInputStream.open(Native Method) 
at java.io.FileInputStream.(FileInputStream.java:64) 
at java.io.FileInputStream.(FileInputStream.java:95) 
at org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.java:365) 
at org.apache.tomcat.core.Handler.service(Handler.java:286) at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at 
org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.java:1049) at 
org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.java:387) at 
org.apache.tomcat.core.Handler.service(Handler.java:286) at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) 

... seems to be a recursive loop.

My web.xml file contains:

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

error-page
exception-typejava.lang.NullPointerException/exception-type
location/foo.html/location
/error-page

And /foo.html definitely exists, I can view it normally if I point my browser
straight at it.

I'll report the bug.


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




linux-NT-MSsqlServer

2000-12-12 Thread Carlos

I am using tomcat in a linux, and my database is in a NT (it is a microsoft
SQL server).
anybody can say me what driver i good to use with this database?
there is any experience in this database from a linux using a JDB driver?
i have see a long list for buying a driver but i dont kown what i must to
buy.
i want to konw what is a good driver, not slow and solid
thanks
carlos




Qs on Load Balancing and JkMount

2000-12-12 Thread Shahed Ali



Hi ,

All the examples and archive messages that I have seen so far 
talk about load balancing
using either multiple JVM's or Multiple Connector 
Directives with different port numbers 
and corrosponding workers in the workers.properties 
file.

But they all use different Mount Moints for each worker 
!

However my need is to Load Balance a *SINGLE MOUNT POINT* 

( A single Virtual Apache Hostcorrosponding to 
aHost (context) in server.xml )

i.e I want http://ww.mysite.com/*.jsp to be load 
balanced by 4 worker threads.

I am currently using 4 JkMount Directives, and the server is 
up and running.
i.e
JkMount /*.jsp ajp13

JkMount /*.jsp Xajp13

JkMount /*.jsp Yajp13

JkMount /*.jsp Zajp13

Also if I name the workers ajp13a , ajp13b and ajp13c, apache 
does not start and gives me an error 
saying that it cannot find the workers file !!!

Anyway, my question are :-

1. Is this the right way to have a single mount point load 
balanced ?
2. If so, is it a good idea to run the tomcat instances in the 
same JVM ? Or should I run multiple tomcat/JVM 
 instances on the same / different servers 
?

Thanks
Shahed.






Re: Custom error pages!!

2000-12-12 Thread Pankaj Bhagat

yup that sure is the problem i was also getting.

thanks for helping me outta that...

n cheers.
v have found a bug..hahahaha

so guess a lot of ppl. like us wont have to waste their time on it

regards
Pankaj
- Original Message -
From: "Kief Morris" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 12, 2000 3:41 PM
Subject: Re: Custom error pages!!


 Pankaj Bhagat typed the following on 14:58 12/12/2000 +0100
 The only difference in what i was trying previously and this one is that
 for an error page i was going to an html file whereas now its
 working if i redirect to a jsp.

 Aha, someone else just pointed this out.

 Dont know why.but till the time it works i guess its fine.
 
 I also dont know if thats a bug with Tomcat 3.2 or not.

 I think there is a bug, the spec says:

 "The location element contains the location of the resource in the
 web application relative to the root of the web application. The
 value of the location must have a leading '/'."

 The spec seems to include static (html, gif) files in its definition of
"resources",
 so it ought to work.

 I tried it with an html file and Tomcat chokes: I get:

 java.lang.StackOverflowError
 at java.io.FileNotFoundException.(FileNotFoundException.java:62)
 at java.io.FileInputStream.open(Native Method)
 at java.io.FileInputStream.(FileInputStream.java:64)
 at java.io.FileInputStream.(FileInputStream.java:95)
 at
org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.java:365)
 at org.apache.tomcat.core.Handler.service(Handler.java:286) at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at
org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.java:1049)
at
org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.java:387)
at org.apache.tomcat.core.Handler.service(Handler.java:286) at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)

 ... seems to be a recursive loop.

 My web.xml file contains:

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

 error-page
 exception-typejava.lang.NullPointerException/exception-type
 location/foo.html/location
 /error-page

 And /foo.html definitely exists, I can view it normally if I point my
browser
 straight at it.

 I'll report the bug.


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





Re: Custom error pages!!

2000-12-12 Thread Shahed Ali

I dont know about the specs, but I think all errorpages need the iserrorpage
= true page directive.

So that could mean that they should be .jsp (?)

Shahed




can jsp handle multipart/form-data ?

2000-12-12 Thread John D. Smith

I try to make a jsp page that handles a file upload. 
The problem i face is that i get a Internal Server Error from apache
when i submit FORM enctype="multipart/form-data" ... to a jsp as action.
Sending the same to php / cgi works fine.
Question is: Is my server(apache/tomcat) misconfigured or doesn't jsp
handle that kind of requests ?

Regards

John




--== Sent via Deja.com http://www.deja.com/ ==--
Before you buy.





Re: Reroute the output of a processed jsp page into a String

2000-12-12 Thread Bryan Basham


 is it possible to reroute the output of a processed jsp page into a String or
 StringBuffer object in order to send it as an email message with the Java
 Mail API?

I know that you are using Tomcat v3.x, but you might want to consider
upgrading to v4.0 because you could use a Servlet Filter to do this job.

-Bryan




JAAS and Tomcat: how to plug into request processing?

2000-12-12 Thread Mick Krippendorf

Hi,

we use JAAS in our webapplication and it works. The implementation
however is not satisfying.

Before accessing sensitive data from within JSPs, we check wether the
user has sufficient permissions. Therefore, we divided (i.e.duplicated)
the interface into protected abstract and final public operations, and
let the public ones call the protected (guarded) ones, after
establishing a privileged context. 


Simplified Example:

//public operation:
public final void guardedFoo() {
  //establish privileged context:
  Subject.doAs(
aSubject,
new PrivilegedAction () {
  run() {
//protected abstract operation:
realFoo();
  }
}
  );
}
//s.a.
public void final guardedBar() {
  Subject.doAs(
aSubject,
new PrivilegedAction () {
  run() {
realBar();
  }
}
  );
}

//later, two _equal_ privileged contexts are created!
obj.guardedFoo();
obj.guardedBar();

This is annoying and also inefficient, because the same privileged
context has to be installed for every single operation (i.e. several
times in the same JSP). Another problem is that the subject should not
be known to the objects which need to check for permission. This could
be avoided if there was some kind of 'central entry point' or
'cartridge' where a one-for-all privileged context could be installed.

So, the question is:
Is there a possibility to hook into the calling stack prior to the
response generation, so that our tags become executed within a
privileged context?

We came up with two approaches to solve that problem, but none of them
worked:
- We tried to override _jspService(...) in the JSP (and calling
super._jspService(...)), but found it declared as final :(
- We looked at ServletWrapper and Interceptors but we could not figure
out how to implement/install them correctly, mainly because of a lack of
documentation.


Any help is appreciated,

Mick.



RE: linux-NT-MSsqlServer

2000-12-12 Thread Eric Hartmann

Hello,

I've test two drivers JDBC for Microsoft SQL Server 7 / 2000. jdbcKona
driver from BEA (does not works with SQL 2000) and JTurbo from Ashna. JTurbo
2.0 (www.jturbo.com) is a very good driver for SQL Server. It's fast and
reliable with my tests. I didn't test it on Linux but you can download a
test version for 30j and limited to 5 connections. It seems that JTurbo is
more reliable than jdbcKona. But this two level 4 drivers are good however
we choose JTurbo that seems to be faster.

I hope this helps

Eric

-Original Message-
From: Carlos [mailto:[EMAIL PROTECTED]]
Sent: mardi 12 décembre 2000 15:45
To: [EMAIL PROTECTED]
Subject: linux-NT-MSsqlServer


I am using tomcat in a linux, and my database is in a NT (it is a microsoft
SQL server).
anybody can say me what driver i good to use with this database?
there is any experience in this database from a linux using a JDB driver?
i have see a long list for buying a driver but i dont kown what i must to
buy.
i want to konw what is a good driver, not slow and solid
thanks
carlos





AW: linux-NT-MSsqlServer

2000-12-12 Thread Ralph Einfeldt


Depending on your needs you can use one of the following commercial
tools:
http://www.jturbo.com/products.html

http://www.inetsoftware.de/English/Produkte/JDBC_Overview/default.htm
http://www.beasys.com/products/weblogic/drivers.shtml

(We made good experience with weblogic. Good but expensive)

At least a free one:
ftp://freetds.internetcds.com/pub/freetds_jdbc/

It's still quite uncomplete, and the development
is not the fastest.

 -Ursprüngliche Nachricht-
 Von: Carlos [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 12. Dezember 2000 15:45
 An: [EMAIL PROTECTED]
 Betreff: linux-NT-MSsqlServer
 
 
 I am using tomcat in a linux, and my database is in a NT (it 
 is a microsoft
 SQL server).
 anybody can say me what driver i good to use with this database?
 there is any experience in this database from a linux using a 
 JDB driver?
 i have see a long list for buying a driver but i dont kown 
 what i must to
 buy.
 i want to konw what is a good driver, not slow and solid
 thanks
 carlos
 
 



Re: can jsp handle multipart/form-data ?

2000-12-12 Thread Joe Laffey

On Tue, 12 Dec 2000, John D. Smith wrote:

 I try to make a jsp page that handles a file upload.
 The problem i face is that i get a Internal Server Error from apache
 when i submit FORM enctype="multipart/form-data" ... to a jsp as action.
 Sending the same to php / cgi works fine.
 Question is: Is my server(apache/tomcat) misconfigured or doesn't jsp
 handle that kind of requests ?

Here's what I discovered about this issue:

I am using the multipart classes from Jason Hunter (with Java Servlet
Programming from O'Reilly... I am using the latest version from the
website.) The problem is that if you use a multi-part request, but then do
not treat it as such (by reading the ServletInputStream) then you will get
the INternal Error. I found that the Multipart classes do not read the
input stream if the file is too large (i.e. the check for the larger file
is done before the reading of the entire stream). This is a good idea in
general, but leads to the error. I am working on some enhancements to the
multipart classes that fix this. I have a working version now, but it is
not too generic . (i.e. it has been hacked quickly to work with my
project.) I can share this... If you are insterested let me know.

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




Re: Custom error pages!!

2000-12-12 Thread Kief Morris

Shahed Ali typed the following on 08:49 12/12/2000 -0600
I dont know about the specs, but I think all errorpages need the iserrorpage
= true page directive.

So that could mean that they should be .jsp (?)

The spec doesn't seem to say this ... I believe that's just needed if you want 
the exception to be available in the JSP page with the variable "exception".
Tomcat 3.2 forwards errors to JSP pages which don't have isErrorPage=true
without any problems.

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




RE:HPUX11 + mod_jk

2000-12-12 Thread Matchim, Brian - BOP/BDP

Hi Everyone,

I have received several e-mails from concerned users of Tomcat and HPUX11
since I first posted the
article "HPUX11 + mod_jk" on this listserv.  I am happy to say that I did
solve my own problem with 
the help of a co-worker, however, due to work activities I was unable to
deliver this reply until now.

Essentially there are three files that need to be modified to get mod_jk to
compile properly on HPUX11.
The directory where these files are located will change depending on the
version of Tomcat you are using,
it will either be $TOMCAT_HOME/src/native/jk  OR
$TOMCAT_HOME/src/native/mod_jk/common.  I haven't
used the newly released version, TOMCAT 3.2, so the directory may have
changed yet again.

The files that need to modified are:
- jk_pool.h
- jk_global.h
- jk_jni_worker.c**

**Through correspondence with other developers it appears that the fix to
jk_jni_worker.c is not a 
necessary fix.  However, this hasn't been fully tested, but I can say that
by completing the code
change, it eliminates the "warnings" produced by jk_jni_worker during
compilation.

There is also one other extremely important note for the compilation of
mod_jk.  If you are using 
a compiler such as gcc that runs in 64-bit mode on HPUX11 you should have
less problems with the
install of mod_jk.  If you use the standard 'make Makefile' command then you
will probably compile
correctly but will have no success in using mod_jk.  I far as I can tell,
the reason is that 
HPUX11 is a 64-bit OS, but it uses 32-bit compilers as default.  Tomcat's
distribution code attempts
to use the following dl operations: dlopen(), dlload(), dlerror(), and
dlsym().  Though the code
will compile using a 32-bit compiler, it will not operate correctly and
Apache will refuse to start.
There are two ways around this of course, use a 64-bit compiler (such as
gcc), or you can modify
the code to use the 32-bit equivalents, that is, shl_load(), shl_open(),
etc.

All code below is use at your own risk  ;)  I'd also like to thank Charles
Fulton for allowing me to 
use some of the code snippets and instructions that he sent to me directly.
This saves me the trouble
of re-typing them, and also shows that two people came to the same
conclusion:

---
Code Modifications
---

1.) Edit the file path to tomcat src/src/native/jk/jk_global.h

--jk_global.h--
/* sys/select */
---
commented out the above section, due to the fact that HP's select is now in
sys/time. This line was in the if statement checking for netware. 

- otherwise upon running apxs would die with compile errors.

Another alternative is to add an extra #ifndef, that way the same script
will continue to work on other 
platforms.  A different piece code that gets the same result is to change
jk_global.h to look like...

#ifndef NETWARE
#include netinet/tcp.h
#include arpa/inet.h
#include sys/un.h
#include sys/socketvar.h
 do not include sys/select.h if using HPUX11 
#ifndef HPUX11
  #include sys/select.h
#endif
  
#endif


2.) Edited file path to tomcat src/src/native/jk/jk_pool.h

- Added code to following section, 

HPUX11,HPUX, or HPUX10 are not checked for, AND there is no else for a
default value, so we added an elif for HP to defiine the type of
jk_pool_atom and also a default value. (btw, shouldn't they all just be set
to long and just check for MS to set it on it's own?)

jk_pool.h---
#elif(HPUX11) a
#elif defined(HPUX11)
typedef long long   jk_pool_atom_t;
#else
typedef long long   jk_pool_atom_t;
#endif
-


3.) The third revision is more extensive and involved.  Because I think most
people will 
choose to use gcc, I'm not sure the value of providing this code rewrite.
It is fairly long,
and involves the jk_jni_worker.c file.  Our code test for a 64-bit vs 32-bit
environment and
adjust commands accordingly.

The code re-write is too extensive for the present email. If any one is not
using gcc and cannot
get mod_jk to compile with the instructions provided thus far, let me know
and we will then test
to see if this list serv supports attachments ;)

To give you a small taste of the kind of checking we did, here is one
example...

jk_jni_worker.c   

#if defined(HPUX11) 
  #if defined(__LP64__)
handle = dlopen(p-jvm_dll_path, RTLD_NOW | RTLD_GLOBAL);
  #else
handle = (void*) shl_load(p-jvm_dll_path,
BIND_IMMEDIATE|BIND_VERBOSE|BIND_NOSTART, 0L);
  #endif
#else
handle = dlopen(p-jvm_dll_path, RTLD_NOW | RTLD_GLOBAL);
#endif
---

I hope this helps some of you out there!
Brian




Re: ServletContext.getResourceAsStream() in 3.2?

2000-12-12 Thread Sean Dowd

 If you want to load a file that is under WEB-INF, you don't need to involve the
 class loader at all.  Simply use:

InputStream is =
  getServletContext().getResourceAsStream("/WEB-INF/myprops.properties");

Cool.  That works (missed the part about relative to the context
directory
in the javadoc).

But now I'm back to the classloading issue.  I'm trying to use JNDI and
the 
call to load the factory class is failing.  The JNDI code is doing
something
like this to load the factory:

String className = "com.netscape.jndi.ldap.LdapContextFactory";
try
  {
  // this works
//   Class c = Class.forName( className );
  // this does not
  ClassLoader loader =
(java.lang.ClassLoader)java.security.AccessController.doPrivileged(new
java.security.PrivilegedAction() {
  
  public java.lang.Object run()
{
return java.lang.Thread.currentThread().getContextClassLoader();
}
  
  });
  Class c = java.lang.Class.forName(className, true, loader);
  log( "Class " + className + " loaded." );
  }
catch ( Exception e )
  {
  log( "Error loading class " + className + ": " + e );
  return;
  }

I'm seeing a ClassNotFoundException but the jar is definitely in
WEB-INF/lib
and definitely contains com.netscape.jndi.ldap.LdapContextFactory.



Error loading servlets in Tomcat

2000-12-12 Thread Simon Freytag

Hi,

I'm new to the list so apologies if I miss a point of protocol. I've
consulted the Tomcat docs, faqs and mailing list faq / archives, the jGuru
site and the Zeus support site and now turn to help from the list.

I'm using a Cobalt RAQ4i with Cobalt Linux 6.0 and Zeus 3.3. I confess I
don't know what version of Tomcat I'm using - we installed a release build
in August - probably 3.2.

We followed the principles given in
http://support.zeus.com/products/tomcat.html to install Tomcat and
sucessfully mounted Tomcat's examples under /examples and they worked fine.

I have added a new web application called firstireland by adding dirs
firstireland, firstireland/WEB-INF, firstireland/WEB-INF/classes,
firstireland/WEB-INF/lib under $TOMCAT_HOME/webapps

I added the following line to server.xml inside ContextManager without
altering any other line

Context path="/firstireland" docBase="webapps/firstireland" debug="0"
reloadable="true"/

I created a web.xml based on the example in the TOmcat docs for my web
application and placed it in $TOMCAT_HOME/webapps/WEB-INF/. The key lines
are:

   servlet
servlet-name
HelloWorldExample
/servlet-name
servlet-class
HelloWorldExample
/servlet-class
load-on-startup
1
/load-on-startup
   /servlet

servlet-mapping
servlet-name
HelloWorldExample
/servlet-name
url-pattern
/HelloWorldExample
/url-pattern
/servlet-mapping

HelloWorldExamlpe is the simple servlet supplied in the Tomcat examples and
I intended to use it to test I had set up the new web application correctly.

When I start Tomcat from the command line in bash it tells me:

cannot load servlet name: HellowWorldExample

Tomcat logs show nothing beyond the fact that Tomcat has started up an
initialised an HTTP and an AJP12 connector

If I then try to request /firstireland/HelloWorldExample I get a JServ 404
error (understandable as the servlet wasn't loaded) and the following
exception error is added to Tomcat.log:

---exception---

Context log: path="/firstireland" Exception in init servlet Can't find
resource for base name LocalStrings, locale en_US
 java.util.MissingResourceException: Can't find resource for base name
LocalStrings, locale en_US
at java.util.ResourceBundle.getBundle(ResourceBundle.java, Compiled
Code)
at java.util.ResourceBundle.getBundle(ResourceBundle.java, Compiled
Code)
at HelloWorldExample.init(HelloWorldExample.java, Compiled Code)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java, Compiled Code)
at
org.apache.tomcat.core.ServletWrapper.initServlet(ServletWrapper.java,
Compiled Code)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled
Code)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java, Compiled Code)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java,
Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)
Context log: path="/firstireland" Can't find servet HelloWorldExample

---/exception---

My understanding of this is that:

* the servlet isn't loaded at startup due to an undpecified error
* the request for the servlet causes Tomcat to try to reload it
* this time reloading it causes a more detailed error
* I assume these two errors are in fact the same
* I don't see a problem with HelloWorldExample as it worked fine under
/examples
* therefore it is a problem with the way I have set up the new webapp

My questions are:

* has anyone seen this before and can help?
* if not, what is "base name LocalStrings"? If I can find this, perhaps I
can understand the error
* any general thoughts?

THanks,

Simon







unix AIX virtual machine

2000-12-12 Thread Ing . José A . Alcázar Willis

Hi!...

   I am working with tomcat in a Unix AIX OS and tomcat.log says :
Error in default service() : There is no proc
ess to read data written to a pipe.
 java.io.IOException: There is no process to read data written to a pipe.
at java.net.SocketOutputStream.write(Compiled Code)

  I read and asked about tomcat and servlets and I coudn't find an error in
tomcat configuration or my application.  I guess that the problem is with
Unix's JVM but am not sure... does someone has use servlets in unix?... what
think about this?...
Jose




RE: Reroute the output of a processed jsp page into a String

2000-12-12 Thread CPC Livelink Admin


One option is to use Java's URL capabilities and open a connection to
tomcat, make the request, and capture the output of that in a
ByteArrayOutputStream.  Something like this, though I did not even try to
compile it :

URL url = new URL(yourURL);
InputStream is = url.openStream();
ByteArrayOutputStream baos = new ByteArrayOutputStream();

/* then loop over the input stream into the output stream */

String html = baos.toString(); // voila

-Original Message-
From: NINA.de Internet Service Agentur [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 03:44 AM
To: [EMAIL PROTECTED]
Subject: Reroute the output of a processed jsp page into a String


Hello,

is it possible to reroute the output of a processed jsp page into a String
or
StringBuffer object in order to send it as an email message with the Java
Mail API?

We use Tomcat 3.2 final with beans and jsp pages and want to use the parse
mechanism
of jsp pages of Tomcat to generate user defined email messages. The contents
of the
messages are provided by beans with sessionwide scope.

Any ideas ?

Regards,
Ralf.D. Zimmerer







doPost invoked twice on ServletException

2000-12-12 Thread Ralf Suckow

Hello,

with tomcat 3.1 I'm throwing a ServletException in a servlet's
doPost method, and in this case the doPost is invoked a second time,
throwing the ServletException again, which is then shown
in the response page.

What am I doing wrong?

Thanks, be well,
Ralf



Re: linux-NT-MSsqlServer

2000-12-12 Thread Pier Paolo Bortone



I'm using jdbc from freetds project.

It's very small, very good and very easy to use 
(JDBC level 4).

Thanks to freetds development team.

My environment is:

Good components:
Linux (best linux) on intel
apache 1.3.14
tomcat 3.2
jdbc:freetds 0.51

Bad components:
Windows NT4.0 
MSSQLServer 7.0

Pier Paolo.



  - Original Message - 
  From: 
  Carlos 
  To: [EMAIL PROTECTED] 
  Sent: Tuesday, December 12, 2000 3:45 
  PM
  Subject: 
  linux-NT-MSsqlServer
  I am using tomcat in a linux, and my database is in a NT (it is 
  a microsoftSQL server).anybody can say me what driver i good to use 
  with this database?there is any experience in this database from a linux 
  using a JDB driver?i have see a long list for buying a driver but i dont 
  kown what i must tobuy.i want to konw what is a good driver, not slow 
  and solidthankscarlos


Re: I have Small Problem

2000-12-12 Thread Bryan Basham


 I am new user of Tomcat.  I have created simple helloworld servlet. Please
 can u
 tell me where to copy class file and how to call this from browser.
 I have worked on Java Web Server, there i used to copy servlet file in the
 following diretory: JWS-HOME/examples/Web-Inf/servlets
 and used to call this file as: http://localhost:8080/ServletName

You can put "raw" servlet class files in
   TOMCAT_HOME/webapps/ROOT/WEB-INF/classes

You need to read the servlet v2.2 (or later) spec to really understand how
to properly create and deploy a "web application" which is significantly
different then *just* deploying a single servlet to the "servlets" directory
as in the days of old.  To get the current servlet spec visit:

   http://java.sun.com/products/servlet/download.html

-Bryan




Re: doPost invoked twice on ServletException

2000-12-12 Thread Thomas Schreiner


- Original Message -
From: "Ralf Suckow" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, December 12, 2000 4:28 PM
Subject: doPost invoked twice on ServletException


 Hello,

 with tomcat 3.1 I'm throwing a ServletException in a servlet's
 doPost method, and in this case the doPost is invoked a second time,
 throwing the ServletException again, which is then shown
 in the response page.

 What am I doing wrong?

I had the same problem. In my case tomcat loaded the WebApplication
twice.

I specified a context in the server.xml with a different name than the
name
of the directory containing my application in in tomcat/webapps/.

Removing the context worked for me.

hth,
Thomas




static html from webapps

2000-12-12 Thread Frank Morton

Looking through docs/faqs I think the following is true.

Is it?

Given a project "xyz" I can serve static .html files out of
webapps/xyz, but on a production machine it should be
served out of htdocs. However, there is no way to have
"htdocs/xyz" and "webapps/xyz" using the same directory
name, so one of the names has to change. Right?

Thanks.




java app - servlet via serialization problem

2000-12-12 Thread Noll, Jeff HS

I'm having a problem with sending a serialized object to a servlet
and I'm hoping someone can help me out. The error i'm getting is:

java.io.InvalidClassException: com.hsssi.rda.client.Session; Local class not
compatible: stream classdesc serialVersionUI=-670601590654791455 local class
serialVersionUID=0

I'm compiling using jbuilder, then copying the class files into the WEB-INF
directory, so i see no reason why they would be different versions.

On another note, I'm getting some very inconsistent results using
URLConnection.getInputStream() after I do me post. This occures after I post
the object stream to the servlet and then try to read a output from the
servlet. When I access a perl cgi it works fine, but when I access a servlet
I'm getting a FileNotFound io exception.

Any ideas on either of these two? its driver me crazy.

Oh, jvm is 1.3, apache is on Solaris, app is running from win98

Thanks,
Jeff




RE: static html from webapps

2000-12-12 Thread Pat Berry

It should depend on your setup.  Do you plan on using tomcat (via mod_jk or
mod_jserv) with apache anytime soon?  If so you can tweak your apache conf
to try and get the results you want.

Pat

-Original Message-
From: Frank Morton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 7:44 AM
To: [EMAIL PROTECTED]
Subject: static html from webapps


Looking through docs/faqs I think the following is true.

Is it?

Given a project "xyz" I can serve static .html files out of
webapps/xyz, but on a production machine it should be
served out of htdocs. However, there is no way to have
"htdocs/xyz" and "webapps/xyz" using the same directory
name, so one of the names has to change. Right?

Thanks.




Re: static html from webapps

2000-12-12 Thread Frank Morton

I'm using mod_jk. So, how would I tweak the config file? Thanks.


 It should depend on your setup.  Do you plan on using tomcat (via mod_jk
or
 mod_jserv) with apache anytime soon?  If so you can tweak your apache conf
 to try and get the results you want.

 Pat

 Looking through docs/faqs I think the following is true.

 Is it?

 Given a project "xyz" I can serve static .html files out of
 webapps/xyz, but on a production machine it should be
 served out of htdocs. However, there is no way to have
 "htdocs/xyz" and "webapps/xyz" using the same directory
 name, so one of the names has to change. Right?

 Thanks.




Re: Custom error pages!!

2000-12-12 Thread Catherine Jung

Hiya,

 n cheers.
 v have found a bug..hahahaha

Boy mailing lists have a short memory!, I'd been having trouble with this
last week and posted about it, on tomcat-dev too, but to no avail. 

 so guess a lot of ppl. like us wont have to waste their time on it

grin If my experience is anything to go by, I expect this topic to rear
it's head again about Monday. 

No-one seems to check the archives/bug database these days :)

Catherine.
 




RE: Error loading servlets in Tomcat

2000-12-12 Thread Simon Freytag


Hi,

I've fixed my problem and thought I would report back for other people who
wanted to use the demo HelloWorldExample servlet to test that new webapps
had been correctly set up.

HelloWorldExample.java (from $TOMCAT_HOME/webapps/examples/WEB-INF/classes
in the default install) contains this line:

String title = rb.getString("helloworld.title");

and rb is initialised by

ResourceBundle rb = ResourceBundle.getBundle("LocalStrings");

and I hadn't copied this text file into my new webapp! So for others trying
the same thing, copy
$TOMCAT_HOME/webapps/examples/WEB-INF/classes/LocalStrings.properties to
[your webapp]/WEB-INF/classes/LocalStrings.properties

Simon






Re: Custom error pages!!

2000-12-12 Thread Alexandre Simonin

Catherine,

I'm new to this mailing-list and reviewing the WELCOME notice, I found no
trace related to the database you're refering to. Can you please provide me
with the directions?

Thanks in advance,
Alexandre

Catherine Jung wrote:

 Hiya,

  n cheers.
  v have found a bug..hahahaha

 Boy mailing lists have a short memory!, I'd been having trouble with this
 last week and posted about it, on tomcat-dev too, but to no avail.

  so guess a lot of ppl. like us wont have to waste their time on it

 grin If my experience is anything to go by, I expect this topic to rear
 it's head again about Monday.

 No-one seems to check the archives/bug database these days :)

 Catherine.





Re: Custom error pages!!

2000-12-12 Thread Catherine Jung

Hiya, 

No problem, if you go to the Tomcat site:

jakarta.apache.org/tomcat/index.html

it has links to both the bug report/search site:

http://znutar.cortexity.com/BugRatViewer/

and the searchable mailing list archives:

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

Hope it helps,

Catherine

 I'm new to this mailing-list and reviewing the WELCOME notice, I found no
 trace related to the database you're refering to. Can you please provide me
 with the directions?

 Thanks in advance,
 Alexandre




Re: Custom error pages!!

2000-12-12 Thread Kief Morris

Catherine Jung typed the following on 16:18 12/12/2000 +
Boy mailing lists have a short memory!, I'd been having trouble with this
last week and posted about it, on tomcat-dev too, but to no avail. 

No-one seems to check the archives/bug database these days :)

Actually I did look, but I didn't see it in there. Actually, I don't find my own 
when I search for it either, although it's in the database.

If I get the time I'll look at fixing it myself: I found the place in the source
where it's happening, but I don't understand the context well enough yet
to fix it.

Kief

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




RES: can jsp handle multipart/form-data ?

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

Hi everybody and Joe!
I am trying to use the oreilly's package for multipart/form-data streams.
But I didnt  find any 
method to deal with input text field which comes ( mixed ) with the uploaded
file from my form. Any hint?
Best Regards,
 
 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:   Terça-feira, 12 de Dezembro de 2000 14:09
 Para: [EMAIL PROTECTED]
 Assunto:  Re: can jsp handle multipart/form-data ?
 
 On Tue, 12 Dec 2000, John D. Smith wrote:
 
  I try to make a jsp page that handles a file upload.
  The problem i face is that i get a Internal Server Error from apache
  when i submit FORM enctype="multipart/form-data" ... to a jsp as
 action.
  Sending the same to php / cgi works fine.
  Question is: Is my server(apache/tomcat) misconfigured or doesn't jsp
  handle that kind of requests ?
 
 Here's what I discovered about this issue:
 
 I am using the multipart classes from Jason Hunter (with Java Servlet
 Programming from O'Reilly... I am using the latest version from the
 website.) The problem is that if you use a multi-part request, but then do
 not treat it as such (by reading the ServletInputStream) then you will get
 the INternal Error. I found that the Multipart classes do not read the
 input stream if the file is too large (i.e. the check for the larger file
 is done before the reading of the entire stream). This is a good idea in
 general, but leads to the error. I am working on some enhancements to the
 multipart classes that fix this. I have a working version now, but it is
 not too generic . (i.e. it has been hacked quickly to work with my
 project.) I can share this... If you are insterested let me know.
 
 Joe Laffey
 LAFFEY Computer Imaging
 St. Louis, MO
 -
 With no walls or fences on the Internet, who needs Windows or Gates?
 -



A Christmas present from The DJ Agency KlubDJ

2000-12-12 Thread KlubDJ

Hi, 

KlubDJ still have DJ's available across the country for the festive season! We even 
have a few slots left for the much requested Producers, Remixes and DJ's, LUMINA... 

Please contact us for more details preferably by email for initial enquiries 

[EMAIL PROTECTED] 


Happy Christmas and Mental New Year  


From all at KlubDJ 
w: www.klubdj.co.uk 
e: [EMAIL PROTECTED] 
t: 07092 171780 
f: 07092 171790




Clusters

2000-12-12 Thread Steve Haines

Does Tomcat 3.2 support sharing sessions between clusters of Tomcats running
in a web farm environment?  

The documentation spoke of plug-able session managers but gave very little
help.

If this is the only way, will Tomcat 4.0 support clustering??

Thanks in advance!
Steve



Re: linux-NT-MSsqlServer

2000-12-12 Thread Carlos

can you say me where are these tests?
- Original Message -
From: "Matt Goss" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 12, 2000 6:11 PM
Subject: Re: linux-NT-MSsqlServer


 Ditto...
 I'm also using the JTurbo 2.0 JDBC driver, and on benchmark tests against
Bea's
 Weblogic JDBC driver, it came up 5 times faster!
 Matt

 Eric Hartmann wrote:

  Hello,
 
  I've test two drivers JDBC for Microsoft SQL Server 7 / 2000. jdbcKona
  driver from BEA (does not works with SQL 2000) and JTurbo from Ashna.
JTurbo
  2.0 (www.jturbo.com) is a very good driver for SQL Server. It's fast and
  reliable with my tests. I didn't test it on Linux but you can download a
  test version for 30j and limited to 5 connections. It seems that JTurbo
is
  more reliable than jdbcKona. But this two level 4 drivers are good
however
  we choose JTurbo that seems to be faster.
 
  I hope this helps
 
  Eric
 
  -Original Message-
  From: Carlos [mailto:[EMAIL PROTECTED]]
  Sent: mardi 12 décembre 2000 15:45
  To: [EMAIL PROTECTED]
  Subject: linux-NT-MSsqlServer
 
  I am using tomcat in a linux, and my database is in a NT (it is a
microsoft
  SQL server).
  anybody can say me what driver i good to use with this database?
  there is any experience in this database from a linux using a JDB
driver?
  i have see a long list for buying a driver but i dont kown what i must
to
  buy.
  i want to konw what is a good driver, not slow and solid
  thanks
  carlos





RE: Linux-NT-MSsqlServer

2000-12-12 Thread Martino, Karl

We are using JTurbo with our Cofax content management system delivering 17
newspapers to the net, amoungst which is the Philadelphia Inquirer and
Tallahasse Democrat.

-Karl

 -Original Message-
 From: G.Nagarajan [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 12, 2000 12:30 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Linux-NT-MSsqlServer
 
 
 Yes, the atinav driver forces you to use a single statement 
 throughout a
 transaction.
 And in the freeTDS driver, the transaction is connected with 
 the statement.
 
 How about these type 3 drivers from Merant and others. Has 
 anyone worked
 with them?
 I did not try them for two reasons. Adding another 
 intermediate layer and
 making
 things complicated and to avoid one more source of possible errors.
 
 -Original Message-
 From: Matt Goss [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 12, 2000 6:11 PM
 To: [EMAIL PROTECTED]
 Subject: Re: linux-NT-MSsqlServer
 
 
 Ditto...
 I'm also using the JTurbo 2.0 JDBC driver, and on benchmark 
 tests against
 Bea's
 Weblogic JDBC driver, it came up 5 times faster!
 Matt
 
 Eric Hartmann wrote:
 
  Hello,
 
  I've test two drivers JDBC for Microsoft SQL Server 7 / 
 2000. jdbcKona
  driver from BEA (does not works with SQL 2000) and JTurbo 
 from Ashna.
 JTurbo
  2.0 (www.jturbo.com) is a very good driver for SQL Server. 
 It's fast and
  reliable with my tests. I didn't test it on Linux but you 
 can download a
  test version for 30j and limited to 5 connections. It seems 
 that JTurbo is
  more reliable than jdbcKona. But this two level 4 drivers 
 are good however
  we choose JTurbo that seems to be faster.
 
  I hope this helps
 
  Eric
 
 



Ctx( ): IOException in: R( + /tomcat-power.gif + null) socket write error

2000-12-12 Thread Ali Abdollahi

I am running tomcat 3.2 on NT. While trying to access
http://localhost/index.html I get the following errors:

2000-12-12 09:27:41 - Ctx(  ): IOException in: R(  + /index.html + null)
socket write error (code=10053)
2000-12-12 09:27:41 - Ctx(  ): IOException in: R(  + /tomcat-power.gif +
null) socket write error (code=10053)

but page loads fine. Any ideas?



RES: Database connection pooling

2000-12-12 Thread Edson Carlos Ericksson Richter

We are currently using Bitmechanic JDBC Pool, and is very - really very -
stable (with MSSQL FreeTDS driver and Oracle driver).
And best: is free.

Edson Richter


 - Mensagem original -
 De:   Martino, Karl [SMTP:[EMAIL PROTECTED]]
 Enviada em:   terça-feira, 12 de dezembro de 2000 15:14
 Para: [EMAIL PROTECTED]
 Assunto:  Database connection pooling
 
 We are currently evaluating our our application's database connection
 pooling and I would love to hear what others have discovered as best
 practices and traps.
 
 We are using MS SQLServer with JTurbo as our JDBC driver.  Our database
 pooling classes are based upon source code downloaded from Wrox.
 
 Are there industrial strength database pooling classes available to
 purchase?  Should we continue to write our own (we've experienced
 difficulties...)? Does Tomcat, like some other servlet containers, include
 database pooling somewhere?
 
 Thanks,
 -Karl 



RE: Help me !!

2000-12-12 Thread Josh Knowles



Start 
by reading the documentation, then ask specific questions

  -Original Message-From: Carlos Benavides 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, December 12, 
  2000 5:52 AMTo: [EMAIL PROTECTED]Subject: 
  Help me !!
  
  
  Hello,
  
  How do I install Tomcat on Solaris 
  
  
  Thank You!


Re: linux-NT-MSsqlServer

2000-12-12 Thread Matt Goss

Carlos,
I ran both drivers against a Microsoft SQL 7 datbase, pulling back a 792 row
table. After 5 times, the Jturbo driver was averaging  700 milliseconds to bring
back the data, and the bea driver was averaging 4000 milliseconds! (This was my
own personal test, no public benchmark)
Matt

Carlos wrote:

 can you say me where are these tests?
 - Original Message -
 From: "Matt Goss" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, December 12, 2000 6:11 PM
 Subject: Re: linux-NT-MSsqlServer

  Ditto...
  I'm also using the JTurbo 2.0 JDBC driver, and on benchmark tests against
 Bea's
  Weblogic JDBC driver, it came up 5 times faster!
  Matt
 
  Eric Hartmann wrote:
 
   Hello,
  
   I've test two drivers JDBC for Microsoft SQL Server 7 / 2000. jdbcKona
   driver from BEA (does not works with SQL 2000) and JTurbo from Ashna.
 JTurbo
   2.0 (www.jturbo.com) is a very good driver for SQL Server. It's fast and
   reliable with my tests. I didn't test it on Linux but you can download a
   test version for 30j and limited to 5 connections. It seems that JTurbo
 is
   more reliable than jdbcKona. But this two level 4 drivers are good
 however
   we choose JTurbo that seems to be faster.
  
   I hope this helps
  
   Eric
  
   -Original Message-
   From: Carlos [mailto:[EMAIL PROTECTED]]
   Sent: mardi 12 décembre 2000 15:45
   To: [EMAIL PROTECTED]
   Subject: linux-NT-MSsqlServer
  
   I am using tomcat in a linux, and my database is in a NT (it is a
 microsoft
   SQL server).
   anybody can say me what driver i good to use with this database?
   there is any experience in this database from a linux using a JDB
 driver?
   i have see a long list for buying a driver but i dont kown what i must
 to
   buy.
   i want to konw what is a good driver, not slow and solid
   thanks
   carlos
 


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



FW: java platform

2000-12-12 Thread John de la Garza


Does anyone here have experience running java under Solaris on a sparc and
Linux on a x86?  I am looking to set up a server to run servlets and was
wondering which os runs java better.  I would assume running Solaris on a
sparc would be the best, but I just wanted some feedback.


Im using apache with tomcat.

I have only seen java run on Linux and windows both with x86 hardware.
Was also curious about BSD.

I am looking for the ideal server to run a webserver that will user
servlets.

any feedback would be appreciated.




url-pattern behaviour

2000-12-12 Thread Jose Oliver


Hello,

I'm trying to configure tomcat with some
servlets, and I've found a difference in
behaviour from other servlet engines. I'm trying
to configure it in such a way that requests for
the main page (http://www.blah.blah.com/) are
served by a servlet called StartServlet:

  servlet-mapping
servlet-nameStartServlet/servlet-name
url-pattern//url-pattern
  /servlet-mapping

and it actually does it, but the problem is that
it serves _any_ url that starts with "/", for
example "/images/whateverfooimage.jpg". The
same application running under Dynamo 5.0 does
it ok (for me), since StartServlet only serves
request for "/" url...

Is this a bug in tomcat? Or is a
"feature" of Dynamo?

Best,
Jose



RE: java platform

2000-12-12 Thread David Rees

Here's a comprehensive benchmark of one application under a variety of
different JVMs on the x86 platform:

http://www.volano.com/report.html

Keep in mind that the results found here may not be the same for your
particular application!

-Dave

 -Original Message-
 From: John de la Garza [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 12, 2000 11:39 AM
 To: Tomcat-Users (E-mail)
 Subject: FW: java platform



 Does anyone here have experience running java under Solaris on a sparc and
 Linux on a x86?  I am looking to set up a server to run servlets and was
 wondering which os runs java better.  I would assume running Solaris on a
 sparc would be the best, but I just wanted some feedback.


 Im using apache with tomcat.

 I have only seen java run on Linux and windows both with x86 hardware.
 Was also curious about BSD.

 I am looking for the ideal server to run a webserver that will user
 servlets.

 any feedback would be appreciated.





Re: FW: java platform

2000-12-12 Thread Trevor Little

I'm not sure but I thought about it this way... Sun = java and Sun =
Solaris.  


John de la Garza wrote:
 
 Does anyone here have experience running java under Solaris on a sparc and
 Linux on a x86?  I am looking to set up a server to run servlets and was
 wondering which os runs java better.  I would assume running Solaris on a
 sparc would be the best, but I just wanted some feedback.
 
 Im using apache with tomcat.
 
 I have only seen java run on Linux and windows both with x86 hardware.
 Was also curious about BSD.
 
 I am looking for the ideal server to run a webserver that will user
 servlets.
 
 any feedback would be appreciated.



Re: Ctx( ): IOException in: R( + /tomcat-power.gif + null) socket w rite error

2000-12-12 Thread Dave Smith

I get the same error with the same configuration
(NT4/tomcat3.2 standalone). My machine is configured
and working properly, and I have no other problems
related to winsock. So, does anyone know where
this error originates in the code? Is it a tomcat bug?
If so, I'll try and figure out how to do a bug report...

Tomcat 3.2 works fine and serves pages, even SSL
works, but standard out spews this junk on every request.

Thanks for any input,

Dave Smith


- Original Message -
From: "Steven Newton" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 12, 2000 1:42 PM
Subject: RE: Ctx( ): IOException in: R( + /tomcat-power.gif + null) socket w
rite error


  I am running tomcat 3.2 on NT. While trying to access
  http://localhost/index.html I get the following errors:
 
  2000-12-12 09:27:41 - Ctx(  ): IOException in: R(  +
  /index.html + null)
  socket write error (code=10053)
  2000-12-12 09:27:41 - Ctx(  ): IOException in: R(  +
  /tomcat-power.gif +
  null) socket write error (code=10053)
 

 This is a winsock error.  The below is quoted from
 http://www.sockets.com/err_lst1.htm.
 It's not specifically a Tomcat error.

 WSAECONNABORTED (10053) Software caused connection abort.

 Berkeley description: A connection abort was caused internal to your host
 machine. The software caused a connection abort because there is no space
on
 the socket's queue and the socket cannot receive further connections.

 WinSock description: Partly the same as Berkeley. The error can occur when
 the local network system aborts a connection. This would occur if WinSock
 aborts an established connection after data retransmission fails (receiver
 never acknowledges data sent on a datastream socket).

 TCP/IP scenario: A connection will timeout if the local system doesn't
 receive an (ACK)nowledgement for data sent. It would also timeout if a
 (FIN)ish TCP packet is not ACK'd (and even if the FIN is ACK'd, it will
 eventually timeout if a FIN is not returned).

 User suggestions: There are a number of things to check, that might help
to
 identify why the failure occurred. Basically, you want to identify where
the
 problem occurred.
 Ping the remote host you were connected to. If it doesn't respond, it
might
 be off-line or there may be a network problem along the way. If it does
 respond, then this problem might have been a transient one (so you can
 reconnect now), or the server application you were connected to might have
 terminated (so you might not be able to connect again).
 Ping a local host to verify that your local network is still functioning
(if
 on a serial connection, see next step)
 Ping your local router address. If you're on a serial connection, your
local
 router is the IP address of the host you initially logged onto with SLIP
or
 PPP.
 Ping a host on the same subnet as the host you were connected to (if you
 know one). This will verify that the destination network is functioning.
 Try a "traceroute" to the host you were connected to. This won't reveal
too
 much unless you know the router addresses at the remote end, but it might
 help to identify if the problem is somewhere along the way.

 WinSock functions: recv(), recvfrom(), sendto(), FD_CLOSE

 Additional functions: send() can also fail with WSAECONNABORTED. Any
 function that takes a socket as an input parameter--except close
 socket()--could potentially fail with this error.

 See also: WSAECONNRESET, WSAENETRESET, WSAETIMEDOUT




Re: Database connection pooling

2000-12-12 Thread Dave Smith

The bitmechanic connection pool is excellent. Easy to use
and free, opensource.

What more does anyone want?


Dave
- Original Message -
From: "Edson Carlos Ericksson Richter" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 12, 2000 3:12 PM
Subject: RES: Database connection pooling


We are currently using Bitmechanic JDBC Pool, and is very - really very -
stable (with MSSQL FreeTDS driver and Oracle driver).
And best: is free.

Edson Richter


 - Mensagem original -
 De: Martino, Karl [SMTP:[EMAIL PROTECTED]]
 Enviada em: terça-feira, 12 de dezembro de 2000 15:14
 Para: [EMAIL PROTECTED]
 Assunto: Database connection pooling

 We are currently evaluating our our application's database connection
 pooling and I would love to hear what others have discovered as best
 practices and traps.

 We are using MS SQLServer with JTurbo as our JDBC driver.  Our database
 pooling classes are based upon source code downloaded from Wrox.

 Are there industrial strength database pooling classes available to
 purchase?  Should we continue to write our own (we've experienced
 difficulties...)? Does Tomcat, like some other servlet containers, include
 database pooling somewhere?

 Thanks,
 -Karl




Cookie question

2000-12-12 Thread Rick Bosch

hey

i want to set a cookie so when i go to www.myurl.com/one and i get a
cookie it is also visible at www.myurl.com/two , but the default behavior is
not the case.  I tried cookie.setDomain(".myurl.com") and
cookie.setDomain(request.getServerName()) and nothjing seems to work.

any ides?

thanks
rick



RE: Sessions and absolute URLs

2000-12-12 Thread Sen, Puny

OK - I'll try that. Excuse the lack of knowledge,
but is it possible to access a bean from a servlet
(not a jsp)?

 -Original Message-
 From: Michael Quinn [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 12, 2000 9:40 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Sessions and absolute URLs
 
 
 One way you can maintain the session is to create a java 
 bean, and make it's
 scope the session.
 Then depending on your hardware, you should be able to maintain a 1.1
 connection and retain session information.
 
 -Original Message-
 From: Sen, Puny [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 12, 2000 9:20 AM
 To: [EMAIL PROTECTED]
 Subject: Sessions and absolute URLs
 
 
 Hi,
 
 I've just recently joined the list so forgive me if this
 topic has been discussed before.
 
 I've been having the following experiences with sessions:
 
 Links with absolute URLs do not retain the same session
 (even if they refer to the same webapp). Relative URLs are
 fine.
 
 So if I have a link to a secure page from a non-secure page, then
 I lose the session, beause I have to specify "https:" in the
 link.
 
 But this only happens on certain browsers. For example,
 Internet Explorer 5 on Windows NT 4 works fine, but
 Netscape 4.7 on Windows NT 4 does not.
 
 Can this problem be solved through URL rewriting
 (by wrapping the link in encodeURL()"?
 
 Thanks,
 Puna
 
 
 
 



RE: Cookie question

2000-12-12 Thread Richard Xia

Use theCookie.setPath("/");

Yue (Richard)
-Original Message-
From: Rick Bosch [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 4:05 PM
To: [EMAIL PROTECTED]
Subject: Cookie question


hey

i want to set a cookie so when i go to www.myurl.com/one and i get a
cookie it is also visible at www.myurl.com/two , but the default behavior is
not the case.  I tried cookie.setDomain(".myurl.com") and
cookie.setDomain(request.getServerName()) and nothjing seems to work.

any ides?

thanks
rick



404 with isapi_redirect.dll, tomcat3.2

2000-12-12 Thread Carles Pi-Sunyer

Hi,

I'm having a problem getting the IIS redirect to work with tomcat 3.2. Here
are the details:

*) The filter is loaded (green arrow up).
*) It appears that tomcat is never receiving the requests.
*) I can load the IIS default page at localhost
*) I can browse with no trouble at localhost:8080/examples/jsp/index.html
*) I am trying to load localhost/examples/jsp/index.html

The IIS log:
#Software: Microsoft Internet Information Server 4.0
#Version: 1.0
#Date: 2000-12-12 20:19:00
#Fields: time c-ip cs-method cs-uri-stem sc-status
20:19:00 127.0.0.1 GET /jakarta/isapi_redirect.dll+ 404

The tomcat log (log level set to debug):
2000-12-12 12:18:34 - ContextManager: Adding context Ctx( /examples )
2000-12-12 12:18:34 - ContextManager: Adding context Ctx( /admin )
2000-12-12 12:18:34 - ContextManager: Adding context Ctx( /host )
2000-12-12 12:18:34 - ContextManager: Adding context Ctx(  )
2000-12-12 12:18:34 - ContextManager: Adding context Ctx( /test )
2000-12-12 12:18:36 - PoolTcpConnector: Starting HttpConnectionHandler on
8080
2000-12-12 12:18:36 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
8007

The isapi log:
[jk_uri_worker_map.c (155)]: Into jk_uri_worker_map_t::uri_worker_map_alloc
[jk_uri_worker_map.c (195)]: Into jk_uri_worker_map_t::uri_worker_map_open
[jk_uri_worker_map.c (210)]: jk_uri_worker_map_t::uri_worker_map_open, rule
map size is 3
[jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /servlet/=ajp12 was added
[jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /examples/=ajp12 was added
[jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /host/=ajp12 was added
[jk_uri_worker_map.c (295)]: Into jk_uri_worker_map_t::uri_worker_map_open,
there are 3 rules
[jk_uri_worker_map.c (316)]: jk_uri_worker_map_t::uri_worker_map_open, done
[jk_worker.c (82)]: Into wc_open
[jk_worker.c (207)]: Into build_worker_map, creating 1 workers
[jk_worker.c (213)]: build_worker_map, creating worker ajp12
[jk_worker.c (138)]: Into wc_create_worker
[jk_worker.c (152)]: wc_create_worker, about to create instance ajp12 of
ajp12
[jk_ajp12_worker.c (264)]: Into ajp12_worker_factory
[jk_worker.c (161)]: wc_create_worker, about to validate and init ajp12
[jk_ajp12_worker.c (182)]: Into jk_worker_t::validate
[jk_ajp12_worker.c (194)]: In jk_worker_t::validate for worker ajp12 contact
is localhost:8007
[jk_worker.c (177)]: wc_create_worker, done
[jk_worker.c (223)]: build_worker_map, removing old ajp12 worker 
[jk_worker.c (235)]: build_worker_map, done
[jk_worker.c (102)]: wc_open, done
[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
/examples/jsp/index.html

Any suggestions?

Thanks,
Carles

Carles Pi-Sunyer
Stario, Inc.
http://www.stario.com
[EMAIL PROTECTED]
408 844-8333 ex:326
 



Re: RES: can jsp handle multipart/form-data ?

2000-12-12 Thread Philippe de M. Sevestre

We've used the JspSmartUpload component with Tomcat. Check the following
link for
more info:

http://industry.java.sun.com/solutions/products/by_product/0,2348,all-2631-2
6,00.html


At 15:05 12/12/00 -0300, you wrote:
Hi everybody and Joe!
I am trying to use the oreilly's package for multipart/form-data streams.
But I didnt  find any 
method to deal with input text field which comes ( mixed ) with the uploaded
file from my form. Any hint?
Best Regards,
 
 José Euclides Júnior




RE: Sessions and absolute URLs

2000-12-12 Thread Josh Knowles

Yup you just grab it from the session object and cast it to whatever object
that it is.

-Original Message-
From: Sen, Puny [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 10:41 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Sessions and absolute URLs


OK - I'll try that. Excuse the lack of knowledge,
but is it possible to access a bean from a servlet
(not a jsp)?

 -Original Message-
 From: Michael Quinn [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 12, 2000 9:40 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Sessions and absolute URLs
 
 
 One way you can maintain the session is to create a java 
 bean, and make it's
 scope the session.
 Then depending on your hardware, you should be able to maintain a 1.1
 connection and retain session information.
 
 -Original Message-
 From: Sen, Puny [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 12, 2000 9:20 AM
 To: [EMAIL PROTECTED]
 Subject: Sessions and absolute URLs
 
 
 Hi,
 
 I've just recently joined the list so forgive me if this
 topic has been discussed before.
 
 I've been having the following experiences with sessions:
 
 Links with absolute URLs do not retain the same session
 (even if they refer to the same webapp). Relative URLs are
 fine.
 
 So if I have a link to a secure page from a non-secure page, then
 I lose the session, beause I have to specify "https:" in the
 link.
 
 But this only happens on certain browsers. For example,
 Internet Explorer 5 on Windows NT 4 works fine, but
 Netscape 4.7 on Windows NT 4 does not.
 
 Can this problem be solved through URL rewriting
 (by wrapping the link in encodeURL()"?
 
 Thanks,
 Puna
 
 
 
 



nsapi redirector for solaris

2000-12-12 Thread Mukul Sood

Hello All,

I am having problems with the netscape redirector shared object,
nsapi_redirector.so
I have Netscape Enterprise Server 3.6 and Tomcat 3.1 on Solaris 2.7
I was able to compile the redirector, nsapi_redirector.so
However, after modifying netscape's obj.conf for tomcat redirection, am not
able to start netscape server.
I get this message "In jk_init" and then netscape server exits.
If someone has got netscape-tomcat working on Solaris, could you please send
me your nsapi_redirector.so
Also do I need to do any setup outside of what's given in the
netscape-howto.
Would greatly appreciate any response.

Thanks.

Mukul



Apache SOAP 2.0 w/Tomcat 3.2

2000-12-12 Thread Shahed Ali



Hi,

I know that this must have come up before, but can any one 
tell me if 
I can safely run Tomcat 3.2 with Apache SOAP 2.0 (latest 
version)

I remember postings in the dev list talking about class loader 
problems 
when it came to loading the XML parsing classes used by Tomcat 
Vs Apache Soap.

Is there something that I need to look at, or is the 
installation pretty straight forward ?

Thanks
Shahed


RE: Apache SOAP 2.0 w/Tomcat 3.2

2000-12-12 Thread Steven Newton

 I know that this must have come up before, but can any one tell me if 
 I can safely run Tomcat 3.2 with Apache SOAP 2.0 (latest version)

Yes it works just fine, at least as far as running the demos included with
the distribution.

s


  



2 Configuration Issues

2000-12-12 Thread Jason Heddings

Hello Folks-

I hope that I'm not asking a question that's been asked a bunch of times
before, but here goes:

Small background:
I'm trying to run tomcat along with apache.  I have apache v1.3.14 and
tomcat v3.2.  I'm using the jk module for the layer, not jserv.

On startup:
I get a BindException which says that the address is already in use.  I
assume that this is referring to port 8007 (my ajpv12 port).  I have
rebooted the machine to make sure that this does not happen.  I have a
shell script which first starts tomcat then apache.

On shutdown:
It appears that the port is never released.  When running the shutdown.sh
script, I get a NullPointerException and it ignores signal 15 (the kill
signal?).

Sorry for the lengthy email, but I wanted to give as much detail as
possible.  I'm not on this alias, so please reply to me directly...

Many thanks,
--Jason



Jason Heddings
[EMAIL PROTECTED]
http://jason.heddings.com







Reloadable property for more than one servlet instances

2000-12-12 Thread Selvaraj N

Hi,
This is regarding the problem with relodable property that is set for an
application.
Problem:

* In server.xml, the application's (toms) context has been defined with
relodable="true".
Context path="/toms" 
 docBase="webapps/toms"
 reloadable="true"  
/Context
* In web.xml, one servlet has been mapped to two servlet-names and the
two servlet-names have been accessed using two different url-patterns.
servlet
servlet-namecounter/servlet-name
servlet-classcounter.SimpleCounter/servlet-class
/servlet

servlet-mapping
servlet-namecounter/servlet-name
url-pattern/counter.selva/url-pattern
/servlet-mapping

servlet
servlet-namecounter2/servlet-name
servlet-classcounter.SimpleCounter/servlet-class
/servlet

servlet-mapping
servlet-namecounter2/servlet-name
url-pattern/counter_2.selva/url-pattern
/servlet-mapping

* Now, the SimpleCounter.java has been modified while the serverengine
are up and running. If the servlet instance named "counter" is accessed,
it is reflecting the modifications in the java source. I mean new
instance has been created. This is fine. But, when the servlet instance
named "counter2" is accessed, it DOESN'T reflect the modifications in
the java source. I think that there is no new instance created after the
class has been reloaded after the modification.

* Is the "relodable" property applies for all the servlet instances in
the application or what could be the problem?

* This application has been tested on NT platform.

* Can any one help to get rid of this problem?

Thanks in advance,
Selva



RE: a great problem with tomcat in linux whit the system memory

2000-12-12 Thread David Thompson

In sun's VM you can control this by modifying the maximum heap size for the
VM  with -Xmx256M for 256 megabytes. Then, your VM garbage collector will be
forced to free it up. Of course, if there is actually a memory problem with
dangling object references you will eventually get out of memory runtime
exceptions in Java.
dt


-Original Message-
From: Stubenrauch,Andreas [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 3:21 AM
To: '[EMAIL PROTECTED]'
Subject: RE: a great problem with tomcat in linux whit the system memory


This is the standard linux behaviour. If any application claims memory it is
taken from the free-pages. If the memory is not in use anymore it is not put
back to the amount of free memory (even if the application is shutdown).
Instead it is chached and freed on demand.

So don't worry here

Regards,
Andreas

 -Original Message-
 From: Carlos [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 12, 2000 9:33 AM
 To: [EMAIL PROTECTED]
 Subject: a great problem with tomcat in linux whit the system memory
 
 
 Hello.
 If i restyart my system and i run the command free the system 
 free memory is
 200MB.
 If my jakarta (in linux) is running several days the sysmten 
 memory goes
 down, if the jsp pages are used. The problem is that the 
 memory goes down
 and it not does up, only restarting the system.
 How can i resolv this problem?
 thanks
 Carlos
 



How to role your own Security/RequestInterceptor? (SimpleRealm::authorize() question)

2000-12-12 Thread Mike La Budde

Please note: I'm using Tomcat 3.2

1) I'm interested in creating my own RequestInterceptor for security 
purposes. Using SimpleRealm as a base/model, it is clear that I must 
implement at least the following two functions:

 public int authenticate( Request req, Response response )
 public int authorize( Request req, Response response, String roles[] )

The authenticate() is clear, since it simply calls req.setRemoteUser( user );

However, I'm a little confused by the behavior of the authorize() function. 
It returns a 401 when the user is not authorized (which is fine) but it 
returns a 0 if the user is authorized. How come it doesn't return a 200?? 
Here's part of the RequestInterceptor interface:

 /**
  *  Will check if the current ( authenticated ) user is authorized
  *  to access a resource, by checking if it have one of the
  *  required roles.
  *
  *  This is used by tomcat to delegate the authorization to modules.
  *  The authorize is called by isUserInRole() and by ContextManager
  *  if the request have security constraints.
  *
  *  @returns 0 if the module can't take a decision
  *   401 If the user is not authorized ( doesn't have
  *   any of the required roles )
  *   200 If the user have the right roles. No further module
  *   will be called.
  */
 public int authorize(Request request, Response response,
  String reqRoles[]);

2) Is there an easier/better method for implementing your own security 
mechanism into Tomcat?

3) What are other people doing to implement security?

4) I'm assuming that anything I do for this will _NOT_ be portable (at 
least not without some effort) to a different JSP/Servlet engine. Any 
thoughts, comments, experience with this?

TIA,

Mike

PS: The misspelling (role) in the subject was intentional ;-) Any others r 
juste my dum misteaks...

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - - - - - - - - - - - - - - - */
  Michael H. La Buddeemail:  [EMAIL PROTECTED]
  Prosoft, Inc.  phone:  414-860-6509
  [EMAIL PROTECTED]   fax:414-860-7014
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - - - - - - - - - - - - - - - */




RE: Question about Linux install of Tomcat 3.2 (is there an RPM y et)

2000-12-12 Thread David Thompson

I do not have SSL working yet but it need eventually.
I am using Sun's jdk 1.3.
And, thanks for the RPM's. I have not tried it yet but it looks like a
breeze. At first, I was like "how do I know that is is ok?" and everyone
seems to know your stuff (except a newbie like me who does JWS on NT by day
and am just trying out linux/apache/tomcat by night).
take care,
dt

-Original Message-
From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 1:49 AM
To: [EMAIL PROTECTED]
Subject: RE: Question about Linux install of Tomcat 3.2 (is there an RPM
y et)


I am a linux newbie so this might be a stupid question but...
I have linux 6.2 installed (using Redhat).
I have Apache 1.3.14 running well.

With mod_ssl ?

I have JDK 1.3 installed and working.

IBM or SUN ?

Now to get to where I want to be, I want to get Tomcat 3.2 running with
Apache. There are no RPM's for it as of last night (at least not at
redhat.com) and I do not want to mess with the older version. 
Can I install
the unix tars from apache.org on my system without building it 
myself? 

My RPMs do all the jobs. You can even rebuild them if you like.

would assume there are system specific things that would 
require a rebuild
but I really do not want to deal with that right now. How long does it
normally take to get RPMs on redhat.com for something like this?
Any advice would be appreciated.
thanks,

Often RPMs start their life as contributed RPMS.
If there is a demande Redhat could incorporate them in main
distribution or add them to the powertools.

They allready do that for many of my contrib RPMs



RE: Sessions and absolute URLs

2000-12-12 Thread Bryan Basham


 OK - I'll try that. Excuse the lack of knowledge,
 but is it possible to access a bean from a servlet
 (not a jsp)?

There is a rough equivalence between JSP bean "scopes" and servlet code:

  * jsp:useBean id="name" class="..." scope="page"/
servlet equiv. is a local variable in the doXyz (e.g. doGet) method

  * jsp:useBean id="name" class="..." scope="request"/
class name = (class) request.getAttribute("name")

  * jsp:useBean id="name" class="..." scope="session"/
HttpSession session = request.getSession();
class name = (class) session.getAttribute("name")

  * jsp:useBean id="name" class="..." scope="application"/
ServletContext context = getServletContext();
class name = (class) context.getAttribute("name")

You can set the bean in a servlet by using an equivalent setAttribute
method (except for "page" scope).  This allows servlets to set beans
that are then may be used by JSP pages.

-Bryan




Servlet init parameters

2000-12-12 Thread Yin Tse

Hi all,
I'm having some problems reading my init parameters.
I define the init parameters in the web.xml file like this :


   servlet
servlet-namelogin/servlet-name
servlet-classLoginServlet/servlet-class
init-param

param-namelogin/param-name
param-valuejoe/param-value   

param-name password/param-name
param-valuepass/param-value  

param-namedriverName/param-name
param-valueoracle.jdbc.driver.OracleDriver/param-value

param-name connectionUrl/param-name
param-valuejdbc:oracle:thin:@xena:1521:wbdb/param-value 

param-nameurl/param-name
param-valuewww.whatever.com/param-value

param-nameBase_url/param-name
param-valuehttp://intranet/whateber//param-value

param-nameImages_url/param-name
param-valuehttp://intranet/whatever/images/param-value  




param-nameServlet_url/param-name
param-value/servlet//param-value

   
/init-param
/servlet

These are defined in the LoginServlet, but the parameters are read in a
parent servlet called DBConnectionServlet,
but all the params are coming null except the last one which is servlet_url
here. Thanks for the feedback.



RE: 2 Configuration Issues

2000-12-12 Thread CPC Livelink Admin


The kill signal is 9, so 'kill -9 Your Java PID' will kill tomcat.

TO find out what ports are being used and by whom, use 'netstat -a'. grep
can also be useful for that command.

-Original Message-
From: Jason Heddings [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 04:58 PM
To: [EMAIL PROTECTED]
Subject: 2 Configuration Issues


Hello Folks-

I hope that I'm not asking a question that's been asked a bunch of times
before, but here goes:

Small background:
I'm trying to run tomcat along with apache.  I have apache v1.3.14 and
tomcat v3.2.  I'm using the jk module for the layer, not jserv.

On startup:
I get a BindException which says that the address is already in use.  I
assume that this is referring to port 8007 (my ajpv12 port).  I have
rebooted the machine to make sure that this does not happen.  I have a
shell script which first starts tomcat then apache.

On shutdown:
It appears that the port is never released.  When running the shutdown.sh
script, I get a NullPointerException and it ignores signal 15 (the kill
signal?).

Sorry for the lengthy email, but I wanted to give as much detail as
possible.  I'm not on this alias, so please reply to me directly...

Many thanks,
--Jason



Jason Heddings
[EMAIL PROTECTED]
http://jason.heddings.com








TOMCAT+IIS5

2000-12-12 Thread Gilles Hooghe

I've tried with all your instructions to install the Tomcat(jakarta)
javaserver to work with IIS5 (with the isapi filter). I've created the
virtual directory and the filter but when I execute the jsp page, only the
pure html in the page appears into the browser, not the html output from
this jsp.

Could you help me ??



___
Gilles Hooghe
[EMAIL PROTECTED]
+32 475 93 77 69





mod_rewrite + tomcat

2000-12-12 Thread Brendan O'Bra



Sorry if this has already appeared in the 
past...

Has anyone had any luck getting tomcat (any 
version) to work behind an apache 1.3.12mod_rewrite box? Tomcat seems to 
ignore the rewritten URL,return a path relatice to the box that it is running 
on, making it hard for clients on the other side of the rewrite/firewall box to 
POST back to the tomcat box. 
Thanks!
Brendan


RequestDispatcher.include() appears to do nothing.

2000-12-12 Thread David Mulligan

I am a Java developer who is somewhat new to web development.  I have just
installed Tomcat 3.2 and have been playing with servlets for a few days now
and I have come up against a problem trying to call a servlet from another
servlet.  
As far as I can tell I am supposed to get a RequestDispatcher object from
context using the path to my second servlet from the root of the context
then call include( request, response ).  My second servlet is not adding
anything to the page.  

I've tried using the getRequestDispatcher() method in request as well as
context.  I have tried accessing Test2 directly and I do see it.  What might
I be doing wrong?  

The code I am using to test this is as follows: 

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

public class Test extends HttpServlet {
public void doGet( HttpServletRequest request, 
HttpServletResponse response ) 
throws IOException, ServletException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println( "htmlbody" );
out.println( "before includebr" );
getServletContext().getRequestDispatcher("/Test2").include( request,
response );
out.println( "after includebr" );
out.println( "/body/html" );
}
}

/* and */

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

public class Test2 extends HttpServlet {
public void doGet( HttpServletRequest request, 
HttpServletResponse response ) 
throws IOException, ServletException {
PrintWriter out = response.getWriter();
out.println( "bthis is the include/b" );
}
}




Servlet init parameters problems

2000-12-12 Thread Yin Tse


Hi all,
I'm having some problems reading my init parameters.
I define the init parameters in the web.xml file like this :


   servlet
servlet-namelogin/servlet-name
servlet-classLoginServlet/servlet-class
init-param

param-namelogin/param-name
param-valuejoe/param-value   

param-name password/param-name
param-valuepass/param-value  

param-namedriverName/param-name
param-valueoracle.jdbc.driver.OracleDriver/param-value

param-name connectionUrl/param-name
param-valuejdbc:oracle:thin:@xena:1521:wbdb/param-value 

param-nameurl/param-name
param-valuewww.whatever.com/param-value

param-nameBase_url/param-name
param-valuehttp://intranet/whateber//param-value

param-nameImages_url/param-name
param-valuehttp://intranet/whatever/images/param-value  




param-nameServlet_url/param-name
param-value/servlet//param-value

   
/init-param
/servlet

These are defined in the LoginServlet, but the parameters are read in a
parent servlet called DBConnectionServlet,
but all the params are coming null except the last one which is servlet_url
here.If I change the order and put the login init param at the bottom,
that's the param which will be read and all others come up null. Does anyone
know why ? Thanks for the feedback.







Re: Question about Linux install of Tomcat 3.2 (is there an RPM y et)

2000-12-12 Thread Filip Hanik

Line by line instructions on how to install Apache with Open SSL and mod_ssl
download the packages from apache.org, mod-ssl.org, openssl.org

this script has to hard coded things
--prefix and the setenv SSL_BASE

gunzip apache_1.3.12.tar.gz
tar -xvf apache_1.3.12.tar

gunzip openssl-0.9.5a.tar.gz
tar -xvf openssl-0.9.5a.tar.gz

gunzip mod_ssl-2.6.6-1.3.12.tar.gz
tar -xvf mod_ssl-2.6.6-1.3.12.tar

cd apache_1.3.12
./configure --prefix=/home/pakana/apache

cd ../openssl-0.9.5a
./config --prefix=/home/pakana/ssl
make
make test
make install

cd ../mod_ssl-2.6.6-1.3.12
./configure --with-apache=../apache_1.3.12

cd ../apache_1.3.12
setenv SSL_BASE ../openssl-0.9.5a

./configure \
--enable-module=ssl \
--enable-module=proxy \
--enable-shared=proxy \
--enable-module=rewrite \
--enable-shared=rewrite \
--prefix=/home/pakana/apache \
--enable-shared=ssl \
--enable-rule=SHARED_CORE \
--enable-rule=SHARED_CHAIN \
--enable-module=so

make

make certificate TYPE=test

make install



- Original Message -
From: "David Thompson" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 12, 2000 2:21 PM
Subject: RE: Question about Linux install of Tomcat 3.2 (is there an RPM y
et)


I do not have SSL working yet but it need eventually.
I am using Sun's jdk 1.3.
And, thanks for the RPM's. I have not tried it yet but it looks like a
breeze. At first, I was like "how do I know that is is ok?" and everyone
seems to know your stuff (except a newbie like me who does JWS on NT by day
and am just trying out linux/apache/tomcat by night).
take care,
dt

-Original Message-
From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 1:49 AM
To: [EMAIL PROTECTED]
Subject: RE: Question about Linux install of Tomcat 3.2 (is there an RPM
y et)


I am a linux newbie so this might be a stupid question but...
I have linux 6.2 installed (using Redhat).
I have Apache 1.3.14 running well.

With mod_ssl ?

I have JDK 1.3 installed and working.

IBM or SUN ?

Now to get to where I want to be, I want to get Tomcat 3.2 running with
Apache. There are no RPM's for it as of last night (at least not at
redhat.com) and I do not want to mess with the older version.
Can I install
the unix tars from apache.org on my system without building it
myself?

My RPMs do all the jobs. You can even rebuild them if you like.

would assume there are system specific things that would
require a rebuild
but I really do not want to deal with that right now. How long does it
normally take to get RPMs on redhat.com for something like this?
Any advice would be appreciated.
thanks,

Often RPMs start their life as contributed RPMS.
If there is a demande Redhat could incorporate them in main
distribution or add them to the powertools.

They allready do that for many of my contrib RPMs




Multi part stream error with 3.2 final - Any solutions?

2000-12-12 Thread jokozlow
Title: Multi part stream error with 3.2 final - Any solutions?





I read in the bug database that some one reported the multi part stream error with Tomcat 3.2 final. Does any one know of a quick fix for 3.2 final to make multi part streams work?

(I just recently joined this list, so I apologize if this question has been asked before.)


Best Regards,


Joel Kozlow



At 15:05 12/12/00 -0300, you wrote:
Hi everybody and Joe!
I am trying to use the oreilly's package for multipart/form-data streams.
But I didnt find any 
method to deal with input text field which comes ( mixed ) with the uploaded
file from my form. Any hint?
Best Regards,
 
 José Euclides Júnior





RE: Servlet init parameters problems

2000-12-12 Thread David Mulligan

You have to put ini-param tags around each parameter.  If you do this and
call the servlet as named in the servlet-name tag, as opposed to
servlet-class it should work.

Hope this helps.

-Original Message-
From: Yin Tse [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 6:18 PM
To: '[EMAIL PROTECTED]'
Subject: Servlet init parameters problems



Hi all,
I'm having some problems reading my init parameters.
I define the init parameters in the web.xml file like this :


   servlet
servlet-namelogin/servlet-name
servlet-classLoginServlet/servlet-class
init-param

param-namelogin/param-name
param-valuejoe/param-value   

param-name password/param-name
param-valuepass/param-value  

param-namedriverName/param-name
param-valueoracle.jdbc.driver.OracleDriver/param-value

param-name connectionUrl/param-name
param-valuejdbc:oracle:thin:@xena:1521:wbdb/param-value 

param-nameurl/param-name
param-valuewww.whatever.com/param-value

param-nameBase_url/param-name
param-valuehttp://intranet/whateber//param-value

param-nameImages_url/param-name
param-valuehttp://intranet/whatever/images/param-value  




param-nameServlet_url/param-name
param-value/servlet//param-value

   
/init-param
/servlet

These are defined in the LoginServlet, but the parameters are read in a
parent servlet called DBConnectionServlet,
but all the params are coming null except the last one which is servlet_url
here.If I change the order and put the login init param at the bottom,
that's the param which will be read and all others come up null. Does anyone
know why ? Thanks for the feedback.






Tomcat 4.0 milestone 4 and jsp:expression tag

2000-12-12 Thread Patrick McFarlane


Hello,

 I'm trying to use Tomcat 4.0 milestone 4 to take advantage of it's support
for XML compliant JSP tags. I understand from the New Spec document that
this functionality is not complete (medium rare if I recall). To that
effect, I've noticed some strange behavior when evaluating jsp:expression
tags. It seems that if the jsp:expression tag is embedded in an attribute,
(i.e. input
value="jsp:expressionTestBean.getTestString()/jsp:expression" width=35
height=1/ ) then the jsp:expression tag is not recognized. I'm not sure if
this is a known issue/bug or some sort of user error. I've attached some
samples of the behavior I'm describing. There is attached a bean called
TestBean, a jsp page called TestJsp.jsp which uses the non XML convention
(% %) and works properly and a jsp page called TextXMLJsp.jsp which uses
the XML compliant jsp:expression syntax and does not behave properly.

Thanks in advance for looking at this...

patrick

patrick mcfarlane
sr. java engineer 
lendx
[EMAIL PROTECTED]




RE: Servlet init parameters problems

2000-12-12 Thread Yin Tse

Here's the code I use to read the the init parameters : 


logFile = config.getServletContext().getInitParameter("logFile");
System.out.println("LogFile: " + logFile);  
driverName = config.getInitParameter("driverName");
System.out.println("driverName: " + driverName);
connectionUrl =
config.getInitParameter("connectionUrl");
System.out.println("connectionUrl: " + connectionUrl);  
login = config.getInitParameter("login");
System.out.println("login: " + login);  
password = config.getInitParameter("password");
System.out.println("password: " + password);

base_url=config.getInitParameter("Base_url");
System.out.println("base_url= "+base_url);

images_url=config.getInitParameter("Images_url");
System.out.println("images_url =" + images_url);

valicert_url=config.getInitParameter("url");
System.out.println("url= "+url);

servlet_url=config.getInitParameter("Servlet_url");
System.out.println("servlet_url= "+servlet_url);


Thanks.
-Original Message-
From: Yin Tse [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 3:18 PM
To: '[EMAIL PROTECTED]'
Subject: Servlet init parameters problems



Hi all,
I'm having some problems reading my init parameters.
I define the init parameters in the web.xml file like this :


   servlet
servlet-namelogin/servlet-name
servlet-classLoginServlet/servlet-class
init-param

param-namelogin/param-name
param-valuejoe/param-value   

param-name password/param-name
param-valuepass/param-value  

param-namedriverName/param-name
param-valueoracle.jdbc.driver.OracleDriver/param-value

param-name connectionUrl/param-name
param-valuejdbc:oracle:thin:@xena:1521:wbdb/param-value 

param-nameurl/param-name
param-valuewww.whatever.com/param-value

param-nameBase_url/param-name
param-valuehttp://intranet/whateber//param-value

param-nameImages_url/param-name
param-valuehttp://intranet/whatever/images/param-value  




param-nameServlet_url/param-name
param-value/servlet//param-value

   
/init-param
/servlet

These are defined in the LoginServlet, but the parameters are read in a
parent servlet called DBConnectionServlet,
but all the params are coming null except the last one which is servlet_url
here.If I change the order and put the login init param at the bottom,
that's the param which will be read and all others come up null. Does anyone
know why ? Thanks for the feedback.






RE: Servlet init parameters problems

2000-12-12 Thread Yin Tse

Thanks david, it works great. :-)

-Original Message-
From: David Mulligan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 3:35 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Servlet init parameters problems


You have to put ini-param tags around each parameter.  If you do this and
call the servlet as named in the servlet-name tag, as opposed to
servlet-class it should work.

Hope this helps.

-Original Message-
From: Yin Tse [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 6:18 PM
To: '[EMAIL PROTECTED]'
Subject: Servlet init parameters problems



Hi all,
I'm having some problems reading my init parameters.
I define the init parameters in the web.xml file like this :


   servlet
servlet-namelogin/servlet-name
servlet-classLoginServlet/servlet-class
init-param

param-namelogin/param-name
param-valuejoe/param-value   

param-name password/param-name
param-valuepass/param-value  

param-namedriverName/param-name
param-valueoracle.jdbc.driver.OracleDriver/param-value

param-name connectionUrl/param-name
param-valuejdbc:oracle:thin:@xena:1521:wbdb/param-value 

param-nameurl/param-name
param-valuewww.whatever.com/param-value

param-nameBase_url/param-name
param-valuehttp://intranet/whateber//param-value

param-nameImages_url/param-name
param-valuehttp://intranet/whatever/images/param-value  




param-nameServlet_url/param-name
param-value/servlet//param-value

   
/init-param
/servlet

These are defined in the LoginServlet, but the parameters are read in a
parent servlet called DBConnectionServlet,
but all the params are coming null except the last one which is servlet_url
here.If I change the order and put the login init param at the bottom,
that's the param which will be read and all others come up null. Does anyone
know why ? Thanks for the feedback.





Re: Multiple GETs on an SSLSocket

2000-12-12 Thread Craig R. McClanahan

[EMAIL PROTECTED] wrote:

 Chunking is a transfer encoding, introduced in HTTP 1.1.  In 1.0, the
 server can set a header, at the start of the stream like:

 Content-length: 400\r\n
 \r\n
 400 bytes of content 

 Meaning 400 bytes in the body. The problem with this is that the server
 needs to know, at the start of the transfer how big the content is going to
 be, with static files this is OK, but with dynamic content, it means that
 the server would have to generate all content, work out the size of the
 buffer, and then send it. In 1.1 to avoid this, a new header:

 Transfer-encoding: chunked\r\n
 \r\n
 200\r\n
 ... 0x200 bytes of content ...
 023\r\n
 ... 0x023 bytes of content 
 \r\n
 extra headers...!\r\n
 \r\n

 (may have got some of the new lines missing.. it's a while since i did
 this)
 is used, this allows the content to be streamed in "chunks".

 If you want chunked output, try using a HTTP 1.1 GET request.


Just as a note, if you are running under an HTTP/1.1 server (such as Apache, or
Tomcat 4.0 in stand-alone mode), the server takes care of all this for you from
the server out to the client.


 Ken.


Craig McClanahan





How to precompile jsp

2000-12-12 Thread Joan Xiao

Hi all,

I've been trying to use jspc to precompile the jsp pages into java classes.
Below is the steps
I've taken:

1. run jspc and generate the java code and web.xml
2. insert the web.xml generated in step1 into my web.xml.
3. compile the java files into class files.
   Now I have problem with where to put the class files. Should they be
under the web-inf\classes
   or the work\ directory? I put them under web-inf\classes. And I have the
classes preserve
   the package/directory structure.
4. restart Tomcat.

Result: the jsp pages under the first level directory are not re-compiled by
Tomcat, but those
under the 2nd level directory are re-compiled. For example, suppose I have
the following directory structure:
webapps
+ registration
+ enroll
+ web-inf
+ classes

The jsps under registration/ are not recompiled, but those under
registration/enroll are re-compiled by Tomcat, as I can see the java/class
files in the work/ directory.

How can I make it work? Do I have to put the classes files under work/ and
name them the same
way Tomcat names them?

Thanks for any help.

Joan 



  1   2   >