Where can i find mod_jserv adapter?

2001-07-30 Thread Nandhitha J. Jagajeevan
Title: Where can i find mod_jserv adapter?






Hi,

I would like to download mod_jserv. Where can I find the binary version and/or source code?


Regards,

Nandhitha






Running servlets in tomcat

2001-07-30 Thread AN Sathe

hi
I m using tomcat 3.1 but I am unable to run servlets in tomcat

Is there any configuration problem.

I have added the following line in my /tomcat/binary/conf/server.xml file
and created a webapp satheonline  under /tomcat/binary/webapps/

Context path=/satheonline docBase=webapps/satheonline debug=0
reloadable=true 
/Context

Then I have created the following directory structure under sathonline:

satheonline(contains all html files )--Meta-inf
 --web-infclasses (contains
servlet class files)

Besides the web.xml file in web-inf contains the following

 servlet
servlet-name
   helloworldexample
/servlet-name
servlet-class
HelloWorldExample
/servlet-class
/servlet

The server starts fine. But when I type
http://localhost:8080/satheonline/servlet/HelloWorldExample it gives a 404
error

what is missing ?

thanks

amit sathe




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

2001-07-30 Thread Moin Anjum H.

[X] +1 - Plain Text only. Strip HTML on the mailing list.
[ ]  0 - I don't give a damn shit.
[ ] -1 - You mad? I love HTML in messages and want to keep using it.





JSP pages cannot be viewed

2001-07-30 Thread Utech - Han Lim

Hi, I just installed the Apache-1.3.20 and Tomcat-3.2.3, and all running
smoothly until I try to view the .jsp pages at http://localhost:8080/ and I
got this error result :

Error: 500
Location: /examples/jsp/num/numguess.jsp
Internal Servlet Error:

javax.servlet.ServletException: sun/tools/javac/Main
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
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:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

Root cause:
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
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: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:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

What is the causes of this problem? And another problem I got is when I try
to create a helloworld.jsp that contain :

HTML
HEAD
TITLE/TITLE
META name=description content=
META name=keywords content=
META name=generator content=CuteHTML
/HEAD
BODY BGCOLOR=#FF TEXT=#00 LINK=#FF VLINK=#800080
h1Hello World - HTML .../h1
h1% out.println(Hello World - JSP ...); %/h1
/BODY
/HTML

And I got error when view this page in browser :

2001-07-30 02:50:56 - Ctx( /examples ): 404 R( /examples +
/jsp/helloworld.jsp + null) JSP file not found

Any help and suggestion will be appreciated. Thanks


Han Lin
System Consultant
Unidux Technologies Pte Ltd
(subsidiary of the public-listed Unidux Electronics Ltd)
Tel : (65) 293 4797
Fax : (65) 293 4920
Email : [EMAIL PROTECTED]




.htm problem

2001-07-30 Thread Mark Muffett



I have a web site to which a lot of cross-links 
have been built up over time. Inevitably the links are to pages with names 
like index.htm. I would like to change these to jsp pages, but of course I 
can't change the name without breaking the link (and losing traffic). 


Any ideas how I can put jsp functionality on a jsp 
page (I already have Tomcat serving out the .htm pages and I have tried simply 
using an htm page like a jsp page, but it doesn't work)?

Many thanks for any help.

Mark


RE: Apache (1.3) Mod_Rewrite and POST Method

2001-07-30 Thread Andrew McGhee

Ian,
I believe that POST data is not re-sent when a HTTP redirect occurs.

If you can modify your code to use a GET method (storing the form data in
the URL), you may be able to get around the problem,

Regards,
Andrew

-Original Message-
From: Young Ian(BSN01) [mailto:[EMAIL PROTECTED]]
Sent: 18 July 2001 11:31
To: '[EMAIL PROTECTED]'
Subject: Apache (1.3) Mod_Rewrite and POST Method


 Could anyone tell me if the Rewrite module in Apache supports the POST
 method.
 I have a rewrite rule that is working correctly but I seem to be losing
 the data from the request.
 
 Any help most appreciated.
 
 Ian Young
 Software Developer
 ICL 
 Jays Close 
 Viables Industrial Estate 
 Basingstoke 
 Hampshire, RG22 4BY 
 Telephone  (Ext.): +44 (0)1256 428812
 Telephone (Int.): 730 38812
 [EMAIL PROTECTED]
 Website :  http://www.icl.com
 
 
 This e-mail is intended only for the addressee named above. As this e-mail
 may contain confidential or privileged information if you are not, or
 suspect that you are not, the named addressee or the person responsible
 for delivering the message to the named addressee, please telephone us
 immediately. Please note that we cannot guarantee that this message or any
 attachment is virus free or has not been intercepted and amended. The
 views of the author may not necessarily reflect those of the Company.
 
 International Computers Limited, Registered in England no 96056,
 Registered Office 26, Finsbury Square, London, EC2A 1SL
 
 



got a doubt

2001-07-30 Thread sajan koshy george

Hi,

when i installed tomcat as a service in nt machine.u get the default page and 
everything.but when i try to use a JSP page that has to interact with a database.i get 
the following error.


Internal Servlet Error:

javax.servlet.ServletException: [Microsoft][ODBC Driver Manager] Data source name not 
found and no default driver specified
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
at 
jsp.apepmail._0002fjsp_0002fapepmail_0002fdetails_0002ejspdetails_jsp_0._jspService(_0002fjsp_0002fapepmail_0002fdetails_0002ejspdetails_jsp_0.java:137)
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$JspServletWrapper.service(JspServlet.java:177)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

Root cause: 
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and 
no default driver specified
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6031)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6188)
at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:2458)
at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:320)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:163)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:199)
at apepmail.sqlbean.makeConnection(sqlbean.java:19)
at 
jsp.apepmail._0002fjsp_0002fapepmail_0002fdetails_0002ejspdetails_jsp_0._jspService(_0002fjsp_0002fapepmail_0002fdetails_0002ejspdetails_jsp_0.java:87)
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$JspServletWrapper.service(JspServlet.java:177)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread



This error comes only when i try to use tomcat as a service .if i directly start 
tomcat with startup.bat it works.is there any classpath or anything like that i should 
set for driver only?.would be grateful if u could help me out.

with regards 
sajan

_
For Rs. 2,000,000 worth of Aptech scholarships click below
http://events.rediff.com/aptechsch/scholarship.htm






RE: JSP pages cannot be viewed

2001-07-30 Thread Emir Alikadic (ADNOC IST)

 -Original Message-
 From: Utech - Han Lim [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 30, 2001 11:38 AM
 To: [EMAIL PROTECTED]
 Subject: JSP pages cannot be viewed
 Sensitivity: Personal
 
 
 Hi, I just installed the Apache-1.3.20 and Tomcat-3.2.3, and 
 all running
 smoothly until I try to view the .jsp pages at 
 http://localhost:8080/ and I
 got this error result :

[SNIP]

This same question has been answered already on this list.  Please refer to
the list's archive at
http://marc.theaimsgroup.com/?l=tomcat-userm=97869370231731w=2
and the response
http://marc.theaimsgroup.com/?l=tomcat-userm=97870338519857w=2

For future reference, this list is archived at
http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2 (among other places) and
the archive is searchable.  Since there are many questions that are
repeated, I'd suggest you try find the answer to your question in the
archive (after having gone through all the documentation first) before
posing a question on the list.

Pardon? Oh, you're welcome :)

 
 What is the causes of this problem? And another problem I got 
 is when I try
 to create a helloworld.jsp that contain :

[SNIP]

 And I got error when view this page in browser :
 
 2001-07-30 02:50:56 - Ctx( /examples ): 404 R( /examples +
 /jsp/helloworld.jsp + null) JSP file not found
 
 Any help and suggestion will be appreciated. Thanks

Where did you place your helloworld.jsp?  Is it in /examples/jsp?  If not,
put it there, then try again.  Of course, you can put it in any other
context directory but make sure you adjust the request URL in your browser
accordingly.

Regards,



Emir.


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



AW: got a doubt

2001-07-30 Thread Sladky, Jan

Sajan,
be sure to have created your DSN as a system DSN.
If you created your DSN as a User DSN this wont work.
(I guess that you have created a DSN at all.)

Grtx
Jan

-Ursprüngliche Nachricht-
Von: sajan koshy george [mailto:[EMAIL PROTECTED]]
Gesendet am: Montag, 30. Juli 2001 10:06
An: [EMAIL PROTECTED]
Betreff: got a doubt

Hi,

when i installed tomcat as a service in nt machine.u get the default page
and everything.but when i try to use a JSP page that has to interact with a
database.i get the following error.


Internal Servlet Error:

javax.servlet.ServletException: [Microsoft][ODBC Driver Manager] Data source
name not found and no default driver specified
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
at
jsp.apepmail._0002fjsp_0002fapepmail_0002fdetails_0002ejspdetails_jsp_0._jsp
Service(_0002fjsp_0002fapepmail_0002fdetails_0002ejspdetails_jsp_0.java:137)
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$JspServletWrapper.service(JspServlet.ja
va:177)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

Root cause: 
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not
found and no default driver specified
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6031)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6188)
at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:2458)
at
sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:320)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:163)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:199)
at apepmail.sqlbean.makeConnection(sqlbean.java:19)
at
jsp.apepmail._0002fjsp_0002fapepmail_0002fdetails_0002ejspdetails_jsp_0._jsp
Service(_0002fjsp_0002fapepmail_0002fdetails_0002ejspdetails_jsp_0.java:87)
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$JspServletWrapper.service(JspServlet.ja
va:177)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread



This error comes only when i try to use tomcat as a service .if i directly
start tomcat with startup.bat it works.is there any classpath or anything
like that i should set for driver only?.would be grateful if u could help me
out.

with regards 
sajan

_
For Rs. 2,000,000 worth of Aptech scholarships click below
http://events.rediff.com/aptechsch/scholarship.htm





MissingResourceException: resource missing for dispatcher.forwardException

2001-07-30 Thread Fergus Gallagher

I have an application which has been running happily for weeks, with 
several million interactions.  Suddenly it stops working with the error 
below, and won't accept any more requests.  A restart was required.

Any suggestions appreciated.

Ta

Fergus

P.S. tomcat.sh stop also fails to work (silently)

--

  - Tomcat  3.2.2

  - java version 1.3.0
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
Classic VM (build 1.3.0, J2RE 1.3.0 IBM build cx130-20010502 (JIT enabled: 
jitc))

  - Linux bapp02 2.2.16-22 #1 Tue Aug 22 16:49:06 EDT 2000 i686 unknown


---

java.util.MissingResourceException: Can't find resource for bundle 
java.util.PropertyResourceBundle, key dispatcher.forwardException
 at java.util.ResourceBundle.getObject(ResourceBundle.java(Compiled 
Code))
 at java.util.ResourceBundle.getString(ResourceBundle.java(Compiled 
Code))
 at 
org.apache.tomcat.util.StringManager.getString(StringManager.java(Compiled 
Code))
 at 
org.apache.tomcat.util.StringManager.getString(StringManager.java:155)
 at 
org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherImpl.java(Compiled
 
Code))
 at 
org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherImpl.java(Compiled
 
Code))
 at 
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java(Compiled
 
Code))
 at
(my code)


-- 
Fergus Gallagher
Orbis
http://www.orbisuk.com/
+44-(0)20-8742 1600




