RE: Tomcat Servlets bringing down Win2000 Server

2001-05-25 Thread Joel Kozlow

Hmm... your problem really sounds code specific, not like a Tomcat issue.
As a matter of fact, I have Win2K servers with IIS5 and Tomcat 3.2.1 running
servlets that produce XML also.  Some of my servlets return thousands of
nodes as well.  All of them run just fine.

In order to help you, we really need to know exactly at what point your code
gets hung.  For example, does your servlet crash while writing to the
outputStream?  If so, what are you writing, and how much data is already
committed?  Is your servlet throwing any exceptions that might be trapped
and inadvertently silenced?  Thus, you need to provide more information.

However, here are a few suggestions that might help you with your debugging
effort:

* Don't forget to call response.setContentType(text/html);

* As soon as you call response.setContentType(text/html);, you have
committed your output stream.  This is a point of confusion for a lot of
people.  Thus, don't call this function until you are ready to write other
output. 

* Since you are only writing text, try using a PrintWriter instead of just
an outputStream.

* Be sure to Flush the outputStream regularly

* If you are not using an XML parser to write your output, don't forget to
escape the XML tags.  For example '' needs to be escaped to amp;, and
other characters such as '', '', \, etc need to be escaped as well.

I hope this helps,

- Joel

-Original Message-
From: Jon Gibbs-Smith [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 24, 2001 8:00 AM
To: Tomcat-User
Subject: Tomcat Servlets bringing down Win2000 Server


Sorry sent in html earlier -

We have been running a system of Servlets for some years on both Unix and
NT4 platforms.  I recently installed Tomcat 3.2.1 on a Win2000 server
running IIS5.  All appeared fine both on port 8080 and using the
isapi_redirect and reading/writing to the sql 2000 database.

BUT  servlets producing xml cause the server to go into freefall. CPU usage
goes off the scale for about 5 minutes and on several occasions it has died
completely.

I have tried Sun JRE 1.2.2 and IBM JRE 1.3  both with similar results.

Any ideas / similar experiences anyone

Thanks

Jon GS


 -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
 Jon Gibbs-Smith
 Weft Technology Ltd.http://www.weft.co.uk
 tel: 01556 502497mobile: 07968 524239




sub:How to use servlets javaBean in Tomcat ?

2001-05-25 Thread skkanth


Hi guys !!

Can someboby explain 1) how to register servlets  where to put servlet in
tomcat.Any other setting is required ?
2) what is the difference between tomcat 3.2.1  tomcat 3.1 ?

Thanks !!
(s.k.kanth)

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.252 / Virus Database: 125 - Release Date: 5/9/99


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




Re: sub:How to use servlets javaBean in Tomcat ?

2001-05-25 Thread Mr.Y.SHIVAKANT


-Original Message-
From: skkanth [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Friday, May 25, 2001 12:37 PM
Subject: sub:How to use servlets  javaBean in Tomcat ?



Hi guys !!

Can someboby explain 1) how to register servlets  where to put servlet in
tomcat.Any other setting is required ?
2) what is the difference between tomcat 3.2.1  tomcat 3.1 ?

Thanks !!
(s.k.kanth)

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.252 / Virus Database: 125 - Release Date: 5/9/99



_

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com


can you help me with the port argument being null

Shivakanth




RE: Tomcat Servlets bringing down Win2000 Server

2001-05-25 Thread Jon Gibbs-Smith

Thanks for the thoughts which I'll pass on to the coder.  My role is
deployment and the thing that gets me is that this exact code has been
working for years on various varieties of Unix without problem and for more
for six months on NT4.  What is in Win2000 which could make a difference.

However I may be making some progress in that I did get something similar
from a different stable to run last night, which gives me a chance to narrow
down the problem area.  I just wish I knew why the change of operating
system could be having such an effect!

Cheers  Jon

-Original Message-
From: Joel Kozlow [mailto:[EMAIL PROTECTED]]
Sent: 24 May 2001 17:49
To: '[EMAIL PROTECTED]'
Subject: RE: Tomcat Servlets bringing down Win2000 Server

Hmm... your problem really sounds code specific, not like a Tomcat issue.
As a matter of fact, I have Win2K servers with IIS5 and Tomcat 3.2.1 running
servlets that produce XML also.  Some of my servlets return thousands of
nodes as well.  All of them run just fine.

In order to help you, we really need to know exactly at what point your code
gets hung.  For example, does your servlet crash while writing to the
outputStream?  If so, what are you writing, and how much data is already
committed?  Is your servlet throwing any exceptions that might be trapped
and inadvertently silenced?  Thus, you need to provide more information.

However, here are a few suggestions that might help you with your debugging
effort:

* Don't forget to call response.setContentType(text/html);

* As soon as you call response.setContentType(text/html);, you have
committed your output stream.  This is a point of confusion for a lot of
people.  Thus, don't call this function until you are ready to write other
output.

* Since you are only writing text, try using a PrintWriter instead of just
an outputStream.

* Be sure to Flush the outputStream regularly

* If you are not using an XML parser to write your output, don't forget to
escape the XML tags.  For example '' needs to be escaped to amp;, and
other characters such as '', '', \, etc need to be escaped as well.

I hope this helps,

- Joel

-Original Message-
From: Jon Gibbs-Smith [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 24, 2001 8:00 AM
To: Tomcat-User
Subject: Tomcat Servlets bringing down Win2000 Server


Sorry sent in html earlier -

We have been running a system of Servlets for some years on both Unix and
NT4 platforms.  I recently installed Tomcat 3.2.1 on a Win2000 server
running IIS5.  All appeared fine both on port 8080 and using the
isapi_redirect and reading/writing to the sql 2000 database.

BUT  servlets producing xml cause the server to go into freefall. CPU usage
goes off the scale for about 5 minutes and on several occasions it has died
completely.

I have tried Sun JRE 1.2.2 and IBM JRE 1.3  both with similar results.

Any ideas / similar experiences anyone

Thanks

Jon GS





RE: 2 forwards, HttpSession gone

2001-05-25 Thread SAMEUNIE


Well, i had exactly the same problem !!!
I have traced, the id the client browser :
at the first request, the id of the client has the value of the last
session, and the third servlet looses the session.
If the id of the client is  null before the first request, everythiong works
fine.
If you look at the second request, you'll see that both id are the same and
there is no problem.
So, i have reduce the time of the maxInactiveInterval and i do not have
problem any more.

I know it's not a solution, but ...
We'll see later if somebody  has the solution !!!

Sorry


 -Message d'origine-
 De:   Allen Hopkins [SMTP:[EMAIL PROTECTED]]
 Date: vendredi 25 mai 2001 02:27
 À:[EMAIL PROTECTED]
 Objet:2 forwards, HttpSession gone
 
 I have a problem that I've cooked down to a simple test scenario:
 A servlet (call it servlet_1) gets an HttpSession and sets an
 attribute in it:
 
 req.getSession().setAttribute(new String(Boo!));
 
 It then forwards to another servlet, servlet_2, which in turn
 forwards to another servlet, servlet_3.
 
 The attribute set in servlet_1 is nowhere to be found in the
 HttpSession that servlet_3 gets from req.getSession().  And,
 servlet_3's session has a different ID from the one in the
 previous two servlets.
 
 servlet_2, however, was able to access the attribute from the session
 it got from req.getSession(), which had the same ID as the original
 in servlet_1.
 
 What happens to the HttpSession on that second forward?
 
 This happens:
 - under tomcat 3.2.1 apache 1.3.19, Solaris 2.8, Sun Ultra 60
 - when the servlet is first accessed after a server restart,
 - when the servlet is again accessed after the 30-minute
 session timeout.
 
 It doesn't happen (the session attribute is accessible from servlet_3):
 - all other times, i.e. the session has been created in a
 previous access of the servlet(s), less than 1/2 hour ago.
 
 Does this make sense to anybody?  Suggestions welcome.  Thanks.
 
 -Allen Hopkins
 Gigascale Silicon Research Center
 UC Berkeley



logging user session id in apache log files - mod_jk issue

2001-05-25 Thread David Cassidy (Programmer)
Title: logging user session id in apache log files - mod_jk issue





Guys,


Does anyone know if there is a better way then this :(below)


Has anyone made a new version of mod_jk that makes the 
session ID availiable.


I've had a look at the mod_jk source and it should be 
quite possible to make it do it - but why re-invent the 
wheel ?!


Thanks


David



 i03sv6043, i03sv0102 and i03sv0101
 From: kenneth topp 
 Subject: adding sessionId to apache logs
 Date: Mon, 13 Nov 2000 16:36:13 -0800 (PST)
 
 Well, I did it, and it was too easy.
 
 Adding a line in SessionInterceptor.beforeBody():
 
 response.addHeader(jsessid, (reqSessionId!=null) ? 
 reqSessionId : request.getRequestedSessionId() );
 
 
 And in httpd.conf:
 
 LogFormat %h %l %{jsessid}o %t \%r\ %s %b toppkcommon
 
 
 Wow... too simple... now I need the program to interprete the info
 ;)
 
 Thanks tomcat crew, thanks apache crew,
 
 Kenneth






RE: SSL support for Tomcat 3.2.1 with IIS

2001-05-25 Thread Svensson Stefan



Hi,

I have just tried out SSL with Windows 2000, IIS 5 and Tomcat 3.2.1
succesfully (at least partially).

As you are using IIS to serve http/https requests you are installing the
certificate and configure SSL in the IIS. It's very easy, just use the
Server Certificate Wizard to request and install a certificate (Properties,
Directory Security).

No configuration is required in Tomcat.

It seems that you can only set Require secure channel (edit button on the
Directory Security tab), to allow only https access, on root and virtual
directorys, i. e the whole web application. It doesn't work if you set in on
individual jsp-files or subdirectories (whats the difference compared to a
virtual directory, because the virtual directory corresponds to a context in
Tomcat or?!). It seems that the ISAPI filter processes the jsp-file before
IIS understand that it shouldn't be accesible through normal http.

But you can programmatically control this through checking with
request.isSecure() in your jsp-files if you for some reason don't whant
the whole web application to require https, just parts of it.

Best regards,
/Stefan Svensson


 Date: Mon, 21 May 2001 11:30:43 -0400
 To: tomcat-user [EMAIL PROTECTED]
 From: Hawkins, Keith (Keith) [EMAIL PROTECTED]
 Subject: SSL support for Tomcat 3.2.1 with IIS 
 Message-ID: 
[EMAIL PROTECTED]

 If one is deploying ISS + Tomcat 3.2.1,  what is required to
 support SSL connections via HTTPS?

 Is the configuration done in ISS,   Tomcat,  or both?

 Thanks,
 Keith



Re: lb-problem with mod_jk: high cpu load on apache when tomcat breaks down

2001-05-25 Thread Timo Carl

I'm still waiting for the same answer
as you do, for the high CPU request of mod_jk...

Yes, so I do.
I did not find any article or post about that problem. So I did not
check out mod_jserv. Before tomcat, we use jserv without problems. I
think, we will give mod_jserv a chance.

It seems to be a lifelock in mod_jk, because tomcat accepts the
connection, but is not able to reply. I think its that while-loop in
mod_jk:

static int ajpv12_handle_response(ajp12_endpoint_t *p,
  jk_ws_service_t *s,
  jk_logger_t *l)
{
while(1) {
unsigned to_read = READ_BUF_SIZE;
unsigned acc = 0;
char *buf = NULL;

if(!jk_sb_read(p-sb, buf, to_read, acc)) {
jk_log(l, JK_LOG_ERROR, ajpv12_handle_response, error
reading
 from \n); return JK_FALSE;
}

if(!acc) {
jk_log(l, JK_LOG_DEBUG, ajpv12_handle_response, response
body is
 done\n); break;
}

if(write_to_ws) {
if(!s-write(s, buf, acc)) {
jk_log(l, JK_LOG_ERROR, ajpv12_handle_response, error
 writing back to server\n); write_to_ws = JK_FALSE;HERE
}
}
}
---


what do you think?

Greetings,
Timo

Guido Medina wrote:
 
 Yesd, I had, I changed to mod_jserv, I'm still waiting for the same answer
 as you do, for the high CPU request of mod_jk...
 
 Guido.
 - Original Message -
 From: Timo Carl [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, May 23, 2001 10:37 AM
 Subject: lb-problem with mod_jk: high cpu load on apache when tomcat breaks
 down
 
  Hello tomcat-users,
 
  We are having a problem with mod_jk and load balancing.
  Does anyone else have had similar problems with that kind of
  architecture setup?
 
  Our System:
  ===
  Alteon switch (round robin)
  |
  |
  three Apache 1.3.19 on three SPARC-Servers (called s1,s2,s3)(3 CPU, 3
  GB)
  |
  |each:
  mod_jk with lb (in case of s1: 1*s1,0.001*s2,0.001*s3)
  |
  |
  |
  two tomcats-3.2.1 on each server (jdk1.2.2, native threads, -Xms50M
  -Xoss4M -Xss4M -Xmx600M)
 
  We chose this architecture because the alteon is not able to perform
  session tracking properly.
 
  The Problem:
  
  On startup, the system works fine. Each java-Process has about 1-8% CPU
  load.
  After one day or so, one tomcat takes 40% CPU load or more. I think the
  reason is inside our applications. But thats not the error I want to
  post:
 
  After the error of a tomcat, the httpd-processes on EACH Server begin to
  take a lot of CPU time (8-30% each).
  In server-status I can see that the processes are waiting for a response
  of that tomcat.
  Of course I want to have a fault tolerance, but when I have a problem
  with one server, the other servers go down too.
 
 
  Did/Does anyone have the same problem and/or a similar system
  architecture?
  Maybe anyone solved that problem?
 
  Greetings and thanks in advance,
  Timo Carl

-- 



Timo Carl
Technik  Programmierung

travelchannel GmbH
Kehrwieder 8
D-20457 Hamburg
Telefon +49/40/38617-275
Telefax +49/40/38617-330

http://www.travelchannel.de - das neue Reisen

begin:vcard 
n:Carl;Timo
tel;fax:++49/40/3703-7759
tel;work:++49/40/3703-7275
x-mozilla-html:FALSE
url:http://www.travelchannel.de
org:G+J travelchannel;Technik
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;Am Baumwall 11=0D=0AD-20459 Hamburg
fn:Timo Carl
end:vcard



Tomcat and SSL

2001-05-25 Thread François Andromaque



Hello,
I wonder if it's possible to configure Tomcat with 
SSL without using apache.
I have allready :

  activated SSL connector in server.xml with a port 
  value of 8443
  generated a SSL certificate with 
  openssl
  Added 
  security.provider.2=com.sun.net.ssl.internal.ssl.Provider to the 
  $JAVA_HOME/jre/lib/ext/java.security file
but i can'nt connectmy the server by 
requesting https://myhost:8443.
What have i to do to complete the configuration of 
tomcat?


RE: Tomcat and SSL

2001-05-25 Thread Pernica, Jan

you have to add your keys into
${user.home}/.keystore then it works fine

Regards

Jan

On Friday, May 25, 2001 11:46 AM, François Andromaque
[SMTP:[EMAIL PROTECTED]] wrote:
 Hello,
 I wonder if it's possible to configure Tomcat with SSL without using
apache.
 I have allready :
 
 activated SSL connector in server.xml with a port value of 8443
 generated a SSL certificate with openssl
 Added security.provider.2=com.sun.net.ssl.internal.ssl.Provider to the
$JAVA_HOME/jre/lib/ext/java.security file
 
 but i can'nt connect  my the server by requesting https://myhost:8443.
 What have i to do to complete the configuration of tomcat?


__
Tato komunikace je urcena vyhradne pro adresata a je duverna. 
This communication is intended solely for the addressee and is confidential.






Apache/Tomcat/SSL

2001-05-25 Thread Bhat, Mahesh



Hi

I have an Apache 
Server running under SSL. I have linked my Tomcat Server to it. Now I would like 
to refer to the SSL variables like SSL_CIPHER_USEKEYSIZE from my 
servlet code but don't know how to do it. 

Has anyone done 
that before ?

regards
mahesh


Important:

Internet communications are not necessarily secure and may be intercepted or changed after they are sent.
The Abbey National Group does not accept liability for any such changes. If you wish to confirm the origin or content of this communication, please contact the sender using an alternative means of communication.

This communication does not create or modify any contract.

If you are not the intended recipient of this communication you should destroy it without copying, disclosing or otherwise using its contents. Please notify the sender immediately of the error.

The Abbey National Group comprises Abbey National plc and its subsidiary group of companies.

Abbey National plc. Registered Office: Abbey House, Baker Street, London, NW1 6XL. Reg. No. 2294747.
Registered in England.



JAXP used by Tomcat 3.2.1

2001-05-25 Thread WEST, Peter

hello,

I'm using Tomcat 3.2.1 and need to know what version of JAXP it is using.
The release notes do not mention this, and I cant see it on various Jakarta
websites.
 
In the lib directory is jaxp.jar and parser.jar
Does anybody know what versions these are for Tomcat 3.2.1 ?
Thanks,

Pete



___
This email is confidential and intended solely for the use of the 
individual to whom it is addressed. Any views or opinions presented are 
solely those of the author and do not necessarily represent those of 
Sema. 
If you are not the intended recipient, be advised that you have received this
email in error and that any use, dissemination, forwarding, printing, or 
copying of this email is strictly prohibited.

If you have received this email in error please notify the Sema UK
Helpdesk by telephone on +44 (0) 121 627 5600.
___



Re: JAXP used by Tomcat 3.2.1

2001-05-25 Thread unplug

try to use 1.0.1.  It contains 2 jar files.

WEST, Peter wrote:
 
 hello,
 
 I'm using Tomcat 3.2.1 and need to know what version of JAXP it is using.
 The release notes do not mention this, and I cant see it on various Jakarta
 websites.
 
 In the lib directory is jaxp.jar and parser.jar
 Does anybody know what versions these are for Tomcat 3.2.1 ?
 Thanks,
 
 Pete
 
 ___
 This email is confidential and intended solely for the use of the
 individual to whom it is addressed. Any views or opinions presented are
 solely those of the author and do not necessarily represent those of
 Sema.
 If you are not the intended recipient, be advised that you have received this
 email in error and that any use, dissemination, forwarding, printing, or
 copying of this email is strictly prohibited.
 
 If you have received this email in error please notify the Sema UK
 Helpdesk by telephone on +44 (0) 121 627 5600.
 ___



RE: Tomcat and SSL

2001-05-25 Thread Rams

For Tomcat,
The cert. should be kept in keystote with alias 'tomcat'.
ls the keystore where ur cert present and the one u specified in server.xml
the same?
ls the password in server.xml and for the keystore the same?
whats the error u r getting?

Rams
CMCLtd
3000401 x 2162 (O)
6313447 (R)


-Original Message-
From: François Andromaque [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 25, 2001 3:35 PM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat and SSL


still done, i am the user root and the file .keystore is present in the root
directory
- Original Message -
From: Pernica, Jan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 25, 2001 11:49 AM
Subject: RE: Tomcat and SSL


 you have to add your keys into
 ${user.home}/.keystore then it works fine

 Regards

 Jan

 On Friday, May 25, 2001 11:46 AM, François Andromaque
 [SMTP:[EMAIL PROTECTED]] wrote:
  Hello,
  I wonder if it's possible to configure Tomcat with SSL without using
 apache.
  I have allready :
 
  activated SSL connector in server.xml with a port value of 8443
  generated a SSL certificate with openssl
  Added security.provider.2=com.sun.net.ssl.internal.ssl.Provider to the
 $JAVA_HOME/jre/lib/ext/java.security file
 
  but i can'nt connect  my the server by requesting https://myhost:8443.
  What have i to do to complete the configuration of tomcat?


 __
 Tato komunikace je urcena vyhradne pro adresata a je duverna.
 This communication is intended solely for the addressee and is
confidential.






java.lang.OutOfMemoryError

2001-05-25 Thread Shailesh R Sah

hi,
i am giving details as follows of my site and problem

Server configuration :  

HardWare:
Pentium 800 MHz.
512 MB RAM
18 GB Hard Disk
Global line server.


Software Loaded: 
Red Had linux 6.2
Jdk1.2.2 for linux
Jakarta-tomcat-3.2.1

A Seperate Server is there for Oracle.

Total No. of JSPs on the server:
500Jsps

Services Running:
Apache, jakarta-tomcat

Swap space:
2GB

From the Last 2-3 weeks
1) The Tomcat is getting  killed automatically. This is happening more
frequently sometimes 4 

times a day .The tomcat has to be started manually. The tomcat server is
showing an error of out 

of memory(java.lang.OutOfMemoryError).Reports are attached in this
document.


2) The top service is not running. .

3)Swap memory is 2GB


