form auth: how to get user name if login was incorrect

2001-08-14 Thread Taavi Tiirik

Hullo,

How to get a user name (and password) with form authentication,
if authentication was not successful and user was sent to error
page. Is this information lost at this moment or can I get it
somehow?

I am using tomcat 3.2.3 at the moment...

thanks,
Taavi





RE: Fine tuning my Apache -Tomcat Server

2001-08-14 Thread Andrew McGhee

Srinivas,
How about the following?
1. Ensure all loging is at warn level only (remove excessive logging of
text)
2. Install compression such as mod_gzip into apache, and configure to
compress dynamic content from tomcat
3. Remove language negotiation from Apache (unless you need it)
4. Switch to JDSK1.3 from IBM for linux (good reports from Volano site), and
arc up the amount of memory for it - use of native threads can make a
difference as well.
5. Ensure HTTP/1.1 KeepAlives are configured
6. Use AJP13 protocol for communication between Apache + Tomcat
7. Check database systems, and other back-end data sources for delaying /
causing slowdowns in operation - this is the source of about 80% of problems
we have encountered in slow systems.
8. Implement data caching on your app server.
9. Find out which java code is causing the problems (sorry this sounds
obvious, but often overlooked) - 90% of a time is spent in 10% of the code.
10. Lots more - but difficult without viewing configuration files,
application and method of operation - and there should be a lot that can be
added by others on this list. (And actually, it may be better to isolate
exactly where it is that it is going slow...)

You are only getting one user every 6 seconds, so as long as you can serve a
request in that time, you would rarely have any concurrency issues.

Be good to hear of advice from others, and their experiences regarding this.
There is probably a wealth of information out there regarding this, and a
lot of it probably won by many hard slogs.

Regards,
Andrew


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: 08 August 2001 15:12
To: [EMAIL PROTECTED]
Subject: Fine tuning my Apache -Tomcat Server


Hi,

I have Apache and Tomact running on Linux server.

The following are the details of the same

Apache:
Version : Apache_1.3.12-i686

Tomcat:
Version: Jakarta-tomcat-3.2.1

Linux:
Version :6.2

Java:
Version : JDK 1.2.2

Hardware Configuration:
Processor : Intel PIII
CPU Cycles : 733 M Hz.
RAM:256MB
Hard Disk : 256 MB

Applications :
Technology : Java Servlet's

Users:
100 users for every 10 minutes (approx)

Network :
Leased Line
Band Width : 2 MegaBytes/Second

My Current Problem:
There  are constant complaints that the server is slow in delivering the
response to the users. But all the applications are working fine.

Please help me out in fine tuning my Apache -Tomcat Server.
Any inputs for improving server performance are highly appreciated.

Thanks and Regards
Srinivas Chebolu




[fixed] Re: [t4] build problem

2001-08-14 Thread Mykola A. Nickishov

Thnx, Martin. I run 'cvs update' after deleting wrong files.

"Martin van den Bemt" <[EMAIL PROTECTED]> writes:

> go inside eg the jakarta-tomcat-4.0 and do a cvs -q update -d and see which
> files have problems. (this only shows the files that need updating or are
> modified locally).

-- 
ICQ #83060237
MAN-UANIC NIK6-RIPE



Re: Tomcat crashes simultaneous more connection above 990+

2001-08-14 Thread Santosh Pasi

Hi Jeff,

Thanks for your reply.  And good link, really useful.

Here are results of our troubleshoot :(
On PIII 600, 256 Mb RAM, IDE Harddisk, RedHat Linux - 
total no. of max. connection 990-1000 and finally tomcat crashes.  But 
still apache, ldap and other applications are still running perfectly ok.
On RS/6000, AIX 4.3, 1000Gb RAM, etc
Total no. of max. connection 1600-2000 and finally reponse time 
increases specially from tomcat.  But still apache, ldap and other applications 
are still running perfectly ok.
Regards,
Santosh Pasi



---Original Message--
Date: Mon, 13 Aug 2001 22:31:33 +1000
>From: Jeff Turner <[EMAIL PROTECTED]>
>To: Santosh Pasi <[EMAIL PROTECTED]>
>Cc: [EMAIL PROTECTED]
>Subject: Re: Re: Tomcat crashes simultaneous more connection above 990+
>Mail-Followup-To: Santosh Pasi <[EMAIL PROTECTED]>, 
[EMAIL PROTECTED]>Content-Disposition: inline
>User-Agent: Mutt/1.3.19i
>
>Well I think you're completely nuts :) For 10,000 concurrent requests 
for>*dynamic* data (or else you'd just be using Apache.. right?), you'd 
need a>server farm full of fancy equipment, a load-balancing server, and stuff 
that>even my wildly ignorant speculations can't conceive.
>
>Besides, I don't think any single server with simple 
thread-per-request, >blocking IO model can handle that sort of load. A smart fellow 
called 
Matt>Welsh did his PhD thesis on highly concurrent server apps, and the 
results of>his thinking are here:
>
>http://www.cs.berkeley.edu/~mdw/proj/sandstorm/
>
>In particular, the paper "The Staged Event-Driven Architecture for 
Highly >Concurrent Servers." is well worth reading.
>
>--Jeff
>(who thinks 50 concurrent users is pushing things)
>
>
>On Mon, Aug 13, 2001 at 01:54:28PM +0530, Santosh Pasi wrote:
>> Hi Jeff,
>> 
>> Thanks for reply.
>> I am looking around 10,000 to 12,000 concurrent connections.
>[snip]
>




jsp issue

2001-08-14 Thread Arnaud Tuffery

Hi !

I use Tomcat 3.2.3 with Apache 1.3.20 and Jre 1.2.2 . When I try to execute
a jsp file I get the following message:

Error: 500
Location: /sia/jsp/dates/date.jsp
Internal Servlet Error:

javax.servlet.ServletException: sun/tools/javac/Main
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled
Code)
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, Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
Compiled Code)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
Compiled Code)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java,
Compiled Code)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java, Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
at java.lang.Thread.run(Unknown Source)

Root cause:
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled
Code)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:258)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:268)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled
Code)
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, Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
Compiled Code)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
Compiled Code)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java,
Compiled Code)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java, Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
at java.lang.Thread.run(Unknown Source)

Might you help me about this issue which make me very sad !!!

Thank you in advance.


e-mail: [EMAIL PROTECTED]
phone: 04.67.79.63.07
mobile: 06.67.29.45.84




Re: war files. (tomcat 4.0 beta 7)

2001-08-14 Thread Wei Chiang



| I have packaged my web application in a .war file and deployed it using
| tomcat 4.0 beta 7.
|
| perfect.
|
| The only way I could get it to work was to copy my database jar files into
| web-inf\lib, this would make my war file platform dependent as most
database
| vendors ship different jars for each operating system.
|
| I tried them in the %CATALINA_HOME%\lib but that did not help.
|
I think this is the same problem I had with some other jar file.  I
copied the missing jar file to
 $CATALINA_HOME/webapps/theAppl/WEB-INF/lib
And the application works.

Hope it helps.

Wei





inetinfo.exe crashes with Tomcat 3.2.3

2001-08-14 Thread Claes Holmerson

Hello!

I am trying to set up IIS 4.0 together with Tomcat 3.2.3 according to the
Tomcat IIS howto. Big problems though. When I try to access
http://localhost/examples/jsp/index.html, as the howto tells me, I get a Dr
Watson dialog telling me that inetinfo.exe has crashed. It happens every
time. I am using NT Server 4.0, sp 6a and IIS 4.0. 

Any clues to why? 

Thanks, 
Claes

--
Claes Holmerson
PipeChain AB
Porfyrvägen 14  +46 (0)46 32 52 42 office phone
SE-224 78 LUND  +46 (0)709 89 52 42   mobile phone
Sweden  +46 (0)46 15 10 74 office fax
   
http://www.pipechain.com/





RE: jsp issue

2001-08-14 Thread Artigas, Ricardo Y.

Hi Arnaud. You need the jdk not just the jre. You need the jdk because
tomcat will compile your jsp. hth.


> -Original Message-
> From: Arnaud Tuffery [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, August 14, 2001 5:19 PM
> To:   Jakarta
> Subject:  jsp issue
> 
> Hi !
> 
> I use Tomcat 3.2.3 with Apache 1.3.20 and Jre 1.2.2 . When I try to
> execute
> a jsp file I get the following message:
> 
> Error: 500
> Location: /sia/jsp/dates/date.jsp
> Internal Servlet Error:
> 
> javax.servlet.ServletException: sun/tools/javac/Main
>   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
> Compiled
> Code)
>   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, Compiled
> Code)
>   at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
> Compiled Code)
>   at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
> Compiled Code)
>   at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java,
> Compiled Code)
>   at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
> pC
> onnectionHandler.java, Compiled Code)
>   at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
> Compiled Code)
>   at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
> Compiled Code)
>   at java.lang.Thread.run(Unknown Source)
> 
> Root cause:
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
>   at
> org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:13
> 6)
>   at org.apache.jasper.compiler.Compiler.compile(Compiler.java,
> Compiled
> Code)
>   at
> org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
>   at
> org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
>   at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
>   at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Jsp
> Se
> rvlet.java:258)
>   at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.
> ja
> va:268)
>   at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
>   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
> Compiled
> Code)
>   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, Compiled
> Code)
>   at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
> Compiled Code)
>   at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
> Compiled Code)
>   at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java,
> Compiled Code)
>   at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
> pC
> onnectionHandler.java, Compiled Code)
>   at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
> Compiled Code)
>   at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
> Compiled Code)
>   at java.lang.Thread.run(Unknown Source)
> 
> Might you help me about this issue which make me very sad !!!
> 
> Thank you in advance.
> 
> 
> e-mail: [EMAIL PROTECTED]
> phone: 04.67.79.63.07
> mobile: 06.67.29.45.84



Re: Is Tomcat not closing connections?

2001-08-14 Thread George Burrows

I now have 3.2.3 installed and get the same behaviour. Any ideas?

Thanks,

George

- Original Message -
From: "Rob S." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 14, 2001 12:49 AM
Subject: RE: Is Tomcat not closing connections?


> Hi George,
>
> Tomcat 3.2.3 is the latest release of 3.2.  Try upgrading first...
>
> - r
>
> > -Original Message-
> > From: George Burrows [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, August 13, 2001 10:33 AM
> > To: [EMAIL PROTECTED]
> > Subject: Is Tomcat not closing connections?
> >
> >
> > Hi,
> >
> > I have tomcat 3.1.1 installed on a solaris box. It is talking to
> > apache on a
> > different solaris box.
> >
> > Apache is setup to have a maximum of 256 processes but rarely
> > actually goes
> > above 150.
> >
> > When I check how many connections are talking to port 8007 I get over
400
> > using the following command :
> >
> > while [ 1 -eq 1 ]; do netstat -an | grep 8007 | wc -l; sleep 5; done
> >
> > How can this be happening? Is Tomcat not closing down connections that
it
> > has finished with?
> >
> > I am getting a LOT (~1 per second) of 'Connection caused software abort'
> > execeptions which I have rebuilt tomcat to ignore (rather than the
default
> > action which used to be to shutdown!).
> >
> > Any help with this would be appreciated.
> >
> > George
> >
> >
>




RE: jsp issue

2001-08-14 Thread Francis Pallini

At 05:52 PM 8/14/01 +0800, you wrote:
>Hi Arnaud. You need the jdk not just the jre. You need the jdk because
>tomcat will compile your jsp. hth.

In fact, tools.jar is the only extra file needed. J2SDK is huge and as Java 
improves, this becomes worse and worse. Java 1.4 distrib. is about 50 MB 
and requires more than 4 hours to be downloaded with a basic modem...

Various versions of tools.jar can be found on public ftp servers.

Regards,

Francis Pallini




RE: form auth: how to get user name if login was incorrect

2001-08-14 Thread Randy Layman


I believe that its in the seesion.getAttribute("j_username").  I
might be wrong about that (I have modified my local copy of that code.  The
code now does this, but I believe that it originally did this.)

Randy

> -Original Message-
> From: Taavi Tiirik [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 14, 2001 4:21 AM
> To: [EMAIL PROTECTED]
> Subject: form auth: how to get user name if login was incorrect
> 
> 
> Hullo,
> 
> How to get a user name (and password) with form authentication,
> if authentication was not successful and user was sent to error
> page. Is this information lost at this moment or can I get it
> somehow?
> 
> I am using tomcat 3.2.3 at the moment...
> 
> thanks,
> Taavi
> 
> 



javax.servlet.ServletException: No suitable driver

2001-08-14 Thread Gumus, Aykal

Hello,

I have setup Tomcat-3.2.3 and Apache_1.3.20 with MySQL-3.23.36 under
RedHatLinux 7.1. 
jdk1.2.2 is installed under /usr/local/src/jdk. 
Tomcat, Apache and MySQL are basically working fine 
I am trying to use MM.MySQL for JDBC connectivity to MySQL.
my CLASSPATH is /usr/local/src/jdk1.2.2/lib/mm.mysql-2.0.4-src.jar
This is the log that I have:

javax.servlet.ServletException: No suitable driver
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
at
jsp._0002fjsp_0002ftest_0002ejsptest_jsp_7._jspService(_0002fjsp_0002ftest_0
002ejsptest_jsp_7.java:96)
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.ja
va:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va: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:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
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:479)
Root cause: 
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:477)
at java.sql.DriverManager.getConnection(DriverManager.java:137)
at
jsp._0002fjsp_0002ftest_0002ejsptest_jsp_7._jspService(_0002fjsp_0002ftest_0
002ejsptest_jsp_7.java:67)
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.ja
va:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va: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:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
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:479)

What did I miss?

Aykal




RE: form auth: how to get user name if login was incorrect

2001-08-14 Thread Taavi Tiirik

> > How to get a user name (and password) with form authentication,
> > if authentication was not successful and user was sent to error
> > page. Is this information lost at this moment or can I get it
> > somehow?