How do I enable JSP for my whole website

2001-07-30 Thread Gevik Babakhani



Hi,
can anyone tell me how and what must i 
do
to enable jsp for my whole website

what should i put in my server.xml and 
httpd.conf

my configuration is

Linux RedHat 7.1
Tomcat 3.23
Apache 1.3.20
SUN JDK 1.3.1

thanx






RE: JSP pages cannot be viewed

2001-07-30 Thread Deacon Marcus

Are you sure you're using JDK instead of JRE ?
Greetings, deacon Marcus

 -Original Message-
 From: Utech - Han Lim [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 30, 2001 9:38 AM
 To: [EMAIL PROTECTED]
 Subject: JSP pages cannot be viewed
 Sensitivity: Personal


 Hi, I just installed the Apache-1.3.20 and Tomcat-3.2.3, and all running
 smoothly until I try to view the .jsp pages at
 http://localhost:8080/ and I
 got this error result :

 Error: 500
 Location: /examples/jsp/num/numguess.jsp
 Internal Servlet Error:

 javax.servlet.ServletException: sun/tools/javac/Main
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
   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(ContextManag
 er.java:79
 7)
   at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
   at
 org.apache.tomcat.service.http.HttpConnectionHandler.processConnec
 tion(HttpC
 onnectionHandler.java:213)
   at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
   at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
   at java.lang.Thread.run(Thread.java:484)

 Root cause:
 java.lang.NoClassDefFoundError: sun/tools/javac/Main
   at
 org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler
 .java:136)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
   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.loadIfNeces
 sary(JspSe
 rvlet.java:258)
   at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Jsp
 Servlet.ja
 va:268)
   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(ContextManag
 er.java:79
 7)
   at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
   at
 org.apache.tomcat.service.http.HttpConnectionHandler.processConnec
 tion(HttpC
 onnectionHandler.java:213)
   at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
   at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
   at java.lang.Thread.run(Thread.java:484)

 What is the causes of this problem? And another problem I got is
 when I try
 to create a helloworld.jsp that contain :

 HTML
 HEAD
 TITLE/TITLE
 META name=description content=
 META name=keywords content=
 META name=generator content=CuteHTML
 /HEAD
 BODY BGCOLOR=#FF TEXT=#00 LINK=#FF VLINK=#800080
 h1Hello World - HTML .../h1
 h1% out.println(Hello World - JSP ...); %/h1
 /BODY
 /HTML

 And I got error when view this page in browser :

 2001-07-30 02:50:56 - Ctx( /examples ): 404 R( /examples +
 /jsp/helloworld.jsp + null) JSP file not found

 Any help and suggestion will be appreciated. Thanks


 Han Lin
 System Consultant
 Unidux Technologies Pte Ltd
 (subsidiary of the public-listed Unidux Electronics Ltd)
 Tel : (65) 293 4797
 Fax : (65) 293 4920
 Email : [EMAIL PROTECTED]






Where's Thread Pool in Tomcat 3.3

2001-07-30 Thread harri.paivaniemi

Hello,

Is the thread pool enabled by default in Tomcat 3.3? Where can I enable it,
if it's no? I can't find the right place to put PoolTcpConnector-
definition in server.xml, which was the case in 3.2- version.

Thanks.

Harry





RE: the trailing slash bug in 3.3- anyone have a fix?

2001-07-30 Thread Ignacio J. Ortega

Figured the problem and the solution , yes .., and it's on the
mod_jk.conf file, autogenerated by TC33 b1, add a JKMount /webapp
ajp13 in addtion to what is found there after autogeneration for a
webapp context.. it seems the problem is auto generation.. not the
StaticInterceptor ( the piece that puts the directory listing in html to
show you up )..



Saludos ,
Ignacio J. Ortega


 -Mensaje original-
 De: Vernon, Clayton [mailto:[EMAIL PROTECTED]]
 Enviado el: lunes 30 de julio de 2001 4:01
 Para: [EMAIL PROTECTED]
 Asunto: the trailing slash bug in 3.3- anyone have a fix?
 
 
 i'm frustrated by a bug that has appeared in tomcat 3.3 (beta 1) where
 tomcat's Up to: link does not postpend the trailing slash (eg,
 navigate up to /Examples in the examples tree). has anyone 
 figured out
 how to fix this? 
 
 
 **
 This e-mail is the property of Enron Corp. and/or its 
 relevant affiliate and may contain confidential and 
 privileged material for the sole use of the intended 
 recipient (s). Any review, use, distribution or disclosure by 
 others is strictly prohibited. If you are not the intended 
 recipient (or authorized to receive for the recipient), 
 please contact the sender or reply to Enron Corp. at 
 [EMAIL PROTECTED] and delete all 
 copies of the message. This e-mail (and any attachments 
 hereto) are not intended to be an offer (or an acceptance) 
 and do not create or evidence a binding and enforceable 
 contract between Enron Corp. (or any of its affiliates) and 
 the intended recipient or any other party, and may not be 
 relied on by anyone as the basis of a contract by estoppel or 
 otherwise. Thank you. 
 **
 

 application/ms-tnef


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

2001-07-30 Thread Kaneda K

At 07:57 30/07/2001 +0400, you wrote:
[X] +1 - Plain Text only. Strip HTML on the mailing list.
[ ]  0 - I don't give a damn shit.
[ ] -1 - You mad? I love HTML in messages and want to keep using it.
idem




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

2001-07-30 Thread Stuart Thomson

+1



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

2001-07-30 Thread Matt Dilley


 [X] +1 - Plain Text only. Strip HTML on the mailing list.
 [ ]  0 - I don't give a damn shit.
 [ ] -1 - You mad? I love HTML in messages and want to keep using it.

Could I suggest that if people want to post HTML, they could do so in an
attachment?
That way maybe it should keep everyone happy

Thanks

Matt




RE: JSP pages cannot be viewed

2001-07-30 Thread Han Lin

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

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

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

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

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

How can I set the JRE path?



Thanks for help and suggestion.

regards,
Han Lin




RE: JSP pages cannot be viewed