What might be the possible possible reason???
Is it that the tomcat cannot handle 500-600 Jsps??

Kindly help out as the website is business critical.
(See below for error details)

As the problem is occuring daily.I am drawing a lot of flak at office as
being a staunch 

supporter of open source and collabarative s/w movement i went for
linux/tomcat combination.
And now my decision is being questioned.Can u tell me of any source on the
basis of which i can 

present the case of linux/tomcat combination or sites using lots of
jsps(500-600)
  



I am giving below the error coming in the tomcat console.

java.lang.OutOfMemoryError:
at java.io.InputStreamReader.init(InputStreamReader.java:86)
at java.io.InputStreamReader.init(InputStreamReader.java:55)
at java.io.FileReader.init(FileReader.java:35)
at
_0002findex_0002ejspindex_jsp_3._jspService(_0002findex_0002ejspindex
_jsp_3.java:634)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspSer
vlet.java:174)
at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:2
61)
at
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.ja
va:503)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559
)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processCon
nection(Ajp12ConnectionHandler.java:156)
at
org.apache.tomcat.service.TcpWorkerThread.run(PoolTcpEndpoint.java:36
6)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
:411)
at java.lang.Thread.run(Thread.java:475)
java.lang.OutOfMemoryError:
at org.apache.tomcat.util.MimeHeaders.init(MimeHeaders.java:133)
at org.apache.tomcat.util.MimeHeaders.init(MimeHeaders.java:141)
at
org.apache.tomcat.core.ResponseImpl.init(ResponseImpl.java:96)
at
org.apache.tomcat.service.http.HttpResponseAdapter.init(HttpRespons
eAdapter.java:91)
at
org.apache.tomcat.service.connector.AJP12ResponseAdapter.init(Ajp12
ConnectionHandler.java:433)
 

Thankx
shailesh






RE: HTTPS connections from servlet

2001-05-25 Thread Steven Banks

We've managed to solve the problem. When I tried to create the URL object, a
MalformedURLException was thrown complaining that https was an unknown
protocol, even though we had set all of the relevant properties.

The solution appeared to be to generate a key using keytool. Once that was
safely stored in the keystore the problems stopped. It was just a matter of
trawling documentation a little longer basically.

Cheers,
Steve

 -Original Message-
 From: Rams [mailto:[EMAIL PROTECTED]]
 Sent: 25 May 2001 05:54
 To: [EMAIL PROTECTED]
 Subject: RE: HTTPS connections from servlet
 
 
 what exactly is ur problem?
 u need to connect to a server securely from ur servlet, right?
 or anything more?
 lf u want to connect thru https to another server, no need 
 for ur tomcat
 to get ssl enabled.
 
 elaborate ur problem.
 
 rgrds
 
 --Rams
 
 
 -Original Message-
 From: Steven Banks [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 24, 2001 7:13 PM
 To: '[EMAIL PROTECTED]'
 Subject: HTTPS connections from servlet
 
 
snip



'Object Moved - 302' returned from https connection from a servle t

2001-05-25 Thread dave . prout

Hi,

I'm trying to do a remote log on. I've tried a couple of sites,
including www.bt.com. I do the Https connect using a POST. The problem is
that I get back conn.getResponseMessage() = Object moved and 
conn.getResponseCode() = 302. Does anyone know if there is any way to get
round this. Is it something to do with sendRedirect and if so what is that ?

David

 -Original Message-
 From: Steven Banks [SMTP:[EMAIL PROTECTED]]
 Sent: 25 May 2001 12:03
 To:   '[EMAIL PROTECTED]'
 Subject:  RE: HTTPS connections from servlet
 
 We've managed to solve the problem. When I tried to create the URL object,
 a
 MalformedURLException was thrown complaining that https was an unknown
 protocol, even though we had set all of the relevant properties.
 
 The solution appeared to be to generate a key using keytool. Once that was
 safely stored in the keystore the problems stopped. It was just a matter
 of
 trawling documentation a little longer basically.
 
 Cheers,
 Steve
 
  -Original Message-
  From: Rams [mailto:[EMAIL PROTECTED]]
  Sent: 25 May 2001 05:54
  To: [EMAIL PROTECTED]
  Subject: RE: HTTPS connections from servlet
  
  
  what exactly is ur problem?
  u need to connect to a server securely from ur servlet, right?
  or anything more?
  lf u want to connect thru https to another server, no need 
  for ur tomcat
  to get ssl enabled.
  
  elaborate ur problem.
  
  rgrds
  
  --Rams
  
  
  -Original Message-
  From: Steven Banks [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, May 24, 2001 7:13 PM
  To: '[EMAIL PROTECTED]'
  Subject: HTTPS connections from servlet
  
  
 snip



RE: I'm really getting tired of these messages...

2001-05-25 Thread Milt Epstein

On Fri, 25 May 2001, Kyle Burke wrote:

 I agree.  It is very tedious.  It's definitely people who signed up
 for the list with a web-based mail account and just stopped using
 it.  It gets shut off because it's neglected and everyone on the
 list pays the price.

I don't think you can so easily categorize the problem email
addresses.  When this has come up in the past, the problem was
typically that the email address that is bouncing did not match up to
any subscribed address -- perhaps because the message is getting
forwarded a number of times.  In such cases, it isn't so easy to find
the address to remove from the list.


 Can we report these bogus emails to the moderator so they can remove
 that email?

 Kyle

 -Original Message-
 From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 24, 2001 8:48 PM
 To: [EMAIL PROTECTED]
 Subject: RE: I'm really getting tired of these messages...


 It's only when I send a message to the maillinglist and that's a lot
 lately.. Maby that email needs to be unsubscribed by someone.. (it's not
 mine...)

 Mvgr,
 Martin

  -Original Message-
  From: Guido Medina [mailto:[EMAIL PROTECTED]]
  Sent: Friday, May 25, 2001 2:44 AM
  To: [EMAIL PROTECTED]
  Subject: Re: I'm really getting tired of these messages...
 
 
  Maybe two Email that are subscribe that don't exists already...
  - Original Message -
  From: Martin van den Bemt [EMAIL PROTECTED]
  To: jakarta-tomcat-user [EMAIL PROTECTED]
  Sent: Thursday, May 24, 2001 8:26 PM
  Subject: I'm really getting tired of these messages...
 
 
   Is something wrong on the maillinglist??
  
 


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




RE: problems installing tomcat on linux

2001-05-25 Thread Gilles Laborderie

This sounds like the correct behaviour to me.
It doesn't return to the bash prompt because it will output the STDERR
messages in this window.
Try to access http://localhost:8080/ to see if Tomcat is running.

Gilles

 -Original Message-
 From: Duane Douglas [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 24, 2001 10:53 PM
 To: [EMAIL PROTECTED]
 Subject: problems installing tomcat on linux


 hi gang!

 i sent this message yesterday and i didn't get any responses.  therefore,
 i'm resending it.

 i'm a linux newbie, so please bear with me.  i'm running red hat linux
 6.2.  i installed apache 1.3.19 and tested it, so i know that its
 working.
 tomcat 3.2.1 is giving me problems.  i installed java 2se 1.3.1
 (and tested
 it, so i know it's working).  i then un-tarred the tomcat tarball and set
 the environment variables from bash as follows:

 export JAVA_HOME=/usr/local/jdk1.3.1
 export TOMCAT_HOME=/usr/local/tomcat

 i then typed in the following (from bash) from the tomcat/bin directory:
 ./startup
 some messages appeared on the screen, then bash appeared to hang
 (it didn't
 return to the prompt after a few minutes).  i didn't get a
 tomcat.log file
 so i can't figure out what went wrong.  can someone please help me
 troubleshoot this madness?

 tia

 if (duane.douglas) { coder = asp * cold fusion * xml * sql server
 * javascript }





Re: 'Object Moved - 302' returned from https connection from a servle t

2001-05-25 Thread Arnaud Dostes - NTI

response.sendRedirect returns a 302 HTTP code, with a Location parameter in
the headers representing the destination URL

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 25, 2001 1:56 PM
Subject: 'Object Moved - 302' returned from https connection from a servle t


 Hi,

 I'm trying to do a remote log on. I've tried a couple of sites,
 including www.bt.com. I do the Https connect using a POST. The problem is
 that I get back conn.getResponseMessage() = Object moved and
 conn.getResponseCode() = 302. Does anyone know if there is any way to get
 round this. Is it something to do with sendRedirect and if so what is that
?

 David

  -Original Message-
  From: Steven Banks [SMTP:[EMAIL PROTECTED]]
  Sent: 25 May 2001 12:03
  To: '[EMAIL PROTECTED]'
  Subject: RE: HTTPS connections from servlet
 
  We've managed to solve the problem. When I tried to create the URL
object,
  a
  MalformedURLException was thrown complaining that https was an unknown
  protocol, even though we had set all of the relevant properties.
 
  The solution appeared to be to generate a key using keytool. Once that
was
  safely stored in the keystore the problems stopped. It was just a matter
  of
  trawling documentation a little longer basically.
 
  Cheers,
  Steve
 
   -Original Message-
   From: Rams [mailto:[EMAIL PROTECTED]]
   Sent: 25 May 2001 05:54
   To: [EMAIL PROTECTED]
   Subject: RE: HTTPS connections from servlet
  
  
   what exactly is ur problem?
   u need to connect to a server securely from ur servlet, right?
   or anything more?
   lf u want to connect thru https to another server, no need
   for ur tomcat
   to get ssl enabled.
  
   elaborate ur problem.
  
   rgrds
  
   --Rams
  
  
   -Original Message-
   From: Steven Banks [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, May 24, 2001 7:13 PM
   To: '[EMAIL PROTECTED]'
   Subject: HTTPS connections from servlet
  
  
  snip




Re: problems installing tomcat on linux

2001-05-25 Thread David Cassidy (Programmer)
Title: Re: problems installing tomcat on linux





Duane: Can you post the messages that you got please


David


Gilles Laborderie wrote:
 
 This sounds like the correct behaviour to me.
 It doesn't return to the bash prompt because it will output the STDERR
 messages in this window.
 Try to access http://localhost:8080/ to see if Tomcat is running.
 
 Gilles
 
  -Original Message-
  From: Duane Douglas [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, May 24, 2001 10:53 PM
  To: [EMAIL PROTECTED]
  Subject: problems installing tomcat on linux
 
 
  hi gang!
 
  i sent this message yesterday and i didn't get any responses.
 therefore,
  i'm resending it.
 
  i'm a linux newbie, so please bear with me. i'm running red hat linux
  6.2. i installed apache 1.3.19 and tested it, so i know that its
  working.
  tomcat 3.2.1 is giving me problems. i installed java 2se 1.3.1
  (and tested
  it, so i know it's working). i then un-tarred the tomcat tarball and
 set
  the environment variables from bash as follows:
 
  export JAVA_HOME=/usr/local/jdk1.3.1
  export TOMCAT_HOME=/usr/local/tomcat
 
  i then typed in the following (from bash) from the tomcat/bin
 directory:
  ./startup
  some messages appeared on the screen, then bash appeared to hang
  (it didn't
  return to the prompt after a few minutes). i didn't get a
  tomcat.log file
  so i can't figure out what went wrong. can someone please help me
  troubleshoot this madness?
 
  tia
 
  if (duane.douglas) { coder = asp * cold fusion * xml * sql server
  * javascript }
 





RE: java.lang.OutOfMemoryError

2001-05-25 Thread Michael Weissenbacher

i think your problems can be solved be setting a higher maximum heap size.
for example start tomcat by using java -Xmx256 ... to set heap size to 256
mb.

michael

-Original Message-
From: Shailesh R Sah [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 25, 2001 1:01 PM
To: [EMAIL PROTECTED]
Subject: java.lang.OutOfMemoryError


hi,
i am giving details as follows of my site and problem

Server configuration :  

HardWare:
Pentium 800 MHz.
512 MB RAM
18 GB Hard Disk
Global line server.


Software Loaded: 
Red Had linux 6.2
Jdk1.2.2 for linux
Jakarta-tomcat-3.2.1

A Seperate Server is there for Oracle.

Total No. of JSPs on the server:
500Jsps

Services Running:
Apache, jakarta-tomcat

Swap space:
2GB

From the Last 2-3 weeks
1) The Tomcat is getting  killed automatically. This is happening more
frequently sometimes 4 

times a day .The tomcat has to be started manually. The tomcat server is
showing an error of out 

of memory(java.lang.OutOfMemoryError).Reports are attached in this
document.


2) The top service is not running. .

3)Swap memory is 2GB


What might be the possible possible reason???
Is it that the tomcat cannot handle 500-600 Jsps??

Kindly help out as the website is business critical.
(See below for error details)

As the problem is occuring daily.I am drawing a lot of flak at office as
being a staunch 

supporter of open source and collabarative s/w movement i went for
linux/tomcat combination.
And now my decision is being questioned.Can u tell me of any source on the
basis of which i can 

present the case of linux/tomcat combination or sites using lots of
jsps(500-600)
  



I am giving below the error coming in the tomcat console.

java.lang.OutOfMemoryError:
at java.io.InputStreamReader.init(InputStreamReader.java:86)
at java.io.InputStreamReader.init(InputStreamReader.java:55)
at java.io.FileReader.init(FileReader.java:35)
at
_0002findex_0002ejspindex_jsp_3._jspService(_0002findex_0002ejspindex
_jsp_3.java:634)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspSer
vlet.java:174)
at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:2
61)
at
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.ja
va:503)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559
)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processCon
nection(Ajp12ConnectionHandler.java:156)
at
org.apache.tomcat.service.TcpWorkerThread.run(PoolTcpEndpoint.java:36
6)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
:411)
at java.lang.Thread.run(Thread.java:475)
java.lang.OutOfMemoryError:
at org.apache.tomcat.util.MimeHeaders.init(MimeHeaders.java:133)
at org.apache.tomcat.util.MimeHeaders.init(MimeHeaders.java:141)
at
org.apache.tomcat.core.ResponseImpl.init(ResponseImpl.java:96)
at
org.apache.tomcat.service.http.HttpResponseAdapter.init(HttpRespons
eAdapter.java:91)
at
org.apache.tomcat.service.connector.AJP12ResponseAdapter.init(Ajp12
ConnectionHandler.java:433)
 

Thankx
shailesh





RE: Run Tomcat as a NT Service Problem

2001-05-25 Thread Ronald G. Louzon

You can get the XERCES XML parser from the Apache web site: xml.apache.org
I am not sure about Tomcat-4.0-b5 but Tomcat 3.2.1 will not run without this
xml parser xerces.jar.

wrapper.properties is part of the tomcat zip file for version 3.2.1 .  I am
not sure how they set tomcat up as a service for version 4.0 if a
wrapper.properties file is not being used.

ron

-Original Message-
From: Pernica, Jan [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 25, 2001 12:56 AM
To: [EMAIL PROTECTED]
Subject: RE: Run Tomcat as a NT Service Problem


Hi

I am using Tomcat-4.0-b5. What shall I do to run as an NT service?
wrapper.properties is missing.

Thank you

Jan

On Friday, May 25, 2001 3:49 AM, Huynh Tin [SMTP:[EMAIL PROTECTED]] wrote:
 Dear Louzon,
 Thank you for your information, but i didn't have xerces.jar ...This
file not existed in Jboss-Tomcat2.2 !
 What i need to do . Thank you !
  
 I'm using JDK1.3, JBoss-Tomcat2.2
  
 Best regards !
 Huynh Tin
  
  
 
 - Original Message - 
 From: Ronald G. Louzon mailto:[EMAIL PROTECTED] 
 To: '[EMAIL PROTECTED]'
mailto:'[EMAIL PROTECTED]' 
 Sent: Thursday, May 24, 2001 8:42 PM
 Subject: RE: Run Tomcat as a NT Service Problem
 
 It sounds like you don't have xerces.jar as the first thing on your
classpath.   To make this the first thing on your classpath:
  
 1) Edit the file %TOMCAT_HOME%\conf\wrapper.properties 
 2) You see some lines in this file that start with wrapper.classpath.
Before the first of those lines, add a line
 wrapper.classpath=full path and filespec for xerces.jar
 3) Restart the service and see if things are better.
  
 Also, be aware that if you are using the jk_nt_service.exe wrapper for
your NT service, and if you are using version 1.3 of the JVM, when you log
out of NT, the service will be stopped.   I had to use JavaService.exe to
get around this problem.
  
  
 
 -Original Message-
 From: Huynh Tin [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 23, 2001 11:23 PM
 To: [EMAIL PROTECTED]
 Subject: Run Tomcat as a NT Service Problem
 
 
 
 Hi all , 
  
 I used jk_nt_service.exe to add Tomcat like NT service .
  
 I finished adding Tomcat into a NT service named TomcatService. I went to
Control Panel to start TomcatService
 It started ok , but also stoped after started. What's happen.
  
 In logs dicrectory generate file named jvm.stderr and it's content as
follow:
  
 java.lang.NoClassDefFoundError: org/xml/sax/HandlerBase
 
 at java.lang.ClassLoader.defineClass0(Native Method)
 
 at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
 
 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
 
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
 
 at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
 
 at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
 
 at java.security.AccessController.doPrivileged(Native Method)
 
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 
 at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
 
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
 
 at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
 
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
 
 at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:178)
 
 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
 
 Exception in thread main
 
 Anyway, in conf\server.xml file, i also didn't know how to define AJPV12
connector. There are not any information about AJPV12 in this server.xml
file. How could i do it ?
  
 Anybody help me , what's this error , how could i fix it ??
  
 Thank you
 Huynh Tin
  
  
  
 


__
Tato komunikace je urcena vyhradne pro adresata a je duverna. 
This communication is intended solely for the addressee and is confidential.





Re: Tomcat and SSL

2001-05-25 Thread François Andromaque

i forgot to say that i have also put jsse.jar jnet.jar jcert.jar in both of
$TOMCAT_HOME/lib and $JAVA_HOME/jre/lib/ext, are the these commands i've
used to generate the cert correct?
openssl req -new -out REQ.pem -keyout KEY.pem
openssl req -x509 -in REQ.pem -key.pem -out CERT.pem
keytool -import -v -trustcacerts -alias tomcat -file CERT.pem

the error; netscape is returning to me is : impossible to etablish a
connection with the server TCP :I/O error
everything work when i try http://myhost:8080 or http://myhost:8443
but it failed  when i try https://myhost:8443

