Re: Out of Memory error - Tomcat 3.2.1

2001-07-30 Thread Dmitri Colebatch

Somik,

Are there really more than 1000 threads?  When I start tomcat I get about
35 threads... are you running a standardish configuration or have you
changed things?

When you say you've checked your servlets and none of them have threads
that dont end - are you sure?  maybe post one of your servlets so people
can check it.

cheesr
dim

On Tue, 31 Jul 2001, Somik Raha wrote:

> Hi,
> Sorry for posting earlier in Rich Text.
> 
> I am using Tomcat 3.2.1 with Apache.
> I find a strange phenomenon - whenever an http request is made, a
> tomcat thread is created. But when the servlet finishes, the thread is
> not destroyed. This results in a big problem - after sometime, an
> OutOfMemory exception is thrown - with the message "Unable to create
> Native Thread".
> Doing "pstree -ap" shows more than a thousand threads under the
> tomcat process (there are only a few servlets).  I have checked my
> servlets, none of them have threads that dont end.
> 
> I checked the Tomcat page, and it says I ought to upgrade to
> 3.2.3, as there are a lot of performance fixes. Is this one of them ?
> I want to make sure this is the problem, or the problem lies
> elsewhere..
> 
> Will appreciate help on this issue.
> Thanks.
> 
> Regards,
> Somik
> 




How to make a database connection in a servlet ?

2001-07-30 Thread Andreas Horchler

Hi,
I am running Apache 1.3.20, Tomcat 3.2.3 and JDK 1.3.1 from Sun on
Windows NT and
everything is working fine.
Because these are my first experiences with a web server, I had a look
at several samples
delivered with Tomcat.
But how will I be able to connect from a sevlet to an Oracle 8.1.6
database server
(not running on the local machine) ?
Do I have to use the RequestInterceptor JDBCRealm declared in the
serverl.xlm file ?
On the machine running the Apache and Tomcat I have an Oracle client
8.1.7 installed.

Can anyone explain to me the steps I have to follow, and explain how
they work ?
(a few lines of sample code would be very nice)

Thanks in advance and regards

Andreas





Out of Memory error - Tomcat 3.2.1

2001-07-30 Thread Somik Raha




Hi,
    Sorry for posting earlier in 
Rich Text.
 
    I am using Tomcat 3.2.1 with 
Apache. 
    I find a strange phenomenon - 
whenever an http request is made, a tomcat thread is created. But when the 
servlet finishes, the thread is not destroyed. This results in a big problem - 
after sometime, an OutOfMemory exception is thrown  - with the message 
"Unable to create Native Thread". 
    Doing "pstree -ap" shows more 
than a thousand threads under the tomcat process (there are only a few 
servlets).  I have checked my servlets, none of them have threads that dont 
end.
    
    I checked the Tomcat page, and 
it says I ought to upgrade to 3.2.3, as there are a lot of performance fixes. Is 
this one of them ?
    I want to make sure this is the 
problem, or the problem lies elsewhere..
 
    Will appreciate help on this 
issue.
    Thanks.
 
Regards,
Somik


Re: Out of Memory error - Tomcat 3.2.1

2001-07-30 Thread Somik Raha

> 1. You're posting a message in non-plain text format, which is in
violation
> of this list's rules (you did read the list's FAQ, didn't you?).  Your
> message is thus likely being ignored.  Post in plain text as required and
> someone will probably respond.

Oops! Very sorry about that.

Regards,
Somik
- Original Message -
From: "Emir Alikadic (ADNOC IS&T)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 31, 2001 3:57 PM
Subject: RE: Out of Memory error - Tomcat 3.2.1


> 1. You're posting a message in non-plain text format, which is in
violation
> of this list's rules (you did read the list's FAQ, didn't you?).  Your
> message is thus likely being ignored.  Post in plain text as required and
> someone will probably respond.
>
> 2. Your original message was posted 4 hours ago.  This is a voluntary
public
> mailing list, not a paid tech support with fixed time response.  Give it
> some time before posting a follow-up.
>
>
> Regards,
>
>
>
> Emir.
>
>
> DISCLAIMER: The content of the preceding message is exclusively
> the personal opinion of the author, i.e. myself. Under no
> circumstances should the content be attributed to my employer.


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




error affecting all sessions

2001-07-30 Thread W. A. Sanchez

Whenever I get a certain error using one account, other accounts/sessions are also 
affected and I may need to restart the tomcat server. And sometimes when I do a 
restart, I still need to check if java threads still exist before starting it again.

How do I fix this. thanks


Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/



RE: Out of Memory error - Tomcat 3.2.1

2001-07-30 Thread

1. You're posting a message in non-plain text format, which is in violation
of this list's rules (you did read the list's FAQ, didn't you?).  Your
message is thus likely being ignored.  Post in plain text as required and
someone will probably respond.

2. Your original message was posted 4 hours ago.  This is a voluntary public
mailing list, not a paid tech support with fixed time response.  Give it
some time before posting a follow-up.


Regards,



Emir.


DISCLAIMER: The content of the preceding message is exclusively
the personal opinion of the author, i.e. myself. Under no
circumstances should the content be attributed to my employer.



Re: Out of Memory error - Tomcat 3.2.1

2001-07-30 Thread Somik Raha



Wondering if anyone has any idea about this issue. 

Would appreciate a reply..
 
Yours,
Somik

  - Original Message - 
  From: 
  Somik Raha 
  To: [EMAIL PROTECTED] 
  Sent: Tuesday, July 31, 2001 11:17 
  AM
  Subject: Out of Memory error - Tomcat 
  3.2.1
  
  Hi,
      I am using Tomcat 3.2.1 with 
  Apache. 
      I find a strange phenomenon - 
  whenever an http request is made, a tomcat thread is created. But when the 
  servlet finishes, the thread is not destroyed. This results in a big problem - 
  after sometime, an OutOfMemory exception is thrown  - with the message 
  "Unable to create Native Thread". 
      Doing "pstree -ap" shows more 
  than a thousand threads under the tomcat process (there are only a few 
  servlets).  I have checked my servlets, none of them have threads that 
  dont end.
      
      I checked the Tomcat page, and 
  it says I ought to upgrade to 3.2.3, as there are a lot of performance fixes. 
  Is this one of them ?
      I want to make sure this is 
  the problem, or the problem lies elsewhere..
   
      Will appreciate help on this 
  issue.
      Thanks.
   
  Regards,
  Somik
  **Somik 
  RahaR&D TeamKizna CorporationHiroo ON Bldg. 2F, 5-19-9 
  Hiroo,Shibuya-ku, Tokyo, 150-0012, JAPANPhone : 
  +81-3-5475-2646Fax : 
  +81-3-5449-4870**
   


dash in attribute name

2001-07-30 Thread Andrei Rusakou

hi there

does anyone have a piece of code that makes Tomcat (i'm running 3.2.3) work
with custom tags that contain dash in the attribute names?

eg 
   

i managed to get it going with the dashes in tag name, but not in the
attribute name...

any ideas please?

andrei



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




Re: Tomcat 4.05b - recompile required for SSL?

2001-07-30 Thread Craig R. McClanahan



On 30 Jul 2001, Mike wrote:

> 
> I downloaded the 4.05b binaries, and I'm trying to get SSL to work.
> 
> Is a recompile required?
> 

No ... following the instructions in the comments inside conf/server.xml
is required, though.

Also, you should really download "beta 6" instead -- a boatload of bugs
have been fixed since "beta 5".

> 
> 
> 

Craig McClanahan





Offer to sell Mini-vacuum cleaner

2001-07-30 Thread

Our company specializes in dealing in Electric & sport series products. "Quality 
first, competitive offer & Best service" is the aim of our all staff . If you are 
looking for any product, please don't hesitate to contact with us or visit our web 
site.
 http://gafucom.ebigchina.com

If our mail bother you, we would be very sorry and please concel it.  

*VACUUM  CLEANER
---  Cordless, Convenient to carry and use anywhere ideal at home, office, in cars, 
boats and outdoor

Commodity name: 
U.pricce: USD2.50/pc FOB Shenzhen,China
Packing: Color box   7x8.20x25.20cm
48PCS/CTN   51CMX50.5CMX31CM
N.W:12KGSG.W:13KGS
16848pcs/20'   34848pcs/40'   40896pcs/40'HQ
Minimum Quantity per Order: 20' 
Delivery time: 15 days after receipt of deposit
Shipment: 
Loading port: Shenzhen, China
Payment: T/T
Specification : 
   *Battery  Operated 
   *Powerful, compact and lightweight design
   *Use 2 AA, UM3 or R6 size 1.5V alkaline batteries(No included) 
   *To empty vacuum cleaner, press to release the locking button on
   *Top of cleaner, pull out dust filter and clean thoroughly
 
 If you have any requirement, please feel free to contact with us or visit our web 
site.


Best regards,
 
Shirly Wang
 
Shenzhen Choices Industry co.,ltd.
ADD:ROOM 407-408,A BUILDING XIANGZHU GARDEN,ZUZHILING,FUTIAN DISTRICT,SHENZHEN,CHINA
> TEL :86 13823677077  755 3183037 \ 3709573Ms. Shirly Wang
> Fax: 86 755 3183037
> E-mail:  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
http://gafucom.ebigchina.com





---
¸ÃÓʼþÓÉ¡¶½ð·æÓʼþȺ·¢ 2.0¡··¢ËÍ£¬ÓʼþÄÚÈÝÓëÈí¼þ×÷ÕßÎÞ¹Ø 
---
½ð·æÈí¼þ£¬ÖµµÃÐÅÀµµÄÈí¼þ http://www.jinfengnet.com





RE: connecting to mysql database

2001-07-30 Thread Chad Wray

Thanks - I just looked at my setup for Windows 98 and
realized that I did put the jar file in the lib
directory of my jdk.  I guess I should of looked at my
Windows machine while setting up my Linux server.

Thanks again for all the responses.

-- Chad


--- "Artigas, Ricardo Y." <[EMAIL PROTECTED]> wrote:
> hi, chad. place the jar file in the lib directory
> and the place path to the
> jar file in the classpath setting for tomcat to see
> it. hth.
> 
> > -Original Message-
> > From:   Chad Wray [SMTP:[EMAIL PROTECTED]]
> > Sent:   Tuesday, July 31, 2001 11:28 AM
> > To: [EMAIL PROTECTED]
> > Subject:RE: connecting to mysql database
> > 
> > Yes - I actually put the jar file in the src
> directory
> > under tomcat and added it to my classpath.  I will
> > double check it tomorrow by echoing my classpath. 
> I
> > am setting my classpath in my .bashrc file - does
> > tomcat.sh overwrite the classpath?  Or should I
> add
> > the jar file to the classpath in the tomcat.sh
> file?
> > 
> > -- Chad
> > 
> > 
> > --- "Artigas, Ricardo Y." <[EMAIL PROTECTED]>
> wrote:
> > > Did you include the mysql driver (the jar file)
> to
> > > your classpath?
> > > 
> > > > -Original Message-
> > > > From:   Chad Wray [SMTP:[EMAIL PROTECTED]]
> > > > Sent:   Tuesday, July 31, 2001 9:22 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject:connecting to mysql database
> > > > 
> > > > I am trying to access a mysql database on a
> linux
> > > box.
> > > > 
> > > > I am getting the following error:
> > > > javax.servlet.ServletException: Unable to load
> > > class
> > > > org.gjt.mm.mysql.Driver
> > > > at
> > > >
> > >
> >
>
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextI
> > > > mpl.java:459)
> > > > at
> > > >
> > >
> >
>
_0002ffantasyFootball_0002ejspfantasyFootball_jsp_1._jspService(_0002ffant
> > > >
> > >
> asyFootball_0002ejspfantasyFootball_jsp_1.java:185)
> > > > at
> > > >
> > >
> >
>
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> > > > at
> > > >
> > >
> >
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > > at
> > > >
> > >
> >
>
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.
> > > > java:130)
> > > > at
> > > >
> > >
> >
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > > at
> > > >
> > >
> >
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.
> > > > java:282)
> > > > at
> > > >
> > >
> >
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
> > > > at
> > > >
> > >
> >
>
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
> > > > at
> > > >
> > >
> >
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > > at
> > > >
> > >
> >
>
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> > > > at
> > > >
> > >
> >
>
org.apache.tomcat.core.Handler.service(Handler.java:287)
> > > > at
> > > >
> > >
> >
>
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> > > > at
> > > >
> > >
> >
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:
> > > > 797)
> > > > at
> > > >
> > >
> >
>
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> > > > at
> > > >
> > >
> >
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
> > > > pConnectionHandler.java:213)
> > > > at
> > > >
> > >
> >
>
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> > > > at
> > > >
> > >
> >
>
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> > > > at
> java.lang.Thread.run(Thread.java:484)
> > > > 
> > > > Root cause: 
> > > > 
> > > > java.lang.ClassNotFoundException: Unable to
> load
> > > class
> > > > org.gjt.mm.mysql.Driver
> > > > at
> > > >
> > >
> >
>
org.apache.jasper.servlet.JasperLoader.findClass(JasperLoader.java:223)
> > > > at
> > > >
> > >
> >
>
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:147)
> > > > at
> > > >
> > >
> >
>
java.lang.ClassLoader.loadClass(ClassLoader.java:253)
> > > > at
> > > >
> > >
> >
>
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> > > > at java.lang.Class.forName0(Native
> Method)
> > > > at
> java.lang.Class.forName(Class.java:120)
> > > > at
> > > >
> > >
> >
>
_0002ffantasyFootball_0002ejspfantasyFootball_jsp_1._jspService(_0002ffant
> > > >
> asyFootball_0002ejspfantasyFootball_jsp_1.java:72)
> > > > at
> > > >
> > >
> >
>
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> > > > at
> > > >
> > >
> >
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > > at
> > > >
> > >
> >
>
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(

RE: connecting to mysql database

2001-07-30 Thread Artigas, Ricardo Y.

hi, chad. place the jar file in the lib directory and the place path to the
jar file in the classpath setting for tomcat to see it. hth.

> -Original Message-
> From: Chad Wray [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, July 31, 2001 11:28 AM
> To:   [EMAIL PROTECTED]
> Subject:  RE: connecting to mysql database
> 
> Yes - I actually put the jar file in the src directory
> under tomcat and added it to my classpath.  I will
> double check it tomorrow by echoing my classpath.  I
> am setting my classpath in my .bashrc file - does
> tomcat.sh overwrite the classpath?  Or should I add
> the jar file to the classpath in the tomcat.sh file?
> 
> -- Chad
> 
> 
> --- "Artigas, Ricardo Y." <[EMAIL PROTECTED]> wrote:
> > Did you include the mysql driver (the jar file) to
> > your classpath?
> > 
> > > -Original Message-
> > > From: Chad Wray [SMTP:[EMAIL PROTECTED]]
> > > Sent: Tuesday, July 31, 2001 9:22 AM
> > > To:   [EMAIL PROTECTED]
> > > Subject:  connecting to mysql database
> > > 
> > > I am trying to access a mysql database on a linux
> > box.
> > > 
> > > I am getting the following error:
> > > javax.servlet.ServletException: Unable to load
> > class
> > > org.gjt.mm.mysql.Driver
> > > at
> > >
> >
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextI
> > > mpl.java:459)
> > > at
> > >
> >
> _0002ffantasyFootball_0002ejspfantasyFootball_jsp_1._jspService(_0002ffant
> > >
> > asyFootball_0002ejspfantasyFootball_jsp_1.java:185)
> > > at
> > >
> >
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> > > at
> > >
> >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> > >
> >
> org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.
> > > java:130)
> > > at
> > >
> >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> > >
> >
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.
> > > java:282)
> > > at
> > >
> >
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
> > > at
> > >
> >
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
> > > at
> > >
> >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> > >
> >
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> > > at
> > >
> >
> org.apache.tomcat.core.Handler.service(Handler.java:287)
> > > at
> > >
> >
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> > > at
> > >
> >
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:
> > > 797)
> > > at
> > >
> >
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> > > at
> > >
> >
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
> > > pConnectionHandler.java:213)
> > > at
> > >
> >
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> > > at
> > >
> >
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> > > at java.lang.Thread.run(Thread.java:484)
> > > 
> > > Root cause: 
> > > 
> > > java.lang.ClassNotFoundException: Unable to load
> > class
> > > org.gjt.mm.mysql.Driver
> > > at
> > >
> >
> org.apache.jasper.servlet.JasperLoader.findClass(JasperLoader.java:223)
> > > at
> > >
> >
> org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:147)
> > > at
> > >
> >
> java.lang.ClassLoader.loadClass(ClassLoader.java:253)
> > > at
> > >
> >
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> > > at java.lang.Class.forName0(Native Method)
> > > at java.lang.Class.forName(Class.java:120)
> > > at
> > >
> >
> _0002ffantasyFootball_0002ejspfantasyFootball_jsp_1._jspService(_0002ffant
> > > asyFootball_0002ejspfantasyFootball_jsp_1.java:72)
> > > at
> > >
> >
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> > > at
> > >
> >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> > >
> >
> org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.
> > > java:130)
> > > at
> > >
> >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> > >
> >
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.
> > > java:282)
> > > at
> > >
> >
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
> > > at
> > >
> >
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
> > > at
> > >
> >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> > >
> >
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> > > at
> > >
> >
> org.apache.tomcat.core.Handler.service(Handler.java:287)