> From: Randy Layman>
> I believe that its in the seesion.getAttribute("j_username").
> I might be wrong about that (I have modified my local copy of that
> code.

If I call session.getAttribute("j_username") on an error page, the
result is null.

What modifications did you do?

with best wishes,
Taavi





Re: javax.servlet.ServletException: No suitable driver

2001-08-14 Thread Richard Draucker

Your classpath indictes you're using the mm.mysql src distribution.  I don't 
know that this includes the compiled classes (then again, I don't know that 
it doesn't).  
None the less, put mm.mysql-2.0.4-bin.jar in either $TOMCAT_HOME/lib or your 
application's WEB-INF/lib (you might have to create this dir) and forget 
about the classpath.

- Richard



On Tuesday 14 August 2001 07:57 am, you wrote:
> Hello,
>
> I have setup Tomcat-3.2.3 and Apache_1.3.20 with MySQL-3.23.36 under
> RedHatLinux 7.1.
> jdk1.2.2 is installed under /usr/local/src/jdk.
> Tomcat, Apache and MySQL are basically working fine
> I am trying to use MM.MySQL for JDBC connectivity to MySQL.
> my CLASSPATH is /usr/local/src/jdk1.2.2/lib/mm.mysql-2.0.4-src.jar
> This is the log that I have:
>
> javax.servlet.ServletException: No suitable driver
>   at
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextIm
>p l.java:459)
>   at
> jsp._0002fjsp_0002ftest_0002ejsptest_jsp_7._jspService(_0002fjsp_0002ftest_
>0 002ejsptest_jsp_7.java:96)
>   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.j
>a va:130)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.j
>a va: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:8
>1 2)
>   at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
>   at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnectio
>n (Ajp12ConnectionHandler.java:166)
>   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:479)
> Root cause:
> java.sql.SQLException: No suitable driver
>   at java.sql.DriverManager.getConnection(DriverManager.java:477)
>   at java.sql.DriverManager.getConnection(DriverManager.java:137)
>   at
> jsp._0002fjsp_0002ftest_0002ejsptest_jsp_7._jspService(_0002fjsp_0002ftest_
>0 002ejsptest_jsp_7.java:67)
>   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.j
>a va:130)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.j
>a va: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:8
>1 2)
>   at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
>   at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnectio
>n (Ajp12ConnectionHandler.java:166)
>   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:479)
>
> What did I miss?
>
> Aykal

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




Re: Trouble running a servlet

2001-08-14 Thread Richard Draucker

Your output from starting TOMCAT (in your earlier post) did not indicate a 
context being created for "ROOT", just "examples" and "admin".  Try putting 
it in the "examples" application and use the same url syntax:

http://localhost:8080/examples/servlet/LibraryServlet

As delivered, TOMCAT uses ROOT as the default webapp.  So, you may also be 
able to reach the application at:

http://localhost:8080/servlet/LibraryServlet

- Richard




On Monday 13 August 2001 07:40 pm, you wrote:
> I still make make this work.  I've made sure my
> servlet class is in
> TOMCAT_HOME\webapps\ROOT\WEB-INF\clsses and get this
> Not Found (404)
>
> Original request:
> http://localhost:8080/servlet/LibraryServlet
>
> Not found request:
> http://localhost:8080/servlet/LibraryServlet
>
> This has to be something basic, and it's got to be me,
> but I cna't figure out what is wrong.  Thanks.
>
>
> Ken
>
> __
> Do You Yahoo!?
> Send instant messages & get email alerts with Yahoo! Messenger.
> http://im.yahoo.com/

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




Please Help...

2001-08-14 Thread Raju Jacob

Hi,
I'm getting the following error so far using Tomcat 3.2.2 on
Solaris 8, but I got the following error ,when I access a .jsp page 
it shows an error 'Page Can't be displayed' 
in browser and the following error in tomcat console.
 what can I do to fix it?. 



==
[1]
org.apache.tomcat.util.ThreadPool$MonitorRunnable.run(ThreadPool.java:39
2)
[2] java.lang.Thread.run(Thread.java:484)
---
"Thread-13" (TID:0x61c734, sys_thread_t:0x61c6b8, state:CW, thread_t:
t@26, thre
adID:0xf8b11dc8, stack_bottom:0xf8b12000, stack_size:0x2) prio=5

[1] java.lang.Object.wait(Object.java:424)
[2]
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:47
8)
[3] java.lang.Thread.run(Thread.java:485)
---
"Thread-12" (TID:0x8f6ec4, sys_thread_t:0x8f6e48, state:CW, thread_t:
t@25, thre
adID:0xf8b41dc8, stack_bottom:0xf8b42000, stack_size:0x2) prio=5

[1] java.lang.Object.wait(Object.java:424)
[2]
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:47
8)
[3] java.lang.Thread.run(Thread.java:485)
---
"Thread-11" (TID:0x8f6b04, sys_thread_t:0x8f6a88, state:R, thread_t:
t@24, threa
dID:0xf8b71dc8, stack_bottom:0xf8b72000, stack_size:0x2) prio=5
*current thr
ead*

[1]
org.apache.tomcat.context.StatusHandler.doService(DefaultCMSetter.java:3
42)
[2] org.apache.tomcat.core.Handler.service(Handler.java:250)
[3]
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:348)
[4]
org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.java:1
058)
[5]
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:76
2)
[6]
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
[7]
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
ttpC
onnectionHandler.java:131)
[8]
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:393
)
[9]
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:47
8)
[10] java.lang.Thread.run(Thread.java:485)
---
"Thread-10" (TID:0x90836c, sys_thread_t:0x9082f0, state:R, thread_t:
t@23, threa
dID:0xf8dc1dc8, stack_bottom:0xf8dc2000, stack_size:0x2) prio=5
==
   
Thanks
Raju Jacob   



Re: Error Log

2001-08-14 Thread Richard Draucker

We never get any of the 'cool' viruses. :-(


On Monday 13 August 2001 06:54 pm, you wrote:
> At 01:46 PM 8/13/2001, Jeff wrote:
> >Nope.
> >
> > >Jeff,
> > >
> > >This "code_red" virus seems a Microsoft IIS issue.  Do you think this
> > > virus also could attack an apache server?
>
> Well, yes, it can attack an Apache server all it wants,
> the good thing is that this vulnerability doesn't exist
> on Apache. The worst that happens is that your poor Apache
> server has to continually attempt to service requests
> for a resource it doesn't have.

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




Re: form auth: how to get user name if login was incorrect

2001-08-14 Thread Rob S.



On Tue, 14 Aug 2001 14:00:46 +0200 [EMAIL PROTECTED] wrote:
> > > How to get a user name (and password) with form authentication,
> > > if authentication was not successful and user was sent to error
> > > page. Is this information lost at this moment or can I get it
> > > somehow?
> 
> > From: Randy Layman>
> > I believe that its in the seesion.getAttribute("j_username").
> > I might be wrong about that (I have modified my local copy of that
> > code.
> 
> If I call session.getAttribute("j_username") on an error page, the
> result is null.
> 
> What modifications did you do?

If you have to modify Tomcat to do it, that means your web app will only
ever run on your modified copy of Tomcat.  If you move to JRun, ServletExec,
or any other commercial container, you will not be able to modify the source
code.  The servlet specification exists for a reason =)

- r




Re: javax.servlet.ServletException: No suitable driver

2001-08-14 Thread Rob S.

I always wish I was better with JDBC, but I never manage to find the time to
get down with it... Anyway, did you load the JDBC driver class?  Just
putting it in your classpath doesn't mean that it gets loaded.  To me, it
would appear that the "no suitable driver" when you're trying to connect to
the database would mean that DriverManager.getConnection can't find a
suitable JDBC driver ;)

See any JDBC tutorial on the web, like the ones at http://java.sun.com/

- r

On Tue, 14 Aug 2001 14:57:44 +0300 [EMAIL PROTECTED] wrote:
> Hello,
> 
> I have setup Tomcat-3.2.3 and Apache_1.3.20 with MySQL-3.23.36 under
> RedHatLinux 7.1.
> jdk1.2.2 is installed under /usr/local/src/jdk.
> Tomcat, Apache and MySQL are basically working fine
> I am trying to use MM.MySQL for JDBC connectivity to MySQL.
> my CLASSPATH is /usr/local/src/jdk1.2.2/lib/mm.mysql-2.0.4-src.jar
> This is the log that I have:
> 
> javax.servlet.ServletException: No suitable driver
>   at
>
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp

> l.java:459)
>   at
>
jsp._0002fjsp_0002ftest_0002ejsptest_jsp_7._jspService(_0002fjsp_0002ftest_0

> 002ejsptest_jsp_7.java:96)
>   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.ja

> va:130)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja

> va: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:81

> 2)
>   at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
>   at
>
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection

> (Ajp12ConnectionHandler.java:166)
>   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:479)
> Root cause:
> java.sql.SQLException: No suitable driver
>   at java.sql.DriverManager.getConnection(DriverManager.java:477)
>   at java.sql.DriverManager.getConnection(DriverManager.java:137)
>   at
>
jsp._0002fjsp_0002ftest_0002ejsptest_jsp_7._jspService(_0002fjsp_0002ftest_0

> 002ejsptest_jsp_7.java:67)
>   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.ja

> va:130)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja

> va: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:81

> 2)
>   at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
>   at
>
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection

> (Ajp12ConnectionHandler.java:166)
>   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:479)
> 
> What did I miss?
> 
> Aykal






RE: javax.servlet.ServletException: No suitable driver

2001-08-14 Thread Mills, Theo

Also, you're pointing to the src jar... if all you have are .java files in
there, things aren't going to work. I dunno if that's the case here. Might
want to check your jar.

-Original Message-
From: Rob S. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 8:38 AM
To: [EMAIL PROTECTED]
Subject: Re: javax.servlet.ServletException: No suitable driver


I always wish I was better with JDBC, but I never manage to find the time to
get down with it... Anyway, did you load the JDBC driver class?  Just
putting it in your classpath doesn't mean that it gets loaded.  To me, it
would appear that the "no suitable driver" when you're trying to connect to
the database would mean that DriverManager.getConnection can't find a
suitable JDBC driver ;)

See any JDBC tutorial on the web, like the ones at http://java.sun.com/

- r

On Tue, 14 Aug 2001 14:57:44 +0300 [EMAIL PROTECTED] wrote:
> Hello,
> 
> I have setup Tomcat-3.2.3 and Apache_1.3.20 with MySQL-3.23.36 under
> RedHatLinux 7.1.
> jdk1.2.2 is installed under /usr/local/src/jdk.
> Tomcat, Apache and MySQL are basically working fine
> I am trying to use MM.MySQL for JDBC connectivity to MySQL.
> my CLASSPATH is /usr/local/src/jdk1.2.2/lib/mm.mysql-2.0.4-src.jar
> This is the log that I have:
> 
> javax.servlet.ServletException: No suitable driver
>   at
>
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp

> l.java:459)
>   at
>
jsp._0002fjsp_0002ftest_0002ejsptest_jsp_7._jspService(_0002fjsp_0002ftest_0

> 002ejsptest_jsp_7.java:96)
>   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.ja

> va:130)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja

> va: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:81

> 2)
>   at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
>   at
>
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection

> (Ajp12ConnectionHandler.java:166)
>   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:479)
> Root cause:
> java.sql.SQLException: No suitable driver
>   at java.sql.DriverManager.getConnection(DriverManager.java:477)
>   at java.sql.DriverManager.getConnection(DriverManager.java:137)
>   at
>
jsp._0002fjsp_0002ftest_0002ejsptest_jsp_7._jspService(_0002fjsp_0002ftest_0

> 002ejsptest_jsp_7.java:67)
>   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.ja

> va:130)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja

> va: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:81

> 2)
>   at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
>   at
>
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection

> (Ajp12ConnectionHandler.java:166)
>   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:479)
> 
> What did I miss?
> 
> Aykal





Newbie wants to compile mod_jk for existing Apache sans apxs

2001-08-14 Thread Bernard T. Higonnet

Hello,

I have Apache 1.3.19 plopped down on my system as a result of installing 
Mandrake 8.0. I have installed tomcat 3.2.3 from the tarball and it 
seems to work to the extent that I can look at the examples at 
localhost:8080/examples.

I have the source code for mod_jk but I can't follow the instructions in 
mod_jk-howto.html because I have no apxs (at least that's what find 
says) since I didn't build Apache myself...


TIA
BT Higonnet




Re: Newbie wants to compile mod_jk for existing Apache sans apxs

2001-08-14 Thread e-value - Maxime Mathon

apxs is in you apache/bin directory (ie /usr/local/apache/bin)
set APACHE_HOME if you want to be clean.

"Bernard T. Higonnet" wrote:

> Hello,
>
> I have Apache 1.3.19 plopped down on my system as a result of installing
> Mandrake 8.0. I have installed tomcat 3.2.3 from the tarball and it
> seems to work to the extent that I can look at the examples at
> localhost:8080/examples.
>
> I have the source code for mod_jk but I can't follow the instructions in
> mod_jk-howto.html because I have no apxs (at least that's what find
> says) since I didn't build Apache myself...
>
> TIA
> BT Higonnet




can't unsubscribe

2001-08-14 Thread Sebastian Hauer


Hi,

could anyone in charge be so kind and take me e-mail address of this
list. I can't unsubscribe I'm already trying for weeks.
Any yes I know I should write a mail to
<[EMAIL PROTECTED]> but it didn't work. I also
tried the webinterface but no luck either and after writing the
webmaster (there is no postmaster) I didn't go a reply back.

So please please please remove me of this list... I'll promise not to
subscribe anymore ;)

Thanks,
Sebastian



RE: form auth: how to get user name if login was incorrect

2001-08-14 Thread Randy Layman