- Original Message -
From: Rams [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 25, 2001 12:26 PM
Subject: RE: Tomcat and SSL


 For Tomcat,
 The cert. should be kept in keystote with alias 'tomcat'.
 ls the keystore where ur cert present and the one u specified in
server.xml
 the same?
 ls the password in server.xml and for the keystore the same?
 whats the error u r getting?

 Rams
 CMCLtd
 3000401 x 2162 (O)
 6313447 (R)


 -Original Message-
 From: François Andromaque [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 25, 2001 3:35 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Tomcat and SSL


 still done, i am the user root and the file .keystore is present in the
root
 directory
 - Original Message -
 From: Pernica, Jan [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, May 25, 2001 11:49 AM
 Subject: RE: Tomcat and SSL


  you have to add your keys into
  ${user.home}/.keystore then it works fine
 
  Regards
 
  Jan
 
  On Friday, May 25, 2001 11:46 AM, François Andromaque
  [SMTP:[EMAIL PROTECTED]] wrote:
   Hello,
   I wonder if it's possible to configure Tomcat with SSL without using
  apache.
   I have allready :
  
   activated SSL connector in server.xml with a port value of 8443
   generated a SSL certificate with openssl
   Added security.provider.2=com.sun.net.ssl.internal.ssl.Provider to the
  $JAVA_HOME/jre/lib/ext/java.security file
  
   but i can'nt connect  my the server by requesting
https://myhost:8443.
   What have i to do to complete the configuration of tomcat?
 
 
  __
  Tato komunikace je urcena vyhradne pro adresata a je duverna.
  This communication is intended solely for the addressee and is
 confidential.
 
 




RE: java.lang.OutOfMemoryError

2001-05-25 Thread Srinadh Karumuri

If you are wondering where that magic number came from. Try 'java' at the
command line.
Then try 'java -X' for the help on non-standard options. You will probably
find another flag or two useful.

Sri

At 02:22 PM 05/25/2001 +0200, you wrote:
i think your problems can be solved be setting a higher maximum heap size.
for example start tomcat by using java -Xmx256 ... to set heap size to 256
mb.

michael

-Original Message-
From: Shailesh R Sah [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 25, 2001 1:01 PM
To: [EMAIL PROTECTED]
Subject: java.lang.OutOfMemoryError


hi,
i am giving details as follows of my site and problem

Server configuration :  

HardWare:
Pentium 800 MHz.
512 MB RAM
18 GB Hard Disk
Global line server.


Software Loaded: 
Red Had linux 6.2
Jdk1.2.2 for linux
Jakarta-tomcat-3.2.1

A Seperate Server is there for Oracle.

Total No. of JSPs on the server:
500Jsps

Services Running:
Apache, jakarta-tomcat

Swap space:
2GB

From the Last 2-3 weeks
1) The Tomcat is getting  killed automatically. This is happening more
frequently sometimes 4 

times a day .The tomcat has to be started manually. The tomcat server is
showing an error of out 

of memory(java.lang.OutOfMemoryError).Reports are attached in this
document.


2) The top service is not running. .

3)Swap memory is 2GB


What might be the possible possible reason???
Is it that the tomcat cannot handle 500-600 Jsps??

Kindly help out as the website is business critical.
(See below for error details)

As the problem is occuring daily.I am drawing a lot of flak at office as
being a staunch 

supporter of open source and collabarative s/w movement i went for
linux/tomcat combination.
And now my decision is being questioned.Can u tell me of any source on the
basis of which i can 

present the case of linux/tomcat combination or sites using lots of
jsps(500-600)
  



I am giving below the error coming in the tomcat console.

java.lang.OutOfMemoryError:
at java.io.InputStreamReader.init(InputStreamReader.java:86)
at java.io.InputStreamReader.init(InputStreamReader.java:55)
at java.io.FileReader.init(FileReader.java:35)
at
_0002findex_0002ejspindex_jsp_3._jspService(_0002findex_0002ejspindex
_jsp_3.java:634)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspSer
vlet.java:174)
at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:2
61)
at
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.ja
va:503)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559
)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processCon
nection(Ajp12ConnectionHandler.java:156)
at
org.apache.tomcat.service.TcpWorkerThread.run(PoolTcpEndpoint.java:36
6)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
:411)
at java.lang.Thread.run(Thread.java:475)
java.lang.OutOfMemoryError:
at org.apache.tomcat.util.MimeHeaders.init(MimeHeaders.java:133)
at org.apache.tomcat.util.MimeHeaders.init(MimeHeaders.java:141)
at
org.apache.tomcat.core.ResponseImpl.init(ResponseImpl.java:96)
at
org.apache.tomcat.service.http.HttpResponseAdapter.init(HttpRespons
eAdapter.java:91)
at
org.apache.tomcat.service.connector.AJP12ResponseAdapter.init(Ajp12
ConnectionHandler.java:433)
 

Thankx
shailesh



Srinadh Karumuri
Senior Programmer/Analyst
Business Apps.
BBN Technologies (Verizon)
Ph:(617)873-2841




tomcat_problem_connector

2001-05-25 Thread Daniel Leyva



HI, I try to start Tomcat and it hangs up in the 
next line:

PoolTcp Connector: Starting Ajp12ConnecionHandler 
on 8007 , and it doesn´t work...

Thank you very much


RE: 'Object Moved - 302' returned from https connection from a se rvle t

2001-05-25 Thread dave . prout

How do I get that parameter ?

 -Original Message-
 From: Arnaud Dostes - NTI [SMTP:[EMAIL PROTECTED]]
 Sent: 25 May 2001 13:19
 To:   tomcat-user
 Subject:  Re: 'Object Moved - 302' returned from https connection from
 a servle t
 
 response.sendRedirect returns a 302 HTTP code, with a Location parameter
 in
 the headers representing the destination URL
 
 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, May 25, 2001 1:56 PM
 Subject: 'Object Moved - 302' returned from https connection from a servle
 t
 
 
  Hi,
 
  I'm trying to do a remote log on. I've tried a couple of sites,
  including www.bt.com. I do the Https connect using a POST. The problem
 is
  that I get back conn.getResponseMessage() = Object moved and
  conn.getResponseCode() = 302. Does anyone know if there is any way to
 get
  round this. Is it something to do with sendRedirect and if so what is
 that
 ?
 
  David
 
   -Original Message-
   From: Steven Banks [SMTP:[EMAIL PROTECTED]]
   Sent: 25 May 2001 12:03
   To: '[EMAIL PROTECTED]'
   Subject: RE: HTTPS connections from servlet
  
   We've managed to solve the problem. When I tried to create the URL
 object,
   a
   MalformedURLException was thrown complaining that https was an unknown
   protocol, even though we had set all of the relevant properties.
  
   The solution appeared to be to generate a key using keytool. Once that
 was
   safely stored in the keystore the problems stopped. It was just a
 matter
   of
   trawling documentation a little longer basically.
  
   Cheers,
   Steve
  
-Original Message-
From: Rams [mailto:[EMAIL PROTECTED]]
Sent: 25 May 2001 05:54
To: [EMAIL PROTECTED]
Subject: RE: HTTPS connections from servlet
   
   
what exactly is ur problem?
u need to connect to a server securely from ur servlet, right?
or anything more?
lf u want to connect thru https to another server, no need
for ur tomcat
to get ssl enabled.
   
elaborate ur problem.
   
rgrds
   
--Rams
   
   
-Original Message-
From: Steven Banks [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 24, 2001 7:13 PM
To: '[EMAIL PROTECTED]'
Subject: HTTPS connections from servlet
   
   
   snip



Re: 'Object Moved - 302' returned from https connection from a se rvle t

2001-05-25 Thread Arnaud Dostes - NTI

Lets say page1.jsp does a send.redirect to page2.jsp

page1.jsp sends a 302 HTTP code to browser with Location : page2.jsp in the
headers
You can get that in page2.jsp or by reading the headers

I suggest using a prog called HTTP Tracer. It traces everything that the
navigator sends and receives, great to monitor what goes on

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 25, 2001 2:47 PM
Subject: RE: 'Object Moved - 302' returned from https connection from a se
rvle t


 How do I get that parameter ?

  -Original Message-
  From: Arnaud Dostes - NTI [SMTP:[EMAIL PROTECTED]]
  Sent: 25 May 2001 13:19
  To: tomcat-user
  Subject: Re: 'Object Moved - 302' returned from https connection from
  a servle t
 
  response.sendRedirect returns a 302 HTTP code, with a Location parameter
  in
  the headers representing the destination URL
 
  - Original Message -
  From: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, May 25, 2001 1:56 PM
  Subject: 'Object Moved - 302' returned from https connection from a
servle
  t
 
 
   Hi,
  
   I'm trying to do a remote log on. I've tried a couple of sites,
   including www.bt.com. I do the Https connect using a POST. The problem
  is
   that I get back conn.getResponseMessage() = Object moved and
   conn.getResponseCode() = 302. Does anyone know if there is any way to
  get
   round this. Is it something to do with sendRedirect and if so what is
  that
  ?
  
   David
  
-Original Message-
From: Steven Banks [SMTP:[EMAIL PROTECTED]]
Sent: 25 May 2001 12:03
To: '[EMAIL PROTECTED]'
Subject: RE: HTTPS connections from servlet
   
We've managed to solve the problem. When I tried to create the URL
  object,
a
MalformedURLException was thrown complaining that https was an
unknown
protocol, even though we had set all of the relevant properties.
   
The solution appeared to be to generate a key using keytool. Once
that
  was
safely stored in the keystore the problems stopped. It was just a
  matter
of
trawling documentation a little longer basically.
   
Cheers,
Steve
   
 -Original Message-
 From: Rams [mailto:[EMAIL PROTECTED]]
 Sent: 25 May 2001 05:54
 To: [EMAIL PROTECTED]
 Subject: RE: HTTPS connections from servlet


 what exactly is ur problem?
 u need to connect to a server securely from ur servlet, right?
 or anything more?
 lf u want to connect thru https to another server, no need
 for ur tomcat
 to get ssl enabled.

 elaborate ur problem.

 rgrds

 --Rams


 -Original Message-
 From: Steven Banks [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 24, 2001 7:13 PM
 To: '[EMAIL PROTECTED]'
 Subject: HTTPS connections from servlet


snip




(EXPERTS ONLY) Bean Creation in Dispatch Servlet

2001-05-25 Thread Leon Palermo
Title: Re: problems installing tomcat on linux



Hello All,

Let me preface this email by saying that I only put 
'EXPERTS ONLY' so you hot shot programmers would actually read this email. 
If you are reading this, it worked!

I have an odd problem that I was hoping someone 
could help with.

I have a servlet that all jsps in the system are 
dispatched from. I create a bean in this servlet and add it to the request 
object like so...

 com.blah.blah.MyBean abean = 
(com.blah.blah.MyBean) 
Beans.instantiate(this.getClass().getClassLoader(),"com.blah.blah.MyBean"); 
...
 request.setAttribute("thename", 
abean); 

I have also tried this to create the 
bean

 com.blah.blah.MyBean abean = new 
com.blah.blah.MyBean();

and also tried to place the object in the request like so

 
pageContext.setAttribute("thename", abean, 
PageContext.REQUEST_SCOPE);

Anywho, I then have the following in my jsp 
page...

 jsp:useBean id="thename" 
scope="request" class="com.blah.blah.MyBean" /

I get a java.lang.ClassCastException from the 
jsp. So, I decided to do a little error hunting ina jsp using the 
following code...

%try{ 
System.out.println(request.getAttribute("thename") == null);
 
System.out.println(request.getAttribute("thename") instanceof 
com.blah.blah.MyBean); 
System.out.println(request.getAttribute("thename").getClass().getName()); 
System.out.println(zedak.docworx.jspsupport.beans.BrandBean)request.getAttribute("thename"));
}catch (ClassCastException 
e){ System.out.println("CLASS CAST 
EXCEPTION!");}%

The results of the code is as follows:

 false
 false
 
com.blah.blah.MyBean
 CLASS CAST 
EXCEPTION!

So, the attribute is present in the request object, 
it is not an instance of 'com.blah.blah.MyBean'; but the object's class name is 
'com.blah.blah.MyBean'. Does anyone have an idea what is going on? 
How canthe object's class name be 'com.blah.blah.MyBean' but not be able 
to cast to 'com.blah.blah.MyBean'?

Thanks in advance!

Leon Palermo


RE: (EXPERTS ONLY) Bean Creation in Dispatch Servlet

2001-05-25 Thread Bhat, Mahesh
Title: Re: problems installing tomcat on linux



Hi

Have you tried 
the simple way of :

com.blah.blah.MyBean abean = new 
com.blah.blah.MyBean();request.setAttribute("thename", abean);

in JSP : 
com.blah.blah.MyBean abean = 
request.getAttribute("thename");

regards
mahesh



  -Original Message-From: Leon Palermo 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, May 25, 2001 2:02 
  PMTo: [EMAIL PROTECTED]Subject: (EXPERTS 
  ONLY) Bean Creation in Dispatch Servlet
  Hello All,
  
  Let me preface this email by saying that I only 
  put 'EXPERTS ONLY' so you hot shot programmers would actually read this 
  email. If you are reading this, it worked!
  
  I have an odd problem that I was hoping someone 
  could help with.
  
  I have a servlet that all jsps in the system are 
  dispatched from. I create a bean in this servlet and add it to the 
  request object like so...
  
   com.blah.blah.MyBean abean = 
  (com.blah.blah.MyBean) 
  Beans.instantiate(this.getClass().getClassLoader(),"com.blah.blah.MyBean"); 
  ...
   
  request.setAttribute("thename", 
  abean); 
  
  I have also tried this to create the 
  bean
  
   com.blah.blah.MyBean abean = 
  new com.blah.blah.MyBean();
  
  and also tried to place the object in the request like 
so
  
   
  pageContext.setAttribute("thename", abean, 
  PageContext.REQUEST_SCOPE);
  
  Anywho, I then have the following in my jsp 
  page...
  
   jsp:useBean id="thename" 
  scope="request" class="com.blah.blah.MyBean" /
  
  I get a java.lang.ClassCastException from the 
  jsp. So, I decided to do a little error hunting ina jsp using the 
  following code...
  
  %try{ 
  System.out.println(request.getAttribute("thename") == null);
   
  System.out.println(request.getAttribute("thename") instanceof 
  com.blah.blah.MyBean); 
  System.out.println(request.getAttribute("thename").getClass().getName()); 
  System.out.println(zedak.docworx.jspsupport.beans.BrandBean)request.getAttribute("thename"));
  }catch (ClassCastException 
  e){ System.out.println("CLASS CAST 
  EXCEPTION!");}%
  
  The results of the code is as 
  follows:
  
   false
   false
   
  com.blah.blah.MyBean
   CLASS CAST 
  EXCEPTION!
  
  So, the attribute is present in the request 
  object, it is not an instance of 'com.blah.blah.MyBean'; but the object's 
  class name is 'com.blah.blah.MyBean'. Does anyone have an idea what is 
  going on? How canthe object's class name be 'com.blah.blah.MyBean' 
  but not be able to cast to 'com.blah.blah.MyBean'?
  
  Thanks in advance!
  
  Leon 
Palermo

Important:

Internet communications are not necessarily secure and may be intercepted or changed after they are sent.
The Abbey National Group does not accept liability for any such changes. If you wish to confirm the origin or content of this communication, please contact the sender using an alternative means of communication.

This communication does not create or modify any contract.

If you are not the intended recipient of this communication you should destroy it without copying, disclosing or otherwise using its contents. Please notify the sender immediately of the error.

The Abbey National Group comprises Abbey National plc and its subsidiary group of companies.

Abbey National plc. Registered Office: Abbey House, Baker Street, London, NW1 6XL. Reg. No. 2294747.
Registered in England.



Re: (EXPERTS ONLY) Bean Creation in Dispatch Servlet

2001-05-25 Thread Leon Palermo
Title: Re: problems installing tomcat on linux



Yes,but Ineed to cast it to use the 
Bean specific functionality and...

 (com.blah.blah.MyBean)request.getAttribute("thename");

...causes the ClassCastException to 
occur.


  - Original Message - 
  From: 
  Bhat, Mahesh 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, May 25, 2001 9:11 AM
  Subject: RE: (EXPERTS ONLY) Bean Creation 
  in Dispatch Servlet
  
  Hi
  
  Have you tried 
  the simple way of :
  
  com.blah.blah.MyBean abean = new 
  com.blah.blah.MyBean();request.setAttribute("thename", 
  abean);
  
  in JSP : 
  com.blah.blah.MyBean abean = 
  request.getAttribute("thename");
  
  regards
  mahesh
  
  
  
-Original Message-From: Leon Palermo 
[mailto:[EMAIL PROTECTED]]Sent: Friday, May 25, 2001 2:02 
PMTo: [EMAIL PROTECTED]Subject: 
(EXPERTS ONLY) Bean Creation in Dispatch Servlet
Hello All,

Let me preface this email by saying that I only 
put 'EXPERTS ONLY' so you hot shot programmers would actually read this 
email. If you are reading this, it worked!

I have an odd problem that I was hoping someone 
could help with.

I have a servlet that all jsps in the system 
are dispatched from. I create a bean in this servlet and add it to the 
request object like so...

 com.blah.blah.MyBean abean = 
(com.blah.blah.MyBean) 
Beans.instantiate(this.getClass().getClassLoader(),"com.blah.blah.MyBean"); 
...
 
request.setAttribute("thename", 
abean); 

I have also tried this to create the 
bean

 com.blah.blah.MyBean abean = 
new com.blah.blah.MyBean();

and also tried to place the object in the request like 
so

 
pageContext.setAttribute("thename", abean, 
PageContext.REQUEST_SCOPE);

Anywho, I then have the following in my jsp 
page...

 jsp:useBean id="thename" 
scope="request" class="com.blah.blah.MyBean" /

I get a java.lang.ClassCastException from the 
jsp. So, I decided to do a little error hunting ina jsp using 
the following code...

%try{ 
System.out.println(request.getAttribute("thename") == null);
 
System.out.println(request.getAttribute("thename") instanceof 
com.blah.blah.MyBean); 
System.out.println(request.getAttribute("thename").getClass().getName()); 
System.out.println(zedak.docworx.jspsupport.beans.BrandBean)request.getAttribute("thename"));
}catch (ClassCastException 
e){ System.out.println("CLASS CAST 
EXCEPTION!");}%

The results of the code is as 
follows:

 false
 false
 
com.blah.blah.MyBean
 CLASS CAST 
EXCEPTION!

So, the attribute is present in the request 
object, it is not an instance of 'com.blah.blah.MyBean'; but the object's 
class name is 'com.blah.blah.MyBean'. Does anyone have an idea what is 
going on? How canthe object's class name be 
'com.blah.blah.MyBean' but not be able to cast to 
'com.blah.blah.MyBean'?

Thanks in advance!

Leon PalermoImportant:Internet communications are not necessarily 
  secure and may be intercepted or changed after they are sent.The Abbey 
  National Group does not accept liability for any such changes. If you wish to 
  confirm the origin or content of this communication, please contact the sender 
  using an alternative means of communication.This communication does 
  not create or modify any contract.If you are not the intended 
  recipient of this communication you should destroy it without copying, 
  disclosing or otherwise using its contents. Please notify the sender 
  immediately of the error.The Abbey National Group comprises Abbey 
  National plc and its subsidiary group of companies.Abbey National plc. 
  Registered Office: Abbey House, Baker Street, London, NW1 6XL. Reg. No. 
  2294747.Registered in England.


RE: (EXPERTS ONLY) Bean Creation in Dispatch Servlet

2001-05-25 Thread Bhat, Mahesh
Title: Re: problems installing tomcat on linux



Can you send the 
example code ?



  -Original Message-From: Leon Palermo 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, May 25, 2001 2:21 
  PMTo: [EMAIL PROTECTED]Subject: Re: 
  (EXPERTS ONLY) Bean Creation in Dispatch Servlet
  Yes,but Ineed to cast it to use the 
  Bean specific functionality and...
  
   (com.blah.blah.MyBean)request.getAttribute("thename");
  
  ...causes the ClassCastException to 
  occur.
  
  
- Original Message - 
From: 
Bhat, Mahesh 
To: [EMAIL PROTECTED] 

Sent: Friday, May 25, 2001 9:11 
AM
Subject: RE: (EXPERTS ONLY) Bean 
Creation in Dispatch Servlet

Hi

Have you 
tried the simple way of :

com.blah.blah.MyBean abean = new 
com.blah.blah.MyBean();request.setAttribute("thename", 
abean);

in JSP : 
com.blah.blah.MyBean abean = 
request.getAttribute("thename");

regards
mahesh



  -Original Message-From: Leon Palermo 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, May 25, 2001 2:02 
  PMTo: [EMAIL PROTECTED]Subject: 
  (EXPERTS ONLY) Bean Creation in Dispatch Servlet
  Hello All,
  
  Let me preface this email by saying that I 
  only put 'EXPERTS ONLY' so you hot shot programmers would actually read 
  this email. If you are reading this, it worked!
  
  I have an odd problem that I was hoping 
  someone could help with.
  
  I have a servlet that all jsps in the system 
  are dispatched from. I create a bean in this servlet and add it to 
  the request object like so...
  
   com.blah.blah.MyBean abean 
  = (com.blah.blah.MyBean) 
  Beans.instantiate(this.getClass().getClassLoader(),"com.blah.blah.MyBean"); 
  ...
   
  request.setAttribute("thename", 
  abean); 
  
  I have also tried this to create the 
  bean
  
   com.blah.blah.MyBean abean 
  = new com.blah.blah.MyBean();
  
  and also tried to place the object in the request like 
  so
  
   
  pageContext.setAttribute("thename", abean, 
  PageContext.REQUEST_SCOPE);
  
  Anywho, I then have the following in my jsp 
  page...
  
   jsp:useBean 
  id="thename" scope="request" class="com.blah.blah.MyBean" 
  /
  
  I get a java.lang.ClassCastException from the 
  jsp. So, I decided to do a little error hunting ina jsp using 
  the following code...
  
  %try{ 
  System.out.println(request.getAttribute("thename") == null);
   
  System.out.println(request.getAttribute("thename") instanceof 
  com.blah.blah.MyBean); 
  System.out.println(request.getAttribute("thename").getClass().getName()); 
  System.out.println(zedak.docworx.jspsupport.beans.BrandBean)request.getAttribute("thename"));
  }catch (ClassCastException 
  e){ System.out.println("CLASS CAST 
  EXCEPTION!");}%
  
  The results of the code is as 
  follows:
  
   false
   false
   
  com.blah.blah.MyBean
   CLASS CAST 
  EXCEPTION!
  
  So, the attribute is present in the request 
  object, it is not an instance of 'com.blah.blah.MyBean'; but the object's 
  class name is 'com.blah.blah.MyBean'. Does anyone have an idea what 
  is going on? How canthe object's class name be 
  'com.blah.blah.MyBean' but not be able to cast to 
  'com.blah.blah.MyBean'?
  
  Thanks in advance!
  
  Leon 
PalermoImportant:Internet communications are not necessarily 
secure and may be intercepted or changed after they are sent.The Abbey 
National Group does not accept liability for any such changes. If you wish 
to confirm the origin or content of this communication, please contact the 
sender using an alternative means of communication.This 
communication does not create or modify any contract.If you are not 
the intended recipient of this communication you should destroy it without 
copying, disclosing or otherwise using its contents. Please notify the 
sender immediately of the error.The Abbey National Group comprises 
Abbey National plc and its subsidiary group of companies.Abbey 
National plc. Registered Office: Abbey House, Baker Street, London, NW1 6XL. 
Reg. No. 2294747.Registered in 
England.


Re: java.lang.OutOfMemoryError

2001-05-25 Thread Egidijus Drobavicius

This is javaVM heap problem. You should increase heapsize. (e.g.
JAVACMD=java -mx200M)
Regards,
Egidijus
- Original Message -
From: Srinadh Karumuri [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 25, 2001 2:35 PM
Subject: RE: java.lang.OutOfMemoryError


 If you are wondering where that magic number came from. Try 'java' at the
 command line.
 Then try 'java -X' for the help on non-standard options. You will probably
 find another flag or two useful.

 Sri

 At 02:22 PM 05/25/2001 +0200, you wrote:
 i think your problems can be solved be setting a higher maximum heap
size.
 for example start tomcat by using java -Xmx256 ... to set heap size to
256
 mb.
 
 michael
 
 -Original Message-
 From: Shailesh R Sah [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 25, 2001 1:01 PM
 To: [EMAIL PROTECTED]
 Subject: java.lang.OutOfMemoryError
 
 
 hi,
 i am giving details as follows of my site and problem
 
 Server configuration :
 
 HardWare:
 Pentium 800 MHz.
 512 MB RAM
 18 GB Hard Disk
 Global line server.
 
 
 Software Loaded:
 Red Had linux 6.2
 Jdk1.2.2 for linux
 Jakarta-tomcat-3.2.1
 
 A Seperate Server is there for Oracle.
 
 Total No. of JSPs on the server:
 500Jsps
 
 Services Running:
 Apache, jakarta-tomcat
 
 Swap space:
 2GB
 
 From the Last 2-3 weeks
 1) The Tomcat is getting  killed automatically. This is happening more
 frequently sometimes 4
 
 times a day .The tomcat has to be started manually. The tomcat server is
 showing an error of out
 
 of memory(java.lang.OutOfMemoryError).Reports are attached in this
 document.
 
 
 2) The top service is not running. .
 
 3)Swap memory is 2GB
 
 
 What might be the possible possible reason???
 Is it that the tomcat cannot handle 500-600 Jsps??
 
 Kindly help out as the website is business critical.
 (See below for error details)
 
 As the problem is occuring daily.I am drawing a lot of flak at office as
 being a staunch
 
 supporter of open source and collabarative s/w movement i went for
 linux/tomcat combination.
 And now my decision is being questioned.Can u tell me of any source on
the
 basis of which i can
 
 present the case of linux/tomcat combination or sites using lots of
 jsps(500-600)
 
 
 
 
 I am giving below the error coming in the tomcat console.
 
 java.lang.OutOfMemoryError:
 at java.io.InputStreamReader.init(InputStreamReader.java:86)
 at java.io.InputStreamReader.init(InputStreamReader.java:55)
 at java.io.FileReader.init(FileReader.java:35)
 at
 _0002findex_0002ejspindex_jsp_3._jspService(_0002findex_0002ejspindex
 _jsp_3.java:634)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspSer
 vlet.java:174)
 at
 org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:2
 61)
 at
 org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.ja
 va:503)
 at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:559
 )
 at
 org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processCon
 nection(Ajp12ConnectionHandler.java:156)
 at
 org.apache.tomcat.service.TcpWorkerThread.run(PoolTcpEndpoint.java:36
 6)
 at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
 :411)
 at java.lang.Thread.run(Thread.java:475)
 java.lang.OutOfMemoryError:
 at