RE: connecting to mysql database

2001-07-30 Thread Chad Wray

Yes - I actually put the jar file in the src directory
under tomcat and added it to my classpath.  I will
double check it tomorrow by echoing my classpath.  I
am setting my classpath in my .bashrc file - does
tomcat.sh overwrite the classpath?  Or should I add
the jar file to the classpath in the tomcat.sh file?

-- Chad


--- "Artigas, Ricardo Y." <[EMAIL PROTECTED]> wrote:
> Did you include the mysql driver (the jar file) to
> your classpath?
> 
> > -Original Message-
> > From:   Chad Wray [SMTP:[EMAIL PROTECTED]]
> > Sent:   Tuesday, July 31, 2001 9:22 AM
> > To: [EMAIL PROTECTED]
> > Subject:connecting to mysql database
> > 
> > I am trying to access a mysql database on a linux
> box.
> > 
> > I am getting the following error:
> > javax.servlet.ServletException: Unable to load
> class
> > org.gjt.mm.mysql.Driver
> > at
> >
>
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextI
> > mpl.java:459)
> > at
> >
>
_0002ffantasyFootball_0002ejspfantasyFootball_jsp_1._jspService(_0002ffant
> >
> asyFootball_0002ejspfantasyFootball_jsp_1.java:185)
> > at
> >
>
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> > at
> >
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >
>
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.
> > java:130)
> > at
> >
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.
> > java:282)
> > at
> >
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
> > at
> >
>
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
> > at
> >
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >
>
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> > at
> >
>
org.apache.tomcat.core.Handler.service(Handler.java:287)
> > at
> >
>
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> > at
> >
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:
> > 797)
> > at
> >
>
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> > at
> >
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
> > pConnectionHandler.java:213)
> > at
> >
>
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> > at
> >
>
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> > at java.lang.Thread.run(Thread.java:484)
> > 
> > Root cause: 
> > 
> > java.lang.ClassNotFoundException: Unable to load
> class
> > org.gjt.mm.mysql.Driver
> > at
> >
>
org.apache.jasper.servlet.JasperLoader.findClass(JasperLoader.java:223)
> > at
> >
>
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:147)
> > at
> >
>
java.lang.ClassLoader.loadClass(ClassLoader.java:253)
> > at
> >
>
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> > at java.lang.Class.forName0(Native Method)
> > at java.lang.Class.forName(Class.java:120)
> > at
> >
>
_0002ffantasyFootball_0002ejspfantasyFootball_jsp_1._jspService(_0002ffant
> > asyFootball_0002ejspfantasyFootball_jsp_1.java:72)
> > at
> >
>
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> > at
> >
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >
>
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.
> > java:130)
> > at
> >
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.
> > java:282)
> > at
> >
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
> > at
> >
>
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
> > at
> >
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >
>
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> > at
> >
>
org.apache.tomcat.core.Handler.service(Handler.java:287)
> > at
> >
>
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> > at
> >
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:
> > 797)
> > at
> >
>
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> > at
> >
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
> > pConnectionHandler.java:213)
> > at
> >
>
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> > at
> >
>
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> > at java.lang.Thread.run(Thread.java:484)
> > 
> > 
> > 
> > 
>

Tomcat 4.05b - recompile required for SSL?

2001-07-30 Thread Mike


I downloaded the 4.05b binaries, and I'm trying to get SSL to work.

Is a recompile required?






Re: VOTE: HTML in Messages and politeness (Was: Re: jdbc odbc bridge on linux)

2001-07-30 Thread Frans

+1 from me.. no HTML email.


- Original Message -
From: "Srinivas Reddy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 31, 2001 6:56 AM
Subject: Re: VOTE: HTML in Messages and politeness (Was: Re: jdbc odbc
bridge on linux)


> +1


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




Re: Tomcat standalone vs Tomcat w/ Apache

2001-07-30 Thread Pier P. Fumagalli

Craig R. McClanahan at [EMAIL PROTECTED] wrote:

> 
> 
> On Mon, 30 Jul 2001, Tim O'Neil wrote:
> 
>> At 05:19 PM 7/30/2001, you wrote:
>>> Of course, there are many non-performance-related reasons you might be
>>> required to use Apache in conjunction with Tomcat (if you need the other
>>> functionality that it provides).  But, if you don't, you owe it to
>>> yourself to see if Tomcat stand-alone runs fast enough before undertaking
>>> the extra pain it takes to configure them to run together.
>> 
>> I don't consider it that painful. It's hardly a pain at all.
>> It involves adding an include to apache's httpd.conf.
> 
> That works until you try a servlet mapping in your web.xml file, or a
> security constraint, or a bunch of other things.  Current generation
> connectors for Apache (but not mod_webapp under Tomcat 4) totally ignore
> the contents of the web.xml file, so you have to tediously configure
> everything twice.

Currently, mod_webapp forwards _ALL_ requests to tomcat for a given
web-application, but within its structure there's already a hook to parse
the web.xml file and process it...

At the end, I'll be happy to see static files served by Apache (whenever
possible) and all the rest handled by Tomcat...

It's not a big hack, and I am trying to have it working by the next release
of the WebApp module...

But, on the other hand, currently mod_webapp is the only one that is 100%
compliant with the servlet spec... :(

Pier




Out of Memory error - Tomcat 3.2.1

2001-07-30 Thread Somik Raha



Hi,
    I am using Tomcat 3.2.1 with 
Apache. 
    I find a strange phenomenon - 
whenever an http request is made, a tomcat thread is created. But when the 
servlet finishes, the thread is not destroyed. This results in a big problem - 
after sometime, an OutOfMemory exception is thrown  - with the message 
"Unable to create Native Thread". 
    Doing "pstree -ap" shows more 
than a thousand threads under the tomcat process (there are only a few 
servlets).  I have checked my servlets, none of them have threads that dont 
end.
    
    I checked the Tomcat page, and 
it says I ought to upgrade to 3.2.3, as there are a lot of performance fixes. Is 
this one of them ?
    I want to make sure this is the 
problem, or the problem lies elsewhere..
 
    Will appreciate help on this 
issue.
    Thanks.
 
Regards,
Somik
**Somik 
RahaR&D TeamKizna CorporationHiroo ON Bldg. 2F, 5-19-9 
Hiroo,Shibuya-ku, Tokyo, 150-0012, JAPANPhone : 
+81-3-5475-2646Fax : 
+81-3-5449-4870**
 


Re: Tomcat standalone vs Tomcat w/ Apache

2001-07-30 Thread Craig R. McClanahan



On Mon, 30 Jul 2001, Tim O'Neil wrote:

> At 05:19 PM 7/30/2001, you wrote:
> >Of course, there are many non-performance-related reasons you might be
> >required to use Apache in conjunction with Tomcat (if you need the other
> >functionality that it provides).  But, if you don't, you owe it to
> >yourself to see if Tomcat stand-alone runs fast enough before undertaking
> >the extra pain it takes to configure them to run together.
> 
> I don't consider it that painful. It's hardly a pain at all.
> It involves adding an include to apache's httpd.conf.

That works until you try a servlet mapping in your web.xml file, or a
security constraint, or a bunch of other things.  Current generation
connectors for Apache (but not mod_webapp under Tomcat 4) totally ignore
the contents of the web.xml file, so you have to tediously configure
everything twice.

> You still
> have to do all the configuration stuff in tomcat anyway.

And, in an ideal world, that's all you should ever have to do.  More
precisely, you should only have to configure the application once (in
web.xml).  But it doesn't normally work that way.

> But I've heard from more than one that Tomcat is faster. So
> there's that. But if security is an issue for you I have a hard
> time believing that Tomcat is as secure as Apache.
> 

I'd sure be interested in what metrics you are using to measure "more
secure".

Craig





Re: Tomcat standalone vs Tomcat w/ Apache

2001-07-30 Thread Tim O'Neil

At 05:19 PM 7/30/2001, you wrote:
>Of course, there are many non-performance-related reasons you might be
>required to use Apache in conjunction with Tomcat (if you need the other
>functionality that it provides).  But, if you don't, you owe it to
>yourself to see if Tomcat stand-alone runs fast enough before undertaking
>the extra pain it takes to configure them to run together.

I don't consider it that painful. It's hardly a pain at all.
It involves adding an include to apache's httpd.conf. You still
have to do all the configuration stuff in tomcat anyway.
But I've heard from more than one that Tomcat is faster. So
there's that. But if security is an issue for you I have a hard
time believing that Tomcat is as secure as Apache.




Re: connecting to mysql database

2001-07-30 Thread Richard Draucker

Or drop the mysql jar into the WEB-INF/lib directory

On Monday 30 July 2001 09:43 pm, you wrote:
> Did you include the mysql driver (the jar file) to your classpath?
>
> > -Original Message-
> > From:   Chad Wray [SMTP:[EMAIL PROTECTED]]
> > Sent:   Tuesday, July 31, 2001 9:22 AM
> > To: [EMAIL PROTECTED]
> > Subject:connecting to mysql database
> >
> > I am trying to access a mysql database on a linux box.
> >
> > I am getting the following error:
> > javax.servlet.ServletException: Unable to load class
> > org.gjt.mm.mysql.Driver
> > at
> > org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContext
> >I mpl.java:459)
> > at
> > _0002ffantasyFootball_0002ejspfantasyFootball_jsp_1._jspService(_0002ffan
> >t asyFootball_0002ejspfantasyFootball_jsp_1.java:185)
> > at
> > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> > at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> > org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet
> >. java:130)
> > at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> > org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet
> >. java:282)
> > at
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
> > at
> > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
> > at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> > org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> > at
> > org.apache.tomcat.core.Handler.service(Handler.java:287)
> > at
> > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> > at
> > org.apache.tomcat.core.ContextManager.internalService(ContextManager.java
> >: 797)
> > at
> > org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> > at
> > org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Ht
> >t pConnectionHandler.java:213)
> > at
> > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> > at
> > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501
> >) at java.lang.Thread.run(Thread.java:484)
> >
> > Root cause:
> >
> > java.lang.ClassNotFoundException: Unable to load class
> > org.gjt.mm.mysql.Driver
> > at
> > org.apache.jasper.servlet.JasperLoader.findClass(JasperLoader.java:223)
> > at
> > org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:147)
> > at
> > java.lang.ClassLoader.loadClass(ClassLoader.java:253)
> > at
> > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> > at java.lang.Class.forName0(Native Method)
> > at java.lang.Class.forName(Class.java:120)
> > at
> > _0002ffantasyFootball_0002ejspfantasyFootball_jsp_1._jspService(_0002ffan
> >t asyFootball_0002ejspfantasyFootball_jsp_1.java:72)
> > at
> > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> > at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> > org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet
> >. java:130)
> > at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> > org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet
> >. java:282)
> > at
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
> > at
> > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
> > at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> > org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> > at
> > org.apache.tomcat.core.Handler.service(Handler.java:287)
> > at
> > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> > at
> > org.apache.tomcat.core.ContextManager.internalService(ContextManager.java
> >: 797)
> > at
> > org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> > at
> > org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Ht
> >t pConnectionHandler.java:213)
> > at
> > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> > at
> > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501
> >) at java.lang.Thread.run(Thread.java:484)
> >
> >
> >
> >
> > Is there anything special I need to do get Tomcat to
> > talk to mysql?
> >
> > Thanks,
> >
> > -- Chad
> >
> > __
> > Do You Yahoo!?
> > Make international calls for as low as $.04/minute with Yahoo! Messenger
> > http://phonecard.yahoo.com/

-- 
Richard Draucker [EMAIL PROTECTED]
Protected-Data.Com www.protected-data.com
Remote Data Suppor

RE: connecting to mysql database

2001-07-30 Thread Artigas, Ricardo Y.

Did you include the mysql driver (the jar file) to your classpath?

> -Original Message-
> From: Chad Wray [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, July 31, 2001 9:22 AM
> To:   [EMAIL PROTECTED]
> Subject:  connecting to mysql database
> 
> I am trying to access a mysql database on a linux box.
> 
> I am getting the following error:
> javax.servlet.ServletException: Unable to load class
> org.gjt.mm.mysql.Driver
> at
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextI
> mpl.java:459)
> at
> _0002ffantasyFootball_0002ejspfantasyFootball_jsp_1._jspService(_0002ffant
> asyFootball_0002ejspfantasyFootball_jsp_1.java:185)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.
> java:130)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.
> java:282)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> at
> org.apache.tomcat.core.Handler.service(Handler.java:287)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:
> 797)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
> pConnectionHandler.java:213)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> at java.lang.Thread.run(Thread.java:484)
> 
> Root cause: 
> 
> java.lang.ClassNotFoundException: Unable to load class
> org.gjt.mm.mysql.Driver
> at
> org.apache.jasper.servlet.JasperLoader.findClass(JasperLoader.java:223)
> at
> org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:147)
> at
> java.lang.ClassLoader.loadClass(ClassLoader.java:253)
> at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:120)
> at
> _0002ffantasyFootball_0002ejspfantasyFootball_jsp_1._jspService(_0002ffant
> asyFootball_0002ejspfantasyFootball_jsp_1.java:72)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.
> java:130)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.
> java:282)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> at
> org.apache.tomcat.core.Handler.service(Handler.java:287)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:
> 797)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
> pConnectionHandler.java:213)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> at java.lang.Thread.run(Thread.java:484)
> 
> 
> 
> 
> Is there anything special I need to do get Tomcat to
> talk to mysql?
> 
> Thanks,
> 
> -- Chad
> 
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/