2001-07-30 Thread Emir Alikadic (ADNOC IST)



 -Original Message-
 From: Han Lin [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 31, 2001 1:35 AM
 To: [EMAIL PROTECTED]
 Subject: RE: JSP pages cannot be viewed
 Sensitivity: Personal

[SNIP]

 
 
 And according to Emir Alikadic's recommended website
 http://marc.theaimsgroup.com/?l=tomcat-userm=97870338519857w=2, I'm
 not understand this statement :
 
 /* One word of caution though: on a windows system, even if you
 installed
 the development kit, a JRE is installed as well.  Make sure 
 you set your
 JAVA_HOME environment variable to correct one.
 (On my system the JDK is on c:\java\jdk1.3 and the JRE on c:\program
 files\JavaSoft\JRE\1.3) */
 
 How can I set the JRE path?

The idea is that you have to have the full J2SE SDK (formerly JDK) and not
just the runtime (JRE).  If you're sure you've downloaded/installed full
version of J2SE, then you should have anything to worry about (of course,
JAVA_HOME has to point to the installation directory, which you seem to have
done).

 
 
 
 Thanks for help and suggestion.
 
 regards,
 Han Lin

Regards,



Emir.


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



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

2001-07-30 Thread Andrew Inggs

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

+1

-- Andrew



Re: .htm problem

2001-07-30 Thread Andrew Robson

On Mon, 30 Jul 2001, you wrote:
 
 I have a web site to which a lot of cross-links have been built up over time.  
Inevitably the links are to pages with names like index.htm.  I would like to change 
these to jsp pages, but of course I can't change the name without breaking the link 
(and losing traffic).  
 
 Any ideas how I can put jsp functionality on a jsp page (I already have Tomcat 
serving out the .htm pages and I have tried simply using an htm page like a jsp page, 
but it doesn't work)?
 
 Many thanks for any help.
 
 Mark
 

Mark,
  All I can suggest is the obvious. Write a program to do a global search and
replace (if you are on Linux a little sed script should do the trick). Put in
your index.jsp, run your program to change all references in your html from 
index.htm to index.jsp, test your links and then archive your index.htm page. 

andrew




Netscape Enterprise server 3.0 and Tomcat

2001-07-30 Thread César Martínez Cabanas



Hi users, 

 Can i use 
tomcat with Netscape enterprise server 3.0 to load servlets and 
JSP???

 How can i do it 
??



RE: .htm problem

2001-07-30 Thread César Martínez Cabanas

you can use a javascript or a meta that redirect de index.html to index.jsp


- Original Message -
From: Andrew Robson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 12:06 PM
Subject: Re: .htm problem


 On Mon, 30 Jul 2001, you wrote:
 
  I have a web site to which a lot of cross-links have been built up over
time.  Inevitably the links are to pages with names like index.htm.  I would
like to change these to jsp pages, but of course I can't change the name
without breaking the link (and losing traffic).
 
  Any ideas how I can put jsp functionality on a jsp page (I already have
Tomcat serving out the .htm pages and I have tried simply using an htm page
like a jsp page, but it doesn't work)?
 
  Many thanks for any help.
 
  Mark
 

 Mark,
   All I can suggest is the obvious. Write a program to do a global search
and
 replace (if you are on Linux a little sed script should do the trick). Put
in
 your index.jsp, run your program to change all references in your html
from
 index.htm to index.jsp, test your links and then archive your index.htm
page.

 andrew





RE: JSP pages cannot be viewed

2001-07-30 Thread AN Sathe

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


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


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

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

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

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

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

How can I set the JRE path?



Thanks for help and suggestion.

regards,
Han Lin





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

2001-07-30 Thread Michael Weissenbacher

 [X] +1 - Plain Text only. Strip HTML on the mailing list.
 [ ]  0 - I don't give a damn shit.
 [ ] -1 - You mad? I love HTML in messages and want to keep using it.

html mail should be filtered! a footer with links to details about
subscribing/unsubscribing and the faq should be attached to every mail. and
there should be better filters against spam!




Re: .htm problem

2001-07-30 Thread Mark Muffett

Thanks, but I don't think it will work for my purposes - I want to log the
refering site and I think I'll lose the info if I do that.

Regards

Mark

- Original Message -
From: César Martínez Cabanas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 11:21 AM
Subject: RE: .htm problem


 you can use a javascript or a meta that redirect de index.html to
index.jsp


 - Original Message -
 From: Andrew Robson [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, July 30, 2001 12:06 PM
 Subject: Re: .htm problem


  On Mon, 30 Jul 2001, you wrote:
  
   I have a web site to which a lot of cross-links have been built up
over
 time.  Inevitably the links are to pages with names like index.htm.  I
would
 like to change these to jsp pages, but of course I can't change the name
 without breaking the link (and losing traffic).
  
   Any ideas how I can put jsp functionality on a jsp page (I already
have
 Tomcat serving out the .htm pages and I have tried simply using an htm
page
 like a jsp page, but it doesn't work)?
  
   Many thanks for any help.
  
   Mark
  
 
  Mark,
All I can suggest is the obvious. Write a program to do a global
search
 and
  replace (if you are on Linux a little sed script should do the trick).
Put
 in
  your index.jsp, run your program to change all references in your html
 from
  index.htm to index.jsp, test your links and then archive your index.htm
 page.
 
  andrew
 





Re: .htm problem

2001-07-30 Thread harri.paivaniemi


Just start using some good website editor (Dreamweaver 4). Make a new site
there for your content and let Dreamweaver examine links and change
filenames.

Of course world is full of different kind of sed/awk/vi- tricks, but in
serious website maintenance you really should use an editor.

-Harry


  
Mark 
Muffett To:  
markm@its-ax[EMAIL PROTECTED] 
iom.com cc:  
 Subject: Re: .htm problem
30.07.2001
14:04 
Please
respond to
tomcat-user   
  
  




Thanks, but I don't think it will work for my purposes - I want to log the
refering site and I think I'll lose the info if I do that.

Regards

Mark

- Original Message -
From: César Martínez Cabanas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 11:21 AM
Subject: RE: .htm problem


 you can use a javascript or a meta that redirect de index.html to
index.jsp


 - Original Message -
 From: Andrew Robson [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, July 30, 2001 12:06 PM
 Subject: Re: .htm problem


  On Mon, 30 Jul 2001, you wrote:
  
   I have a web site to which a lot of cross-links have been built up
over
 time.  Inevitably the links are to pages with names like index.htm.  I
would
 like to change these to jsp pages, but of course I can't change the name
 without breaking the link (and losing traffic).
  
   Any ideas how I can put jsp functionality on a jsp page (I already
have
 Tomcat serving out the .htm pages and I have tried simply using an htm
page
 like a jsp page, but it doesn't work)?
  
   Many thanks for any help.
  
   Mark
  
 
  Mark,
All I can suggest is the obvious. Write a program to do a global
search
 and
  replace (if you are on Linux a little sed script should do the trick).
Put
 in
  your index.jsp, run your program to change all references in your html
 from
  index.htm to index.jsp, test your links and then archive your index.htm
 page.
 
  andrew
 








RE: .htm problem

2001-07-30 Thread César Martínez Cabanas

sorry i dont undertand english well.


if you can explain me it with more details i can help you

i'm spanish

- Original Message -
From: César Martínez Cabanas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 12:21 PM
Subject: RE: .htm problem


 you can use a javascript or a meta that redirect de index.html to
index.jsp


 - Original Message -
 From: Andrew Robson [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, July 30, 2001 12:06 PM
 Subject: Re: .htm problem


  On Mon, 30 Jul 2001, you wrote:
  
   I have a web site to which a lot of cross-links have been built up
over
 time.  Inevitably the links are to pages with names like index.htm.  I
would
 like to change these to jsp pages, but of course I can't change the name
 without breaking the link (and losing traffic).
  
   Any ideas how I can put jsp functionality on a jsp page (I already
have
 Tomcat serving out the .htm pages and I have tried simply using an htm
page
 like a jsp page, but it doesn't work)?
  
   Many thanks for any help.
  
   Mark
  
 
  Mark,
All I can suggest is the obvious. Write a program to do a global
search
 and
  replace (if you are on Linux a little sed script should do the trick).
Put
 in
  your index.jsp, run your program to change all references in your html
 from
  index.htm to index.jsp, test your links and then archive your index.htm
 page.
 
  andrew
 





RE: apache-tomcat

2001-07-30 Thread Michael Wentzel

 can anybody please tell me how to ascertain that my apache is 
 talking to my
 tomcat ?
 i am using win NT 4.0
tomcat 3.2.2
apache 1.3.11

Pretty easy way is if your jsp's aren't coming up correctly when
accessing through apache...

1. Test apache alone(i.e. static content stuff not served by tomcat)
2. Test tomcat alone(i.e. direct access using specifying tomcats port in
url)

If both work the problem is with your config of the connections.
If either or both fail then you've got some other problems.


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com



Re: .htm problem

2001-07-30 Thread Mark Muffett

No good - the links are from the outside world and I have no control over
them.

Mark

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 12:20 PM
Subject: Re: .htm problem



 Just start using some good website editor (Dreamweaver 4). Make a new site
 there for your content and let Dreamweaver examine links and change
 filenames.

 Of course world is full of different kind of sed/awk/vi- tricks, but in
 serious website maintenance you really should use an editor.

 -Harry



 Mark
 Muffett To:
 markm@its-ax[EMAIL PROTECTED]
 iom.com cc:
  Subject: Re: .htm problem
 30.07.2001
 14:04
 Please
 respond to
 tomcat-user






 Thanks, but I don't think it will work for my purposes - I want to log the
 refering site and I think I'll lose the info if I do that.

 Regards

 Mark

 - Original Message -
 From: César Martínez Cabanas [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Monday, July 30, 2001 11:21 AM
 Subject: RE: .htm problem


  you can use a javascript or a meta that redirect de index.html to
 index.jsp
 
 
  - Original Message -
  From: Andrew Robson [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, July 30, 2001 12:06 PM
  Subject: Re: .htm problem
 
 
   On Mon, 30 Jul 2001, you wrote:
   
I have a web site to which a lot of cross-links have been built up
 over
  time.  Inevitably the links are to pages with names like index.htm.  I
 would
  like to change these to jsp pages, but of course I can't change the name
  without breaking the link (and losing traffic).
   
Any ideas how I can put jsp functionality on a jsp page (I already
 have
  Tomcat serving out the .htm pages and I have tried simply using an htm
 page
  like a jsp page, but it doesn't work)?
   
Many thanks for any help.
   
Mark
   
  
   Mark,
 All I can suggest is the obvious. Write a program to do a global
 search
  and
   replace (if you are on Linux a little sed script should do the trick).
 Put
  in
   your index.jsp, run your program to change all references in your html
  from
   index.htm to index.jsp, test your links and then archive your
index.htm
  page.
  
   andrew
  
 








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

2001-07-30 Thread Randy Layman

+0



Re: .htm problem

2001-07-30 Thread harri.paivaniemi


Ok,

... but why not just use symbolic links from index.html to index.jsp aso.

-Harry




  
Mark 
Muffett To:  
markm@its-ax[EMAIL PROTECTED] 
iom.com cc:  
 Subject: Re: .htm problem
30.07.2001
14:40 
Please
respond to
tomcat-user   
  
  




No good - the links are from the outside world and I have no control over
them.

Mark

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 12:20 PM
Subject: Re: .htm problem



 Just start using some good website editor (Dreamweaver 4). Make a new
site
 there for your content and let Dreamweaver examine links and change
 filenames.

 Of course world is full of different kind of sed/awk/vi- tricks, but in
 serious website maintenance you really should use an editor.

 -Harry



 Mark
 Muffett To:
 markm@its-ax[EMAIL PROTECTED]
 iom.com cc:
  Subject: Re: .htm problem
 30.07.2001
 14:04
 Please
 respond to
 tomcat-user






 Thanks, but I don't think it will work for my purposes - I want to log
the
 refering site and I think I'll lose the info if I do that.

 Regards

 Mark

 - Original Message -
 From: César Martínez Cabanas [EMAIL PROTECTED]
 To: [EMAIL PROTECTED];
[EMAIL PROTECTED]
 Sent: Monday, July 30, 2001 11:21 AM
 Subject: RE: .htm problem


  you can use a javascript or a meta that redirect de index.html to
 index.jsp
 
 
  - Original Message -
  From: Andrew Robson [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, July 30, 2001 12:06 PM
  Subject: Re: .htm problem
 
 
   On Mon, 30 Jul 2001, you wrote:
   
I have a web site to which a lot of cross-links have been built up
 over
  time.  Inevitably the links are to pages with names like index.htm.  I
 would
  like to change these to jsp pages, but of course I can't change the
name
  without breaking the link (and losing traffic).
   
Any ideas how I can put jsp functionality on a jsp page (I already
 have
  Tomcat serving out the .htm pages and I have tried simply using an htm
 page
  like a jsp page, but it doesn't work)?
   
Many thanks for any help.
   
Mark
   
  
   Mark,
 All I can suggest is the obvious. Write a program to do a global
 search
  and
   replace (if you are on Linux a little sed script should do the
trick).
 Put
  in
   your index.jsp, run your program to change all references in your
html
  from
   index.htm to index.jsp, test your links and then archive your
index.htm
  page.
  
   andrew
  
 











Isapi.log file going too big - how to change it.

2001-07-30 Thread Lim Dara

Dear all,

My isapi.log is now reaching 4MB in just 7 days.  How do I make it switch 
files based on date?

Right now, I can even rename the file or delete it.

Please advise.

Thank you.

Regards,
Dara.

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




Re: .htm problem

2001-07-30 Thread Mark Muffett

Tried it (in fact that's what I'm doing pro temp, but it doesn't function as
I would like).

I have index.htm as a link to index.jsp.

If I directly select index.jsp it works as expected, of course.  If I select
index.htm, the jsp code is not processed (you can see it if you try to view
the source in the browser).

Any ideas?

Mark

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 12:48 PM
Subject: Re: .htm problem



 Ok,

 ... but why not just use symbolic links from index.html to index.jsp aso.

 -Harry





 Mark
 Muffett To:
 markm@its-ax[EMAIL PROTECTED]
 iom.com cc:
  Subject: Re: .htm problem
 30.07.2001
 14:40
 Please
 respond to
 tomcat-user






 No good - the links are from the outside world and I have no control over
 them.

 Mark

 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, July 30, 2001 12:20 PM
 Subject: Re: .htm problem


 
  Just start using some good website editor (Dreamweaver 4). Make a new
 site
  there for your content and let Dreamweaver examine links and change
  filenames.
 
  Of course world is full of different kind of sed/awk/vi- tricks, but in
  serious website maintenance you really should use an editor.
 
  -Harry
 
 
 
  Mark
  Muffett To:
  markm@its-ax
[EMAIL PROTECTED]
  iom.com cc:
   Subject: Re: .htm problem
  30.07.2001
  14:04
  Please
  respond to
  tomcat-user
 
 
 
 
 
 
  Thanks, but I don't think it will work for my purposes - I want to log
 the
  refering site and I think I'll lose the info if I do that.
 
  Regards
 
  Mark
 
  - Original Message -
  From: César Martínez Cabanas [EMAIL PROTECTED]
  To: [EMAIL PROTECTED];
 [EMAIL PROTECTED]
  Sent: Monday, July 30, 2001 11:21 AM
  Subject: RE: .htm problem
 
 
   you can use a javascript or a meta that redirect de index.html to
  index.jsp
  
  
   - Original Message -
   From: Andrew Robson [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Monday, July 30, 2001 12:06 PM
   Subject: Re: .htm problem
  
  
On Mon, 30 Jul 2001, you wrote:

 I have a web site to which a lot of cross-links have been built up
  over
   time.  Inevitably the links are to pages with names like index.htm.  I
  would
   like to change these to jsp pages, but of course I can't change the
 name
   without breaking the link (and losing traffic).

 Any ideas how I can put jsp functionality on a jsp page (I already
  have
   Tomcat serving out the .htm pages and I have tried simply using an htm
  page
   like a jsp page, but it doesn't work)?

 Many thanks for any help.

 Mark

   
Mark,
  All I can suggest is the obvious. Write a program to do a global
  search
   and
replace (if you are on Linux a little sed script should do the
 trick).
  Put
   in
your index.jsp, run your program to change all references in your
 html
   from
index.htm to index.jsp, test your links and then archive your
 index.htm
   page.
   
andrew
   
  
 
 
 
 








RE: .htm problem

2001-07-30 Thread Deacon Marcus

Hi,
Check your web.xml, you have

  !-- The mapping for the JSP servlet --
  !-- Comment this out if you do not want jsp service --
  servlet-mapping
servlet-namejsp/servlet-name
url-pattern*.jsp/url-pattern
  /servlet-mapping

In your global (conf\web.xml) web.xml. You can add similar mapping:

  servlet-mapping
servlet-namejsp/servlet-name
url-pattern*.htm/url-pattern
  /servlet-mapping
  servlet-mapping
servlet-namejsp/servlet-name
url-pattern*.html/url-pattern
  /servlet-mapping

To either conf\web.xml to have it active for every web app or to
WEB-INF\web.xml for specific web apps.

Greetings, deacon Marcus


 -Original Message-
 From: Mark Muffett [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 30, 2001 1:40 PM
 To: [EMAIL PROTECTED]
 Subject: Re: .htm problem


 No good - the links are from the outside world and I have no control over
 them.

 Mark

 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, July 30, 2001 12:20 PM
 Subject: Re: .htm problem


 
  Just start using some good website editor (Dreamweaver 4). Make
 a new site
  there for your content and let Dreamweaver examine links and change
  filenames.
 
  Of course world is full of different kind of sed/awk/vi- tricks, but in
  serious website maintenance you really should use an editor.
 
  -Harry
 
 
 
  Mark
  Muffett To:
  markm@its-ax
 [EMAIL PROTECTED]
  iom.com cc:
   Subject: Re: .htm problem
  30.07.2001
  14:04
  Please
  respond to
  tomcat-user
 
 
 
 
 
 
  Thanks, but I don't think it will work for my purposes - I want
 to log the
  refering site and I think I'll lose the info if I do that.
 
  Regards
 
  Mark
 
  - Original Message -
  From: César Martínez Cabanas [EMAIL PROTECTED]
  To: [EMAIL PROTECTED];
 [EMAIL PROTECTED]
  Sent: Monday, July 30, 2001 11:21 AM
  Subject: RE: .htm problem
 
 
   you can use a javascript or a meta that redirect de index.html to
  index.jsp
  
  
   - Original Message -
   From: Andrew Robson [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Monday, July 30, 2001 12:06 PM
   Subject: Re: .htm problem
  
  
On Mon, 30 Jul 2001, you wrote:

 I have a web site to which a lot of cross-links have been built up
  over
   time.  Inevitably the links are to pages with names like index.htm.  I
  would
   like to change these to jsp pages, but of course I can't
 change the name
   without breaking the link (and losing traffic).

 Any ideas how I can put jsp functionality on a jsp page (I already
  have
   Tomcat serving out the .htm pages and I have tried simply using an htm
  page
   like a jsp page, but it doesn't work)?

 Many thanks for any help.

 Mark

   
Mark,
  All I can suggest is the obvious. Write a program to do a global
  search
   and
replace (if you are on Linux a little sed script should do
 the trick).
  Put
   in
your index.jsp, run your program to change all references
 in your html
   from
index.htm to index.jsp, test your links and then archive your
 index.htm
   page.
   
andrew
   
  
 
 
 
 





RE: .htm problem

2001-07-30 Thread Randy Layman


Why don't you just map the index.htm file to index.jsp?  Craig
posted an example of how to do this over the weekend so you should be able
to find it in the list archives.

Randy

 -Original Message-
 From: Mark Muffett [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 30, 2001 8:05 AM
 To: [EMAIL PROTECTED]
 Subject: Re: .htm problem
 
 
 Tried it (in fact that's what I'm doing pro temp, but it 
 doesn't function as
 I would like).
 
 I have index.htm as a link to index.jsp.
 
 If I directly select index.jsp it works as expected, of 
 course.  If I select
 index.htm, the jsp code is not processed (you can see it if 
 you try to view
 the source in the browser).
 
 Any ideas?
 
 Mark
 
 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, July 30, 2001 12:48 PM
 Subject: Re: .htm problem
 
 
 
  Ok,
 
  ... but why not just use symbolic links from index.html to 
 index.jsp aso.
 
  -Harry
 
 
 
 
 
  Mark
  Muffett To:
  markm@its-ax
 [EMAIL PROTECTED]
  iom.com cc:
   Subject: Re: 
 .htm problem
  30.07.2001
  14:40
  Please
  respond to
  tomcat-user
 
 
 
 
 
 
  No good - the links are from the outside world and I have 
 no control over
  them.
 
  Mark
 
  - Original Message -
  From: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, July 30, 2001 12:20 PM
  Subject: Re: .htm problem
 
 
  
   Just start using some good website editor (Dreamweaver 
 4). Make a new
  site
   there for your content and let Dreamweaver examine links 
 and change
   filenames.
  
   Of course world is full of different kind of sed/awk/vi- 
 tricks, but in
   serious website maintenance you really should use an editor.
  
   -Harry
  
  
  
   Mark
   Muffett To:
   markm@its-ax
 [EMAIL PROTECTED]
   iom.com cc:
Subject: Re: 
 .htm problem
   30.07.2001
   14:04
   Please
   respond to
   tomcat-user
  
  
  
  
  
  
   Thanks, but I don't think it will work for my purposes - 
 I want to log
  the
   refering site and I think I'll lose the info if I do that.
  
   Regards
  
   Mark
  
   - Original Message -
   From: César Martínez Cabanas [EMAIL PROTECTED]
   To: [EMAIL PROTECTED];
  [EMAIL PROTECTED]
   Sent: Monday, July 30, 2001 11:21 AM
   Subject: RE: .htm problem
  
  
you can use a javascript or a meta that redirect de 
 index.html to
   index.jsp
   
   
- Original Message -
From: Andrew Robson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 12:06 PM
Subject: Re: .htm problem
   
   
 On Mon, 30 Jul 2001, you wrote:
 
  I have a web site to which a lot of cross-links 
 have been built up
   over
time.  Inevitably the links are to pages with names 
 like index.htm.  I
   would
like to change these to jsp pages, but of course I 
 can't change the
  name
without breaking the link (and losing traffic).
 
  Any ideas how I can put jsp functionality on a jsp 
 page (I already
   have
Tomcat serving out the .htm pages and I have tried 
 simply using an htm
   page
like a jsp page, but it doesn't work)?
 
  Many thanks for any help.
 
  Mark
 

 Mark,
   All I can suggest is the obvious. Write a program 
 to do a global
   search
and
 replace (if you are on Linux a little sed script should do the
  trick).
   Put
in
 your index.jsp, run your program to change all 
 references in your
  html
from
 index.htm to index.jsp, test your links and then archive your
  index.htm
page.

 andrew

   
  
  
  
  
 
 
 
 
 



Help! Can't install Tomcat

2001-07-30 Thread Hewko, Doug

Help! I'm having problems installing Tomcat 4 on a WinNT 4 machine.

I dloaded the binary code and added my JAVA_HOME (to JRE 1.3.1) and
TOMCAT_HOME paths. I have c:\jdk1.3.1\lib\tools.jar appended to my
CLASSPATH. When I type http://localhost:8080;, I get the Tomcat default
page. When I try to execute a JSP, I get the following error:
A Servlet Exception Has Occurred
Exception Report:
javax.servlet.ServletException: sun/tools/javac/Main
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:464)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)



What am I doing wrong? I am not a system administrator, so please be
patient. I just want to install Tomcat so I can install Cocoon2 and do some
XML programming. Help!



Re: .htm problem

2001-07-30 Thread Harri Päiväniemi

Oh yes,

Jsp- code is not processed, of course.

If you are using Apache, you can resolve that situation with Apache's
redirection. Use redirection with regular expressions, which means that
you use RedirectMatch- tag to redirect for example all /foo/index.html-
requests to foo/index.jsp.

The second and little bit heavier choise is to use mod_rewrite and do the
same.

I think this will work. Situtation is the very same if client just requests
index.jsp directly, because Apache takes the request to index.html and
redirects it without html- parsing to the new location.

-Harry



- Original Message -
From: Mark Muffett [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 3:05 PM
Subject: Re: .htm problem




Tried it (in fact that's what I'm doing pro temp, but it doesn't function
as
I would like).

I have index.htm as a link to index.jsp.

If I directly select index.jsp it works as expected, of course.  If I
select
index.htm, the jsp code is not processed (you can see it if you try to view
the source in the browser).

Any ideas?

Mark

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 12:48 PM
Subject: Re: .htm problem



 Ok,

 ... but why not just use symbolic links from index.html to index.jsp aso.

 -Harry





 Mark
 Muffett To:
 markm@its-ax[EMAIL PROTECTED]
 iom.com cc:
  Subject: Re: .htm problem
 30.07.2001
 14:40
 Please
 respond to
 tomcat-user






 No good - the links are from the outside world and I have no control over
 them.

 Mark

 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, July 30, 2001 12:20 PM
 Subject: Re: .htm problem


 
  Just start using some good website editor (Dreamweaver 4). Make a new
 site
  there for your content and let Dreamweaver examine links and change
  filenames.
 
  Of course world is full of different kind of sed/awk/vi- tricks, but in
  serious website maintenance you really should use an editor.
 
  -Harry
 
 
 
  Mark
  Muffett To:
  markm@its-ax
[EMAIL PROTECTED]
  iom.com cc:
   Subject: Re: .htm problem
  30.07.2001
  14:04
  Please
  respond to
  tomcat-user
 
 
 
 
 
 
  Thanks, but I don't think it will work for my purposes - I want to log
 the
  refering site and I think I'll lose the info if I do that.
 
  Regards
 
  Mark
 
  - Original Message -
  From: César Martínez Cabanas [EMAIL PROTECTED]
  To: [EMAIL PROTECTED];
 [EMAIL PROTECTED]
  Sent: Monday, July 30, 2001 11:21 AM
  Subject: RE: .htm problem
 
 
   you can use a javascript or a meta that redirect de index.html to
  index.jsp
  
  
   - Original Message -
   From: Andrew Robson [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Monday, July 30, 2001 12:06 PM
   Subject: Re: .htm problem
  
  
On Mon, 30 Jul 2001, you wrote:

 I have a web site to which a lot of cross-links have been built
up
  over
   time.  Inevitably the links are to pages with names like index.htm.
I
  would
   like to change these to jsp pages, but of course I can't change the
 name
   without breaking the link (and losing traffic).

 Any ideas how I can put jsp functionality on a jsp page (I
already
  have
   Tomcat serving out the .htm pages and I have tried simply using an
htm
  page
   like a jsp page, but it doesn't work)?

 Many thanks for any help.

 Mark

   
Mark,
  All I can suggest is the obvious. Write a program to do a global
  search
   and
replace (if you are on Linux a little sed script should do the
 trick).
  Put
   in
your index.jsp, run your program to change all references in your
 html
   from
index.htm to index.jsp, test your links and then archive your
 index.htm
   page.
   
andrew
   
  
 
 
 
 









Re: Apxs problem

2001-07-30 Thread vibha . mullick . b


You got to fix apxs script, add -bexpall to the CFG_LDFLAGS_SHLIB entry in the
apxs script. I did this and apxs was fixed.






Mykola A. Nickishov [EMAIL PROTECTED] on 07/28/2001 06:01:10 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Re: Apxs problem


Aaron Cooper [EMAIL PROTECTED] writes:

 I re-installed the apache web server , building it from source.  Now I am
trying to configure tomcat with apache using the mod_jk web adapter.  However,
when I run apxs, it produces the following message:

 gcc -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_CORE
-
 DSHARED_MODULE -I/usr/local/apache/include -I../common -I/opt/java1.2/include
-I
 /opt/java1.2/include/hp-ux -DHPUX11GCC  -c ../common/jk_ajp12_worker.c
 apxs:Break: Command failed with rc=255
 Error with apxs

I found answer in posting by Scott Tatum from April, 25:
You should edit the $APACHE_HOME/bin/apxs file (it's a perl
script). You should see some lines like this after initial comments
are done:

--- before ---
my $CFG_LD_SHLIB  = q();  # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = q(); # substituted via Makefile.tmpl
my $CFG_LIBS_SHLIB= q();# substituted via Makefile.tmpl

--- after ---
my $CFG_LD_SHLIB  = q(gcc);  # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = q(-shared); # substituted via Makefile.tmpl
my $CFG_LIBS_SHLIB= q();# substituted via Makefile.tmpl

In my case this solve the problem :)

--
ICQ #83060237
MAN-UANIC NIK6-RIPE









Re: Netscape Enterprise server 3.0 and Tomcat

2001-07-30 Thread Raphael Kuriyan

As far as I know NES 3.x does not support JSPs by itself like iPlanet 4.x
does. But you could still download tomcat and with a little careful
configuration, you could get almost the same results. see
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-netscape-howto.html

Raphael.

- Original Message -
From: César Martínez Cabanas
To: [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 3:46 PM
Subject: Netscape Enterprise server 3.0 and Tomcat


Hi users,

Can i use tomcat with Netscape enterprise server 3.0 to load servlets
and JSP???

How can i do it ??



Re: Where can i find mod_jserv adapter?

2001-07-30 Thread vibha . mullick . b


download the tomcat source.  mod_jk is more recommended than mod_jserv




Nandhitha J. Jagajeevan [EMAIL PROTECTED] on 07/30/2001 03:14:50 AM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Where can i find mod_jserv adapter?




Hi,
 I would like to download mod_jserv. Where can I find the binary version and/or
source code?

Regards,
Nandhitha











*** HELP *** mySQL connectivity problems

2001-07-30 Thread SIMONIN Alexandre

Hi,

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

When trying to get a connection to the database, I got the following error
(the code is provided below - exact id and password replaced for
confidentiality).

Step 1 : Class.forName(org.gjt.mm.mysql.Driver); OK
Step 2 :
getConnection(jdbc:mysql://sherweb7.sherweb.com:3306/myDatabase?user=myIDp
assword=myPwd); *** FAILURE ***
 SQLException: Cannot connect to MySQL server on
sherweb7.sherweb.com:3306. Is there a MySQL server running on the
machine/port you are
 trying to connect to? (java.security.AccessControlException)
 SQLState: 08S01
 VendorError: 0

Few comments:
1/ the mySQL server's site address is OK (not the localhost)
2/ the mySQL server's port is OK
3/ the table name is OK
4/ the userID is OK
5/ the password is OK
6/ the connection looks fine through phpMyAdmin
7/ I get the same java.security.AccessControlException when doing the same
request without the userID and password
6/ I got a java.net.ConnectException (which seems normal to me) when trying
to call the server as if it was local to my machine, i.e.:
jdbc:mysql:///myDatabase?user=myIDpassword=myPwd

Any suggestion?

The code:

try {
  Class.forName(org.gjt.mm.mysql.Driver);   // this or the
same.newInstance() does the same
  System.out.println(Step1: Class.forName(\org.gjt.mm.mysql.Driver\):
OK);
}
catch (Exception e) {
  System.out.println(Class.forName(\org.gjt.mm.mysql.Driver\): ***
FAILURE ***);
}

Connection myConn = null;

try {
  myConn =
DriverManager.getConnection(jdbc:mysql://sherweb7.sherweb.com:3306/myDataba
se?user=myIDpassword=myPwd);
  System.out.println(Step 2:
getConnection(\jdbc:mysql://sherweb7.sherweb.com:3306/myDatabase?user=myID
password=myPwd\): OK);
}
catch (SQLException e) {
  System.out.println(Step 2:
getConnection(\jdbc:mysql://sherweb7.sherweb.com:3306/myDatabase?user=myID
password=myPwd\): *** FAILURE ***);
 System.out.println( SQLException: +e.getMessage());
 System.out.println( SQLState: +e.getSQLState());
 System.out.println( VendorError: +e.getErrorCode());
}





Re: PWS tomcat problem-UCBUS

2001-07-30 Thread ucbus ucbus


I guess the properties files are messed up. I am attaching again the 
properties files.  Apologize for the inconvinience
Thanks


From: Tim O'Neil [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: PWS tomcat problem-UCBUS
Date: Sat, 28 Jul 2001 10:44:08 -0700

At 07:59 AM 7/28/2001, you wrote:
Could somebody help me on this.
I have IIS and Tomcat on NT4.0 and could configure successfully. Means
that the examples  example is working fine. However when I am trying to
add my MQ wOrkflow application as a web application I am getting the
following error. The web-appliction need to work in separate directory.
ANy help in this regard is higly appreciated

404- page not found and the isapi log says

[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
NULL
parameter
[jk_uri_worker_map.c (185)]: In k_uri_worker_map_t::uri_worker_map_free,
NULL parameters
[jk_isapi_plugin.c (355)]: jk_ws_service_t::write, WriteClient failed
[jk_ajp12_worker.c (601)]: ajpv12_handle_response, error writing back to
server
[jk_isapi_plugin.c (355)]: jk_ws_service_t::write, WriteClient failed
[jk_ajp12_worker.c (601)]: ajpv12_handle_response, error writing back to
server

Could somebody help me
UCBUS

You add a copy of your server.xml and .properties file so we can
see what it's lacking.




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

 tomcat.properties
 workers.properties
 uriworkermap.properties


RE: Help! Can't install Tomcat

2001-07-30 Thread Andrew Inggs

Hewko, Doug wrote:
 I dloaded the binary code and added my JAVA_HOME (to JRE 1.3.1) and
 TOMCAT_HOME paths. I have c:\jdk1.3.1\lib\tools.jar appended to my
 CLASSPATH. When I type http://localhost:8080;, I get the Tomcat default
 page. When I try to execute a JSP, I get the following error:
[...]

Tomcat ignores CLASSPATH (have a look at startup.bat to see what
I mean).  You can either change JAVA_HOME to point to the *JDK*
root directory (recommended), or manually change startup.bat to
include tools.jar in the CLASSPATH.

-- Andrew



RE: Netscape Enterprise server 3.0 and Tomcat

2001-07-30 Thread César Martínez Cabanas

and JRUN can i configure with NES 3.0 ?? do you Know how??
- Original Message -
From: Raphael Kuriyan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 2:29 PM
Subject: Re: Netscape Enterprise server 3.0 and Tomcat


 As far as I know NES 3.x does not support JSPs by itself like iPlanet 4.x
 does. But you could still download tomcat and with a little careful
 configuration, you could get almost the same results. see
 http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-netscape-howto.html

 Raphael.

 - Original Message -
 From: César Martínez Cabanas
 To: [EMAIL PROTECTED]
 Sent: Monday, July 30, 2001 3:46 PM
 Subject: Netscape Enterprise server 3.0 and Tomcat


 Hi users,

 Can i use tomcat with Netscape enterprise server 3.0 to load servlets
 and JSP???

 How can i do it ??




Re: PWS tomcat problem-UCBUS

2001-07-30 Thread ucbus ucbus

Still it is not right. Good old method. I am cut pasting them. This is first 
message containg tomcat.properties

**
tomcat.properties
###
#Apache JServ Configuration File 
  #
###

 W A R N I N G 

# Unlike normal Java properties, JServ configurations have some important
# extentions:
#
#1) commas are used as token separators
#2) multiple definitions of the same key are concatenated in a
#   comma-separated list.
###

#
# Execution parameters
###

# The Java Virtual Machine interpreter.
# Syntax: wrapper.bin=[filename] (String)
# Note: specify a full path if the interpreter is not visible in your path.
wrapper.bin=@JAVA@

# Arguments passed to Java interpreter (optional)
# Syntax: wrapper.bin.parameters=[parameters] (String)
# Default: NONE

# Apache JServ entry point class (should not be changed)
# Syntax: wrapper.class=[classname] (String)
# Default: org.apache.jserv.JServ

# Arguments passed to main class after the properties filename (not used)
# Syntax: wrapper.class.parameters=[parameters] (String)
# Default: NONE
# Note: currently not used

# PATH environment value passed to the JVM
# Syntax: wrapper.path=[path] (String)
# Default: /bin:/usr/bin:/usr/local/bin for Unix systems
#  c:\(windows-dir);c:\(windows-system-dir) for Win32 systems
# Notes: if more than one line is supplied these will be concatenated using
#: or ; (depending wether Unix or Win32) characters
#Under Win32 (windows-dir) and (windows-system-dir) will be
#automatically evaluated to match your system requirements

# CLASSPATH environment value passed to the JVM
# Syntax: wrapper.classpath=[path] (String)
# Default: NONE (Sun's JDK/JRE already have a default classpath)
# Note: if more than one line is supplied these will be concatenated using
#   : or ; (depending wether Unix or Win32) characters. JVM must be
#   able to find JSDK and JServ classes and any utility classes used by
#   your servlets.
# Note: the classes you want to be automatically reloaded upon modification
#   MUST NOT be in this classpath or the classpath of the shell
#   you start the Apache from.
#
wrapper.classpath=@JSERV_CLASSES@
wrapper.classpath=@JSDK_CLASSES@

# An environment name with value passed to the JVM
# Syntax: wrapper.env=[name]=[value] (String)
# Default: NONE on Unix Systems
#  SystemDrive and SystemRoot with appropriate values on Win32 
systems

# An environment name with value copied from caller to Java Virtual Machine
# Syntax: wrapper.env.copy=[name] (String)
# Default: NONE

# Copies all environment from caller to Java Virtual Machine
# Syntax: wrapper.env.copyall=[true|false] (boolean)
# Default: false

# Protocol used for signal handling
# Syntax: wrapper.protocol=[name] (String)
# Default: ajpv12

#
# General parameters
##

# Set the default IP address or hostname Apache JServ binds (or listens) to.
#
# If you have a machine with multiple IP addresses, this address
# will be the one used. If you set the value to localhost, it
# will be resolved to the IP address configured for the locahost
# on your system (generally this is 127.0.0.1). This feature is so
# that one can have multiple instances of Apache JServ listening on
# the same port number, but different IP addresses on the same machine.
# Use bindaddress=* only if you know exactly what you are doing here,
# as it could let JServ wide open to the internet.
# You must understand that JServ has to answer only to Apache, and should 
not
# be reachable by nobody but mod_jserv. So localhost is usually a
# good option. The second best choice would be an internal network address
# (protected by a firewall) if JServ is running on another machine than 
Apache.
# Ask your network admin.
# * _may_ be used on boxes where some of the clients get connected using
# localhostand others using another IP addr.
#
# Syntax: bindaddress=[ipaddress] or [localhost] or [*]
# Default: localhost
bindaddress=localhost

# Set the port Apache JServ listens to.
# Syntax: port=[1024,65535] (int)
# Default: 8007
port=8007

#
# Servlet Zones parameters
###

# List of servlet zones Apache JServ manages
# Syntax: zones=[servlet zone],[servlet zone]... (Comma separated list of 
String)
# Default: NONE
zones=root

# Configuration file for each servlet zone (one per servlet zone)
# Syntax: [servlet zone name as on the zones list].properties=[full path to 
configFile] (String)
# Default: NONE
# Note: if the file could not be opened, try using absolute paths.
root.properties=@JSERV_CONF@/zone.properties

#
# Thread Pool parameters

Re: PWS tomcat problem-UCBUS

2001-07-30 Thread ucbus ucbus

This is the scond message containg workers.properties and 
uniworkermap.properties
#
# $Header: /home/cvspublic/jakarta-tomcat/src/etc/Attic/workers.properties,v 
1.3.2.2 2000/10/16 01:59:22 larryi Exp $
# $Revision: 1.3.2.2 $
# $Date: 2000/10/16 01:59:22 $
#
#
# workers.properties -
#
# This file provides jk derived plugins with with the needed information to
# connect to the different tomcat workers.
#
# As a general note, the characters $( and ) are used internally to define
# macros. Do not use them in your own configuration!!!
#
# Whenever you see a set of lines such as:
# x=value
# y=$(x)\something
#
# the final value for y will be value\something
#
# Normaly all you will need to modify is the first properties, i.e.
# workers.tomcat_home, workers.java_home and ps. Most of the configuration
# is derived from these.
#
# When you are done updating workers.tomcat_home, workers.java_home and ps
# you should have 3 workers configured:
#
# - An ajp12 worker that connects to localhost:8007
# - An ajp13 worker that connects to localhost:8009
# - A jni inprocess worker.
# - A load balancer worker
#
# However by default the plugins will only use the ajp12 worker. To have
# the plugins use other workers you should modify the worker.list property.
#
#

#
# workers.tomcat_home should point to the location where you
# installed tomcat. This is where you have your conf, webapps and lib
# directories.
#
# workers.tomcat_home=c:\jakarta-tomcat
workers.tomcat_home=c:\jakarta-tomcat-3.2.3

#
# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
# workers.java_home=c:\jdk1.2.2
workers.java_home=c:\jdk1.3.1

#
# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
#
ps=\
# ps=/

#
#-- ADVANCED MODE 
#-
#

#
#-- DEFAULT worket list --
#-
#
#
# The workers that your plugins should create and work with
#
worker.list=ajp12, ajp13

#
#-- DEFAULT ajp12 WORKER DEFINITION --
#-
#

#
# Defining a worker named ajp12 and of type ajp12
# Note that the name and the type do not have to match.
#
worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#   lbfactor must be  0
#   Low lbfactor means less work done by the worker.
worker.ajp12.lbfactor=1

#
#-- DEFAULT ajp13 WORKER DEFINITION --
#-
#

#
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#   lbfactor must be  0
#   Low lbfactor means less work done by the worker.
worker.ajp13.lbfactor=1

#
# Specify the size of the open connection cache.
#worker.ajp13.cachesize

#
#-- DEFAULT LOAD BALANCER WORKER DEFINITION --
#-
#

#
# The loadbalancer (type lb) workers perform wighted round-robin
# load balancing with sticky sessions.
# Note:
#   If a worker dies, the load balancer will check its state
#once in a while. Until then all work is redirected to peer
#workers.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp12, ajp13


#
#-- DEFAULT JNI WORKER DEFINITION-
#-
#

#
# Defining a worker named inprocess and of type jni
# Note that the name and the type do not have to match.
#
worker.inprocess.type=jni

#
#-- CLASSPATH DEFINITION -
#-
#

#
# Additional class path components.
#
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)classes

#
# The XML parser provided with Tomcat
#
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)jaxp.jar
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)parser.jar

#
# Tomcat's implementation
#
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)jasper.jar
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)servlet.jar
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)webserver.jar

#
# Javac as available from Java2SE
#
worker.inprocess.class_path=$(workers.java_home)$(ps)lib$(ps)tools.jar

#
# Setting the command line for tomcat
# Note: The cmd_line 

End of the adventure?

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

Static 4 Apache, Dynamic 4 Tomcat / mod_rewrite ?!? / POST form

--- THE INTRODUCTION --
Hem first : +1 ;)

--- THE ADVENTURE CONTINUES ---
Well, It's finally working 
Yes my appli on linux + tomcat + mod_jk !!!
The problem... well hemm...
In fact I'm working under NT and testing under linux,
and the fact is that my web-inf under NT was web-inf under Linux
... not WEB-INF how frustrating isn't it.

--- THE PROBLEM ---
So now It's working but I've got one problem:

I use the mod_rewrite module to protect some directories, to
let apache manage static files and...to rewrite somr url...

(I access to my servlet via http://lol.fivia.com/lol/AdFront)

--- PART OF MOD_JK.CONF ---
Here they are (explained too):

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

-2- RewriteEngine on
-3- RewriteLog /usr/local/tomcat/log/lol_rewrite.log
-4- RewriteLogLevel 9

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

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

--- THE EXPLANATIONS ---
-1- So when you enter http://lol.fivia.com/ + [Enter] the url
becomes http://lol.fivia.com/index.html (default page)
then http://lol.fivia.com/start/index.html

-2- mod_rewrite enabled
-3- logfile for mod_rewrite
-4- log level : to the maximum

-5- First condition of the first rule (conditions come before rules)
flag : NC = no case
-6- First rule: if my url begins with /servlet/ + 0 or any characters and
the 1st condition is true () the url becomes /lol/ + 0 or any
characters.
then because of the flag PT (Pass Through), the result of the rewrite
rule
go to the next rule...

-7- 1st condition of 2nd rule (no case)
-8- 1st condition of 2nd rule (no case)
-9- 1st condition of 2nd rule (no case)
-10- 1st condition of 2nd rule (no case)
-11- 1st condition of 2nd rule
-12- 2nd rule: if my url begins with a / + 0 or any characters (path
through + query string append)
 and (1st condition) it does NOT begin with /lol
 and (2nd condition) it does NOT begin with /Image
 and (3rd condition) it does NOT begin with /Elemtech
 and (4th condition) it does NOT begin with /Erreur
 and (5th condition) it is NOT build with 2 '/' then
 the url becomes /lol/AdFront?access=/ + url of the begining

 example: http://lol.fivia.com/start/index.html becomes
  http://lol.fivia.com/lol/AdFront?access=/start/index.html

--- THE RESULTS ---
So it does NOT work :-( (it works with JServ). I've read some faqs and as it
says,
I tried to whange [PT] to [R] (redirect) and it works!!!
BUT NOT when I submit a post form!!!

--- THE QUESTIONS ---
So here are my questions:

-1- Is there any bug whith POST forms?
-2- Can these rules be changed with servlet-aliasing and how?
-3- Should I program my own Invoker and if yes, which one would I replace?
-4- Can you give me your comments?

--- THE SIGNATURE ---
Loïc Lefèvre

--- THE BOTTOM OF THE WINDOW ---




Re: PWS tomcat problem-UCBUS

2001-07-30 Thread ucbus ucbus


This contains the webclient and web.xml which are specific  to the 
application
*
webclient.properties
***
#*BEGIN CMVC *
#**
#*
#*  Workfile: WebClient/WebClient.properties, v3-java, fmv3
#*  Last update: 01/02/12 13:58:59
#*  SCCS path, id: /home/flowmark/vc/0/3/3/1/s.44 1.7
#*
#**
#*END CMVC *
#*BEGIN COPYRIGHT *
#**
#
#   Licensed Materials - Property of IBM
#   5697-FM3 5655-A96
#   (C) Copyright IBM Corp. 1999, 2001
#   US Government Users Restricted Rights - Use, duplication or
#   disclosure restricted by GSA ADP Schedule Contract
#   with IBM Corp.
#
#**
#*END COPYRIGHT *

# 
=
# Settings for com.ibm.workflow.servlet.client.Main
[Servlet]

# Name of the MQSeries Workflow Domain represented by the Java Agent.
# This property is the name used by the Agent to publish its
# identity. For LOC_LOCATOR you can choose any name.

AgentName=MQWFAGENT

# For the Web Client the usual setting is LOC_LOCATOR - unless there is
# absolutely no chance of setting up an MQSeries Workflow client on the same
# machine as the webserver.
# Alternatively, you can set the configuration ID to be used. If this 
setting
# is present, the locator policy setting will be forced to LOC_LOCATOR.

#AgentLocator=JNDI_LOCATOR
AgentLocator=LOC_LOCATOR
AgentConfiguration=FMC1

# The factory to be used for the initial naming context and the URL
# where Java Agent is bound. These settings are only used when the JNDI
# locator policy is active.

#AgentNamingFactory=com.sun.jndi.cosnaming.CNCtxFactory
#AgentNamingFactory=
#AgentProviderURL=

# This setting changes the behaviour of the servlet when the destroy method
# of the servlet is called. If set to 'true' the servlet logs off all 
currently
# logged on users.
# Destroy is called when either a new version of the servlet is copied into
# the servlet directory or the timeout (a webserver property) has been 
reached.
# The default for this setting is 'true' and should not be changed.

#LogoffOnDestroy=true

# Logging can be enabled or disabled with the following setting. If logfile
# is set to a filename (including path) the logfile will be written into 
this
# file. If Logfile is not set, logging will be turned off.
# Note that you should use only forward slashes when specifying the path 
even
# on non-Unix platforms.

#Logfile=e:/fmcwinnt/cfgs/fmc/log/servlet.log
Logfile=C:/Program Files/MQSeries Workflow/cfgs/fmc1/log/servlet.log

# The next two properties allow to customize the date/time format used when
# the {_Date_} and {_Time_} place holders are substituted. These settings 
are also used
# by the RequestContext.toString( java.util.Calendar ) method which is 
called by the
# DefaultViewer. For valid formats see the documentation of the Java Class
# java.text.SimpleDateFormat.

#DateFormat=dd.MM.
#TimeFormat=HH:mm:ss

# This setting specifies a Java class that can be used to add new commands
# to the servlet and to extend existing commands of the servlet. This class
# must implement the com.ibm.workflow.servlet.client.CommandHandler 
interface.

#CommandHandler=com.ibm.workflow.servlet.sample.CommandHandlerAdapter

# This setting specifies a Java class that is used to create the response
# pages for the commands handled by the Web Client.

#DefaultViewer=com.ibm.workflow.servlet.client.DefaultViewer

# JSPViewer uses JSPs instead of HTML template files

#DefaultViewer=com.ibm.workflow.servlet.client.JSPViewer
DefaultViewer=com.ibm.workflow.servlet.client.JSPViewer
# InternetConnectionViewer mimics the look  feel of the old internet
# connection for IBM FlowMark

#DefaultViewer=com.ibm.workflow.servlet.sample.InternetConnectionViewer

# The following settings are used to specify the MQSeries Workflow 
connection
# that is used by the servlet to start processes standalone without explicit
# logon to MQSeries Workflow. This service can be used from a web page to
# start service processes that are then executed inside a company. No 
separate
# logon is needed for that. When the settings are not present the default
# values are 'STARTER' (UserID), 'PASSWORD' (Password),
# '' (Systemgroup), '' (System).
# The system group and system can also be transferred as hidden fields
# in the data entry form.

#StarterUserID=STARTER
#StarterPassword=password
#StarterSystemGroup=FMCGRP
#StarterSystem=FMCSYS

StarterUserID=STARTER
StarterPassword=password
StarterSystemGroup=FMCGRP1
StarterSystem=FMCSYS1

# 
=
# Settings for the com.ibm.workflow.servlet.sample.CommandHandlerAdapter
[CommandHandlerAdapter]

# MonitorHandler has been integrated into 

Thanks! [WAS] RE: Help! Can't install Tomcat

2001-07-30 Thread Hewko, Doug

Andrew and Raphale,

Thanks for the help! I changed my JAVA_HOME from c:\jdk1.3.1\lib to
c:\jdk1.3.1 and now the JS scripts work. So I assume Tomcat is set up
properly...

-Original Message-
From: Andrew Inggs [mailto:[EMAIL PROTECTED]]
Sent: July 30, 2001 8:54 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Help! Can't install Tomcat


Hewko, Doug wrote:
 I dloaded the binary code and added my JAVA_HOME (to JRE 1.3.1) and
 TOMCAT_HOME paths. I have c:\jdk1.3.1\lib\tools.jar appended to my
 CLASSPATH. When I type http://localhost:8080;, I get the Tomcat default
 page. When I try to execute a JSP, I get the following error:
[...]

Tomcat ignores CLASSPATH (have a look at startup.bat to see what
I mean).  You can either change JAVA_HOME to point to the *JDK*
root directory (recommended), or manually change startup.bat to
include tools.jar in the CLASSPATH.

-- Andrew



Re: Netscape Enterprise server 3.0 and Tomcat

2001-07-30 Thread Raphael Kuriyan

Again, as I remember it, JRun automatically configures NES during install.
You'll probably be able to get more info on the allaire site
(www.allaire.com)

But personally, I prefer tomcat. As time goes by, you'll probably find that
you're more comfortable working with tomcat ;-)

- Original Message -
From: César Martínez Cabanas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 6:23 PM
Subject: RE: Netscape Enterprise server 3.0 and Tomcat


and JRUN can i configure with NES 3.0 ?? do you Know how??




AW: End of the adventure?

2001-07-30 Thread Ralph Einfeldt

AFAIK you can't redirect post request. Keep in mind that
redirection is an action performed by the client.

Excerpt from http://www.faqs.org/rfcs/rfc1945.html:

   If the 301 status code is received in response to a request using
   the POST method, the user agent must not automatically redirect the
   request unless it can be confirmed by the user, since this might
   change the conditions under which the request was issued.

   Note: When automatically redirecting a POST request after
   receiving a 301 status code, some existing user agents will
   erroneously change it into a GET request.

 -Ursprüngliche Nachricht-
 Von: Loïc Lefèvre [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 30. Juli 2001 14:57
 An: Mailing List Tomcat
 Betreff: End of the adventure?

-1- Is there any bug whith POST forms?

--- THE SIGNATURE ---
Loïc Lefèvre

--- THE BOTTOM OF THE WINDOW ---




Re: .htm problem

2001-07-30 Thread Richard Draucker

I don't work with .jsp files (servlets w/xslt for me, thanks), can you alias 
the .jsp files in your web.xml file. No?


On Monday 30 July 2001 04:00 am, you wrote:
 I have a web site to which a lot of cross-links have been built up over
 time.  Inevitably the links are to pages with names like index.htm.  I
 would like to change these to jsp pages, but of course I can't change the
 name without breaking the link (and losing traffic).

 Any ideas how I can put jsp functionality on a jsp page (I already have
 Tomcat serving out the .htm pages and I have tried simply using an htm page
 like a jsp page, but it doesn't work)?

 Many thanks for any help.

 Mark


Content-Type: text/html; charset=iso-8859-1; name=Attachment: 1
Content-Transfer-Encoding: quoted-printable
Content-Description: 


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




Preventing System.exit(0)

2001-07-30 Thread Henrik Skafsgaard Larsen

Is it possible to configure Tomcat to avoid shutdown
in case the jsp page contains the code:

% System.exit(0); %

med venlig hilsen / kind regards
Henrik Skafsgaard Larsen






Re: Running servlets in tomcat

2001-07-30 Thread Richard Draucker

The sub-directory in your url is controlled by the mapping in your server.xml 
file under the tomcat/conf directory.  Look in server.xml, near the bottom.  
You must have a mapping (servlet context) setup for satheonline or Tomcat 
won't be able to find the servlet. 
If you have no mappings setup, i.e. you're using the default, just get rid of 
the satheonline in your url and it should find the servlet just fine. 
Also, Tomcat comes with a test context that contains their 
HelloWorldExample.  If that is the example you're trying to run, then just 
replace satheonline part of the url with test



On Monday 30 July 2001 03:31 am, you wrote:
 hi
 I m using tomcat 3.1 but I am unable to run servlets in tomcat

 Is there any configuration problem.

 I have added the following line in my /tomcat/binary/conf/server.xml file
 and created a webapp satheonline  under /tomcat/binary/webapps/

 Context path=/satheonline docBase=webapps/satheonline debug=0
 reloadable=true 
 /Context

 Then I have created the following directory structure under sathonline:

 satheonline(contains all html files )--Meta-inf
  --web-infclasses (contains
 servlet class files)

 Besides the web.xml file in web-inf contains the following

  servlet
 servlet-name
helloworldexample
 /servlet-name
 servlet-class
 HelloWorldExample
 /servlet-class
 /servlet

 The server starts fine. But when I type
 http://localhost:8080/satheonline/servlet/HelloWorldExample it gives a 404
 error

 what is missing ?

 thanks

 amit sathe

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




Sharing a local setup of Tomcat?

2001-07-30 Thread Hewko, Doug

Hi! I managed to install Tomcat 4 on my local pc. In organization's LAN, I
have a unique computer ID (xxx99x999). What would someone have to type to
view the Tomcat default page from another computer?



Re: RONGCHENG BEST CHEER GRANITE CO., LTD

2001-07-30 Thread Pier P. Fumagalli

I don't quite get how this bypassed moderation... Uh... Now that I notice...
Moderation is _OFF_... :(

Pier

Tim O'Neil at [EMAIL PROTECTED] wrote:

 Stripping these out would be good too, but I'm fundamentally
 a realist...
 
 At 07:50 PM 7/29/2001, you wrote:
 ÈôҪȡÏû£¬Çë»Ø¸´:  [EMAIL PROTECTED]
 ZL
 RONGCHENG BEST CHEER GRANITE CO., LTD




Can the latest Tomcat become case-INsensitive (on win32)?

2001-07-30 Thread Dionysios G. Synodinos

Is there a simple way to make the latest version(s) of Tomcat
case-INsensitive in order to work with older case-INsensitive applications
on win32?




Installing Tomcat on HP-UX 10.20

2001-07-30 Thread mysql fan

Hi! 
 
I've got installed an Apache Web Server on HPUX 10.20, and I would like to install 
Tomcat-Jakarta on it. 
 
Does anyone know the steps to be followed? 
 
Regards. 
 
 


___
Get a FREE email address for your WILD SIDE! Choose from over 350
outrageous email addresses at http://www.WildEmail.com



Re: Preventing System.exit(0)

2001-07-30 Thread Tim O'Neil

At 06:24 AM 7/30/2001, you wrote:
Is it possible to configure Tomcat to avoid shutdown
in case the jsp page contains the code:

% System.exit(0); %

Java SERVER pages are server-side code. Why is having
a system object issue an exit method an issue for you?
Do you plan on having your server run black box code?




Re: Installing Tomcat on HP-UX 10.20

2001-07-30 Thread Richard Draucker

Tomcat is based on Java.  
1. Install Java
2. Read the Tomcat FAQ
3. Download Tomcat from Apache.org and follow the install/setup/demo 
instructions.





On Monday 30 July 2001 11:29 am, you wrote:
 Hi!

 I've got installed an Apache Web Server on HPUX 10.20, and I would like to
 install Tomcat-Jakarta on it.

 Does anyone know the steps to be followed?

 Regards.




 ___
 Get a FREE email address for your WILD SIDE! Choose from over 350
 outrageous email addresses at http://www.WildEmail.com

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




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

2001-07-30 Thread Nance, Michael

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

netstat -a shows 

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


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

This is from servlet.xml

servlet
servlet-name
MLBEventInfo
/servlet-name
servlet-class
com.tickets.presentation.mlb.MLBEventInfo
/servlet-class
/servlet

And this is in my web.xml

servlet-name
invoker
/servlet-name
url-pattern
/buy/*
/url-pattern
/servlet-mapping
servlet-mapping
servlet-name
invoker
/servlet-name
url-pattern
/olympics/*
/url-pattern
/servlet-mapping
servlet-mapping
servlet-name
jsp
/servlet-name
url-pattern
*.jsp
/url-pattern
/servlet-mapping


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


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


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

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

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

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

-- Andrew



Re: Help! Can't install Tomcat

2001-07-30 Thread Richard Draucker

The Tomcat home page comes with links to several example JSP and Servlets.  
Do those work? 

On Monday 30 July 2001 11:03 am, you wrote:
 This may or may not help, but I think you need to append
 c:\jdk1.3.1\jre\bin to your PATH.  It looks like it's missing the Runtime
 Environment.  Just make sure that somewhere in one of the PATHS you have
 the JRE.

 This is what My PATH looks like on a Windows 95 machine With Tomcat
 3.something installed
 PATH=C:\PROGRA~1\PERSON~1;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\WINDOWS\UTILS;C:
\PSM;C:\WNETFIN;C:\JDK13;C:\JDK13\BIN;C:\NOTES;C:\JDK13\JRE\BIN;C:\JAVASOFT\
JRE\BIN;

 Put the JRE in your path and restart Tomcat.
 This may or may not help you specifically, but it can't really hurt to try.

 On Mon, 30 Jul 2001 08:14:08 -0400, [EMAIL PROTECTED] wrote:
   Help! I'm having problems installing Tomcat 4 on a WinNT 4 machine.
 
   I dloaded the binary code and added my JAVA_HOME (to JRE 1.3.1) and
   TOMCAT_HOME paths. I have c:\jdk1.3.1\lib\tools.jar appended to my
   CLASSPATH. When I type http://localhost:8080;, I get the Tomcat default
   page. When I try to execute a JSP, I get the following error:
   A Servlet Exception Has Occurred
   Exception Report:
   javax.servlet.ServletException: sun/tools/javac/Main
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:464)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
 
 
   What am I doing wrong? I am not a system administrator, so please be
   patient. I just want to install Tomcat so I can install Cocoon2 and do

 some

   XML programming. Help!

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

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




Customize Url Rewriting

2001-07-30 Thread Ashish Bajpai

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



TAI

ashish




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

2001-07-30 Thread Nance, Michael

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

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


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

netstat -a shows 

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


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

This is from servlet.xml

servlet
servlet-name
MLBEventInfo
/servlet-name
servlet-class
com.tickets.presentation.mlb.MLBEventInfo
/servlet-class
/servlet

And this is in my web.xml

servlet-name
invoker
/servlet-name
url-pattern
/buy/*
/url-pattern
/servlet-mapping
servlet-mapping
servlet-name
invoker
/servlet-name
url-pattern
/olympics/*
/url-pattern
/servlet-mapping
servlet-mapping
servlet-name
jsp
/servlet-name
url-pattern
*.jsp
/url-pattern
/servlet-mapping


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


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


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

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

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

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

-- Andrew



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

2001-07-30 Thread Hewko, Doug

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



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


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

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


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

netstat -a shows 

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


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

This is from servlet.xml

servlet
servlet-name
MLBEventInfo
/servlet-name
servlet-class
com.tickets.presentation.mlb.MLBEventInfo
/servlet-class
/servlet

And this is in my web.xml

servlet-name
invoker
/servlet-name
url-pattern
/buy/*
/url-pattern
/servlet-mapping
servlet-mapping
servlet-name
invoker
/servlet-name
url-pattern
/olympics/*
/url-pattern
/servlet-mapping
servlet-mapping
servlet-name
jsp
/servlet-name
url-pattern
*.jsp
/url-pattern
/servlet-mapping


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


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


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

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

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

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

-- Andrew



Help: Initializing Tomcat's Redirector

2001-07-30 Thread Felix Guerrero

Hi,

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

Thanks.

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


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




RE: Customize Url Rewriting

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

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

example:

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

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

;-)

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


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



TAI

ashish




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

2001-07-30 Thread Tim O'Neil

At 04:36 AM 7/30/2001, you wrote:
OK, sorry if you feel this is WAY OT.

I am wanting to compile a list of the best one-liner Linux commands out
there.  So all you admins and users out there feel free to send me a copy of
your best one-liner commands with a brief explanation as to what they
accomplish.

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

man: why did you get a divorce?

got a light?

%blow

^How did the sex change^ operation go?




Re: Preventing System.exit(0)

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






RTFM.


Security managers...



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


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


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


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


% System.exit(1); %



/quote




David
:)




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





RE: Customize Url Rewriting

2001-07-30 Thread Ashish Bajpai


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

thanks
ashish


   

Loïc Lefèvre   

llefevre@fivTo: [EMAIL PROTECTED]  

ia.com  cc:   

 Subject: RE: Customize Url Rewriting  

07/30/2001 

11:51 AM   

Please 

respond to 

tomcat-user

   

   





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

example:

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

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

;-)

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


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



TAI

ashish








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

2001-07-30 Thread Charles Williams

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

chuck

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


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

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

 man: why did you get a divorce?

 got a light?

 %blow

 ^How did the sex change^ operation go?





Re: Preventing System.exit(0)

2001-07-30 Thread Tim O'Neil

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

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





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

2001-07-30 Thread Andrew Inggs

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

See below.

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

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

!-- Add a special context for buy since it's not in
 the webapps directory.
--
Context path=/buy
 docBase=SOMEWHERE/buy
 debug=0
 reloadable=true
/Context

Change SOMEWHERE/buy to the full path to buy.

 And this is in my web.xml
 
 servlet-name
 invoker
 /servlet-name
 url-pattern
 /buy/*
 /url-pattern
 /servlet-mapping

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

servlet
servlet-name
MLBEventInfoServlet
/servlet-name
servlet-name
com.tickets.presentation.mlb.MLBEventInfo
/servlet-name
/servlet

servlet-mapping
servlet-name
MLBEventInfoServlet
/servlet-name
url-pattern
MLBEventInfo
/url-pattern
servlet-mapping

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

 servlet-mapping
 servlet-name
 invoker
 /servlet-name
 url-pattern
 /olympics/*
 /url-pattern
 /servlet-mapping
 servlet-mapping
 servlet-name
 jsp
 /servlet-name
 url-pattern
 *.jsp
 /url-pattern
 /servlet-mapping
 
 
 These come from a working JSErv Config (we are converting 
 form JSErv to Mod
 JK)

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

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

-- Andrew



RE: Customize Url Rewriting + QUESTION

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

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

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

Loïc Lefèvre

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



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

thanks
ashish



Loïc Lefèvre
llefevre@fivTo:
[EMAIL PROTECTED]
ia.com  cc:
 Subject: RE: Customize Url
Rewriting
07/30/2001
11:51 AM
Please
respond to
tomcat-user






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

example:

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

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

;-)

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


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



TAI

ashish








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

2001-07-30 Thread Nance, Michael

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

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


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



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


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

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


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

netstat -a shows 

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


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

This is from servlet.xml

servlet
servlet-name
MLBEventInfo
/servlet-name
servlet-class
com.tickets.presentation.mlb.MLBEventInfo
/servlet-class
/servlet

And this is in my web.xml

servlet-name
invoker
/servlet-name
url-pattern
/buy/*
/url-pattern
/servlet-mapping
servlet-mapping
servlet-name
invoker
/servlet-name
url-pattern
/olympics/*
/url-pattern
/servlet-mapping
servlet-mapping
servlet-name
jsp
/servlet-name
url-pattern
*.jsp
/url-pattern
/servlet-mapping


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


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


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

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

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

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

-- Andrew



RE: Customize Url Rewriting + QUESTION

2001-07-30 Thread Ashish Bajpai


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

TAI

ashish


   

Loïc Lefèvre   

llefevre@fivTo: [EMAIL PROTECTED]  

ia.com  cc:   

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

12:13 PM   

Please 

respond to 

tomcat-user

   

   





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

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

Loïc Lefèvre

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



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

thanks
ashish



Loïc Lefèvre
llefevre@fivTo:
[EMAIL PROTECTED]
ia.com  cc:
 Subject: RE: Customize Url
Rewriting
07/30/2001
11:51 AM
Please
respond to
tomcat-user






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

example:

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

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

;-)

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


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



TAI

ashish












Re: Sharing a local setup of Tomcat?

2001-07-30 Thread Richard Draucker

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

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



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

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




Re: Sharing a local setup of Tomcat?

2001-07-30 Thread Jim Seach

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

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

Jim

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


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



Help: HttpFilterProc Problem...

2001-07-30 Thread Felix Guerrero

Hi,

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

Thanks.

Felix.


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


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




RE: Customize Url Rewriting + QUESTION

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

Okay, let's speak ;)

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

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

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

NameVirtualHost 192.1.1.128

VirtualHost 192.1.1.128

ServerName lol.fivia.com

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

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

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

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

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

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

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

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

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

/VirtualHost

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

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

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

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

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

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

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

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

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

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

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

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

Creating object for the application

2001-07-30 Thread Alexis Alarcón Barra

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

Alexis


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




Re: Preventing System.exit(0)

2001-07-30 Thread Pier P. Fumagalli

Henrik Skafsgaard Larsen at [EMAIL PROTECTED] wrote:

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

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

Pier




Upgrade to Tomcat DECREASES Performance?

2001-07-30 Thread Dwight Powell

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

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

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

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

Here's our specs:

SERVER SPECS (average):

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

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

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

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

Thanks to one and all...

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





problem with mod_jk

2001-07-30 Thread Tsinwah Lee

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




Re: Preventing System.exit(0)

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

On Monday 30 July 2001 04:33 pm, you wrote:
 At 06:24 AM 7/30/2001, you wrote:
 Is it possible to configure Tomcat to avoid shutdown
 in case the jsp page contains the code:
 
 % System.exit(0); %

 Java SERVER pages are server-side code. Why is having
 a system object issue an exit method an issue for you?
 Do you plan on having your server run black box code?
Say he invites his friends, the school, whatever, to put servlets/jsp pages
on his server. Its nice to have some security there , to prevent the next 
ass to put in a System.exit(...) and thereby stopping the entire server.
Or it might be that other software needs to be used, and someone put in a 
system.exit there in a try/catch block ( I experienced that..).
You can install a security manager to prevent this, I dont remember excactly 
how i did that, but its pretty easy, and can be found in the book
'Core Java 2 - Advanced Features' I think sun also have some tutorials on 
this. http://java.sun.com
-- 
Nils O. Selåsdal



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

2001-07-30 Thread Craig R. McClanahan

On Mon, 30 Jul 2001, SIMONIN Alexandre wrote:

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

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

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

Craig McClanahan


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




Re: Creating object for the application

2001-07-30 Thread Craig R. McClanahan

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

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

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

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

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

 Alexis
 

Craig McClanahan




Is there a way to get the Doc Root

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



Hello,

This 
may be more of a JSP or Servlet question, but I am sure someone in this group 
would know the answer

I have 
an Web application /Myapp and I have a bunch of jsps in an admin directory. I am 
going to distribute this
in a 
generic war file.


So to 
access my admin index I would do something like http://host/Appname/admin/admin.jsp
The 
problem is I do not know what the end user is going to call the 
application(Appname). So How do I get the Document root.

I can 
do a path = %= request.getRequestURI() % and do some substring 
stuff.
%= 
application.getRealPath("") % doesn't give me what I need. I was 
hoping for an application.getPath("") 

Thanks 
for any Suggestions..

Randy

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


mod_jk.log file sample

2001-07-30 Thread Tsinwah Lee

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





Re: Creating object for the application

2001-07-30 Thread Alexis Alarcón Barra

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

Alexis

Craig R. McClanahan wrote:

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

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

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

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

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

  Alexis
 

 Craig McClanahan


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




Re: Creating object for the application

2001-07-30 Thread Alexis Alarcón Barra

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

Alexis

Craig R. McClanahan wrote:

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

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

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

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

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

  Alexis
 

 Craig McClanahan


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




How to handle this.

2001-07-30 Thread Wang, Jianming

Hi everybody,

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

JW.



RE: Preventing System.exit(0)

2001-07-30 Thread Randy Layman


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

Randy

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



Re: How to handle this.

2001-07-30 Thread Tsinwah Lee

Yo ucan use javaScript to do that.

Wang, Jianming wrote:

 Hi everybody,

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

 JW.




Re: Creating object for the application

2001-07-30 Thread Craig R. McClanahan



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

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

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


 Alexis
 

Craig McClanahan


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




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

2001-07-30 Thread Andrew Inggs

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

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

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

-- Andrew



RE: How to handle this.

2001-07-30 Thread Wang, Jianming

Do you know how?

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


Yo ucan use javaScript to do that.

Wang, Jianming wrote:

 Hi everybody,

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

 JW.



Re: How to handle this.

2001-07-30 Thread Mike Alba

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

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

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


 Do you know how?

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


 Yo ucan use javaScript to do that.

 Wang, Jianming wrote:

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





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

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



Hey 
Alex : 

I've 
got a question about your JNDIRealm stuff...

I'm 
using your SimpleRoleMapper to get started, but I can't get it to work. I 
can't find in your code where a distinguished name (dn) is linked to 
roles. In your translateroles function, I can see how users are assigned 
roles assigned to everybody (*), but I can't find anything like 
(String[])userRoles.get(distinghushedname) as I might expect. All my users 
are reporting only a role of [guest] even though I've carefully matched the dn 
in the rolemapper file to the dn stored by jndirealm.

The 
translateroles code seems to be looking for rolenames as keys in the userroles 
Map : 
 String items[] = 
(String[])userRoles.get(ur);

Shouldn't this be something like : 
 
(String[])userRoles.get(distinghushedname) 

Please 
let me know if I'm looking at this wrong or not.

Thanks...

..Casey

== Casey Bragg - Software Engineer Allegiance Telecom, Inc. Dallas, TX 469-259-2702 - [EMAIL PROTECTED] == 

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

  1   2   >