org.apache.tomcat.util.MimeHeaders.init(MimeHeaders.java:133)
 at
org.apache.tomcat.util.MimeHeaders.init(MimeHeaders.java:141)
 at
 org.apache.tomcat.core.ResponseImpl.init(ResponseImpl.java:96)
 at
 org.apache.tomcat.service.http.HttpResponseAdapter.init(HttpRespons
 eAdapter.java:91)
 at
 org.apache.tomcat.service.connector.AJP12ResponseAdapter.init(Ajp12
 ConnectionHandler.java:433)
 
 
 Thankx
 shailesh
 
 
 
 Srinadh Karumuri
 Senior Programmer/Analyst
 Business Apps.
 BBN Technologies (Verizon)
 Ph:(617)873-2841






Re: (EXPERTS ONLY) Bean Creation in Dispatch Servlet

2001-05-25 Thread Leon Palermo
Title: Re: problems installing tomcat on linux



Here is a very scaled down version of the dispatch 
servlet. Switch the name of the bean ('com.blah.blah.AnyCustomBean') in the jsp 
and servlet to any custom bean you wish to try out.

Create a .jsp page for the servlet to 
forwardthe request tothat looks something like this:

%@ page session="false" errorPage="error.jsp" 
%%@ page import = "com.blah.blah.AnyCustomBean" %

%try{ 
System.out.println((request.getAttribute("thebean") == 
null)); 
System.out.println((request.getAttribute("thebean") instanceof 
zedak.docworx.jspsupport.beans.BrandBean)); 
System.out.println((request.getAttribute("thebean").getClass().getName())); 
System.out.println((zedak.docworx.jspsupport.beans.BrandBean)request.getAttribute("thebean")); 
}catch (ClassCastException e){ 
System.out.println("CLASS CAST EXCEPTION!"); }%

jsp:useBean id="thebean" scope="request" 
class="com.blah.blah.AnyCustomBean" /

Change the name of the jsp file in the servlet to 
match the .jsp file name you created above.

Thanks!

Leon

  - Original Message - 
  From: 
  Bhat, Mahesh 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, May 25, 2001 9:20 AM
  Subject: RE: (EXPERTS ONLY) Bean Creation 
  in Dispatch Servlet
  
  Can you send 
  the example code ?
  
  
  
-Original Message-From: Leon Palermo 
[mailto:[EMAIL PROTECTED]]Sent: Friday, May 25, 2001 2:21 
PMTo: [EMAIL PROTECTED]Subject: 
Re: (EXPERTS ONLY) Bean Creation in Dispatch Servlet
Yes,but Ineed to cast it to use the 
Bean specific functionality and...

 (com.blah.blah.MyBean)request.getAttribute("thename");

...causes the ClassCastException to 
occur.


  - Original Message - 
  From: 
  Bhat, Mahesh 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, May 25, 2001 
  9:11 AM
  Subject: RE: (EXPERTS ONLY) 
  Bean Creation in Dispatch Servlet
  
  Hi
  
  Have you 
  tried the simple way of :
  
  com.blah.blah.MyBean abean = new 
  com.blah.blah.MyBean();request.setAttribute("thename", 
  abean);
  
  in JSP : 
  com.blah.blah.MyBean abean = 
  request.getAttribute("thename");
  
  regards
  mahesh
  
  
  
-Original Message-From: Leon Palermo 
[mailto:[EMAIL PROTECTED]]Sent: Friday, May 25, 2001 2:02 
PMTo: [EMAIL PROTECTED]Subject: 
(EXPERTS ONLY) Bean Creation in Dispatch Servlet
Hello All,

Let me preface this email by saying that I 
only put 'EXPERTS ONLY' so you hot shot programmers would actually read 
this email. If you are reading this, it worked!

I have an odd problem that I was hoping 
someone could help with.

I have a servlet that all jsps in the 
system are dispatched from. I create a bean in this servlet and 
add it to the request object like so...

 com.blah.blah.MyBean 
abean = (com.blah.blah.MyBean) 
Beans.instantiate(this.getClass().getClassLoader(),"com.blah.blah.MyBean"); 
...
 
request.setAttribute("thename", 
abean); 

I have also tried this to create the 
bean

 com.blah.blah.MyBean 
abean = new com.blah.blah.MyBean();

and also tried to place the object in the request like 
so

 
pageContext.setAttribute("thename", abean, 
PageContext.REQUEST_SCOPE);

Anywho, I then have the following in my jsp 
page...

 jsp:useBean 
id="thename" scope="request" class="com.blah.blah.MyBean" 
/

I get a java.lang.ClassCastException from 
the jsp. So, I decided to do a little error hunting ina jsp 
using the following code...