Re: connecting to mysql database

2001-07-30 Thread Howler D. Wolfe

Chad Wray wrote:

> I am trying to access a mysql database on a linux box.
> 
> I am getting the following error:
> javax.servlet.ServletException: Unable to load class
> org.gjt.mm.mysql.Driver
> at
> 
>org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
> at
> 
>_0002ffantasyFootball_0002ejspfantasyFootball_jsp_1._jspService(_0002ffantasyFootball_0002ejspfantasyFootball_jsp_1.java:185)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> at
> org.apache.tomcat.core.Handler.service(Handler.java:287)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
> 
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> at java.lang.Thread.run(Thread.java:484)
> 
> Root cause: 
> 
> java.lang.ClassNotFoundException: Unable to load class
> org.gjt.mm.mysql.Driver
> at
> org.apache.jasper.servlet.JasperLoader.findClass(JasperLoader.java:223)
> at
> org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:147)
> at
> java.lang.ClassLoader.loadClass(ClassLoader.java:253)
> at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:120)
> at
> 
>_0002ffantasyFootball_0002ejspfantasyFootball_jsp_1._jspService(_0002ffantasyFootball_0002ejspfantasyFootball_jsp_1.java:72)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> at
> org.apache.tomcat.core.Handler.service(Handler.java:287)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
> 
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> at java.lang.Thread.run(Thread.java:484)
> 
> 
> 
> 
> Is there anything special I need to do get Tomcat to
> talk to mysql?
> 
> Thanks,
> 
> -- Chad
> 
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
> 
> 
> 
> 
Hi,

Looks like the mysql driver isn't in your classpath.

Place the driver in your classpath and it should work.

I hope this helps.

John Brosan




Re: Tomcat standalone vs Tomcat w/ Apache

2001-07-30 Thread Pier P. Fumagalli

Dmitri Colebatch at [EMAIL PROTECTED] wrote:

> Pier,
> 
> On Tue, 31 Jul 2001, Pier P. Fumagalli wrote:
>> Well, to be completely honest, and being the author of 2 out of 3 apache
>> connectors to Tomcat, I am a _BIG_ fan of using Tomcat in stand-alone mode.
>> Unless you don't specifically require some of the Apache functionalities,
>> run it stand alone, might be slightly slower in some cases, but far more
>> stable.
> 
> really? wow... ok, I'll ask a question then - what would your preferred
> approach be for having tomcat listen on port 80?  squid accelerator?  I'm
> assuming you're not running tomcat as root?

Nope, I'm not... Currently there's a test project to run Tomcat 4.0 as a
native daemon in Unix. You can check out and build the "service" code in the
"jakarta-tomcat-4.0/service" CVS repo, and try it out.

I'm building a new (more portable) API in "jakarta-tomcat-service", and that
will be (probably) the default way to invoke Tomcat from the next beta.

Both of them (the one in TC4 and the new Service) allow to run TC4 as an
operating-system daemon, binding to port 80 and running as a non-root
user... I don't know whether those will be adopted by TC3 also or not, but
they _do_ work :)

Pier




RE: JSP pages cannot be viewed

2001-07-30 Thread Utech - Han Lim

I think I'm already set the classpath to point to the servlet.jar as you can
see it obviously from my environment setting. Any else suggestion? I still
cannot view the .jsp pages, and got stuck with it:(

Thanks.

regards,
Han Lin

-Original Message-
From: AN Sathe [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 6:48 PM
To: [EMAIL PROTECTED]
Subject: RE: JSP pages cannot be viewed
Sensitivity: Personal


I think you need to set the classpath to point to the servet.jar files


ans
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 3:05 AM
To: [EMAIL PROTECTED]
Subject: RE: JSP pages cannot be viewed
Sensitivity: Personal


Yes, I'm sure I am using the JDK and JRE too, here is my Environment
setting :

TOMCAT_HOME=/usr/local/jakarta-tomcat
LANG=en_US
JAVA_HOME=/usr/java/jdk1.3.1
LOGNAME=hanlim
SHLVL=2
SHELL=/bin/bash
HOSTTYPE=i386
OSTYPE=linux-gnu
HISTSIZE=10
TERM=xterm
HOME=/root
PATH=/usr/java/jdk1.3.1/bin:/usr/java/jdk1.3.1/lib/tools.jar:/usr/local/
jakarta-servletapi/lib/servlet.jar:/usr/local/bin:/bin:/usr/bin:/usr/X11
R6/bin:/home/hanlim/bin
_=/usr/bin/env

I think I set all thing properly but still cannot view the .jsp file.

And according to Emir Alikadic's recommended website
http://marc.theaimsgroup.com/?l=tomcat-user&m=97870338519857&w=2, I'm
not understand this statement :

/* One word of caution though: on a windows system, even if you
installed
the development kit, a JRE is installed as well.  Make sure you set your
JAVA_HOME environment variable to correct one.
(On my system the JDK is on c:\java\jdk1.3 and the JRE on c:\program
files\JavaSoft\JRE\1.3) */

How can I set the JRE path?



Thanks for help and suggestion.

regards,
Han Lin







connecting to mysql database

2001-07-30 Thread Chad Wray

I am trying to access a mysql database on a linux box.

I am getting the following error:
javax.servlet.ServletException: Unable to load class
org.gjt.mm.mysql.Driver
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
at
_0002ffantasyFootball_0002ejspfantasyFootball_jsp_1._jspService(_0002ffantasyFootball_0002ejspfantasyFootball_jsp_1.java:185)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at
org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

Root cause: 

java.lang.ClassNotFoundException: Unable to load class
org.gjt.mm.mysql.Driver
at
org.apache.jasper.servlet.JasperLoader.findClass(JasperLoader.java:223)
at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:147)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
_0002ffantasyFootball_0002ejspfantasyFootball_jsp_1._jspService(_0002ffantasyFootball_0002ejspfantasyFootball_jsp_1.java:72)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at
org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)




Is there anything special I need to do get Tomcat to
talk to mysql?

Thanks,

-- Chad

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Re: Tomcat standalone vs Tomcat w/ Apache

2001-07-30 Thread Dmitri Colebatch

Pier,

On Tue, 31 Jul 2001, Pier P. Fumagalli wrote:
> Well, to be completely honest, and being the author of 2 out of 3 apache
> connectors to Tomcat, I am a _BIG_ fan of using Tomcat in stand-alone mode.
> Unless you don't specifically require some of the Apache functionalities,
> run it stand alone, might be slightly slower in some cases, but far more
> stable.

really? wow... ok, I'll ask a question then - what would your preferred
approach be for having tomcat listen on port 80?  squid accelerator?  I'm
assuming you're not running tomcat as root?

cheesr
dim




Re: Setting JVM Memory configuration

2001-07-30 Thread Toru Watanabe

> hi ,
> my tomcat runs out of memory soon after 3-4 hrs of running(depends
> on no of users accessing it). As almost 5-10 users are accessing it at a
> time. I have 120 JSPs and 180 JAVA classes in defferent packages.
> I increased JVM memory something like this in tomcat.bat file it
> served me for next say 3-4 hrs but still it crashes after that.
>
>  %_STARTJAVA% %TOMCAT_OPTS%  -Xmx12  -Dtomcat.home="%TOMCAT_HOME%"
> org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9
>
> can anyone help me ?
>
> thanks in advance.
> -srini
>
>  Also what is default memory used by JVM 
>

default is 64 meg bytes, same as -Xms64m.

you should use heap analyzer to investigate why memory leak
occurs.

see
http://java.sun.com/people/billf/heap/


Regards,
Watanabe




Re: Upgrade to Tomcat DECREASES Performance?

2001-07-30 Thread Jeff Kilbride

Good enough to have answered this question several times. Have you checked
the archives?

http://mikal.org/interests/java/tomcat/archive/view?mesg=35371
http://mikal.org/interests/java/tomcat/archive/view?mesg=33145
http://mikal.org/interests/java/tomcat/archive/view?mesg=30821
http://mikal.org/interests/java/tomcat/archive/view?mesg=26859

Other things I would suggest:

-- If you're using ajp13, you can tune down the number of threads for your
ajp12 connector

-- Use the mod_jk module that comes with TC 3.3. It allows you to stop and
start TC without restarting Apache. You can download the 3.3 distribution
and make it yourself, or just use the pre-compiled binary for Linux (which
is what I use). It's compatible with 3.2.x and can be found here:

http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3-b1/bin/linux/i3
86/

-- Upgrade to 3.2.3. It's really easy. You just copy the jar files into your
existing installation. The release notes explain it.

-- Monitor the tomcat-dev list. You learn a lot more there than you do on
the user list (even though you don't normally post there...)

Thanks,
--jeff

- Original Message -
From: "Dwight Powell" <[EMAIL PROTECTED]>
To: "Tomcat Users" <[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 10:09 AM
Subject: Upgrade to Tomcat DECREASES Performance?


> OK, let's see how good you folks are:
>
> I work for a large national not-for profit membership organization.  We've
> got a large database application that we serve to our members from a small
> group of servers out of our national office.  About a week ago, we
upgraded
> our servers, moving from Apache JServ/mod_jserv/AJP12 to
> Tomcat/mod_jk/AJP13.  Ever since the upgrade, our servers have been HIGHLY
> unstable (our 3 busiest servers have each crashed at least once a day for
> the last week)  and we're HIGHLY confused.  The only real change has been
> the move to Tomcat, which we thought was a large upgrade, but our app has
> been acting as if we downgraded!
>
> Before the upgrade, application was having some performance issues (record
> locking, result set not found errors), probably caused by the large load
on
> our servers combined with some inefficiencies in the code.  After the
> upgrade, the same performance errors exist, but seem to be magnified, as
if
> Tomcat is working SLOWER than JServ.  But here's the worst part:
>
> At least once a day (usually after running for a while), the application
> will simply stop responding - users will attempt to save forms and/or
> navigate between pages and will never get a respond (eventually they'll
get
> a "Page Cannot Be Displayed Error").  When the server is in this state, we
> check the running processes and we see lots of java threads loaded and
> waiting for response, but none of them is RUNNING, so I don't THINK this
is
> a runaway thread problem.  Once the server hangs like this, our processor
> usage by the JVM will go down to 0% and stay there until we restart Apache
> and Tomcat.
>
> Here's our specs:
>
> SERVER SPECS (average):
>
> Dual Pentiums (1 Ghz)
> 2.5 GB RAM
> Red Hat Linux 7.1
>
> OLD CONFIGURATION:
> Apache 1.3.14
> Apache JServ (with mod_jserv and ajp12)
> IBM JDK 1.3-5
> Cloudscape 3.5
>
> NEW CONFIGURATION:
> Apache 1.3.14
> Jakarta Tomcat 3.2.2 (with mod_jk and ajp13)
> IBM JDK 1.3-9
> Cloudscape 3.5
>
> So... does anyone out there have any idea why we're seeing these problems?
> Where should we focus our investigation?   Should we just go back to
JServ,
> or is Tomcat REALLY better?
>
> Thanks to one and all...
>
> ***
> Dwight Powell
> Manager of Systems / Lead Programmer
> NACCRRA (www.naccrra.org)
> [EMAIL PROTECTED]
>
>




RE: Setting JVM Memory configuration

2001-07-30 Thread Eoin Woods

Firstly, running out of memory after a predictable period of running (rather
than because of peak loading) suggests a memory leak.  These are possible in
Java if you hold onto object references accidentally once you're done with
them (or libraries you call do so).  If this is the case, adding more JVM
memory won't help you.

You may want to monitor your Java memory usage with the JVM profiler (or an
external tool like jProbe).

Assuming that this isn't the case, then you have the correct command line
parameter - you're setting it to about 120 Mb in your example (which you can
specify as "-Xmx120M" if you prefer).  The default value for this is 64 Mb
on Solaris and WinNT with Sun's JVM.


Eoin.
-Original Message-
From: Srinivas Reddy [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 4:39 PM
To: [EMAIL PROTECTED]
Subject: Setting JVM Memory configuration


hi ,
my tomcat runs out of memory soon after 3-4 hrs of running(depends
on no of users accessing it). As almost 5-10 users are accessing it at a
time. I have 120 JSPs and 180 JAVA classes in defferent packages.
I increased JVM memory something like this in tomcat.bat file it
served me for next say 3-4 hrs but still it crashes after that.

 %_STARTJAVA% %TOMCAT_OPTS%  -Xmx12  -Dtomcat.home="%TOMCAT_HOME%"
org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9

can anyone help me ?

thanks in advance.
-srini

 Also what is default memory used by JVM 



- Original Message -
From: "Ogievetsky, Nikita" <[EMAIL PROTECTED]>
To: "Ogievetsky, Nikita" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 3:24 PM
Subject: RE: Invalid class file format


> never mind.
> the error disappeared when I switched from tomcat 3.2.3 to 4.0 b6
>
> --Nikita.
>
>
> -Original Message-
> From: Ogievetsky, Nikita
> Sent: Monday, July 30, 2001 5:37 PM
> To: '[EMAIL PROTECTED]'
> Subject: Invalid class file format
>
>
> Hello all,
>
> I would greatly appreciate your help.
>
> This is the message I am getting from Tomcat:
>
> org.apache.jasper.JasperException: Unable to compile class for JSPerror:
> Invalid class file format:
>
D:\xml\Rdfquery\lib\rdfquery.jar(org/desire/rudolf/query/DownloadUrls.class)
> , wrong version: 46, expected 45
>
>
> I tried to compile
> org/desire/rudolf/query/DownloadUrls.class
> with JDK 1.3 and JDK 1.2.2, same error message.
>
> I would greatly appreciate any hints and help,
>
> thanks,
>
> Nikita.
>
>
>
>  Important Notice to Recipients 
> It is important that you do not use e-mail to request, authorize or effect
> the purchase or sale of any security or commodity, to send fund transfer
> instructions, or to effect any other transactions.  Any such request,
> orders, or instructions that you send will not be accepted and will not be
> processed by Morgan Stanley.
> 
>



Re: Tomcat standalone vs Tomcat w/ Apache

2001-07-30 Thread Pier P. Fumagalli

Craig R. McClanahan at [EMAIL PROTECTED] wrote:
> On Mon, 30 Jul 2001, Richard Draucker wrote:
> 
>> The following is a cut'n paste from "tomcat/doc/uguide/tomcat_ug.html".
>> If you have tomcat installed, look for this doc and provide this text to your
>> sys admin.  
>> 
>> Setting Tomcat to Cooperate with the Apache Web Server
>> Tomcat is not as fast as Apache when it comes to static pages.  Tomcat is not
>> as configurable as Apache.  Tomcat is not as robust as Apache.
>> 
> 
> Don't believe everything you read ... even in the Tomcat docs :-).
> 
> There is no cut-and-dried answer whether Tomcat standalone or
> Tomcat+Apache will run faster for *you*.  There are far too many variables
> for simplistic answers to always be accurate.  The best thing to do is try
> your application both ways and see.
> 
> Just a few examples of how real life confounds answering a question
> like this:  :-)
> [...]

Well, to be completely honest, and being the author of 2 out of 3 apache
connectors to Tomcat, I am a _BIG_ fan of using Tomcat in stand-alone mode.
Unless you don't specifically require some of the Apache functionalities,
run it stand alone, might be slightly slower in some cases, but far more
stable.

Actual improvements can be achieved using JNI and a multi-threaded
web-server such as Apache 2.0, but AFAIK, for Tomcat 4.0 we're still far
from that... :(

Ok, I'm working on it :) :)

Pier




Re: Tomcat standalone vs Tomcat w/ Apache

2001-07-30 Thread Craig R. McClanahan



On Mon, 30 Jul 2001, Richard Draucker wrote:

> The following is a cut'n paste from "tomcat/doc/uguide/tomcat_ug.html".
> If you have tomcat installed, look for this doc and provide this text to your 
> sys admin.  
> 
> Setting Tomcat to Cooperate with the Apache Web Server 
> Tomcat is not as fast as Apache when it comes to static pages.  Tomcat is not 
> as configurable as Apache.  Tomcat is not as robust as Apache.  
> 

Don't believe everything you read ... even in the Tomcat docs :-).

There is no cut-and-dried answer whether Tomcat standalone or
Tomcat+Apache will run faster for *you*.  There are far too many variables
for simplistic answers to always be accurate.  The best thing to do is try
your application both ways and see.

Just a few examples of how real life confounds answering a question
like this:  :-)

* Many web applications written with servlets and JSP pages are
  95-100% dynamic content.  If your app is like that, static file
  serving speed is not relevant, or may not be significant enough
  to make any difference in overall response time.

* Under normal circumstances, thre *browser* will cache static files.
  If it does so, the fact that Apache might also do so is not relevant
  as long as Tomcat sends back the "Not Modified" response correctly
  (Tomcat 4 does this, for example, with zero disk accesses).

* You don't want Apache caching the output from dynamic resources
  (servlets and JSP pages), because the whole point of them is that
  the contents will change.

* You can, in your servlet/JSP page, implement the getLastModified()
  method yourself to let the browser cache your dynamic pages.  This is
  very useful for "dynamic" pages that don't change very often.

Of course, there are many non-performance-related reasons you might be
required to use Apache in conjunction with Tomcat (if you need the other
functionality that it provides).  But, if you don't, you owe it to
yourself to see if Tomcat stand-alone runs fast enough before undertaking
the extra pain it takes to configure them to run together.

Craig McClanahan




Re: VOTE: HTML in Messages and politeness (Was: Re: jdbc odbc bridge on linux)

2001-07-30 Thread Srinivas Reddy

+1 




RE: VOTE: HTML in Messages and politeness (Was: Re: jdbc odbc bridge on linux)

2001-07-30 Thread Nael Mohammad


+1 for plain text






-Original Message-
From: Pier P. Fumagalli [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 4:37 PM
To: [EMAIL PROTECTED]
Subject: Re: VOTE: HTML in Messages and politeness (Was: Re: jdbc odbc
bridge on linux)


Pier P. Fumagalli at [EMAIL PROTECTED] wrote:
> 
> [ ] +1 -> Plain Text only. Strip HTML on the mailing list.
> [ ]  0 -> I don't give a damn shit.
> [ ] -1 -> You mad? I love HTML in messages and want to keep using it.

We got more than 20 +1s, a couple of 0s, and no -1. So I asked root to
modify the mailing list...
I'll keep you updated on how this is going to happen (maybe few hours, maybe
few days!) :)