> -Original Message-
> From: Taavi Tiirik [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 14, 2001 8:01 AM
> To: [EMAIL PROTECTED]
> Subject: RE: form auth: how to get user name if login was incorrect
> 
> 
> > > How to get a user name (and password) with form authentication,
> > > if authentication was not successful and user was sent to error
> > > page. Is this information lost at this moment or can I get it
> > > somehow?
> 
> > From: Randy Layman>
> > I believe that its in the seesion.getAttribute("j_username").
> > I might be wrong about that (I have modified my local copy of that
> > code.
> 
> If I call session.getAttribute("j_username") on an error page, the
> result is null.
> 
> What modifications did you do?
> 

In src\org\apache\tomcat\request\AccessInterceptor there is a class named
FormSecurityCheckHandler.  The doService method is where Tomcat moves the
values from the request to the session.  Here you could move the username to
the session. Also in that same file is a class FormAuthHandler.  Its
doService method is where Tomcat removes j_username from the session if the
user has an invalid login.  I've modified a lot of this code (I need to have
three things to identify a user, not just two) and am not sure which one was
the least intrusive change to allow me to get the username for an invalid
login.

Randy



RE: form auth: how to get user name if login was incorrect

2001-08-14 Thread Randy Layman



> -Original Message-
> From: Rob S. [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 14, 2001 9:32 AM
> To: [EMAIL PROTECTED]
> Subject: Re: form auth: how to get user name if login was incorrect
> 
> 
> 
> 
> On Tue, 14 Aug 2001 14:00:46 +0200 
> [EMAIL PROTECTED] wrote:
> > > > How to get a user name (and password) with form authentication,
> > > > if authentication was not successful and user was sent to error
> > > > page. Is this information lost at this moment or can I get it
> > > > somehow?
> > 
> > > From: Randy Layman>
> > > I believe that its in the seesion.getAttribute("j_username").
> > > I might be wrong about that (I have modified my local copy of that
> > > code.
> > 
> > If I call session.getAttribute("j_username") on an error page, the
> > result is null.
> > 
> > What modifications did you do?
> 
> If you have to modify Tomcat to do it, that means your web 
> app will only
> ever run on your modified copy of Tomcat.  If you move to 
> JRun, ServletExec,
> or any other commercial container, you will not be able to 
> modify the source
> code.  The servlet specification exists for a reason =)
> 

But if you need to do things that Tomcat can't allow you to do (have three
criteria for login), then you don't have much of a choice - at least you can
modify the source instead of complaining to Tech support and not having any
other options.

Randy



Re: Newbie wants to compile mod_jk for existing Apache sans apxs

2001-08-14 Thread Bernard T. Higonnet

e-value - Maxime Mathon wrote:

> apxs is in you apache/bin directory (ie /usr/local/apache/bin)
> set APACHE_HOME if you want to be clean.


Well, no. That's my problem.

On my machine (a standard Mandrake installation (I did not tell it to 
put apache in some funny place) as far as I am aware) there is no 
/usr/local/apache/bin.

The result of "find / -name apxs" is nothing.

"which apxs" says he can't find it.

The only other thing I can add is that, curiously, I do have the man 
page for apxs???

BT Higonnet


> 
> "Bernard T. Higonnet" wrote:
> 
> 
>>Hello,
>>
>>I have Apache 1.3.19 plopped down on my system as a result of installing
>>Mandrake 8.0. I have installed tomcat 3.2.3 from the tarball and it
>>seems to work to the extent that I can look at the examples at
>>localhost:8080/examples.
>>
>>I have the source code for mod_jk but I can't follow the instructions in
>>mod_jk-howto.html because I have no apxs (at least that's what find
>>says) since I didn't build Apache myself...





RE: Integrating Tomcat with Other Servers

2001-08-14 Thread Brandon Cruz

Does no answer mean that a list of this type is not available?


Brandon

-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 3:51 PM
To: [EMAIL PROTECTED]
Subject: Integrating Tomcat with Other Servers



Is there a list anywhere of Web Servers that Tomcat can integrate with?  I
know it can link to Apache, IIS, and Netscape.  What about things like
Novell, Domino, etc.?  A link to any page would be appreciated!

Thanks!

Brandon






ignored - java.lang.NumberFormatException: 3379

2001-08-14 Thread Dave Solecki


Does anyone know what this message means?  Why I keep getting even though
no-one is accessing the system?  Well maybe it's being accessed but not by
any of my users.  I get this message constantly on my server at home, and
there is a counter on my website which is not increasing everythime this
message rolls onto my screen.

2001-08-14 09:46:37 - ContextManager: Error reading request, ignored -
java.lang
.NumberFormatException: 3379
at java.lang.Integer.parseInt(Integer.java:414)
at java.lang.Integer.parseInt(Integer.java:454)
at
org.apache.tomcat.core.RequestImpl.getContentLength(RequestImpl.java:
284)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:197)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
:498)
at java.lang.Thread.run(Thread.java:484)






___
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/





tag error

2001-08-14 Thread Jacobs, Tim W

I'm running Tomcat 3.1 with JDK 1.3 on win2000. I get the following error on
one of my applications:
 
Unhandled error! You might want to consider having an error page to report
such errors more gracefully
 
java.lang.NoSuchMethodError
 at
org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfo
Impl.java:502)
 
Any ideas on what might be wrong?
 
Thanks,
Tim



Connection Pools in Tomcat

2001-08-14 Thread Jagadish Gopi

HI Friends,

Is it possible to create connection pools in Tomcat, just like how we create
in Weblogic.

Please reply back
Jags



Re: Newbie wants to compile mod_jk for existing Apache sans apxs

2001-08-14 Thread e-value - Maxime Mathon

The best things to do is to install apache1.3.19 with --enable-module=so in
option.

"Bernard T. Higonnet" wrote:

> e-value - Maxime Mathon wrote:
>
> > apxs is in you apache/bin directory (ie /usr/local/apache/bin)
> > set APACHE_HOME if you want to be clean.
>
> Well, no. That's my problem.
>
> On my machine (a standard Mandrake installation (I did not tell it to
> put apache in some funny place) as far as I am aware) there is no
> /usr/local/apache/bin.
>
> The result of "find / -name apxs" is nothing.
>
> "which apxs" says he can't find it.
>
> The only other thing I can add is that, curiously, I do have the man
> page for apxs???
>
> BT Higonnet
>
> >
> > "Bernard T. Higonnet" wrote:
> >
> >
> >>Hello,
> >>
> >>I have Apache 1.3.19 plopped down on my system as a result of installing
> >>Mandrake 8.0. I have installed tomcat 3.2.3 from the tarball and it
> >>seems to work to the extent that I can look at the examples at
> >>localhost:8080/examples.
> >>
> >>I have the source code for mod_jk but I can't follow the instructions in
> >>mod_jk-howto.html because I have no apxs (at least that's what find
> >>says) since I didn't build Apache myself...




Re: war files. (tomcat 4.0 beta 7)

2001-08-14 Thread Pier P. Fumagalli

James, Stuart at [EMAIL PROTECTED] wrote:

> I have packaged my web application in a .war file and deployed it using
> tomcat 4.0 beta 7.
> 
> perfect.
> 
> The only way I could get it to work was to copy my database jar files into
> web-inf\lib, this would make my war file platform dependent as most database
> vendors ship different jars for each operating system.
> 
> I tried them in the %CATALINA_HOME%\lib but that did not help.
> 
> suggestions / recommendations.

I _believe_... It's not %CATALINA_HOME%\lib, but %CATALINA_HOME%\common\lib

But I might be wrong...

Pier




Re: Newbie wants to compile mod_jk for existing Apache sans apxs

2001-08-14 Thread Christian Cleber

Did you try to use the binarie of mod-jk.so for the tomcat 3.2.3 ?

"Bernard T. Higonnet" wrote:

> Hello,
>
> I have Apache 1.3.19 plopped down on my system as a result of installing
> Mandrake 8.0. I have installed tomcat 3.2.3 from the tarball and it
> seems to work to the extent that I can look at the examples at
> localhost:8080/examples.
>
> I have the source code for mod_jk but I can't follow the instructions in
> mod_jk-howto.html because I have no apxs (at least that's what find
> says) since I didn't build Apache myself...
>
> TIA
> BT Higonnet




isapi_redirect.dll - issue

2001-08-14 Thread Chris Schmidt

Symptoms:
I have two pages
test1.jsp
test2.jsp

test1.jsp
-




Item test



<%
if(request.getParameter("go")!=null){
if(request.getParameter("go").equals("1")){
response.sendRedirect("test2.jsp");
}
}%>
asgsgagfasfdgag;oawfhtaiuhgnvkvn;akjsdhfas;lekfjhaowegas,dmgna;dgh;ogjskadng
idhasorgasdmgnckvawiuehf

hello, I loaded properly
Go


-

test2.jsp
--




Untitled



 go back 







So when you go to the test1.jsp and click the link it send it to itself and
redirects you to test2.jsp.

Problem:

This is the output for test2.jsp
---
asgsgagfasfdgag;oawfhtaiuhgnvkvn;akjsdhfas;lekfjhaowegas,dmgna;dgh;ogjskadng
idhasorgasdmgnckvawiuehf hello, I loaded properly Go HTTP/1.1 200 OK Server:
Microsoft-IIS/5.0 Date: Tue, 14 Aug 2001 14:34:54 GMT Connection: close
Content-Type: text/html;charset=ISO-8859-1 Servlet-Engine: Tomcat Web
Server/3.2.3 (JSP 1.1; Servlet 2.2; Java 1.3.0_02; Windows 2000 5.0 x86;
java.vendor=Sun Microsystems Inc.) go back

It only happens in IE5.5 as well

I am running tomcat 3.2.3,IIS5,W2k




Servlet design question.

2001-08-14 Thread A.L.

I am trying to create an internet based calendar
system similar to the one available at yahoo.com.  My
question is about the best way to design this system.

Currently I have a servlet whose main role during the
doget/dopost methods, is to create a monthlyCalendar
object and a dayCalendar object.  The drawMonth method
of monthly-calendar returns a String that is the html
code for a monthly calendar.  The dayCalendar object
calendar creates a database connection and the drawDay
method returns html code with the data from the
database for a specific chosen day.

  The doGet, doPost Methods of calendarServlet, simply
outprintln the strings returned by the monthlyCalendar
and dayCalendar objects' drawDay and drawMonth
methods.


My first question,  

Is this good design?  Are there any better
suggestions?  

 My second question is more specific to the code:
the drawMonth method of monthlyCalendar returns a
table which represents the chosen month.  I would like
each item in the table(which represents a given day of
the month)to be text, which when clicked will change
the arguments calendarServlet sends to the drawDay
method of dayCalendar.

  Any suggestions on how I can do this?



Thanks,
-Amos



p.s.  As in an earlier request, this question is not
specific to TomCat, yet I have been told that it is
o.k. to ask general servlet questions here.  If anyone
has a better place for me to ask general servlet
questions I would be happy to ask them there.

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



Re: Tomcat crashes simultaneous more connection above 990+

2001-08-14 Thread Pier P. Fumagalli

Santosh Pasi at [EMAIL PROTECTED] wrote:

> Hi Jeff,
> 
> Thanks for your reply.  And good link, really useful.
> 
> Here are results of our troubleshoot :(
> On PIII 600, 256 Mb RAM, IDE Harddisk, RedHat Linux -
> total no. of max. connection 990-1000 and finally tomcat crashes.  But
> still apache, ldap and other applications are still running perfectly ok.

You'll never handle 10.000 connections on this thing... Get a decent
operating system and more ram :). If you're using native threads, there's a
limit of processes the kernel can spawn (and since threads are processes on
linux, you might be hitting that limit), and a limit on the number of file
descriptors open system-wide (and that's the other one you might be
hitting), or file descriptors open per-process (1024, so pretty close to
what you're observing, I believe that's it).

> On RS/6000, AIX 4.3, 1000Gb RAM, etc
> Total no. of max. connection 1600-2000 and finally reponse time
> increases specially from tomcat.  But still apache, ldap and other
> applications are still running perfectly ok.

Dunno anything about AIX... But if response time increases, I believe it's
because you're using green threads, and the JVM slice takes more time to
figure out what green thread is active and what is not, rather than serving
requests... Try native threads...

Pier




Re: javax.servlet.ServletException: No suitable driver

2001-08-14 Thread Christian Cleber

If you are developing jsp/servlet application you must copy the .jar into
../WEB-INF/lib.
If not, should be work ...

"Rob S." wrote:

> I always wish I was better with JDBC, but I never manage to find the time to
> get down with it... Anyway, did you load the JDBC driver class?  Just
> putting it in your classpath doesn't mean that it gets loaded.  To me, it
> would appear that the "no suitable driver" when you're trying to connect to
> the database would mean that DriverManager.getConnection can't find a
> suitable JDBC driver ;)
>
> See any JDBC tutorial on the web, like the ones at http://java.sun.com/
>
> - r
>
> On Tue, 14 Aug 2001 14:57:44 +0300 [EMAIL PROTECTED] wrote:
> > Hello,
> >
> > I have setup Tomcat-3.2.3 and Apache_1.3.20 with MySQL-3.23.36 under
> > RedHatLinux 7.1.
> > jdk1.2.2 is installed under /usr/local/src/jdk.
> > Tomcat, Apache and MySQL are basically working fine
> > I am trying to use MM.MySQL for JDBC connectivity to MySQL.
> > my CLASSPATH is /usr/local/src/jdk1.2.2/lib/mm.mysql-2.0.4-src.jar
> > This is the log that I have:
> >
> > javax.servlet.ServletException: No suitable driver
> >   at
> >
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
>
> > l.java:459)
> >   at
> >
> jsp._0002fjsp_0002ftest_0002ejsptest_jsp_7._jspService(_0002fjsp_0002ftest_0
>
> > 002ejsptest_jsp_7.java:96)
> >   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.ja
>
> > va:130)
> >   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >   at
> >
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
>
> > va: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:81
>
> > 2)
> >   at
> > org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
> >   at
> >
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
>
> > (Ajp12ConnectionHandler.java:166)
> >   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:479)
> > Root cause:
> > java.sql.SQLException: No suitable driver
> >   at java.sql.DriverManager.getConnection(DriverManager.java:477)
> >   at java.sql.DriverManager.getConnection(DriverManager.java:137)
> >   at
> >
> jsp._0002fjsp_0002ftest_0002ejsptest_jsp_7._jspService(_0002fjsp_0002ftest_0
>
> > 002ejsptest_jsp_7.java:67)
> >   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.ja
>
> > va:130)
> >   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >   at
> >
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
>
> > va: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:81
>
> > 2)
> >   at
> > org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
> >   at
> >
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
>
> > (Ajp12ConnectionHandler.java:166)
> >   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:479)
> >
> > What did I miss?
> >
> > Aykal




Re: Integrating Tomcat with Other Servers

2001-08-14 Thread Pier P. Fumagalli

Brandon Cruz at [EMAIL PROTECTED] wrote:
>
>> Is there a list anywhere of Web Servers that Tomcat can integrate with?  I
>> know it can link to Apache, IIS, and Netscape.  What about things like
>> Novell, Domino, etc.?  A link to any page would be appreciated!
>
> Does no answer mean that a list of this type is not available?

Correct... What version of Tomcat?

Pier






Re: tag error

2001-08-14 Thread Rob S.

I can't say that I've seen this SPECIFIC error before, but if it's trying to
create an attribute and you're getting a "NoSuchMethodError" it looks like
you have an attribute in a custom tag, but not corresponding setter in the
tag class.  Or maybe no description of the attribute in your TLD.

- r

On Tue, 14 Aug 2001 10:25:26 -0400 [EMAIL PROTECTED] wrote:
> I'm running Tomcat 3.1 with JDK 1.3 on win2000. I get the following error
> on one of my applications:
> 
> Unhandled error! You might want to consider having an error page to report

> such errors more gracefully
> 
> java.lang.NoSuchMethodError
>  at
>
org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfo

> Impl.java:502)
> 
> Any ideas on what might be wrong?
> 
> Thanks,
> Tim






Re: Servlet design question.

2001-08-14 Thread Rob S.

> o.k. to ask general servlet questions here.  If anyone
> has a better place for me to ask general servlet
> questions I would be happy to ask them there.

I won't tell you what you can and can't send of course, but a better place
would probably be a general servlet or JSP or webapp forum.  We get more
than enough questions about Tomcat here =)

Walk down Google or jGuru's Java tree or something, there are plenty of
resources out there.

- r




My JSP pages are freezing !!

2001-08-14 Thread Christian Cleber



 Hello all ! I have tomcat 3.3  with apache and it seems work fine
until now. I have a JSP page that receive
only one param , execute a query in a database (interbase) , and
make the output.
All work fine during some time but suddenly, when i execute the page
with different values for the param, the output
is always the same , i.e., the output always show the answer not matter
what value i put for the param.
It seems like the page freezing with an old value .

   Christian