%try{ 
System.out.println(request.getAttribute("thename") == 
null);
 
System.out.println(request.getAttribute("thename") instanceof 
com.blah.blah.MyBean); 
System.out.println(request.getAttribute("thename").getClass().getName()); 
System.out.println(zedak.docworx.jspsupport.beans.BrandBean)request.getAttribute("thename"));
}catch (ClassCastException 
e){ System.out.println("CLASS CAST 
EXCEPTION!");}%

The results of the code is as 
follows:

 false
 false
 
com.blah.blah.MyBean
 CLASS CAST 
EXCEPTION!

So, the attribute is present in the request 
object, it is not an instance of 'com.blah.blah.MyBean'; but the 
object's class name is 'com.blah.blah.MyBean'. Does anyone have an 
idea what is going on? How canthe object's class name be 
'com.blah.blah.MyBean' but not be able to cast to 
'com.blah.blah.MyBean'?

 

Re: (EXPERTS ONLY) Bean Creation in Dispatch Servlet

2001-05-25 Thread Leon Palermo
Title: Re: problems installing tomcat on linux



Mahesh,

One more thing, in the servlet the 
line...

 thebean = 
(com.blah.blah.AnyCustomBean) 
Beans.instantiate(this.getClass().getClassLoader(), 
"com.blah.blah.AnyCustomBean");

...needs to have a try/catch block around it for a 
ClassNotFoundException.

Leon

  - Original Message - 
  From: 
  Leon Palermo 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, May 25, 2001 9:48 AM
  Subject: Re: (EXPERTS ONLY) Bean Creation 
  in Dispatch Servlet
  
  Here is a very scaled down version of the 
  dispatch servlet. Switch the name of the bean ('com.blah.blah.AnyCustomBean') 
  in the jsp and servlet to any custom bean you wish to try out.
  
  Create a .jsp page for the servlet to 
  forwardthe request tothat looks something like this:
  
  %@ page session="false" errorPage="error.jsp" 
  %%@ page import = "com.blah.blah.AnyCustomBean" %
  
  %try{ 
  System.out.println((request.getAttribute("thebean") == 
  null)); 
  System.out.println((request.getAttribute("thebean") instanceof 
  zedak.docworx.jspsupport.beans.BrandBean)); 
  System.out.println((request.getAttribute("thebean").getClass().getName())); 
  System.out.println((zedak.docworx.jspsupport.beans.BrandBean)request.getAttribute("thebean")); 
  }catch (ClassCastException e){ 
  System.out.println("CLASS CAST EXCEPTION!"); }%
  
  jsp:useBean id="thebean" scope="request" 
  class="com.blah.blah.AnyCustomBean" /
  
  Change the name of the jsp file in the servlet to 
  match the .jsp file name you created above.
  
  Thanks!
  
  Leon
  
- Original Message - 
From: 
Bhat, Mahesh 
To: [EMAIL PROTECTED] 

Sent: Friday, May 25, 2001 
9:20 AM
Subject: RE: (EXPERTS ONLY) 
Bean Creation in Dispatch Servlet

Can you send 
the example code ?



  -Original Message-From: Leon Palermo 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, May 25, 2001 2:21 
  PMTo: [EMAIL PROTECTED]Subject: 
  Re: (EXPERTS ONLY) Bean Creation in Dispatch Servlet
  Yes,but Ineed to cast it to use 
  the Bean specific functionality and...
  
   (com.blah.blah.MyBean)request.getAttribute("thename");
  
  ...causes the ClassCastException to 
  occur.
  
  
- Original Message - 

From: 
Bhat, Mahesh 
To: [EMAIL PROTECTED] 

Sent: Friday, May 25, 2001 
9:11 AM
Subject: RE: (EXPERTS 
ONLY) Bean Creation in Dispatch Servlet

Hi

Have you 
tried the simple way of :

com.blah.blah.MyBean abean = new 
com.blah.blah.MyBean();request.setAttribute("thename", 
abean);

in JSP : 
com.blah.blah.MyBean abean = 
request.getAttribute("thename");

regards
mahesh



  -Original Message-From: Leon Palermo 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, May 25, 2001 2:02 
  PMTo: [EMAIL PROTECTED]Subject: 
  (EXPERTS ONLY) Bean Creation in Dispatch Servlet
  Hello All,
  
  Let me preface this email by saying that 
  I only put 'EXPERTS ONLY' so you hot shot programmers would actually 
  read this email. If you are reading this, it 
worked!
  
  I have an odd problem that I was hoping 
  someone could help with.
  
  I have a servlet that all jsps in the 
  system are dispatched from. I create a bean in this servlet and 
  add it to the request object like so...
  
   com.blah.blah.MyBean 
  abean = (com.blah.blah.MyBean) 
  Beans.instantiate(this.getClass().getClassLoader(),"com.blah.blah.MyBean"); 
  ...
   
  request.setAttribute("thename", 
  abean); 
  
  I have also tried this to create the 
  bean
  
   com.blah.blah.MyBean 
  abean = new com.blah.blah.MyBean();
  
  and also tried to place the object in the request like 
  so
  
   
  pageContext.setAttribute("thename", abean, 
  PageContext.REQUEST_SCOPE);
  
  Anywho, I then have the following in my 
  jsp page...
  
   jsp:useBean 
  id="thename" scope="request" class="com.blah.blah.MyBean" 
  /
  
  I get a java.lang.ClassCastException from 
  the jsp. So, I decided to do a little error hunting ina 
  jsp using the following code...
  
  %try{ 
  System.out.println(request.getAttribute("thename") == 
  null);
   
  System.out.println(request.getAttribute("thename") instanceof 
  com.blah.blah.MyBean); 
  System.out.println(request.getAttribute("thename").getClass().getName()); 
 

RE: tomcat_problem_connector

2001-05-25 Thread Randy Layman


First, I would suggest only sending plain text messages to this
mailing list - a number of subscribers can't/don't read HTML or Rich Text
messages and you don't want to limit your audience for a question.

Second, what do you mean it doesn't work?  This is normal behavior.
The server starts up, indicates the ports its listening on, and then waits
for users to connect to it.

Randy

-Original Message-
From: Daniel Leyva [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 25, 2001 8:48 AM
To: [EMAIL PROTECTED]
Subject: tomcat_problem_connector


HI, I try to start Tomcat and it hangs up in the next line:

PoolTcp Connector: Starting Ajp12ConnecionHandler on 8007 , and it doesn´t
work...

Thank you very much



Re: (EXPERTS ONLY) Bean Creation in Dispatch Servlet

2001-05-25 Thread Leon Palermo
Title: Re: problems installing tomcat on linux



Darn it all!

The jsp should look like this. I forgot to 
take my own class name out of a few lines.

%try{ 
System.out.println((request.getAttribute("thebean") == 
null)); 
System.out.println((request.getAttribute("thebean") instanceof 
com.blah.blah.AnyCustomBean)); 
System.out.println((request.getAttribute("thebean").getClass().getName())); 
System.out.println((com.blah.blah.AnyCustomBean)request.getAttribute("thebean")); 
}catch (ClassCastException e){ 
System.out.println("CLASS CAST EXCEPTION!"); }%

  - Original Message - 
  From: 
  Leon Palermo 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, May 25, 2001 9:53 AM
  Subject: Re: (EXPERTS ONLY) Bean Creation 
  in Dispatch Servlet
  
  Mahesh,
  
  One more thing, in the servlet the 
  line...
  
   thebean = 
  (com.blah.blah.AnyCustomBean) 
  Beans.instantiate(this.getClass().getClassLoader(), 
  "com.blah.blah.AnyCustomBean");
  
  ...needs to have a try/catch block around it for 
  a ClassNotFoundException.
  
  Leon
  
- Original Message - 
From: 
Leon Palermo 

To: [EMAIL PROTECTED] 

Sent: Friday, May 25, 2001 
9:48 AM
Subject: Re: (EXPERTS ONLY) 
Bean Creation in Dispatch Servlet

Here is a very scaled down version of the 
dispatch servlet. Switch the name of the bean 
('com.blah.blah.AnyCustomBean') in the jsp and servlet to any custom bean 
you wish to try out.

Create a .jsp page for the servlet to 
forwardthe request tothat looks something like 
this:

%@ page session="false" 
errorPage="error.jsp" %%@ page import = 
"com.blah.blah.AnyCustomBean" %

%try{ 
System.out.println((request.getAttribute("thebean") == 
null)); 
System.out.println((request.getAttribute("thebean") instanceof 
zedak.docworx.jspsupport.beans.BrandBean)); 
System.out.println((request.getAttribute("thebean").getClass().getName())); 
System.out.println((zedak.docworx.jspsupport.beans.BrandBean)request.getAttribute("thebean")); 
}catch (ClassCastException e){ 
System.out.println("CLASS CAST EXCEPTION!"); 
}%

jsp:useBean id="thebean" scope="request" 
class="com.blah.blah.AnyCustomBean" /

Change the name of the jsp file in the servlet 
to match the .jsp file name you created above.

Thanks!

Leon

  - Original Message - 
  From: 
  Bhat, Mahesh 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, May 25, 2001 
  9:20 AM
  Subject: RE: (EXPERTS ONLY) 
  Bean Creation in Dispatch Servlet
  
  Can you 
  send the example code ?
  
  
  
-Original Message-From: Leon Palermo 
[mailto:[EMAIL PROTECTED]]Sent: Friday, May 25, 2001 2:21 
PMTo: [EMAIL PROTECTED]Subject: 
Re: (EXPERTS ONLY) Bean Creation in Dispatch 
Servlet
Yes,but Ineed to cast it to use 
the Bean specific functionality and...

 (com.blah.blah.MyBean)request.getAttribute("thename");

...causes the ClassCastException to 
occur.


  - Original Message - 
  
  From: 
  Bhat, Mahesh 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, May 25, 
  2001 9:11 AM
  Subject: RE: (EXPERTS 
  ONLY) Bean Creation in Dispatch Servlet
  
  Hi
  
  Have 
  you tried the simple way of :
  
  com.blah.blah.MyBean abean = new 
  com.blah.blah.MyBean();request.setAttribute("thename", 
  abean);
  
  in JSP : 
  com.blah.blah.MyBean abean = 
  request.getAttribute("thename");
  
  regards
  mahesh
  
  
  
-Original Message-From: Leon Palermo 
[mailto:[EMAIL PROTECTED]]Sent: Friday, May 25, 2001 2:02 
PMTo: [EMAIL PROTECTED]Subject: 
(EXPERTS ONLY) Bean Creation in Dispatch 
Servlet
Hello All,

Let me preface this email by saying 
that I only put 'EXPERTS ONLY' so you hot shot programmers would 
actually read this email. If you are reading this, it 
worked!

I have an odd problem that I was hoping 
someone could help with.

I have a servlet that all jsps in the 
system are dispatched from. I create a bean in this servlet 
and add it to the request object like so...

 com.blah.blah.MyBean 
abean = (com.blah.blah.MyBean) 
Beans.instantiate(this.getClass().getClassLoader(),"com.blah.blah.MyBean"); 
...
 
request.setAttribute("thename", 
abean); 

I have also tried this to create 

Re: Tomcat and Apache on diffenet machines

2001-05-25 Thread Kumar Vijayaratnam

Michael,

Did you ever get an answer to this question.. I also posted a similar
question but have never received an answer.

Regards
Kumar

Wolle wrote:

 Hello all,
 Is it possible to use Apache with mod_jk to a extrenal Tomcat ?
 I have found something like this for the mod_jserv (to insert in the
 httpd.conf)
  ApJServMount /examples ajpv12://hostname:port/root

 Is it also with mod_jk ?

 JkMount /test/* ajp12://test.domain.com:8007/root
 and
 JkMount /test/* ajp13://test.domain.com:8009/root

 ?

 Has someone tested this behavior ?

 Greetings,
 Michael




Re: Tomcat and Apache on diffenet machines

2001-05-25 Thread David Cassidy (Programmer)
Title: Re: Tomcat and Apache on diffenet machines





Yup this is possible 


and if you are using the loadbalancing module ( so you can have more
than 1
tomcat for your apache(s) to talk to) essential


in workers.properties you should find something like ...


worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
worker.ajp12.lbfactor=1


To define another service try ...


worker.external_1.port=8007
worker.external_1.host=192.168.34.43
worker.external_1.type=ajp12
worker.external_1.lbfactor=1


You can define as many of these as you want.


You can then define a loadbalancer ( if you want to)


worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp12, external_1, external_2 etc



then 
worker.list=loadbalancer 
and you have got load balancing


If you just want to use a single tomcat host then
worker.list=external_1


in your mod_jk.conf


JkMount /test/* loadbalancer


or 


JkMount /test/* external_1



Hope this helps


David


PS If you are going to do loadbalancing I suggest you use ajp12
 it takes less time to recover if than ajp13





Kumar Vijayaratnam wrote:
 
 Michael,
 
 Did you ever get an answer to this question.. I also posted a similar
 question but have never received an answer.
 
 Regards
 Kumar
 
 Wolle wrote:
 
  Hello all,
  Is it possible to use Apache with mod_jk to a extrenal Tomcat ?
  I have found something like this for the mod_jserv (to insert in the
  httpd.conf)
  ApJServMount /examples ajpv12://hostname:port/root
 
  Is it also with mod_jk ?
 
  JkMount /test/* ajp12://test.domain.com:8007/root
  and
  JkMount /test/* ajp13://test.domain.com:8009/root
 
  ?
 
  Has someone tested this behavior ?
 
  Greetings,
  Michael





RE: classpath

2001-05-25 Thread Hawkins, Keith (Keith)
Title: RE:  classpath






I think you need to do the converse of what you did.

You removed jaxp.jar from Tomcat/lib and then added jaxp.jar to

all the WEB-INF/lib directories of the context directories that

needed it. Have you tried replacing the jaxp.jar in Tomcat/lib

with the latest version that supports namespaces?

Tomcat needs jaxp.jar to parse the config files that are in xml

format. So give Tomcat the latest version so that it is used

both by Tomcat and your code.

-Keith



-Original Message-

From: Manuel Melle Ocariz [mailto:[EMAIL PROTECTED]]

Sent: Tuesday, May 22, 2001 11:32 AM

To: [EMAIL PROTECTED]

Subject: classpath



Hi all,


I'm still having problems with classpath setting so I'll explain my particular case:


I have two apps that use different versions of xalan and xerces. In this jar files there is a javax.xml.parsers.SAXParser class. I'm trying to deploy them into Tomcat 3.2.1 but when I try to run the one with the newest version I get the following message:

javax.xml.transform.TransformerConfigurationException: Namespace not supported by SAXParser at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactor

yImpl.java:815)


I found out this was because in TOMCAT's jaxp.jar file there's an elder version of this SAXParser.class. So I thought the only way of solving this was loading different versions for each app and removing the one resident in %TOMCAT_HOME%\lib, but when I tryed to restart TOMCAT it didn't work. I guess this is becouse TOMCAT needs an XML parser to parse all xml-based configuration files, so I feel forced to chose from one of the two versions, for though you can specify new jars to add to the app's classpath, is the first one loaded the one used at runtime.

Any idea (appart from a new TOMCAT for each app)?


Thanks in adv





Manuel Melle Ocáriz

Software AG - E-Business Competence Center

[EMAIL PROTECTED]






Re: (EXPERTS ONLY) Bean Creation in Dispatch Servlet

2001-05-25 Thread Leon Palermo
Title: Re: problems installing tomcat on linux



Mahesh and others,

After performing the test myselfand looking 
at things, I found out that indeed the dispatch servlet is putting the bean in 
correctly and the jsps areutilizing them properly. The problem 
occurs only after I compile any file used by the Bean. Although the Bean 
isn't compiled itself (the .class file remains the same); the compilation of a 
classimported by the bean causes the ClassCastException. Only after 
restarting tomcat do things function properly until the next compilation of the 
file used by the Bean.

As a result, I transfer the focus of this problem 
away from the jsp realm to the Java language realm. Does anyone have any 
idea why the compilation of imported classes would cause a ClassCastException as 
previously described?

Thanks again!

Leon

  - Original Message - 
  From: 
  Leon Palermo 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, May 25, 2001 9:56 AM
  Subject: Re: (EXPERTS ONLY) Bean Creation 
  in Dispatch Servlet
  
  Darn it all!
  
  The jsp should look like this. I forgot to 
  take my own class name out of a few lines.
  
  %try{ 
  System.out.println((request.getAttribute("thebean") == 
  null)); 
  System.out.println((request.getAttribute("thebean") instanceof 
  com.blah.blah.AnyCustomBean)); 
  System.out.println((request.getAttribute("thebean").getClass().getName())); 
  System.out.println((com.blah.blah.AnyCustomBean)request.getAttribute("thebean")); 
  }catch (ClassCastException e){ 
  System.out.println("CLASS CAST EXCEPTION!"); }%
  
- Original Message - 
From: 
Leon Palermo 

To: [EMAIL PROTECTED] 

Sent: Friday, May 25, 2001 9:53 
AM
Subject: Re: (EXPERTS ONLY) Bean 
Creation in Dispatch Servlet

Mahesh,

One more thing, in the servlet the 
line...

 thebean = 
(com.blah.blah.AnyCustomBean) 
Beans.instantiate(this.getClass().getClassLoader(), 
"com.blah.blah.AnyCustomBean");

...needs to have a try/catch block around it 
for a ClassNotFoundException.

Leon

  - Original Message - 
  From: 
  Leon Palermo 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, May 25, 2001 
  9:48 AM
  Subject: Re: (EXPERTS ONLY) 
  Bean Creation in Dispatch Servlet
  
  Here is a very scaled down version of the 
  dispatch servlet. Switch the name of the bean 
  ('com.blah.blah.AnyCustomBean') in the jsp and servlet to any custom bean 
  you wish to try out.
  
  Create a .jsp page for the servlet to 
  forwardthe request tothat looks something like 
  this:
  
  %@ page session="false" 
  errorPage="error.jsp" %%@ page import = 
  "com.blah.blah.AnyCustomBean" %
  
  %try{ 
  System.out.println((request.getAttribute("thebean") == 
  null)); 
  System.out.println((request.getAttribute("thebean") instanceof 
  zedak.docworx.jspsupport.beans.BrandBean)); 
  System.out.println((request.getAttribute("thebean").getClass().getName())); 
  System.out.println((zedak.docworx.jspsupport.beans.BrandBean)request.getAttribute("thebean")); 
  }catch (ClassCastException e){ 
  System.out.println("CLASS CAST EXCEPTION!"); 
  }%
  
  jsp:useBean id="thebean" scope="request" 
  class="com.blah.blah.AnyCustomBean" /
  
  Change the name of the jsp file in the 
  servlet to match the .jsp file name you created above.
  
  Thanks!
  
  Leon
  
- Original Message - 

From: 
Bhat, Mahesh 
To: [EMAIL PROTECTED] 

Sent: Friday, May 25, 2001 
9:20 AM
Subject: RE: (EXPERTS 
ONLY) Bean Creation in Dispatch Servlet

Can you 
send the example code ?



  -Original Message-From: Leon Palermo 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, May 25, 2001 2:21 
  PMTo: [EMAIL PROTECTED]Subject: 
  Re: (EXPERTS ONLY) Bean Creation in Dispatch 
  Servlet
  Yes,but Ineed to cast it to 
  use the Bean specific functionality and...
  
   (com.blah.blah.MyBean)request.getAttribute("thename");
  
  ...causes the ClassCastException to 
  occur.
  
  
- Original Message - 

From: 
Bhat, Mahesh 

To: [EMAIL PROTECTED] 

Sent: Friday, May 25, 
2001 9:11 AM
Subject: RE: (EXPERTS 
ONLY) Bean Creation in Dispatch Servlet

Hi

Have 
you tried the simple way of :

com.blah.blah.MyBean abean = new 
com.blah.blah.MyBean();request.setAttribute("thename", 
abean);

in JSP : 
 

Apache not talking to Tomcat on port 8007? I need a rubber room...

2001-05-25 Thread Jeff Walker



Hi all,

Apache cannot find tomcat at port 8007.

I am getting this error when trying to load a servlet through
apache. Tomcat log on startup:

2001-05-24 12:01:34 - PoolTcpConnector: Starting HttpConnectionHandler on
8080
2001-05-24 12:01:34 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
8007

Apache log on request:

[24/05/2001 09:38:34:294] (EMERGENCY) ajp12: can not connect to host
127.0.0.1:8007
[24/05/2001 09:38:34:294] (EMERGENCY) ajp12: connection fail
[24/05/2001 09:38:34:295] (ERROR) an error returned handling request via
protocol ajpv12

Tomcat is starting correctly before apache, and I can reach tomcat at port
8080 with
the web browser.

WTF is wrong? How can I test whether port 8007 is really open and listening?
Anyone else seen this problem? I have been over the config files a million
times
and they look correct. Please help out a lamer moron dumbass. please?


Thanks,

Jeff Walker
DHA
Chattanooga, TN




Re: Tomcat and Apache on diffenet machines

2001-05-25 Thread François Andromaque

Kumar, have you found another solution, perhaps by using tomcat and apache
but i don't want to try this until i'm sure that tomcat can't be configure
with ssl.
How have you managed to generate a certificate, i think i don't have done
all what i have to?
- Original Message -
From: Kumar Vijayaratnam [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 25, 2001 3:58 PM
Subject: Re: Tomcat and Apache on diffenet machines


 Michael,

 Did you ever get an answer to this question.. I also posted a similar
 question but have never received an answer.

 Regards
 Kumar

 Wolle wrote:

  Hello all,
  Is it possible to use Apache with mod_jk to a extrenal Tomcat ?
  I have found something like this for the mod_jserv (to insert in the
  httpd.conf)
   ApJServMount /examples ajpv12://hostname:port/root
 
  Is it also with mod_jk ?
 
  JkMount /test/* ajp12://test.domain.com:8007/root
  and
  JkMount /test/* ajp13://test.domain.com:8009/root
 
  ?
 
  Has someone tested this behavior ?
 
  Greetings,
  Michael




RE: (EXPERTS ONLY) Bean Creation in Dispatch Servlet

2001-05-25 Thread Bhat, Mahesh
Title: Re: problems installing tomcat on linux



Hi 
Leon.

I did try what 
you said and it works perfect for me. I am attaching all the files used by me, 
Check them out.

regards
mahesh



  -Original Message-From: Leon Palermo 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, May 25, 2001 3:39 
  PMTo: [EMAIL PROTECTED]Subject: Re: 
  (EXPERTS ONLY) Bean Creation in Dispatch Servlet
  Mahesh and others,
  
  After performing the test myselfand looking 
  at things, I found out that indeed the dispatch servlet is putting the bean in 
  correctly and the jsps areutilizing them properly. The problem 
  occurs only after I compile any file used by the Bean. Although the Bean 
  isn't compiled itself (the .class file remains the same); the compilation of a 
  classimported by the bean causes the ClassCastException. Only 
  after restarting tomcat do things function properly until the next compilation 
  of the file used by the Bean.
  
  As a result, I transfer the focus of this problem 
  away from the jsp realm to the Java language realm. Does anyone have any 
  idea why the compilation of imported classes would cause a ClassCastException 
  as previously described?
  
  Thanks again!
  
  Leon
  
- Original Message - 
From: 
Leon Palermo 

To: [EMAIL PROTECTED] 

Sent: Friday, May 25, 2001 9:56 
AM
Subject: Re: (EXPERTS ONLY) Bean 
Creation in Dispatch Servlet

Darn it all!

The jsp should look like this. I forgot 
to take my own class name out of a few lines.

%try{ 
System.out.println((request.getAttribute("thebean") == 
null)); 
System.out.println((request.getAttribute("thebean") instanceof 
com.blah.blah.AnyCustomBean)); 
System.out.println((request.getAttribute("thebean").getClass().getName())); 
System.out.println((com.blah.blah.AnyCustomBean)request.getAttribute("thebean")); 
}catch (ClassCastException e){ 
System.out.println("CLASS CAST EXCEPTION!"); 
}%

  - Original Message - 
  From: 
  Leon Palermo 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, May 25, 2001 9:53 
  AM
  Subject: Re: (EXPERTS ONLY) Bean 
  Creation in Dispatch Servlet
  
  Mahesh,
  
  One more thing, in the servlet the 
  line...
  
   thebean = 
  (com.blah.blah.AnyCustomBean) 
  Beans.instantiate(this.getClass().getClassLoader(), 
  "com.blah.blah.AnyCustomBean");
  
  ...needs to have a try/catch block around it 
  for a ClassNotFoundException.
  
  Leon
  
- Original Message - 

From: 
Leon Palermo 

To: [EMAIL PROTECTED] 

Sent: Friday, May 25, 2001 
9:48 AM
Subject: Re: (EXPERTS 
ONLY) Bean Creation in Dispatch Servlet

Here is a very scaled down version of the 
dispatch servlet. Switch the name of the bean 
('com.blah.blah.AnyCustomBean') in the jsp and servlet to any custom 
bean you wish to try out.

Create a .jsp page for the servlet to 
forwardthe request tothat looks something like 
this:

%@ page session="false" 
errorPage="error.jsp" %%@ page import = 
"com.blah.blah.AnyCustomBean" %

%try{ 
System.out.println((request.getAttribute("thebean") == 
null)); 
System.out.println((request.getAttribute("thebean") instanceof 
zedak.docworx.jspsupport.beans.BrandBean)); 
System.out.println((request.getAttribute("thebean").getClass().getName())); 
System.out.println((zedak.docworx.jspsupport.beans.BrandBean)request.getAttribute("thebean")); 
}catch (ClassCastException e){ 
System.out.println("CLASS CAST EXCEPTION!"); 
}%

jsp:useBean id="thebean" 
scope="request" class="com.blah.blah.AnyCustomBean" /

Change the name of the jsp file in the 
servlet to match the .jsp file name you created above.

Thanks!

Leon

  - Original Message - 
  
  From: 
  Bhat, Mahesh 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, May 25, 
  2001 9:20 AM
  Subject: RE: (EXPERTS 
  ONLY) Bean Creation in Dispatch Servlet
  
  Can you 
  send the example code ?
  
  
  
-Original Message-From: Leon Palermo 
[mailto:[EMAIL PROTECTED]]Sent: Friday, May 25, 2001 2:21 
PMTo: [EMAIL PROTECTED]Subject: 
Re: (EXPERTS ONLY) Bean Creation in Dispatch 
Servlet
Yes,but Ineed to cast it to 
use the Bean specific functionality and...

 (com.blah.blah.MyBean)request.getAttribute("thename");

...causes 

AW: Apache not talking to Tomcat on port 8007? I need a rubber room...

2001-05-25 Thread Nico Wieland

 WTF is wrong? How can I test whether port 8007 is really open and 

nc localhost 8007

or a portscan

or netstat -a

hth,

nico




Re: (EXPERTS ONLY) Bean Creation in Dispatch Servlet

2001-05-25 Thread Anne Dirkse

Hi Leon --

I had something similar happen, and it occours when I recompile the 
bean and then try to access it without restarting Tomcat.
My *guess* is that classes that are reloaded (when they have been 
loaded once then recompiled) have a different classloader.
Anyhow, restarting Tomcat has always resolved that problem for me.

Hope that helps.
Anne

 Leon Palermo wrote:
 
 Hello All,
 
 Let me preface this email by saying that I only put 'EXPERTS ONLY' so
 you hot shot programmers would actually read this email.  If you are
 reading this, it worked!
 
 I have an odd problem that I was hoping someone could help with.
 
 I have a servlet that all jsps in the system are dispatched from.  I
 create a bean in this servlet and add it to the request object like
 so...
 
 com.blah.blah.MyBean abean = (com.blah.blah.MyBean)
 Beans.instantiate(this.getClass().getClassLoader(),com.blah.blah.MyBean);
 ...
 request.setAttribute(thename, abean);
 
 I have also tried this to create the bean
 
 com.blah.blah.MyBean abean = new com.blah.blah.MyBean();
 
 and also tried to place the object in the request like so
 
 pageContext.setAttribute(thename, abean,
 PageContext.REQUEST_SCOPE);
 
 Anywho, I then have the following in my jsp page...
 
 jsp:useBean id=thename scope=request
 class=com.blah.blah.MyBean /
 
 I get a java.lang.ClassCastException from the jsp.  So, I decided to
 do a little error hunting in a jsp using the following code...
 
 %try{
 System.out.println(request.getAttribute(thename) == null);
 System.out.println(request.getAttribute(thename) instanceof
 com.blah.blah.MyBean);
 
 System.out.println(request.getAttribute(thename).getClass().getName());
 
 
System.out.println(zedak.docworx.jspsupport.beans.BrandBean)request.getAttribute(thename));
 }catch (ClassCastException e){
 System.out.println(CLASS CAST EXCEPTION!);
 }
 %
 
 The results of the code is as follows:
 
 false
 false
 com.blah.blah.MyBean
 CLASS CAST EXCEPTION!
 
 So, the attribute is present in the request object, it is not an
 instance of 'com.blah.blah.MyBean'; but the object's class name is
 'com.blah.blah.MyBean'.  Does anyone have an idea what is going on?
 How can the object's class name be 'com.blah.blah.MyBean' but not be
 able to cast to 'com.blah.blah.MyBean'?
 
 Thanks in advance!
 
 Leon Palermo



RE: Tomcat and SSL

2001-05-25 Thread Tim O'Neil

At 03:56 PM 5/25/2001 +0530, you wrote:
For Tomcat,
 The cert. should be kept in keystote with alias 'tomcat'.
ls the keystore where ur cert present and the one u specified in server.xml
the same?
ls the password in server.xml and for the keystore the same?
whats the error u r getting?

Another I noticed with my set up is that the password
for the alias as well as the global password for the
keystore has to be the same, and you can only have one
cert (key) in your store. At least that's what I found
with my set up. Can anyone tell me I'm daft? (Or confirm?)





Re: (EXPERTS ONLY) Bean Creation in Dispatch Servlet

2001-05-25 Thread anil

I am not an expert.
Every call has some kind of static class ID for the versioning. When you
compile a class,  it  increments. So you have your jsp/servlet compiled
as one class id (you have reference from servlet/jsp to bean) , if you
recompile your bean, then it is going to increment class id and you do
have versioning mismatch. I have seen this happens on RMI.

anil.

Leon Palermo wrote:

  Mahesh and others, After performing the test myself and looking at
 things, I found out that indeed the dispatch servlet is putting the
 bean in correctly and the jsps are utilizing them properly.  The
 problem occurs only after I compile any file used by the Bean.
 Although the Bean isn't compiled itself (the .class file remains the
 same); the compilation of a class imported by the bean causes the
 ClassCastException.  Only after restarting tomcat do things function
 properly until the next compilation of the file used by the Bean. As a
 result, I transfer the focus of this problem away from the jsp realm
 to the Java language realm.  Does anyone have any idea why the
 compilation of imported classes would cause a ClassCastException as
 previously described? Thanks again!




Re: Becoming a CA Authority

2001-05-25 Thread Tim O'Neil

At 04:45 PM 5/25/2001 +0200, you wrote:
Can someone tell me all the steps to become a CA Authority, create a new 
certificate and configure tomcat to use this certificate

Self sign your cert, and your a ca. Of course,
your clients will all get dialogs on their
browsers asking them if they want to trust your
unknown ca unless you can make them all add your
ca to their list of known ca's...




tomcat/linux question

2001-05-25 Thread Dante le Poole

Hi,

I have strange things happening when running tomcat 3.2.1 on linux on
sun 1.2 jdk.

When tomcat starts, the jvm creates a child-process. the child process
then creates up to 19 child-processes itself. Each of these processes
is taking the same amount of memory, i.e. 14MB! This is ridiculous, my
app is a small one and there is no way it could demand that much memory.
With 20 processes demanding 14MB of memory its bringing my 256MB machine
down to its knees.

Also, as soon as more than one single user is using my webapp, the
jvm hangs and no-one can access anymore servlets or jsp-pages! All I
can do is kill the jvm and restart tomcat, but as soon as more than
one user accesses it it dies again.

Can anyone shed some light on this? I don't know enough about java on
linux to know where to look.

Thanx,

Dante



jdbc realm question

2001-05-25 Thread james

I have a jdbc realm set up and running with the BASIC login config.
I set debug to 9 and started to notice that as soon as a request comes in
for a protected page/dir
tomcat tries to autheticate with username = null before prompting for
username and password, which is a problem since I would like to redirect
failed logins (401) but this little quirk causes every request to fail
initially





Strange Exceptions when displaying images...

2001-05-25 Thread Brandon Cruz

Does anyone know what causes these errors below?  The images show up
properly, but I keep getting these messages in the log...

2001-05-25 11:02:16 - Ctx(  ): IOException in: R(  + /uploadPics/10385.gif +
null) socket write error (code=10053)
2001-05-25 11:02:16 - Ctx(  ): IOException in: R(  +
/uploadPics/742sales.gif + null) Connection reset by peer: socket write
error

Just curious, thanks for any info!

Brandon




JSP to Servlet Loosing Session Info

2001-05-25 Thread Frank Lawlor

I noticed some posts about people having problems loosing the session
information when using JSPs with servlets.  For examples if I did the 
following in a JSP:

  FORM ACTION=/servlet/com.mycom.MyServlet ... 

when MyServlet got control, the Session was empty.

I found out that if I did this the right way and defined the servlet in
my web.xml, e.g.,

  servlet
 servlet-nametheServlet/servlet-name
 servlet-classcom.mycom.MyServlet/servlet-class
   /servlet
   servlet-mapping
  servlet-nametheServlet/servlet-name
  url-patternsomeServlet/url-pattern
   /servlet-mapping

and in the JSP said:

  FORM ACTION=someServlet ... 

then all worked fine.

You may have to adjust the path a bit depending upon where your
JSP is, etc.  The Tomcat mapping trace can help you debug
mapping problems.

Apparently there is some encoding function which can be applied
to make the FORM reference work, but I don't know what it is
(anyone know?).

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.






Install problems in FreeBSD 4.2

2001-05-25 Thread lance . hill


Hi,

I recently downloaded and installed jdk1.3.0_02 on a FreeBSD system. I
followed the instructions included with the jakarta-tomcat README which
indicated that I needed to set an environment variable of
JAVA_HOME=/usr/local/jdk1.3.0_02 and add $JAVA_HOME/bin to the PATH. The
instructions indicate that I should set the CLASSPATH if needed, but I do
not know if it is needed, or what it should be set to. When I try to run
./bootstrap.sh for jakarta-ant (install instructions for tomcat say it is
next step in setup of tomcat) I get:

/usr/local/jdk1.3.0_02/bin/java: /usr/bin/expr: not found
Error: can't find libjava.so.

The same messages pops up if I try to run ./build.sh for tomcat without
first installing ant.

The jdk was installed from j2sdk-1_3_1-linux-i386.bin.

How do I get past this error message to the next error message?

I have been unable to find documentation for setting this up in FreeBSD, so
if someone can point me in the direction of some, I would greatly
appreciate it.

Thanks.

BTW, apologies if this has already been received, but I keep getting
delivery failures.




Re: FATAL: configuration error

2001-05-25 Thread Aristide Aragon

 sealing violation is new in jdk 1.3 and addresses a potential security
 problem. The java web site has notes on this.You can mess with the
 order of the jar files on your class path to work around the problem.

 I put together a small util to check package definition conflicts and
 found that xerces.jar (and likely xalan.jar), crimson.jar and  saxon.jar
 all, for convenience, include some each of the dom, sax and jaxp packages.

I tried 'playing' with my classpath and it didn't work, I still ge that error.
I came up with this classpath:

/usr/local/jakarta/jaxp-1.1/jaxp.jar:/usr/local/jakarta/jaxp-1.1/xalan.jar:/usr/local/jakarta/jsse1.0.2/lib/jsse.jar:/usr/local/jakarta/jsse1.0.2/lib/jnet.jar:/usr/local/jakarta/jsse1.0.2/lib/jcert.jar:/usr/local/jakarta/jakarta-servletapi/lib/servlet.jar:/usr/local/jakarta/jakarta-ant-1.3/build/lib/ant.jar:/usr/local/jakarta/jaxp-1.1/parser.jar

and it still does't work. I tried placing xalan.jar before jaxp.jar, I also removed 
jaxp.jar and it still gve me the sealing violation. There was a crimson.jar in there, 
I removed it. I also tried removing xalan, but then I would get classes not found.

Could you help me solve that?

Thanks in advane

Aristide



RE: Jakarta NT Service

2001-05-25 Thread MAURER,ALEXANDRE (HP-Switzerland,ex1)

dear all

I posted once a problem related to starting Tomcat as NT Service (which did
not work on my Omnibook). 

I have been looking in comp.lang.java.programmer (Title=tomcat  Apache,
author Michael Tickle) and someone was mentioning the same problem as I
have; but there one guy answered that it was due to a 'typo' in the
wrapper.properties.
I hence went through mine and did the following : 
old
wrapper.tomcat_home=D:\Program Files\Jakarta\jakarta-tomcat-3.2.1\

new1 : (service starts and stops but logs errors in jmv.stderr, which is
new)
wrapper.tomcat_home=D:\Program Files\Jakarta\jakarta-tomcat-3.2.1

The error were :
java.lang.NoClassDefFoundError:
Files\Jakarta\jakarta-tomcat-3/2/1\classes;D:\Program
Exception in thread main java.lang.NoClassDefFoundError:
Files/Jakarta/jakarta-tomcat-3/2/1\classes;D:/Program
Exception in thread main java.lang.NoClassDefFoundError:
Files\Jakarta\jakarta-tomcat-3/2/1\classes;D:\Program

= Hmmm problem with   and . again the old long filename (brilliant
invention of MS !)
problem.

new2 : (and running)
wrapper.tomcat_home=D:\Progra~1\Jakarta\jakart~1.1

= I got the MSDOS names from the directory (I love NT/Explorer for that)

...and this works ! 

I attached my whole wrapper.properties (located in TOMCAT_HOME/conf) as
sample.

Apparently Apache is having the same problems but there enclosing pathnames
between '' will  work.
You might consider posting this in some newsgroup (or in a FAQ). I have a
bad access to newsgroups from within HP...

Cheers


--
Alexandre MAURER   Phone  : +41 (0) 1 735 7495
Hewlett-Packard SwitzerlandFax: +41 (0) 1 735 7708
HP Consulting Zurich   Mobile : +41 (0)79 634 8037
[mailto:[EMAIL PROTECTED]]
--  



 wrapper.properties


RequestDispatcher.include(String)/RequestDispatcher.forward(String)

2001-05-25 Thread Marco Baringer

Let's say I have a site where I map every URL to the same servlet,
there's something like this in my web.xml

servlet-mapping
  servlet-namebob/servlet-name
  url-pattern*/url-pattern
/servlet-mapping

This precludes me from having anything else on my site, which is ok
with me, almost. My servlets usually do their work and then use a
forward or an include to get a jsp page to view the results, however
in this case whatever jsp i try to include i get the servlet, the
servlet starts trying to include itself and it takes about 4 seconds
to a stack overflow in the JVM. Even if I have a jsp in the context
tomcat always calls the servlet. this is being done because i have a
site with one and only servlet which takes one and only parameter and
so i've decided to use the name i call the servlet with (the URI) as
the parameter. This solution is simple and I wuite like it, but I
can't show the results short of the servlet use
Request.getWriter().print(...) which is something I'd rather avoid.

Question: 
1) Can I include a resource which is on the file system and bypass
tomcat's parsing of the resource (i want /t.jsp and not to call the
servlet as /t.jsp)?

2) if not can i exclude some urls from the url-pattern?

-- 
-Marco
Ring the bells that still can ring.
Forget the perfect offering.
There's a crack in everything.
It's how the light gets in.
-Isonard Cohen

 PGP signature


RE: FATAL: configuration error

2001-05-25 Thread Brett Knights

There isn't much else I can tell you besides to check the notes on the sun website so 
you understand what the problem is and can
figure out how you might go about fixing it.

You might find the attached class useful in identifying which jar files have potential 
conflicts though I haven't made any effort to
find out which packages are sealed. (which wouldn't be that big a deal)

It operates on the current classpath so you might have to use the -cp option so it 
checks the classpath of your application.

HTH

 -Original Message-
 From: Aristide Aragon [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 25, 2001 9:47 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: FATAL: configuration error


  sealing violation is new in jdk 1.3 and addresses a
 potential security
  problem. The java web site has notes on this.You can
 mess with the
  order of the jar files on your class path to work around
 the problem.
 
  I put together a small util to check package definition
 conflicts and
  found that xerces.jar (and likely xalan.jar), crimson.jar
 and  saxon.jar
  all, for convenience, include some each of the dom, sax and
 jaxp packages.

 I tried 'playing' with my classpath and it didn't work, I
 still ge that error.
 I came up with this classpath:

 /usr/local/jakarta/jaxp-1.1/jaxp.jar:/usr/local/jakarta/jaxp-1
.1/xalan.jar:/usr/local/jakarta/jsse1.0.2/lib/jsse.jar:/usr/local/jakarta/jsse1.0.2/lib/jnet.jar:/usr/local/jakart
a/jsse1.0.2/lib/jcert.jar:/usr/local/jakarta/jakarta-servletap
 i/lib/servlet.jar:/usr/local/jakarta/jakarta-ant-1.3/build/lib
 /ant.jar:/usr/local/jakarta/jaxp-1.1/parser.jar

 and it still does't work. I tried placing xalan.jar before
 jaxp.jar, I also removed jaxp.jar and it still gve me the
 sealing violation. There was a crimson.jar in there, I
 removed it. I also tried removing xalan, but then I would get
 classes not found.

 Could you help me solve that?

 Thanks in advane

 Aristide



 PackageConflicts.java


Re: (EXPERTS ONLY) Bean Creation in Dispatch Servlet

2001-05-25 Thread Guido Medina
Title: Re: problems installing tomcat on linux



Excuse me, you have this: 

 
System.out.println(zedak.docworx.jspsupport.beans.BrandBean)request.getAttribute("thename"));

before the catch statement, one question: Did you 
check very well what you wrote in that line ?

Guido.

  - Original Message - 
  From: 
  Leon Palermo 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, May 25, 2001 9:01 AM
  Subject: (EXPERTS ONLY) Bean Creation in 
  Dispatch Servlet
  
  Hello All,
  
  Let me preface this email by saying that I only 
  put 'EXPERTS ONLY' so you hot shot programmers would actually read this 
  email. If you are reading this, it worked!
  
  I have an odd problem that I was hoping someone 
  could help with.
  
  I have a servlet that all jsps in the system are 
  dispatched from. I create a bean in this servlet and add it to the 
  request object like so...
  
   com.blah.blah.MyBean abean = 
  (com.blah.blah.MyBean) 
  Beans.instantiate(this.getClass().getClassLoader(),"com.blah.blah.MyBean"); 
  ...
   
  request.setAttribute("thename", 
  abean); 
  
  I have also tried this to create the 
  bean
  
   com.blah.blah.MyBean abean = 
  new com.blah.blah.MyBean();
  
  and also tried to place the object in the request like 
so
  
   
  pageContext.setAttribute("thename", abean, 
  PageContext.REQUEST_SCOPE);
  
  Anywho, I then have the following in my jsp 
  page...
  
   jsp:useBean id="thename" 
  scope="request" class="com.blah.blah.MyBean" /
  
  I get a java.lang.ClassCastException from the 
  jsp. So, I decided to do a little error hunting ina jsp using the 
  following code...
  
  %try{ 
  System.out.println(request.getAttribute("thename") == null);
   
  System.out.println(request.getAttribute("thename") instanceof 
  com.blah.blah.MyBean); 
  System.out.println(request.getAttribute("thename").getClass().getName()); 
  System.out.println(zedak.docworx.jspsupport.beans.BrandBean)request.getAttribute("thename"));
  }catch (ClassCastException 
  e){ System.out.println("CLASS CAST 
  EXCEPTION!");}%
  
  The results of the code is as 
  follows:
  
   false
   false
   
  com.blah.blah.MyBean
   CLASS CAST 
  EXCEPTION!
  
  So, the attribute is present in the request 
  object, it is not an instance of 'com.blah.blah.MyBean'; but the object's 
  class name is 'com.blah.blah.MyBean'. Does anyone have an idea what is 
  going on? How canthe object's class name be 'com.blah.blah.MyBean' 
  but not be able to cast to 'com.blah.blah.MyBean'?
  
  Thanks in advance!
  
  Leon 
Palermo


Re: problems installing tomcat on linux

2001-05-25 Thread Duane Douglas

At 01:13 PM 5/25/2001 +0100, you wrote:

Duane: Can you post the messages that you got please

i piped ./startup from bash to a text file.  below is the output:

Using classpath: 
/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:/usr/local/to 
mcat/lib/jaxp.jar:/usr/local/tomcat/lib/parser.jar:/usr/local/tomcat/lib/ser 
vlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webserver.jar:/usr 
/local/jdk1.3.1/lib/tools.jar
2001-05-25 01:05:10 - ContextManager: Adding context Ctx( /examples )
2001-05-25 01:05:10 - ContextManager: Adding context Ctx( /admin )
Starting tomcat. Check logs/tomcat.log for error messages
2001-05-25 01:05:10 - ContextManager: Adding context Ctx(  )
2001-05-25 01:05:10 - ContextManager: Adding context Ctx( /test )
2001-05-25 01:05:12 - PoolTcpConnector: Starting HttpConnectionHandler on 8080
2001-05-25 01:05:12 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007


if (duane.douglas) { coder = asp * cold fusion * xml * sql server * javascript }



RE: I'm really getting tired of these messages...

2001-05-25 Thread Martin van den Bemt

I attached the mails I get.. The e-mail address is in there

 -Original Message-
 From: Milt Epstein [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 25, 2001 2:02 PM
 To: [EMAIL PROTECTED]
 Subject: RE: I'm really getting tired of these messages...


 On Fri, 25 May 2001, Kyle Burke wrote:

  I agree.  It is very tedious.  It's definitely people who signed up
  for the list with a web-based mail account and just stopped using
  it.  It gets shut off because it's neglected and everyone on the
  list pays the price.

 I don't think you can so easily categorize the problem email
 addresses.  When this has come up in the past, the problem was
 typically that the email address that is bouncing did not match up to
 any subscribed address -- perhaps because the message is getting
 forwarded a number of times.  In such cases, it isn't so easy to find
 the address to remove from the list.


  Can we report these bogus emails to the moderator so they can remove
  that email?
 
  Kyle
 
  -Original Message-
  From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, May 24, 2001 8:48 PM
  To: [EMAIL PROTECTED]
  Subject: RE: I'm really getting tired of these messages...
 
 
  It's only when I send a message to the maillinglist and that's a lot
  lately.. Maby that email needs to be unsubscribed by someone.. (it's not
  mine...)
 
  Mvgr,
  Martin
 
   -Original Message-
   From: Guido Medina [mailto:[EMAIL PROTECTED]]
   Sent: Friday, May 25, 2001 2:44 AM
   To: [EMAIL PROTECTED]
   Subject: Re: I'm really getting tired of these messages...
  
  
   Maybe two Email that are subscribe that don't exists already...
   - Original Message -
   From: Martin van den Bemt [EMAIL PROTECTED]
   To: jakarta-tomcat-user [EMAIL PROTECTED]
   Sent: Thursday, May 24, 2001 8:26 PM
   Subject: I'm really getting tired of these messages...
  
  
Is something wrong on the maillinglist??
   
  
 

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






Connection/Database pooling

2001-05-25 Thread Mike Alba



Hi,

 I was wondering if someone can give me a 
little advice.
I am currently using Apache webserver, 
Tomcatserver,
and an Oracle database. I have created a wireless 
app
using JSPs/WML. Basically I was wondering how best 

to architect it to take full advantage of Tomcats 
connection
and database pooling? Should I be using servlets 
versus
JSPs? Sorry if this is a dumb 
question.

 Thanks for your help in 
advance!






Re: (EXPERTS ONLY) Bean Creation in Dispatch Servlet

2001-05-25 Thread Milt Epstein

On Fri, 25 May 2001, Leon Palermo wrote:

 -Original Message-
 From: Leon Palermo [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 25, 2001 2:02 PM
 To: [EMAIL PROTECTED]
 Subject: (EXPERTS ONLY) Bean Creation in Dispatch Servlet


 Hello All,

 Let me preface this email by saying that I only put 'EXPERTS ONLY'
 so you hot shot programmers would actually read this email.  If you
 are reading this, it worked!
[ ... ]

What if we stopped reading it here?

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




Re: Connection/Database pooling

2001-05-25 Thread Gary Lawrence Murphy

Not a dumb question at all: DB connection pooling is not intrinsic to
Tomcat, but must be grafted on using a 3rd-party library (there are
many).  None of these will prevent you from using JSP; the connection
pool looks exactly like a normal JDBC connection.

You may want to browse through the docs for Jakarta-Turbine as an
alternative application environment that sits on top of Tomcat and
provides many services, including db connection pools.

-- 
Gary Lawrence Murphy [EMAIL PROTECTED] TeleDynamics Communications Inc
Business Innovations Through Open Source Systems: http://www.teledyn.com
Computers are useless.  They can only give you answers.(Pablo Picasso)




Strange Exceptions when displaying images (does this happen for everyone/anyone else)???

2001-05-25 Thread Brandon Cruz

-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 25, 2001 11:08 AM
To: [EMAIL PROTECTED]
Subject: Strange Exceptions when displaying images...


Does anyone know what causes these errors below?  Is this something that
anyone else experiences?  The images show up properly, but I keep getting
these messages in the log...

2001-05-25 11:02:16 - Ctx(  ): IOException in: R(  + /uploadPics/10385.gif +
null) socket write error (code=10053)
2001-05-25 11:02:16 - Ctx(  ): IOException in: R(  +
/uploadPics/742sales.gif + null) Connection reset by peer: socket write
error

Just curious, thanks for any info!

Brandon





CLASSLOADERS!

2001-05-25 Thread Leon Palermo



Hello all,

Does anyone out there have knowledge of 
ClassLoaders in Tomcat? More specifically, whydoes the ClassLoader 
for the compiled JSPsdiffer from the standard servlets within a web 
application? Is there any way to synchronize the two while the 
application's context is reloadable? Thanks in advance!

Leon Palermo


Re: (EXPERTS ONLY) Bean Creation in Dispatch Servlet

2001-05-25 Thread Leon Palermo

Clearly then you would not be the expert I was looking for :)

Leon

 
 
  Hello All,
 
  Let me preface this email by saying that I only put 'EXPERTS ONLY'
  so you hot shot programmers would actually read this email.  If you
  are reading this, it worked!
 [ ... ]
 
 What if we stopped reading it here?
 
 Milt Epstein
 Research Programmer
 Software/Systems Development Group
 Computing and Communications Services Office (CCSO)
 University of Illinois at Urbana-Champaign (UIUC)
 [EMAIL PROTECTED]




RE: I'm really getting tired of these messages...

2001-05-25 Thread Milt Epstein

On Fri, 25 May 2001, Martin van den Bemt wrote:

 I attached the mails I get.. The e-mail address is in there

Attached it where?

In any case, knowing what address is bouncing isn't the problem --
that's in the bounce message.  The problem is finding the subscribed
address that corresponds to that bad address.  Due to a variety of
reasons, the address someone actually receives email at may be very
different than the one they originally signed up with.


  -Original Message-
  From: Milt Epstein [mailto:[EMAIL PROTECTED]]
  Sent: Friday, May 25, 2001 2:02 PM
  To: [EMAIL PROTECTED]
  Subject: RE: I'm really getting tired of these messages...
 
 
  On Fri, 25 May 2001, Kyle Burke wrote:
 
   I agree.  It is very tedious.  It's definitely people who signed up
   for the list with a web-based mail account and just stopped using
   it.  It gets shut off because it's neglected and everyone on the
   list pays the price.
 
  I don't think you can so easily categorize the problem email
  addresses.  When this has come up in the past, the problem was
  typically that the email address that is bouncing did not match up to
  any subscribed address -- perhaps because the message is getting
  forwarded a number of times.  In such cases, it isn't so easy to find
  the address to remove from the list.
 
 
   Can we report these bogus emails to the moderator so they can remove
   that email?
  
   Kyle
  
   -Original Message-
   From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, May 24, 2001 8:48 PM
   To: [EMAIL PROTECTED]
   Subject: RE: I'm really getting tired of these messages...
  
  
   It's only when I send a message to the maillinglist and that's a lot
   lately.. Maby that email needs to be unsubscribed by someone.. (it's not
   mine...)
  
   Mvgr,
   Martin
  
-Original Message-
From: Guido Medina [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 25, 2001 2:44 AM
To: [EMAIL PROTECTED]
Subject: Re: I'm really getting tired of these messages...
   
   
Maybe two Email that are subscribe that don't exists already...
- Original Message -
From: Martin van den Bemt [EMAIL PROTECTED]
To: jakarta-tomcat-user [EMAIL PROTECTED]
Sent: Thursday, May 24, 2001 8:26 PM
Subject: I'm really getting tired of these messages...
   
   
 Is something wrong on the maillinglist??

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


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




CLASSLOADERS! FW: Contexts, Classes, Variables

2001-05-25 Thread Ronald G. Louzon
Title: RE: Contexts, Classes, Variables



This 
URL contains a good discussion concerning the classloaders.

-Original Message-From: Cox, Charlie 
[mailto:[EMAIL PROTECTED]]Sent: Monday, May 21, 2001 7:53 
AMTo: '[EMAIL PROTECTED]'Subject: RE: 
Contexts, Classes, Variables
My understanding is that if your class is in your classpath, it 
will be loaded once by java's bootstrap loader and they would share the same 
instance. If your class is part of your web application, it would be a different 
instance for each context.
The following thread is a good explaination of the classloader 
: http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg13260.html 

Charlie 
-Original Message- From: Zach 
Hollandsworth [mailto:[EMAIL PROTECTED]] 
Sent: Friday, May 18, 2001 10:49 AM To: 
[EMAIL PROTECTED] Subject: Contexts, 
Classes, Variables 
1) In Tomcat 3.2.1 do separate contexts see static variables of 
a class the same? Or do they have separate 
ones? 
2) different versions of the same class in two contexts on the 
same tomcat? (placed in the /WEB-INF/classes directory 
of that context) 
Zach Hollandsworth 


RE: Strange Exceptions when displaying images (does this happen for everyone/anyone else)???

2001-05-25 Thread Randy Layman


I would suggest looking in the mailing list archive for this - I
wrote a very detailed explanation of why this happens before.  The short
version, its harmless.

Randy

 -Original Message-
 From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 25, 2001 2:17 PM
 To: [EMAIL PROTECTED]
 Subject: Strange Exceptions when displaying images (does this 
 happen for
 everyone/anyone else)???
 
 
 -Original Message-
 From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 25, 2001 11:08 AM
 To: [EMAIL PROTECTED]
 Subject: Strange Exceptions when displaying images...
 
 
 Does anyone know what causes these errors below?  Is this 
 something that
 anyone else experiences?  The images show up properly, but I 
 keep getting
 these messages in the log...
 
 2001-05-25 11:02:16 - Ctx(  ): IOException in: R(  + 
 /uploadPics/10385.gif +
 null) socket write error (code=10053)
 2001-05-25 11:02:16 - Ctx(  ): IOException in: R(  +
 /uploadPics/742sales.gif + null) Connection reset by peer: 
 socket write
 error
 
 Just curious, thanks for any info!
 
 Brandon
 
 



RE: I'm really getting tired of these messages...

2001-05-25 Thread Martin van den Bemt

For the sake of solving this ;-)) (will deliver me 2 more of those e-mails).
I attach it again (the first message about this to the maillinglist
contained the attachments).


Mvgr,
Martin

 -Original Message-
 From: Milt Epstein [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 25, 2001 8:27 PM
 To: [EMAIL PROTECTED]
 Subject: RE: I'm really getting tired of these messages...


 On Fri, 25 May 2001, Martin van den Bemt wrote:

  I attached the mails I get.. The e-mail address is in there

 Attached it where?

 In any case, knowing what address is bouncing isn't the problem --
 that's in the bounce message.  The problem is finding the subscribed
 address that corresponds to that bad address.  Due to a variety of
 reasons, the address someone actually receives email at may be very
 different than the one they originally signed up with.


   -Original Message-
   From: Milt Epstein [mailto:[EMAIL PROTECTED]]
   Sent: Friday, May 25, 2001 2:02 PM
   To: [EMAIL PROTECTED]
   Subject: RE: I'm really getting tired of these messages...
  
  
   On Fri, 25 May 2001, Kyle Burke wrote:
  
I agree.  It is very tedious.  It's definitely people who signed up
for the list with a web-based mail account and just stopped using
it.  It gets shut off because it's neglected and everyone on the
list pays the price.
  
   I don't think you can so easily categorize the problem email
   addresses.  When this has come up in the past, the problem was
   typically that the email address that is bouncing did not match up to
   any subscribed address -- perhaps because the message is getting
   forwarded a number of times.  In such cases, it isn't so easy to find
   the address to remove from the list.
  
  
Can we report these bogus emails to the moderator so they can remove
that email?
   
Kyle
   
-Original Message-
From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 24, 2001 8:48 PM
To: [EMAIL PROTECTED]
Subject: RE: I'm really getting tired of these messages...
   
   
It's only when I send a message to the maillinglist and that's a lot
lately.. Maby that email needs to be unsubscribed by
 someone.. (it's not
mine...)
   
Mvgr,
Martin
   
 -Original Message-
 From: Guido Medina [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 25, 2001 2:44 AM
 To: [EMAIL PROTECTED]
 Subject: Re: I'm really getting tired of these messages...


 Maybe two Email that are subscribe that don't exists already...
 - Original Message -
 From: Martin van den Bemt [EMAIL PROTECTED]
 To: jakarta-tomcat-user [EMAIL PROTECTED]
 Sent: Thursday, May 24, 2001 8:26 PM
 Subject: I'm really getting tired of these messages...


  Is something wrong on the maillinglist??
 

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

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





The original message was received at Fri, 25 May 2001 10:50:51 -0700 (PDT)
from localhost [127.0.0.1]

   - The following addresses had permanent fatal errors -
[EMAIL PROTECTED]
(reason: 550 User unknown)

   - Transcript of session follows -
... while talking to inbound.namezero.com.criticalpath.net.:
 RCPT To:[EMAIL PROTECTED]
 550 User unknown
550 5.1.1 [EMAIL PROTECTED]... User unknown


Reporting-MTA: dns; mail-in.namezero.com
Received-From-MTA: DNS; localhost
Arrival-Date: Fri, 25 May 2001 10:50:51 -0700 (PDT)

Final-Recipient: RFC822; [EMAIL PROTECTED]
Action: failed
Status: 5.1.1
Remote-MTA: DNS; inbound.namezero.com.criticalpath.net
Diagnostic-Code: SMTP; 550 User unknown
Last-Attempt-Date: Fri, 25 May 2001 10:50:52 -0700 (PDT)


Received: from lavender (localhost [127.0.0.1])
	by mail-in.namezero.com (8.11.2/8.11.2) with ESMTP id f4PHonE11695
	for [EMAIL PROTECTED]; Fri, 25 May 2001 10:50:51 -0700 (PDT)
Received: from apache.org (HELO apache.org) (h31.sny.collab.net/64.208.42.41)
  by lavender with SMTP; Fri, 25 May 2001 10:50:48 -0700 (PDT)
  Apparently from: [EMAIL PROTECTED]
  On behalf of:
  [EMAIL PROTECTED]
Received: (qmail 67897 invoked by uid 500); 25 May 2001 17:47:34 -
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
Reply-To: [EMAIL PROTECTED]
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:[EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
Received: (qmail 67870 invoked from network); 25 May 2001 17:47:31 -
Received: from idiotmedia.com (HELO 4tune.net) (216.122.12.44)
  by h31.sny.collab.net with SMTP; 25 May 2001 17:47:31 -
Received: from guru 

RE: I'm really getting tired of these messages...

2001-05-25 Thread Randy Layman


The message bouncing from netzero is for subscribed user
[EMAIL PROTECTED] and should be easy enough for someone to remove.

The second bouncing message, however, is more complicated.  Looking
at the transcript that it includes, it would appear that the itreya.com mail
server (specifically win2kweb.itreya.com) isn't correctly processing this
mailing list (it seems to think that messages to the list should be relayed
instead of delivered to local members.  This should be resolved by removing
everyone subscribed from itreya.com, it seems like the jakarta and
itreya.com servers are talking directly, implying that this message is not
coming straight fro a subscribed address. 

Randy

 -Original Message-
 From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 25, 2001 2:43 PM
 To: [EMAIL PROTECTED]
 Subject: RE: I'm really getting tired of these messages...
 
 
 For the sake of solving this ;-)) (will deliver me 2 more of 
 those e-mails).
 I attach it again (the first message about this to the maillinglist
 contained the attachments).
 
 
 Mvgr,
 Martin
 
  -Original Message-
  From: Milt Epstein [mailto:[EMAIL PROTECTED]]
  Sent: Friday, May 25, 2001 8:27 PM
  To: [EMAIL PROTECTED]
  Subject: RE: I'm really getting tired of these messages...
 
 
  On Fri, 25 May 2001, Martin van den Bemt wrote:
 
   I attached the mails I get.. The e-mail address is in there
 
  Attached it where?
 
  In any case, knowing what address is bouncing isn't the problem --
  that's in the bounce message.  The problem is finding the subscribed
  address that corresponds to that bad address.  Due to a variety of
  reasons, the address someone actually receives email at may be very
  different than the one they originally signed up with.
 
 
-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 25, 2001 2:02 PM
To: [EMAIL PROTECTED]
Subject: RE: I'm really getting tired of these messages...
   
   
On Fri, 25 May 2001, Kyle Burke wrote:
   
 I agree.  It is very tedious.  It's definitely people 
 who signed up
 for the list with a web-based mail account and just 
 stopped using
 it.  It gets shut off because it's neglected and 
 everyone on the
 list pays the price.
   
I don't think you can so easily categorize the problem email
addresses.  When this has come up in the past, the problem was
typically that the email address that is bouncing did 
 not match up to
any subscribed address -- perhaps because the message is getting
forwarded a number of times.  In such cases, it isn't 
 so easy to find
the address to remove from the list.
   
   
 Can we report these bogus emails to the moderator so 
 they can remove
 that email?

 Kyle

 -Original Message-
 From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 24, 2001 8:48 PM
 To: [EMAIL PROTECTED]
 Subject: RE: I'm really getting tired of these messages...


 It's only when I send a message to the maillinglist 
 and that's a lot
 lately.. Maby that email needs to be unsubscribed by
  someone.. (it's not
 mine...)

 Mvgr,
 Martin

  -Original Message-
  From: Guido Medina [mailto:[EMAIL PROTECTED]]
  Sent: Friday, May 25, 2001 2:44 AM
  To: [EMAIL PROTECTED]
  Subject: Re: I'm really getting tired of these messages...
 
 
  Maybe two Email that are subscribe that don't 
 exists already...
  - Original Message -
  From: Martin van den Bemt [EMAIL PROTECTED]
  To: jakarta-tomcat-user [EMAIL PROTECTED]
  Sent: Thursday, May 24, 2001 8:26 PM
  Subject: I'm really getting tired of these messages...
 
 
   Is something wrong on the maillinglist??
  
 

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



Re: Install problems in FreeBSD 4.2

2001-05-25 Thread Scott Jones

Hi Lance,

I experienced the same problem on RedHat 7.1.  I solved it with a few
environment variables:

export LD_ASSUME_KERNEL=2.2.5
export
LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/i386/hotspot:$JAVA_HOME/jre/lib/i386/nati
ve_threads:$JAVA_HOME/jre/lib/i386

That did it for me, I don't know if it'd have an effect for you, but thought
I'd send this along anyways.

Cheers,

Scott

- Original Message -
From: Lance Hill [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 24, 2001 2:19 PM
Subject: Install problems in FreeBSD 4.2


 Hi,

 I recently downloaded and installed jdk1.3.0_02 on a FreeBSD system. I
 followed the instructions included with the jakarta-tomcat README which
 indicated that I needed to set an environment variable of
 JAVA_HOME=/usr/local/jdk1.3.0_02 and add $JAVA_HOME/bin to the PATH. The
 instructions indicate that I should set the CLASSPATH if needed, but I do
 not know if it is needed, or what it should be set to. When I try to run
 ./bootstrap.sh for jakarta-ant (install instructions for tomcat say it is
 next step in setup of tomcat) I get:

 /usr/local/jdk1.3.0_02/bin/java: /usr/bin/expr: not found
 Error: can't find libjava.so.

 The same messages pops up if I try to run ./build.sh for tomcat without
 first installing ant.

 The jdk was installed from j2sdk-1_3_1-linux-i386.bin.

 How do I get past this error message to the next error message?

 I have been unable to find documentation for setting this up in FreeBSD,
so
 if someone can point me in the direction of some, I would greatly
appreciate
 it.

 Thanks.

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






Defining host IP in multi-homed server, (Tomcat 3.2)

2001-05-25 Thread Chris Janicki

I'm setting up Tomcat on a proxy host (with two IP addresses).  I want 
Tomcat to bind to the private address (not the public network address).  
I see server.xml references to specifying a host for connection to 
Apache, but this application will be running solo.  Is it possible to 
specify the binding host IP in Tomcat 3.2?

Thanks
--
Chris Janicki
781-662-9424
Industrious Activities, Inc.
http://www.ia-inc.com




RE: (EXPERTS ONLY) Bean Creation in Dispatch Servlet

2001-05-25 Thread Kyle Burke

LOL! now that's rich!

-Original Message-
From: Leon Palermo [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 25, 2001 2:25 PM
To: [EMAIL PROTECTED]
Subject: Re: (EXPERTS ONLY) Bean Creation in Dispatch Servlet


Clearly then you would not be the expert I was looking for :)

Leon

 
 
  Hello All,
 
  Let me preface this email by saying that I only put 'EXPERTS ONLY'
  so you hot shot programmers would actually read this email.  If you
  are reading this, it worked!
 [ ... ]
 
 What if we stopped reading it here?
 
 Milt Epstein
 Research Programmer
 Software/Systems Development Group
 Computing and Communications Services Office (CCSO)
 University of Illinois at Urbana-Champaign (UIUC)
 [EMAIL PROTECTED]




How to implement custom authentication module in Tomcat?

2001-05-25 Thread Niu, Jean (J.)

I am using Tomcat as a standalone web server. Right now, I want to implement
a custom authentication module
to protect certain directories.

Previously, we already did for the Netscape Enterprise Server 3.6, here are
three changes we made in the obj.conf file in the NES server:

Init funcs=cookie-auth,cookie-init,cookie-check fn=load-modules
  shlib=/opt/ns-wp/wp-solaris.so
 Init cookie=WP_Cookie fn=cookie-init
  keyring=/opt/ns-wp/keyring.public

Object name=default
 NameTrans from=/mydir/project fn=assign-name name=WP-Protect
 NameTrans from=/mc-icons fn=pfx2dir dir=/usr/ns-home/ns-icons

Object name=WP-Protect
 AuthTrans fn=cookie-auth auth-type=basic
 PathCheck login=https://www.password.mysite.com/login.cgi;
fn=cookie-check
  auth-type=basic extfile=.wpauth
  secfile=/opt/ns-wsl/userperm.db
 /Object

How can I implement these changes in Tomcat? The biggest problem is NES is
gone, we can't plug in Tomcat with NES server, so we have to configure
Tomcat alone to implement authentication function.

JN



RE: I'm really getting tired of these messages...

2001-05-25 Thread Milt Epstein

On Fri, 25 May 2001, Martin van den Bemt wrote:

 For the sake of solving this ;-)) (will deliver me 2 more of those
 e-mails).  I attach it again (the first message about this to the
 maillinglist contained the attachments).

I don't think you're understanding what I'm saying.

It's not clear at all that this is going to solve anything.

Everyone knows what the bad addresses are -- I and everyone else who
posts to the lists gets those bounce messages.  And most likely the
list owners/managers do as well.  The point is, just knowing the bad
addresses doesn't necessarily help.  The people whose bad addresses
those are may be subscribed with totally different addresses.  So it
may be difficult or impossible to figure out from those bad addresses
the corresponding subscribed addresses to remove from the list so that
those bounces will stop.

For example, suppose [EMAIL PROTECTED] is subcribed to the list.  But because of
address changes/canonicalization/forwarding/relaying/whatever, the
actual receiving address is [EMAIL PROTECTED]  Now suppose that mail to that
address bounces for some reason or other.  When that bounce comes in
saying [EMAIL PROTECTED] is a bad address, how are you going to know to remove
[EMAIL PROTECTED]?


  -Original Message-
  From: Milt Epstein [mailto:[EMAIL PROTECTED]]
  Sent: Friday, May 25, 2001 8:27 PM
  To: [EMAIL PROTECTED]
  Subject: RE: I'm really getting tired of these messages...
 
 
  On Fri, 25 May 2001, Martin van den Bemt wrote:
 
   I attached the mails I get.. The e-mail address is in there
 
  Attached it where?
 
  In any case, knowing what address is bouncing isn't the problem --
  that's in the bounce message.  The problem is finding the subscribed
  address that corresponds to that bad address.  Due to a variety of
  reasons, the address someone actually receives email at may be very
  different than the one they originally signed up with.
 
 
-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 25, 2001 2:02 PM
To: [EMAIL PROTECTED]
Subject: RE: I'm really getting tired of these messages...
   
   
On Fri, 25 May 2001, Kyle Burke wrote:
   
 I agree.  It is very tedious.  It's definitely people who signed up
 for the list with a web-based mail account and just stopped using
 it.  It gets shut off because it's neglected and everyone on the
 list pays the price.
   
I don't think you can so easily categorize the problem email
addresses.  When this has come up in the past, the problem was
typically that the email address that is bouncing did not match up to
any subscribed address -- perhaps because the message is getting
forwarded a number of times.  In such cases, it isn't so easy to find
the address to remove from the list.
   
   
 Can we report these bogus emails to the moderator so they can remove
 that email?

 Kyle

 -Original Message-
 From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 24, 2001 8:48 PM
 To: [EMAIL PROTECTED]
 Subject: RE: I'm really getting tired of these messages...


 It's only when I send a message to the maillinglist and that's a lot
 lately.. Maby that email needs to be unsubscribed by
  someone.. (it's not
 mine...)

 Mvgr,
 Martin

  -Original Message-
  From: Guido Medina [mailto:[EMAIL PROTECTED]]
  Sent: Friday, May 25, 2001 2:44 AM
  To: [EMAIL PROTECTED]
  Subject: Re: I'm really getting tired of these messages...
 
 
  Maybe two Email that are subscribe that don't exists already...
  - Original Message -
  From: Martin van den Bemt [EMAIL PROTECTED]
  To: jakarta-tomcat-user [EMAIL PROTECTED]
  Sent: Thursday, May 24, 2001 8:26 PM
  Subject: I'm really getting tired of these messages...
 
 
   Is something wrong on the maillinglist??
  
 

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


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




RE: I'm really getting tired of these messages...

2001-05-25 Thread Martin van den Bemt

Isn't there something like a mailinglist manager, who can delete entries
from the mailinglist ?

 -Original Message-
 From: Milt Epstein [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 25, 2001 11:40 PM
 To: [EMAIL PROTECTED]
 Subject: RE: I'm really getting tired of these messages...


 On Fri, 25 May 2001, Martin van den Bemt wrote:

  For the sake of solving this ;-)) (will deliver me 2 more of those
  e-mails).  I attach it again (the first message about this to the
  maillinglist contained the attachments).

 I don't think you're understanding what I'm saying.

 It's not clear at all that this is going to solve anything.

 Everyone knows what the bad addresses are -- I and everyone else who
 posts to the lists gets those bounce messages.  And most likely the
 list owners/managers do as well.  The point is, just knowing the bad
 addresses doesn't necessarily help.  The people whose bad addresses
 those are may be subscribed with totally different addresses.  So it
 may be difficult or impossible to figure out from those bad addresses
 the corresponding subscribed addresses to remove from the list so that
 those bounces will stop.

 For example, suppose [EMAIL PROTECTED] is subcribed to the list.  But because of
 address changes/canonicalization/forwarding/relaying/whatever, the
 actual receiving address is [EMAIL PROTECTED]  Now suppose that mail to that
 address bounces for some reason or other.  When that bounce comes in
 saying [EMAIL PROTECTED] is a bad address, how are you going to know to remove
 [EMAIL PROTECTED]?


   -Original Message-
   From: Milt Epstein [mailto:[EMAIL PROTECTED]]
   Sent: Friday, May 25, 2001 8:27 PM
   To: [EMAIL PROTECTED]
   Subject: RE: I'm really getting tired of these messages...
  
  
   On Fri, 25 May 2001, Martin van den Bemt wrote:
  
I attached the mails I get.. The e-mail address is in there
  
   Attached it where?
  
   In any case, knowing what address is bouncing isn't the problem --
   that's in the bounce message.  The problem is finding the subscribed
   address that corresponds to that bad address.  Due to a variety of
   reasons, the address someone actually receives email at may be very
   different than the one they originally signed up with.
  
  
 -Original Message-
 From: Milt Epstein [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 25, 2001 2:02 PM
 To: [EMAIL PROTECTED]
 Subject: RE: I'm really getting tired of these messages...


 On Fri, 25 May 2001, Kyle Burke wrote:

  I agree.  It is very tedious.  It's definitely people
 who signed up
  for the list with a web-based mail account and just
 stopped using
  it.  It gets shut off because it's neglected and everyone on the
  list pays the price.

 I don't think you can so easily categorize the problem email
 addresses.  When this has come up in the past, the problem was
 typically that the email address that is bouncing did not
 match up to
 any subscribed address -- perhaps because the message is getting
 forwarded a number of times.  In such cases, it isn't so
 easy to find
 the address to remove from the list.


  Can we report these bogus emails to the moderator so
 they can remove
  that email?
 
  Kyle
 
  -Original Message-
  From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, May 24, 2001 8:48 PM
  To: [EMAIL PROTECTED]
  Subject: RE: I'm really getting tired of these messages...
 
 
  It's only when I send a message to the maillinglist and
 that's a lot
  lately.. Maby that email needs to be unsubscribed by
   someone.. (it's not
  mine...)
 
  Mvgr,
  Martin
 
   -Original Message-
   From: Guido Medina [mailto:[EMAIL PROTECTED]]
   Sent: Friday, May 25, 2001 2:44 AM
   To: [EMAIL PROTECTED]
   Subject: Re: I'm really getting tired of these messages...
  
  
   Maybe two Email that are subscribe that don't exists
 already...
   - Original Message -
   From: Martin van den Bemt [EMAIL PROTECTED]
   To: jakarta-tomcat-user [EMAIL PROTECTED]
   Sent: Thursday, May 24, 2001 8:26 PM
   Subject: I'm really getting tired of these messages...
  
  
Is something wrong on the maillinglist??
   
  
 

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


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

 Milt Epstein
 Research Programmer
 Software/Systems Development Group
 Computing and Communications Services Office (CCSO)
 University of 

Trouble configuring a .jar file

2001-05-25 Thread eric willialms \(mmi\)

Hello,
i have written a servlet and it has compiled correctly but when I try and
execute the .jar file from Tomcat i get the following error. i believe i
have placed the file in the lib directory. Any ideas?

Error: 500
Location: /servlet/TestPackage.ServletWritesPDF
Internal Servlet Error:

java.lang.UnsatisfiedLinkError: no jFdfTk in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.System.loadLibrary(System.java:820)
at com.adobe.fdf.FDFTK.(FDFTK.java:10)
at TestPackage.ServletWritesPDF.init(ServletWritesPDF.java:27)
at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
at org.apache.tomcat.core.Handler.init(Handler.java:215)
at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
at org.apache.tomcat.core.Handler.service(Handler.java:254)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

Thanks
Douglas
Eric Williams
Solutions Manager
MediaMix Interactive
5233 Dundas St. W.
Toronto, Ontario   M9B 1A6
t: 416.233.8943 | f: 905.795.0932




RE: I'm really getting tired of these messages...

2001-05-25 Thread Milt Epstein

On Fri, 25 May 2001, Martin van den Bemt wrote:

 Isn't there something like a mailinglist manager, who can delete
 entries from the mailinglist ?

Yes.  But how does that help if they don't know what entry/address to
delete?  The problem is determining the bad subscribed address from
the bounced address, and that isn't always so easy to do.

This has come up before.


  -Original Message-
  From: Milt Epstein [mailto:[EMAIL PROTECTED]]
  Sent: Friday, May 25, 2001 11:40 PM
  To: [EMAIL PROTECTED]
  Subject: RE: I'm really getting tired of these messages...
 
 
  On Fri, 25 May 2001, Martin van den Bemt wrote:
 
   For the sake of solving this ;-)) (will deliver me 2 more of those
   e-mails).  I attach it again (the first message about this to the
   maillinglist contained the attachments).
 
  I don't think you're understanding what I'm saying.
 
  It's not clear at all that this is going to solve anything.
 
  Everyone knows what the bad addresses are -- I and everyone else who
  posts to the lists gets those bounce messages.  And most likely the
  list owners/managers do as well.  The point is, just knowing the bad
  addresses doesn't necessarily help.  The people whose bad addresses
  those are may be subscribed with totally different addresses.  So it
  may be difficult or impossible to figure out from those bad addresses
  the corresponding subscribed addresses to remove from the list so that
  those bounces will stop.
 
  For example, suppose [EMAIL PROTECTED] is subcribed to the list.  But because of
  address changes/canonicalization/forwarding/relaying/whatever, the
  actual receiving address is [EMAIL PROTECTED]  Now suppose that mail to that
  address bounces for some reason or other.  When that bounce comes in
  saying [EMAIL PROTECTED] is a bad address, how are you going to know to remove
  [EMAIL PROTECTED]?
 
 