Pier



Re: VOTE: HTML in Messages and politeness (Was: Re: jdbc odbcbridge on linux)

2001-07-30 Thread Pier P. Fumagalli

Pier P. Fumagalli at [EMAIL PROTECTED] wrote:
> 
> [ ] +1 -> Plain Text only. Strip HTML on the mailing list.
> [ ]  0 -> I don't give a damn shit.
> [ ] -1 -> You mad? I love HTML in messages and want to keep using it.

We got more than 20 +1s, a couple of 0s, and no -1. So I asked root to
modify the mailing list...
I'll keep you updated on how this is going to happen (maybe few hours, maybe
few days!) :)

Pier




Setting JVM Memory configuration

2001-07-30 Thread Srinivas Reddy

hi ,
my tomcat runs out of memory soon after 3-4 hrs of running(depends
on no of users accessing it). As almost 5-10 users are accessing it at a
time. I have 120 JSPs and 180 JAVA classes in defferent packages.
I increased JVM memory something like this in tomcat.bat file it
served me for next say 3-4 hrs but still it crashes after that.

 %_STARTJAVA% %TOMCAT_OPTS%  -Xmx12  -Dtomcat.home="%TOMCAT_HOME%"
org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9

can anyone help me ?

thanks in advance.
-srini

 Also what is default memory used by JVM 



- Original Message -
From: "Ogievetsky, Nikita" <[EMAIL PROTECTED]>
To: "Ogievetsky, Nikita" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 3:24 PM
Subject: RE: Invalid class file format


> never mind.
> the error disappeared when I switched from tomcat 3.2.3 to 4.0 b6
>
> --Nikita.
>
>
> -Original Message-
> From: Ogievetsky, Nikita
> Sent: Monday, July 30, 2001 5:37 PM
> To: '[EMAIL PROTECTED]'
> Subject: Invalid class file format
>
>
> Hello all,
>
> I would greatly appreciate your help.
>
> This is the message I am getting from Tomcat:
>
> org.apache.jasper.JasperException: Unable to compile class for JSPerror:
> Invalid class file format:
>
D:\xml\Rdfquery\lib\rdfquery.jar(org/desire/rudolf/query/DownloadUrls.class)
> , wrong version: 46, expected 45
>
>
> I tried to compile
> org/desire/rudolf/query/DownloadUrls.class
> with JDK 1.3 and JDK 1.2.2, same error message.
>
> I would greatly appreciate any hints and help,
>
> thanks,
>
> Nikita.
>
>
>
>  Important Notice to Recipients 
> It is important that you do not use e-mail to request, authorize or effect
> the purchase or sale of any security or commodity, to send fund transfer
> instructions, or to effect any other transactions.  Any such request,
> orders, or instructions that you send will not be accepted and will not be
> processed by Morgan Stanley.
> 
>




RE: Invalid class file format

2001-07-30 Thread Ogievetsky, Nikita

never mind.
the error disappeared when I switched from tomcat 3.2.3 to 4.0 b6

--Nikita.


-Original Message-
From: Ogievetsky, Nikita 
Sent: Monday, July 30, 2001 5:37 PM
To: '[EMAIL PROTECTED]'
Subject: Invalid class file format


Hello all,

I would greatly appreciate your help.

This is the message I am getting from Tomcat:

org.apache.jasper.JasperException: Unable to compile class for JSPerror:
Invalid class file format:
D:\xml\Rdfquery\lib\rdfquery.jar(org/desire/rudolf/query/DownloadUrls.class)
, wrong version: 46, expected 45
 

I tried to compile 
org/desire/rudolf/query/DownloadUrls.class
with JDK 1.3 and JDK 1.2.2, same error message.

I would greatly appreciate any hints and help,

thanks,

Nikita.



 Important Notice to Recipients  
It is important that you do not use e-mail to request, authorize or effect
the purchase or sale of any security or commodity, to send fund transfer
instructions, or to effect any other transactions.  Any such request,
orders, or instructions that you send will not be accepted and will not be
processed by Morgan Stanley. 
 



Re: How to handle this.

2001-07-30 Thread Richard Draucker

I think IE gives you access to the back button, but most browsers don't.  
There are javascript methods you can use with the new event model, but they 
won't work on older browsers.  In short, writing a catch for the back button 
can't be handled consistently.  



On Monday 30 July 2001 03:11 pm, you wrote:
> See this link
> http://www.javascript-page.com/onunload.html
>
> I just found that by doing a normal
> google search. In the future cant you
> do this rather then wasting an email
> when it takes less than a minute to find it?
>
> - Original Message -
> From: "Wang, Jianming" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 30, 2001 12:12 PM
> Subject: RE: How to handle this.
>
> > Do you know how?
> >
> > -Original Message-
> > From: Tsinwah Lee [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 30, 2001 2:57 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: How to handle this.
> >
> >
> > Yo ucan use javaScript to do that.
> >
> > "Wang, Jianming" wrote:
> > > Hi everybody,
> > >
> > > I have an web application and I want to handle the event of user's
> >
> > clicking
> >
> > > on the Back button.  Does anybody know how to do it?  Thanks in
> > > advance.
> > >
> > > JW.

-- 
Richard Draucker [EMAIL PROTECTED]
Protected-Data.Com www.protected-data.com
Remote Data Support For Web Developers




RE: Tomcat standalone vs Tomcat w/ Apache

2001-07-30 Thread Chad Wray

Will Apache cache jsp pages also or only html and
images.  I don't have any standalone html pages
(except my simple index.html) otherwise every file
requested is of type *.jsp.

Thanks for all the replies so far.

-- Chad


--- Curtis Dougherty
<[EMAIL PROTECTED]> wrote:
> Apache caches the pages... The initial load into
> cache will take a fraction
> of a second longer but from that point on it will
> zip right through.
> 
> :-)
> 
> -Original Message-
> From: Tsinwah Lee [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 30, 2001 5:00 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Tomcat standalone vs Tomcat w/ Apache
> 
> 
> What? using Apache with Tomcat will increase the
> performance for static
> pages? Well, my admin told me the opposite, she said
> the browser "hesitated"
> for a fraction of a second and then the static pages
> got load up when using
> Apache + Tomcat. So she wanted to use Tomcat
> standalone instead. So how come
> there is an increase in performance? Please help me
> to convice my admin to
> use both Apache and Tomcat. Thanks much in advance.
> 
> T.
> 
> Srinivas Reddy wrote:
> 
> > Also there is an  increase in performance for
> static files like .html and
> > static images.
> >
> > -srini
> > - Original Message -
> > From: "Tim O'Neil" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, July 30, 2001 2:27 PM
> > Subject: Re: Tomcat standalone vs Tomcat w/ Apache
> >
> > > At 02:04 PM 7/30/2001, you wrote:
> > > >Are there any advantages running Tomcat with
> Apache
> > > >versus running Tomcat standalone and listening
> on port
> > > >80.  I am running only *.jsp files on my
> webserver.
> > >
> > > Added security if you use Apache.
> > >
> > >


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Re: new tomcat user

2001-07-30 Thread Richard Draucker

Its java... no binaries.  Just untar it on any java enabled box. 


On Monday 30 July 2001 06:17 pm, you wrote:
> Hello,
> I must get tomcat working with Solaris 7 and apache 1.3.12,
> do I have to compile tomcat 3.2.3 from scratch, or do binaries exist for
> SUN Solaris?
> I searched the website and only found binaries for linux, netware and
> win32, can someone help?
> thanks,
> Bryan
>
> [EMAIL PROTECTED]
> www.contivo.com

-- 
Richard Draucker [EMAIL PROTECTED]
Protected-Data.Com www.protected-data.com
Remote Data Support For Web Developers




Re: Tomcat standalone vs Tomcat w/ Apache

2001-07-30 Thread Richard Draucker

The following is a cut'n paste from "tomcat/doc/uguide/tomcat_ug.html".
If you have tomcat installed, look for this doc and provide this text to your 
sys admin.  

Setting Tomcat to Cooperate with the Apache Web Server 
Tomcat is not as fast as Apache when it comes to static pages.  Tomcat is not 
as configurable as Apache.  Tomcat is not as robust as Apache.  



On Monday 30 July 2001 05:59 pm, you wrote:
> What? using Apache with Tomcat will increase the performance for static
> pages? Well, my admin told me the opposite, she said the browser
> "hesitated" for a fraction of a second and then the static pages got load
> up when using Apache + Tomcat. So she wanted to use Tomcat standalone
> instead. So how come there is an increase in performance? Please help me to
> convice my admin to use both Apache and Tomcat. Thanks much in advance.
>
> T.
>
> Srinivas Reddy wrote:
> > Also there is an  increase in performance for static files like .html and
> > static images.
> >
> > -srini
> > - Original Message -
> > From: "Tim O'Neil" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, July 30, 2001 2:27 PM
> > Subject: Re: Tomcat standalone vs Tomcat w/ Apache
> >
> > > At 02:04 PM 7/30/2001, you wrote:
> > > >Are there any advantages running Tomcat with Apache
> > > >versus running Tomcat standalone and listening on port
> > > >80.  I am running only *.jsp files on my webserver.
> > >
> > > Added security if you use Apache.

-- 
Richard Draucker [EMAIL PROTECTED]
Protected-Data.Com www.protected-data.com
Remote Data Support For Web Developers




new tomcat user

2001-07-30 Thread Bryan Rood

Hello,
I must get tomcat working with Solaris 7 and apache 1.3.12,
do I have to compile tomcat 3.2.3 from scratch, or do binaries exist for SUN
Solaris? 
I searched the website and only found binaries for linux, netware and win32,
can someone help?
thanks,
Bryan

[EMAIL PROTECTED]
www.contivo.com




Re: VOTE: HTML in Messages and politeness (Was: Re: jdbc odbc bridge on linux)

2001-07-30 Thread David Smith

On Sunday 29 July 2001 10:42 am, you wrote:

[snip...]
> One thing I can ask to you guys is, do you want me to strip HTML out of
> your messages and reject emails only with HTML content type? Plenary vote
> open until 11:59 PM GMT of Monday 07/30/2001.
>

>  [ >X<] +1 -> Plain Text only. Strip HTML on the mailing list.

> [ ]  0 -> I don't give a damn shit.
> [ ] -1 -> You mad? I love HTML in messages and want to keep using it.
>

I'd emphasize it more if I could.  HTML also comes with it's share of 
security headaches for those with HTML enabled email clients.

 

David Smith, CISSP
Network Operations Supervisor
Cornell University Department of Entomology
2121 Comstock Hall
Ithaca, NY  14853
Phone: (607) 255-9571
Fax: (607) 255-0939
Email: [EMAIL PROTECTED]



RE: Tomcat standalone vs Tomcat w/ Apache

2001-07-30 Thread Curtis Dougherty

Apache caches the pages... The initial load into cache will take a fraction
of a second longer but from that point on it will zip right through.

:-)

