newbie: Realm

2002-12-06 Thread Manavendra Gupta
Hi,


Like all web applications, I need to provide some kind of session
maintenance. Would the concept of a Realm help in this?

1. Is this the correct application/use of a realm?
2. Is a realm akin to a SSO/LDAP server, where the user's roles and mapping
to actions is stored?
3. How extensible is a realm?

Can someone provide a step-by-step example of how to setup and use a realm?

Manav.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




(apparent) tomcat configuration problem

2002-12-06 Thread Manavendra Gupta
Hi,

tomcat 4.1 starts succesfully, but on shutdown gives the following error:


Uing CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JAVA_HOME:   /usr/local/jdk
PARSE error at line 1 column -1 of /usr/local/tomcat/conf/server.xml
org.xml.sax.SAXParseException: Document root element is missing.
Catalina.stop: org.xml.sax.SAXParseException: Document root element is
missing.
org.xml.sax.SAXParseException: Document root element is missing.
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3170)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:501)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:314)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:253)
at
org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:822)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:683)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
--

Any clues?

Manav.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: newbee , accents

2002-12-06 Thread Luc Santeramo
try to add -Dfile.encoding=iso-8859-1 to your CATALINA_OPTS env

i'm not sure about this one but it has solved some problem with french 
accents on my server.
just try and you'll see


Luc

At 14:43 05/12/2002  -0500, you wrote:
Servlet Specification 2.3
'The default encoding of a response is ISO-8859-1
if none has been specified by the servlet programmer.'

I know that .

But smbdy can explain this ?

c:if test=${empty param.test}
 jsp:forward page=/test.jsp
  jsp:param name=test value=éèêàç/
 /jsp:forward
/c:if
1: c:out value=éèêàç/br
2: c:out value=${param.test}/br

result :

1: éèêàç
2: éèêà ç

thks by advance
__
M

- Original Message -
From: maxime [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, December 05, 2002 10:44 AM
Subject: newbee , accents


Hi

Every time a sentence pass throw a bean
or a jsp:param every accent char (éèêàç)
is replace by a ? or strange char

Please help me to fix that !

Thks



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




JSP compile Error. Tomcat 4.0.4

2002-12-06 Thread Varghese, Sony
Hi, 

My web application works with Tomcat3.3 but not with 4.0.2. I have jdkv1.2.2
installed.
Please could you tell me how to resolve this problem?? The error is as shown
below.

Do reply.

Thanks
Sony .



--
Apache Tomcat/4.0.4-b2 - HTTP Status 500 - Internal Server Error

type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.
exception 
org.apache.jasper.JasperException: Unable to compile class for JSP
/usr/internet/httpd/tomcat/work/Standalone/localhost/cockpit/main_0005fmenu$
jsp.java:6: Class or interface declaration expected.
import javax.servlet.*;
^

/usr/internet/httpd/tomcat/work/Standalone/localhost/cockpit/main_0005fmenu$
jsp.java:12: Superclass org.apache.jsp.HttpJspBase of class
org.apache.jsp.main_0005fmenu$jsp not found.
public class main_0005fmenu$jsp extends HttpJspBase {
^
2 errors

at org.apache.jasper.compiler.Compiler.compile(Compiler.java,
Compiled Code)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java,
Compiled Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java, Compiled Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va, Compiled Code)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java,
Compiled Code)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
Code)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java, Compiled Code)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java, Compiled Code)
--







RE: SEO and servlets

2002-12-06 Thread neal
Craig,

Thanks for the reponse.  I know what you're saying that you wouldn't want to
submit most web app pages, presuming that most of it is form data ... but in
this case I have a bit of content that was placed into dynamic pages because
(a) There is a common naivgation framework that is essentially included, (b)
in the case of the main page there is some 'weekly specials' data that gets
inserted into the content.  The framework I developed presumes XsLT for the
template rather than jsp, which means that I must use a servlet (in this
case with my own extension), and thus the concern.

So that's why I was wondering. I knew about the other issues such s have
params beyond the question mark (they won't be picked up)... again another
reason to use a servlet wherein *.abc would invoke the abc serlet and *
could introspectively obtained as a param .. I thought that might be a way
around it ... but I'm beginning to think perhaps not.  :(

Anyway, thanks for your thoughts.


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 6:55 PM
To: Tomcat Users List
Subject: Re: SEO and servlets




On Wed, 4 Dec 2002, neal wrote:

 Date: Wed, 4 Dec 2002 22:06:53 -0800
 From: neal [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: SEO  and servlets

 I was reading on Google the other day that it supports many of the common
 file types including JSP ... but this led me to wonder if they index
 servlets without file extensions, or how about common frameworks such as
 Struts with the DO extensions.

 Does anyone know how these file types index with Google and other major
 engines?


Different search engines follow different policies -- you'd have to ask
them how their spiders are programmed.  Most of them, probably, omit at
least some of the following types of URLs:
* URLs protected by an authentication constraint
* URLs matching patterns listed in the deny list of your
  robots.txt file
* URLs that have query parameters in them
* URLs that have no-cache headers in the returned content

Personally, I think it's somewhere between misleading and silly to index
pages from a web *applications* (as opposed to web sites)  based on an MVC
framework (like Struts).  Why?  Because the URL that a search engine
spider would submit doesn't necessarily have *anything* to do with the
output that gets rendered.

Consider a very common case where you have a form submit that goes to a
URL ending in .../saveCustomer.do in a Struts app.  If you've made any
errors that get caught by the validation rules, the original input form is
redisplayed.  On the other hand, if you did everything correctly, the next
page in your app's user interaction is displayed (probably a menu or
something).  But the URL is the same!

Which kind of output should a search engine index?

Web applications != Web sites

 Thanks.
 Neal


Craig



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




A dead cat

2002-12-06 Thread Simon Kelly
Hi,

I am currently using tomcat as a standalone server to test some webapps that
I am creating.  I have some experiance with web servers but little or no
experiance with tomcat.  And I have a couple of major problems.

1)  The cat is dead but won't go away!  I have installed tomcat twice now,
the first time I had a conflict within the port addressing for tomcat and my
exist database where both were configured to listen on the same port.  A
school boy error really, but when I killed off tomcat and edited the server
config file to listen on an other port I got Exceptions every time I tried
to restart tomcat.  I uninstalled and then reinstalled tomcat and everything
was working fine for a couple of days.  However! After problem 2 occured the
same situation has come back with tomcat.  The one thing I have noticed
though is that the tomcat.exe in the process list cannot be killed using
task manager.

2)  When tomcat was up and running the second time I managed to get the war
file into the webapps dir and it automatically detected it, created a
directory and deployed.  However, after a while and during one of the
updates to the app, tomcat seemed to jam and would not reload the app.  I
tryed to use the manager, but it would not let me even restart the app.  So,
I removed it from the directory and then restarted tomcat.  This time tomcat
would not even see the file was there and I had to install it using manager.
This worked for the first couple of changes, but then this too failed and
now tomcat will not respond at all.

I am going to unistall and reinstall again, but if anyone knows why this is
going wrong I would be most greatful.

As a side, during the deployment using manager I got the  app in by
declaring the path '/katrin' and then giving the file url
'file:/c:/programme/apache group/tomcat 4.1/webapps/katrin.war'.  This
worked for a couple of times, but then failed.  There are a direct copy of
the last lines I entered.  Is there something I have done wrong in the url,
as it is this error Mallformed url ... that I am getting.

Kindest regards

Simon

Institut fuer
Prozessdatenverarbeitung
und Elektronik,
Forschungszentrum Karlsruhe GmbH,
Postfach 3640,
D-76021 Karlsruhe,
Germany.

Tel: (+49)/7247 82-4042
E-mail : [EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




DataSource problem.

2002-12-06 Thread Manavendra Gupta
Hi,

I am trying to obtain a connection from a DataSource in a test class and
get the following error:

javax.naming.NoInitialContextException: Need to specify class name in
environment or system property, or as an applet parameter, or in an
application resource file:  java.naming.factory.initial
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:640)
at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at tmp.DBTest.init(DBTest.java:15)
at tmp.DBTest.main(DBTest.java:49)

server.xml
==
Context path=/rti docBase=rti debug=4
 reloadable=true
  Logger className=org.apache.catalina.logger.FileLogger
 prefix=rti_log. suffix=.txt
  timestamp=true/
  Resource name=jdbc/rtidb auth=CONTAINER
type=javax.sql.DataSource/
  ResourceParams name=jdbc/rtidb
parameternameuser/namevaluerealtime/value/parameter

parameternamepassword/namevaluerealtime/value/parameter
parameternamedriverClassName/name
 valueoracle.jdbc.driver.OracleDriver/value/parameter
parameternamedriverName/name
 valuejdbc:oracle:thin:@rti:1521:rti/value/parameter
  /ResourceParams
/Context

web.xml (for the context rti)
==
resource-ref
 descriptionOracle Datasource example/description
 res-ref-namejdbc/rtidb/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
/resource-ref

Any idea?

Thanks,
Manav.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: static url routing

2002-12-06 Thread RXZ JLo

--- Noel J. Bergman [EMAIL PROTECTED] wrote:
  my html files have long names like 
  a_b_c_d_xyz213_e_f_g.html,
 a_b_c_d_pqr983_e_f_g.html
 
  is it possible to have urls like
  http://localhost:8080/myapp/html/xyz213
  point to the first file above?
 
 You can use either a Filter, or mod_rewrite in
 Apache httpd.
 

I had a glance at javax.servlet.Filter - with this I
cannot avoid entering a servlet, which will then wont
be 'static' response.


   --- Noel
 

Thanks
rf

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: DataSource problem.

2002-12-06 Thread Manavendra Gupta
Tried the same with a simplistic jsp page:

%@ page import=java.sql.*, javax.sql.*, javax.naming.* %
HTML
BODY
%
out.println(hello);
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env);
DataSource ds = (DataSource) envCtx.lookup(jdbc/rtidb);
Connection con = ds.getConnection();

//DB access code here

%



And this is what i get:

java.lang.NullPointerException
at org.apache.jsp.test$jsp._jspService(test$jsp.java:66)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
at java.lang.Thread.run(Thread.java:536)


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: tomcat + eclipse

2002-12-06 Thread Cédric Viaud
The answer is YESSS :

http://www.sysdeo.com/eclipse/tomcatPlugin.html

And it works fine.

HTH,

   Cédric

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 04, 2002 11:27 AM
Subject: tomcat + eclipse


 Hi

 I'm using Eclipse as my IDE

 is there a way to integrate Tomcat with Eclipse?

 thanx


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: static url routing

2002-12-06 Thread Mike W-M
I assume you've looked through all the elements available to you in web.xml.
(I can't think of any that might help, but I'm no authority!)
One (reasonably simple) solution would be to write yourself a servlet that
performs the mapping for you.  Assuming the root of the path remains
constant for your requests like this, map that to the servlet.
The servlet then has to examine the final part of the URL, lookup against
your mapping-list (which you should really load up from an XML file during
class-load, but you *could* hard code it), and then either redirect or
forward to your required resource.   (Redirect involves an extra round-trip
and will mean that the user sees a URL that ends with the real filename;
forwarding will leave the original URL in place.)

Mike.

- Original Message -
From: RXZ JLo [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, December 06, 2002 9:50 AM
Subject: RE: static url routing



--- Noel J. Bergman [EMAIL PROTECTED] wrote:
  my html files have long names like
  a_b_c_d_xyz213_e_f_g.html,
 a_b_c_d_pqr983_e_f_g.html

  is it possible to have urls like
  http://localhost:8080/myapp/html/xyz213
  point to the first file above?

 You can use either a Filter, or mod_rewrite in
 Apache httpd.


I had a glance at javax.servlet.Filter - with this I
cannot avoid entering a servlet, which will then wont
be 'static' response.


 --- Noel


Thanks
rf

To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




AutoDeploy war file

2002-12-06 Thread David Rayroud
Hi,

First excuse for my poor English.

I will configure Tomcat4 for it deploy automatic *.war file but I wan't
restart the application.

I declare the application like this :

Context
className=org.apache.catalina.core.StandardContext
cachingAllowed=true
charsetMapperClass=org.apache.catalina.util.CharsetMapper
cookies=true
crossContext=false
debug=0
docBase=data_types.war
mapperClass=org.apache.catalina.core.StandardContextMapper
path=/jsp
privileged=false
reloadable=false
swallowOutput=false
useNaming=true
wrapperClass=org.apache.catalina.core.StandardWrapper /

I'm using Tomcat 4.1.12 running on Mitel Networks SME Server 5.6beta7

I develop with CodeChage Studio

Thank you for your help

David Rayroud

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.422 / Virus Database: 237 - Release Date: 20.11.2002



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: JSP compile Error. Tomcat 4.0.4

2002-12-06 Thread Laxmikanth M.S.
u have to add the Context in Server.xml file.
r u in Digital bangalore

Regards
Laxmikanth M S 
Off*  : 91-80-6610330 extn 1256
Res* : 91-80-5267150
http://www.sonata-software.com

 Coming together is the beginning, staying together is progress and working
 together is Success
What lies behind us and what lies before us are tiny matters compared to
what lies within us  - Emerson


 -Original Message-
 From: Varghese, Sony [SMTP:[EMAIL PROTECTED]]
 Sent: Friday, December 06, 2002 2:07 PM
 To:   [EMAIL PROTECTED]
 Subject:  JSP compile Error. Tomcat 4.0.4
 
 Hi, 
 
 My web application works with Tomcat3.3 but not with 4.0.2. I have
 jdkv1.2.2
 installed.
 Please could you tell me how to resolve this problem?? The error is as
 shown
 below.
 
 Do reply.
 
 Thanks
 Sony .
 
 
 
 --
 Apache Tomcat/4.0.4-b2 - HTTP Status 500 - Internal Server Error
 
 type Exception report
 message Internal Server Error
 description The server encountered an internal error (Internal Server
 Error)
 that prevented it from fulfilling this request.
 exception 
 org.apache.jasper.JasperException: Unable to compile class for JSP
 /usr/internet/httpd/tomcat/work/Standalone/localhost/cockpit/main_0005fmen
 u$
 jsp.java:6: Class or interface declaration expected.
 import javax.servlet.*;
 ^
 
 /usr/internet/httpd/tomcat/work/Standalone/localhost/cockpit/main_0005fmen
 u$
 jsp.java:12: Superclass org.apache.jsp.HttpJspBase of class
 org.apache.jsp.main_0005fmenu$jsp not found.
 public class main_0005fmenu$jsp extends HttpJspBase {
 ^
 2 errors
 
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java,
 Compiled Code)
   at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java,
 Compiled Code)
   at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Jsp
 Se
 rvlet.java, Compiled Code)
   at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.
 ja
 va, Compiled Code)
   at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java,
 Compiled Code)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
 Compiled Code)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
 Code)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
 on
 FilterChain.java, Compiled Code)
   at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
 Ch
 ain.java, Compiled Code)
 --
 
 
 
 
*
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




tomcat doesn´t show latin characters when i start the system

2002-12-06 Thread Dionisio Ruiz de Zarate
When i start my linux tomcat doesn'y show latin characters (ó, á, í ...) if
i restart the tomcat service (rctomcat restart) the tomcat shows me well all
characters.
Can anybody says me how can i solve this great, for me, problem?
i am using one SuSE 8.1 linux machine, jdk 1.4.1 and tomcat 4.1.12

thanks



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Configure IIS + Tomcat 4.1.12

2002-12-06 Thread Warner Godfrey
Luca,

I have finally got IIS 5.0 working with Tomcat 4.1.12 using JK2! It was not
an easy task mind you, it seems that v2.0.2 of the isapi_redirector is
completely broken. I tried for about three days, but could not get v2.0.2 of
the ISAPI Filter to successfully load. Try v2.0.1 instead, the pre-built
version can be found at:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.
1/bin/win32/isapi_redirector2.dll, it works for me.