RE: Integrating Tomcat with Other Servers

2001-08-14 Thread Brandon Cruz

Well, whatever version can most easily integrate with other servers would be
the one I would use.  We have a Java application that is used by many
different companies.  In many cases, they already have the capability of
running the application, but if not, I am looking for a good servlet
container to plug into their existing web server.  I would like to recommend
Tomcat whenever possible, but I need to know where it can work, and where
I'll need something else.

As far as I know, it works with Apache, IIS, Netscape, and maybe Domino.

Brandon


-Original Message-
From: Pier P. Fumagalli [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 9:46 AM
To: [EMAIL PROTECTED]
Subject: Re: Integrating Tomcat with Other Servers


Brandon Cruz at [EMAIL PROTECTED] wrote:
>
>> Is there a list anywhere of Web Servers that Tomcat can integrate with?
I
>> know it can link to Apache, IIS, and Netscape.  What about things like
>> Novell, Domino, etc.?  A link to any page would be appreciated!
>
> Does no answer mean that a list of this type is not available?

Correct... What version of Tomcat?

Pier








RE: My JSP pages are freezing !!

2001-08-14 Thread Suresh Krishna M (RBIN/DBA-JOT)

hello Cleber,
  some of the times it so happens that the internet
explorer's cached files might get disaplyed again and again .just check this
out...(refresh or delete all the temporary intenet files).

> -Original Message-
> From: Christian Cleber [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, August 14, 2001 7:32 PM
> To:   Lista Tomcat
> Subject:  My JSP pages are freezing !!
> 
> 
> 
>  Hello all ! I have tomcat 3.3  with apache and it seems work fine
> until now. I have a JSP page that receive
> only one param , execute a query in a database (interbase) , and
> make the output.
> All work fine during some time but suddenly, when i execute the page
> with different values for the param, the output
> is always the same , i.e., the output always show the answer not matter
> what value i put for the param.
> It seems like the page freezing with an old value .
> 
>Christian



Resource Bundle issues

2001-08-14 Thread Justin Nichols

Here's what I'm using:
Tomcat 3.2.3
JDK 1.3

Ok...here's a problem I'm having:

I am trying to use a ResourceBundle to get configuration data for the system.
The file I have is called foo.properties and the contents of the file is as 
follows:
key=value

I then put foo.properties in WEB-INF/classes because WEB-INF/classes and 
WEB-INF/lib are put into the classpath by tomcat by default, or at least it 
is supposed to.

Now from a servlet somewhere in WEB-INF/classes, I attempt to create a 
ResourceBundle using the static .getBundle("foo") method which should return 
a reference to a PropertyResourceBundle and thusly should allow me to get the 
keys and values from the foo.properties file.

What is happening is I am getting a MissingResourceException when it tries to 
do .getBundle().  However, if I add the path to foo.properties explicitly in 
the classpath, it work perfectly.  It looks to me like WEB-INF/classes isn't 
getting put into the classpath correctly when tomcat starts up, but 
jasper.log shows that it is.

I even tried to put foo.properties into a jar file and put that into the 
WEB-INF/lib directory but with no luck there either.

I'm looking for reasons why this is happening and how to correct it, not just 
ways around it.

Any answers, ideas, etc?

Thank you,

Justin Nichols
[EMAIL PROTECTED]



RE: tag error

2001-08-14 Thread Jacobs, Tim W

Thanks Rob,
There seems to be something more sinister going on. I get the same error if
I simply copy the example "foo.jsp" file (in the distribution in the
jsp/simpletag directory) to foo1.jsp. In other words, foo.jsp works but
foo1.jsp does not. And all I'm doing is a file copy!

Tim

-Original Message-
From: Rob S. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 10:55 AM
To: [EMAIL PROTECTED]
Subject: Re: tag error


I can't say that I've seen this SPECIFIC error before, but if it's trying to
create an attribute and you're getting a "NoSuchMethodError" it looks like
you have an attribute in a custom tag, but not corresponding setter in the
tag class.  Or maybe no description of the attribute in your TLD.

- r

On Tue, 14 Aug 2001 10:25:26 -0400 [EMAIL PROTECTED] wrote:
> I'm running Tomcat 3.1 with JDK 1.3 on win2000. I get the following error
> on one of my applications:
> 
> Unhandled error! You might want to consider having an error page to report

> such errors more gracefully
> 
> java.lang.NoSuchMethodError
>  at
>
org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfo

> Impl.java:502)
> 
> Any ideas on what might be wrong?
> 
> Thanks,
> Tim





Re: My JSP pages are freezing !!

2001-08-14 Thread Christian Cleber

Hello Suresh.

I have already  done that. I have tried to modify some of the configurations
of tomcat too, but the problem
persist. If you will have other idea, please tell me.


"Suresh Krishna M (RBIN/DBA-JOT)" wrote:

> hello Cleber,
>   some of the times it so happens that the internet
> explorer's cached files might get disaplyed again and again .just check this
> out...(refresh or delete all the temporary intenet files).
>
> > -Original Message-
> > From: Christian Cleber [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 14, 2001 7:32 PM
> > To:   Lista Tomcat
> > Subject:  My JSP pages are freezing !!
> >
> >
> >
> >  Hello all ! I have tomcat 3.3  with apache and it seems work fine
> > until now. I have a JSP page that receive
> > only one param , execute a query in a database (interbase) , and
> > make the output.
> > All work fine during some time but suddenly, when i execute the page
> > with different values for the param, the output
> > is always the same , i.e., the output always show the answer not matter
> > what value i put for the param.
> > It seems like the page freezing with an old value .
> >
> >Christian




Changing the TARGET from Servlet for displaying something on theclient.

2001-08-14 Thread Chinni . Venkateswara


I have an issue here with Servlet and TARGET ( ).
Once I submit the FORM to a Servlet with a specified TARGET in the FORM
tag, can I change the TARGET in the Servlet  code to some other form.

Can any one tell me how can I do it.

FYI: I use the following code to forward to a JSP from the Servlet.

RequestDispatcher dispatcher =  getServletContext().getRequestDispatcher
("/.../test.jsp");
dispatcher.forward(request, response);

Thanks for your help.

-Chinni.

---

V R Chinni (DPRA).
Contractor for EPA.
214-665-6783
---






Re: Trouble running a servlet

2001-08-14 Thread Kenneth Litwak

  I'm afraid this it doens't work in ROOT or examples.
How would I create a context for ROOT?  Another pster
told me I needed to look at my servlet.xml file which
should be in the config directory.  I don't know how
the names difer between platforms, but my "Conf"
directory under jakarta-tomcat-3.2.1 doens't have a
servlet.xml file.  What ight it be called instead on
Win 2000?  Thanks.


Ken

Your output from starting TOMCAT (in your earlier 
post) did not indicate a 
context being created for "ROOT", just "examples" 
and "admin".  Try putting 
it in the "examples" application and use the same 
url syntax:

http://localhost:8080/examples/servlet/LibraryServlet

As delivered, TOMCAT uses ROOT as the default 
webapp.  So, you may also be 
able to reach the application at:

http://localhost:8080/servlet/LibraryServlet

- Richard




On Monday 13 August 2001 07:40 pm, you wrote:
> I still make make this work.  I've made 
sure my
> servlet class is in
> TOMCAT_HOME\webapps\ROOT\WEB-INF\clsses and get 
this
> Not Found (404)
>
> Original request:
> http://localhost:8080/servlet/LibraryServlet
>
> Not found request:
> http://localhost:8080/servlet/LibraryServlet
>
> This has to be something basic, and it's got to 
be me,
> but I cna't figure out what is wrong.  Thanks.
>
>
> Ken
>
> 
__
Richard Draucker [EMAIL PROTECTED]
Protected-Data.Com www.protected-data.com
Remote Data Support For Web Developers



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



TC 3.3 ROOT context and PHP at the same time

2001-08-14 Thread Hans Schmid

Hello,

is it possible to have a root context webapp (no JSP's - so no filename
ending mapping possible)
and PHP working at the same time?


Let me explain our situation:

We have an old web application running under Jserv and Apache. (it does not
know about webapps)
(Apache 1.3.19, mod_jserv, Jserv 1.1.2)
This Application makes also use of PHP modules (PHP 4.0.5)

Now we are developing new modules (basically replacing old parts of our
application)
with a Velocity based approach.

Therefore we have to migrate to a Servlet 2.2 Container -> Tomcat 3.3.
(Apache 1.3.19, mod_jk, Tomcat 3.3b1)
+ PHP 4.0.5 or so

Status:
- New parts work fine in their webapp context
- Old application works fine in root context but no PHP
- Links form the old world to the new modules do work corectly


Now my problem:
I have to mount the old parts of the application to the ROOT context in
order to make
it work (runs perfectly without the PHP bit)

 JkMount /* ajp13

But: Apache then does not serve PHP anymore (they get routed to Tomcat)

Our application does not use JSP's only servlets - so I can not use a
pattern like
JkMount /*.jsp ajp13

I have mounted the root context to my Apache htdocs directory and have a
link in there
to the WEB-INF dir with all the required stuff.

Am I completly off the track here?


I found the following in the Mail-Archive that
explains my problem - but I could not find answers to this one

>
>http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg09120.html
>
>Jeah, I understand, perhaps I should write under a different topic, but
they
>are closely related and I thougt that perhaps someone know how to resolve
my
>small problem.
>I think that mod_jk should include a decline posibility like:
> JkMount /* ajp13
> JkMount /phpMyAdmin/* DECLINE
> JkMount /images/* DECLINE
> JkMount /*.php4 DECLINE
>
>with a best match served first.
>I have a rought patch that does this, but it's realy uggly..
>This way it would be very simple to handle Apache/Php/Tomcat in one server


Has anybody something like this?

Your comment would be highly appreciated,

Hans Schmid

einsurance Agency AG
Information Technology
Bayerstraße 33
80335 München

Tel: +49-89-55292- 860
Fax: +49-89-55292- 855

eMail: [EMAIL PROTECTED]
http://www.einsurance.de




IBM JDK

2001-08-14 Thread Mike McGuinness

Has anyone tried IBM jdk/runtime environment on Linux with Tomcat 3.2.3?

I'v got sun jdk 1.3, running on Red Hat 7.1, with apache 1.3.20, and 
tomcat 3.2.3.
I was wondering how or if IBM's jdk/runtime works.

Mike




Re: Tomcat crashes simultaneous more connection above 990+

2001-08-14 Thread Craig R. McClanahan

Volano (makers of Volano Chat) is a company that is naturally interested
in servers that support lots of simultaneous threads.  For several years
they've been publishing their benchmark results on the abilities of
various OS+JVM combinations to scale up to thread counts in the thousands.  
There are some *very* significant (order of magnitude) differences between
combinations.

The report makes pretty interesting reading.  Most recent edition was May
29, 2001:

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

Craig McClanahan


On Tue, 14 Aug 2001, Pier P. Fumagalli wrote:

> Santosh Pasi at [EMAIL PROTECTED] wrote:
> 
> > Hi Jeff,
> > 
> > Thanks for your reply.  And good link, really useful.
> > 
> > Here are results of our troubleshoot :(
> > On PIII 600, 256 Mb RAM, IDE Harddisk, RedHat Linux -
> > total no. of max. connection 990-1000 and finally tomcat crashes.  But
> > still apache, ldap and other applications are still running perfectly ok.
> 
> You'll never handle 10.000 connections on this thing... Get a decent
> operating system and more ram :). If you're using native threads, there's a
> limit of processes the kernel can spawn (and since threads are processes on
> linux, you might be hitting that limit), and a limit on the number of file
> descriptors open system-wide (and that's the other one you might be
> hitting), or file descriptors open per-process (1024, so pretty close to
> what you're observing, I believe that's it).
> 
> > On RS/6000, AIX 4.3, 1000Gb RAM, etc
> > Total no. of max. connection 1600-2000 and finally reponse time
> > increases specially from tomcat.  But still apache, ldap and other
> > applications are still running perfectly ok.
> 
> Dunno anything about AIX... But if response time increases, I believe it's
> because you're using green threads, and the JVM slice takes more time to
> figure out what green thread is active and what is not, rather than serving
> requests... Try native threads...
> 
> Pier
> 
> 




RE: IBM JDK

2001-08-14 Thread Mike Jackson

Works great for me.

--mikej
-=-
mike jackson
[EMAIL PROTECTED] 

> -Original Message-
> From: Mike McGuinness [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 14, 2001 9:21 AM
> To: [EMAIL PROTECTED]
> Subject: IBM JDK
> 
> 
> Has anyone tried IBM jdk/runtime environment on Linux with Tomcat 3.2.3?
> 
> I'v got sun jdk 1.3, running on Red Hat 7.1, with apache 1.3.20, and 
> tomcat 3.2.3.
> I was wondering how or if IBM's jdk/runtime works.
> 
> Mike
> 



Re: war files. (tomcat 4.0 beta 7)

2001-08-14 Thread Craig R. McClanahan



On Tue, 14 Aug 2001, Pier P. Fumagalli wrote:

> James, Stuart at [EMAIL PROTECTED] wrote:
> 
> > I have packaged my web application in a .war file and deployed it using
> > tomcat 4.0 beta 7.
> > 
> > perfect.
> > 
> > The only way I could get it to work was to copy my database jar files into
> > web-inf\lib, this would make my war file platform dependent as most database
> > vendors ship different jars for each operating system.
> > 
> > I tried them in the %CATALINA_HOME%\lib but that did not help.
> > 
> > suggestions / recommendations.
> 
> I _believe_... It's not %CATALINA_HOME%\lib, but %CATALINA_HOME%\common\lib
> 

No, "%CATALINA_HOME%\lib" is the right place for JARs that should only be
seen by applications.  Use "%CATALINA_HOME%\common\lib" if you want a JAR
file visible to both applications *and* Catalina internal classes (which
is rarely necessary).

Without knowing what the failure symptoms are when you put the JDBC
driver files into "%CATALINA_HOME%\lib", it's a little hard to debug "that
did not help".

> But I might be wrong...
> 
> Pier
> 
> 
Craig





RE: form auth: how to get user name if login was incorrect

2001-08-14 Thread Craig R. McClanahan



On Tue, 14 Aug 2001, Randy Layman wrote:

> 
>   I believe that its in the seesion.getAttribute("j_username").  I
> might be wrong about that (I have modified my local copy of that code.  The
> code now does this, but I believe that it originally did this.)
> 

That's specific to the way that one particular version of Tomcat does
it.  There is no portable way (through the servlet API) to retrieve the
username and password on a failed form-based login.

>   Randy
> 

Craig




Re: IBM JDK

2001-08-14 Thread Paul Rubenis

Works very well for me running tomcat 3.2.3, rh 6.2 and IBMJava2-13
(build 1.3.0, J2RE 1.3.0 IBM build cx130-20010329 (JIT enabled: jitc)

Mike McGuinness wrote:
> 
> Has anyone tried IBM jdk/runtime environment on Linux with Tomcat 3.2.3?
> 
> I'v got sun jdk 1.3, running on Red Hat 7.1, with apache 1.3.20, and
> tomcat 3.2.3.
> I was wondering how or if IBM's jdk/runtime works.
> 
> Mike

-- 
+-- mailto:[EMAIL PROTECTED] +
| Paul M Rubenis - System Administrator |
| Phone: (612) 624-8337 |
| Fax:   (612) 625-6853 |
+---+
| Any connection between your reality and mine is purely|
| coincidental. |



Re: ClassLoader

2001-08-14 Thread Vladimir Grishchenko

I don't fully understand your setup from the messages you sent but if you
have a custom class loader then you should register webapp class loader to
be the parent of your custom class loader. So, if your custom class loader
lives in webapp directory its constructor should look like:

public class CustomClassLoader
{
   public CustomClassLoader()
   {
super(this.getClass().getClassLoader()  //1
   }
}

and then load your classes like

CustomClassLoader ccl = new CustomClassLoader();
Class clazz = Class.forName("xyz.zyx.Foo", true, ccl);

if you skip lilne 1 or have just call to super() then there's simply no way
you can load classes from webapp directory through this classloader, unless
it's implemented that way (btw it's a bad idea) , because system class
loader is set as the parent of ccl, and sys class loader has no clue of how
to load classes from webapp directory.
So, if you write your class loader the above way ccl will first try to
delegate class loading up the class loader tree, which will fail, so it'll
try to load the class itself. As the result of loading class xyz.zyx.Foo any
intefaces loading it implements will be unitiated through ccl, which will be
delegated to webapp class loader, so there should be no problem finding them
in jar files located in webapp directory. There's also a possibility you can
get nasty ClassCast exceptions because of the fact JVM considers  a class to
be a combination of class and its class loader, so the same byte array
represineting a class loaded through different class loaders is not the same
class to the JVM.

--V.


- Original Message -
From: "jochen mader" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 13, 2001 6:16 AM
Subject: Re: ClassLoader


>
> > Moving things from Tomcat's internal classes (any version) into your
> > /WEB-INF/lib is *not* going to work.
> >
> > What are you trying to accomplish that the standard class loading model
> > does not support?  Just saying "I want to use a classloader inside my
> > servlet" does not help much in getting useful suggestions.
> >
> > > Thanks in advance
> > > Jochen
> >
> > Craig McClanahan
>
> I'm trying to allow my servlet to download classes from another server via
> RMI and to use those classes. The problem now is that when I downloaded
the
> classes and I try to define the class via the ClassLoader the ClassLoader
> tells me that it can't find the required interface classes (which are
stored
> in the jars inside the WEB-INF/lib directory). By looking through your
> archive I found the following post:
>
> http://w6.metronet.com/~wjm/tomcat/2001/Feb/msg00096.html
>
> *snip*
>
> >
> > Am I just screwed or is there some cool trick that I am missing?  Of
course
> > I could change the deployment scheme to put a copy of the dispatcher
> > servlet into each apps WE-INF/classes, but this seems a bit clunky.
> >
>
> It's not clunky -- its required by virtue of the fact that classloaders
know
> how to delegate upwards but not downwards.  For lots of security related
> reasons, that is actually a Good Thing.
>
> *snip*
>
> Is this post wrong and is there another sollution?
> And if not: which of all those classes is the "dispatcher servlet"?
>
> Thx
> Jochen
>
>



Re: Changing the TARGET from Servlet for displaying something onthe client.

2001-08-14 Thread Craig R. McClanahan

Unfortunately, TARGET is a client-side thing, not a server-side
thing.  There are no standard HTTP headers that allow the server to set
this, although there might be some browser-specific non-standard headers
to do so.

Craig

On Tue, 14 Aug 2001 [EMAIL PROTECTED] wrote:

> 
> I have an issue here with Servlet and TARGET (  ="xxx">).
> Once I submit the FORM to a Servlet with a specified TARGET in the FORM
> tag, can I change the TARGET in the Servlet  code to some other form.
> 
> Can any one tell me how can I do it.
> 
> FYI: I use the following code to forward to a JSP from the Servlet.
> 
> RequestDispatcher dispatcher =  getServletContext().getRequestDispatcher
> ("/.../test.jsp");
> dispatcher.forward(request, response);
> 
> Thanks for your help.
> 
> -Chinni.
> 
> 
>---
> 
> V R Chinni (DPRA).
> Contractor for EPA.
> 214-665-6783
> 
>---
> 
> 
> 
> 




Re[2]: war files. (tomcat 4.0 beta 7)

2001-08-14 Thread Jonathan Pierce


>>Use "%CATALINA_HOME%\common\lib" if you want a JAR
>>file visible to both applications *and* Catalina internal classes (which
>>is rarely necessary).

What about servlets that load at startup? Which directory does Catalina search?
For servlets that load at startup, will Catalina find servlet classes in war
files in the webapps folder? This didn't work for me.


Reply Separator
Subject:Re: war files. (tomcat 4.0 beta 7)
Author: [EMAIL PROTECTED]
Date:   8/14/2001 9:26 AM



On Tue, 14 Aug 2001, Pier P. Fumagalli wrote:

> James, Stuart at [EMAIL PROTECTED] wrote:
> 
> > I have packaged my web application in a .war file and deployed it using
> > tomcat 4.0 beta 7.
> > 
> > perfect.
> > 
> > The only way I could get it to work was to copy my database jar files into
> > web-inf\lib, this would make my war file platform dependent as most database
> > vendors ship different jars for each operating system.
> > 
> > I tried them in the %CATALINA_HOME%\lib but that did not help.
> > 
> > suggestions / recommendations.
> 
> I _believe_... It's not %CATALINA_HOME%\lib, but %CATALINA_HOME%\common\lib
> 

No, "%CATALINA_HOME%\lib" is the right place for JARs that should only be
seen by applications.  Use "%CATALINA_HOME%\common\lib" if you want a JAR
file visible to both applications *and* Catalina internal classes (which
is rarely necessary).

Without knowing what the failure symptoms are when you put the JDBC
driver files into "%CATALINA_HOME%\lib", it's a little hard to debug "that
did not help".

> But I might be wrong...
> 
> Pier
> 
> 
Craig





mod_jk.so + apache

2001-08-14 Thread Yann Sagon

Hi,

I'm very new to tomcat + apache.

I've dowmloaded tomcat 3.2.3 and mod_jk.so (eapi)
I'v installed tomcat as a standalone version without problem.

Now, I want to use it with apache and some virtual hosts.

I have a probleme with the configuration of apache (I guess).
I have mod_jk.so in /etc/httpd/libexec/mod_jk.so

in my httpd.conf:

...
nb: those lines comes before mod_rewrite.so
LoadModule jk_module  libexec/mod_jk.so
AddModule mod_jk.c
##Configuration de mod_jk.c
JkWorkersFile /usr/local/tomcat-3.2.3/conf/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevelinfo
...
and then, some virtual hosts:
...

DocumentRoot /raid/ysagon/web
ServerName yanndev.local.hasa.ch
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

...

My probleme:
when I try to start apache:

#apachectl start
Starting httpd: Syntax error on line 774 of /etc/httpd/conf/httpd.conf:
Invalid command 'JkMount', perhaps mis-spelled or defined by a module
not included in the server configuration
   [FAILED]

Thank you

Yann Sagon



Changing the TARGET from Servlet for displaying something on theclient.

2001-08-14 Thread Chinni . Venkateswara

I have a problem here with Servlet and TARGET ( ).
Once I submit the FORM to a Servlet with a specified TARGET in the FORM
tag, can I change the TARGET in the Servlet  code to some other form.

Can any one tell me how can I do it.

Thanks for your help.

-Chinni.

---

V R Chinni (DPRA).
Contractor for EPA.
214-665-6783
---






RE: IBM JDK

2001-08-14 Thread James, Stuart

why would you want to run the IBM JDK ? is it faster/better than suns jdk ?

-Original Message-
From: Paul Rubenis [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 5:37 PM
To: [EMAIL PROTECTED]
Subject: Re: IBM JDK


Works very well for me running tomcat 3.2.3, rh 6.2 and IBMJava2-13
(build 1.3.0, J2RE 1.3.0 IBM build cx130-20010329 (JIT enabled: jitc)

Mike McGuinness wrote:
> 
> Has anyone tried IBM jdk/runtime environment on Linux with Tomcat 3.2.3?
> 
> I'v got sun jdk 1.3, running on Red Hat 7.1, with apache 1.3.20, and
> tomcat 3.2.3.
> I was wondering how or if IBM's jdk/runtime works.
> 
> Mike

-- 
+-- mailto:[EMAIL PROTECTED] +
| Paul M Rubenis - System Administrator |
| Phone: (612) 624-8337 |
| Fax:   (612) 625-6853 |
+---+
| Any connection between your reality and mine is purely|
| coincidental. |


___
Email Disclaimer

This communication is for the attention of the
named recipient only and should not be passed
on to any other person. Information relating to
any company or security, is for information
purposes only and should not be interpreted as
a solicitation or offer to buy or sell any security.
The information on which this communication is based
has been obtained from sources we believe to be reliable,
but we do not guarantee its accuracy or completeness.
All expressions of opinion are subject to change
without notice.  All e-mail messages, and associated attachments,
are subject to interception and monitoring for lawful business purposes.
___



Re: Re[2]: war files. (tomcat 4.0 beta 7)

2001-08-14 Thread Craig R. McClanahan



On Tue, 14 Aug 2001, Jonathan Pierce wrote:

> 
> >>Use "%CATALINA_HOME%\common\lib" if you want a JAR
> >>file visible to both applications *and* Catalina internal classes (which
> >>is rarely necessary).
> 
> What about servlets that load at startup? Which directory does Catalina search?
> For servlets that load at startup, will Catalina find servlet classes in war
> files in the webapps folder? This didn't work for me.
> 

Servlets that load at startup are loaded from the webapp class loader
(along with all other servlets, filters, and application event listeners),
which checks things in the following order:

  /WEB-INF/classes of your web-app
  /WEB-INF/lib/*.jar of your web-app
  $CATALINA_HOME/lib
  $CATALINA_HOME/common/lib
  System class loader (configured in catalina.sh or catalina.bat
   from a predefined CLASSPATH)
  $JAVA_HOME/jre/lib/ext (i.e. the system extensions directory)
  Java runtime classes

If you deploy a WAR file into the webapps folder, one of two things will
happen:

* The WAR will be unpacked into a corresponding directory
  and that directory will be used (if the directory already
  exists, unpacking will *not* happen, so delete the directory
  if you are redeploying an old WAR).

* If you have 'unpackWARs="false"' in the  entry
  for this webapp, the application will be run directly
  from the WAR.

but the same loading order still works either way.  I use load-on-startup
all the time on Tomcat with Struts-based apps (the controller servlet is
configured this way) and it works fine for me.  You might want to check
the log files ($CATALINA_HOME/logs/*) to see exactly what problem is being
encountered, so we can figure out what is going on.

Craig

PS:  Note that there are some Java classes which will work if you put them
in /WEB-INF but fail if loaded from $CATALINA_HOME/lib.  The key issue is
if this class needs to create an object of a class that is inside your
webapp.  When you put classes in $CATALINA_HOME/lib and try to reference
one of your webapp class names, they are not visible.





CATALINA_HOME vs. TOMCAT_HOME

2001-08-14 Thread Dennis Doubleday

These two environment variable names seem to be used interchangeably in 
various installation documents and discussions. Are they in fact 
interchangeable (i.e. I can set one or the other and it doesn't matter which)?

-
Dennis Doubleday  email: [EMAIL PROTECTED]
yourfit.com, Inc.   web: http://www.yourfit.com/




Servlet 2.3 PF 3 ?

2001-08-14 Thread Hector Adolfo Alonso

Hi !
   I've read that Tomcat 4.0 conforms to the Proposed Final Draft 3 version of
the Servlet 2.3 and JSP 1.2 specifications. Can anybody send me the link where
it's possible to download this proposed draft ? I can get only Proposed Final 2
from
java.sun.com and jcp.org ...
   Thanks in advance.

Hector Adolfo Alonso
Consist Teleinformatica S. A.






Re: CATALINA_HOME vs. TOMCAT_HOME

2001-08-14 Thread Craig R. McClanahan



On Tue, 14 Aug 2001, Dennis Doubleday wrote:

> These two environment variable names seem to be used interchangeably in 
> various installation documents and discussions. Are they in fact 
> interchangeable (i.e. I can set one or the other and it doesn't matter which)?
> 

No, you need to use TOMCAT_HOME for Tomcat 3.x and CATALINA_HOME for
Tomcat 4.x.  

Craig




Re: Servlet 2.3 PF 3 ?

2001-08-14 Thread Craig R. McClanahan



On Tue, 14 Aug 2001, Hector Adolfo Alonso wrote:

> Hi !
>I've read that Tomcat 4.0 conforms to the Proposed Final Draft 3 version of
> the Servlet 2.3 and JSP 1.2 specifications. Can anybody send me the link where
> it's possible to download this proposed draft ? I can get only Proposed Final 2
> from
> java.sun.com and jcp.org ...
>Thanks in advance.
> 

It has not been pushed out to the public web site yet.  I will ask the
spec leads for both specs about that.

The changes were mostly clarifications of internal details and corner
cases that apps don't commonly run into, but need to be defined for
portability.


> Hector Adolfo Alonso
> Consist Teleinformatica S. A.
> 

Craig




Re: wrapper: Java Virtual Machine crashed

2001-08-14 Thread Pier P. Fumagalli

Singh, Rakesh at [EMAIL PROTECTED] wrote:

> Hi Folks:
> 
> 
> I know this is probably asking to much from your side. I am pretty much
> exhausted from my resources, I don't know where is the problem.
> I put the log level to debug and see that when I start Apache which
> automatically also starts the JVM, JVM crashes. the mod_jserv.log shows that
> error.
> 
> (INFO) wrapper: Shutdown done (PID=711)
> (INFO) Apache Module was cleaned-up
> (INFO) wrapper: Java Virtual Machine started (PID=754)
> (INFO) wrapper: controller started (PID=711)
> (INFO) wrapper: Java Virtual Machine crashed
> (INFO) wrapper: Java Virtual Machine started (PID=681)
> (INFO) wrapper: Java Virtual Machine crashed
> (INFO) wrapper: Java Virtual Machine started (PID=741)
> (INFO) wrapper: Java Virtual Machine crashed
> (INFO) wrapper: Java Virtual Machine started (PID=821)
> (INFO) wrapper: Java Virtual Machine crashed
> (INFO) wrapper: Java Virtual Machine started (PID=53)
> (INFO) wrapper: Java Virtual Machine crashed
> (INFO) wrapper: Java Virtual Machine started (PID=705)
> (INFO) wrapper: Java Virtual Machine crashed
> (INFO) wrapper: Java Virtual Machine started (PID=647)
> (INFO) wrapper: Java Virtual Machine crashed
> (INFO) wrapper: VM died too many times w/in 5 second intervals (6); no more
> tries
> (INFO) wrapper: too many restart attempts w/in a short timeframe; no more
> retries.

The virtual machine cannot start... There's something in your configuration
that prevents it from starting up...

> Attached are all the config/properties files.

Ehem... Nope...

> Again, all your help is highly appreciated.

Welcome...

Pier




Re: CATALINA_HOME vs. TOMCAT_HOME

2001-08-14 Thread Dennis Doubleday

At 01:03 PM 8/14/01, you wrote:


>On Tue, 14 Aug 2001, Dennis Doubleday wrote:
>
> > These two environment variable names seem to be used interchangeably in
> > various installation documents and discussions. Are they in fact
> > interchangeable (i.e. I can set one or the other and it doesn't matter 
> which)?
> >
>
>No, you need to use TOMCAT_HOME for Tomcat 3.x and CATALINA_HOME for
>Tomcat 4.x.

Thanks. The release notes for 4.0b6 contain a number of TOMCAT_HOME references.

-
Dennis Doubleday  email: [EMAIL PROTECTED]
yourfit.com, Inc.   web: http://www.yourfit.com/




Re: IBM JDK

2001-08-14 Thread Mike McGuinness

Yes, based on my experience with certain applications the IBM jdk was
faster than sun's. Your mileage may vary.

The other reason is I'm porting my apache/tomcat application to AIX and
wanted to run IBM's jdk there.

Mike

The main reason is I am porting from Linix to AIX

James, Stuart wrote:

> why would you want to run the IBM JDK ? is it faster/better than suns jdk ?
> 
> -Original Message-
> From: Paul Rubenis [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 14, 2001 5:37 PM
> To: [EMAIL PROTECTED]
> Subject: Re: IBM JDK
> 
> 
>   Works very well for me running tomcat 3.2.3, rh 6.2 and IBMJava2-13
> (build 1.3.0, J2RE 1.3.0 IBM build cx130-20010329 (JIT enabled: jitc)
> 
> Mike McGuinness wrote:
> 
>> Has anyone tried IBM jdk/runtime environment on Linux with Tomcat 3.2.3?
>> 
>> I'v got sun jdk 1.3, running on Red Hat 7.1, with apache 1.3.20, and
>> tomcat 3.2.3.
>> I was wondering how or if IBM's jdk/runtime works.
>> 
>> Mike
> 




Re: IBM JDK

2001-08-14 Thread Tim O'Neil

At 09:36 AM 8/14/2001, you wrote:
> Works very well for me running tomcat 3.2.3, rh 6.2 and IBMJava2-13
>(build 1.3.0, J2RE 1.3.0 IBM build cx130-20010329 (JIT enabled: jitc)

The IBM JVM is supposed to be considerably faster than Sun.





filter mapping

2001-08-14 Thread Lin, Zhongwu

In tomcat 4.0,  how do I map filter ( "my filter" ) to servlet
"my simple servlet" ?

 

  my filter

   my simple servlet


   myservlet




  my simple servlet
  com.controller.myservlet




regards

zlin



Re: Trouble running a servlet

2001-08-14 Thread Richard Draucker

Before you try modifying your "server.xml" file, are you able to run the 
Tomcat examples?  If so, you should be able to drop your LibraryServlet into 
the webapps/examples/WEB-INF/classes directory and hit it at:
http://localhost:8080/examples/servlet/LibraryServlet

If you can't run the Tomcat examples, then your problem is something greater 
than matching the Url to your LibraryServlet.

 - Richard


On Tuesday 14 August 2001 12:04 pm, you wrote:
>   I'm afraid this it doens't work in ROOT or examples.
> How would I create a context for ROOT?  Another pster
> told me I needed to look at my servlet.xml file which
> should be in the config directory.  I don't know how
> the names difer between platforms, but my "Conf"
> directory under jakarta-tomcat-3.2.1 doens't have a
> servlet.xml file.  What ight it be called instead on
> Win 2000?  Thanks.
>
>
> Ken
>
> Your output from starting TOMCAT (in your earlier
> post) did not indicate a
> context being created for "ROOT", just "examples"
> and "admin".  Try putting
> it in the "examples" application and use the same
> url syntax:
>
> http://localhost:8080/examples/servlet/LibraryServlet
>
> As delivered, TOMCAT uses ROOT as the default
> webapp.  So, you may also be
> able to reach the application at:
>
> http://localhost:8080/servlet/LibraryServlet
>
> - Richard
>
> On Monday 13 August 2001 07:40 pm, you wrote:
> > I still make make this work.  I've made
>
> sure my
>
> > servlet class is in
> > TOMCAT_HOME\webapps\ROOT\WEB-INF\clsses and get
>
> this
>
> > Not Found (404)
> >
> > Original request:
> > http://localhost:8080/servlet/LibraryServlet
> >
> > Not found request:
> > http://localhost:8080/servlet/LibraryServlet
> >
> > This has to be something basic, and it's got to
>
> be me,
>
> > but I cna't figure out what is wrong.  Thanks.
> >
> >
> > Ken
>
> __
> Richard Draucker [EMAIL PROTECTED]
> Protected-Data.Com www.protected-data.com
> Remote Data Support For Web Developers
>
>
>
> __
> 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 Support For Web Developers




Re: Re[2]: war files. (tomcat 4.0 beta 7)

2001-08-14 Thread Rob S.

Frankly, I'm not quite sure I understand what your problem is.  I've used
JDBC drivers from Oracle, Postgres, Sun, and (in a roundabout way) Versant,
and I'm yet to see anyone release a platform-specific JDBC jar.

Anyway, all I do is throw the .jar into the WEB-INF/lib path of the app that
uses it, and it always works for me.

What are you trying to do?

- r

On Tue, 14 Aug 2001 12:37:44 -0400 [EMAIL PROTECTED] wrote:
> 
> >>Use "%CATALINA_HOME%\common\lib" if you want a JAR
> >>file visible to both applications *and* Catalina internal classes (which

> >>is rarely necessary).
> 
> What about servlets that load at startup? Which directory does Catalina
> search? For servlets that load at startup, will Catalina find servlet
> classes in war files in the webapps folder? This didn't work for me.
> 
> 
> Reply Separator
> Subject:Re: war files. (tomcat 4.0 beta 7)
> Author: [EMAIL PROTECTED]
> Date: 8/14/2001 9:26 AM
> 
> 
> 
> On Tue, 14 Aug 2001, Pier P. Fumagalli wrote:
> 
> > James, Stuart at [EMAIL PROTECTED] wrote:
> >
> > > I have packaged my web application in a .war file and deployed it
using
> > > tomcat 4.0 beta 7.
> > >
> > > perfect.
> > >
> > > The only way I could get it to work was to copy my database jar files
> into > > web-inf\lib, this would make my war file platform dependent as
> most database > > vendors ship different jars for each operating system.
> > >
> > > I tried them in the %CATALINA_HOME%\lib but that did not help.
> > >
> > > suggestions / recommendations.
> >
> > I _believe_... It's not %CATALINA_HOME%\lib, but
> %CATALINA_HOME%\common\lib >
> 
> No, "%CATALINA_HOME%\lib" is the right place for JARs that should only be
> seen by applications.  Use "%CATALINA_HOME%\common\lib" if you want a JAR
> file visible to both applications *and* Catalina internal classes (which
> is rarely necessary).
> 
> Without knowing what the failure symptoms are when you put the JDBC
> driver files into "%CATALINA_HOME%\lib", it's a little hard to debug "that

> did not help".
> 
> > But I might be wrong...
> >
> > Pier
> >
> >
> Craig






RE: Missing file, libstd++-libc6.1-1.so.2

2001-08-14 Thread Andrew McGhee

Download "compat-libstdc++-6.2-2.9.0.14.i386.rpm" and install
rpm -Uvh compat-libstdc++-6.2-2.9.0.14.i386.rpm

-Original Message-
From: Marty Haught [mailto:[EMAIL PROTECTED]]
Sent: 08 August 2001 17:03
To: [EMAIL PROTECTED]
Subject: Missing file, libstd++-libc6.1-1.so.2


Hi All,

I just joined the list as I'm new to website admin duties and am
trying to 
bring up a tomcat server on a linux/apache box.
My current setup is RedHat 7, Apache 1.3.12,  jdk1.3.1, and Tomcat 
3.2.3.  I've been working on this server with my free time for the last 
month or so.

BTW,
JAVA_HOME= /usr/java/jdk1.3.1
TOMCAT_HOME=/var/tomcat


Here's my error that's in my tomcat log.

/usr/java/jdk1.3.1/bin/i386/native_threads/java: error while loading shared 
libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No 
such file or directory

Indeed this file does not exist and I'm wondering how I should go about 
fixing that.  Apache is operational and has been serving webpages for a 
while now.  I think mod_jk is loading correctly (according to logs) but I 
have yet to attempt a jsp page as Tomcat does not start for me.

Thanks for any help you can offer.

Marty




Re: Missing file, libstd++-libc6.1-1.so.2

2001-08-14 Thread Richard Stevens

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I'm using Linux From Scratch with the latest stable glibc (at the time I 
built it) and had a similar problem. A putting a link with libstdc++-xyz (the 
one missing) to the newer version worked well, too. Downloading the compat 
libs is probably better, though.

CU

Richard

On Tuesday 14 August 2001 20:31, you wrote:
> Download "compat-libstdc++-6.2-2.9.0.14.i386.rpm" and install
> rpm -Uvh compat-libstdc++-6.2-2.9.0.14.i386.rpm
>
> -Original Message-
> From: Marty Haught [mailto:[EMAIL PROTECTED]]
> Sent: 08 August 2001 17:03
> To: [EMAIL PROTECTED]
> Subject: Missing file, libstd++-libc6.1-1.so.2
>
>
> Hi All,
>
>   I just joined the list as I'm new to website admin duties and am
> trying to
> bring up a tomcat server on a linux/apache box.
> My current setup is RedHat 7, Apache 1.3.12,  jdk1.3.1, and Tomcat
> 3.2.3.  I've been working on this server with my free time for the last
> month or so.
>
> BTW,
> JAVA_HOME= /usr/java/jdk1.3.1
> TOMCAT_HOME=/var/tomcat
>
>
> Here's my error that's in my tomcat log.
>
> /usr/java/jdk1.3.1/bin/i386/native_threads/java: error while loading shared
> libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No
> such file or directory
>
> Indeed this file does not exist and I'm wondering how I should go about
> fixing that.  Apache is operational and has been serving webpages for a
> while now.  I think mod_jk is loading correctly (according to logs) but I
> have yet to attempt a jsp page as Tomcat does not start for me.
>
> Thanks for any help you can offer.
>
> Marty

- -- 
- ---
http://www.richardstevens.de

Unix IS user friendly, it is just selective about who his friends are.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7eXFJWQvEMJfcXlQRApGLAJ9zD0UBjgQV5W29/AyIw153di/53QCfRTd3
U/LM6TuDp+WVU5+tbXHrxJA=
=4IBz
-END PGP SIGNATURE-



Re: Re[2]: war files. (tomcat 4.0 beta 7)

2001-08-14 Thread Richard Draucker

Yes, of course including the jdbc jar in WEB-INF/lib is gonna make the .war 
platform specific in so far as the database is concerned.  What other option 
do you have, though?  ... do you plan to distribute EVERY jdbc type 4 driver 
with your application?  Wouldn't it be easier on you and maybe your clients 
to include just one 'example' jdbc driver in the .war and make an install 
note to replace it with the client's jdbc driver of choice along with 
whatever config info you include.  They're gonna have to config the driver 
anyway, what's an extra drag and drop.

- Richard



On Tuesday 14 August 2001 02:22 pm, you wrote:
> Frankly, I'm not quite sure I understand what your problem is.I've used
> JDBC drivers from Oracle, Postgres, Sun, and (in a roundabout way) Versant,
> and I'm yet to see anyone release a platform-specific JDBC jar.
>
> Anyway, all I do is throw the .jar into the WEB-INF/lib path of the app
> that uses it, and it always works for me.
>
> What are you trying to do?
>
> - r
>
> On Tue, 14 Aug 2001 12:37:44 -0400 [EMAIL PROTECTED] wrote:
> > >>Use "%CATALINA_HOME%\common\lib" if you want a JAR
> > >>file visible to both applications *and* Catalina internal classes
> > >> (which
> > >>
> > >>is rarely necessary).
> >
> > What about servlets that load at startup? Which directory does Catalina
> > search? For servlets that load at startup, will Catalina find servlet
> > classes in war files in the webapps folder? This didn't work for me.
> >
> >
> > Reply Separator
> > Subject:Re: war files. (tomcat 4.0 beta 7)
> > Author: [EMAIL PROTECTED]
> > Date: 8/14/2001 9:26 AM
> >
> > On Tue, 14 Aug 2001, Pier P. Fumagalli wrote:
> > > James, Stuart at [EMAIL PROTECTED] wrote:
> > > > I have packaged my web application in a .war file and deployed it
>
> using
>
> > > > tomcat 4.0 beta 7.
> > > >
> > > > perfect.
> > > >
> > > > The only way I could get it to work was to copy my database jar files
> >
> > into > > web-inf\lib, this would make my war file platform dependent as
> > most database > > vendors ship different jars for each operating system.
> >
> > > > I tried them in the %CATALINA_HOME%\lib but that did not help.
> > > >
> > > > suggestions / recommendations.
> > >
> > > I _believe_... It's not %CATALINA_HOME%\lib, but
> >
> > %CATALINA_HOME%\common\lib >
> >
> > No, "%CATALINA_HOME%\lib" is the right place for JARs that should only be
> > seen by applications.  Use "%CATALINA_HOME%\common\lib" if you want a JAR
> > file visible to both applications *and* Catalina internal classes (which
> > is rarely necessary).
> >
> > Without knowing what the failure symptoms are when you put the JDBC
> > driver files into "%CATALINA_HOME%\lib", it's a little hard to debug
> > "that
> >
> > did not help".
> >
> > > But I might be wrong...
> > >
> > >   Pier
> >
> > Craig

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




Re: Re[2]: war files. (tomcat 4.0 beta 7)

2001-08-14 Thread Rob S.

> Yes, of course including the jdbc jar in WEB-INF/lib is gonna make the
.war
> platform specific in so far as the database is concerned.  What other
option

AHHH ok I was thinking, "wtf?  JDBC drivers run on any platform!" =)

- r

> 
> On Tuesday 14 August 2001 02:22 pm, you wrote:
> > Frankly, I'm not quite sure I understand what your problem is.  I've

> used
> > JDBC drivers from Oracle, Postgres, Sun, and (in a roundabout way)
> Versant, > and I'm yet to see anyone release a platform-specific JDBC jar.

> >
> > Anyway, all I do is throw the .jar into the WEB-INF/lib path of the app
> > that uses it, and it always works for me.
> >
> > What are you trying to do?
> >
> > - r
> >
> > On Tue, 14 Aug 2001 12:37:44 -0400 [EMAIL PROTECTED] wrote:

> > > >>Use "%CATALINA_HOME%\common\lib" if you want a JAR
> > > >>file visible to both applications *and* Catalina internal classes
> > > >> (which
> > > >>
> > > >>is rarely necessary).
> > >
> > > What about servlets that load at startup? Which directory does
Catalina
> > > search? For servlets that load at startup, will Catalina find servlet
> > > classes in war files in the webapps folder? This didn't work for me.
> > >
> > >
> > > Reply Separator
> > > Subject:  Re: war files. (tomcat 4.0 beta 7)
> > > Author: [EMAIL PROTECTED]
> > > Date: 8/14/2001 9:26 AM
> > >
> > > On Tue, 14 Aug 2001, Pier P. Fumagalli wrote:
> > > > James, Stuart at [EMAIL PROTECTED] wrote:
> > > > > I have packaged my web application in a .war file and deployed it
> >
> > using
> >
> > > > > tomcat 4.0 beta 7.
> > > > >
> > > > > perfect.
> > > > >
> > > > > The only way I could get it to work was to copy my database jar
> files > >
> > > into > > web-inf\lib, this would make my war file platform dependent
as
> > > most database > > vendors ship different jars for each operating
> system. > >
> > > > > I tried them in the %CATALINA_HOME%\lib but that did not help.
> > > > >
> > > > > suggestions / recommendations.
> > > >
> > > > I _believe_... It's not %CATALINA_HOME%\lib, but
> > >
> > > %CATALINA_HOME%\common\lib >
> > >
> > > No, "%CATALINA_HOME%\lib" is the right place for JARs that should only

> be > > seen by applications. Use "%CATALINA_HOME%\common\lib" if you want
a
> JAR > > file visible to both applications *and* Catalina internal classes
> (which > > is rarely necessary).
> > >
> > > Without knowing what the failure symptoms are when you put the JDBC
> > > driver files into "%CATALINA_HOME%\lib", it's a little hard to debug
> > > "that
> > >
> > > did not help".
> > >
> > > > But I might be wrong...
> > > >
> > > > Pier
> > >
> > > Craig
> 
> --
> Richard Draucker [EMAIL PROTECTED]
> Protected-Data.Com www.protected-data.com
> Remote Data Support For Web Developers






RE: PLEASE - HELP PLEASE

2001-08-14 Thread Jann VanOver

Using a more descriptive title than PLEASE HELP PLEASE will help your
question get answered sooner.

You don't say if you're getting any error messages.  One comment -- docbase
must point to a DIRECTORY that holds your application context.  Yours points
at an HTML file.  That should cause problems.

-Original Message-
From: Nance, Michael [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 07, 2001 8:25 AM
To: '[EMAIL PROTECTED]'
Subject: PLEASE - HELP PLEASE


This is a repostMy connectors won't start this is from my server.xml










   
   
   
   
   









Second

are dir structure is something like this

../src/common/...  path to all classes etc
../src/public_html/..   path to all jsp's

in my server.xml I have a line



I believe that will take care of my jsps but not a path to my Servlets
How can I fix this?

Thanks



Re: Re[2]: war files. (tomcat 4.0 beta 7)

2001-08-14 Thread Craig R. McClanahan



On Tue, 14 Aug 2001, Rob S. wrote:

> > Yes, of course including the jdbc jar in WEB-INF/lib is gonna make the
> .war
> > platform specific in so far as the database is concerned.  What other
> option
> 
> AHHH ok I was thinking, "wtf?  JDBC drivers run on any platform!" =)
> 

Well, not *always* ...

For example, Oracle offers their drivers in two flavors -- one that uses
the appropriate Oracle SQL*Net installation on your system (so it is
platform dependent), and the other that does its own network
communications and thus runs everywhere.

A "type 4" driver (in JDBC parlance, )
is the kind that is portable.

> - r
> 

Craig




Re: Trouble running a servlet

2001-08-14 Thread Kenneth Litwak

  Well, I still haven't been able to make tomcat work
for me on Win 2000.  Interestingly, I went to a
different machine, running Solaris 8.  I downloaded
Tomcat 3.2.3, instlaled it, put my code in the
Root/classes, and ran it with
http://localhost:8080/servlet/LibraryServlet
and it worked like a champ.  
The only real diference between the Solaris setup
(besdies it being Solaris) and the Win 2000 setup is
that on Win 2000, I've got Netscape set up touse a
manual proxy, and in that state, Netwcape won't talk
to the Internet.  On the Solaris machine, whre I can
talk to the Internet and also go to localhost:8080,
things work fine.  Does this help at all in
determining why the Win 2000 setup won't work? 
Thanks.


Ken

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



Re: Tomcat crashes simultaneous more connection above 990+

2001-08-14 Thread Leigh Wanstead

Does anyone try to apply that theory on Tomcat or Jetty or JBoss?


- Original Message -
From: "Aravind Naidu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 11, 2001 5:50 PM
Subject: RE: Tomcat crashes simultaneous more connection above 990+


> More like a limitation of your JVM on your platform.
> Look at the Volano benchmarks on network scalability.
> http://www.volano.com/report/index.html
>
>
> -Original Message-
> From: Santosh Pasi [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 1 January 1601 08:00
> To: [EMAIL PROTECTED]
> Subject: Tomcat crashes simultaneous more connection above 990+
>
>
> Hi everyone,
>
> Can anyone know how much simultaneous connections Tomcat can support,
> where do I need to change the settings to reflect same.  Is no. of max.
> connections support ... is somewhat related with no. of connections to
> Tomcat.
> Yesterday, I tried all combinations .. still as soon as total
> connections .. reaches above 990 .. 997(at most) it crashes Tomcat.  And
no
> more
> process of Tomcat is left.  Although Apache adn other applications are not
> affected.
> Is there a no. limitation on child process ... as here child processes
> . increases to some what 1048.. and it crashes.
> Same thing i tried on AIX 4.5 ... and it supported above 2600 process
> adn finally it crashed there.
> We are looking for 10,000 - 12000 simulatenous connections .. it means
> 1-12000 child process java ... is it problem with java .. we ar using
> 1.2.2.
> Is there any fine tuning that i can do in Tomcat or Apache or Linux?
>
> Regards,
> Santosh Pasi
>
>
>
> ---Original Message--
> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> >Precedence: bulk
> >Reply-To: [EMAIL PROTECTED]
> >List-Help: 
> >List-Unsubscribe: 
> >List-Post: 
> >To: [EMAIL PROTECTED]
> >From: Santosh Pasi<[EMAIL PROTECTED]>
> >Cc:
> >Reply-To: Santosh Pasi<[EMAIL PROTECTED]>
> >Date: Fri, 10 Aug 2001 12:30:04 +0530
> >In-Reply-To: [EMAIL PROTECTED]
> >Subject: Re: Jakarta crashes simultaneous more connection above 990+
> >
> >Hi,
> >
> >Even changing pools setting like
> >Increasing the pool size resolved the problem, specifically the
> >following parameters (neatly copied from the tomcat users guide)
> >
> >> name="max_threads"
> > value="200"/>
> >  > name="max_spare_threads"
> > value="20"/>
> >  > name="min_spare_threads"
> > value="20" />
> >
> >The values were arbitrary - I stuck mine up to max_threads = 200,
> >max_spare_threads=20, min_spare_threads=20
> >and lo - the hang problem  went away.
> >
> >Even I had used options
> >
> >TOMCAT_OPTS=" -Xms64m"
> >
> >Didn't solve the problem.
> >
> >Still same problem.
> >
> >Regards,
> >Santosh Pasi
> >
> >---Original Message--
> >Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> >>Precedence: bulk
> >>Reply-To: [EMAIL PROTECTED]
> >>List-Help: 
> >>List-Unsubscribe: 
> >>List-Post: 
> >>To: [EMAIL PROTECTED]
> >>From: Santosh Pasi<[EMAIL PROTECTED]>
> >>Cc:
> >>Reply-To: Santosh Pasi<[EMAIL PROTECTED]>
> >>Date: Fri, 10 Aug 2001 10:55:26 +0530
> >>Subject: Jakarta crashes after 900+ simultaneous connection
> >>
> >>Hi everyone,
> >>
> >>We are doing some stress testing. My problem is that when number of
> >>connections reaches around 940..980, jakarta crashes with following
>
>
>messages->SIGSE
> GV   11*  segmentation violation>>si_signo [11]: SIGSEGV   11*
> segmentation violation
> >>si_errno [0]: Success
> >>si_code [0]: SI_USER [pid: 0, uid: 0]
> >>stackpointer=0x4c558554
> >>
> >>Full thread dump Classic VM (1.2.2-L, green threads):
> >>"ppp202" (TID:0x40fb7190, sys_thread_t:0x8d0dec0, state:R) prio=5
> >>at java.net.SocketInputStream.socketRead(Native Method)
> >>at java.net.SocketInputStream.read(SocketInputStream.java:86)
> >>at java.net.SocketInputStream.read(SocketInputStream.java:67)
> >>at java.io.InputStreamReader.fill(InputStreamReader.java:159)
> >>at java.io.InputStreamReader.read(InputStreamReader.java:235)
> >>at java.io.BufferedReader.fill(BufferedReader.java:133)
> >>at java.io.BufferedReader.readLine(BufferedReader.java:270)
> >>at java.io.BufferedReader.readLine(BufferedReader.java:325)
> >>at IRCClient.run(IRCClient.java:799)
> >>"bumba174" (TID:0x40f88f90, sys_thread_t:0x8d0b358, state:CW)
> prio=5>>at java.lang.Thread.sleep(Native Method)
> >>at IRCClient.run(IRCClient.java:765)
> >>"sunny1176" (TID:0x40f75b28, sys_thread_t:0x8d0b930, state:CW)
> >prio=5>at java.lang.Thread.sleep(Native Method)

IllegalStateException with IBM

2001-08-14 Thread Manish

Hi All,

  I changed the jdk on my Tomcat today to use IBM instead of sun jdk. 
BUt since then I am getting this exception

IllegalStateException in: R(  + /myjsp.jsp + null) Cannot forward as 
OutputStream or Writer has already been obtained

I am not using any includes or forwards in my jsp page. I am using RequestDispatcher 
in the servlet to forward 
the request to the corresponding page. Is this is a bug in IBM or something that I 
might be doing wrong.

Please help

Thanks 

-- 
Manish Poddar

Software Engineer
Paycom.net
310-827-5880 x 327
818-415-7447 (m)




Tomcat 3.2.3 class loader hierarchy

2001-08-14 Thread Justin Nichols

Can anyone tell me the class loader hierarchy of Tomcat 3.2.3 as it relates 
to the CLASSPATH?

Thanx
-- 
Justin Nichols
[EMAIL PROTECTED]



Multiple servlets using same initParameters

2001-08-14 Thread JBrawner

I have multiple servlets in the same directory and they all get the same
init-params from web.xml.

Currently, I have 5 servlets and am required to repeat all the init-params
5 times, one for each servlet.  So if one parameter changes, I have to
change it five times in web.xml. I'd like to only have them in the web.xml
file once and all servlets use them.  How is this possible?

One approach I took was to create a servlet that all my other servlets
subclassed and all it did was grab the init-params.  I couldn't get it to
work.

Any ideas?

Thanks,

JEB




ABSOLUTELY WORLDS NO. 1 ..MEGA !

2001-08-14 Thread ENTERTAINMENT

Dear Ladies & Gentlemen,

Welcome to the GREATEST SEX SHOW on the ENTIRE NET !

We now offer you to ENTER the world´s No.1 voted SEX-SERVER on the WEB ! 

By far the largest and most incredible content of LIVE SEX is now served to users 
WORLDWIDE!

EVERYTHING is offered 100% ANONOMOUSLY & you don´t need to sign-up or have a 
creditcard ... The way it should be ! 

TO PLUGIN and get access to something you with guarantee NEVER have seen before, use 
ANY of the servers listed below !

Enjoy the BEST!

Yours truly,
MEGA-ENTERTAINMENT 

To get EASY ACCESS & PLUGIN to the LARGEST CONTENT SEXSERVER on the NET, use any of 
the 10 SERVERS listed here: 

1.  http://coolestweb.fadlan.com 
2.  http://coolestweb.paklinks.com
3.  http://kickme.to/coolestweb
4.  http://siam.to/coolestweb
5.  http://coolestweb.hk.st
6.  http://coolestweb.hotresume.net
7.  http://coolestweb.isCool.net
8.  http://arriveat.com/coolestwebs
9.  http://coolestweb.x1.nl
10. http://www.actioncenter.com/c/coolestweb

To get EASY ACCESS & PLUGIN to the LESBIAN IBIZA BABES, use any of the 10 SERVERS 
listed here:

1.  http://coolestbabes.fadlan.com
2.  http://coolestbabes.paklinks.com
3.  http://kickme.to/coolestbabes
4.  http://siam.to/coolestbabes
5.  http://coolestbabes.hk.st
6.  http://coolestbabes.hotresume.net
7.  http://coolestbabes.isCool.net
8.  http://arriveat.com/coolestbabes
9.  http://coolestbabes.x1.nl
10. http://www.actioncenter.com/c/coolestbabes






Re: ABSOLUTELY WORLDS NO. 1 ..MEGA !

2001-08-14 Thread Pier P. Fumagalli

ENTERTAINMENT at [EMAIL PROTECTED] wrote:
> 
> [...]

Awww... I'm sorry guys... I'll have to enable moderation (once one gets in,
we'll be flooded)... Sorry... :( :( :(


Pier




Re: Multiple servlets using same initParameters

2001-08-14 Thread Peter Davison

How about this:

Set up your init params for one of your servlets.
Make sure that this servlet get's pre-loaded first before the other
servlets.
Have the init() method of that servlet store all the parameters as 
System properties and let the other servlets retrieve the parameters
as System properties instead of init params.  A bit of a hack but it 
works.

P.


On Tue, 14 Aug 2001 17:38:26 -0400
[EMAIL PROTECTED] wrote:

> I have multiple servlets in the same directory and they all get the same
> init-params from web.xml.
> 
> Currently, I have 5 servlets and am required to repeat all the init-params
> 5 times, one for each servlet.  So if one parameter changes, I have to
> change it five times in web.xml. I'd like to only have them in the web.xml
> file once and all servlets use them.  How is this possible?
> 
> One approach I took was to create a servlet that all my other servlets
> subclassed and all it did was grab the init-params.  I couldn't get it to
> work.
> 
> Any ideas?
> 
> Thanks,
> 
> JEB



RE: Multiple servlets using same initParameters

2001-08-14 Thread Martin van den Bemt

Use a config file or properties file makes life a bit easier.. (at least
that's the way I do it)

Mvgr,
Martin

> -Original Message-
> From: Peter Davison [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 14, 2001 11:51 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Multiple servlets using same initParameters
>
>
> How about this:
>
> Set up your init params for one of your servlets.
> Make sure that this servlet get's pre-loaded first before the other
> servlets.
> Have the init() method of that servlet store all the parameters as
> System properties and let the other servlets retrieve the parameters
> as System properties instead of init params.  A bit of a hack but it
> works.
>
> P.
>
>
> On Tue, 14 Aug 2001 17:38:26 -0400
> [EMAIL PROTECTED] wrote:
>
> > I have multiple servlets in the same directory and they all get the same
> > init-params from web.xml.
> >
> > Currently, I have 5 servlets and am required to repeat all the
> init-params
> > 5 times, one for each servlet.  So if one parameter changes, I have to
> > change it five times in web.xml. I'd like to only have them in
> the web.xml
> > file once and all servlets use them.  How is this possible?
> >
> > One approach I took was to create a servlet that all my other servlets
> > subclassed and all it did was grab the init-params.  I couldn't
> get it to
> > work.
> >
> > Any ideas?
> >
> > Thanks,
> >
> > JEB
>




Re: Tomcat crashes simultaneous more connection above 990+

2001-08-14 Thread Barnabas Yohannes

Looks, like my webpage at tomcat is crashing because of many people trying
to access the page simultaneously.  Where in tomcat do you check to see how
many concurrent connections are connected?

- Original Message -
From: "Leigh Wanstead" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, August 14, 2001 4:26 PM
Subject: Re: Tomcat crashes simultaneous more connection above 990+


> Does anyone try to apply that theory on Tomcat or Jetty or JBoss?
>
>
> - Original Message -
> From: "Aravind Naidu" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, August 11, 2001 5:50 PM
> Subject: RE: Tomcat crashes simultaneous more connection above 990+
>
>
> > More like a limitation of your JVM on your platform.
> > Look at the Volano benchmarks on network scalability.
> > http://www.volano.com/report/index.html
> >
> >
> > -Original Message-
> > From: Santosh Pasi [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, 1 January 1601 08:00
> > To: [EMAIL PROTECTED]
> > Subject: Tomcat crashes simultaneous more connection above 990+
> >
> >
> > Hi everyone,
> >
> > Can anyone know how much simultaneous connections Tomcat can support,
> > where do I need to change the settings to reflect same.  Is no. of max.
> > connections support ... is somewhat related with no. of connections to
> > Tomcat.
> > Yesterday, I tried all combinations .. still as soon as total
> > connections .. reaches above 990 .. 997(at most) it crashes Tomcat.  And
> no
> > more
> > process of Tomcat is left.  Although Apache adn other applications are
not
> > affected.
> > Is there a no. limitation on child process ... as here child processes
> > . increases to some what 1048.. and it crashes.
> > Same thing i tried on AIX 4.5 ... and it supported above 2600 process
> > adn finally it crashed there.
> > We are looking for 10,000 - 12000 simulatenous connections .. it means
> > 1-12000 child process java ... is it problem with java .. we ar
using
> > 1.2.2.
> > Is there any fine tuning that i can do in Tomcat or Apache or Linux?
> >
> > Regards,
> > Santosh Pasi
> >
> >
> >
> > ---Original Message--
> > Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> > >Precedence: bulk
> > >Reply-To: [EMAIL PROTECTED]
> > >List-Help: 
> > >List-Unsubscribe: 
> > >List-Post: 
> > >To: [EMAIL PROTECTED]
> > >From: Santosh Pasi<[EMAIL PROTECTED]>
> > >Cc:
> > >Reply-To: Santosh Pasi<[EMAIL PROTECTED]>
> > >Date: Fri, 10 Aug 2001 12:30:04 +0530
> > >In-Reply-To: [EMAIL PROTECTED]
> > >Subject: Re: Jakarta crashes simultaneous more connection above 990+
> > >
> > >Hi,
> > >
> > >Even changing pools setting like
> > >Increasing the pool size resolved the problem, specifically the
> > >following parameters (neatly copied from the tomcat users guide)
> > >
> > >> > name="max_threads"
> > > value="200"/>
> > >  > > name="max_spare_threads"
> > > value="20"/>
> > >  > > name="min_spare_threads"
> > > value="20" />
> > >
> > >The values were arbitrary - I stuck mine up to max_threads = 200,
> > >max_spare_threads=20, min_spare_threads=20
> > >and lo - the hang problem  went away.
> > >
> > >Even I had used options
> > >
> > >TOMCAT_OPTS=" -Xms64m"
> > >
> > >Didn't solve the problem.
> > >
> > >Still same problem.
> > >
> > >Regards,
> > >Santosh Pasi
> > >
> > >---Original Message--
> > >Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> > >>Precedence: bulk
> > >>Reply-To: [EMAIL PROTECTED]
> > >>List-Help: 
> > >>List-Unsubscribe: 
> > >>List-Post: 
> > >>To: [EMAIL PROTECTED]
> > >>From: Santosh Pasi<[EMAIL PROTECTED]>
> > >>Cc:
> > >>Reply-To: Santosh Pasi<[EMAIL PROTECTED]>
> > >>Date: Fri, 10 Aug 2001 10:55:26 +0530
> > >>Subject: Jakarta crashes after 900+ simultaneous connection
> > >>
> > >>Hi everyone,
> > >>
> > >>We are doing some stress testing. My problem is that when number of
> > >>connections reaches around 940..980, jakarta crashes with following
> >
> >
>
>messages->SIGSE
> > GV   11*  segmentation violation>>si_signo [11]: SIGSEGV   11*
> > segmentation violation
> > >>si_errno [0]: Success
> > >>si_code [0]: SI_USER [pid: 0, uid: 0]
> > >>stackpointer=0x4c558554
> > >>
> > >>Full thread dump Classic VM (1.2.2-L, green threads):
> > >>"ppp202" (TID:0x40fb7190, sys_thread_t:0x8d0dec0, state:R) prio=5
> > >>at java.net.SocketInputStream.socketRead(Native Method)
> > >>at java.net.SocketInputStream.read(SocketInputStream.java:86)
> > >>at java.net.SocketInputStream.read(SocketInputStream.java:67)
> > >>at java.io.InputStreamReader.fill(

RE: ABSOLUTELY WORLDS NO. 1 ..MEGA !

2001-08-14 Thread Curtis Dougherty

Pier!!   Dude :(  uncool...  

-Original Message-
From: Pier P. Fumagalli [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 4:48 PM
To: [EMAIL PROTECTED]
Subject: Re: ABSOLUTELY WORLDS NO. 1 ..MEGA !


ENTERTAINMENT at [EMAIL PROTECTED] wrote:
> 
> [...]

Awww... I'm sorry guys... I'll have to enable moderation (once one gets in,
we'll be flooded)... Sorry... :( :( :(


Pier



RE: Multiple servlets using same initParameters

2001-08-14 Thread Jim Urban

This may not work, but is worth a try...

Create a servlet which does nothing other then read the init parameters into
static variables and provides static functions to access the variables
containing the init parameters.  Then in web.xml tell this servlet
1 so it will be always be the first
servlet loaded.  Then when you need to change a parameter you simply change
it once and restart Tomcat.

Jim Urban
Product Manager
Netsteps Inc.
Suite 505E
1 Pierce Pl.
Itasca, IL  60143
Voice:  (630) 250-3045 x2164
Fax:  (630) 250-3046


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 4:38 PM
To: [EMAIL PROTECTED]
Subject: Multiple servlets using same initParameters


I have multiple servlets in the same directory and they all get the same
init-params from web.xml.

Currently, I have 5 servlets and am required to repeat all the init-params
5 times, one for each servlet.  So if one parameter changes, I have to
change it five times in web.xml. I'd like to only have them in the web.xml
file once and all servlets use them.  How is this possible?

One approach I took was to create a servlet that all my other servlets
subclassed and all it did was grab the init-params.  I couldn't get it to
work.

Any ideas?

Thanks,

JEB





Re: Multiple servlets using same initParameters

2001-08-14 Thread Jan Labanowski

In web.xml:


  open-port
  7180
  Port for regular HTTP via Apache


  secure-port
  7143
  Port for HTTPS via Apache


and in the jsp page:



parameters are:
open-port=<%= application.getInitParameter("open-port") %>
secure-port=<%= application.getInitParameter("secure-port") %>



or in the servlet:

String open_port = getServletContext().getInitParameter("open-port");
String secure_port = getServletContext().getInitParameter("secure-port");

Jan
Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/


On Tue, 14 Aug 2001 [EMAIL PROTECTED] wrote:

> I have multiple servlets in the same directory and they all get the same
> init-params from web.xml.
> 
> Currently, I have 5 servlets and am required to repeat all the init-params
> 5 times, one for each servlet.  So if one parameter changes, I have to
> change it five times in web.xml. I'd like to only have them in the web.xml
> file once and all servlets use them.  How is this possible?
> 
> One approach I took was to create a servlet that all my other servlets
> subclassed and all it did was grab the init-params.  I couldn't get it to
> work.
> 
> Any ideas?
> 
> Thanks,
> 
> JEB
> 





RE: ABSOLUTELY WORLDS NO. 1 ..MEGA !

2001-08-14 Thread Alexey N. Solofnenko

Maybe enabling filtering by headers will help. That message had
'Precedence: bulk' header. 

_

 Alexey N. Solofnenko.
 Citech Inc.
Pleasant Hill, CA (GMT-8 usually)





Re: ABSOLUTELY WORLDS NO. 1 ..MEGA !

2001-08-14 Thread Pier P. Fumagalli

I'm already moderating 20+ mailing lists... Didn't want to do this one too,
but, ohhwell, what can I do? I'll try to tweak ezmlm to do
some better filtering, or I don't know :) :) :)

I know it's uncool... But it's not my fault :) I didn¹t post that message,
and didn't create the mailing list :) :) :)

Pier

Curtis Dougherty at [EMAIL PROTECTED] wrote:
> 
> Pier!!   Dude :(  uncool...
> 
> -Original Message-
> From: Pier P. Fumagalli [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 14, 2001 4:48 PM
> To: [EMAIL PROTECTED]
> Subject: Re: ABSOLUTELY WORLDS NO. 1 ..MEGA !
> 
> 
> ENTERTAINMENT at [EMAIL PROTECTED] wrote:
>> 
>> [...]
> 
> Awww... I'm sorry guys... I'll have to enable moderation (once one gets in,
> we'll be flooded)... Sorry... :( :( :(
> 
> 
>   Pier




RE: ABSOLUTELY WORLDS NO. 1 ..MEGA !

2001-08-14 Thread Curtis Dougherty

Look for MEGA and nuke'm

-Original Message-
From: Alexey N. Solofnenko [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 5:09 PM
To: [EMAIL PROTECTED]
Subject: RE: ABSOLUTELY WORLDS NO. 1 ..MEGA !


Maybe enabling filtering by headers will help. That message had
'Precedence: bulk' header. 

_

 Alexey N. Solofnenko.
 Citech Inc.
Pleasant Hill, CA (GMT-8 usually)





Re: ABSOLUTELY WORLDS NO. 1 ..MEGA !

2001-08-14 Thread Pier P. Fumagalli

Alexey N. Solofnenko at [EMAIL PROTECTED] wrote:

> Maybe enabling filtering by headers will help. That message had
> 'Precedence: bulk' header.

All of them (well, most of them) gave Precedence: bulk :(

Pier




RE: ABSOLUTELY WORLDS NO. 1 ..MEGA !

2001-08-14 Thread Dan Garcia

On Tue, 14 Aug 2001, Alexey N. Solofnenko wrote:
> Maybe enabling filtering by headers will help. That message had
> 'Precedence: bulk' header. 

All the mailing list messages have Precedence: bulk :)

What I do on my lists is restrict posting to list members (and I have a 
secondary list of approved posters for people who subscribe from one
address, and post from another, it's usually easy to figure those out
after the first or second bounce and add them to the list)

--Dg





Re: Tomcat 3.2.3 class loader hierarchy

2001-08-14 Thread Craig R. McClanahan



On Tue, 14 Aug 2001, Justin Nichols wrote:

> Can anyone tell me the class loader hierarchy of Tomcat 3.2.3 as it relates 
> to the CLASSPATH?
> 

Here's the hierarchy (bottom up) for Tomcat 3.2.3:
- Webapp class loader (WEB-INF/classes and WEB-INF/lib
- System class loader (i.e. contents of CLASSPATH, but see below)
- Extensions directory ($JAVA_HOME/jre/lib/ext)
- Java runtime library

There are three VERY important differences from the Tomcat 4 behavior that
was discussed earlier:

* Tomcat 3.2.3 core classes are loaded by the system class loader
  as well, along with the classes it requires (like an XML parser).
  Tomcat 4.0 core classes are loaded by a different class loader
  that is not visible to webapps, so it can use it's own XML parser
  without impacting what webapps use.

* Tomcat 3.2.3 builds a CLASSPATH for the system class loader that
  starts with what you already have on it, and then tries to add
  all JAR files in the "lib" directory.  Tomcat 4 ignores any
  CLASSPATH setting you had before (I think 3.3 does this too).

* When searching for a class, Tomcat 3.2.3 always follows the
  usual Java2 delegation pattern (ask my parent class loader if
  it has the class, and only look locally if it doesn't), while
  Tomcat 4 obeys the new statement in the Servlet 2.3 spec which
  allows the webapp class loader to look first before delegating.

The difference on the third point will show up if you have a JAR file
(say, a JDBC driver) in both the Tomcat "lib" directory *and* in
/WEB-INF/lib for your web app.  Under Tomcat 3.2.3, the version in the
Tomcat "lib" directory will always win.  In Tomcat 4, the version in the
/WEB-INF/lib directory will always win.

> Thanx
> -- 
> Justin Nichols
> [EMAIL PROTECTED]
> 

Craig





Re: Trouble running a servlet

2001-08-14 Thread Kenneth Litwak

   Okay, I made my Win 2000  trouble go away by
removing proxy settings in NetscRape and signing on to
the Internet through my ISP.  Now everything works
fine.  The question I have still, however, is:  how
can I avoid this?  I should not have to tie up my
phone line just to use Tomcat on my PC.  That's silly.
 How can I get around this please? Thanks.

Ken

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



Re: mod_jk.so + apache

2001-08-14 Thread matt

how did you know you wanted the eapi mod_jk rather than non?




  1   2   >