-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 25, 2001 8:27 PM
To: [EMAIL PROTECTED]
Subject: RE: I'm really getting tired of these messages...
   
   
On Fri, 25 May 2001, Martin van den Bemt wrote:
   
 I attached the mails I get.. The e-mail address is in there
   
Attached it where?
   
In any case, knowing what address is bouncing isn't the problem --
that's in the bounce message.  The problem is finding the subscribed
address that corresponds to that bad address.  Due to a variety of
reasons, the address someone actually receives email at may be very
different than the one they originally signed up with.
   
   
  -Original Message-
  From: Milt Epstein [mailto:[EMAIL PROTECTED]]
  Sent: Friday, May 25, 2001 2:02 PM
  To: [EMAIL PROTECTED]
  Subject: RE: I'm really getting tired of these messages...
 
 
  On Fri, 25 May 2001, Kyle Burke wrote:
 
   I agree.  It is very tedious.  It's definitely people
  who signed up
   for the list with a web-based mail account and just
  stopped using
   it.  It gets shut off because it's neglected and everyone on the
   list pays the price.
 
  I don't think you can so easily categorize the problem email
  addresses.  When this has come up in the past, the problem was
  typically that the email address that is bouncing did not
  match up to
  any subscribed address -- perhaps because the message is getting
  forwarded a number of times.  In such cases, it isn't so
  easy to find
  the address to remove from the list.