I still have not yet been able to determine how to configure the location of
the log file, and there does not seem to be a default log file written
anywhere in $TOMCAT_HOME/logs either. Can anyone shed any light on this?

You seem to be on track with your configuration. I have included my
properties files and a script that will update the Registry (be sure to
update it with your $TOMCAT_HOME).

Firstly, apply the registry settings in the isapi_redirector.reg file below.
Then you need to add  isapi_redirector2.dll as an ISAPI Filter using the
Internet Services Manager console. Right click on your computer name, select
properties, select WWW Service, go to the ISAPI filters tab, and Add a new
filter. The filter name should be something like 'jakarta' (I don't think it
matters), and the enter the full path to the isapi_redirector.dll for the
Executable. (I have has allot more luck setting the ISAPI filter in the
Master WWW Service, rather than in the Default Web Site)

Once you have completed this setup you _must_ restart the IIS Service by
right clicking on the computer name, and selecting IIS Restart... Once the
service has restarted start the Default Web Site, then check the ISAPI
Filters again to see if the filter loaded correctly (it should have a green
arrow). Once you have a green arrow you should be on your way.

#--
# C:\tomcat\conf\workers2.properties
#--
[channel.socket:localhost:8009]
info=Forwarding over socket connection to local tomcat instance.
host=localhost
port=8009