-Original Message-
From: Tsinwah Lee [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 5:00 PM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat standalone vs Tomcat w/ Apache


What? using Apache with Tomcat will increase the performance for static
pages? Well, my admin told me the opposite, she said the browser "hesitated"
for a fraction of a second and then the static pages got load up when using
Apache + Tomcat. So she wanted to use Tomcat standalone instead. So how come
there is an increase in performance? Please help me to convice my admin to
use both Apache and Tomcat. Thanks much in advance.

T.

Srinivas Reddy wrote:

> Also there is an  increase in performance for static files like .html and
> static images.
>
> -srini
> - Original Message -
> From: "Tim O'Neil" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 30, 2001 2:27 PM
> Subject: Re: Tomcat standalone vs Tomcat w/ Apache
>
> > At 02:04 PM 7/30/2001, you wrote:
> > >Are there any advantages running Tomcat with Apache
> > >versus running Tomcat standalone and listening on port
> > >80.  I am running only *.jsp files on my webserver.
> >
> > Added security if you use Apache.
> >
> >



Does Load balancing block requests? Help

2001-07-30 Thread Gopalakrishnan, Arvind

Iam working on solaris 2.6, Tomcat 3.2.1 and Apache 1.3.9 with mod_jk

I have 5 servlets running and they are load balanced by a load balancing
servlet. All the servlets are identical and run on the same machine and use
the same class files. 

Each of my requests takes 10 seconds to process.

If i sent 5 concurrent request at the same time. Servlet 1 would process
request 1 and wait 10 seconds and then the next request would get processed
and so on, it takes a total of 50 seconds to complete the operation.( The
whole operation seemed serial and not concurrent as i expected it to be)

I was expecting the 5 requests to be processed concurrently by the 5
servlets in 10 seconds. 
Does the Load-Balancer block 

What am i doing wrong or is this how it is supposed to work, my backend is a
Oracle database and all the operations are selects.

Please help



Re: Tomcat standalone vs Tomcat w/ Apache

2001-07-30 Thread Tsinwah Lee

What? using Apache with Tomcat will increase the performance for static
pages? Well, my admin told me the opposite, she said the browser "hesitated"
for a fraction of a second and then the static pages got load up when using
Apache + Tomcat. So she wanted to use Tomcat standalone instead. So how come
there is an increase in performance? Please help me to convice my admin to
use both Apache and Tomcat. Thanks much in advance.

T.

Srinivas Reddy wrote:

> Also there is an  increase in performance for static files like .html and
> static images.
>
> -srini
> - Original Message -
> From: "Tim O'Neil" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 30, 2001 2:27 PM
> Subject: Re: Tomcat standalone vs Tomcat w/ Apache
>
> > At 02:04 PM 7/30/2001, you wrote:
> > >Are there any advantages running Tomcat with Apache
> > >versus running Tomcat standalone and listening on port
> > >80.  I am running only *.jsp files on my webserver.
> >
> > Added security if you use Apache.
> >
> >




Re: Tomcat standalone vs Tomcat w/ Apache

2001-07-30 Thread Dan Bachelder

tomcat doesn't support apache mods yet does it?

- Original Message - 
From: "Chad Wray" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 5:04 PM
Subject: Tomcat standalone vs Tomcat w/ Apache


> Are there any advantages running Tomcat with Apache
> versus running Tomcat standalone and listening on port
> 80.  I am running only *.jsp files on my webserver.
> 
> Thanks in advance.
> 
> -- Chad Wray
> 
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
> 




Invalid class file format

2001-07-30 Thread Ogievetsky, Nikita

Hello all,

I would greatly appreciate your help.

This is the message I am getting from Tomcat:

org.apache.jasper.JasperException: Unable to compile class for JSPerror:
Invalid class file format:
D:\xml\Rdfquery\lib\rdfquery.jar(org/desire/rudolf/query/DownloadUrls.class)
, wrong version: 46, expected 45
 

I tried to compile 
org/desire/rudolf/query/DownloadUrls.class
with JDK 1.3 and JDK 1.2.2, same error message.

I would greatly appreciate any hints and help,

thanks,

Nikita.



 Important Notice to Recipients  
It is important that you do not use e-mail to request, authorize or effect
the purchase or sale of any security or commodity, to send fund transfer
instructions, or to effect any other transactions.  Any such request,
orders, or instructions that you send will not be accepted and will not be
processed by Morgan Stanley. 
 



Re: tomcat shutdowning

2001-07-30 Thread Mykola A. Nickishov

"sekhar  k" <[EMAIL PROTECTED]> writes:

> Hi all,
> I am using Apache and tomcat with SunSolaries. When i start my webserver remotly 
>using telnet both are running well. But when i dissconnect the telnet Tomcat is 
>getting shutdowning. but apache is running. What will be the problem. Please suggest 
>me

Do you start it like $TOMCAT_HOME/bin/tomcat.sh run? If it's true use
/tomcat.sh start or /startup.sh instead.

-- 
ICQ #83060237
MAN-UANIC NIK6-RIPE



Re: HTML in Messages and politeness (Was: Re: jdbc odbc bridgeon linux)

2001-07-30 Thread German Alvarado

> [X] +1 -> Plain Text only. Strip HTML on the mailing list.

That would be nice,

German




Re: Tomcat standalone vs Tomcat w/ Apache

2001-07-30 Thread Srinivas Reddy

Also there is an  increase in performance for static files like .html and
static images.

-srini
- Original Message -
From: "Tim O'Neil" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 2:27 PM
Subject: Re: Tomcat standalone vs Tomcat w/ Apache


> At 02:04 PM 7/30/2001, you wrote:
> >Are there any advantages running Tomcat with Apache
> >versus running Tomcat standalone and listening on port
> >80.  I am running only *.jsp files on my webserver.
>
> Added security if you use Apache.
>
>




Re: Tomcat standalone vs Tomcat w/ Apache

2001-07-30 Thread Tim O'Neil

At 02:04 PM 7/30/2001, you wrote:
>Are there any advantages running Tomcat with Apache
>versus running Tomcat standalone and listening on port
>80.  I am running only *.jsp files on my webserver.

Added security if you use Apache.




Re: Tomcat standalone vs Tomcat w/ Apache

2001-07-30 Thread Ashish Bajpai


Tomcat is a jsp/servlet container wheras the Apache is a full fledged
web server. It is always good to have a robust webserver as the front
door to your site.

thanks

ashish


   

Chad Wray  

   cc:   

 Subject: Tomcat standalone vs Tomcat w/ 
Apache
07/30/2001 

05:04 PM   

Please 

respond to 

tomcat-user

   

   





Are there any advantages running Tomcat with Apache
versus running Tomcat standalone and listening on port
80.  I am running only *.jsp files on my webserver.

Thanks in advance.

-- Chad Wray

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/







RE: Security questions

2001-07-30 Thread Dave Finch

Thanks very much.


-Original Message-
From: William Kaufman [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 30, 2001 5:00 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Security questions

> What is the default password for the admin context? 

It's in tomcat/conf/tomcat-users.xml .

> where can I find documentation on implementing security with tomcat? 

Start with the servlet specification at
http://java.sun.com/products/servlet/ .  You could also look at JDBCRealm
(sources and docs available at http://jakarta.apache.org/) as a sample
implementation.

-- Bill K. 



Tomcat standalone vs Tomcat w/ Apache

2001-07-30 Thread Chad Wray

Are there any advantages running Tomcat with Apache
versus running Tomcat standalone and listening on port
80.  I am running only *.jsp files on my webserver.

Thanks in advance.

-- Chad Wray

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



RE: Security questions

2001-07-30 Thread William Kaufman

> What is the default password for the admin context? 

It's in tomcat/conf/tomcat-users.xml .

> where can I find documentation on implementing security with tomcat? 

Start with the servlet specification at
http://java.sun.com/products/servlet/ .  You could also look at JDBCRealm
(sources and docs available at http://jakarta.apache.org/) as a sample
implementation.

-- Bill K. 



Security questions

2001-07-30 Thread Dave Finch








Hi,

 


 What is
 the default password for the admin context?
 where
 can I find documentation on implementing security with tomcat?


 

Thanks,

 

Dave Finch








Re: Creating object for the application

2001-07-30 Thread Alexis Alarcón Barra

Thanks Craig!! It worked !!

Alexis

"Craig R. McClanahan" wrote:

> On Mon, 30 Jul 2001, Alexis Alarcón Barra wrote:
>
> > ok ... i've done already that, but how can get the object from a jsp page to
> > manipulate it?
> >
>
> If you create a servlet context attribute, then it's just a 
> declaration with "application" scope.
>
> > Alexis
> >
>
> Craig McClanahan
>
> > "Craig R. McClanahan" wrote:
> >
> > > On Mon, 30 Jul 2001, Alexis Alarcón Barra wrote:
> > >
> > > > Hi,
> > > > anyone knows how to create an object from the startup of the server and
> > > > make it available for the application. I don't want to call a servlet to
> > > > get it from a JSP page. Is there another way?
> > > >
> > >
> > > In any servlet container that implements 2.2 or later, you can create a
> > > servlet that is marked  in the web.xml file, and then
> > > create your objects in the init() method of that servlet.  For more info
> > > about web.xml, see the Servlet Specification at
> > >
> > >   http://java.sun.com/products/servlet/download.html
> > >
> > > For servlet 2.3 containers (i.e. Tomcat 4.0 for now, others soon), you can
> > > also use the new "Application Event Listener" mechanism to register a
> > > class that is told about the context startup and context shutdown
> > > events.  This is a perfect place to initialize things at startup time.
> > >
> > > > Alexis
> > > >
> > >
> > > Craig McClanahan
> >
> >
> > _
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >


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




Re: Running Tomcat stanalone without the port number?

2001-07-30 Thread Tsinwah Lee

Thanks, Jim.

T.

Jim Seach wrote:

> If there is not another application listening on port
> 80 on that machine, you can change the port value for
> the connector in server.xml from 8080 to 80.  That
> way, the user won't have to type in the port.
>
> Jim
>
> --- Tsinwah Lee <[EMAIL PROTECTED]> wrote:
> > Hi, when running Tomcat standalone, the URL will
> > contain the port
> > number, e.g.:
> > www.hostname.com:8080/myApplication/index.jsp. Does
> > anybody know how to get rid of the port number when
> > running the Tomcat
> > in standalone mode? Thank you very much in advance.
> >
> > T.
> >
>
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/




Re: Running Tomcat stanalone without the port number?

2001-07-30 Thread Jim Seach

If there is not another application listening on port
80 on that machine, you can change the port value for
the connector in server.xml from 8080 to 80.  That
way, the user won't have to type in the port.

Jim

--- Tsinwah Lee <[EMAIL PROTECTED]> wrote:
> Hi, when running Tomcat standalone, the URL will
> contain the port
> number, e.g.:
> www.hostname.com:8080/myApplication/index.jsp. Does
> anybody know how to get rid of the port number when
> running the Tomcat
> in standalone mode? Thank you very much in advance.
> 
> T.
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Running Tomcat stanalone without the port number?

2001-07-30 Thread Tsinwah Lee

Hi, when running Tomcat standalone, the URL will contain the port
number, e.g.: www.hostname.com:8080/myApplication/index.jsp. Does
anybody know how to get rid of the port number when running the Tomcat
in standalone mode? Thank you very much in advance.

T.




explanation of the container with apache

2001-07-30 Thread Grobe, Gary


I'm looking to know how someone would explain how the servlet container
interacts with the web server. 

Things like, what exactly is a container, how requests are forwared to the
container, how the connections are made, the overhead, namespacing, etc...

Or even point me to a few refs about this.

Adv(thnxs)ance



AW: Sharing a local setup of Tomcat?

2001-07-30 Thread Ralph Einfeldt

Depends on the configuration of your network (ask your sysadmin).

The simplest way is to use the ip address of your pc.
  ipconfig -all (On windows)
  ifconfig -a (On linux)

If your network is setup in a common way, one of these should work:
http://xxx99x999
http://xxx99x999.your-domain
  (The domain of your intra net, not of your internet)
If not, go back to first line.

If you are the sysamin you're in trouble 8:)

> -Ursprüngliche Nachricht-
> Von: Hewko, Doug [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 30. Juli 2001 15:59
> An: '[EMAIL PROTECTED]'
> Betreff: Sharing a local setup of Tomcat?
> 
> 
> Hi! I managed to install Tomcat 4 on my local pc. In 
> organization's LAN, I
> have a unique computer ID (xxx99x999). What would someone 
> have to type to
> view the Tomcat default page from another computer?
> 



Possible ill-advised default handling of 403

2001-07-30 Thread Hood, Earl

I just noticed that if I set a 403 error status in a servlet, Tomcat
automatically adds the following HTML body with the error:

SSL required to access this page

Ugh.

I looked at the source code (3.2.2 of Tomcat) and notice that if
no 403 error-code handler is registered, it defaults to SSLRequiredHandler.
IMO, this is a bad default since SSL access is only one of many possible
reasons that access to a resource is forbidden.

To me, there should be no default, or if there is one, it should be a
canned response like "Access Forbidden".

So why was this done?  A hack for SSL support?  And when will it be changed.

--ewh

--
Earl W. Hood
Texas Instruments
[EMAIL PROTECTED]
972-917-1695



RE: How to handle this.

2001-07-30 Thread Bartosz Adamczyk (LMC)

The unload event doesn't only occur when the user clicks on the back button.
What if he closes the window.  Instead of bashing people when you give bad
advice, how about you check your own advice.

-Original Message-
From: Mike Alba [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 3:11 PM
To: [EMAIL PROTECTED]
Subject: Re: How to handle this.


See this link
http://www.javascript-page.com/onunload.html

I just found that by doing a normal
google search. In the future cant you
do this rather then wasting an email
when it takes less than a minute to find it?

- Original Message -
From: "Wang, Jianming" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 12:12 PM
Subject: RE: How to handle this.


> Do you know how?
>
> -Original Message-
> From: Tsinwah Lee [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 30, 2001 2:57 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to handle this.
>
>
> Yo ucan use javaScript to do that.
>
> "Wang, Jianming" wrote:
>
> > Hi everybody,
> >
> > I have an web application and I want to handle the event of user's
> clicking
> > on the Back button.  Does anybody know how to do it?  Thanks in advance.
> >
> > JW.
>



apache loses mime-type header

2001-07-30 Thread Maureen Fisher

Has anyone seen this?
The setup is apache 1.3.14 and tomcat 3.2.1 on AIX. The servlet correctly sets the 
header and with tomcat set up to accept HTTP requests, everything displays fine.
However, if we access the same servlet through apache's port, it gets displayed as 
text/plain instead.
Any ideas?

Maureen Fisher, CIT/ID, Cornell University
Ithaca, NY 14850
[EMAIL PROTECTED]
http://mo.cit.cornell.edu/

Treat people as if they were what they ought to be and you help them 
to become what they are capable of being.
--Johann Wolfgang von Goethe




RE: LDAPRealm & JNDIReam for Tomcat 3.2 and 4.0 beta 1 is available

2001-07-30 Thread Bragg, Casey
Title: LDAPRealm & JNDIReam for Tomcat 3.2 and 4.0 beta 1 is available



Hey 
Alex : 
 
I've 
got a question about your JNDIRealm stuff...
 
I'm 
using your SimpleRoleMapper to get started, but I can't get it to work.  I 
can't find in your code where a distinguished name (dn) is linked to 
roles.  In your translateroles function, I can see how users are assigned 
roles assigned to everybody (*), but I can't find anything like 
(String[])userRoles.get(distinghushedname) as I might expect.  All my users 
are reporting only a role of [guest] even though I've carefully matched the dn 
in the rolemapper file to the dn stored by jndirealm.
 
The 
translateroles code seems to be looking for rolenames as keys in the userroles 
Map : 
    String items[] = 
(String[])userRoles.get(ur);
 
Shouldn't this be something like : 
    
(String[])userRoles.get(distinghushedname) 
 
Please 
let me know if I'm looking at this wrong or not.
 
Thanks...
 
..Casey
 
== Casey Bragg - Software Engineer Allegiance Telecom, Inc.  Dallas, TX 469-259-2702 - [EMAIL PROTECTED] == 

  -Original Message-From: Roytman, Alex 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, June 04, 2001 5:03 
  PMTo: '[EMAIL PROTECTED]'Subject: LDAPRealm 
  & JNDIReam for Tomcat 3.2 and 4.0 beta 1 is available
  http://www.peacetech.com/java/files/apache/tomcat/default.htm 
  
  JndiRealm authenticates and authorizes users against JNDI. It 
  was tested against LDAP JNDI   with Sun's and 
  Netscape's jndi providers   LdapRealm 
  authenticates and authorizes users directly against LDAP using Netscape LDAP 
  JDK.   These two realms are interchangeable you 
  can switch between them without many configuration changes.   According to my tests it performs 10 faster under 20 concurrent 
  threads than JNDI with   Sun's LDAP provider. 
  This is not final result because I need to test and tune-up 
  multithreaded   access and synchronization there 
  might be some misunderstanding on my part.   I 
  also noticed some cases of JNDI loosing connection to the server under heavy 
  multithreaded   load while Netscape's LDAP 
  handled it nicely. Because I use LdapRealm for Tomcat 3.2 for my 
    production system it is tested better than 
  JndiRealm.   There are four classes in the 
  package :     JndiRealm and LdapRealm 
  are for Tomcat 3.2x     
  JndiRealmCatalina and LdapRealmCatalina for Tomcat 4.0 
    
  className="com.peacetech.webtools.tomcat.JndiRealm"   
  JNDI TOMCAT 3.2x   
  className="com.peacetech.webtools.tomcat.JndiRealmCatalina"   JNDI 
  TOMCAT 4.0   
  className="com.peacetech.webtools.tomcat.LdapRealmCatalina"   LDAP 
  TOMCAT 4.0   
  className="com.peacetech.webtools.tomcat.LdapRealm"   
  LDAP TOMCAT 3.2x 
    Jndi/LdapRealm uses searchBindDN and 
  searchBindCredentials to connect to a directory.   Then it looks for exactly one user name matching searchFilter in 
  searchBaseContext   scoped by searchScopeAsString 
  (values are "base", "one", "sub" according to LDAP URL rules)   If one and only one matching directory object is found it will 
  use this object and   tomcat supplied credentials 
  to authenticate the user.   If successful Realm 
  will fetch user roles using JNDI attributes listed in 
  securityAttributes   (comma separated directory 
  attribute names). If attributesReadByOwner = "true" Realm will use 
    authenticated user itself to pool the attributes from 
  directory otherwise it will use searchBindDN   to 
  retrieve the attributes.   If roleMapperClass is 
  specified Realm will use it to map user roles onto application roles 
    specific for each web context for tomcat 3.2x and 
  specific for each defined Realm for tomcat 4.2.   
  Provided SimpleRoleMapper implementation will read role map from either 
  roleMapperSourceUrl   (if specified) or for 
  tomcat 3.2x from WEB-INF/role-map.xml file in each web context 
    if no roleMapperSourceUrl was defined (if 
  WEB-INF/role-map.xml file does not exist in a context   no mapping for this context will occur).   You can use principalAttributes parameter to specify LDAP 
  attributes to be stored in principal   so you can 
  access them from your servlets 
    PARAMETERS: 
    jndiInitialContextFactory = 
  "com.sun.jndi.ldap.LdapCtxFactory"   
  (or "com.netscape.jndi.ldap.LdapContextFactory")   This attribute for JndiRealm ONLY.   It corresponds to 
  javax.naming.Context.INITIAL_CONTEXT_FACTORY 
    directoryUrl = "ldap://207.176.93.66:389" 
    This attribute for both JndiRealm and 
  LdapRealm.   If you want to use SSL for LdapRealm 
  you can use "ldaps" protocol: directoryUrl = 
  "ldaps://207.176.93.66:636"   You will need to 
  configure Sun's JSSE to use SSL   It corresponds 
  to javax.naming.Context.PROVIDER_URL 
    jndiSecurityAuthentication = "simple"   This attribute for JndiRealm ONLY.   It corresponds to 

Re: How to handle this.

2001-07-30 Thread Mike Alba

See this link
http://www.javascript-page.com/onunload.html

I just found that by doing a normal
google search. In the future cant you
do this rather then wasting an email
when it takes less than a minute to find it?

- Original Message -
From: "Wang, Jianming" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 12:12 PM
Subject: RE: How to handle this.


> Do you know how?
>
> -Original Message-
> From: Tsinwah Lee [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 30, 2001 2:57 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to handle this.
>
>
> Yo ucan use javaScript to do that.
>
> "Wang, Jianming" wrote:
>
> > Hi everybody,
> >
> > I have an web application and I want to handle the event of user's
> clicking
> > on the Back button.  Does anybody know how to do it?  Thanks in advance.
> >
> > JW.
>




RE: How to handle this.

2001-07-30 Thread Wang, Jianming

Do you know how?

-Original Message-
From: Tsinwah Lee [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 2:57 PM
To: [EMAIL PROTECTED]
Subject: Re: How to handle this.


Yo ucan use javaScript to do that.

"Wang, Jianming" wrote:

> Hi everybody,
>
> I have an web application and I want to handle the event of user's
clicking
> on the Back button.  Does anybody know how to do it?  Thanks in advance.
>
> JW.



RE: Help!! Apache won't redirect to tomcat

2001-07-30 Thread Andrew Inggs

Nance, Michael wrote:
> I don't have a /buy at all it is  just a Virtual Name

In this case maybe it would help if you explained your directory
layout.

Also I think you might be looking at the web.xml in the
TOMCAT_HOME/conf directory, e.g., on my machine
C:\jakarta-tomcat-3.2.2\conf\web.xml
but this file is not used by Tomcat at all (try renaming or
moving it and you will see).  Hope that helps.

-- Andrew



Re: Creating object for the application

2001-07-30 Thread Craig R. McClanahan



On Mon, 30 Jul 2001, Alexis Alarcón Barra wrote:

> ok ... i've done already that, but how can get the object from a jsp page to
> manipulate it?
> 

If you create a servlet context attribute, then it's just a 
declaration with "application" scope.


> Alexis
> 

Craig McClanahan


> "Craig R. McClanahan" wrote:
> 
> > On Mon, 30 Jul 2001, Alexis Alarcón Barra wrote:
> >
> > > Hi,
> > > anyone knows how to create an object from the startup of the server and
> > > make it available for the application. I don't want to call a servlet to
> > > get it from a JSP page. Is there another way?
> > >
> >
> > In any servlet container that implements 2.2 or later, you can create a
> > servlet that is marked  in the web.xml file, and then
> > create your objects in the init() method of that servlet.  For more info
> > about web.xml, see the Servlet Specification at
> >
> >   http://java.sun.com/products/servlet/download.html
> >
> > For servlet 2.3 containers (i.e. Tomcat 4.0 for now, others soon), you can
> > also use the new "Application Event Listener" mechanism to register a
> > class that is told about the context startup and context shutdown
> > events.  This is a perfect place to initialize things at startup time.
> >
> > > Alexis
> > >
> >
> > Craig McClanahan
> 
> 
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 




Re: How to handle this.

2001-07-30 Thread Tsinwah Lee

Yo ucan use javaScript to do that.

"Wang, Jianming" wrote:

> Hi everybody,
>
> I have an web application and I want to handle the event of user's clicking
> on the Back button.  Does anybody know how to do it?  Thanks in advance.
>
> JW.




RE: Preventing System.exit(0)

2001-07-30 Thread Randy Layman


As an interesting (but mostly unrelated) tidbit, javadoc calls
System.exit.  This caused some problems for the Ant developers.

Randy

> -Original Message-
> From: Nils O. Selåsdal [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 30, 2001 2:16 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Preventing System.exit(0)
> 
> 
> On Monday 30 July 2001 04:33 pm, you wrote:
> > At 06:24 AM 7/30/2001, you wrote:
> > >Is it possible to configure Tomcat to avoid shutdown
> > >in case the jsp page contains the code:
> > >
> > ><% System.exit(0); %>
> >
> > Java SERVER pages are server-side code. Why is having
> > a system object issue an exit method an issue for you?
> > Do you plan on having your server run black box code?
> Say he invites his friends, the school, whatever, to put 
> servlets/jsp pages
> on his server. Its nice to have some security there , to 
> prevent the next 
> ass to put in a System.exit(...) and thereby stopping the 
> entire server.
> Or it might be that other software needs to be used, and 
> someone put in a 
> system.exit there in a try/catch block ( I experienced that..).
> You can install a security manager to prevent this, I dont 
> remember excactly 
> how i did that, but its pretty easy, and can be found in the book
> 'Core Java 2 - Advanced Features' I think sun also have some 
> tutorials on 
> this. http://java.sun.com
> -- 
> Nils O. Selåsdal
> 



How to handle this.

2001-07-30 Thread Wang, Jianming

Hi everybody,

I have an web application and I want to handle the event of user's clicking
on the Back button.  Does anybody know how to do it?  Thanks in advance.

JW.



Re: Creating object for the application

2001-07-30 Thread Alexis Alarcón Barra

ok ... i've done already that, but how can get the object on a jsp page to
manipulate it?

Alexis

"Craig R. McClanahan" wrote:

> On Mon, 30 Jul 2001, Alexis Alarcón Barra wrote:
>
> > Hi,
> > anyone knows how to create an object from the startup of the server and
> > make it available for the application. I don't want to call a servlet to
> > get it from a JSP page. Is there another way?
> >
>
> In any servlet container that implements 2.2 or later, you can create a
> servlet that is marked  in the web.xml file, and then
> create your objects in the init() method of that servlet.  For more info
> about web.xml, see the Servlet Specification at
>
>   http://java.sun.com/products/servlet/download.html
>
> For servlet 2.3 containers (i.e. Tomcat 4.0 for now, others soon), you can
> also use the new "Application Event Listener" mechanism to register a
> class that is told about the context startup and context shutdown
> events.  This is a perfect place to initialize things at startup time.
>
> > Alexis
> >
>
> Craig McClanahan


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




Re: Creating object for the application

2001-07-30 Thread Alexis Alarcón Barra

ok ... i've done already that, but how can get the object from a jsp page to
manipulate it?

Alexis

"Craig R. McClanahan" wrote:

> On Mon, 30 Jul 2001, Alexis Alarcón Barra wrote:
>
> > Hi,
> > anyone knows how to create an object from the startup of the server and
> > make it available for the application. I don't want to call a servlet to
> > get it from a JSP page. Is there another way?
> >
>
> In any servlet container that implements 2.2 or later, you can create a
> servlet that is marked  in the web.xml file, and then
> create your objects in the init() method of that servlet.  For more info
> about web.xml, see the Servlet Specification at
>
>   http://java.sun.com/products/servlet/download.html
>
> For servlet 2.3 containers (i.e. Tomcat 4.0 for now, others soon), you can
> also use the new "Application Event Listener" mechanism to register a
> class that is told about the context startup and context shutdown
> events.  This is a perfect place to initialize things at startup time.
>
> > Alexis
> >
>
> Craig McClanahan


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




mod_jk.log file sample

2001-07-30 Thread Tsinwah Lee

Hi, can anyone send me some sample of the mod_jk.log file? (Just a few lines is ok) I 
want to see if our mod_jk.log file is normal, since most of the other log files 
contains date/time values (e.g., Apache's access_log, access_log, JServ's 
mod_jserv.log, all of them contain the date/time values) but our mod_jk.log file 
doesn't. Thanks in advance.





Is there a way to get the Doc Root

2001-07-30 Thread Randy Paries
Title: RE: what is this number -2147483646



Hello,
 
This 
may be more of a JSP or Servlet question, but I am sure someone in this group 
would know the answer
 
I have 
an Web application /Myapp and I have a bunch of jsps in an admin directory. I am 
going to distribute this
in a 
generic war file.

 
So to 
access my admin index I would do something like http://host/Appname/admin/admin.jsp 
The 
problem is I do not know what the end user is going to call the 
application(Appname). So How do I get the Document root.
 
I can 
do a path = <%= request.getRequestURI()  %> and do some substring 
stuff.
<%= 
application.getRealPath("") %> doesn't give me what I need.  I was 
hoping for an application.getPath("") 
 
Thanks 
for any Suggestions..
 
Randy

  -Original Message-From: Raphael Lemaitre 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, June 21, 2001 10:57 
  AMTo: '[EMAIL PROTECTED]'Subject: RE: what 
  is this number -2147483646
  -2147483646 is Integer.MIN_VALUE With 
  this value, this servlet is loaded first (the less load-on-startup value is, 
  earlier the servlet is loaded) 
  Raphael Lemaitre 
  > HI >   What is the 
  meaning of the foll. code in web.xml file for startup > servlets. > >   > 
  -2147483646 >   
  > > > can any one know .. > > Rgds > venkatesh > 


Re: Creating object for the application

2001-07-30 Thread Craig R. McClanahan

On Mon, 30 Jul 2001, Alexis Alarcón Barra wrote:

> Hi,
> anyone knows how to create an object from the startup of the server and
> make it available for the application. I don't want to call a servlet to
> get it from a JSP page. Is there another way?
> 

In any servlet container that implements 2.2 or later, you can create a
servlet that is marked  in the web.xml file, and then
create your objects in the init() method of that servlet.  For more info
about web.xml, see the Servlet Specification at

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

For servlet 2.3 containers (i.e. Tomcat 4.0 for now, others soon), you can
also use the new "Application Event Listener" mechanism to register a
class that is told about the context startup and context shutdown
events.  This is a perfect place to initialize things at startup time.

> Alexis
> 

Craig McClanahan




Re: *** HELP *** mySQL connectivity problems

2001-07-30 Thread Craig R. McClanahan

On Mon, 30 Jul 2001, SIMONIN Alexandre wrote:

> Hi,
> 
> I'm running mySQL 2.0.4 and Tomcat 4.0 on Cobalt/Linux. 
> 

Are you running Tomcat 4 with a security manager (i.e.
"$CATALINA_HOME/bin/catalina.sh start -security")?  That seems likely,
given the fact that you're gatting a security manager exception.

If so, you need to grant your JDBC driver permission to create a network
connection to port 3306 on your database host.  This is done in the
"conf/catalina.policy" file.  There are some notes near the bottom of that
file documenting the way that you add this permission.

Craig McClanahan


> When trying to get a connection to the database, I got the following error
> (the code is provided below - exact id and password replaced for
> confidentiality).
> 
> Step 1 : Class.forName("org.gjt.mm.mysql.Driver"); OK
> Step 2 :
> getConnection("jdbc:mysql://sherweb7.sherweb.com:3306/myDatabase?user=myID&p
> assword=myPwd"); *** FAILURE ***
>  SQLException: Cannot connect to MySQL server on
> sherweb7.sherweb.com:3306. Is there a MySQL server running on the
> machine/port you are
>  trying to connect to? (java.security.AccessControlException)
>  SQLState: 08S01
>  VendorError: 0
> 
> Few comments:
> 1/ the mySQL server's site address is OK (not the localhost)
> 2/ the mySQL server's port is OK
> 3/ the table name is OK
> 4/ the userID is OK
> 5/ the password is OK
> 6/ the connection looks fine through phpMyAdmin
> 7/ I get the same java.security.AccessControlException when doing the same
> request without the userID and password
> 6/ I got a java.net.ConnectException (which seems normal to me) when trying
> to call the server as if it was local to my machine, i.e.:
> jdbc:mysql:///myDatabase?user=myID&password=myPwd
> 
> Any suggestion?
> 
> The code:
> 
> try {
>   Class.forName("org.gjt.mm.mysql.Driver");   // this or  same>.newInstance() does the same
>   System.out.println("Step1: Class.forName(\"org.gjt.mm.mysql.Driver\"):
> OK");
> }
> catch (Exception e) {
>   System.out.println("Class.forName(\"org.gjt.mm.mysql.Driver\"): ***
> FAILURE ***");
> }
> 
> Connection myConn = null;
> 
> try {
>   myConn =
> DriverManager.getConnection("jdbc:mysql://sherweb7.sherweb.com:3306/myDataba
> se?user=myID&password=myPwd");
>   System.out.println("Step 2:
> getConnection(\"jdbc:mysql://sherweb7.sherweb.com:3306/myDatabase?user=myID&
> password=myPwd\"): OK");
> }
> catch (SQLException e) {
>   System.out.println("Step 2:
> getConnection(\"jdbc:mysql://sherweb7.sherweb.com:3306/myDatabase?user=myID&
> password=myPwd\"): *** FAILURE ***");
>  System.out.println(" SQLException: "+e.getMessage());
>  System.out.println(" SQLState: "+e.getSQLState());
>  System.out.println(" VendorError: "+e.getErrorCode());
> }
> 
> 
> 




Re: Preventing System.exit(0)

2001-07-30 Thread Nils O. Selåsdal

On Monday 30 July 2001 04:33 pm, you wrote:
> At 06:24 AM 7/30/2001, you wrote:
> >Is it possible to configure Tomcat to avoid shutdown
> >in case the jsp page contains the code:
> >
> ><% System.exit(0); %>
>
> Java SERVER pages are server-side code. Why is having
> a system object issue an exit method an issue for you?
> Do you plan on having your server run black box code?
Say he invites his friends, the school, whatever, to put servlets/jsp pages
on his server. Its nice to have some security there , to prevent the next 
ass to put in a System.exit(...) and thereby stopping the entire server.
Or it might be that other software needs to be used, and someone put in a 
system.exit there in a try/catch block ( I experienced that..).
You can install a security manager to prevent this, I dont remember excactly 
how i did that, but its pretty easy, and can be found in the book
'Core Java 2 - Advanced Features' I think sun also have some tutorials on 
this. http://java.sun.com
-- 
Nils O. Selåsdal



problem with mod_jk

2001-07-30 Thread Tsinwah Lee

Hi, my admin has config Apache to work with Tomcat, she said using Apache + Tomcat 
together, the jsp/servlets will load faster, but the static pages will "hesitate" for 
a fraction of a second and then the pages got load up. Also, the size of the log file 
for mod_jk has increased to 3MB by just using Apache + Tomcat for about 20 minutes. I 
checked with the mod_jk.conf and mod_jk.conf file, the jkLogLevel is "warn", and in 
the mod_jk.conf-auto file, the jkLogLevel is "error". Both of them are not on the 
"debug" level. I wonder why the size of mod_jk.log is that large.
So does anyone experience something like that? Or does anyone know how to optimize the 
performance for both static pages and servlet when using Apache + Tomcat? Thanks in 
advance.




Upgrade to Tomcat DECREASES Performance?

2001-07-30 Thread Dwight Powell

OK, let's see how good you folks are:

I work for a large national not-for profit membership organization.  We've
got a large database application that we serve to our members from a small
group of servers out of our national office.  About a week ago, we upgraded
our servers, moving from Apache JServ/mod_jserv/AJP12 to
Tomcat/mod_jk/AJP13.  Ever since the upgrade, our servers have been HIGHLY
unstable (our 3 busiest servers have each crashed at least once a day for
the last week)  and we're HIGHLY confused.  The only real change has been
the move to Tomcat, which we thought was a large upgrade, but our app has
been acting as if we downgraded!

Before the upgrade, application was having some performance issues (record
locking, result set not found errors), probably caused by the large load on
our servers combined with some inefficiencies in the code.  After the
upgrade, the same performance errors exist, but seem to be magnified, as if
Tomcat is working SLOWER than JServ.  But here's the worst part:

At least once a day (usually after running for a while), the application
will simply stop responding - users will attempt to save forms and/or
navigate between pages and will never get a respond (eventually they'll get
a "Page Cannot Be Displayed Error").  When the server is in this state, we
check the running processes and we see lots of java threads loaded and
waiting for response, but none of them is RUNNING, so I don't THINK this is
a runaway thread problem.  Once the server hangs like this, our processor
usage by the JVM will go down to 0% and stay there until we restart Apache
and Tomcat.

Here's our specs:

SERVER SPECS (average):

Dual Pentiums (1 Ghz)
2.5 GB RAM
Red Hat Linux 7.1

OLD CONFIGURATION:
Apache 1.3.14
Apache JServ (with mod_jserv and ajp12)
IBM JDK 1.3-5
Cloudscape 3.5

NEW CONFIGURATION:
Apache 1.3.14
Jakarta Tomcat 3.2.2 (with mod_jk and ajp13)
IBM JDK 1.3-9
Cloudscape 3.5

So... does anyone out there have any idea why we're seeing these problems?
Where should we focus our investigation?   Should we just go back to JServ,
or is Tomcat REALLY better?

Thanks to one and all...

***
Dwight Powell
Manager of Systems / Lead Programmer
NACCRRA (www.naccrra.org)
[EMAIL PROTECTED]





Re: Preventing System.exit(0)

2001-07-30 Thread Pier P. Fumagalli

Henrik Skafsgaard Larsen at [EMAIL PROTECTED] wrote:

> Is it possible to configure Tomcat to avoid shutdown
> in case the jsp page contains the code:
> 
> <% System.exit(0); %>

Yep... Run it in a sandboxed environment with a Security Manager...

Pier




Creating object for the application

2001-07-30 Thread Alexis Alarcón Barra

Hi,
anyone knows how to create an object from the startup of the server and
make it available for the application. I don't want to call a servlet to
get it from a JSP page. Is there another way?

Alexis


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




RE: Customize Url Rewriting + QUESTION

2001-07-30 Thread Loïc Lefèvre

Okay, let's speak ;)

here is my mod_jk.conf:
##
# TOMCAT mod_jk.so MODULE CONFIGURATION FILE #
##

JkWorkersFile /usr/local/tomcat/jakarta-tomcat-3.2.3/conf/workers.properties
JkLogFile  /usr/local/tomcat/log/mod_jk.log

#
# Log level to be used by mod_jk
# debug / error / warn / info / fatal
#
JkLogLevel debug

NameVirtualHost 192.1.1.128



ServerName lol.fivia.com

# Répertoire ou commence le site, pour les fichiers statiques
DocumentRoot /usr/local/tomcat/jakarta-tomcat-3.2.3/webapps/lol

JkMount /lol/* ajp12
JkMount /*.jsp ajp12

RedirectMatch /index.html $1/start/index.html

ErrorLog /usr/local/tomcat/log/lol_error_html.log
TransferLog /usr/local/tomcat/log/lol_access_html.log

RewriteEngine on
RewriteLog /usr/local/tomcat/log/lol_rewrite.log
RewriteLogLevel 9

# Seen in a faq (: http://www.jguru.com/faq/view.jsp?EID=53878)
RewriteRule  ^(/.*;jsessionid=.*)$  $1 [T=jserv-servlet,PT]

RewriteCond %{REQUEST_URI} ^/servlet* [NC]
RewriteRule ^/servlet/(.*) /lol/$1 [PT]

RewriteCond %{REQUEST_URI} !^/lol* [NC]
RewriteCond %{REQUEST_URI} !^/Image* [NC]
RewriteCond %{REQUEST_URI} !^/Elemtech* [NC]
RewriteCond %{REQUEST_URI} !^/Erreur* [NC]
RewriteCond %{REQUEST_URI} ^/.*/.*
RewriteRule ^/(.*) /lol/AdFront?access=/$1 [PT,QSA]

#RewriteRule ^/Image/(.*)   /Image/$1   [L,NC]
#RewriteRule ^/Erreur/(.*)  /Erreur/$1  [L,NC]
#RewriteRule ^/Elemtech/(.*)/Elemtech/$1[L,NC]
#RewriteRule ^/servlet/(.*) /lol/$1 [PT]
#RewriteCond %{REQUEST_URI} ^/.*/.*
#RewriteRule ^/(.*) /lol/AdFront?access=/$1 [QSA]



here is the code of my URLRewriter:
package com.fivia.adfront.sales;

import com.fivia.adfront.sales.kernel.*;
import com.fivia.adfront.sales.util.*;

import java.io.*;
import java.sql.*;
import java.util.*;
import java.text.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.StringTokenizer;
import java.util.Date;

public class AdURLRewriter extends HttpServlet
{
public static AdFront application = null;
public static int p = 0;

//
/* Initialisation  
 */
//
public void init(ServletConfig config)
throws ServletException
{
System.out.println("Initialisation d'AdURLRewriter en cours...");
super.init(config);

// Instanciation de l'application (static !)
if( application == null )
{
application = new AdFront();
application.init(config);
}
}

//
/* Destroy 
 */
//
public void destroy()
{
System.out.println("Destruction d'AdURLRewriter...");
super.destroy();
}

//
/* GET method   */
//
public void doGet(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException
{
p++; // to debug

if( p <= 3) // I just redirect the 3rd first uri
{
if( request.getRequestURI().startsWith("/lol/AdFront") ||
request.getRequestURI().startsWith("/servlet/AdFront") )
application.doGet(request,response);
else

response.sendRedirect("/lol/AdFront?access="+request.getRequestURI());
}
else
{
// Snnop servlet (Tomcat) code
  PrintWriter out = response.getWriter();
response.setContentType("text/plain");

out.println("Snoop Servlet");
out.println();
out.println("Servlet init parameters:");
Enumeration e = getInitParameterNames();
while (e.hasMoreElements())
{
String key = (String)e.nextElement();
String value = getInitParameter(key);
out.println("   " + key + " = " + value);
}
out.println();

out.println("Context init parameters:");
ServletContext context = getServletContext();
Enumeration enum = context.getInitParameterNames();
while (enum.hasMoreElements()) {
String key = (String)enum.nextElement();
Object value = context.getInitParameter(

Help: HttpFilterProc Problem...

2001-07-30 Thread Felix Guerrero

Hi,

It seems that apache is redirecting the request to Tomcat. However, here is 
the output of the isapi.log file. Any pointers on what might be wrong with 
my configuration?. I have not made any changes to the default configuration 
of Tomcat.

Thanks.

Felix.


[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of 
/examples/jsp/index.html
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (435)]: jk_uri_worker_map_t::map_uri_to_worker, done 
without a match
[jk_isapi_plugin.c (452)]: HttpFilterProc [/examples/jsp/index.html] is not 
a servlet url
[jk_isapi_plugin.c (461)]: HttpFilterProc check if 
[/examples/jsp/index.html] is points to the web-inf directory
[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of 
/examples/jsp/index.html
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (435)]: jk_uri_worker_map_t::map_uri_to_worker, done 
without a match
[jk_isapi_plugin.c (452)]: HttpFilterProc [/examples/jsp/index.html] is not 
a servlet url
[jk_isapi_plugin.c (461)]: HttpFilterProc check if 
[/examples/jsp/index.html] is points to the web-inf directory


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




Re: Sharing a local setup of Tomcat?

2001-07-30 Thread Jim Seach

If your organization is using WINS, you should be able
to just use http://xxx99x999:8080/ from another
computer on your LAN.

If not, or if you want connectivity from outside your
LAN (if allowed by your firewall), then run winipcfg
to find out your ip address, then replace the
xxx99x999 with your ip address.

Jim

--- "Hewko, Doug" <[EMAIL PROTECTED]> wrote:
> Hi! I managed to install Tomcat 4 on my local pc. In
> organization's LAN, I
> have a unique computer ID (xxx99x999). What would
> someone have to type to
> view the Tomcat default page from another computer?


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Re: Sharing a local setup of Tomcat?

2001-07-30 Thread Richard Draucker

Tomcat pages are accessed via tcp/ip.  So, for example, if your machine ip is 
192.168.0.42 then others would open a browser and type:
http://192.168.0.42/index.html
to get the index page. 

If your network can translate the network names of local machines and your 
machine name is "joesbox" then: http://joesbox/index would also work. 



On Monday 30 July 2001 09:58 am, you wrote:
> Hi! I managed to install Tomcat 4 on my local pc. In organization's LAN, I
> have a unique computer ID (xxx99x999). What would someone have to type to
> view the Tomcat default page from another computer?

-- 
Richard Draucker [EMAIL PROTECTED]
Protected-Data.Com www.protected-data.com
Remote Data Support For Web Developers




RE: Customize Url Rewriting + QUESTION

2001-07-30 Thread Ashish Bajpai


HI! Loïc
I am also using the 3.2.3 version, I think i should have a
look at the 4.0 version also.
I think the approach that you are taking to handle the rewriting
is a good one, though i have got a question on that
how do you get to know that you have encountered a url, let me
rephrase it.
Like you have a hunk of a content in which there are a lot
of  tags and form acitons now how will your rewriter get
triggered so that it rewrites the urls before it gets out
to the user.
I mean to ask how does  your rewriter plugs into the whole scheme  of
things

TAI

ashish


   

Loïc Lefèvre   

  

ia.com>  cc:   

 Subject: RE: Customize Url Rewriting + 
QUESTION   
07/30/2001 

12:13 PM   

Please 

respond to 

tomcat-user

   

   





Yes you can, I'm developping a URLRewriter servlet because of the
problemSSS
I
encounter using mod_rewrite alone :(
I Load it on startup and manage myself the url rewriting by using
response.sendRedirect or
myMainApplicatioSerlvet.doGet(request,response) + some simple rules ;)

Using servlet aliasing in tomcat is not as powerful as I expect.
Does tomcat 3.3 or 4.0 use more regular expressions for this?
(I use tomcat 3.2.3).

Loïc Lefèvre

-Message d'origine-
De : Ashish Bajpai [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 30 juillet 2001 17:55
À : [EMAIL PROTECTED]
Objet : RE: Customize Url Rewriting



Thanks
I will try it. In the mean while is it essential for me to use
apache ? can i do something by only using Tomcat.

thanks
ashish



Loïc Lefèvre

ia.com>  cc:
 Subject: RE: Customize Url
Rewriting
07/30/2001
11:51 AM
Please
respond to
tomcat-user






The answer is YES, using mod_rewrite apache module.
Add it to your  or in mod_jk.conf
if you don't use Virtual Host.

example:

RewriteEngine on
RewriteLog /usr/local/tomcat/logs/rewrite.log
RewriteLogLevel 9

RewriteCond %{REQUEST_URI} ^/(.*) [NC]
RewriteRule ^/(.*) /index.jsp?$1 [PT]

;-)

-Message d'origine-
De : Ashish Bajpai [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 30 juillet 2001 17:38
À : [EMAIL PROTECTED]
Objet : Customize Url Rewriting


Hi!
I was wondering if there is a way that one can add something to
the url rewirting scheme.
To make things clear what i want is this
Can i plugin some code so that all the urls in the html/jsp pages for
my site can have a content attirbute some thing of this sort.
http://mysite.com/home/ugotit.jsp becomes
http://mysite.com/index.jsp?jsessionid=..&content=ugotit.jsp.



TAI

ashish












RE: Help!! Apache won't redirect to tomcat

2001-07-30 Thread Nance, Michael

I don't have a /buy at all it is  just a Virtual Name

-Original Message-
From: Hewko, Doug [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 8:49 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Help!! Apache won't redirect to tomcat


Hi! Just curious. Should the 'buy' directory be under webapps or root? Being
new to Tomcat, I played around. When I had my 'buy' directory under
'webapps', I got a 404. But my page loaded when I placed my 'buy' under
'root'.



-Original Message-
From: Nance, Michael [mailto:[EMAIL PROTECTED]]
Sent: July 30, 2001 11:44 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Help!! Apache won't redirect to tomcat


One other thing I DO NOT have a /buy dir under webapps

-Original Message-
From: Nance, Michael [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 8:37 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Help!! Apache won't redirect to tomcat


Andrew thanks for replying...
Yes the Hello World Works

netstat -a shows 

*.8007   *.*0  0 0  0 LISTEN
*.8009   *.*0  0 0  0 LISTEN


requesting either http://localhost:8080/buy/MLBEventInfo or
http://localhost/buy/MLBEventInfo
gives me the same result  I get a 404 /buy/MLBEventInfo not found

This is from servlet.xml



MLBEventInfo


com.tickets.presentation.mlb.MLBEventInfo



And this is in my web.xml


invoker


/buy/*




invoker


/olympics/*




jsp


*.jsp




These come from a working JSErv Config (we are converting form JSErv to Mod
JK)
What do I have wrong?
Your help is greatly appreciated.


-Original Message-
From: Andrew Inggs [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 8:27 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Help!! Apache won't redirect to tomcat


Nance, Michael wrote:
> There are no errors in mod_jk.log or in my httpd_error.log
> 
> the 8080 gets the same thing which is the 404 error

If port 8080 isn't working then you haven't got your web app
setup correctly and the problem isn't between Apache and
Tomcat.

We need to be absolutely clear here.  Are you requesting this
URL on the same machine you have Tomcat installed:
http://localhost:8080/buy/MLBEventInfo
Assuming so, is there a "buy" directory in the
TOMCAT_HOME/webapps directory?  If not, have you modified
server.xml appropriately?  Have you got  and
 entries in buy/WEB-INF/web.xml?  Posting
them to the list may help.

As a sanity check, does this work:
http://localhost:8080/examples/servlet/HelloWorldExample

-- Andrew



RE: Customize Url Rewriting + QUESTION

2001-07-30 Thread Loïc Lefèvre

Yes you can, I'm developping a URLRewriter servlet because of the problemSSS
I
encounter using mod_rewrite alone :(
I Load it on startup and manage myself the url rewriting by using
response.sendRedirect or
myMainApplicatioSerlvet.doGet(request,response) + some simple rules ;)

Using servlet aliasing in tomcat is not as powerful as I expect.
Does tomcat 3.3 or 4.0 use more regular expressions for this?
(I use tomcat 3.2.3).

Loïc Lefèvre

-Message d'origine-
De : Ashish Bajpai [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 30 juillet 2001 17:55
À : [EMAIL PROTECTED]
Objet : RE: Customize Url Rewriting



Thanks
I will try it. In the mean while is it essential for me to use
apache ? can i do something by only using Tomcat.

thanks
ashish



Loïc Lefèvre

ia.com>  cc:
 Subject: RE: Customize Url
Rewriting
07/30/2001
11:51 AM
Please
respond to
tomcat-user






The answer is YES, using mod_rewrite apache module.
Add it to your  or in mod_jk.conf
if you don't use Virtual Host.

example:

RewriteEngine on
RewriteLog /usr/local/tomcat/logs/rewrite.log
RewriteLogLevel 9

RewriteCond %{REQUEST_URI} ^/(.*) [NC]
RewriteRule ^/(.*) /index.jsp?$1 [PT]

;-)

-Message d'origine-
De : Ashish Bajpai [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 30 juillet 2001 17:38
À : [EMAIL PROTECTED]
Objet : Customize Url Rewriting


Hi!
I was wondering if there is a way that one can add something to
the url rewirting scheme.
To make things clear what i want is this
Can i plugin some code so that all the urls in the html/jsp pages for
my site can have a content attirbute some thing of this sort.
http://mysite.com/home/ugotit.jsp becomes
http://mysite.com/index.jsp?jsessionid=..&content=ugotit.jsp.



TAI

ashish








RE: Help!! Apache won't redirect to tomcat

2001-07-30 Thread Andrew Inggs

Nance, Michael wrote:
> One other thing I DO NOT have a /buy dir under webapps

See below.

[...]
> requesting either http://localhost:8080/buy/MLBEventInfo or
> http://localhost/buy/MLBEventInfo
> gives me the same result  I get a 404 /buy/MLBEventInfo not found
> 
> This is from servlet.xml
> 
> 
> 
> MLBEventInfo
> 
> 
> com.tickets.presentation.mlb.MLBEventInfo
> 
> 

I don't know what servlet.xml is!?  The above should be in
web.xml (see below).  Since "buy" is not under webapps, you
will need something like this in server.xml (not servlet.xml):





Change SOMEWHERE/buy to the full path to "buy".

> And this is in my web.xml
> 
> 
> invoker
> 
> 
> /buy/*
> 
> 

This isn't going to work the way you expect.  You need
something like:



MLBEventInfoServlet


com.tickets.presentation.mlb.MLBEventInfo





MLBEventInfoServlet


MLBEventInfo



Now when you go to http://localhost:8080/buy/MLBEventInfo
it divides the URL up into:
http://localhost:8080 + /buy +/MLBEventInfo
^ context ^ servlet

> 
> 
> invoker
> 
> 
> /olympics/*
> 
> 
> 
> 
> jsp
> 
> 
> *.jsp
> 
> 
> 
> 
> These come from a working JSErv Config (we are converting 
> form JSErv to Mod
> JK)

I'm afraid I do not have experience with JServ, maybe others
can help you with a more straight forward approach to
converting.  The example I've given will only work for /buy and
not for /olympics, etc.

I suggest that you read both Tomcat - A Minimalistic User's Guide
and Developing Applications With Tomcat:
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/appdev/index.html

-- Andrew



Re: Preventing System.exit(0)

2001-07-30 Thread Tim O'Neil

At 08:54 AM 7/30/2001, you wrote:
>Imagine if someone who is authorized to publish JSP's on your site
>invadvertently included the following in their JSP:

Well, I think I asked that question. As far as I'm concerned
allowing users to run jsps on your server is black box code.





Re: Very OT for a lot of you put just asking.

2001-07-30 Thread Charles Williams

Not really what I was looking for but funny.  I may start a list of
one-liner linux jokes. hehe.  That would be a kick.

chuck

- Original Message -
From: "Tim O'Neil" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 5:54 PM
Subject: Re: Very OT for a lot of you put just asking.


> At 04:36 AM 7/30/2001, you wrote:
> >OK, sorry if you feel this is WAY OT.
> >
> >I am wanting to compile a list of the best one-liner Linux commands out
> >there.  So all you admins and users out there feel free to send me a copy
of
> >your best one-liner commands with a brief explanation as to what they
> >accomplish.
>
> Here are some commands that accomplish nothing:
> (Enter in a shell to see the effect)
>
> man: why did you get a divorce?
>
> got a light?
>
> %blow
>
> ^How did the sex change^ operation go?
>




RE: Customize Url Rewriting

2001-07-30 Thread Ashish Bajpai


Thanks
I will try it. In the mean while is it essential for me to use
apache ? can i do something by only using Tomcat.

thanks
ashish


   

Loïc Lefèvre   

  

ia.com>  cc:   

 Subject: RE: Customize Url Rewriting  

07/30/2001 

11:51 AM   

Please 

respond to 

tomcat-user

   

   





The answer is YES, using mod_rewrite apache module.
Add it to your  or in mod_jk.conf
if you don't use Virtual Host.

example:

RewriteEngine on
RewriteLog /usr/local/tomcat/logs/rewrite.log
RewriteLogLevel 9

RewriteCond %{REQUEST_URI} ^/(.*) [NC]
RewriteRule ^/(.*) /index.jsp?$1 [PT]

;-)

-Message d'origine-
De : Ashish Bajpai [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 30 juillet 2001 17:38
À : [EMAIL PROTECTED]
Objet : Customize Url Rewriting


Hi!
I was wondering if there is a way that one can add something to
the url rewirting scheme.
To make things clear what i want is this
Can i plugin some code so that all the urls in the html/jsp pages for
my site can have a content attirbute some thing of this sort.
http://mysite.com/home/ugotit.jsp becomes
http://mysite.com/index.jsp?jsessionid=..&content=ugotit.jsp.



TAI

ashish








Re: Preventing System.exit(0)

2001-07-30 Thread David Cassidy (Programmer)
Title: Re: Preventing System.exit(0)






RTFM.


Security managers...



http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat-security.html



Why use a SecurityManager?
The Java SecurityManager is what allows a web browser to run an applet
in its own sandbox to prevent untrusted code from accessing files on the
local system, connecting to a host other than the one the applet was
loaded from, etc.


In the same way the SecurityManager protects you from an untrusted
applet running in your browser, use of a SecurityManager while running
Tomcat can protect your server from trojan servlets, JSP's, JSP beans,
and tag libraries.  Or even inadvertent mistakes.


Imagine if someone who is authorized to publish JSP's on your site
invadvertently included the following in their JSP:


<% System.exit(1); %>








David
:)




Tim O'Neil wrote:
> 
> At 06:24 AM 7/30/2001, you wrote:
> >Is it possible to configure Tomcat to avoid shutdown
> >in case the jsp page contains the code:
> >
> ><% System.exit(0); %>
> 
> Java SERVER pages are server-side code. Why is having
> a system object issue an exit method an issue for you?
> Do you plan on having your server run black box code?





Re: Very OT for a lot of you put just asking.

2001-07-30 Thread Tim O'Neil

At 04:36 AM 7/30/2001, you wrote:
>OK, sorry if you feel this is WAY OT.
>
>I am wanting to compile a list of the best one-liner Linux commands out
>there.  So all you admins and users out there feel free to send me a copy of
>your best one-liner commands with a brief explanation as to what they
>accomplish.

Here are some commands that accomplish nothing:
(Enter in a shell to see the effect)

man: why did you get a divorce?

got a light?

%blow

^How did the sex change^ operation go?




RE: Customize Url Rewriting

2001-07-30 Thread Loïc Lefèvre

The answer is YES, using mod_rewrite apache module.
Add it to your  or in mod_jk.conf
if you don't use Virtual Host.

example:

RewriteEngine on
RewriteLog /usr/local/tomcat/logs/rewrite.log
RewriteLogLevel 9

RewriteCond %{REQUEST_URI} ^/(.*) [NC]
RewriteRule ^/(.*) /index.jsp?$1 [PT]

;-)

-Message d'origine-
De : Ashish Bajpai [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 30 juillet 2001 17:38
À : [EMAIL PROTECTED]
Objet : Customize Url Rewriting


Hi!
I was wondering if there is a way that one can add something to
the url rewirting scheme.
To make things clear what i want is this
Can i plugin some code so that all the urls in the html/jsp pages for
my site can have a content attirbute some thing of this sort.
http://mysite.com/home/ugotit.jsp becomes
http://mysite.com/index.jsp?jsessionid=..&content=ugotit.jsp.



TAI

ashish




Help: Initializing Tomcat's Redirector

2001-07-30 Thread Felix Guerrero

Hi,

I have unsuccessfully tried to install Tomcat/IIS. The Apache can make the 
connection to Tomcat, but Tomcat does not seem to be able to send the 
contents back to Apache. I have checked every single line the conf folder of 
Tomcat. The line below is looking for a dll that is nowhere to be found.
Please let me know if I need this line, and if so.. where do I find this 
dll.

Thanks.

#
# Initializing the redirector
#
Init fn="load-modules" funcs="jk_init,jk_service" 
shlib="c:/jakarta-tomcat/bin/win32/i386/nsapi_redirect.dll"
Init fn="jk_init" worker_file="c:/jakarta-tomcat/conf/workers.properties" 
log_level="debug" log_file="c:/jakarta-tomcat/logs/nsapi.log"


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




RE: Help!! Apache won't redirect to tomcat

2001-07-30 Thread Hewko, Doug

Hi! Just curious. Should the 'buy' directory be under webapps or root? Being
new to Tomcat, I played around. When I had my 'buy' directory under
'webapps', I got a 404. But my page loaded when I placed my 'buy' under
'root'.



-Original Message-
From: Nance, Michael [mailto:[EMAIL PROTECTED]]
Sent: July 30, 2001 11:44 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Help!! Apache won't redirect to tomcat


One other thing I DO NOT have a /buy dir under webapps

-Original Message-
From: Nance, Michael [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 8:37 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Help!! Apache won't redirect to tomcat


Andrew thanks for replying...
Yes the Hello World Works

netstat -a shows 

*.8007   *.*0  0 0  0 LISTEN
*.8009   *.*0  0 0  0 LISTEN


requesting either http://localhost:8080/buy/MLBEventInfo or
http://localhost/buy/MLBEventInfo
gives me the same result  I get a 404 /buy/MLBEventInfo not found

This is from servlet.xml



MLBEventInfo


com.tickets.presentation.mlb.MLBEventInfo



And this is in my web.xml


invoker


/buy/*




invoker


/olympics/*




jsp


*.jsp




These come from a working JSErv Config (we are converting form JSErv to Mod
JK)
What do I have wrong?
Your help is greatly appreciated.


-Original Message-
From: Andrew Inggs [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 8:27 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Help!! Apache won't redirect to tomcat


Nance, Michael wrote:
> There are no errors in mod_jk.log or in my httpd_error.log
> 
> the 8080 gets the same thing which is the 404 error

If port 8080 isn't working then you haven't got your web app
setup correctly and the problem isn't between Apache and
Tomcat.

We need to be absolutely clear here.  Are you requesting this
URL on the same machine you have Tomcat installed:
http://localhost:8080/buy/MLBEventInfo
Assuming so, is there a "buy" directory in the
TOMCAT_HOME/webapps directory?  If not, have you modified
server.xml appropriately?  Have you got  and
 entries in buy/WEB-INF/web.xml?  Posting
them to the list may help.

As a sanity check, does this work:
http://localhost:8080/examples/servlet/HelloWorldExample

-- Andrew



  1   2   >