[ ... ]

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




Servlet, JSPs and images...

2001-05-25 Thread Joel Boyd

I am using Tomcat to run a Servlet, and the Servlet forwards requests, via a
RequestDispatcher, to my JSP pages.
Tomcat is finding the JSP pages, but not the images referenced in them.

My JSP pages are in webapps/myapp and my images are in webapps/myapp/images.
I reference the images using images/myimage.gif, and it worked before when
I was directly serving up the JSP pages.  Now Tomcat complains that it
cannot find the images:

/myapp/servlet/images/myimage.gif  returns null

I tried creating a webapps/myapp/servlet/images directory and put all my
images there, but that still did not work.

Does anyone know what is going on here?

Thanks.

Joel Boyd




Re: Install problems in FreeBSD 4.2

2001-05-25 Thread Guido Medina

This problem is solved in the new J2SE 1.3.1 from java.sun.com, they had
that problem but they noticed very fast...

Guido.

P.D: Also the IBM 1.3.x could help you...

- Original Message -
From: Scott Jones [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, May 25, 2001 4:24 PM
Subject: Re: Install problems in FreeBSD 4.2


 Hi Lance,

 I experienced the same problem on RedHat 7.1.  I solved it with a few
 environment variables:

 export LD_ASSUME_KERNEL=2.2.5
 export

LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/i386/hotspot:$JAVA_HOME/jre/lib/i386/nati
 ve_threads:$JAVA_HOME/jre/lib/i386

 That did it for me, I don't know if it'd have an effect for you, but
thought
 I'd send this along anyways.

 Cheers,

 Scott

 - Original Message -
 From: Lance Hill [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, May 24, 2001 2:19 PM
 Subject: Install problems in FreeBSD 4.2


  Hi,
 
  I recently downloaded and installed jdk1.3.0_02 on a FreeBSD system. I
  followed the instructions included with the jakarta-tomcat README which
  indicated that I needed to set an environment variable of
  JAVA_HOME=/usr/local/jdk1.3.0_02 and add $JAVA_HOME/bin to the PATH. The
  instructions indicate that I should set the CLASSPATH if needed, but I
do
  not know if it is needed, or what it should be set to. When I try to run
  ./bootstrap.sh for jakarta-ant (install instructions for tomcat say it
is
  next step in setup of tomcat) I get:
 
  /usr/local/jdk1.3.0_02/bin/java: /usr/bin/expr: not found
  Error: can't find libjava.so.
 
  The same messages pops up if I try to run ./build.sh for tomcat without
  first installing ant.
 
  The jdk was installed from j2sdk-1_3_1-linux-i386.bin.
 
  How do I get past this error message to the next error message?
 
  I have been unable to find documentation for setting this up in FreeBSD,
 so
  if someone can point me in the direction of some, I would greatly
 appreciate
  it.
 
  Thanks.
 
 
_
  Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.
 
 





Re: Servlet, JSPs and images...

2001-05-25 Thread anil

This might woryour webapp

webapp---WEB-INF/classes/..
|---images/foo.gif
|---jsp/bar.jsp



String reqContext = request.getContextPath();
String image =reqContext+/images/foo.gif;


anil


Joel Boyd wrote:

 I am using Tomcat to run a Servlet, and the Servlet forwards requests, via a
 RequestDispatcher, to my JSP pages.
 Tomcat is finding the JSP pages, but not the images referenced in them.

 My JSP pages are in webapps/myapp and my images are in webapps/myapp/images.
 I reference the images using images/myimage.gif, and it worked before when
 I was directly serving up the JSP pages.  Now Tomcat complains that it
 cannot find the images:

 /myapp/servlet/images/myimage.gif  returns null

 I tried creating a webapps/myapp/servlet/images directory and put all my
 images there, but that still did not work.

 Does anyone know what is going on here?

 Thanks.

 Joel Boyd




Problems with isapi_redirect.dll

2001-05-25 Thread Aaron Nance

Everyone,

I am having problems getting isapi_redirect.dll to work.  Here's my configuration info:

  Win NT Server: SP 6a
  IIS 4
  Java 1.3.0-c
  Tomcat 3.2.1
  
I have no problem running Tomcat in stand alone mode.  I am 99.9 % certain I have the 
registry entries right.  When I try to access http://localhost/examples/jsp/index.html 
IIS throws a 500 at me.  I get the following information in the isapi.log:

  [jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close, NULL 
parameter
  [jk_uri_worker_map.c (184)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL 
parameters
  [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
  [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
  [jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed

I'm running with the configuration files as they were installed by Tomcat except for 
the workers.tomcat_home and workers.java_home properties in the workers.properties 
file.

If you can tell me what I'm doing wrong here I'd appreciate it.

Thanks,
Aaron





RE: Servlet, JSPs and images...

2001-05-25 Thread Joel Boyd

Yes!! This works.

Thank you!!

-Original Message-
From: anil [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 25, 2001 3:36 PM
To: [EMAIL PROTECTED]
Subject: Re: Servlet, JSPs and images...


This might woryour webapp

webapp---WEB-INF/classes/..
|---images/foo.gif
|---jsp/bar.jsp



String reqContext = request.getContextPath();
String image =reqContext+/images/foo.gif;


anil


Joel Boyd wrote:

 I am using Tomcat to run a Servlet, and the Servlet forwards requests, via
a
 RequestDispatcher, to my JSP pages.
 Tomcat is finding the JSP pages, but not the images referenced in them.

 My JSP pages are in webapps/myapp and my images are in
webapps/myapp/images.
 I reference the images using images/myimage.gif, and it worked before
when
 I was directly serving up the JSP pages.  Now Tomcat complains that it
 cannot find the images:

 /myapp/servlet/images/myimage.gif  returns null

 I tried creating a webapps/myapp/servlet/images directory and put all my
 images there, but that still did not work.

 Does anyone know what is going on here?

 Thanks.

 Joel Boyd



Re: tomcat/linux question

2001-05-25 Thread Edwin Martin

Dante,

When tomcat starts, the jvm creates a child-process. the child process
then creates up to 19 child-processes itself. Each of these processes
is taking the same amount of memory, i.e. 14MB! This is ridiculous, my
app is a small one and there is no way it could demand that much memory.
With 20 processes demanding 14MB of memory its bringing my 256MB machine
down to its knees.

Pretty much all of this 14MB is *shared*. This means alle these processes
use the same, single 14MB.

Type 'free' to see how much memory is really used or free.

Bye,
Edwin Martin.





uploading 1 GB files using FTP

2001-05-25 Thread aswath satrasala

Hello,
I had posted this message earlier.
I am posting again for more information.

How can the user upload 1GB file using FTP.

I am currently planning to use multipart form posting and using
JSPSmart free download.
I heard from the userlist, that this will be very slow, and
should think of using FTP.

How can I give FTP upload to the user from my web site

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




Issues with Tomcat 3.2.1, JSPs and I18N ( Implicit character translation ??? )

2001-05-25 Thread Chris Halverson
Title: Issues with Tomcat 3.2.1, JSPs and I18N ( Implicit character translation ??? )





I'm running Tomcat 3.2.1 on a Solaris box JDK 1.3
and using ECS1.4.1 for generating HTML


I can save CJKV characters to my back end Oracle db, retrieve them,
and display them if I'm using a servlet. Doesn't matter whether I use ECS
or string handling. The browser recognizes that I'm sending in UTF-8 encoding
and handles the characters just fine.


However when I use the same code to get the data from the DB and run it 
through a JSP page I get gobbledygook.


A couple of other factors
1. Yes I'm setting the contentType to text/html; charset=UTF-8 in the Page Directiive
2. Yes the browser is set to use the UTF-8 encoding.
2. Yes I realize that the jsps are compiled into a servlet but while looking at the jsp compiled java src file
 it appears that the servlet uses a specialized class JspWriter to handle printing to the output stream.
3. ECS had a similar issue in previous versions. There are some tricky issues with how streams are handled
 so that you don't run into implicit and screwy character encoding issues.


I would appreciate any feedback, I'm going to dig through the Tomcat source to see if I can find the root problem
and would hate to do that if there was an easy answer that I'm missing.


Thanks.
Chris Halverson


Christopher R. Halverson
nCube
[EMAIL PROTECTED]
Never underestimate the ability of any human to delude themselves,
and convince others their delusion is absolute