[ajp13:localhost:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol.
channel=channel.socket:localhost:8009

[uri:/examples/jsp/*.jsp]
info=JSP examples
context=/examples/jsp

#--
# C:\tomcat\conf\jk2.properties
#--
# also empty

#--
# isapi_redirector2.reg
#--
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\2.0]
serverRoot=C:\\tomcat
extensionUri=/jakarta/isapi_redirector2.dll
logLevel=DEBUG
workersFile=C:\\tomcat\\conf\\workers2.properties


Good luck.

Regards,
Warner

-Original Message-
From: Luca Ventura [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 28, 2002 09:29
To: Tomcat Users List
Subject: R: Configure IIS + Tomcat 4.1.12


Thanks but it speaks about JK connector (ISAPI redirector 1.0) and not about
JK2 (Coyote) connector :-(

Best regards,

  Luca

-Messaggio originale-
Da: Panos Konstantinidis [mailto:[EMAIL PROTECTED]]
Inviato: giovedi 28 novembre 2002 15.07
A: Tomcat Users List
Oggetto: Re: Configure IIS + Tomcat 4.1.12


  I found a new URL which deals with Tomcat 4.0.1.

http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/

  It might help.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: tomcat doesn´t show latin characters when i start the system

2002-12-06 Thread Jean-Francois Mach

Sounds like an environment problem. You might want to check the LANG
environment variable. Usually when you start the program manually, LANG is
set in your shell, but not when you start it from cron or when your server
boots up (I had a similar problem and setting LANG solved the problem). Try
to add it to your crontab/export it in your startup script.

Regards,


- Jeff


 -Message d'origine-
 De : Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED]]
 Envoyé : vendredi 6 décembre 2002 12:05
 À : [EMAIL PROTECTED]
 Objet : tomcat doesn´t show latin characters when i start the system


 When i start my linux tomcat doesn'y show latin characters (ó, á,
 í ...) if
 i restart the tomcat service (rctomcat restart) the tomcat shows
 me well all
 characters.
 Can anybody says me how can i solve this great, for me, problem?
 i am using one SuSE 8.1 linux machine, jdk 1.4.1 and tomcat 4.1.12

 thanks



 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




OK to run tomcat as nobody?

2002-12-06 Thread Sanjaya Singharage
This is a follow up to the post why run romcat as root (I meant to say
why run tomcat as nobody).

After reading all the replies. My solution would be to run apache as root
on port 80 and then run tomcat behind the scenes using a connector and
running a user other than root. What I want to know is are there any
security concerns running tomcat as nobody?

Thnak you very much for the previous replies.



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Benchmark results for 4.1.12 vs 4.1.16

2002-12-06 Thread Remy Maucherat
Peter Lin wrote:

today I took the day off, but tomorrow I plan on running more benchmarks. I ran into one weird behavior when I ran the same jmeter test with 10 threads for 5K iterations. Half way through tomcat stopped accepting connections, but was fine. If I wait two minutes, it continue to accept requests.
 
That tells me tomcat is dramatically improved in stability. In the early days of servlet containers, I used to run stress tests until the servers crashed. Back in 99 most of the servlet containers including websphere, jrun and tomcat would crash a couple minutes after it stopped accepting connections. Now tomcat correctly denies connections and performance degrades gracefully.


These days, I'm exclusively (well, almost) working on reliability and 
performance.

Performance is ok now (only remaining are a couple enhancements in 5.0), 
and is a lot easier to improve than reliability. If you have ideas for 
that, let me know.

Remy


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



Where to put JSP files?

2002-12-06 Thread Peter Lee
Where should I put my jsp files? I usually put them above the /web-inf folder, but 
this 
would allow  clients to see the directory listing. Should I use a redirect mapping to 
protect them from being viewed? In which file should I do it?

Thanks

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: tomcat doesn´t show latin characters when i start the system

2002-12-06 Thread Dionisio Ruiz de Zarate
can you say me how and in which file can i make it?
thanks for your answer


- Original Message -
From: Jean-Francois Mach [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, December 06, 2002 12:19 PM
Subject: RE: tomcat doesn´t show latin characters when i start the system



 Sounds like an environment problem. You might want to check the LANG
 environment variable. Usually when you start the program manually, LANG is
 set in your shell, but not when you start it from cron or when your server
 boots up (I had a similar problem and setting LANG solved the problem).
Try
 to add it to your crontab/export it in your startup script.

 Regards,


 - Jeff


  -Message d'origine-
  De : Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED]]
  Envoyé : vendredi 6 décembre 2002 12:05
  À : [EMAIL PROTECTED]
  Objet : tomcat doesn´t show latin characters when i start the system
 
 
  When i start my linux tomcat doesn'y show latin characters (ó, á,
  í ...) if
  i restart the tomcat service (rctomcat restart) the tomcat shows
  me well all
  characters.
  Can anybody says me how can i solve this great, for me, problem?
  i am using one SuSE 8.1 linux machine, jdk 1.4.1 and tomcat 4.1.12
 
  thanks
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 


 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]






--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Where to put JSP files?

2002-12-06 Thread Carl Trusiak
To prevent users from seeing any directory add the
entry 
welcome-file-list
welcome-fileindex.jsp/welcome-file
/welcome-file-list
To your web.xml and in every directory, place a copy
of index.jsp.  It can just be a redirect to your home
page.
--- Peter Lee [EMAIL PROTECTED] wrote:
 Where should I put my jsp files? I usually put them
 above the /web-inf folder, but this 
 would allow  clients to see the directory listing.
 Should I use a redirect mapping to 
 protect them from being viewed? In which file should
 I do it?
 
 Thanks
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Security role name warning

2002-12-06 Thread Peter Lee
I got the following warning. what does it really mean?

WARNING: Security role name specialrole used in an auth-constraint without being 
defined in a security-
role


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: OK to run tomcat as nobody?

2002-12-06 Thread Cees van de Griend
On Friday 06 December 2002 05:27, Sanjaya Singharage wrote:
 This is a follow up to the post why run romcat as root (I meant to say
 why run tomcat as nobody).

 After reading all the replies. My solution would be to run apache as root
 on port 80 and then run tomcat behind the scenes using a connector and
 running a user other than root. What I want to know is are there any
 security concerns running tomcat as nobody?

Nobody should be an account without any files, this is a security issue.
If you do an anonymous FTP login, you should access the system as user nobody.

It's just as easy to create an user named tomcat and have this account as 
owner of all Tomcat files.

 Thnak you very much for the previous replies.

Regards,
Cees.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: OK to run tomcat as nobody?

2002-12-06 Thread Ralph Einfeldt
I prefer to use a didicated user (like tomcat)
to give him the just the rights that are needed
to run tomcat and the application.

If there is more than one application using the 
user nobody this user starts to get to much rights 
in mosts cases. 

Explanation:

To run an application under a user, the user must 
have the right to read (and most times also write)
some files. Guess you have applaction a1 and a2 and 
each runs under nobody. If a1 has an error that 
allows unintended read or write access, it's possible 
to read or write data that belongs to application a2.

So i prefer to have unique user's for given 
services.

 -Original Message-
 From: Sanjaya Singharage [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 06, 2002 5:28 AM
 To: [EMAIL PROTECTED]
 Subject: OK to run tomcat as nobody?
 
 
 This is a follow up to the post why run romcat as root (I 
 meant to say
 why run tomcat as nobody).
 
 After reading all the replies. My solution would be to run 
 apache as root
 on port 80 and then run tomcat behind the scenes using a connector and
 running a user other than root. What I want to know is are there any
 security concerns running tomcat as nobody?
 
 Thnak you very much for the previous replies.
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Memory limit for tomcat 4.0.2 with jdk1.4.0_01 under Linux

2002-12-06 Thread Dick, Christof
Hi,

sorry for asking again a memory problem but I can't find the one and only
answer in the archive.

I'm using tomcat 4.0.2 with jdk1.4.0_01 on a redhat linix. In the tomcat
configuration I set the JAVA_OPTS -Xms***m -Xmx***m. In the server.xml I
left only the http connector with only 1 min- and maxProcessor and only 1
acceptCount. When starting tomcat several processes/threads are opened but I
know they use the displayed memory together, so it's OK.

When using -Xms20m -Xmx20m and starting my web application and watching the
memory using top the memory used by several threads increases up to 60 MB
before the browser shows an out of memory error. When using -Xms70m -Xmx70m
the browser shows no out of memory but the memory usage increases up to
150MB. The problem: How can I calculate this difference so that I can set
the option to a value that does not outlimit my memory ? On a windows
machine I can set this values to -Xmx400m and the tomcat/java uses only
400MB and then crashes. But the Linux machine (with 512MB memory, no other
programs running, only tomcat) suddenly starts swapping when using the
limits -Xmx300m after a while. The swapping is getting so heavy, that the
computer totally blocks and has to be restarted. So I need the correct
numbers for the JAVA_OPTS that really only 400MB will be used !

Thanks a lot and sorry if I missed the right answer !

Christof


--
If you have received this e-mail in error or wish to read our e-mail 
disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender.
--


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Problems with configuration of SSL in the 4.1.12 for Windows

2002-12-06 Thread Fabiano Sousa

I am having problems with configuration of SSL in the jakarta-tomcat-4.1.12!!
I am using the j2sdk-1_4_0_01-windows-i586 and j2sdkee-1_3_1-win..
Sorry, I am using the Windows Professional 2000 and Netscape 7.0 =P
I read the SSL Configuration HOW-TO, but when I type 
https://localhost:8443; I saw the message The connection was  reffused 
when attempting to contact localhost:8443 in the Netscape.

My server.xml is as:

!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true
	   acceptCount=10 debug=0 scheme=https secure=true
   useURIValidationHack=false
  Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
   keystoreFile=H:\Tomcat_4.1\cert\keyStore
	   clientAuth=false protocol=TLS /
/Connector

But, I already used the default configuration and nothing worked!!

Can someone help me, please?





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



Re: tomcat + eclipse

2002-12-06 Thread Cristiano Silva
And debugging JSP... do you know it works?

Em Sex 06 Dez 2002 08:18, Cédric Viaud escreveu:
 The answer is YESSS :

 http://www.sysdeo.com/eclipse/tomcatPlugin.html

 And it works fine.

 HTH,

Cédric

 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, December 04, 2002 11:27 AM
 Subject: tomcat + eclipse

  Hi
 
  I'm using Eclipse as my IDE
 
  is there a way to integrate Tomcat with Eclipse?
 
  thanx

-- 

Cristiano Moreira Silva
Lecom S/A - Liderança Estratégica em Comunicação Digital
WebDeveloper - Tecnologia
http://www.lecom.com.br
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: tomcat doesn´t show latin characters when i start the system

2002-12-06 Thread Jean-Francois Mach

It depends how you start tomcat when you boot the system. Usually it is a
script in :
/etc/rc.d/init.d
or
/etc/init.d

Just add
export LANG=XXX
at the beginning of the script, where XXX is the value of LANG in your
shell;


If you stop/start it from a crontab on a regular basis (daily or weekly,
which is usually good practice), just add
LANG=XXX
at the top of your crontab file (man 5 crontab if you don't know how it
works)

 -Message d'origine-
 De : Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED]]
 Envoyé : vendredi 6 décembre 2002 12:45
 À : Tomcat Users List
 Objet : Re: tomcat doesn´t show latin characters when i start the system


 can you say me how and in which file can i make it?
 thanks for your answer


 - Original Message -
 From: Jean-Francois Mach [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, December 06, 2002 12:19 PM
 Subject: RE: tomcat doesn´t show latin characters when i start the system


 
  Sounds like an environment problem. You might want to check the LANG
  environment variable. Usually when you start the program
 manually, LANG is
  set in your shell, but not when you start it from cron or when
 your server
  boots up (I had a similar problem and setting LANG solved the problem).
 Try
  to add it to your crontab/export it in your startup script.
 
  Regards,
 
 
  - Jeff
 
 
   -Message d'origine-
   De : Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED]]
   Envoyé : vendredi 6 décembre 2002 12:05
   À : [EMAIL PROTECTED]
   Objet : tomcat doesn´t show latin characters when i start the system
  
  
   When i start my linux tomcat doesn'y show latin characters (ó, á,
   í ...) if
   i restart the tomcat service (rctomcat restart) the tomcat shows
   me well all
   characters.
   Can anybody says me how can i solve this great, for me, problem?
   i am using one SuSE 8.1 linux machine, jdk 1.4.1 and tomcat 4.1.12
  
   thanks
  
  
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
  
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 



 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Where to place static content? Tomcat/Apache

2002-12-06 Thread Andreas Hucks
Hi,

I am just starting with the Tomcat/Apache combo, so this is a rather basic
question:
With larger projects, is it better to place the static content with the
webapp (being able to distribute it inside the .war) or to map just the
servlets to Tomcat and have the rest served by Apache (better performance?)
Is Tomcat slower than Apache serving static files? Is it worth the
inconvenience of not having it all in one place?

Not that it matters right now (it's not a production environment, of
course), just being curious about best practice.

Andreas


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: DBCP question

2002-12-06 Thread Veniamin Fichin
Roberts, Eric wrote:


Try this way instead - it works for me!


Thanks, I'll try it. I just thought that I cat use Oracle dbcp 
implementation only, without BasicDataSourceFactory Tomcat alternative.

Server.xml:
Resource description=Oracle database resource for esljsp project 
name=jdbc/esljsp-oracle 
auth=Container 
type=javax.sql.DataSource/
.
.
ResourceParams name=jdbc/esljsp-oracle
.
.
parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
/parameter
parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
nameurl/name
valuejdbc:oracle:thin:@db.server.ru:1521:sidvalue/value
/parameter.
.

web.xml:
.
.
  resource-ref
   descriptionOracle database resource for esljsp project/description
   res-ref-namejdbc/esljsp-oracle/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
  /resource-ref
.
.

Source:
.
.
import javax.naming.Context;
import javax.naming.InitialContext;
.
.
ctx = new InitialContext();
Context envCtx = (Context) ctx.lookup(java:/comp/env/);
DataSource ds = (DataSource) envCtx.lookup(/esljsp-oracle);

Hope this helps!


--= [ original post cut ] =--


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Where to put JSP files?

2002-12-06 Thread Aleksandr Shneyderman
 -Original Message-
 From: Lindomar [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 06, 2002 6:59 AM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: Re: Where to put JSP files?
 
 
 You can put in:
 
 webapps
 |_your app - yoiu can put here (1)
|_you can create a new folder, then put here (2)

The option (2) is recursive
meaning you can create as many subfolders 
as you wish :-)


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Tomacat and apache web server

2002-12-06 Thread Tushar Kulkarni
How to configure tomcat and apache web server?
Please help!



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Tomacat and apache web server

2002-12-06 Thread Aleksandr Shneyderman
read this

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html

 -Original Message-
 From: Tushar Kulkarni [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 05, 2001 7:57 AM
 To: Tomcat Users List
 Subject: Tomacat and apache web server
 
 
 How to configure tomcat and apache web server?
 Please help!
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Tomacat and apache web server

2002-12-06 Thread David Rayroud
Hi,

Tell me your version of Tomcat and Apache and I will help you

David Rayroud

-Message d'origine-
De : Tushar Kulkarni [mailto:[EMAIL PROTECTED]]
Envoyé : mercredi, 5. décembre 2001 13:57
À : Tomcat Users List
Objet : Tomacat and apache web server

How to configure tomcat and apache web server?
Please help!



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.422 / Virus Database: 237 - Release Date: 20.11.2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.422 / Virus Database: 237 - Release Date: 20.11.2002



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Tomacat and apache web server

2002-12-06 Thread Tushar Kulkarni
I am using tomcat 4.1.12
Thanks
- Original Message -
From: David Rayroud [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, December 06, 2002 12:58 PM
Subject: RE: Tomacat and apache web server


 Hi,

 Tell me your version of Tomcat and Apache and I will help you

 David Rayroud

 -Message d'origine-
 De : Tushar Kulkarni [mailto:[EMAIL PROTECTED]]
 Envoyé : mercredi, 5. décembre 2001 13:57
 À : Tomcat Users List
 Objet : Tomacat and apache web server

 How to configure tomcat and apache web server?
 Please help!



 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.422 / Virus Database: 237 - Release Date: 20.11.2002

 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.422 / Virus Database: 237 - Release Date: 20.11.2002



 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: SEO and servlets

2002-12-06 Thread Cox, Charlie
I do a silimar thing where all my content is in a database as XML, so that
the users can update their content when *they* need to(not when I get around
to it).  Then the html is created using xsl when requested.

The way that I set this up is that I map a directory to each servlet (or
sometimes multiple directories to a servlet for different functionality for
another set of pages) and then use real page names. These appear to be
static html pages. This allows the pagename to be a prarm for the servlet. 

I also do not have many forms(nor do I use struts,etc) so that is not a
problem for me.

Charlie

 -Original Message-
 From: neal [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 06, 2002 3:49 AM
 To: Tomcat Users List
 Subject: RE: SEO and servlets
 
 
 Craig,
 
 Thanks for the reponse.  I know what you're saying that you 
 wouldn't want to
 submit most web app pages, presuming that most of it is form 
 data ... but in
 this case I have a bit of content that was placed into 
 dynamic pages because
 (a) There is a common naivgation framework that is 
 essentially included, (b)
 in the case of the main page there is some 'weekly specials' 
 data that gets
 inserted into the content.  The framework I developed 
 presumes XsLT for the
 template rather than jsp, which means that I must use a 
 servlet (in this
 case with my own extension), and thus the concern.
 
 So that's why I was wondering. I knew about the other issues 
 such s have
 params beyond the question mark (they won't be picked up)... 
 again another
 reason to use a servlet wherein *.abc would invoke the abc 
 serlet and *
 could introspectively obtained as a param .. I thought that 
 might be a way
 around it ... but I'm beginning to think perhaps not.  :(
 
 Anyway, thanks for your thoughts.
 
 
 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 05, 2002 6:55 PM
 To: Tomcat Users List
 Subject: Re: SEO and servlets
 
 
 
 
 On Wed, 4 Dec 2002, neal wrote:
 
  Date: Wed, 4 Dec 2002 22:06:53 -0800
  From: neal [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: SEO  and servlets
 
  I was reading on Google the other day that it supports 
 many of the common
  file types including JSP ... but this led me to wonder if 
 they index
  servlets without file extensions, or how about common 
 frameworks such as
  Struts with the DO extensions.
 
  Does anyone know how these file types index with Google and 
 other major
  engines?
 
 
 Different search engines follow different policies -- you'd 
 have to ask
 them how their spiders are programmed.  Most of them, 
 probably, omit at
 least some of the following types of URLs:
 * URLs protected by an authentication constraint
 * URLs matching patterns listed in the deny list of your
   robots.txt file
 * URLs that have query parameters in them
 * URLs that have no-cache headers in the returned content
 
 Personally, I think it's somewhere between misleading and 
 silly to index
 pages from a web *applications* (as opposed to web sites)  
 based on an MVC
 framework (like Struts).  Why?  Because the URL that a search engine
 spider would submit doesn't necessarily have *anything* to do with the
 output that gets rendered.
 
 Consider a very common case where you have a form submit that 
 goes to a
 URL ending in .../saveCustomer.do in a Struts app.  If 
 you've made any
 errors that get caught by the validation rules, the original 
 input form is
 redisplayed.  On the other hand, if you did everything 
 correctly, the next
 page in your app's user interaction is displayed (probably a menu or
 something).  But the URL is the same!
 
 Which kind of output should a search engine index?
 
 Web applications != Web sites
 
  Thanks.
  Neal
 
 
 Craig
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




User Authentication question

2002-12-06 Thread Aleksandr Shneyderman

Here my scenario:

We have two applications runing on the same
server (App A and App B)

What we'd like to do is to allow one login 
prompt but two different role initializations.

In other words suppose the user browses the web 
site and comes upon a page that she needs to
authenticate herself for. The sever redirects the
user to the login page and upon submission of 
her credentials she gets auhtenticated by an LDAP 
serevr and her roles are generated. The application 
A uses the LDAP to generate roles (groups), while 
application B uses a database. 

Wihle I suspect that I need to use SingleSignOn valve
to have a unified session accross the contexts I am
not quite sure how to do the role assignment.

I can see bits of the solution here and there but
I can not see the whole picture. I have read the 
JAAS developer's guide and even came accross JAASRealm
class (which I can't find the doc for). I am just not
quite sure how to put that info to use.

If anyone have a resource that will help me out to 
the solution I would appreciate your information. Or you
might have a clear idea of how to do it, that would be
even better :-)

Thanks,
Alex.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Tomcat, SOAP and SSH

2002-12-06 Thread Christian Suter
Hi everybody

I've got two servers: one for the frontend (Internet) and one backend.
The Communication between them is implemented as SAOP-webservice. Now,I
wan't to have the Communication through an SSH-tunnel. The tunnel is ok, but
the communication doesn't work fine.
I've taken openssh on port 22 and want to communicate on port 8080 with
the SOAP-webservice on a tomcat 4.0.
I haven't done this ever, do I have to configure the tomcat? Or what is
wrong?

Tx'

Christian

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Can't start tomcat

2002-12-06 Thread Aleks Kleyn
I get a lot of respond, but I still not find answer, However there is other
interesting problem. When I debug jsp in Forte for Java they are able to
start Tomcat (even without env vars) and I can try my jsp. How they manage
this.
Aleks Kleyn
http://www.geocities.com/aleks_kleyn
- Original Message -
From: Aleks Kleyn [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, December 03, 2002 5:06 PM
Subject: Re: Can't start tomcat


 I also followed this recommendation because I had similar problem. When I
 started startup.bat it responded me
 Out of environment space
 So this is problem:how I can extend environment space in windows NT?
 Aleks Kleyn
 http://www.geocities.com/aleks_kleyn
 - Original Message -
 From: Yandell Cacton [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, November 26, 2002 5:36 PM
 Subject: Re: Can't start tomcat


  Hi,
 
  To see the error message, run the startup script using
  DOS Window and manually type the startup command,
  instead of double clicking the icon.
 
  My guess would be that the problem is that you haven't
  setup CATALINA_HOME environment variable.
 
  Cheers,
  Yandell.
 
   --- [EMAIL PROTECTED] wrote:  Hello,
  
   I have downloaded tomcat 4.1.12. When I try to
   startup the server a DOS Window appears and
   disappears immediately and I have no comment about
   what's going on.
  
   Can anybody help me?
  
  
  -
   NetCourrier, votre bureau virtuel sur Internet :
   Mail, Agenda, Clubs, Toolbar...
   Web/Wap : www.netcourrier.com
   Téléphone/Fax : 08 92 69 00 21 (0,34 ? TTC/min)
   Minitel: 3615 NETCOURRIER (0,15 ? TTC/min)
  
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
 
  http://www.yahoo.promo.com.au/hint/ - Yahoo! Hint Dropper
  - Avoid getting hideous gifts this Christmas with Yahoo! Hint Dropper!
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 

 -
 Introducing NetZero Long Distance
 1st month Free!
 Sign up today at: www.netzerolongdistance.com

 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



-
Introducing NetZero Long Distance
1st month Free!
Sign up today at: www.netzerolongdistance.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Tomcat 4 and IIS please HELP

2002-12-06 Thread Renato Romano
Hi,
I'm trying to set up tomcat 4 with IIS. I already made this whith Tomcat
3, and following the doc how-to for tomcat 4 had the following problems:

Tomcat 4.0.1: integration for IIS works fine for unprotected resources,
but the browser hangs if I ask for a protected resource; speaking
directly with tomcat (i.e. using 8080 port) works fine!! Catalina logs a
nullpointerexception for each request i make:

2002-12-06 10:09:31 Ajp13Request[5]  Requested cookie session id is
C554055605855495697077791461B370
2002-12-06 10:09:31 Ajp13Request[5]  Adding cookie
JSESSIONID=C554055605855495697077791461B370
2002-12-06 10:09:31 Ajp13Request[5]  Adding cookie
JSESSIONID=E5B331E6D4C4F1C144C1E845170683A5
2002-12-06 10:09:31 Ajp13Processor[8009][4] invoking...
2002-12-06 10:09:31 Ajp13Processor[8009][4] process: invoke
java.lang.NullPointerException
at
org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatcherVa
lve.java:291)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
at
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:
348)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:371)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424)
at java.lang.Thread.run(Thread.java:484)

Then i tried downloading the latest tomcat 4 release, that is 4.1.12: in
this case, server.xml is configured to use a Coyote Connector for ajp
and not Ajp13Connector as in release 4.0.1
This time, when asking for a protected resource results in a 403 error
(Not Authorized) instead of the login page (I use FORM auth). Please
note that using tomcat directly (that is port 8080) WORKS FINE !!!

Than I switched to Ajp13Connector, whose entry is commented by default
in the 4.1.12 server.xml config file. Finally this works fine, except
for some errors due to Listener config. Anyway i'm quite sure this is
not the best way !!!

Any help will be very appreciated, also addressing to known issues about
this problem. Please don't addess me to Tomcat-IIS how'to because I
already used them. Thanks a lot.

Renato


Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




mod_jk vulnerability and Tomcat 3.3

2002-12-06 Thread Jason Bruce
In reference to the recent vulnerability disclosure in mod_jk 1.2:

http://online.securityfocus.com/archive/1/302169/2002-12-02/2002-12-08/0

Only Tomcat 4.X is mentioned as an affected system; however, reading the
description of the flaw makes me believe that it shouldn't matter what the
tomcat version is... mod_jk is mishandling the communication.  We have
Tomcat 3.3.1 / Apache 1.3.x deployed corporate-wide, can anybody confirm
whether this vulnerability exists with Tomcat 3.3.x using mod_jk 1.2?


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Why run tomcat as root

2002-12-06 Thread Turner, John

Exactly.

John


 -Original Message-
 From: Noel J. Bergman [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 06, 2002 2:17 AM
 To: Tomcat Users List
 Subject: RE: Why run tomcat as root

 Personally, one of my goals is to go the other way and stick 
 tomcat into a
 chroot jail, so that it has access to nothing that I don't 
 specifically
 place into the environment.
 
   --- Noel
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Why run tomcat as root

2002-12-06 Thread Turner, John

You're wrong.  

There is no such requirement in UNIX for the most dangerous stuff to be
handled at the highest priv level.  No requirement at all.

A smart sys-admin

1) doesn't run any service on any port, privileged or not, unless it's
absolutely needed.  Yes, lots of services are configured by default, but
most of them are a) very simple services that can do little or no damage if
compromised and b) so old that most potential exploits in them were plugged
long ago on any recent version.  A smart admin will disable all those
services anyway.  

2) when a service is necessary, takes all all necessary steps to limit the
damage that can be done, including only using applications that change uid
to a less-privileged user to handle requests (like Apache).

Please remember that an assumption is made that anyone who has root on a
machine and is offering services to the public is savvy enough to understand
the issues involved in running public services on ports less than 1024.  In
my opinion, that's a reasonable assumption to make.  Unlike Apple (no flame
war intended), making the operating system idiot proof is not a primary
design goal for UNIX or Linux, nor should it be.  If you have root, and
your're using a service application that misbehaves, 30% of the blame is on
the person who wrote the application, and 70% of the blame is on you for
blindly using it in the first place.

Please also realize that the primary services available on the Internet are,
by design, available on privileged ports.  This is also reasonable.  The
rationale being that not just anyone should be able to offer services to the
public.  Imagine the damage if Joe User could write a malicious version of
BIND and bind it to port 52 on a server responsible for critical DNS
information.

To demand that the privileged port restriction be removed in the interests
of convenience, and claiming that the restriction is dumb is, in my
opinion, unreasonable, ignorant, irresponsible, and in hacker-speak, lame.

John

 -Original Message-
 From: Joe Tomcat [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 06, 2002 6:13 PM
 To: Tomcat Users List
 Subject: RE: Why run tomcat as root
 
 
 On Thu, 2002-12-05 at 20:33, Noel J. Bergman wrote:
  Access to ports  1024 and minimizing root services is a 
 well-understood
  issue for anyone who ought to be using a *nix system, 
 having nothing to do
  with any specific server application.
 
 Restrictions on ports  1024 and minimizing services running 
 as root are
 contradictory aspects of the Unix security model.  The 
 right thing to
 do is for Linux to get rid of this dumb security feature, 
 or at least
 have an option to turn it off, so that a non-root process can bind
 directly to port 80.  The most dangerous data (stuff straight off the
 net) should be handled at the lowest possible priv level.  Right now,
 Unix requires the most dangerous stuff to be handled at the highest
 (most dangerous) priv level.  Not smart.  But there is nothing the
 Tomcat crew can do about this mis-design.
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Can't start tomcat

2002-12-06 Thread Turner, John

From the file RUNNING.txt included with Tomcat and available on the
jakarta.apache.org site as well:

2) An out of environment space error when running the batch files in
   Win9X/ME-based operating systems.

   Right-click on the STARTUP.BAT and SHUTDOWN.BAT files.  Click on
   Properties then on the Memory tab.  For the Initial environment
field,
   enter in something like 4096.

   After you click apply, Windows will create shortcuts in the directory
with
   which you can use to start and stop the container.

Granted, it doesn't mention NT specifically, but it is worth a try, and I
would imagine that a simple search on Google would give you the answer.

John

 -Original Message-
 From: Aleks Kleyn [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 06, 2002 8:24 AM
 To: Tomcat Users List
 Subject: Re: Can't start tomcat
 
 
 I get a lot of respond, but I still not find answer, However 
 there is other
 interesting problem. When I debug jsp in Forte for Java they 
 are able to
 start Tomcat (even without env vars) and I can try my jsp. 
 How they manage
 this.
 Aleks Kleyn
 http://www.geocities.com/aleks_kleyn
 - Original Message -
 From: Aleks Kleyn [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, December 03, 2002 5:06 PM
 Subject: Re: Can't start tomcat
 
 
  I also followed this recommendation because I had similar 
 problem. When I
  started startup.bat it responded me
  Out of environment space
  So this is problem:how I can extend environment space in windows NT?
  Aleks Kleyn
  http://www.geocities.com/aleks_kleyn
  - Original Message -
  From: Yandell Cacton [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Tuesday, November 26, 2002 5:36 PM
  Subject: Re: Can't start tomcat
 
 
   Hi,
  
   To see the error message, run the startup script using
   DOS Window and manually type the startup command,
   instead of double clicking the icon.
  
   My guess would be that the problem is that you haven't
   setup CATALINA_HOME environment variable.
  
   Cheers,
   Yandell.
  
--- [EMAIL PROTECTED] wrote:  Hello,
   
I have downloaded tomcat 4.1.12. When I try to
startup the server a DOS Window appears and
disappears immediately and I have no comment about
what's going on.
   
Can anybody help me?
   
   
   -
NetCourrier, votre bureau virtuel sur Internet :
Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 ? TTC/min)
Minitel: 3615 NETCOURRIER (0,15 ? TTC/min)
   
   
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
   
  
   http://www.yahoo.promo.com.au/hint/ - Yahoo! Hint Dropper
   - Avoid getting hideous gifts this Christmas with Yahoo! 
 Hint Dropper!
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
 
  -
  Introducing NetZero Long Distance
  1st month Free!
  Sign up today at: www.netzerolongdistance.com
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 -
 Introducing NetZero Long Distance
 1st month Free!
 Sign up today at: www.netzerolongdistance.com
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Tomacat and apache web server

2002-12-06 Thread Turner, John

How about an operating system?

Please search the archives.  Read the documentation.  Search Google for
HOWTOs.

This topic comes up A LOT, and unless you're going to provide more
information in your posts, and make it easy for people to help you, you
aren't going to get much help.

You can also check here if you are using Red Hat and/or Solaris 8:
http://www.johnturner.com/howto

John


 -Original Message-
 From: Tushar Kulkarni [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 05, 2001 8:05 AM
 To: Tomcat Users List
 Subject: Re: Tomacat and apache web server
 
 
 I am using tomcat 4.1.12
 Thanks
 - Original Message -
 From: David Rayroud [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, December 06, 2002 12:58 PM
 Subject: RE: Tomacat and apache web server
 
 
  Hi,
 
  Tell me your version of Tomcat and Apache and I will help you
 
  David Rayroud
 
  -Message d'origine-
  De : Tushar Kulkarni [mailto:[EMAIL PROTECTED]]
  Envoyé : mercredi, 5. décembre 2001 13:57
  À : Tomcat Users List
  Objet : Tomacat and apache web server
 
  How to configure tomcat and apache web server?
  Please help!
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  ---
  Incoming mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.422 / Virus Database: 237 - Release Date: 20.11.2002
 
  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.422 / Virus Database: 237 - Release Date: 20.11.2002
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: OK to run tomcat as nobody?

2002-12-06 Thread Turner, John

'nobody' would be a bad choice.  You'd be better off creating a user called
tomcat or something similar and running tomcat as that user.

John


 -Original Message-
 From: Sanjaya Singharage [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 05, 2002 11:28 PM
 To: [EMAIL PROTECTED]
 Subject: OK to run tomcat as nobody?
 
 
 This is a follow up to the post why run romcat as root (I 
 meant to say
 why run tomcat as nobody).
 
 After reading all the replies. My solution would be to run 
 apache as root
 on port 80 and then run tomcat behind the scenes using a connector and
 running a user other than root. What I want to know is are there any
 security concerns running tomcat as nobody?
 
 Thnak you very much for the previous replies.
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Where to place static content? Tomcat/Apache

2002-12-06 Thread Turner, John

This comes up a lot, and the answer, unfortunately, is do what works for
you in your situation.

Slower is relative, best is relative.

Test your app with an estimated load using Tomcat stand-alone, if that works
for you, you should be good to go.  Using Apache can be a complex task, and
it may not be worth the additional administration headache.  The main
reasons for running Apache with Tomcat are not wanting to run Tomcat as root
on port 80, using Apache + JK/JK2 to load-balance to several Tomcats, and
taking advantage of other Apache features like CGI/PHP, or modules like
mod_rewrite.

John

 -Original Message-
 From: Andreas Hucks [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 06, 2002 7:35 AM
 To: list: tomcat
 Subject: Where to place static content? Tomcat/Apache
 
 
 Hi,
 
 I am just starting with the Tomcat/Apache combo, so this is a 
 rather basic
 question:
 With larger projects, is it better to place the static 
 content with the
 webapp (being able to distribute it inside the .war) or to 
 map just the
 servlets to Tomcat and have the rest served by Apache (better 
 performance?)
 Is Tomcat slower than Apache serving static files? Is it worth the
 inconvenience of not having it all in one place?
 
 Not that it matters right now (it's not a production environment, of
 course), just being curious about best practice.
 
 Andreas
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: tomcat doesn´t show latin characters when i start the system

2002-12-06 Thread Dionisio Ruiz de Zarate
ok thanks that is the solution:
export LANG=es_ES@euro in the tomcat start script.
Thanks

- Original Message -
From: Jean-Francois Mach [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, December 06, 2002 1:30 PM
Subject: RE: tomcat doesn´t show latin characters when i start the system



 It depends how you start tomcat when you boot the system. Usually it is a
 script in :
 /etc/rc.d/init.d
 or
 /etc/init.d

 Just add
 export LANG=XXX
 at the beginning of the script, where XXX is the value of LANG in your
 shell;


 If you stop/start it from a crontab on a regular basis (daily or weekly,
 which is usually good practice), just add
 LANG=XXX
 at the top of your crontab file (man 5 crontab if you don't know how it
 works)

  -Message d'origine-
  De : Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED]]
  Envoyé : vendredi 6 décembre 2002 12:45
  À : Tomcat Users List
  Objet : Re: tomcat doesn´t show latin characters when i start the system
 
 
  can you say me how and in which file can i make it?
  thanks for your answer
 
 
  - Original Message -
  From: Jean-Francois Mach [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Friday, December 06, 2002 12:19 PM
  Subject: RE: tomcat doesn´t show latin characters when i start the
system
 
 
  
   Sounds like an environment problem. You might want to check the LANG
   environment variable. Usually when you start the program
  manually, LANG is
   set in your shell, but not when you start it from cron or when
  your server
   boots up (I had a similar problem and setting LANG solved the
problem).
  Try
   to add it to your crontab/export it in your startup script.
  
   Regards,
  
  
   - Jeff
  
  
-Message d'origine-
De : Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 6 décembre 2002 12:05
À : [EMAIL PROTECTED]
Objet : tomcat doesn´t show latin characters when i start the system
   
   
When i start my linux tomcat doesn'y show latin characters (ó, á,
í ...) if
i restart the tomcat service (rctomcat restart) the tomcat shows
me well all
characters.
Can anybody says me how can i solve this great, for me, problem?
i am using one SuSE 8.1 linux machine, jdk 1.4.1 and tomcat 4.1.12
   
thanks
   
   
   
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
   
   
  
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
  
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 


 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]






--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Restrict access to JSP's/URL's

2002-12-06 Thread Turner, John

Didn't you say that all of your auth information is in a database?  Why
would you need to write an XML file?

John


 -Original Message-
 From: Steve Vanspall [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 05, 2002 7:39 PM
 To: Tomcat Users List
 Subject: RE: Restrict access to JSP's/URL's
 
 
 Thanks.
 
 Will be doing that.
 
 What I was wondering is, is there anything built into tomcat 
 to allow me to
 get say a security level of a certain action. That way seeing 
 if it matches
 the users security level.
 
 Or will I need to make another xml file of my own to 
 configure each action,
 and which roles can access it?
 
 regards
 
 Steve Vanspall
 
 -Original Message-
 From: Will Hartung [mailto:[EMAIL PROTECTED]]
 Sent: Friday, 6 December 2002 11:18 AM
 To: Tomcat Users List
 Subject: Re: Restrict access to JSP's/URL's
 
 
 Check out Filters and stick an authorization filter in front of your
 restricted URLs
 
 /Will
 
 - Original Message -
 From: Steve Vanspall [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, December 05, 2002 3:56 PM
 Subject: Restrict access to JSP's/URL's
 
 
  Hi there,
 
  I am using Tomcat 4.1.12 and Strut1.1-b2 (it think that's the struts
  version)
 
  anyway, I can see that Tomcat has a tomcat-users.xml file. 
 This file, as I
  understand, can restrict access according to a the user-level.
 
  What I want to know is, is there a way to restrict access 
 to the url/jsp's
  according to a dynamically retrieved user level.
 
  e.g. All our user login id's and passwords are stored in 
 our database. In
 a
  similar table they have a role_cde attributed to them.
 
  Both these beans are stord in the session when someone logs in.
 
  Can I restrict access to certain actions/jsp's similarly to the way
  tomcat-user.xml is used to restrict access?
 
  better yet, is there a non container-specific way to do it.
 
  I would rather not code my own xml file, if there is 
 already something
 built
  in to the architecture I have running.
 
  Any help would be appreciated
 
  Steve Vanspall
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Mutliuser setup

2002-12-06 Thread Turner, John

Agreed.  :)  We're OK with 10-15 clients and 2GB RAM per server for now.

John

 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 05, 2002 9:55 PM
 To: Tomcat Users List
 Subject: RE: Mutliuser setup
 
 
 
 
 On Thu, 5 Dec 2002, Turner, John wrote:
 
  We've never investigated how to get away from needing the 
 shutdown port.
  We're OK with two ports for each user/client.  Given 10-15 
 clients per
  server, there are plenty of ports to go around  65K.
 
 If you're running a separate JVM for each client, you're pretty much
 assured to run out of memory before you run out of ports :-).
 
  John
 
 Craig
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: (apparent) tomcat configuration problem

2002-12-06 Thread Shapira, Yoav
Hi,
Maybe if you posted your servlet.xml, someone could help.  But it seems
like a very strange error.  What JDK are you using?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Manavendra Gupta [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 06, 2002 3:12 AM
To: Tomcat Users List
Subject: (apparent) tomcat configuration problem

Hi,

tomcat 4.1 starts succesfully, but on shutdown gives the following
error:


Uing CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JAVA_HOME:   /usr/local/jdk
PARSE error at line 1 column -1 of /usr/local/tomcat/conf/server.xml
org.xml.sax.SAXParseException: Document root element is missing.
Catalina.stop: org.xml.sax.SAXParseException: Document root element is
missing.
org.xml.sax.SAXParseException: Document root element is missing.
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3170)
at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:501)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:314)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:253)
at
org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:822)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:683)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:3
9
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImp
l
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
--

Any clues?

Manav.


--
To unsubscribe, e-mail:   mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Mutliuser setup

2002-12-06 Thread Martin Klebermaß
Well its less the problem with running to much tomcats so that there are not
enough ports, you just need some more type of port handling to give away the
ports in an automatic way.
And beside this,   matter of wasting ports, i find a port that listens for a
string which is never be used is a simple extra risc with no benefit.  ( Or
do u install a Programm on your system that runs on a network port, and u
know about the programm that in 50 years you will never need this port ?)


- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, December 06, 2002 2:58 PM
Subject: RE: Mutliuser setup



 Agreed.  :)  We're OK with 10-15 clients and 2GB RAM per server for now.

 John

  -Original Message-
  From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, December 05, 2002 9:55 PM
  To: Tomcat Users List
  Subject: RE: Mutliuser setup
 
 
 
 
  On Thu, 5 Dec 2002, Turner, John wrote:
 
   We've never investigated how to get away from needing the
  shutdown port.
   We're OK with two ports for each user/client.  Given 10-15
  clients per
   server, there are plenty of ports to go around  65K.
 
  If you're running a separate JVM for each client, you're pretty much
  assured to run out of memory before you run out of ports :-).
 
   John
 
  Craig
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 

 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]






--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: A dead cat

2002-12-06 Thread Shapira, Yoav
Howdy,
It is difficult to help specifically, but here are a couple of general
notes that may be relevant:

1. Tomcat won't die (actually, the JVM won't die) if you've created any
non-daemon threads in your application.  If you create such threads,
either set them as daemons or ensure their proper termination.

2. I suggest simplifying your deployment process, at least temporarily.
Don't use the manager to redeploy.  Copy the war file manually each
time.  Unless you have some special settings, don't enter a Context
element for your webapp in server.xml.  Restart tomcat, ensuring it's
dead, between each deployment.

If you could post more details, including OS name and version, tomcat
version, JDK version, your web.xml file, we could probably help more.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 06, 2002 4:19 AM
To: [EMAIL PROTECTED]
Subject: A dead cat

Hi,

I am currently using tomcat as a standalone server to test some webapps
that
I am creating.  I have some experiance with web servers but little or
no
experiance with tomcat.  And I have a couple of major problems.

1)  The cat is dead but won't go away!  I have installed tomcat twice
now,
the first time I had a conflict within the port addressing for tomcat
and
my
exist database where both were configured to listen on the same port.
A
school boy error really, but when I killed off tomcat and edited the
server
config file to listen on an other port I got Exceptions every time I
tried
to restart tomcat.  I uninstalled and then reinstalled tomcat and
everything
was working fine for a couple of days.  However! After problem 2
occured
the
same situation has come back with tomcat.  The one thing I have noticed
though is that the tomcat.exe in the process list cannot be killed
using
task manager.

2)  When tomcat was up and running the second time I managed to get the
war
file into the webapps dir and it automatically detected it, created a
directory and deployed.  However, after a while and during one of the
updates to the app, tomcat seemed to jam and would not reload the app.
I
tryed to use the manager, but it would not let me even restart the app.
So,
I removed it from the directory and then restarted tomcat.  This time
tomcat
would not even see the file was there and I had to install it using
manager.
This worked for the first couple of changes, but then this too failed
and
now tomcat will not respond at all.

I am going to unistall and reinstall again, but if anyone knows why
this is
going wrong I would be most greatful.

As a side, during the deployment using manager I got the  app in by
declaring the path '/katrin' and then giving the file url
'file:/c:/programme/apache group/tomcat 4.1/webapps/katrin.war'.  This
worked for a couple of times, but then failed.  There are a direct copy
of
the last lines I entered.  Is there something I have done wrong in the
url,
as it is this error Mallformed url ... that I am getting.

Kindest regards

Simon

Institut fuer
Prozessdatenverarbeitung
und Elektronik,
Forschungszentrum Karlsruhe GmbH,
Postfach 3640,
D-76021 Karlsruhe,
Germany.

Tel: (+49)/7247 82-4042
E-mail : [EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Benchmark results for 4.1.12 vs 4.1.16

2002-12-06 Thread Shapira, Yoav
Hi Peter,
Just wanted to say thank you for running these benchmarks.  They're
useful and insightful.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Peter Lin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 8:00 PM
To: Tomcat Users List
Subject: Re: Benchmark results for 4.1.12 vs 4.1.16


today I took the day off, but tomorrow I plan on running more
benchmarks. I
ran into one weird behavior when I ran the same jmeter test with 10
threads
for 5K iterations. Half way through tomcat stopped accepting
connections,
but was fine. If I wait two minutes, it continue to accept requests.

That tells me tomcat is dramatically improved in stability. In the
early
days of servlet containers, I used to run stress tests until the
servers
crashed. Back in 99 most of the servlet containers including websphere,
jrun and tomcat would crash a couple minutes after it stopped accepting
connections. Now tomcat correctly denies connections and performance
degrades gracefully.

peter


 Remy Maucherat [EMAIL PROTECTED] wrote:Peter Lin wrote:
 I forgot to mention the Jmeter settings I used.
 All tests were with 1 thread for 5000 iterations. The first two image
tests used images for tomcat. The third image test with 194.5k image
was a
simple screen capture of my desktop.

Thanks for the small benchmark. It is a bit odd that some tests are
slightly worse, although it's well within the margin of error.
If you have other tests (maybe with a higher load factor), send them.

In 4.1.17, I'll provide a slightly more optimized default configuration
for the connector (using disableUploadTimeout=true, and a bigger
acceptCount, which may help avoid getting accept errors when under
load).

Remy


--
To unsubscribe, e-mail:
For additional commands, e-mail:



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: A dead cat

2002-12-06 Thread Felipe Schnack
  how I set a thread as a daemon?

On Fri, 2002-12-06 at 12:06, Shapira, Yoav wrote:
 Howdy,
 It is difficult to help specifically, but here are a couple of general
 notes that may be relevant:
 
 1. Tomcat won't die (actually, the JVM won't die) if you've created any
 non-daemon threads in your application.  If you create such threads,
 either set them as daemons or ensure their proper termination.
 
 2. I suggest simplifying your deployment process, at least temporarily.
 Don't use the manager to redeploy.  Copy the war file manually each
 time.  Unless you have some special settings, don't enter a Context
 element for your webapp in server.xml.  Restart tomcat, ensuring it's
 dead, between each deployment.
 
 If you could post more details, including OS name and version, tomcat
 version, JDK version, your web.xml file, we could probably help more.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Simon Kelly [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 06, 2002 4:19 AM
 To: [EMAIL PROTECTED]
 Subject: A dead cat
 
 Hi,
 
 I am currently using tomcat as a standalone server to test some webapps
 that
 I am creating.  I have some experiance with web servers but little or
 no
 experiance with tomcat.  And I have a couple of major problems.
 
 1)  The cat is dead but won't go away!  I have installed tomcat twice
 now,
 the first time I had a conflict within the port addressing for tomcat
 and
 my
 exist database where both were configured to listen on the same port.
 A
 school boy error really, but when I killed off tomcat and edited the
 server
 config file to listen on an other port I got Exceptions every time I
 tried
 to restart tomcat.  I uninstalled and then reinstalled tomcat and
 everything
 was working fine for a couple of days.  However! After problem 2
 occured
 the
 same situation has come back with tomcat.  The one thing I have noticed
 though is that the tomcat.exe in the process list cannot be killed
 using
 task manager.
 
 2)  When tomcat was up and running the second time I managed to get the
 war
 file into the webapps dir and it automatically detected it, created a
 directory and deployed.  However, after a while and during one of the
 updates to the app, tomcat seemed to jam and would not reload the app.
 I
 tryed to use the manager, but it would not let me even restart the app.
 So,
 I removed it from the directory and then restarted tomcat.  This time
 tomcat
 would not even see the file was there and I had to install it using
 manager.
 This worked for the first couple of changes, but then this too failed
 and
 now tomcat will not respond at all.
 
 I am going to unistall and reinstall again, but if anyone knows why
 this is
 going wrong I would be most greatful.
 
 As a side, during the deployment using manager I got the  app in by
 declaring the path '/katrin' and then giving the file url
 'file:/c:/programme/apache group/tomcat 4.1/webapps/katrin.war'.  This
 worked for a couple of times, but then failed.  There are a direct copy
 of
 the last lines I entered.  Is there something I have done wrong in the
 url,
 as it is this error Mallformed url ... that I am getting.
 
 Kindest regards
 
 Simon
 
 Institut fuer
 Prozessdatenverarbeitung
 und Elektronik,
 Forschungszentrum Karlsruhe GmbH,
 Postfach 3640,
 D-76021 Karlsruhe,
 Germany.
 
 Tel: (+49)/7247 82-4042
 E-mail : [EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Memory limit for tomcat 4.0.2 with jdk1.4.0_01 under Linux

2002-12-06 Thread Shapira, Yoav
Hi,

sorry for asking again a memory problem but I can't find the one and
only
answer in the archive.

That's because there isn't a one and only answer in the archive.  What
you're asking depends greatly on the precise OS version and hardware
configuration you're using (as well as JDK version of course).

Essentially, you'd like to know what percentage of the OS-level memory
image taken up by the JVM is the heap size.  If the percentage was 100%,
then setting -Xms -Xmx would precisely control what memory the JVM
takes.  Obviously, this magic percentage is not 100%.

Pretty much the only way to determine this percentage is to continue
experimenting like you have been, record your data, and try to fit them
to a curve.  It's linear algebra coming back at you ;)  (Or maybe just
me having memories of my school days ;)).

So you already have two data points:
20MB heap leads to 60MB of OS-level memory = 33% is used by the heap.
70MB heap leads to 150MB of OS-level memory = 47% is used by the heap.

In general, you can expect the percentage used by the heap to increase
as the total size increases.  But it'll never reach 100%, because
there's stack size, thread overhead size, symbol tables, etc.  

You could continue going down this path, which gets very complicated.
Especially when you take into account that you can also tune stack
segment size, heap generation sizes, thread mapping, etc. and that
affects the above measurements.

Alternatively, you could ask yourself: how much memory can I afford?
How much memory does my app need to function well?  Maybe you could
arrive at a faster, easier solution by working backwards, instead of
digging into OS-level details.

Yoav Shapira
Millennium ChemInformatics

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




re: Session Persistence retrieving old session data

2002-12-06 Thread Paul Tomsic
Have you tried explicitly removing the search criteria
attribute from the session?
Look into
javax.servlet.http.HttpSession.removeAttribute, or
removeValue


---
I am using Tomcat 4.0.3 on Solaris with JDK 1.4.

 

I have been using the Persistence Store to save the
Session 
information.
This works fine except from my pont of view, but users
are giving me 
grief
that when they run the web application, the
information stored in their
sessions is what they had in before a few minutes
earlier. For example, 
I
have written a search page that stores the search
criteria into the 
session
scope. After looking at the results and running
another search, they 
get the
results of a previous search they did minutes earlier.


It seems that the a copy of the session is being made,
but when they 
make
subsequent requests, the session is giving them an
older version of the
session then the one they should be using.

 

When I disable persistence manager, we have no
problems and everything 
works
fine.

Here is a copy of context in server.xml:

 

Context path= docBase=ROOT debug=0

  Manager 
className=org.apache.catalina.session.PersistentManager
debug=0 saveOnRestart=true maxActiveSessions=-1
minIdleSwap=0
maxIdleSwap=120 maxIdleBackup=0

Store
className=org.apache.catalina.session.FileStore/

  /Manager

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: [OT] Re: Java method equal to perl crypt()?

2002-12-06 Thread Reinhard Moosauer
Hi,

this program may show you how to use perl's function from inside java:

===
Test.java:

import java.io.*;

public class Test {


  public static void main(String args[]) {

String crypt_cmdary[]  = { /usr/bin/perl,
   -e, print crypt($ARGV[0],$ARGV[1]);,
   testpass, xy};

try {
  Process p = Runtime.getRuntime().exec( crypt_cmdary );

// Print process' stdout
  InputStreamReader ir = new InputStreamReader(p.getInputStream());
  LineNumberReader liner = new LineNumberReader(ir);
  String erg;
  while ((erg = liner.readLine()) != null)
System.out.println(Stdout:  + erg);

// Print process' stderr
  ir = new InputStreamReader(p.getErrorStream());
  liner = new LineNumberReader(ir);
  while ((erg = liner.readLine()) != null)
System.out.println(Stderr:  + erg);

} catch(IOException e) { System.out.println(e.getMessage()); }
  }
};

==

O.K. this is not the best method if you think about performance. 
But sometimes there is no other way but this way. (except JNI, maybe)

Hope, this helps,

kind regards,

Reinhard


Am Donnerstag, 28. November 2002 18:37 schrieb AAron nAAs:
 Although off topic, the standard unix crypt algorithm has been
 written/ported to many languages (I've even seen source code in books..
 Applied Cryptography I think).

 I know versions exist for Java, or you could just convert a basic, C, C++
 or Pascal version to Java.

 Seek with Google,
 -AAron

 From: Galbayar Dorjgotov [EMAIL PROTECTED]

 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: TomCat Users [EMAIL PROTECTED]
 Subject: Java method equal to perl crypt()?
 Date: Thu, 28 Nov 2002 17:33:45 +0800
 
 Ok, I have an existing MySQL database that has user's passwords stored
  that were encrypted using the Perl crypt() function. I was wondering
  what the best way to re-use this database using JSP. I know enough Java
  to get most functionality working, and I can already connect to and
  read/write to MySQL.
 The only problem I have is if I migrate to JSP, how can I compare
  passwords that are supplied in the JSP page to the password in the DB
  that was stored via the Perl crypt() function?
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

 _
 The new MSN 8: smart spam protection and 2 months FREE*
 http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




tld locations??? must be directly in WEB-INF

2002-12-06 Thread Hanasaki JiJi
Am I reading the below error correctly?  .tld must be in the WEB-INF dir
and not in any subdir of WEB-INF?

I have put the struts tld's in /WEB-INF/struts/ and specified to find
them there in web.xml

==


2002-12-05 23:33:41 ContextConfig[/j2eetemplate] Exception processing
TLD at resource path /WEB-INF/struts/struts-nested.tld
javax.servlet.ServletException: Exception processing TLD at resource
path /WEB-INF/struts/struts-nested.tld
  at
org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.java:1010)
  at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870)
  at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
  at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)

...

- Root Cause -
java.lang.IllegalArgumentException: Invalid TLD resource path
/WEB-INF/struts/struts-nested.tld
  at
org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.java:1002)
  at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870)
  at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
  at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
  at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)


--
=
= Management is doing things right; leadership is doing the =
=   right things.- Peter Drucker=
=___=
= http://www.sun.com/service/sunps/jdc/javacenter.pdf   =
=  www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone  =
=




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: [OT] Re: Java method equal to perl crypt()?

2002-12-06 Thread Ralph Einfeldt
Under linux/unix a little 'performace bost' can be 
gained by using the cryptpw command directly instead 
of using the pearl function.

BTW: Unless it's the main task of the application,
performances isn't the most important thing. To 
justify the additional effort to implement that as 
jni, the system has to do a lot of password 
encryptions.

 -Original Message-
 From: Reinhard Moosauer [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 06, 2002 3:44 PM
 To: Tomcat Users List
 Subject: Re: [OT] Re: Java method equal to perl crypt()?
 
snip/
 String crypt_cmdary[]  = { /usr/bin/perl,
-e, print 
 crypt($ARGV[0],$ARGV[1]);,
testpass, xy};
snip/
 O.K. this is not the best method if you think about performance. 
 But sometimes there is no other way but this way. (except JNI, maybe)
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: tld locations??? must be directly in WEB-INF

2002-12-06 Thread Aleksandr Shneyderman

make sure that
taglib-location/WEB-INF/struts.tld/taglib-location

the /WEB-INF/ is important for some reason.
it was working in 4.0.4 but gives a problem
in 4.1.12

 -Original Message-
 From: Hanasaki JiJi [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 06, 2002 9:46 AM
 To: [EMAIL PROTECTED]
 Subject: tld locations??? must be directly in WEB-INF


 Am I reading the below error correctly?  .tld must be in the WEB-INF dir
 and not in any subdir of WEB-INF?

 I have put the struts tld's in /WEB-INF/struts/ and specified to find
 them there in web.xml

 ==


 2002-12-05 23:33:41 ContextConfig[/j2eetemplate] Exception processing
 TLD at resource path /WEB-INF/struts/struts-nested.tld
 javax.servlet.ServletException: Exception processing TLD at resource
 path /WEB-INF/struts/struts-nested.tld
at
 org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig
 .java:1010)
at
 org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870)
at
 org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
at
 org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextCo
 nfig.java:243)

 ...

 - Root Cause -
 java.lang.IllegalArgumentException: Invalid TLD resource path
 /WEB-INF/struts/struts-nested.tld
at
 org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig
 .java:1002)
at
 org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870)
at
 org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
at
 org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextCo
 nfig.java:243)
at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifec
 ycleSupport.java:166)


 --
 =
 = Management is doing things right; leadership is doing the =
 =   right things.- Peter Drucker=
 =___=
 = http://www.sun.com/service/sunps/jdc/javacenter.pdf   =
 =  www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone  =
 =




 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




[4.1.12] How to Implement Custom JNDI Tree?

2002-12-06 Thread Gavin, Rick
Hi All,
  I have implemented a JNDI tree for my sites configuration options since
the built in tomcat context can not be modified at runtime( unless something
changed ). Can anyone tell me what the best way to implement the use of it.
Currently I have a static Settings class that has a DirContext property that
is the InitialContext of the Tree.  I also tried setting the root context
object as a property of tomcats ServletContext so I'm able to request it
from within a JSP or servlet with out using the static object.  But both
ways seem a little clunky.  tomcat uses a URL to get to its own initial
context..   [ Context envCtx = (Context) initCtx.lookup(java:comp/env); ]
.  I looked at the URL binding and I thought I would ask if that's the right
( best ) way to go before I spent time on it..

Thanks for any help,

Rick

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: how many linux processes should tomcat create???

2002-12-06 Thread Brandon Cruz
Craig,

I know that actually, just mistyped.  I had talked to you about this
earlier, but should it be creating that many threads?  The issue is that
there seems to be a manager thread that monitors all of these and with that
many threads running, the manager starts taking up a large amount of CPU and
slows the system down.

Brandon

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 8:55 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: how many linux processes should tomcat create???




On Thu, 5 Dec 2002, Brandon Cruz wrote:

 Date: Thu, 5 Dec 2002 12:30:14 -0600
 From: Brandon Cruz [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: how many linux processes should tomcat create???

 Does anyone know how many processes tomcat should create?

One for each time you start Tomcat.

  When I start my
 server, there are about 525 processes created.  The number constantly
grows
 as time goes on, but I think it is related to a database connection being
 left open.

Those are not processes, those are threads.


 525 seems like a lot to start with though.

 Brandon


Craig



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Java method equal to perl crypt()?

2002-12-06 Thread Ralph Einfeldt
Here's a pure Java implementation:

http://locutus.kingwoodcable.com/jfd/crypt.html

and there too:

http://manticore.2y.net/Java/examples/


Havn't tried any of them, we call the cryptpw 
command from java.

 -Original Message-
 From: Galbayar Dorjgotov [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, November 28, 2002 10:34 AM
 To: TomCat Users
 Subject: Java method equal to perl crypt()?
 
 
 Ok, I have an existing MySQL database that has user's 
 passwords stored that were encrypted using the Perl crypt() function. 
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: tld locations??? must be directly in WEB-INF

2002-12-06 Thread Hanasaki JiJi
specifically where/inwhat file does your suggestion go?  It should only 
impact where struts tld's are found, not all tlds

Aleksandr Shneyderman wrote:
make sure that
taglib-location/WEB-INF/struts.tld/taglib-location

the /WEB-INF/ is important for some reason.
it was working in 4.0.4 but gives a problem
in 4.1.12



-Original Message-
From: Hanasaki JiJi [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 06, 2002 9:46 AM
To: [EMAIL PROTECTED]
Subject: tld locations??? must be directly in WEB-INF


Am I reading the below error correctly?  .tld must be in the WEB-INF dir
and not in any subdir of WEB-INF?

I have put the struts tld's in /WEB-INF/struts/ and specified to find
them there in web.xml

==


2002-12-05 23:33:41 ContextConfig[/j2eetemplate] Exception processing
TLD at resource path /WEB-INF/struts/struts-nested.tld
javax.servlet.ServletException: Exception processing TLD at resource
path /WEB-INF/struts/struts-nested.tld
  at
org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig
.java:1010)
  at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870)
  at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
  at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextCo
nfig.java:243)

...

- Root Cause -
java.lang.IllegalArgumentException: Invalid TLD resource path
/WEB-INF/struts/struts-nested.tld
  at
org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig
.java:1002)
  at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870)
  at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
  at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextCo
nfig.java:243)
  at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifec
ycleSupport.java:166)


--
=
= Management is doing things right; leadership is doing the =
=   right things.- Peter Drucker=
=___=
= http://www.sun.com/service/sunps/jdc/javacenter.pdf   =
=  www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone  =
=




--
To unsubscribe, e-mail:


mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



--
=
= Management is doing things right; leadership is doing the =
=   right things.- Peter Drucker=
=___=
= http://www.sun.com/service/sunps/jdc/javacenter.pdf   =
=  www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone  =
=


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Adding Jar files in Tomcat 4.1.12

2002-12-06 Thread Laxmikanth M.S.
Hi ,
In tomcat3.3.1 I added my JDBC Driver files classpath in tomcat.sh
simillarly where I have to add it in Tomcat4.1.12
thanks in advance for replies and answers
Laxmikanth

*
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Two Questions Tomcat 4.1.12 Win2000

2002-12-06 Thread Scott Purcell

Running Tomcat 4.1.12 on Win2000.

Problem 1) I created a site under webapps in which only servlets will run. I created a 
web-xml file: (see Below): All works good.
Question: When I hit the URL http://localhost/site I see a directory listing. I do not 
want this. I thought the welcome-file-list was my solution, but maybe I am wrong. How 
is the best way to turn off any type of directory listing.?

Problem 2) I am also running a vendors software on the same box, which uses tomcat 
running on 8091. I was told not to use any of its servlet engine to run my stuff, so I 
need to run another tomcat lets say on 8080. A tomcat for use on some servlets and 
rpc-xml stuff.
Anyway, is it ok to run two tomcats on one box, as long as they have different port 
numbers? Anything I may need to be aware of in this case?


Thanks,
Sincerely
Scott



?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

   servlet
  servlet-nametestServlet/servlet-name
  servlet-class/servlet/testServlet/servlet-class
   /servlet

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

   welcome-file-list
welcome-fileindex.html/welcome-file
   /welcome-file-list

/web-app
~

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: DataSource problem.

2002-12-06 Thread Manavendra Gupta
I haven't been able to solve this yet... but was wondering if tomcat logs
somewhere that the Resource Manager added a new resource (a DataSource)?

Thanks,
Manav.

-Original Message-
From: Manavendra Gupta [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 06, 2002 3:46 PM
To: Tomcat Users List
Subject: RE: DataSource problem.


Tried the same with a simplistic jsp page:

%@ page import=java.sql.*, javax.sql.*, javax.naming.* %
HTML
BODY
%
out.println(hello);
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env);
DataSource ds = (DataSource) envCtx.lookup(jdbc/rtidb);
Connection con = ds.getConnection();

//DB access code here

%



And this is what i get:

java.lang.NullPointerException
at org.apache.jsp.test$jsp._jspService(test$jsp.java:66)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
at java.lang.Thread.run(Thread.java:536)


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Two Questions Tomcat 4.1.12 Win2000

2002-12-06 Thread David Brown
Scott Purcell writes: 


Running Tomcat 4.1.12 on Win2000. 

Problem 1) I created a site under webapps in which only servlets will run. I created a web-xml file: (see Below): All works good.
Question: When I hit the URL http://localhost/site I see a directory listing. I do not want this. I thought the welcome-file-list was my solution, but maybe I am wrong. How is the best way to turn off any type of directory listing.? 

Problem 2) I am also running a vendors software on the same box, which uses tomcat running on 8091. I was told not to use any of its servlet engine to run my stuff, so I need to run another tomcat lets say on 8080. A tomcat for use on some servlets and rpc-xml stuff.
Anyway, is it ok to run two tomcats on one box, as long as they have different port numbers? Anything I may need to be aware of in this case? 


Thanks,
Sincerely
Scott 

 

?xml version=1.0 encoding=ISO-8859-1? 

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd; 

web-app 

   servlet
  servlet-nametestServlet/servlet-name
  servlet-class/servlet/testServlet/servlet-class
   /servlet 

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

   welcome-file-list
welcome-fileindex.html/welcome-file
   /welcome-file-list 

/web-app
~ 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED] 




Hello Scott, asuuming u have not packaged ur servlet try:
web-app 

 servlet
servlet-nametestServlet/servlet-name
servlet-classtestServlet/servlet-class
 /servlet 

 servlet-mapping
  servlet-nametestServlet/servlet-name
  url-pattern/testServleturl-pattern
 /servlet-mapping 

 welcome-file-list
  welcome-fileindex.html/welcome-file
 /welcome-file-list 

/web-app 



in any case u have to get rid of the invoker. hope this helps, david. 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



Thread dump

2002-12-06 Thread Manavendra Gupta
I have tomcat 4.1 running on Linux. How do i see the thread dump? The
startup.sh on linux just starts it in the background, while i could use
startup.bat on windows and get the thread dump.

thanks,
manav.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Thread dump

2002-12-06 Thread rsequeira

kill -3 pid

RS


   

  Manavendra  

  Gupta   To:   Tomcat Users List   

  [EMAIL PROTECTED]  [EMAIL PROTECTED]   

   cc: 

  12/06/02 09:53 AMSubject:  Thread dump   

  Please respond to

  Tomcat Users

  List

   

   





I have tomcat 4.1 running on Linux. How do i see the thread dump? The
startup.sh on linux just starts it in the background, while i could use
startup.bat on windows and get the thread dump.

thanks,
manav.


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]







--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Thread dump

2002-12-06 Thread Manavendra Gupta
Beg your pardon? would that not actually kill the process, rather than
displaying the thread dump?

And what if one wants to see the thread dump right from the moment tomcat
starts up?

Thanks,
manav.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 06, 2002 9:18 PM
To: Tomcat Users List
Subject: Re: Thread dump



kill -3 pid

RS



  Manavendra
  Gupta   To:   Tomcat Users List
  [EMAIL PROTECTED]
[EMAIL PROTECTED]
   cc:
  12/06/02 09:53 AMSubject:  Thread dump
  Please respond to
  Tomcat Users
  List






I have tomcat 4.1 running on Linux. How do i see the thread dump? The
startup.sh on linux just starts it in the background, while i could use
startup.bat on windows and get the thread dump.

thanks,
manav.


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]







--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Adding Jar files in Tomcat 4.1.12

2002-12-06 Thread David Rayroud
Hi,

You must put your *.jar file in this directory if you want that all
application can access to this drivers :
$TOMCAT_HOME/common/lib

Bye

David Rayroud

-Message d'origine-
De : Laxmikanth M.S. [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi, 6. décembre 2002 16:28
À : Tomcat Users List
Objet : Adding Jar files in Tomcat 4.1.12

Hi ,
In tomcat3.3.1 I added my JDBC Driver files classpath in tomcat.sh
simillarly where I have to add it in Tomcat4.1.12
thanks in advance for replies and answers
Laxmikanth

*
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.422 / Virus Database: 237 - Release Date: 20.11.2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.422 / Virus Database: 237 - Release Date: 20.11.2002



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Adding Jar files in Tomcat 4.1.12

2002-12-06 Thread Mubaraka Arif
For the Tomcat version 4.0.3-3 on Linux (Debian) I the JDBC Driver 
files in :

TOMCAT_HOME/common/lib

I have successfully used the postgresql and Informix JDBC driver 
keeping their respective jars in the above path.

Mubaraka Arif

Data Management Software Developer
Administrative Technology and Information Services
St. Mary's University, San Antonio, TX
PH : (210)-436-3647
emial : [EMAIL PROTECTED]
www.stmarytx.edu 



On 2002.12.06 09:27 Laxmikanth M.S. wrote:
Hi ,
In tomcat3.3.1 I added my JDBC Driver files classpath in tomcat.sh
simillarly where I have to add it in Tomcat4.1.12
thanks in advance for replies and answers
Laxmikanth

*
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message,
you may
not copy or deliver this message to anyone. In such case, you should
destroy
this message and kindly notify the sender by reply email. Please
advise
immediately if you or your employer does not consent to Internet email
for
messages of this kind.
*

--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Thread dump

2002-12-06 Thread rsequeira

You could use Thread.enumerate(Thread [] ) and then do a Thread.dumpStack()
on each thread in your code. I can't provide any definite answers on how to
get a thread dump right from the moment Tomcat starts, but I suppose you
could modify Tomcat code (call the about the methods in your code) to do
this.

RS



   

  Manavendra  

  Gupta   To:   Tomcat Users List   

  [EMAIL PROTECTED]  [EMAIL PROTECTED]   

   cc: 

  12/06/02 10:01 AMSubject:  RE: Thread dump   

  Please respond to

  Tomcat Users

  List

   

   





Beg your pardon? would that not actually kill the process, rather than
displaying the thread dump?

And what if one wants to see the thread dump right from the moment tomcat
starts up?

Thanks,
manav.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 06, 2002 9:18 PM
To: Tomcat Users List
Subject: Re: Thread dump



kill -3 pid

RS



  Manavendra
  Gupta   To:   Tomcat Users
List
  [EMAIL PROTECTED]
[EMAIL PROTECTED]
   cc:
  12/06/02 09:53 AMSubject:  Thread dump
  Please respond to
  Tomcat Users
  List






I have tomcat 4.1 running on Linux. How do i see the thread dump? The
startup.sh on linux just starts it in the background, while i could use
startup.bat on windows and get the thread dump.

thanks,
manav.


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]







--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]







--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Why run tomcat as root

2002-12-06 Thread Vy Ho


Very good point, but what if the administrator him/herself grand this
access to this particular user?  Linux and Unix is all about flexibility
right?  Yes, kernel would be to be changed.  But I thought I already have
that, and if it's not, then it's worth a change, versus thousands and
thousands of developers has to work around it (take it millions).



On Thu, 5 Dec 2002, Turner, John wrote:

 
 Switching UNIX/Linux to allow non-privileged users to bind to privileged
 ports would require fairly major modifications to the kernel.  There's no
 runtime parameter that can be set to magically allow regular user accounts
 to bind to a privileged port.
 
 Let's remember that the privileged port restriction is there for a reason, a
 very valid reason.  Would you really want just any user on your server to be
 able to install a homegrown listener on port 80?  I sure wouldn't...the
 potential for malicious use is huge.  Imagine somebody getting a regular
 user account on one of Amazon.com's web servers in their web server farm,
 then installing a web server on port 80 (or 443) that would simply look
 for traffic starting with 3, 4 or 5 (first digits for valid credit
 cards) and copy the traffic to an external location.  
 
 Sometimes it helps to consider the bigger picture.  The people who wrote
 UNIX weren't stupid.  They did things for a reason.  Sometimes the reason
 seems silly, sometimes it seems outdated, but after review, it usually makes
 perfect sense.  Linus and the rest of the Linux hackers could have easily
 changed this when they wrote the first Linux kernel, but they didn't.  So,
 you've got two LARGE groups of people over a combined span of about 45 years
 (30+ for UNIX, 10 or so for Linux) choosing to make ports less than 1024
 privileged.  That's good enough for me...I'll devote my efforts to something
 else rather than trying to circumvent something that's so obviously there
 for good reason.
 
 John
 
  -Original Message-
  From: Vy Ho [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, December 05, 2002 3:48 PM
  To: Tomcat Users List
  Subject: RE: Why run tomcat as root
  
  
  
  Can unix admin configure his OS to let normal app to run port 
  80?  I say
  this because Unix is very configurable.  Why you have to do 
  so much coding
  just to access port 80, why not just look at it a different way?
  
  
  
  
  
  --
  To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Why run tomcat as root

2002-12-06 Thread Turner, John

There is already a process and there are several tools for delegating
superuser access to a non-superuser account in specific circumstances, and
protecting against misuse of same.  Research things like the sudo tool,
chroot jails, etc.  Makes much more sense to me than hacking around in the
kernel.

John

 -Original Message-
 From: Vy Ho [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 06, 2002 11:12 AM
 To: Tomcat Users List
 Subject: RE: Why run tomcat as root
 
 
 
 
 Very good point, but what if the administrator him/herself grand this
 access to this particular user?  Linux and Unix is all about 
 flexibility
 right?  Yes, kernel would be to be changed.  But I thought I 
 already have
 that, and if it's not, then it's worth a change, versus thousands and
 thousands of developers has to work around it (take it millions).
 
 
 
 On Thu, 5 Dec 2002, Turner, John wrote:
 
  
  Switching UNIX/Linux to allow non-privileged users to bind 
 to privileged
  ports would require fairly major modifications to the 
 kernel.  There's no
  runtime parameter that can be set to magically allow 
 regular user accounts
  to bind to a privileged port.
  
  Let's remember that the privileged port restriction is 
 there for a reason, a
  very valid reason.  Would you really want just any user on 
 your server to be
  able to install a homegrown listener on port 80?  I sure 
 wouldn't...the
  potential for malicious use is huge.  Imagine somebody 
 getting a regular
  user account on one of Amazon.com's web servers in their 
 web server farm,
  then installing a web server on port 80 (or 443) that 
 would simply look
  for traffic starting with 3, 4 or 5 (first digits for 
 valid credit
  cards) and copy the traffic to an external location.  
  
  Sometimes it helps to consider the bigger picture.  The 
 people who wrote
  UNIX weren't stupid.  They did things for a reason.  
 Sometimes the reason
  seems silly, sometimes it seems outdated, but after review, 
 it usually makes
  perfect sense.  Linus and the rest of the Linux hackers 
 could have easily
  changed this when they wrote the first Linux kernel, but 
 they didn't.  So,
  you've got two LARGE groups of people over a combined span 
 of about 45 years
  (30+ for UNIX, 10 or so for Linux) choosing to make ports 
 less than 1024
  privileged.  That's good enough for me...I'll devote my 
 efforts to something
  else rather than trying to circumvent something that's so 
 obviously there
  for good reason.
  
  John
  
   -Original Message-
   From: Vy Ho [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, December 05, 2002 3:48 PM
   To: Tomcat Users List
   Subject: RE: Why run tomcat as root
   
   
   
   Can unix admin configure his OS to let normal app to run port 
   80?  I say
   this because Unix is very configurable.  Why you have to do 
   so much coding
   just to access port 80, why not just look at it a different way?
   
   
   
   
   
   --
   To unsubscribe, e-mail:   
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail: 
   mailto:[EMAIL PROTECTED]
   
  
  --
  To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Thread dump

2002-12-06 Thread Denis Haskin
Run it under a JPDA debugger and use something like
- Xrunjdwp:transport=dt_shmem,server=y,suspend=y
so that the JVM stops and waits for debugger commands right away.  Then 
you could get to the right point in your code, and with any decent 
debugger look at the thread dump without needing to send the signal.

By the way, what exactly do you mean by right from the moment tomcat 
starts up?  Do you mean before the tomcat's main() starts?  Before your 
servlet is loaded?

dwh

[EMAIL PROTECTED] wrote:

You could use Thread.enumerate(Thread [] ) and then do a Thread.dumpStack()
on each thread in your code. I can't provide any definite answers on how to
get a thread dump right from the moment Tomcat starts, but I suppose you
could modify Tomcat code (call the about the methods in your code) to do
this.
 




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




bypassing memory realms

2002-12-06 Thread J Doe

Background: Consider two webapps: foo and bar.  When a
user of foo performs a certain action, foo shares
files with bar by calling actions on each other via
HTTP.

We are being asked to put a memory realm on foo and
bar so that users must login. The problem is that now
the above system-level communication between foo and
bar will break.

Question: if one knows the username and password for a
webapp, can it be placed on the URL?

E.g.
http://mydomain.com:8080/foo?username=xpassword=y

I've tried this but no luck.

More generally, is there a way to do it with the
java.net URL class?  

Any ideas?  I realize that perhaps foo and bar could
communicate in a different way (RMI, JMS) but that is
not really an option for us.

thanks,
Mike

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Benchmark results for 4.1.12 vs 4.1.16

2002-12-06 Thread Peter Lin

 
I've done a fair amount of jsp and servlet development since 99 when JSP .9 spec 
wasn't implemented in most servlet containers. I doubt I can provide insight into 
improving reliability that tomcat developers haven't already thought of.
 
Most of the projects I've worked on the last three years have had some steep 
performance requirements like supporting a million users with 30% active daily. my 
last job the performance requirements were 500K to 1million pageviews a day. most of 
the reliability issues are from traffic spike and how to handle it gracefully. ie, you 
don't want the whole complex to die if traffic spikes. you also want to provide useful 
information to the user in the event the complex is overloaded.
 
probably the most important one is the server shouldn't die because the number of 
concurrent users jumped from 20/sec across the site to 300+/sec. In that reguard, 
tomcat 4 seems to do that. Well aside from developer/user errors :)
 
peter lin
 
 Remy Maucherat [EMAIL PROTECTED] wrote:Peter Lin wrote:
 today I took the day off, but tomorrow I plan on running more benchmarks. I ran into 
one weird behavior when I ran the same jmeter test with 10 threads for 5K iterations. 
Half way through tomcat stopped accepting connections, but was fine. If I wait two 
minutes, it continue to accept requests.
 
 That tells me tomcat is dramatically improved in stability. In the early days of 
servlet containers, I used to run stress tests until the servers crashed. Back in 99 
most of the servlet containers including websphere, jrun and tomcat would crash a 
couple minutes after it stopped accepting connections. Now tomcat correctly denies 
connections and performance degrades gracefully.


These days, I'm exclusively (well, almost) working on reliability and 
performance.

Performance is ok now (only remaining are a couple enhancements in 5.0), 
and is a lot easier to improve than reliability. If you have ideas for 
that, let me know.

Remy


--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


Tomcat went unconcious :-)

2002-12-06 Thread Vy Ho

When a dog sneeze and the cat got knocked down.  The following case show
that simple things could knock error out of tomcat (note that the cat does
not die).

Imagine authentication usin gmemory or database.  2 users 1 role for each.
When you login with a valid user name/pass, but wrong role for the
selected page, you won't see the invalid user/login, but you'll see access
error.  Now, go back (clicking on the back button), and then login as
valid user/role, you'll see a gain, the same message, although you should
be able to get into the page without any problem.  That's 2 knockouts
right there.

How could something this obvious, and sensity, and common slip into the
cat?





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: tld locations??? must be directly in WEB-INF - relates to Tomcatxml parser bug

2002-12-06 Thread Hanasaki JiJi
Attached is the xdoclet web.xml file that produces the below error.  The 
below references indicate that there may be a bug in the tomcat xml 
parser that is exposed by the generated web.xml.

The struts tld files are copied directly form those in a working sample
from the jakarta struts download.

Thoughts? comments?  The file looks ok to me.

Thanks.

Aleksandr Shneyderman wrote:
make sure that
taglib-location/WEB-INF/struts.tld/taglib-location

the /WEB-INF/ is important for some reason.
it was working in 4.0.4 but gives a problem
in 4.1.12



-Original Message-
From: Hanasaki JiJi [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 06, 2002 9:46 AM
To: [EMAIL PROTECTED]
Subject: tld locations??? must be directly in WEB-INF


Am I reading the below error correctly?  .tld must be in the WEB-INF dir
and not in any subdir of WEB-INF?

I have put the struts tld's in /WEB-INF/struts/ and specified to find
them there in web.xml

==


2002-12-05 23:33:41 ContextConfig[/j2eetemplate] Exception processing
TLD at resource path /WEB-INF/struts/struts-nested.tld
javax.servlet.ServletException: Exception processing TLD at resource
path /WEB-INF/struts/struts-nested.tld
  at
org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig
.java:1010)
  at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870)
  at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
  at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextCo
nfig.java:243)

...

- Root Cause -
java.lang.IllegalArgumentException: Invalid TLD resource path
/WEB-INF/struts/struts-nested.tld
  at
org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig
.java:1002)
  at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870)
  at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
  at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextCo
nfig.java:243)
  at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifec
ycleSupport.java:166)


--
=
= Management is doing things right; leadership is doing the =
=   right things.- Peter Drucker=
=___=
= http://www.sun.com/service/sunps/jdc/javacenter.pdf   =
=  www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone  =
=




--
To unsubscribe, e-mail:


mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



--
=
= Management is doing things right; leadership is doing the =
=   right things.- Peter Drucker=
=___=
= http://www.sun.com/service/sunps/jdc/javacenter.pdf   =
=  www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone  =
=

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;

web-app 

   !-- Standard Action Servlet Configuration (with debugging) --
  servlet
servlet-namestrutsAction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts/struts-config.xml/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value2/param-value
/init-param
init-param
  param-namedetail/param-name
  param-value2/param-value
/init-param
load-on-startup2/load-on-startup
  /servlet

   servlet
  servlet-nameTestServlet/servlet-name
  display-nametest servlet display name/display-name
  description![CDATA[desc of testservlet]]/description
 servlet-classcom.web.TestServlet/servlet-class

   /servlet

   servlet-mapping
  servlet-nameTestServlet/servlet-name
  url-pattern*.test/url-pattern
   /servlet-mapping

   session-config
  session-timeout5/session-timeout
   /session-config

 !--
   To specify mime mappings, create a file named mime-mappings.xml, put it in your project's mergedir.
   Organize mime-mappings.xml following this DTD slice:

   !ELEMENT mime-mapping (extension, mime-type)
   --

 !--
   To specify error pages, create a file named error-pages.xml, put it in your project's mergedir.
   Organize error-pages.xml following this DTD slice:

   !ELEMENT error-page ((error-code | exception-type), location)
   --

   !-- Struts Tag Library Descriptors --
  taglib

RE: Why run tomcat as root

2002-12-06 Thread Vy Ho

Thank you for your comment.  However, I think you gave a good practical
work around for now, when the kernel is not there yet.  But that also
means many developers still have to search for a solution.  I think kernel
developers should think about this issues, and also similar issues, and
come up with a good one.  I don't think anyone need to hack into it if
they are not expert in the kernel yet.  For now, I think using redirect
and taken your advice is a right thing to do.  I only want to say that the
problem is in the kernel team, and they should fix that in the future.
Note that I haven't develop any kernel.  My suggestion is not the best,
but hey, that means there's a better one out there, and I hope it'll make
into the next release (too bad, 2.6 feature already is frozen :-).


On Fri, 6 Dec 2002, Turner, John wrote:

 
 There is already a process and there are several tools for delegating
 superuser access to a non-superuser account in specific circumstances, and
 protecting against misuse of same.  Research things like the sudo tool,
 chroot jails, etc.  Makes much more sense to me than hacking around in the
 kernel.
 
 John
 
  -Original Message-
  From: Vy Ho [mailto:[EMAIL PROTECTED]]
  Sent: Friday, December 06, 2002 11:12 AM
  To: Tomcat Users List
  Subject: RE: Why run tomcat as root
  
  
  
  
  Very good point, but what if the administrator him/herself grand this
  access to this particular user?  Linux and Unix is all about 
  flexibility
  right?  Yes, kernel would be to be changed.  But I thought I 
  already have
  that, and if it's not, then it's worth a change, versus thousands and
  thousands of developers has to work around it (take it millions).
  
  
  
  On Thu, 5 Dec 2002, Turner, John wrote:
  
   
   Switching UNIX/Linux to allow non-privileged users to bind 
  to privileged
   ports would require fairly major modifications to the 
  kernel.  There's no
   runtime parameter that can be set to magically allow 
  regular user accounts
   to bind to a privileged port.
   
   Let's remember that the privileged port restriction is 
  there for a reason, a
   very valid reason.  Would you really want just any user on 
  your server to be
   able to install a homegrown listener on port 80?  I sure 
  wouldn't...the
   potential for malicious use is huge.  Imagine somebody 
  getting a regular
   user account on one of Amazon.com's web servers in their 
  web server farm,
   then installing a web server on port 80 (or 443) that 
  would simply look
   for traffic starting with 3, 4 or 5 (first digits for 
  valid credit
   cards) and copy the traffic to an external location.  
   
   Sometimes it helps to consider the bigger picture.  The 
  people who wrote
   UNIX weren't stupid.  They did things for a reason.  
  Sometimes the reason
   seems silly, sometimes it seems outdated, but after review, 
  it usually makes
   perfect sense.  Linus and the rest of the Linux hackers 
  could have easily
   changed this when they wrote the first Linux kernel, but 
  they didn't.  So,
   you've got two LARGE groups of people over a combined span 
  of about 45 years
   (30+ for UNIX, 10 or so for Linux) choosing to make ports 
  less than 1024
   privileged.  That's good enough for me...I'll devote my 
  efforts to something
   else rather than trying to circumvent something that's so 
  obviously there
   for good reason.
   
   John
   
-Original Message-
From: Vy Ho [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 3:48 PM
To: Tomcat Users List
Subject: RE: Why run tomcat as root



Can unix admin configure his OS to let normal app to run port 
80?  I say
this because Unix is very configurable.  Why you have to do 
so much coding
just to access port 80, why not just look at it a different way?





--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]

   
   --
   To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
  
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Tomacat and apache web server

2002-12-06 Thread Tushar Kulkarni
I am giving the exact information this time,
I have installed apache2 and tomcat 4.1.12 on windows 2000.
I have mod_jk file as well
Now I want to configure apache and tomcat. I tied reading documentation
file.
I am totally new so please help. I will appreciate.
Thanks
- Original Message -
From: Tushar Kulkarni [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, December 05, 2001 12:57 PM
Subject: Tomacat and apache web server


 How to configure tomcat and apache web server?
 Please help!



 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Thread dump

2002-12-06 Thread Manavendra Gupta
Thanks. I'm gonna try jpda - i have just started exploring it.

i was interested to see the thread dump from the point tomcat's main()
starts, to get a hang of the sequence of the class loaders/resource
managers/security realms, etc starting up.

thanks,
manav.

-Original Message-
From: Denis Haskin [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 06, 2002 9:53 PM
To: Tomcat Users List
Subject: Re: Thread dump


Run it under a JPDA debugger and use something like
- Xrunjdwp:transport=dt_shmem,server=y,suspend=y
so that the JVM stops and waits for debugger commands right away.  Then
you could get to the right point in your code, and with any decent
debugger look at the thread dump without needing to send the signal.

By the way, what exactly do you mean by right from the moment tomcat
starts up?  Do you mean before the tomcat's main() starts?  Before your
servlet is loaded?

dwh

[EMAIL PROTECTED] wrote:

You could use Thread.enumerate(Thread [] ) and then do a Thread.dumpStack()
on each thread in your code. I can't provide any definite answers on how to
get a thread dump right from the moment Tomcat starts, but I suppose you
could modify Tomcat code (call the about the methods in your code) to do
this.





--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: tld locations??? must be directly in WEB-INF - relates to Tomcat xml parser bug

2002-12-06 Thread Aleksandr Shneyderman

First of all take all of your struts tlds and put
them directly into WEB-INF directory

your dir structure will be
WEB-INF\
   struts-bean.tld
   struts-html.tld
   struts-logic.tld
   struts-nested.tld
   struts-tiles.tld

now fix your web.xml
as folows
- taglib
  taglib-uristruts-bean/taglib-uri
  taglib-location/WEB-INF/struts-bean.tld/taglib-location
  /taglib
- taglib
  taglib-uristruts-html/taglib-uri
  taglib-location/WEB-INF/struts-html.tld/taglib-location
  /taglib
- taglib
  taglib-uristruts-logic/taglib-uri
  taglib-location/WEB-INF/struts-logic.tld/taglib-location
  /taglib
- taglib
  taglib-uristruts-nested/taglib-uri
  taglib-location/WEB-INF/struts-nested.tld/taglib-location
  /taglib
- taglib
  taglib-uristruts-tiles/taglib-uri
  taglib-location/WEB-INF/struts-tiles.tld/taglib-location
  /taglib

and lastly,
   why don't you read the struts documentation?

Alex.

 -Original Message-
 From: Hanasaki JiJi [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 06, 2002 11:50 AM
 To: Tomcat Users List
 Subject: Re: tld locations??? must be directly in WEB-INF - relates to
 Tomcat xml parser bug


 Attached is the xdoclet web.xml file that produces the below error.  The
 below references indicate that there may be a bug in the tomcat xml
 parser that is exposed by the generated web.xml.

 The struts tld files are copied directly form those in a working sample
 from the jakarta struts download.

 Thoughts? comments?  The file looks ok to me.

 Thanks.

 Aleksandr Shneyderman wrote:
  make sure that
  taglib-location/WEB-INF/struts.tld/taglib-location
 
  the /WEB-INF/ is important for some reason.
  it was working in 4.0.4 but gives a problem
  in 4.1.12
 
 
 -Original Message-
 From: Hanasaki JiJi [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 06, 2002 9:46 AM
 To: [EMAIL PROTECTED]
 Subject: tld locations??? must be directly in WEB-INF
 
 
 Am I reading the below error correctly?  .tld must be in the WEB-INF dir
 and not in any subdir of WEB-INF?
 
 I have put the struts tld's in /WEB-INF/struts/ and specified to find
 them there in web.xml
 
 ==
 
 
 2002-12-05 23:33:41 ContextConfig[/j2eetemplate] Exception processing
 TLD at resource path /WEB-INF/struts/struts-nested.tld
 javax.servlet.ServletException: Exception processing TLD at resource
 path /WEB-INF/struts/struts-nested.tld
at
 org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig
 .java:1010)
at
 org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.
 java:870)
at
 org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
at
 org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextCo
 nfig.java:243)
 
 ...
 
 - Root Cause -
 java.lang.IllegalArgumentException: Invalid TLD resource path
 /WEB-INF/struts/struts-nested.tld
at
 org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig
 .java:1002)
at
 org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.
 java:870)
at
 org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
at
 org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextCo
 nfig.java:243)
at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifec
 ycleSupport.java:166)
 
 
 --
 =
 = Management is doing things right; leadership is doing the =
 =   right things.- Peter Drucker=
 =___=
 = http://www.sun.com/service/sunps/jdc/javacenter.pdf   =
 =  www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone  =
 =
 
 
 
 
 --
 To unsubscribe, e-mail:
 
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
=
= Management is doing things right; leadership is doing the =
=   right things.- Peter Drucker=
=___=
= http://www.sun.com/service/sunps/jdc/javacenter.pdf   =
=  www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone  =
=


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Why run tomcat as root

2002-12-06 Thread Turner, John

Well, we are going around in circles.  You're not understanding that the
developers HAVE thought about this issue, and have thought about it for
years (more than 40 years).  It's not a mistake.  Not only have they thought
about it, they've had ample opportunity to start over and implement the
feature you're talking about, and have decided NOT to do it.  Do you get
that?  Not to be rude, but nobody, nobody, is going to seriously consider
doing what you want to do in any future versions of Linux.  Why on earth
would they completely reverse previous design decisions in an incremental
release instead of designing it that way from the beginning?

The things I've suggested aren't workarounds.  Workaround implies
something that is done to get around a bug.  That isn't the case.  The
things that I (and others) have suggested are viable alternatives for doing
what you want to do, instead of destroying a major design decision that was
made years ago for very good reason.

There's no problem in the kernel team from the perspective of the
privileged ports issue.  The scheme is set up the way it is set up for very
good reason, and unless you have a better reason for changing it (you
don't...convenience is not a reason) it isn't going to get changed, at
least not as an official release.  If you want to change it, you'll have to
take the source and change it yourself, find someone else to change it for
you, or pay someone to change it for you.

John

 -Original Message-
 From: Vy Ho [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 06, 2002 11:51 AM
 To: Tomcat Users List
 Subject: RE: Why run tomcat as root
 
 
 
 Thank you for your comment.  However, I think you gave a good 
 practical
 work around for now, when the kernel is not there yet.  But that also
 means many developers still have to search for a solution.  I 
 think kernel
 developers should think about this issues, and also similar 
 issues, and
 come up with a good one.  I don't think anyone need to hack into it if
 they are not expert in the kernel yet.  For now, I think 
 using redirect
 and taken your advice is a right thing to do.  I only want to 
 say that the
 problem is in the kernel team, and they should fix that in the future.
 Note that I haven't develop any kernel.  My suggestion is not 
 the best,
 but hey, that means there's a better one out there, and I 
 hope it'll make
 into the next release (too bad, 2.6 feature already is frozen :-).
 
 
 On Fri, 6 Dec 2002, Turner, John wrote:
 
  
  There is already a process and there are several tools for 
 delegating
  superuser access to a non-superuser account in specific 
 circumstances, and
  protecting against misuse of same.  Research things like 
 the sudo tool,
  chroot jails, etc.  Makes much more sense to me than 
 hacking around in the
  kernel.
  
  John
  
   -Original Message-
   From: Vy Ho [mailto:[EMAIL PROTECTED]]
   Sent: Friday, December 06, 2002 11:12 AM
   To: Tomcat Users List
   Subject: RE: Why run tomcat as root
   
   
   
   
   Very good point, but what if the administrator 
 him/herself grand this
   access to this particular user?  Linux and Unix is all about 
   flexibility
   right?  Yes, kernel would be to be changed.  But I thought I 
   already have
   that, and if it's not, then it's worth a change, versus 
 thousands and
   thousands of developers has to work around it (take it millions).
   
   
   
   On Thu, 5 Dec 2002, Turner, John wrote:
   

Switching UNIX/Linux to allow non-privileged users to bind 
   to privileged
ports would require fairly major modifications to the 
   kernel.  There's no
runtime parameter that can be set to magically allow 
   regular user accounts
to bind to a privileged port.

Let's remember that the privileged port restriction is 
   there for a reason, a
very valid reason.  Would you really want just any user on 
   your server to be
able to install a homegrown listener on port 80?  I sure 
   wouldn't...the
potential for malicious use is huge.  Imagine somebody 
   getting a regular
user account on one of Amazon.com's web servers in their 
   web server farm,
then installing a web server on port 80 (or 443) that 
   would simply look
for traffic starting with 3, 4 or 5 (first digits for 
   valid credit
cards) and copy the traffic to an external location.  

Sometimes it helps to consider the bigger picture.  The 
   people who wrote
UNIX weren't stupid.  They did things for a reason.  
   Sometimes the reason
seems silly, sometimes it seems outdated, but after review, 
   it usually makes
perfect sense.  Linus and the rest of the Linux hackers 
   could have easily
changed this when they wrote the first Linux kernel, but 
   they didn't.  So,
you've got two LARGE groups of people over a combined span 
   of about 45 years
(30+ for UNIX, 10 or so for Linux) choosing to make ports 
   less than 1024
privileged.  That's good 

RE: Tomcat went unconcious :-)

2002-12-06 Thread Bodycombe, Andrew
This could be an issue with your browser.
Maybe the page has been cached?

Andy 

-Original Message-
From: Vy Ho
To: Tomcat Users List
Sent: 06/12/2002 16:46
Subject: Tomcat went unconcious :-)


When a dog sneeze and the cat got knocked down.  The following case show
that simple things could knock error out of tomcat (note that the cat
does
not die).

Imagine authentication usin gmemory or database.  2 users 1 role for
each.
When you login with a valid user name/pass, but wrong role for the
selected page, you won't see the invalid user/login, but you'll see
access
error.  Now, go back (clicking on the back button), and then login as
valid user/role, you'll see a gain, the same message, although you
should
be able to get into the page without any problem.  That's 2 knockouts
right there.

How could something this obvious, and sensity, and common slip into the
cat?





--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Problem with http OPTIONS using mod_jk for IIS

2002-12-06 Thread Tim Moore
I have been able to track down the problem, but I don't know whether it's been solved 
yet in the JK 1.x code.

The problem has to do with the way the ISAPI filter registers itself with IIS.  An 
ISAPI filter can specify the events within IIS that it responds to.  The Tomcat filter 
specifes that it responds to the SF_NOTIFY_AUTH_COMPLETE event on IIS 5.  The problem 
is that OPTIONS requests are not authenticated by IIS, and therefore never trigger an 
SF_NOTIFY_AUTH_COMPLETE event.

I believe that in JK2, the filter can be configured to respond to the 
SF_NOTIFY_PREPROC_HEADERS event instead.  Also, the ISAPI filter that came with Tomcat 
3.3 responds to the SF_NOTIFY_PREPROC_HEADERS event rather than 
SF_NOTIFY_AUTH_COMPLETE.  I haven't tried to get JK2 working yet--I just downgraded to 
the Tomcat 3.3 ISAPI filter.  That version, however, has another problem, related to 
the proprietary Microsoft Translate header used by IIS and Web Folders.  We resolved 
that with a custom filter that removes the Translate header from the request.  I can 
provide more details about this problem off-list if you like.

Also see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iisref/html/psdk/asp/isgu744y.asp
(or http://makeashorterlink.com/?K1E726FA2)
for more information about IIS events.

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


 -Original Message-
 From: Joakim Ström [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, December 04, 2002 11:01 AM
 To: Tomcat Users list
 Subject: Problem with http OPTIONS using mod_jk for IIS
 
 
 
 Hello,
 
 I have tried to use JK2 with IIS but ran into a problem with 
 corrupted files (posted earlier on this list). I'm not sure 
 about the status of JK2 (is it still in beta?)
 
 So now I am trying with the older mod_jk 1.2.1. But in this 
 case, all HTTP OPTIONS requests are turned down with status 
 500 internal server error code. The options requests never 
 enter my servlet code.
 
 I found a similar question which has been posted earlier to Bugzilla:
 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8709

The problem description seems identical to what I am experiencing. Does anybody recall 
whether that case was settled, and what caused this behavior? Or have any ideas about 
the problem?

Thanks in advance,
Joakim Strom
System Architect, Excosoft



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Tomcat went unconcious :-)

2002-12-06 Thread Praveen Wicliff
That is difficult to believe. But in either case, I think its more to do
with the page cache in the browser (assuming your programming is right
:-)try to delete temp. internet files and try again.

Praveen Wicliff


- Original Message -
From: Vy Ho [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, December 06, 2002 10:16 PM
Subject: Tomcat went unconcious :-)



 When a dog sneeze and the cat got knocked down.  The following case show
 that simple things could knock error out of tomcat (note that the cat does
 not die).

 Imagine authentication usin gmemory or database.  2 users 1 role for each.
 When you login with a valid user name/pass, but wrong role for the
 selected page, you won't see the invalid user/login, but you'll see access
 error.  Now, go back (clicking on the back button), and then login as
 valid user/role, you'll see a gain, the same message, although you should
 be able to get into the page without any problem.  That's 2 knockouts
 right there.

 How could something this obvious, and sensity, and common slip into the
 cat?





 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: bypassing memory realms

2002-12-06 Thread David Brown
J Doe writes: 


Background: Consider two webapps: foo and bar.  When a
user of foo performs a certain action, foo shares
files with bar by calling actions on each other via
HTTP. 

We are being asked to put a memory realm on foo and
bar so that users must login. The problem is that now
the above system-level communication between foo and
bar will break. 

Question: if one knows the username and password for a
webapp, can it be placed on the URL? 

E.g.
http://mydomain.com:8080/foo?username=xpassword=y 

I've tried this but no luck. 

More generally, is there a way to do it with the
java.net URL class?   

Any ideas?  I realize that perhaps foo and bar could
communicate in a different way (RMI, JMS) but that is
not really an option for us. 

thanks,
Mike 

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED] 



Hello Mike, u could use java beans type classes and session attributes get 
and set between the to webapps. store and check the session id's to insure 
valid data by using the corresponding session id. i personally would not use 
the users id and password in the url even if it was private as long as there 
were other as yet unauthenticated users on the local subnet. and, of course, 
don't even mention doing this on the public wire (you would be asking to get 
severely compromised). the memoryRealm would be ok if u MD5 digest the 
passwords in the otherwise human readable flat ASCII text tomcat-users.xml 
file but u would prove to be a PITA under load of many simultaneous users 
(though a low user count would be ok). preferably, use the JDBCRealm which 
works great 4 me running oracle but u can run mySQL or postgresql and allows 
queries where the users table can be a fk to some other business logic 
table. hope this helps, david. 


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



How to upgrade form 4.1.12 to 4.1.16beta?

2002-12-06 Thread Brandon Cruz
What is the easiest way to upgrade from tomcat 4.1.12 to 4.1.16 beta?

Can I just move my server.xml, shared libraries, and webapps over to the new
directory?

Better yet, can I just copy some of the new jar files into the original
tomcat directory?

Brandon


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Tomcat, SOAP and SSH

2002-12-06 Thread Noel J. Bergman
 I've got two servers: one for the frontend (Internet) and one backend.
 The Communication between them is implemented as SAOP-webservice. Now,I
 wan't to have the Communication through an SSH-tunnel.

  ssh -2 -N -T -q -L 8080:$remote-name:8080 $remote-name


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Tomcat went unconcious :-)

2002-12-06 Thread Vy Ho

I think it has something to do with both.  When close the browser, and try
again, it works on the later problem (logging in with valid users after an
invalid login).  However, the first problem, where logging in with an
invalid role but valid user/pass still there.  That is the web should not
send the access forbidden, or illegal access, but show the loginerror
page.  (I forget to mention this is form type login).

The cache problem maybe due to browser, but I think the news information
does get submitted to the server.  So the cache is not the
username/password, but it's the session information.  Again, if this is
the case, then the server should use the username/password instead of the
invalid session (Which I suspect they store in the basic authen scheme, or
cookies).  So, the server should be able to solve this problem too.

This problem also show up using the built-in (versus formbase) popup basic
authen.  When you log into a webapp using valid user/pass/role.  Then you
change to another webapp on the server with a different users/pass/role,
then you get error.  This should be fixed by browsers (that is to detect
that you went to a differernt directory now).  For the server, it may be
able to address this too, but I don't know much about it.

On Fri, 6 Dec 2002, Bodycombe, Andrew wrote:

 This could be an issue with your browser.
 Maybe the page has been cached?
 
 Andy 
 
 -Original Message-
 From: Vy Ho
 To: Tomcat Users List
 Sent: 06/12/2002 16:46
 Subject: Tomcat went unconcious :-)
 
 
 When a dog sneeze and the cat got knocked down.  The following case show
 that simple things could knock error out of tomcat (note that the cat
 does
 not die).
 
 Imagine authentication usin gmemory or database.  2 users 1 role for
 each.
 When you login with a valid user name/pass, but wrong role for the
 selected page, you won't see the invalid user/login, but you'll see
 access
 error.  Now, go back (clicking on the back button), and then login as
 valid user/role, you'll see a gain, the same message, although you
 should
 be able to get into the page without any problem.  That's 2 knockouts
 right there.
 
 How could something this obvious, and sensity, and common slip into the
 cat?
 
 
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Configurion tomcat

2002-12-06 Thread Fabricio B. Teixeira
I want to install TomCat in my computer but i don´t
know if it requires a hard configuration time. Could
you please tell me the dificulties in configurin
tomcat.

Fabricio

___
Busca Yahoo!
O melhor lugar para encontrar tudo o que você procura na Internet
http://br.busca.yahoo.com/

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: bypassing memory realms

2002-12-06 Thread Andreas Probst
Hi Mike,

try http://name:pass@www.

How do you know the password?

Andreas

On 6 Dec 2002 at 8:33, J Doe wrote:

 
 Background: Consider two webapps: foo and bar.  When a
 user of foo performs a certain action, foo shares
 files with bar by calling actions on each other via
 HTTP.
 
 We are being asked to put a memory realm on foo and
 bar so that users must login. The problem is that now
 the above system-level communication between foo and
 bar will break.
 
 Question: if one knows the username and password for a
 webapp, can it be placed on the URL?
 
 E.g.
 http://mydomain.com:8080/foo?username=xpassword=y
 
 I've tried this but no luck.
 
 More generally, is there a way to do it with the
 java.net URL class?  
 
 Any ideas?  I realize that perhaps foo and bar could
 communicate in a different way (RMI, JMS) but that is
 not really an option for us.
 
 thanks,
 Mike
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED] For
 additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: How do you select to call doPost or doGet method?

2002-12-06 Thread Garrett Smith
What did you forward from?

If you're forwarding from a doPost method, the servlet you're forwarding to
will call doPost. Same principal applies to a RequestDispatcher forwarding from
a doGet method.

ServletA 
 doPost -forward - ServletB 
  doPost

The HttpServletRequest has post data or get data. 


--- Peter Lee [EMAIL PROTECTED] wrote:
 When using the Requestdispatcher, how do you select to call doPost or
 doGet method of servlet? How to specify which one to call?
 
 Thanks.
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


=
http://dhtmlkitchen.com/
JSP | Servlets | DHTML 

Garrett Needs A Job

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Where to put JSP files?

2002-12-06 Thread micael
Thanks.  I have always put the webpages under WEB-INF to avoid directory 
views.  This is a realistic option.

At 03:45 AM 12/6/2002 -0800, you wrote:
To prevent users from seeing any directory add the
entry
welcome-file-list
welcome-fileindex.jsp/welcome-file
/welcome-file-list
To your web.xml and in every directory, place a copy
of index.jsp.  It can just be a redirect to your home
page.
--- Peter Lee [EMAIL PROTECTED] wrote:
 Where should I put my jsp files? I usually put them
 above the /web-inf folder, but this
 would allow  clients to see the directory listing.
 Should I use a redirect mapping to
 protect them from being viewed? In which file should
 I do it?

 Thanks

 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]



__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



RE: Configurion tomcat

2002-12-06 Thread Turner, John

1. Download and install JDK
2. Download Tomcat binary install package
3. Uncompress Tomcat binary install package
4. set environment variable named JAVA_HOME to location of JDK
5. set environment variable named CATALINA_HOME to location of Tomcat
installation
6. In CATALINA_HOME/bin, execute startup.sh or startup.bat depending on your
platform
7. Access Tomcat at http://localhost:8080

John


 -Original Message-
 From: Fabricio B. Teixeira [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 06, 2002 1:01 PM
 To: [EMAIL PROTECTED]
 Subject: Configurion tomcat
 
 
 I want to install TomCat in my computer but i don´t
 know if it requires a hard configuration time. Could
 you please tell me the dificulties in configurin
 tomcat.
 
 Fabricio
 
 __
 _
 Busca Yahoo!
 O melhor lugar para encontrar tudo o que você procura na Internet
 http://br.busca.yahoo.com/
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Tomcat went unconcious :-)

2002-12-06 Thread Bodycombe, Andrew
I think this is a matter of interpretation.

You have successfully logged, using a valid user name and password so you do
not see the login failure page. You are then trying to access a resource to
which you have no access so are presented with a 403 Forbidden page.
Personally, I see no problem here, but others may disagree.

Andy.

-Original Message-
From: Vy Ho
To: Tomcat Users List
Sent: 06/12/2002 17:59
Subject: RE: Tomcat went unconcious :-)


I think it has something to do with both.  When close the browser, and
try
again, it works on the later problem (logging in with valid users after
an
invalid login).  However, the first problem, where logging in with an
invalid role but valid user/pass still there.  That is the web should
not
send the access forbidden, or illegal access, but show the loginerror
page.  (I forget to mention this is form type login).

The cache problem maybe due to browser, but I think the news information
does get submitted to the server.  So the cache is not the
username/password, but it's the session information.  Again, if this is
the case, then the server should use the username/password instead of
the
invalid session (Which I suspect they store in the basic authen scheme,
or
cookies).  So, the server should be able to solve this problem too.

This problem also show up using the built-in (versus formbase) popup
basic
authen.  When you log into a webapp using valid user/pass/role.  Then
you
change to another webapp on the server with a different users/pass/role,
then you get error.  This should be fixed by browsers (that is to detect
that you went to a differernt directory now).  For the server, it may be
able to address this too, but I don't know much about it.

On Fri, 6 Dec 2002, Bodycombe, Andrew wrote:

 This could be an issue with your browser.
 Maybe the page has been cached?
 
 Andy 
 
 -Original Message-
 From: Vy Ho
 To: Tomcat Users List
 Sent: 06/12/2002 16:46
 Subject: Tomcat went unconcious :-)
 
 
 When a dog sneeze and the cat got knocked down.  The following case
show
 that simple things could knock error out of tomcat (note that the cat
 does
 not die).
 
 Imagine authentication usin gmemory or database.  2 users 1 role for
 each.
 When you login with a valid user name/pass, but wrong role for the
 selected page, you won't see the invalid user/login, but you'll see
 access
 error.  Now, go back (clicking on the back button), and then login as
 valid user/role, you'll see a gain, the same message, although you
 should
 be able to get into the page without any problem.  That's 2 knockouts
 right there.
 
 How could something this obvious, and sensity, and common slip into
the
 cat?
 
 
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




  1   2   >