RE: Tomcat 4.1.12 Form authentication with IIS 5

2003-02-14 Thread Paul Bothma
Hi,

I've changed the web.xml to the following:

security-constraint
  display-nameHP Admin Security Constraint/display-name
  web-resource-collection
 web-resource-nameProtected Area/web-resource-name
 url-pattern/admin/index.jsp/url-pattern
 url-pattern/admin/products.jsp/url-pattern
 url-pattern/admin/groups.jsp/url-pattern
  /web-resource-collection
  auth-constraint
 role-nameadmin/role-name
  /auth-constraint
/security-constraint

login-config
  auth-methodFORM/auth-method
  realm-nameusers/realm-name
  form-login-config
form-login-page/admin/login.jsp/form-login-page
form-error-page/jsp/error.jsp?code=login/form-error-page
  /form-login-config
/login-config


!-- Security roles referenced by this web application --
security-role
  role-nameadmin/role-name
/security-role

, so as you can see the login.jsp page is not in the secured area any more.
At the moment, I do get directed to the login.jsp but when I try to submit
the form to 'j_security_check' I get the following error from IIS:

HTTP 405 - Resource not allowed.

When I modify uriworkermap.properties to include j_security_check, I get
redirected to a '404' error from Tomcat (based on my error-page settings
in web.xml). When I consult my MySQL logs I can see that Tomcat does not
even reach the stage where it should try to authenticate using MySQL.

Here is the relevant bit from my localhost_hp_log.txt

Log starts---

2003-02-14 10:15:23 Authenticator[/HP]: Security checking request POST
/HP/admin/j_security_check
2003-02-14 10:15:23 Authenticator[/HP]: Already authenticated ''
2003-02-14 10:15:23 Authenticator[/HP]:  Not subject to any constraint
2003-02-14 10:15:23 StandardContext[/HP]: Mapping contextPath='/HP' with
requestURI='/HP/admin/j_security_check' and
relativeURI='/admin/j_security_check'
2003-02-14 10:15:23 StandardContext[/HP]:  Mapped to servlet 'default' with
servlet path '/admin/j_security_check' and path info 'null' and update=true
2003-02-14 10:15:23 StandardContext[/HP]: Mapping contextPath='/HP' with
requestURI='/HP/jsp/error.jsp' and relativeURI='/jsp/error.jsp'
2003-02-14 10:15:23 StandardContext[/HP]:  Mapped to servlet 'jsp' with
servlet path '/jsp/error.jsp' and path info 'null' and update=true

Log ends---

Also, for some reason when I go to /admin it takes quite a long time (about
5 sec) to redirect me to login.jsp, whereas when I go to /admin on port 8080
it goes much quicker and it add the jsessionid= to the URL (which it
doesn't do with IIS)

Thanks,

Paul

-Original Message-
From: Sean Dockery [mailto:[EMAIL PROTECTED]]
Sent: 14 February 2003 04:08
To: Tomcat Users List
Subject: Re: Tomcat 4.1.12 Form authentication with IIS 5


What happens when you move your form-login-page outside of the /admin/
folder?

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com
- Original Message -
From: Paul Bothma [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 13, 2003 06:11
Subject: Tomcat 4.1.12 Form authentication with IIS 5


 Hi,

 I'm using Tomcat 4.1.12 with IIS 5. When I connect directly to
 http://localhost:8080/HP/admin/ the Tomcat FORM authentication works fine,
 but when I try to connect to http://localhost/HP/admin I get the following
 error:

 HTTP Status 403 - Access to the requested resource has been denied

 --
--
 

 type Status report

 message Access to the requested resource has been denied

 description Access to the specified resource (Access to the requested
 resource has been denied) has been forbidden.


 --
--
 

 Apache Tomcat/4.1.12

 Here is the relevant extract from my web.xml file:

 security-constraint
   display-nameHP Administration/display-name
   web-resource-collection
  web-resource-nameProtected Area/web-resource-name
  url-pattern/admin/*/url-pattern
   /web-resource-collection
   auth-constraint
  role-nameHP_admin/role-name
   /auth-constraint
 /security-constraint

 login-config
   auth-methodFORM/auth-method
   realm-nameusers/realm-name
   form-login-config
 form-login-page/admin/login.jsp/form-login-page
 form-error-page/error.html/form-error-page
   /form-login-config
 /login-config


 !-- Security roles referenced by this web application --
 security-role
   role-nameHP_admin/role-name
 /security-role

 I'm using the isapi_redirect.dll filter in IIS to redirect any request to
 *.jsp to Tomcat. (Works fine outside of the secure sections)

 Any ideas on how to correct this error.

 Paul


 -
 To 

Re: MySql connection pool difficulties

2003-02-14 Thread Martin Jacobson
Tom O'Neil wrote:

After scouring the mailing list and a few forums, I'm
still at a dead end attempting to get MySql connection
pooling working with Tomcat. I'm running the following
on Windows 2000:

Tomcat 4.1.18
MySql 4.0.10
JDK 1.4.1

I've tried using both the MySql 3.0.5 and 2.0.14
drivers. I've placed these in [tomcat root]\common\lib
(only one at a time - never both simultaenously). I
know my code and web.xml are pretty solid, because I'm
porting a funtional app from WebSphere 5.0. 
snip


And the error I'm getting is:

Cannot create JDBC driver of class
'com.mysql.jdbc.Driver' for connect URL
'jdbc:mysql//localhost:3306/dsdemo?autoReconnect=true'

It seems that a fair amount of other folk have
encountered this same problem, but I have to stumble
across a solutions. Any help would be appreciated.


Your config looks OK - I compared it to mine (which works!), and could 
see nothing out of the ordinary.
But, is your error message complete? A problem I had to begin with was 
that since Java can only create 'proper' sockets (ie not UNIX_SOCKETs), 
mysql was actually receiving a connection request from my.domain.name, 
and NOT from localhost. Since I only had mysql authorisation set up for 
localhost, the connection was refused. The correction was obvious once I 
spotted it!
However, this was on a Unix Box (Mac OS X, actually), so under Windows, 
things may be different.

HTH !

Martin



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



Re: AW: modified jsp-files and jasper2

2003-02-14 Thread Sven Köhler
It can take up to 15 seconds (default) for Tomcat to poll for changes to
class files.  The frequency of how often Tomcat checks can be changed via
the Loader checkInterval property in the containing Context node.  Ensure
Context.reloadable and Loader.reloadable are not set to false; they are true
by default.


according to the docs, this config should do:

servlet
servlet-namejsp/servlet-name
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namelogVerbosityLevel/param-name
param-valueWARNING/param-value
/init-param
init-param
param-namecompiler/param-name
param-valuejikes/param-value
/init-param
init-param
param-namedevelopment/param-name
param-valuefalse/param-value
/init-param
init-param
param-namereloading/param-name
param-valuetrue/param-value
/init-param
init-param
param-namecheckInterval/param-name
param-value10/param-value
/init-param
load-on-startup3/load-on-startup
/servlet

BUT:
5 minutes ago, i had a case, where it didn't work.
The page was uploaded an hour ago, but you still couldn't see the 
correct page online. I checked the work-folder, and the jsp-page has 
_not_ been compiled. the old .java and .class file was still there.

Hitting the reload-button in the manager-app always helps.

we also uploaded another update of the same page, and this time, the 
jsp-page was recompiled, and we could see the new page - as it should 
normally be.

The reloadable property of the context shouldn't matter, because it's 
for the files in the WEB-INF-folder (it says, whether they can will be 
automatically reloaded or not)

hitting the reload-button in the manager-app shouldn't help at all, 
because the classes generated from JSP-files should be reloaded by Jasper.

Even if i'm wrong, it should always _not_ work, or always work, but not 
like it is now: it works sometimes, but not always

I am uncertain whether or not JSP files are included in this particular
check or if there is another layer elsewhere.  But a good guideline is to
wait for at least 60 seconds before testing newly uploaded JSP files.


You also tell me, that the checkInterval-Option of Jasper is completly 
useless? and i would have to wait 60sec?

We waited more than 60sec, but it didn't work.



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



RE: Log4J and tomcat using Commons logging

2003-02-14 Thread Collins, Jim
Hi,

I have managed to get log4j to work for my webapps. I just have a
log4j.properties file in WEB-INF/classes and it works. I can't get
commons-logging to work though. If I try commons-logging it does not pick up
my log4j.properties file yet using log4j directly does pick up the file.

I have spent a lot of time trawling Tomcat/Struts/Commons mail archives to
try and find how to get this to work to no avail. Reading these mail
archives I can see that a lot of other people are having the same problem as
me.

As Tomcat and Struts uses commons-logging could someone please try and
clarify how we set up a webapp to use commons-logging with its own
configuration file. I am sure this would prove useful to a large number of
users.

Many thanks

Jim.

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
 Sent: 13 February 2003 18:11
 To: Tomcat Users List
 Subject: RE: Log4J and tomcat
 
 
 
 Howdy,
 FYI: we deploy in packed .war files (and have 
 unpackWARs=false in the
 Host elements of server.xml).  We use log4j with a properties
 configuration file.  The way we configure log4j is in a servlet
 listener's contextInitialized(ServletContext sce) method, using 
 URL configurationFileUrl =
 sce.getServletContext().getResource(/WEB-INF/config/log4j.prop);
 PropertyConfigurator.configure(configurationFileUrl);
 
 This works from wars, unpacked wars, etc.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 1:03 PM
 To: Tomcat Users List
 Subject: Re: Log4J and tomcat
 
 I'll keep you posted if I ever figure something out.
 
 The problem prob. is that since the common-logging and log4j 
 use a lot
 of
 static objects I'm getting what tomcat has already set up (this is a
 theory
 mind you)
 
 - Original Message -
 From: tomcat guy [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, February 13, 2003 12:57 PM
 Subject: Re: Log4J and tomcat
 
 
  Sloan, sorry can't help you out but if you find a solution I'd be
 interested
  in how you came up with the fix... Learnin about log4j it 
 could help
 in
 the
  future
 
  - Original Message -
  From: Sloan Seaman [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, February 12, 2003 3:23 PM
  Subject: Log4J and tomcat
 
 
   I'm deploying a war file using tomcat and I wish to use Apache's
 common
   logging api to log things (log4j behind the scenes).
  
   For some reason my configuration file seems to be getting ignored
 but
 my
   log.info msgs are showing up in the console window for Tomcat.
  
   Can someone tell me why this is happening?
  
   How do I get my app to use my log4j conf file?
  
   Thanks!
   --
   Sloan
  
  
  
  
 -
   To unsubscribe, e-mail: 
 [EMAIL PROTECTED]
   For additional commands, e-mail:
 [EMAIL PROTECTED]
  
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: 
 [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any 
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and 
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services 

Tomcat 4.1.18: How to send HTTP errors from servlets

2003-02-14 Thread Oliver Schoenwald
Hello,

we have updated from Tomcat 3.2.4 to 4.1.8 and now have problems with 
one of our servlets.
Under 3.2.4, this servlet send an HTTP_UNAUTHORIZED under certain 
circumstances and the
Browser popped up his Login-Windows. Now, under 4.1.8, the engine 
catches this error and
wraps an html-page around it, delivering a valid html-page instead of 
the HTTP-error created
by the servlet using the sendError-Method of HttpServlet.Response.

So far I was not able to find out by what configuration or mechanism the 
engine catches such
errors and wraps its own html-output around it. We installed the engine 
as binary under Linux
and added our own authentication Realm and a Valve to do some 
after-work-cleansing.

Can I de-activate it ('it' = the wrapping of http-error responses as 
html-pages)? How? Would this be
ok or bad?
Can I configure it to allow errors send by the servlet to be given 
straight to the client? How?
Do I have to use another method to deliver HTTP-errors instead of the 
standard servlet API?


Thank you in advance,

Oliver Schönwald



--
Oliver Schönwald, Diplom-Informatiker

Entwicklungsgruppe Lernraum Virtuelle Universität - FernUniversität Hagen
Universitätsstr.21/AVZ - 58084 Hagen
Fon: +49 2331 987 1721 - Fax: +49 2331 987 



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



Two Host and Same Context

2003-02-14 Thread Laxmikanth M.S.
Hi all,
In tomcat 4.1.12 I have created two hosts and in each host there is a
context with same name
my questions are 
how to access the second host 
How to diffrentiate the Hosts
Thanks in advance for the replies

*
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Access to TOMCAT

2003-02-14 Thread Alberto A C A S Magalhães
**
Este email assim como os ficheiros que possa ter em anexo são confidenciais
e para uso exclusivo da pessoa ou organização para o qual foi enviado.
Se recebeu este email por engano por favor notifique [EMAIL PROTECTED]

Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper
não tendo sido encontrados virus.

www.mimesweeper.com
***

Hi,
I installed TOMCAT in a server with red hat advaced server,
In my network I can access it, using the ip of the server on port 8080.
I have other users, in my network, that can't access it... I don't know why?

Thanks



How to get session in the servlet

2003-02-14 Thread Desmond
Hi, May I know how to get the session for the JSP page in servlet?

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




RE: AW: modified jsp-files and jasper2

2003-02-14 Thread Ralph Einfeldt
Just a very wild guess:

Have you compared the date of the jsp file
with the corresponding java and class file?

Maybe the old class file is newer than the jsp file?

 -Original Message-
 From: Sven Köhler [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 14, 2003 10:04 AM
 To: [EMAIL PROTECTED]
 Subject: Re: AW: modified jsp-files and jasper2
 
 The page was uploaded an hour ago, but you still couldn't see the 
 correct page online. I checked the work-folder, and the jsp-page has 
 _not_ been compiled. the old .java and .class file was still there.
 

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




RE: How to get session in the servlet

2003-02-14 Thread James Lewis
Hi,

You can use the following method of the javax.servlet.jsp.PageContext
object:

(from the JSP 1.1 API)

public abstract javax.servlet.http.HttpSession getSession()Returns:
the HttpSession for this PageContext or null

Cheers,

James


 -Original Message-
 From: Desmond [mailto:[EMAIL PROTECTED]]
 Sent: 15 February 2003 02:46
 To: [EMAIL PROTECTED]
 Subject: How to get session in the servlet


 Hi, May I know how to get the session for the JSP page in servlet?

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




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




Re: Two Host and Same Context

2003-02-14 Thread Rasputin
* Laxmikanth M.S. [EMAIL PROTECTED] [0242 10:42]:
 Hi all,
 In tomcat 4.1.12 I have created two hosts and in each host there is a
 context with same name
 my questions are 
 how to access the second host 
 How to diffrentiate the Hosts

Um, they have different hostnames, or they would be the same host.

-- 
Rasputin :: Jack of All Trades - Master of Nuns

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




RE: Two Host and Same Context

2003-02-14 Thread Laxmikanth M.S.
They are different Host names


Regards
Laxmikanth M S 
Off  : 91-80-6610330 extn 1256
http://www.sonata-software.com
You must be the change you wish to see in the world-
Mahatma Gandhi

 -Original Message-
 From: Rasputin [SMTP:[EMAIL PROTECTED]]
 Sent: Friday, February 14, 2003 4:30 PM
 To:   Tomcat Users List
 Subject:  Re: Two Host and Same Context
 
 * Laxmikanth M.S. [EMAIL PROTECTED] [0242 10:42]:
  Hi all,
  In tomcat 4.1.12 I have created two hosts and in each host there is a
  context with same name
  my questions are 
  how to access the second host 
  How to diffrentiate the Hosts
 
 Um, they have different hostnames, or they would be the same host.
 
 -- 
 Rasputin :: Jack of All Trades - Master of Nuns
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
*
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: How to get session in the servlet

2003-02-14 Thread Desmond
please ignore.

-Original Message-
From: Desmond [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 14, 2003 6:46 PM
To: [EMAIL PROTECTED]
Subject: How to get session in the servlet


Hi, May I know how to get the session for the JSP page in servlet?

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


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




Re: MySql connection pool difficulties

2003-02-14 Thread Mehdi . Nejad

I just tried removing the mysql drivers from my 2k box, and got the same
exception as you.  They are working for me from the common lib folder.

I'd advise you to take a quick peek inside the jar file. make sure
com.mysql.jdbc.Driver and other classes are actually there, under the
correct package name.

Mehdi



   

  Martin Jacobson  

  martin_j@libero.To:   Tomcat Users List 
[EMAIL PROTECTED]
  it  cc: 

   Subject:  Re: MySql connection pool 
difficulties
  14/02/2003 08:50 

  Please respond to

  Tomcat Users

  List

   

   





Tom O'Neil wrote:
 After scouring the mailing list and a few forums, I'm
 still at a dead end attempting to get MySql connection
 pooling working with Tomcat. I'm running the following
 on Windows 2000:

 Tomcat 4.1.18
 MySql 4.0.10
 JDK 1.4.1

 I've tried using both the MySql 3.0.5 and 2.0.14
 drivers. I've placed these in [tomcat root]\common\lib
 (only one at a time - never both simultaenously). I
 know my code and web.xml are pretty solid, because I'm
 porting a funtional app from WebSphere 5.0.
snip

 And the error I'm getting is:

 Cannot create JDBC driver of class
 'com.mysql.jdbc.Driver' for connect URL
 'jdbc:mysql//localhost:3306/dsdemo?autoReconnect=true'

 It seems that a fair amount of other folk have
 encountered this same problem, but I have to stumble
 across a solutions. Any help would be appreciated.

Your config looks OK - I compared it to mine (which works!), and could
see nothing out of the ordinary.
But, is your error message complete? A problem I had to begin with was
that since Java can only create 'proper' sockets (ie not UNIX_SOCKETs),
mysql was actually receiving a connection request from my.domain.name,
and NOT from localhost. Since I only had mysql authorisation set up for
localhost, the connection was refused. The correction was obvious once I
spotted it!
However, this was on a Unix Box (Mac OS X, actually), so under Windows,
things may be different.

HTH !

Martin



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






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




Authentication problem with TOMCAT (4.0.4) and JAVA WEB START

2003-02-14 Thread [EMAIL PROTECTED]
Hi everyone !

I have a problem with Java Web Start (1.0.1) and Tomcat (4.0.4).

I'm trying to call my application via Web server Tomcat with 
restricting access.

My configuration is the following :

The deployment descriptor web.xml is:

?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
  mime-mapping
extensionjar/extension
mime-typeapplication/java-archive/mime-type
  /mime-mapping
  mime-mapping
extensionjava/extension
mime-typetext/plain/mime-type
  /mime-mapping
  mime-mapping
extensionjnlp/extension
mime-typeapplication/x-java-jnlp-file/mime-type
  /mime-mapping
  mime-mapping
extensionJNLP/extension
mime-typeapplication/x-java-jnlp-file/mime-type
  /mime-mapping

  !-- Define a Security Constraint on this Application --
  security-constraint
web-resource-collection
web-resource-nameEntire Application/web-resource-name
url-pattern/*/url-pattern
/web-resource-collection
auth-constraint
!-- NOTE:  This role is not present in the default users file -
-
role-namestandard/role-name
/auth-constraint
  /security-constraint

  !-- Define the Login Configuration for this Application --
  login-config
auth-methodBASIC/auth-method
realm-nameMY APPL/realm-name
  /login-config
/web-app



And jnlp File is:

jnlp 
spec=1.0+ 
codebase=http://host:8080/Official/; 
href=Application.jnlp 
information 
titleApplication release 0.10/title 
vendor  /vendor 
homepage href=// 
descriptionApplication/description 
description kind=shortMy Application/description 
icon href=Icon.gif/
/information 
security 
all-permissions/ 
/security 
resources 
j2se version=1.3/ 
jar href=Jar1.jar/
jar href=Jar2.jar/
jar href=Jar3.jar/
jar href=Jar4.jar/
jar href=Jar5.jar/
jar href=Jar6.jar/
jar href=Jar7.jar/
jar href=Jar8.jar/
jar href=Jar9.jar/
jar href=Jar10.jar/
jar href=MyApplication.jar/
/resources 
application-desc main-class=com..tool.cm.MyApplication/ 
/jnlp 

With the above configuration the Java Web Start not work.
I'm expecting the message box for insert username and password instead 
it returns the messagge error :
An error occurred while launching/running the application.
Vendor: 
Category: Download Error
Unable to load resource: http://host:8080/Official/Application.jnlp

The Exception error is:
JNLPException[category: Download Error : Exception: 
java.lang.NullPointerException : LaunchDesc: null ]

at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown 
Source)

at 
com.sun.javaws.cache.DownloadProtocol.isLaunchFileUpdateAvailable
(Unknown Source)

at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(Unknown 
Source)

at com.sun.javaws.Launcher.downloadResources(Unknown Source)

at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)

at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)

at com.sun.javaws.Launcher.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)




I have tried to remove the restrict access in the deployment descriptor 
(web.xml) and java Web Start WORKS !! 


I'll appreciate any idea or hint!
 Thanks in advance



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




How to enable secured JSP to be cached by browser?

2003-02-14 Thread Szwajkajzer Adam
Hi all.
I'm using Tomcat 4.1.18 (in boundle with JBoss 3.0.5).
My application is configured to use declarative security (FORM based).
Here my problems start.
Each HTTP respons for secured JSP page gets amend by Tomcat.
Additional header Pragma, Cache-Control and Expires entries are inserted
to prevent the page to be locally cached.
I've found on that list it is performed by AuthenticatorBase class and was added 
to prevent security vulnerability.

The problem is with form pages in following scenario: 
User inserts data, submits form, server returns an application error. 
User returns to form page but it is reread from server and of course it's empty.
(User gets angry while retyping all form data;)

Since the application is only used in intranet it would be acceptable to locally cache 
secured JSP pages.
So, is it possible to switch off  no-cache/expires feature in Tomcat 4.1.18?

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




Re: tomcat 4.1.12 hangs on HP-UX

2003-02-14 Thread Tim Funk
With my past experience with HP jvms- I would be surpised if 1.4.1.00 
was stable on their platform.

Try a 1.3 jvm with all the kernel patches and see if you can replicate 
the problem.

Also add -XdoCloseWithReadPending to your CATALINA_OPTS.


-Tim

Pfingstl Gernot wrote:
My tomcat hangs after around 30 requests to my struts-servlet. Tomcat doesn't write anything to some log (I had also set debug in server.xml) and doesn't shutdown (I had always to use kill -9 xx). I also looked to the garbage collector (JVM option -Xloggc:gc.log), but the heap size were about 64k (-Xmx was set to 300m). The responses are delayed about 5 to 10 seconds, because there must be fetched some data via OJB. If I do a JMeter test with the tomcat ROOT page (which has practically no delay), tomcat hangs after 5 requests.

Does anybody have any suggestions what to do or where the problem can be?

My configuration: tomcat 4.1.12 on HP-UX with jdk 1.4.1.00:
I tried with standard jvm opts, with
CATALINA_OPTS=-client -d64 -Xms30m -Xmx300m -Xincgc
and
CATALINA_OPTS=-server -d64 -Xms30m -Xmx300m -Xincgc
and
CATALINA_OPTS=-client -d64 -Xms30m -Xmx300m

My connector:
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=58000 minProcessors=5 maxProcessors=20
enableLookups=true redirectPort=58443
acceptCount=10 debug=0 connectionTimeout=6/

Thank you,
Gernot

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






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




Re: AW: modified jsp-files and jasper2

2003-02-14 Thread Sven Köhler
Have you compared the date of the jsp file
with the corresponding java and class file?

Maybe the old class file is newer than the jsp file?


i haven't done that yet, but as the date of machine is synchronized with 
a time-server it should always be correct.

i have also deleted the whole work-folder. i had this guess too.
but as all class-files should have been recreated, they should all have 
the correct date.

even reuploading the jsp-file doesn't help.



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



AW: AW: modified jsp-files and jasper2

2003-02-14 Thread Lorenz Beyeler
Another wild guess:
How is the upload done? What happens to the file date-time when uploading?

- Lorenz

 i haven't done that yet, but as the date of machine is 
 synchronized with 
 a time-server it should always be correct.

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




How to enable secured JSP to be cached by browser?

2003-02-14 Thread Szwajkajzer Adam
Hi all.
I'm using Tomcat 4.1.18 (in boundle with JBoss 3.0.5).
My application is configured to use declarative security (FORM based).
Here my problems start.
Each HTTP respons for secured JSP page gets amend by Tomcat.
Additional header Pragma, Cache-Control and Expires entries are inserted
to prevent the page to be locally cached.
I've found on that list it is performed by AuthenticatorBase class and was added 
to prevent security vulnerability.

The problem is with form pages in following scenario: 
User inserts data, submits form, server returns an application error. 
User returns to form page but it is reread from server and of course it's empty.
(User gets angry while retyping all form data;)

Since the application is only used in intranet it would be acceptable to locally cache 
secured JSP pages.
So, is it possible to switch off  no-cache/expires feature in Tomcat 4.1.18?

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




Authentication problem with TOMCAT (4.0.4) and JAVA WEB START

2003-02-14 Thread [EMAIL PROTECTED]
Hi everyone !

I have a problem with Java Web Start (1.0.1) and Tomcat (4.0.4).

I'm trying to call my application via Web server Tomcat with 
restricting access.

My configuration is the following :

The deployment descriptor web.xml is:

?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
  mime-mapping
extensionjar/extension
mime-typeapplication/java-archive/mime-type
  /mime-mapping
  mime-mapping
extensionjava/extension
mime-typetext/plain/mime-type
  /mime-mapping
  mime-mapping
extensionjnlp/extension
mime-typeapplication/x-java-jnlp-file/mime-type
  /mime-mapping
  mime-mapping
extensionJNLP/extension
mime-typeapplication/x-java-jnlp-file/mime-type
  /mime-mapping

  !-- Define a Security Constraint on this Application --
  security-constraint
web-resource-collection
web-resource-nameEntire Application/web-resource-name
url-pattern/*/url-pattern
/web-resource-collection
auth-constraint
!-- NOTE:  This role is not present in the default users file -
-
role-namestandard/role-name
/auth-constraint
  /security-constraint

  !-- Define the Login Configuration for this Application --
  login-config
auth-methodBASIC/auth-method
realm-nameMY APPL/realm-name
  /login-config
/web-app



And jnlp File is:

jnlp 
spec=1.0+ 
codebase=http://host:8080/Official/; 
href=Application.jnlp 
information 
titleApplication release 0.10/title 
vendor  /vendor 
homepage href=// 
descriptionApplication/description 
description kind=shortMy Application/description 
icon href=Icon.gif/
/information 
security 
all-permissions/ 
/security 
resources 
j2se version=1.3/ 
jar href=Jar1.jar/
jar href=Jar2.jar/
jar href=Jar3.jar/
jar href=Jar4.jar/
jar href=Jar5.jar/
jar href=Jar6.jar/
jar href=Jar7.jar/
jar href=Jar8.jar/
jar href=Jar9.jar/
jar href=Jar10.jar/
jar href=MyApplication.jar/
/resources 
application-desc main-class=com..tool.cm.MyApplication/ 
/jnlp 

With the above configuration the Java Web Start not work.
I'm expecting the message box for insert username and password instead 
it returns the messagge error :
An error occurred while launching/running the application.
Vendor: 
Category: Download Error
Unable to load resource: http://host:8080/Official/Application.jnlp

The Exception error is:
JNLPException[category: Download Error : Exception: 
java.lang.NullPointerException : LaunchDesc: null ]

at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown 
Source)

at 
com.sun.javaws.cache.DownloadProtocol.isLaunchFileUpdateAvailable
(Unknown Source)

at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(Unknown 
Source)

at com.sun.javaws.Launcher.downloadResources(Unknown Source)

at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)

at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)

at com.sun.javaws.Launcher.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)




I have tried to remove the restrict access in the deployment descriptor 
(web.xml) and java Web Start WORKS !! 


I'll appreciate any idea or hint!
 Thanks in advance



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




Re: problem in apache-tomacat virtual hosting

2003-02-14 Thread Michael Micek
Learning by teaching, here...

On Thu, Feb 13, 2003 at 01:10:03PM -0500, Xiongfei Wang wrote:
 I guess I need separate server.xml for each virtual host. Can anybody
 give some suggestions or point to some website i can set up
 multiple server.xml for each virtual host?

No, you don't need a separate server.xml for each virtual
host.  You can structure your server.xml like so (carved out
of my Apache 1.3 / mod_jk / Tomcat 4.0 setup):

Server port=8005
  Service name=Tomcat-Standalone
Engine name=Standalone

  Host name=myvirtualhost1
Context path= docBase=/pathto/host1 
/Context
  /Host

  Host name=myvirtualhost
Context path= docBase=/pathto/host 
/Context
  /Host

/Engine
  /Service
/Server

Then in apache's httpd.conf you have some:

VirtualHost myvirtualhost1
  DocumentRoot /pathto/host1
  JkMount /*.jsp ajp13
/VirtualHost

VirtualHost myvirtualhost
  DocumentRoot /pathto/host
  JkMount /*.jsp ajp13
/VirtualHost

Now myvirtualhost1/index.jsp is different than
myvirtualhost/index.jsp.

You can also have additional apps 

Context path=/app1 docBase=/pathto/localapps/app1 
/Context

and then:

  Alias /app1 /pathto/localapps/app1
  JkMount /app1/*.jsp ajp13

However, if you make /pathto/localapps your appBase, Tomcat
will automatically configure all the apps under there for
each Host/ with that appBase.  (So don't do that.)


 On Thu, 13 Feb 2003, Xiongfei Wang wrote:
 
  I have install apache-tomcat in my redhat7.3 server. thanks for all
  howtos (John's and others)
  
  I have a new problem. I have apache virtual host in my server. Now. 
  if i do http://myvirtualhost1/examples, and http://myvirtualhost/examples
  the point to the servelet jsp example page. Is there a way i can set up 
  apache-tomcat vitual host? In this i can keep some info not shareed by two
  vitualhost?

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




virtual hosts and manager app

2003-02-14 Thread Edgar Dollin
The manager app is pretty nice for applications located in the
$CATALINA_HOME/webapps directory.  For the manager application to function
does your application have to be located there or can it be in the arbitrary
docbase directory of your Context.
 
I have added the Context for the manager application to my Host block
and the manager application looks like it starts but you can't run any of
the programs.  
 
Any help would be appreciated.
 
Thanks
 
Edgar



How to enable secured JSP to be cached by browser?

2003-02-14 Thread Szwajkajzer Adam
Hi all.
I'm using Tomcat 4.1.18 (in boundle with JBoss 3.0.5).
My application is configured to use declarative security (FORM based).
Here my problems start.
Each HTTP respons for secured JSP page gets amend by Tomcat.
Additional header Pragma, Cache-Control and Expires entries are inserted
to prevent the page to be locally cached.
I've found on that list it is performed by AuthenticatorBase class and was added 
to prevent security vulnerability.

The problem is with form pages in following scenario: 
User inserts data, submits form, server returns an application error. 
User returns to form page but it is reread from server and of course it's empty.
(User gets angry while retyping all form data;)

Since the application is only used in intranet it would be acceptable to locally cache 
secured JSP pages.
So, is it possible to switch off  no-cache/expires feature in Tomcat 4.1.18?

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




RE: JNDI datasource frustrations - almost there

2003-02-14 Thread White, Joshua A (CASD, IT)
Thanks for your help Dan.  It seems as though DBCP is having a problem
opening a connection on port 1433.  I wrote a little java class to test out
my url.  It works, no problem!  Here is how it is defined in my server.xml
file:

jdbc:microsoft:sqlserver://localhost:1433

Here is the error that appears in the tomcat console.  Any ideas?

org.apache.commons.dbcp.DbcpException: java.sql.SQLException:
[Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.


Stack trace:

[INFO -07:37:46,649[INFO -07:37:46,659DBCP borrowObject failed:
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error
establishing s
ocket.
org.apache.commons.dbcp.DbcpException: java.sql.SQLException:
[Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
at
org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConne
ctionFactory.java:85)
at
org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnect
ionFactory.java:184)
at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(Unknown Source)
at
org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool
.java:117)
at
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja
va:110)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3
12)
at
org.apache.jsp.databasetest_jsp._jspService(databasetest_jsp.java:69)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
04)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
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
com.thehartford.casd.comptrak.web.signon.SignOnFilter.doFilter(SignOnFilter.
java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
at 

Calling my class gives compiler error!

2003-02-14 Thread Terje Hopsø
Hi,

I have tried for several days to figure this out but now I am giving up. It works fine 
on 4.0.4 but not on 4.1.18. I have studied the /examples and read the documentation 
but can't figure out how to make it work. Here is a description of my setup and the 
error I get. Hope anyone can give some information on how to make this work.

I have the following:
**
conf/server.xml
Context path=/bilder docBase=D:\WEBROOT\bilder debug=0 
reloadable=true
/Context
*
In my docbase-katalog I have the file menu.jsp which contains this
..
..
%@ page language=java %
%@ page import=java.io.* %
%@ page import=java.util.* %
%@ page import=Katalog %
%@ page import=Menu %
jsp:useBean id=kat scope=session class=Katalog /
..
   kat.newInit(_iptc, 'c');
..

WEB-INF/web.xml  located under my docbase-catalog.

?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
display-nameBildeWeb/display-name
description
  Terje's bilder
/description
servlet
 servlet-nameKatalog/servlet-name
  servlet-classKatalog/servlet-class
/servlet
servlet-mapping
servlet-nameKatalog/servlet-name
url-pattern/Katalog/url-pattern
/servlet-mapping
/web-app

and in WEB-INF/classes I have these files
Katalog.javaThe main class which imports Menu and Image classes.
Katalog.class
Menu.java
Menu.class
Image.java
Image.class
*

When I call the meny.jsp in my browser I get this:
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 29 in the jsp file: /meny.jsp

Generated servlet error:
[javac] Compiling 1 source file

C:\Tomcat 4.1\work\Standalone\localhost\bilder\meny_jsp.java:9: '.' expected
import Katalog;
  ^
C:\Tomcat 4.1\work\Standalone\localhost\bilder\meny_jsp.java:10: '.' expected
import Menu;
   ^

- Terje






RE: Calling my class gives compiler error!

2003-02-14 Thread Ralph Einfeldt
I guess you are using jdk 1.4 ?

AFAIK with that it's not allowed to import packageless classes.

You have to put Katalog and Menu in a package and import that.

 -Original Message-
 From: Terje Hopsø [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 14, 2003 1:42 PM
 To: [EMAIL PROTECTED]
 Subject: Calling my class gives compiler error!
 
 
 Generated servlet error:
 [javac] Compiling 1 source file
 
 C:\Tomcat 
 4.1\work\Standalone\localhost\bilder\meny_jsp.java:9: '.' expected
 import Katalog;
   ^

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




Re: Calling my class gives compiler error!

2003-02-14 Thread Terje Hopsø
Very quick respons, thanks!

I will try it later today and come back with my result!

- Terje

- Original Message -
From: Ralph Einfeldt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, February 14, 2003 1:54 PM
Subject: RE: Calling my class gives compiler error!


I guess you are using jdk 1.4 ?

AFAIK with that it's not allowed to import packageless classes.

You have to put Katalog and Menu in a package and import that.

 -Original Message-
 From: Terje Hopsø [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 14, 2003 1:42 PM
 To: [EMAIL PROTECTED]
 Subject: Calling my class gives compiler error!


 Generated servlet error:
 [javac] Compiling 1 source file

 C:\Tomcat
 4.1\work\Standalone\localhost\bilder\meny_jsp.java:9: '.' expected
 import Katalog;
   ^

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



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




Is 4.1.18 ready?

2003-02-14 Thread Etienne

Hi I just want to know is Tomcat 4.1.18 is a stable (production stable)
version. (I am pretty sure it is, but I just want a confirmation from
some gurus) My company is still using 4.1.12 because of some problems
in 4.1.18. I didn't go further, but I think they didn't write compatible
TagLibs to the 4.1.18 TagLib pooling... I guess the next Tomcat version
will stay in the specification of 4.1.18. So we should jump into it now?
Right?

Etienne



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




catalina.policy and OpenCms

2003-02-14 Thread Michal Sadlon
Hi everybody,
i have problem with configuration of catalina.policy (Security Manager) for my OpenCms 
4.7.7.
With the Security Manager can i not the OpenCms install. Without the policy no problem!

Error message:
[CmsException]: 33 Resourcebroker-init error. Detailed Error: Critical error while 
loading resourcebroker. . Caught Exception: java.lang.ClassNotFoundException: 
Something really bad happened while loading class 
com.opencms.file.mySql.CmsResourceBroker: java.lang.NoClassDefFoundError: 
com/opencms/file/genericSql/CmsResourceBroker
 
Thanks in advance for your help.

Michal



Re: Login problems (still)

2003-02-14 Thread Sloan Seaman
What is the best way to go about invalidating a session?

Do I just go through the HttpSession object nulling everything or do I null
objects in the java.security.Principal object?

Thanks!

--
Sloan

- Original Message -
From: Filip Hanik [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, February 13, 2003 5:38 PM
Subject: RE: Login problems (still)


for logout, you can simple invalidate your session.

if you need to keep the session around after invalidating it, just create a
new one and populate data to it

Filip

-Original Message-
From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 2:40 PM
To: Tomcat Users List
Subject: Login problems (still)


Ok, so I kind of have login authentication working to where I want it to
work.

But here is the next question?

How do they logout/login again?

What I did was have an index.jsp page have a link to a location within a
security-context.  So if they click on it it asks them to login and then
forwards them to the proper place.  Works great.

Now, say I go back to the main index.jsp page and I want to login a someone
else.

Since I have already logged in as one person I clear the security check and
go right to the page instead of getting the login page.

If I have a link directly to the login page I start getting the invalid
direct reference error.

Should I just write a loginAction in struts and be done with it?  If so, how
can I get to the realm information?

Thanks!
--
Sloan



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


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




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




RE: Login problems (still)

2003-02-14 Thread Barney Hamish
use the Session.invalidate() method
Try looking at the j2ee api.
Hamish

 -Original Message-
 From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 14, 2003 2:46 PM
 To: Tomcat Users List
 Subject: Re: Login problems (still)
 
 
 What is the best way to go about invalidating a session?
 
 Do I just go through the HttpSession object nulling 
 everything or do I null
 objects in the java.security.Principal object?
 
 Thanks!
 
 --
 Sloan
 
 - Original Message -
 From: Filip Hanik [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, February 13, 2003 5:38 PM
 Subject: RE: Login problems (still)
 
 
 for logout, you can simple invalidate your session.
 
 if you need to keep the session around after invalidating it, 
 just create a
 new one and populate data to it
 
 Filip
 
 -Original Message-
 From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 2:40 PM
 To: Tomcat Users List
 Subject: Login problems (still)
 
 
 Ok, so I kind of have login authentication working to where I 
 want it to
 work.
 
 But here is the next question?
 
 How do they logout/login again?
 
 What I did was have an index.jsp page have a link to a 
 location within a
 security-context.  So if they click on it it asks them to 
 login and then
 forwards them to the proper place.  Works great.
 
 Now, say I go back to the main index.jsp page and I want to 
 login a someone
 else.
 
 Since I have already logged in as one person I clear the 
 security check and
 go right to the page instead of getting the login page.
 
 If I have a link directly to the login page I start getting 
 the invalid
 direct reference error.
 
 Should I just write a loginAction in struts and be done with 
 it?  If so, how
 can I get to the realm information?
 
 Thanks!
 --
 Sloan
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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




Re: Login problems (still)

2003-02-14 Thread Sloan Seaman
I looked right at it and didn't see it in the API.. duh!

Side question:
If I wanted to write my own login action (I'm using struts) how would you
populate the session so that methods such as isUserInRole() would still
work?

Thanks!

--
Sloan

- Original Message -
From: Barney Hamish [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, February 14, 2003 8:45 AM
Subject: RE: Login problems (still)


 use the Session.invalidate() method
 Try looking at the j2ee api.
 Hamish

  -Original Message-
  From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 14, 2003 2:46 PM
  To: Tomcat Users List
  Subject: Re: Login problems (still)
 
 
  What is the best way to go about invalidating a session?
 
  Do I just go through the HttpSession object nulling
  everything or do I null
  objects in the java.security.Principal object?
 
  Thanks!
 
  --
  Sloan
 
  - Original Message -
  From: Filip Hanik [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Thursday, February 13, 2003 5:38 PM
  Subject: RE: Login problems (still)
 
 
  for logout, you can simple invalidate your session.
 
  if you need to keep the session around after invalidating it,
  just create a
  new one and populate data to it
 
  Filip
 
  -Original Message-
  From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 13, 2003 2:40 PM
  To: Tomcat Users List
  Subject: Login problems (still)
 
 
  Ok, so I kind of have login authentication working to where I
  want it to
  work.
 
  But here is the next question?
 
  How do they logout/login again?
 
  What I did was have an index.jsp page have a link to a
  location within a
  security-context.  So if they click on it it asks them to
  login and then
  forwards them to the proper place.  Works great.
 
  Now, say I go back to the main index.jsp page and I want to
  login a someone
  else.
 
  Since I have already logged in as one person I clear the
  security check and
  go right to the page instead of getting the login page.
 
  If I have a link directly to the login page I start getting
  the invalid
  direct reference error.
 
  Should I just write a loginAction in struts and be done with
  it?  If so, how
  can I get to the realm information?
 
  Thanks!
  --
  Sloan
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

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




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




DBCP Broken Pipe Error - 4.1.18

2003-02-14 Thread Chakravarthy, Sundar
HI,

Env = Apache 2.x , Tomcat 4.1.18 , Oracle 9i , DBCP , Solaris 8

I get the following error after my application has been idle for
sometime.
The error goes away after I reload my app.

2003-02-14 08:24:22 SQLException: java.sql.SQLException: Io exception:
Broken pipe
java.sql.SQLException: Io exception: Broken pipe
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)
at
oracle.jdbc.driver.OracleStatement.init(OracleStatement.java:389)
at
oracle.jdbc.driver.OracleStatement.init(OracleStatement.java:413)
at
oracle.jdbc.driver.OraclePreparedStatement.init(OraclePreparedStatemen
t.java:119)
at
oracle.jdbc.driver.OracleCallableStatement.init(OracleCallableStatemen
t.java:77)
at
oracle.jdbc.driver.OracleCallableStatement.init(OracleCallableStatemen
t.java:48)
at
oracle.jdbc.driver.OracleConnection.privatePrepareCall(OracleConnection.
java:1133)
at
oracle.jdbc.driver.OracleConnection.prepareCall(OracleConnection.java:98
8)
at
org.apache.commons.dbcp.DelegatingConnection.prepareCall(DelegatingConne
ction.java:205)
at conxons.LoginBean.process(LoginBean.java:122)
at org.apache.jsp.login_jsp._jspService(login_jsp.java:114)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:204)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
atcher.java:432)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
cher.java:356)
at org.apache.jsp.default_jsp._jspService(default_jsp.java:74)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:204)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.ja
va:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.ja
va:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
5)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.ja
va:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)

Something to do with stale connections ? How do I correct this ?

Thanks 

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




Re: Two Host and Same Context

2003-02-14 Thread Rasputin
 

  * Laxmikanth M.S. [EMAIL PROTECTED] [0242 10:42]:

   In tomcat 4.1.12 I have created two hosts and in each host there is a
   context with same name
   my questions are 
   how to access the second host 
   How to diffrentiate the Hosts

  Um, they have different hostnames, or they would be the same host.

* Laxmikanth M.S. [EMAIL PROTECTED] [0208 11:08]:
 They are different Host names

Right, so that's how you differentiate them.

You access the first host by going to

http://www.host1.net/contextname

and the second by

http://www.host2.net/contextname

Know what I mean? If the domain names don't exit, just spoof them in 
a hosts file on the client.

-- 
When you have to kill a man it costs nothing to be polite.
-- Winston Churchill, On formal declarations of war
Rasputin :: Jack of All Trades - Master of Nuns

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




RE: Context/mapping question

2003-02-14 Thread Shapira, Yoav

Howdy,

I'm running Tomcat 4.0.3 in conjunction with Apache 2 via mod_jk on
Windows
2000 and Tru64 platforms.  I've been running a web app this way rather
successfully for some time now -- but I'd like to make it compliant
with
the
WAR structure to ease deployment... so here's the problem:

Glad to hear it's working well, and glad to hear you're moving to a
standard and portable WAR structure.  I wish more people would do the
same.

I've got my WAR  web.xml files working well for this configuration --
all
servlets are expicitly defined in web.xml and mapped to a simplified
name -
-
minus all the package information -- so
com.wcom.mywebapp.servlet.HelloWorld is simply mapped to
/HelloWorld.

Very good practice.

My server.xml file is ultra-simple:  No contexts are explicitly
defined.
Tomcat automatically generates the /mywebapp context at startup.

Once again, very good practice.  Eliminates about half of the questions
and problems frequently encountered on this list and makes it much
easier for you to switch servers.

However, I would like to be able to refer to the same servlet as:
http://localhost/servlet/HelloWorld.

This desire requires being on the root context (the one with context
path  as opposed to mywebapp).  Therefore, you WILL need to put an
explicity context element in your server.xml, which includes:
Context docBase=mywebapp.war path= ...

Moreover, within your web.xml, you will need to add one more
servlet-mapping:
servlet-mapping
  servlet-nameHelloWorldServlet/servlet-name
  url-pattern/servlet/HelloWorld/url-pattern
/servlet-mapping

Personally, I don't like having more than one servlet-mapping per
servlet, but that's just my preference.  The standard allows many
mappings and tomcat allows many mappings without a problem.

I hope this helps,

Yoav Shapira
Millennium ChemInformatics



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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




RE: Is 4.1.18 ready?

2003-02-14 Thread Shapira, Yoav

Howdy,
Yes.


Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Etienne [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 14, 2003 8:02 AM
To: 'Tomcat Users List'
Subject: Is 4.1.18 ready?


Hi I just want to know is Tomcat 4.1.18 is a stable (production stable)
version. (I am pretty sure it is, but I just want a confirmation from
some gurus) My company is still using 4.1.12 because of some problems
in 4.1.18. I didn't go further, but I think they didn't write
compatible
TagLibs to the 4.1.18 TagLib pooling... I guess the next Tomcat version
will stay in the specification of 4.1.18. So we should jump into it
now?
Right?

Etienne



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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




Solaris 9 with J2SDK 1.4.0 Compilation problems

2003-02-14 Thread Mandeep Jossan
Hello everybody,

Iam migrating my web application from window 2000 to Solaris 9. Iam running  
Tomcat 4.0 on Solaris. But when I i access jsp files which are bigger than 20k then I 
start getting compilation errors like 'variable may not have been intialized'. But if 
I go and check the .java file for the original .jsp file I see that the variable has 
been intialized properly. Can anyone throw some light on this issue. All these files 
used to compile fine on window 2000. Iam using j2sdk 1.4.0. 
I found some very interesting information on one another user group which gives 
solution for Resin but I dont know what to do on Tomcat.
The url for the Resin solution is
http://www.caucho.com/support/resin-interest/0203/0288.html

Thanks,

Mandeep


-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


RE: Tomcat 4.1.18: How to send HTTP errors from servlets

2003-02-14 Thread Shapira, Yoav

Howdy,
Umm, assuming you don't have a custom error-page for 401 errors in your web.xml 
(though you could and in your case might find it useful), did you try
response.sendError(SC_UNAUTHORIZED, Please login);
?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Oliver Schoenwald [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 14, 2003 5:31 AM
To: Tomcat Users List
Subject: Tomcat 4.1.18: How to send HTTP errors from servlets

Hello,

we have updated from Tomcat 3.2.4 to 4.1.8 and now have problems with
one of our servlets.
Under 3.2.4, this servlet send an HTTP_UNAUTHORIZED under certain
circumstances and the
Browser popped up his Login-Windows. Now, under 4.1.8, the engine
catches this error and
wraps an html-page around it, delivering a valid html-page instead of
the HTTP-error created
by the servlet using the sendError-Method of HttpServlet.Response.

So far I was not able to find out by what configuration or mechanism the
engine catches such
errors and wraps its own html-output around it. We installed the engine
as binary under Linux
and added our own authentication Realm and a Valve to do some
after-work-cleansing.

Can I de-activate it ('it' = the wrapping of http-error responses as
html-pages)? How? Would this be
ok or bad?
Can I configure it to allow errors send by the servlet to be given
straight to the client? How?
Do I have to use another method to deliver HTTP-errors instead of the
standard servlet API?


Thank you in advance,

Oliver Schönwald



--
Oliver Schönwald, Diplom-Informatiker

Entwicklungsgruppe Lernraum Virtuelle Universität - FernUniversität Hagen
Universitätsstr.21/AVZ - 58084 Hagen
Fon: +49 2331 987 1721 - Fax: +49 2331 987



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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




RE: Tomcat Performance Questions

2003-02-14 Thread Shapira, Yoav

Howdy,

Just wanted to find out what the list's experience is with Tomcat
versus
Apache ?  Why is one preferred over the other ?

Depends on your situation.  People with lots of static files frequently
put Apache in front to handle the static files and delegate servlet/JSP
requests to tomcat.  I personally prefer a standalone tomat.

Is Tomcat used in a production site or just for development ?

Used in many production sites.  Unfortunately due to the legal realities
in many companies of people on this list, you will not be able to get a
good list of companies using tomcat in production.

I've been arguing the case for Tomcat on an internal project esp. since
there are no static pages and the system is using JSP/Java.

Then tomcat is probably your choice.  If you write you app to the
servlet specification, you can easily compare tomcat with other
spec-compliant containers for performance and reliability.

Just don't have any hard qualitative data.

I don't think there IS such a thing as hard qualitative data.
Qualitative is kind of like subjective in that way, when applied to
server choice and performance data ;)

Yoav Shapira
Millennium ChemInformatics



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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




RE: Two Host and Same Context

2003-02-14 Thread Laxmikanth M.S.
The host Names are Virtual Host In apache so I am able to access ..is there
any way to directly give VHost name within Tomcat
Thanks for the info

 -Original Message-
 From: Rasputin [SMTP:[EMAIL PROTECTED]]
 Sent: Friday, February 14, 2003 7:43 PM
 To:   Tomcat Users List
 Subject:  Re: Two Host and Same Context
 
  
 
   * Laxmikanth M.S. [EMAIL PROTECTED] [0242 10:42]:
 
In tomcat 4.1.12 I have created two hosts and in each host there is
 a
context with same name
my questions are 
how to access the second host 
How to diffrentiate the Hosts
 
   Um, they have different hostnames, or they would be the same host.
 
 * Laxmikanth M.S. [EMAIL PROTECTED] [0208 11:08]:
  They are different Host names
 
 Right, so that's how you differentiate them.
 
 You access the first host by going to
 
 http://www.host1.net/contextname
 
 and the second by
 
 http://www.host2.net/contextname
 
 Know what I mean? If the domain names don't exit, just spoof them in 
 a hosts file on the client.
 
 -- 
 When you have to kill a man it costs nothing to be polite.
   -- Winston Churchill, On formal declarations of war
 Rasputin :: Jack of All Trades - Master of Nuns
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
*
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Tomcat Performance Questions

2003-02-14 Thread Laxmikanth M.S.
Hi Shapira,
Is there way to host multiple sites in Tomcat without using apache
thanks
Laxmikanth



 -Original Message-
 From: Shapira, Yoav [SMTP:[EMAIL PROTECTED]]
 Sent: Friday, February 14, 2003 7:53 PM
 To:   Tomcat Users List
 Subject:  RE: Tomcat Performance Questions
 
 
 Howdy,
 
 Just wanted to find out what the list's experience is with Tomcat
 versus
 Apache ?  Why is one preferred over the other ?
 
 Depends on your situation.  People with lots of static files frequently
 put Apache in front to handle the static files and delegate servlet/JSP
 requests to tomcat.  I personally prefer a standalone tomat.
 
 Is Tomcat used in a production site or just for development ?
 
 Used in many production sites.  Unfortunately due to the legal realities
 in many companies of people on this list, you will not be able to get a
 good list of companies using tomcat in production.
 
 I've been arguing the case for Tomcat on an internal project esp. since
 there are no static pages and the system is using JSP/Java. 
 
 Then tomcat is probably your choice.  If you write you app to the
 servlet specification, you can easily compare tomcat with other
 spec-compliant containers for performance and reliability.
 
 Just don't have any hard qualitative data.
 
 I don't think there IS such a thing as hard qualitative data.
 Qualitative is kind of like subjective in that way, when applied to
 server choice and performance data ;)
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 
 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an)
 intended recipient, please immediately delete this e-mail from your
 computer system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
*
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Tomcat Performance Questions

2003-02-14 Thread Shapira, Yoav

Howdy,
Is there a way you could possibly not hijack other subjects?  If you
have a question that's not related to a thread, don't post it in that
thread.  The answer to your question is yes:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Laxmikanth M.S. [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 14, 2003 9:26 AM
To: Tomcat Users List
Subject: RE: Tomcat Performance Questions

Hi Shapira,
Is there way to host multiple sites in Tomcat without using apache
thanks
Laxmikanth



 -Original Message-
 From:Shapira, Yoav [SMTP:[EMAIL PROTECTED]]
 Sent:Friday, February 14, 2003 7:53 PM
 To:  Tomcat Users List
 Subject: RE: Tomcat Performance Questions


 Howdy,

 Just wanted to find out what the list's experience is with Tomcat
 versus
 Apache ?  Why is one preferred over the other ?

 Depends on your situation.  People with lots of static files
frequently
 put Apache in front to handle the static files and delegate
servlet/JSP
 requests to tomcat.  I personally prefer a standalone tomat.

 Is Tomcat used in a production site or just for development ?

 Used in many production sites.  Unfortunately due to the legal
realities
 in many companies of people on this list, you will not be able to get
a
 good list of companies using tomcat in production.

 I've been arguing the case for Tomcat on an internal project esp.
since
 there are no static pages and the system is using JSP/Java.

 Then tomcat is probably your choice.  If you write you app to the
 servlet specification, you can easily compare tomcat with other
 spec-compliant containers for performance and reliability.

 Just don't have any hard qualitative data.

 I don't think there IS such a thing as hard qualitative data.
 Qualitative is kind of like subjective in that way, when applied to
 server choice and performance data ;)

 Yoav Shapira
 Millennium ChemInformatics



 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an)
 intended recipient, please immediately delete this e-mail from your
 computer system and notify the sender.  Thank you.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
*
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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




RE: Network Monitor

2003-02-14 Thread Turner, John

How would that work as a network monitor?  If the monitoring app was only
available when booted into Linux, there would be no monitoring when booted
into Windows.  

John


-Original Message-
From: Jake Robb [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 13, 2003 9:05 PM
To: Tomcat Users List
Subject: Re: Network Monitor


Extra machine?  What's wrong with running it on your current machine?  If
you really need to keep win2k around, just dual-boot.

-Jake

tomcat guy wrote:

 No extra machine at the moment.  Although it wouldn't take much of a 
 machine to run it...
 
 - Original Message -
 From: Nicole Hibbard [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, February 13, 2003 7:40 PM
 Subject: RE: Network Monitor
 
 
 linux is free and so is netsaint
 
 -Original Message-
 From: tomcat guy [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 5:33 PM
 To: Tomcat Users List
 Subject: Re: Network Monitor
 
 
 Isn't netsaint/nagios for *nix only?  It is exactly what I am looking
 for...
 
 Unfortunately, I'm stuck with win2k and no dolares...
 
 
 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, February 13, 2003 4:24 PM
 Subject: RE: Network Monitor
 
 
 http://www.netsaint.org
 
 -Original Message-
 From: tomcat guy [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 1:55 PM
 To: Tomcat Users List
 Subject: Network Monitor
 Importance: Low
 
 
 What are people using for a web monitor?
 
 I am looking for a good ( free) monitor so I can view traffic from 
 work
 on
 my home machine.  There are plenty out there but I am curious what
 others
 are using.  I have a win2k machine, any suggestions?
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
 

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
 

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




RE: Access to TOMCAT

2003-02-14 Thread Turner, John

Nobody will be able to help you unless you provide specific information and
describe exactly whats wrong.

Other users can't access it doesn't tell us anything.  

What is the exact error message?  What is the URL that people are accessing?
Are you only using Tomcat, or Tomcat and a web server?  Which version?  How
did you set it up?  Did you change anything from the default, and if so,
what did you change and how?

John


-Original Message-
From: Alberto A C A S Magalhães [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 14, 2003 5:47 AM
To: Tomcat Users List
Subject: Access to TOMCAT


**
Este email assim como os ficheiros que possa ter em anexo são confidenciais
e para uso exclusivo da pessoa ou organização para o qual foi enviado. Se
recebeu este email por engano por favor notifique [EMAIL PROTECTED]

Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper não
tendo sido encontrados virus.

www.mimesweeper.com
***

Hi,
I installed TOMCAT in a server with red hat advaced server,
In my network I can access it, using the ip of the server on port 8080. I
have other users, in my network, that can't access it... I don't know why?

Thanks

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
 

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
 

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




RE: Simple Question - HTTP Status 404 error

2003-02-14 Thread Turner, John

You also need to map your servlet to a URL in your web.xml file.  Check the
examples web.xml file to see how.

John


-Original Message-
From: Sanjeevkumar Cherengotil
[mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 14, 2003 1:47 AM
To: Tomcat Users List
Subject: Simple Question - HTTP Status 404 error



Hi All,

 I have installed tomcat-4.1.18 on my windows 2000 machine. I tried to
develop a simple application. My Jsps are workign fine. When I am forwarding
to a servlet from a JSP, its throwing 404 error. Here is what I did...

 1 . After installing the tomcat server, i added my directory structure
like
  TOMCAT_HOME\webapps\myapp1   
  TOMCAT_HOME\webapps\myapp1\WEB-INF
  TOMCAT_HOME\webapps\myapp1\WEB-INF\Classes
  TOMCAT_HOME\webapps\myapp1\lib

 2. Added a new ServletContext in server.xml as follows
  Context path=/myapp1 docBase=myapp1 debug=0 reloadable
=true /

 3. Put my JSPs directly under
  TOMCAT_HOME\webapps\myapp1

 4. Added a new Servlet (LoginServlet.java) with package name
'com.myapp1' and put under
  TOMCAT_HOME\webapps\myapp1\WEB-INF\Classes\com\myapp1

 5. Edited my web.xml and it has only entry as follows
  web-app

   servlet
servlet-namelogin/servlet-name
servlet-classcom.myapp1.LoginServlet/servlet-class
   /servlet

  /web-app

 6. I'm calling the servlet from my JSP as follows..

  form name=loginForm method=post action
=servlet/myapp1/login

 Note: I tried various action properties like
  action=servlet/login  action=servlet/com.myapp1.LoginServlet
...etc

 This time I'm getting a 404 error. I can't find any errors in log files
too(I looked at the log files in TOMCAT_HOME\logs directory,.. any other
error logs are maintained?? Do I need to setup any classpath stuff to make
it work? Please help me to find out where did I go wrong.. Thanks in
advance..:)

Thanks,
Sanjeev





 - luck is what happens when preparation meets opportunity - 

Sanjeev Kumar C K
Senior Software Engineer
IT Solutions India Private Ltd
Ph : 044-28212877 / 78 , ext - 2315 .


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

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
 

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
 

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




RE: Network Monitor

2003-02-14 Thread Turner, John

As far as I know, Big Brother is free for certain uses, and there is a
version available for Win32, albeit not as robust as the version for
UNIX/Linux. The Win32 version should be plenty for basic monitoring.

http://bb4.com

John


-Original Message-
From: tomcat guy [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 13, 2003 9:04 PM
To: Tomcat Users List
Subject: Re: Network Monitor


No extra machine at the moment.  Although it wouldn't take much of a machine
to run it...

- Original Message -
From: Nicole Hibbard [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, February 13, 2003 7:40 PM
Subject: RE: Network Monitor


 linux is free and so is netsaint

 -Original Message-
 From: tomcat guy [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 5:33 PM
 To: Tomcat Users List
 Subject: Re: Network Monitor


 Isn't netsaint/nagios for *nix only?  It is exactly what I am looking
for...

 Unfortunately, I'm stuck with win2k and no dolares...


 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, February 13, 2003 4:24 PM
 Subject: RE: Network Monitor


  http://www.netsaint.org
 
  -Original Message-
  From: tomcat guy [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 13, 2003 1:55 PM
  To: Tomcat Users List
  Subject: Network Monitor
  Importance: Low
 
 
  What are people using for a web monitor?
 
  I am looking for a good ( free) monitor so I can view traffic from 
  work
 on
  my home machine.  There are plenty out there but I am curious what
others
  are using.  I have a win2k machine, any suggestions?
 


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


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



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

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
 

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
 

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




Error Log watcher

2003-02-14 Thread Ben Ricker
I am wondering if anyone has found a good error log watcher for Tomcat?
Swatch does not work because it is made for syslog-type logs where an
error message occurs on one line. So, it views a java error as one line,
which really does not help.

Anyone try any other programs?

Ben Ricker

-- 
Ben Ricker [EMAIL PROTECTED]
Wellinx.com


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




Form Based Authentication through IIS

2003-02-14 Thread Robert Mclaren
I have a web-app configured to use form based authentication. The login
works fine when I go directly to Tomcat using port 8080. When I try to
go through IIS, I don't even get the login page. I get a tomcat error
page 403 - Access to the requested resource has been denied.

I can get to all the pages that aren't in the protected directory via
IIS, so I assume the ISAPI filter is configured properly. I can go to
the login page directly, but when I submit, I get

The requested resource (/jsp/security/j_security_check) is not
available

Any help would be greatly appreciated.

Thanks

Robert McLaren

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




Determine Presentation?

2003-02-14 Thread Dan Egan
Hi,

I am in the process of working with Tomcat and I wanted to know how I can
determine the static content is being rendered by IIS.  I made the
recommended changes to IIS by creating a VD pointing to the webapp and
modified the uriworkermap.properties file setting the URI path to the
servlet folder.  Everything works fine but the reason for this was to try
and get a performance boost.  Any help and insight by the group would be
appreciated.

Thanks,

Daniel Egan
Windows 2000
SQL Server 2000
Environment 8.0.1
Applications 8.0.2
Phone 401-421-7740 X396
Email [EMAIL PROTECTED]


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




RE: Error Log watcher

2003-02-14 Thread Shapira, Yoav

Howdy,
What would you require from this error log watcher ?


Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Ben Ricker [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 14, 2003 9:58 AM
To: Tomcat Users List
Subject: Error Log watcher

I am wondering if anyone has found a good error log watcher for Tomcat?
Swatch does not work because it is made for syslog-type logs where an
error message occurs on one line. So, it views a java error as one
line,
which really does not help.

Anyone try any other programs?

Ben Ricker

--
Ben Ricker [EMAIL PROTECTED]
Wellinx.com


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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




RE: Is 4.1.18 ready?

2003-02-14 Thread Tim Moore
I don't believe that 4.1.18 does taglib pooling any differently from
4.1.12.

-- 
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: Etienne [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, February 14, 2003 8:02 AM
 To: 'Tomcat Users List'
 Subject: Is 4.1.18 ready?
 
 
 
 Hi I just want to know is Tomcat 4.1.18 is a stable 
 (production stable) version. (I am pretty sure it is, but I 
 just want a confirmation from some gurus) My company is still 
 using 4.1.12 because of some problems in 4.1.18. I didn't 
 go further, but I think they didn't write compatible TagLibs 
 to the 4.1.18 TagLib pooling... I guess the next Tomcat 
 version will stay in the specification of 4.1.18. So we 
 should jump into it now? Right?
 
 Etienne
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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




RE: Determine Presentation?

2003-02-14 Thread Tim Moore
How about just stopping Tomcat and seeing if you can still get to your
static content?

-- 
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: Dan Egan [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, February 14, 2003 10:05 AM
 To: [EMAIL PROTECTED]
 Subject: Determine Presentation?
 
 
 Hi,
 
 I am in the process of working with Tomcat and I wanted to 
 know how I can determine the static content is being rendered 
 by IIS.  I made the recommended changes to IIS by creating a 
 VD pointing to the webapp and modified the 
 uriworkermap.properties file setting the URI path to the 
 servlet folder.  Everything works fine but the reason for 
 this was to try and get a performance boost.  Any help and 
 insight by the group would be appreciated.
 
 Thanks,
 
 Daniel Egan
 Windows 2000
 SQL Server 2000
 Environment 8.0.1
 Applications 8.0.2
 Phone 401-421-7740 X396
 Email [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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




Re: Determine Presentation?

2003-02-14 Thread Jake Robb
Try to access a file that doesn't exist, but that should be served by Tomcat
if it did (i.e. foo.jsp in one of your servlet directories).  You should get
an error page from Tomcat.

Then do the same with another file that doesn't exist, but that should be
served by IIS if it did (i.e. foo.html, or something outside of a servlet
directory).  You should get a different error page, presented by IIS.

-Jake


- Original Message -
From: Dan Egan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 14, 2003 10:05 AM
Subject: Determine Presentation?


 Hi,

 I am in the process of working with Tomcat and I wanted to know how I can
 determine the static content is being rendered by IIS.  I made the
 recommended changes to IIS by creating a VD pointing to the webapp and
 modified the uriworkermap.properties file setting the URI path to the
 servlet folder.  Everything works fine but the reason for this was to try
 and get a performance boost.  Any help and insight by the group would be
 appreciated.

 Thanks,

 Daniel Egan
 Windows 2000
 SQL Server 2000
 Environment 8.0.1
 Applications 8.0.2
 Phone 401-421-7740 X396
 Email [EMAIL PROTECTED]


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



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




RE: Is 4.1.18 ready?

2003-02-14 Thread Eduardo Suastegui
I posted a question re: xtags not working with 4.1.18 in the taglibs group,
and someone recommended disabling taglib pooling. Even when I do this (see
below) in web.xml, my failures persist.

servlet
servlet-namejsp/servlet-name
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namelogVerbosityLevel/param-name
param-valueWARNING/param-value
/init-param
!-- Disable pooling to prevent problems with xtags/XSLT processing
--
init-param
param-nameenablePooling/param-name
param-valuefalse/param-value
/init-param
load-on-startup3/load-on-startup
/servlet

Any other ideas?

-Original Message-
From: Glenn Nielsen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 5:55 PM
To: Tag Libraries Users List
Subject: Re: Problems with Tomcat 4.1.18 and xtags


The difference is that Tomcat 4.1 comes with Jasper 2.  Jasper 2 implements
JSP custom tag pooling.  The XTags taglib most likely has some sort
lifecycle
related bug that gets trigger when its tag handlers are pooled.  You can
disable tag pooling in the JspServlet config in your tomcat/conf/web.xml
config file.

-Original Message-
From: Eduardo Suastegui [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 14, 2003 7:14 AM
To: 'Tag Libraries Users List'
Subject: RE: Problems with Tomcat 4.1.18 and xtags


Thank you very much for your response. I have browsed through web.xml and
the config documentation, and it isn't terribly obvious how I should disable
tag pooling. Could you point me in the right direction here? Thanks again.

-Original Message-
From: Glenn Nielsen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 5:55 PM
To: Tag Libraries Users List
Subject: Re: Problems with Tomcat 4.1.18 and xtags


The difference is that Tomcat 4.1 comes with Jasper 2.  Jasper 2 implements
JSP custom tag pooling.  The XTags taglib most likely has some sort
lifecycle
related bug that gets trigger when its tag handlers are pooled.  You can
disable tag pooling in the JspServlet config in your tomcat/conf/web.xml
config file.

Regards,

Glenn

Eduardo Suastegui wrote:
 I am running Tomcat 4.1.18 with JDK 1.4.1.01, and use the xtags directory
 for server-side XSL transformation (XSLT). The first time I access the
page
 that includes XML to be displayed through xtags' XSLT, it works. The 2nd
 time, it fails (see exception stack trace below), the 3rd time it works,
the
 4th time it fails, and so on--odds are okay; evens fail. I do not have
this
 problem with either Tomcat 4.0.3 or 4.0.6; when I switch to these
versions,
 all works as expected. Can anyone throw some help my way? Thanks.




Simple WAR on Apache + Tomcat + JBoss

2003-02-14 Thread Manoj Kithany
Hi:

I have a simple WAR file 'mig.war' and want to see if that wokrs on 
Architecture - Apache + JBoss(Tomcat).

I have my mig.war file in /jboss/server/default/deploy

I have my mod_jk.so connector in /usr/local/apache/libexec directory

My httpd.conf has following information at end:
-
LoadModule jk_module  libexec/mod_jk.so
JkWorkersFile /jboss/catalina/conf/jk/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevel info

JKMount /examples/servlet/* ajp13
JKMount /examples/*.jsp ajp13

JKMount /mig/servlet/* ajp13
JKMount /mig/*.jsp ajp13
JKMount /mig/* ajp13
-

My workers.properties file contains
-
workers.tomcat_home=/jboss/catalina
workers.java_home=/usr/java130
ps=/

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=MY.IP.ADDR.ESS
worker.ajp13.type=ajp13
---

My tomcat4-service.xml file has following:
---
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 
debug=1/
--

By the way why should Port be 8009...? should it be 8080?

Can anyone see if the above process is proper?

When I try http://MY.IP.ADDR.ESS on my browser, it shows my Welcome Apache 
Page...which shows Apache is working fine.

Later when I try http://MY.IP.ADDR.ESS/mig is says Page Not Found Error

When I add Port 8080 as http://MY.IP.ADDR.ESS:8080/mig
it works fine...

How can I know if my Apache + Tomcat Integration is working fine and that 
Apache REDIRECTS my JSP/Servlets to Tomcat?



Should I start my Jboss first or Apache first?

THANK YOU ALL!







_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


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



An easy one... Default Config in conf/web.xml

2003-02-14 Thread Andoni
Hi,

I am using sections like that below to store the database url / username /
password for my server.  I then access these from the code using

getInitParameter(database_password);

in my code.  What I would like is to move these out to the web.xml file in
conf/web.xml so that when I move my .war file from the development to the
live server it just picks up the new url's and passwords automatically.

Problem:
I can't figure out how to install these sections into the conf/web.xml file.
I have tried putting them in the default servlet and the invoker servlet
and also creating a servlet section of it's own but none of these work.  I
want to still be able to have a web.xml for most things (e.g.
session-timeout) but just have some things in the default one.

init-param
  param-namedatabase_password/param-name
  param-valuemypassword123/param-value
/init-param


Anybody know the answer?  I'd be very appreciative if you did.

Regards,
Andoni.


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




RE: Is 4.1.18 ready?

2003-02-14 Thread Eduardo Suastegui
I posted a question re: xtags not working with 4.1.18 in the taglibs group,
and someone recommended disabling taglib pooling. Even when I do this (see
below) in web.xml, my failures persist.

servlet
servlet-namejsp/servlet-name
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namelogVerbosityLevel/param-name
param-valueWARNING/param-value
/init-param
!-- Disable pooling to prevent problems with xtags/XSLT processing
--
init-param
param-nameenablePooling/param-name
param-valuefalse/param-value
/init-param
load-on-startup3/load-on-startup
/servlet

Any other ideas?

-Original Message-
From: Glenn Nielsen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 5:55 PM
To: Tag Libraries Users List
Subject: Re: Problems with Tomcat 4.1.18 and xtags


The difference is that Tomcat 4.1 comes with Jasper 2.  Jasper 2 implements
JSP custom tag pooling.  The XTags taglib most likely has some sort
lifecycle
related bug that gets trigger when its tag handlers are pooled.  You can
disable tag pooling in the JspServlet config in your tomcat/conf/web.xml
config file.

Regards,

Glenn

Eduardo Suastegui wrote:
 I am running Tomcat 4.1.18 with JDK 1.4.1.01, and use the xtags directory
 for server-side XSL transformation (XSLT). The first time I access the
page
 that includes XML to be displayed through xtags' XSLT, it works. The 2nd
 time, it fails (see exception stack trace below), the 3rd time it works,
the
 4th time it fails, and so on--odds are okay; evens fail. I do not have
this
 problem with either Tomcat 4.0.3 or 4.0.6; when I switch to these
versions,
 all works as expected. Can anyone throw some help my way? Thanks.



RE: An easy one... Default Config in conf/web.xml

2003-02-14 Thread Shapira, Yoav

Howdy,
Your parameters should be in your web.xml, which is in your war file if
you're using a war file.  They should not be in the server web.xml (the
one in conf/web.xml in tomcat 4.x).  They are not part of the server and
don't belong there.  Putting them there makes your application less
portable and container-independent, which is a heavy cost.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 14, 2003 10:32 AM
To: Tomcat Users List
Subject: An easy one... Default Config in conf/web.xml

Hi,

I am using sections like that below to store the database url /
username /
password for my server.  I then access these from the code using

getInitParameter(database_password);

in my code.  What I would like is to move these out to the web.xml file
in
conf/web.xml so that when I move my .war file from the development to
the
live server it just picks up the new url's and passwords automatically.

Problem:
I can't figure out how to install these sections into the conf/web.xml
file.
I have tried putting them in the default servlet and the invoker
servlet
and also creating a servlet section of it's own but none of these work.
I
want to still be able to have a web.xml for most things (e.g.
session-timeout) but just have some things in the default one.

init-param
  param-namedatabase_password/param-name
  param-valuemypassword123/param-value
/init-param


Anybody know the answer?  I'd be very appreciative if you did.

Regards,
Andoni.


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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




RE: Error Log watcher

2003-02-14 Thread Ben Ricker
On Fri, 2003-02-14 at 09:16, Shapira, Yoav wrote:
 Howdy,
 What would you require from this error log watcher ?

Good question! Sorry I did not include it. I am looking for something
similar to swatch, but can handle the multiple-lined errors. I would
want the program to have some sort of rules setting functionality
(preferably regex) and that allows actions based upon the specified
rules.

The actions would basically be alpha pages which would include the error
message in the page. Some throttling would be nice, so multiple errors
would not flood my pager.

Ben Ricker


 -Original Message-
 From: Ben Ricker [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 14, 2003 9:58 AM
 To: Tomcat Users List
 Subject: Error Log watcher
 
 I am wondering if anyone has found a good error log watcher for Tomcat?
 Swatch does not work because it is made for syslog-type logs where an
 error message occurs on one line. So, it views a java error as one
 line,
 which really does not help.
 
 Anyone try any other programs?
 
 Ben Ricker
 
 --
 Ben Ricker [EMAIL PROTECTED]
 Wellinx.com
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential business communication, 
and may contain information that is confidential, proprietary and/or privileged.  
This e-mail is intended only for the individual(s) to whom it is addressed, and may 
not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
the(an) intended recipient, please immediately delete this e-mail from your computer 
system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
-- 
Ben Ricker [EMAIL PROTECTED]
Wellinx.com


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




RE: Log4J and tomcat using Commons logging

2003-02-14 Thread Larry Meadors
Where are your commons-logging and log4j jars?

If they are loaded by a different classloader than the log4j.properties
file, it may not work.

Larry

 [EMAIL PROTECTED] 02/14/03 02:47 AM 
Hi,

I have managed to get log4j to work for my webapps. I just have a
log4j.properties file in WEB-INF/classes and it works. I can't get
commons-logging to work though. If I try commons-logging it does not
pick up
my log4j.properties file yet using log4j directly does pick up the file.

I have spent a lot of time trawling Tomcat/Struts/Commons mail archives
to
try and find how to get this to work to no avail. Reading these mail
archives I can see that a lot of other people are having the same
problem as
me.

As Tomcat and Struts uses commons-logging could someone please try and
clarify how we set up a webapp to use commons-logging with its own
configuration file. I am sure this would prove useful to a large number
of
users.

Many thanks

Jim.

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
 Sent: 13 February 2003 18:11
 To: Tomcat Users List
 Subject: RE: Log4J and tomcat
 
 
 
 Howdy,
 FYI: we deploy in packed .war files (and have 
 unpackWARs=false in the
 Host elements of server.xml).  We use log4j with a properties
 configuration file.  The way we configure log4j is in a servlet
 listener's contextInitialized(ServletContext sce) method, using 
 URL configurationFileUrl =
 sce.getServletContext().getResource(/WEB-INF/config/log4j.prop);
 PropertyConfigurator.configure(configurationFileUrl);
 
 This works from wars, unpacked wars, etc.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 1:03 PM
 To: Tomcat Users List
 Subject: Re: Log4J and tomcat
 
 I'll keep you posted if I ever figure something out.
 
 The problem prob. is that since the common-logging and log4j 
 use a lot
 of
 static objects I'm getting what tomcat has already set up (this is a
 theory
 mind you)
 
 - Original Message -
 From: tomcat guy [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, February 13, 2003 12:57 PM
 Subject: Re: Log4J and tomcat
 
 
  Sloan, sorry can't help you out but if you find a solution I'd be
 interested
  in how you came up with the fix... Learnin about log4j it 
 could help
 in
 the
  future
 
  - Original Message -
  From: Sloan Seaman [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, February 12, 2003 3:23 PM
  Subject: Log4J and tomcat
 
 
   I'm deploying a war file using tomcat and I wish to use Apache's
 common
   logging api to log things (log4j behind the scenes).
  
   For some reason my configuration file seems to be getting ignored
 but
 my
   log.info msgs are showing up in the console window for Tomcat.
  
   Can someone tell me why this is happening?
  
   How do I get my app to use my log4j conf file?
  
   Thanks!
   --
   Sloan
  
  
  
  
 -
   To unsubscribe, e-mail: 
 [EMAIL PROTECTED]
   For additional commands, e-mail:
 [EMAIL PROTECTED]
  
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: 
 [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any 
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and 
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine
this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for 

Re: An easy one... Default Config in conf/web.xml

2003-02-14 Thread Andoni
But that's the way I want it to be.  At the moment my apps are machine
dependant because they use the
web-inf/web.xml file but if I could use the server's web.xml file instead I
would not have to reconfigure every time I move an app across to my live
server.

Andoni.


- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, February 14, 2003 3:38 PM
Subject: RE: An easy one... Default Config in conf/web.xml



Howdy,
Your parameters should be in your web.xml, which is in your war file if
you're using a war file.  They should not be in the server web.xml (the
one in conf/web.xml in tomcat 4.x).  They are not part of the server and
don't belong there.  Putting them there makes your application less
portable and container-independent, which is a heavy cost.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 14, 2003 10:32 AM
To: Tomcat Users List
Subject: An easy one... Default Config in conf/web.xml

Hi,

I am using sections like that below to store the database url /
username /
password for my server.  I then access these from the code using

getInitParameter(database_password);

in my code.  What I would like is to move these out to the web.xml file
in
conf/web.xml so that when I move my .war file from the development to
the
live server it just picks up the new url's and passwords automatically.

Problem:
I can't figure out how to install these sections into the conf/web.xml
file.
I have tried putting them in the default servlet and the invoker
servlet
and also creating a servlet section of it's own but none of these work.
I
want to still be able to have a web.xml for most things (e.g.
session-timeout) but just have some things in the default one.

init-param
  param-namedatabase_password/param-name
  param-valuemypassword123/param-value
/init-param


Anybody know the answer?  I'd be very appreciative if you did.

Regards,
Andoni.


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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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



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




RE: An easy one... Default Config in conf/web.xml

2003-02-14 Thread Shapira, Yoav

Howdy,

But that's the way I want it to be.  At the moment my apps are machine
dependant because they use the
web-inf/web.xml file but if I could use the server's web.xml file
instead I
would not have to reconfigure every time I move an app across to my
live
server.

Nearly all non-trivial web applications have environment-specific
settings.  There are many standards-compliant, portable ways to deal
with this.  For example, you can have tokens in your web.xml and have
ant fill them in depending upon the environment you're deploying to.  Or
you can have Enviroment entries in server.xml with the env-entry
references in web.xml.  Either of these is far superior to putting
anything in a container-specific location not intended for use in the
way you want it to.

If you still think it's a good idea, you can maybe do this by converting
the parameters from servlet init params to context params, and putting
those in conf/web.xml, e.g.
context-param
  param-namemyParam/param-name
  param-valuemyValue/param-value
/context-param

They will then be accessible via
getServletContext().getInitParameter(myParam); in your servlets.

Yoav Shapira
Millennium ChemInformatics



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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




Re: An easy one... Default Config in conf/web.xml

2003-02-14 Thread Andoni
Thanks for that.  I think I'll look up your other recommendations first.  I
don't know ant at all so I'll start with the other one.

Andoni.

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, February 14, 2003 3:48 PM
Subject: RE: An easy one... Default Config in conf/web.xml



Howdy,

But that's the way I want it to be.  At the moment my apps are machine
dependant because they use the
web-inf/web.xml file but if I could use the server's web.xml file
instead I
would not have to reconfigure every time I move an app across to my
live
server.

Nearly all non-trivial web applications have environment-specific
settings.  There are many standards-compliant, portable ways to deal
with this.  For example, you can have tokens in your web.xml and have
ant fill them in depending upon the environment you're deploying to.  Or
you can have Enviroment entries in server.xml with the env-entry
references in web.xml.  Either of these is far superior to putting
anything in a container-specific location not intended for use in the
way you want it to.

If you still think it's a good idea, you can maybe do this by converting
the parameters from servlet init params to context params, and putting
those in conf/web.xml, e.g.
context-param
  param-namemyParam/param-name
  param-valuemyValue/param-value
/context-param

They will then be accessible via
getServletContext().getInitParameter(myParam); in your servlets.

Yoav Shapira
Millennium ChemInformatics



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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



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




RE: Error Log watcher

2003-02-14 Thread Shapira, Yoav

Howdy,

Good question! Sorry I did not include it. I am looking for something
similar to swatch, but can handle the multiple-lined errors. I would
want the program to have some sort of rules setting functionality
(preferably regex) and that allows actions based upon the specified
rules.

OK.  I actually went and looked at the Swatch page out of interest.
Cool tool.

Here's an approach that may work for you: use log4j.  Implement a
TriggeringEventEvaluator
(http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/spi/Triggerin
gEventEvaluator.html) to do the regex or whatever rules you want to
decide required a page from a log message.  The evaluator will get every
log message, including its complete stack trace and any details you want
to add.  You can use log4j's MDC
(http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/MDC.html) to
provide any details needed in order to decide whether the event merits a
message to your page or not.

Log4j comes with an SMTP appender that sends email and has all the logic
you want: throttling and arbitrary rules for even evaluation.  See
http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/net/SMTPAppend
er.html for details.

Log4j doesn't come with a pager appender right now.  You could use a JMS
appender to send events (that pass the triggering event evaluator's
criteria) to a JMS server somewhere, as there are J2EE servers that can
handle paging.  Alternatively, you can write the pager appender yourself
and maybe even donate it to us as a log4j contribution ;)

This may seem like a lot, but it's really more work explaining the
process than doing it ;)

Yoav Shapira
Millennium ChemInformatics



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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




RE: Simple WAR on Apache + Tomcat + JBoss

2003-02-14 Thread Dennis Cartier
Hi Manjo,

It mostly looks OK to me. I run Tomcat 4.1.18 with JBoss 3.0.6.

Observations:

Of the following 3 lines, the last makes the previous 2 redundant

JKMount /mig/servlet/* ajp13
JKMount /mig/*.jsp ajp13
JKMount /mig/* ajp13

When you attempt to hit Tomcat through Apache, append a trailing slash like
you have in your mount command.

Use:
http://MY.IP.ADDR.ESS/mig/

Not:
http://MY.IP.ADDR.ESS/mig

If you want to be able to forward request with out the trailing slash, make
your mount:
JKMount /mig* ajp13

This can result in unexpected behaviour if you have other paths that are
similar
Eg. http://MY.IP.ADDR.ESS/mig == http://MY.IP.ADDR.ESS/migrate


Dennis


-Original Message-
From: Manoj Kithany [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 14, 2003 10:29 AM
To: [EMAIL PROTECTED]
Subject: Simple WAR on Apache + Tomcat + JBoss


Hi:

I have a simple WAR file 'mig.war' and want to see if that wokrs on
Architecture - Apache + JBoss(Tomcat).

I have my mig.war file in /jboss/server/default/deploy

I have my mod_jk.so connector in /usr/local/apache/libexec directory

My httpd.conf has following information at end:
-
LoadModule jk_module  libexec/mod_jk.so
JkWorkersFile /jboss/catalina/conf/jk/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevel info

JKMount /examples/servlet/* ajp13
JKMount /examples/*.jsp ajp13

JKMount /mig/servlet/* ajp13
JKMount /mig/*.jsp ajp13
JKMount /mig/* ajp13
-

My workers.properties file contains
-
workers.tomcat_home=/jboss/catalina
workers.java_home=/usr/java130
ps=/

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=MY.IP.ADDR.ESS
worker.ajp13.type=ajp13
---

My tomcat4-service.xml file has following:
---
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75 acceptCount=10
debug=1/
--

By the way why should Port be 8009...? should it be 8080?

Can anyone see if the above process is proper?

When I try http://MY.IP.ADDR.ESS on my browser, it shows my Welcome Apache
Page...which shows Apache is working fine.

Later when I try http://MY.IP.ADDR.ESS/mig is says Page Not Found Error

When I add Port 8080 as http://MY.IP.ADDR.ESS:8080/mig
it works fine...

How can I know if my Apache + Tomcat Integration is working fine and that
Apache REDIRECTS my JSP/Servlets to Tomcat?



Should I start my Jboss first or Apache first?

THANK YOU ALL!







_
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail


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


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




RE: Determine Presentation?

2003-02-14 Thread Dan Egan
Thank you,  Sometimes the easiest path doesn't appear in front of us :)

Dan

-Original Message-
From: Jake Robb [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 14, 2003 10:21 AM
To: Tomcat Users List
Subject: Re: Determine Presentation?


Try to access a file that doesn't exist, but that should be served by Tomcat
if it did (i.e. foo.jsp in one of your servlet directories).  You should get
an error page from Tomcat.

Then do the same with another file that doesn't exist, but that should be
served by IIS if it did (i.e. foo.html, or something outside of a servlet
directory).  You should get a different error page, presented by IIS.

-Jake


- Original Message -
From: Dan Egan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 14, 2003 10:05 AM
Subject: Determine Presentation?


 Hi,

 I am in the process of working with Tomcat and I wanted to know how I can
 determine the static content is being rendered by IIS.  I made the
 recommended changes to IIS by creating a VD pointing to the webapp and
 modified the uriworkermap.properties file setting the URI path to the
 servlet folder.  Everything works fine but the reason for this was to try
 and get a performance boost.  Any help and insight by the group would be
 appreciated.

 Thanks,

 Daniel Egan
 Windows 2000
 SQL Server 2000
 Environment 8.0.1
 Applications 8.0.2
 Phone 401-421-7740 X396
 Email [EMAIL PROTECTED]


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



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

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




Web app configuration problems

2003-02-14 Thread White, Joshua A (CASD, IT)
I am hoping someone could explain how Tomcat uses context paths.

In my server.xml file, I have declared a seperate context and some JNDI
resources for /myapp-web.

The way I deploy my web application determines if these resources will be
available or not.  If I drop my web applications war file (myapp-web.war)
into %CATALINA_HOME%/webapps, I am golden (The war does not even unpack).
However, if I use the manager utility from ant, the resources are not
available.  

I have checked to make sure that ant installs the application correctly.  I
receive the following message from ant:

[echo] OK - Installed application at context path /myapp-web

This utility seems to place an unpacked version of the war file into the
%CATALINA_HOME%\work\Standalone\localhost directory.  This does not seem to
be enough.  If I manually drop the war into the webapps directory,
everything works again.

If I deploy using only the manager utility, how should I configure its JNDI
resources so they work?

-Joshua






This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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




RE: Error Log watcher

2003-02-14 Thread Ben Ricker
On Fri, 2003-02-14 at 09:57, Shapira, Yoav wrote:
 Howdy,
 
 OK.  I actually went and looked at the Swatch page out of interest.
 Cool tool.

Yes it is. I use it on my Apache error logs and to security checks on
the access_logs. Easy to setup to boot.

 Here's an approach that may work for you: use log4j.  Implement a
 TriggeringEventEvaluator
 (http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/spi/Triggerin
 gEventEvaluator.html) to do the regex or whatever rules you want to
 decide required a page from a log message.  The evaluator will get every
 log message, including its complete stack trace and any details you want
 to add.  You can use log4j's MDC
 (http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/MDC.html) to
 provide any details needed in order to decide whether the event merits a
 message to your page or not.
 
 Log4j comes with an SMTP appender that sends email and has all the logic
 you want: throttling and arbitrary rules for even evaluation.  See
 http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/net/SMTPAppend
 er.html for details.

Some more information about myself: I am a system administrator. The
extent of my programmin g experience ends at Perl for System
Administrators. So I have a questions that may sound dumb:

Can you use these appenders as part of catching exceptions from within
the Code? That is, if you catch a certain exception that is going to be
logged, you set isTriggeringEvent on it and Log4J can then do what needs
to be done? 

 Log4j doesn't come with a pager appender right now.  You could use a JMS
 appender to send events (that pass the triggering event evaluator's
 criteria) to a JMS server somewhere, as there are J2EE servers that can
 handle paging.  Alternatively, you can write the pager appender yourself
 and maybe even donate it to us as a log4j contribution ;)  

Using the SMTPAppender to email it my pager would be plenty.

 This may seem like a lot, but it's really more work explaining the
 process than doing it ;)

If I understand it right, you are right. This would be easily added to
our existing exception handling.

Thanks for the info!

Ben Ricker

-- 
Ben Ricker [EMAIL PROTECTED]
Wellinx.com


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




Using Tomcat on OpenVMS

2003-02-14 Thread Appel, Jeremy D
All,

I have recently installed Apache Tomcat 4.0.4 on a Compaq OpenVMS
cluster.  I have tried to create a simple Hello World Servlet but have been
unable to get it to run.  I built the project with Ant successfully and
deployed it under the webapps directory.  I modified the server.xml
accordingly.  I am thinking there most be some OpenVMS related thing that it
causing to not work.


Thanks in advance,
Jeremy Appel 

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




Re: Using Tomcat on OpenVMS

2003-02-14 Thread Andoni
Are you using a .war file?  if so have you set the format to Stream_LF?

Let me know.

Andoni.
- Original Message -
From: Appel, Jeremy D [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 14, 2003 4:15 PM
Subject: Using Tomcat on OpenVMS


 All,

 I have recently installed Apache Tomcat 4.0.4 on a Compaq OpenVMS
 cluster.  I have tried to create a simple Hello World Servlet but have
been
 unable to get it to run.  I built the project with Ant successfully and
 deployed it under the webapps directory.  I modified the server.xml
 accordingly.  I am thinking there most be some OpenVMS related thing that
it
 causing to not work.


 Thanks in advance,
 Jeremy Appel

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




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




Re: Unanswered questions

2003-02-14 Thread Felicia Neff
On Thu, 13 Feb 2003, Tim Funk wrote:

  3. With the listener that uses 'homeBase' to read userdirs, I am only
  finding that a few directories are loaded.  How do I debug this?

 Turn the debug levels higher. Where debug=0 -- debug=99

Unfortunately, that didn't help.  It turns out that tomcat is looking for
a public_html directory under the 'homeBase' directory.  We don't have
one.  While I have linked public_html to . for testing, I would prefer a
more elegant solution.  I have already tried:
Listener className=org.apache.catalina.startup.UserConfig
 directory_name=.
 homeBase=/htdocs/userdirs
 userClass=org.apache.catalina.startup.HomesUserDatabase/
and
Listener className=org.apache.catalina.startup.UserConfig
 directory_name=
 homeBase=/htdocs/userdirs
 userClass=org.apache.catalina.startup.HomesUserDatabase/
Neither works.  Any suggestions?
-- Felicia

~~
[EMAIL PROTECTED]
Panix Staff

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




RE: Error Log watcher

2003-02-14 Thread Shapira, Yoav
Howdy,

Can you use these appenders as part of catching exceptions from within
the Code? That is, if you catch a certain exception that is going to be
logged, you set isTriggeringEvent on it and Log4J can then do what
needs
to be done?

The way it works is like this:
- You define the appender (SMTP appender for emails)
- You define the class (a java class) of the TriggeringEventEvaluator
- The above two can be done in a configuration file, no coding needed
- You write the triggering event evaluator (have to write java for this)
- The application uses log4j to do its logging normally.  It doesn't
need to know about the triggering event evaluator at all.  Log4j will
automatically evaluate events sent to the mail appender and decide
whether to send emails or not.

Using the SMTPAppender to email it my pager would be plenty.

Then you're pretty much all set.  I'll even attach a simple string match
evaluator for use as an example.  (Yes, I'm bored today ;))

Yoav Shapira
Millennium ChemInformatics



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


public class StringMatchEvaluator
  implements TriggeringEventEvaluator {
  /**
   * Interface method.
   * Returns true if the given
   * event should trigger 
   * the appender.
   *
   * This implementation checks for
   * the presence of the String blah.
   * Add a setter for blah to customize
   * the match string.
   *
   * @param event The logging event
   * @return boolean
   */
   public boolean isTriggeringEvent(LoggingEvent event) {
 if(event == null) {
   return false;
 }

 String eventMessage = event.getMessage();
 if((eventMessage != null) 
(eventMessage.indexOf(blah)  -1)) {
   return true;
 }

 ThrowableInformation ti = event.ThrowableInformation();
 if(ti != null) {
   String[] stackTrace = ti.getThrowableStrRep();
   if(stackTrace != null) {
 for(int i = 0; i  stackTrace.length; i++) {
   if(stackTrace[i].indexOf(blah)  -1) {
 return true;
   }
 }
   }
 }

 return false;
   }
}

// End of class: StringMatchEvaluator.java
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Unanswered questions

2003-02-14 Thread Tim Moore
Check out
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#User%20
Web%20Applications

It should be directoryName, not directory_name.

-- 
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: Felicia Neff [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, February 14, 2003 11:30 AM
 To: Tomcat Users List
 Subject: Re: Unanswered questions
 
 
 On Thu, 13 Feb 2003, Tim Funk wrote:
 
   3. With the listener that uses 'homeBase' to read userdirs, I am 
   only finding that a few directories are loaded.  How do I debug 
   this?
 
  Turn the debug levels higher. Where debug=0 -- debug=99
 
 Unfortunately, that didn't help.  It turns out that tomcat is 
 looking for a public_html directory under the 'homeBase' 
 directory.  We don't have one.  While I have linked 
 public_html to . for testing, I would prefer a more elegant 
 solution.  I have already tried:
 Listener className=org.apache.catalina.startup.UserConfig
  directory_name=.
  homeBase=/htdocs/userdirs
  
 userClass=org.apache.catalina.startup.HomesUserDatabase/
 and
 Listener className=org.apache.catalina.startup.UserConfig
  directory_name=
  homeBase=/htdocs/userdirs

 userClass=org.apache.catalina.startup.HomesUserDatabase/
 Neither works.  Any suggestions?
 -- Felicia
 
 ~~
 [EMAIL PROTECTED]
 Panix Staff
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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




RE: Web app configuration problems

2003-02-14 Thread White, Joshua A (CASD, IT)
Ok,

Before I deploy the application using ant (using the manager utility), I
first attempt to undeploy the application.  I think that the undeploy
command removes the context defined from the server.xml file from memory.
Here is what I did.

1. Start tomcat, app works fine (uses context from server.xml)
2. Use ant to first undeploy the application, then install the application
using the same context path
3. The applications resources are unavailable
4. Restart tomcat
5. App works fine

If I restart tomcat, the app works fine.  If this is true, how do I keep
re-deploying an application in development without removing the entries that
were defined in the server.xml file from memory?

-Joshua

  -Original Message-
 From: White, Joshua A (CASD, IT)  
 Sent: Friday, February 14, 2003 11:14 AM
 To:   '[EMAIL PROTECTED]'
 Subject:  Web app configuration problems
 
 I am hoping someone could explain how Tomcat uses context paths.
 
 In my server.xml file, I have declared a seperate context and some JNDI
 resources for /myapp-web.
 
 The way I deploy my web application determines if these resources will be
 available or not.  If I drop my web applications war file (myapp-web.war)
 into %CATALINA_HOME%/webapps, I am golden (The war does not even unpack).
 However, if I use the manager utility from ant, the resources are not
 available.  
 
 I have checked to make sure that ant installs the application correctly.
 I receive the following message from ant:
 
 [echo] OK - Installed application at context path /myapp-web
 
 This utility seems to place an unpacked version of the war file into the
 %CATALINA_HOME%\work\Standalone\localhost directory.  This does not seem
 to be enough.  If I manually drop the war into the webapps directory,
 everything works again.
 
 If I deploy using only the manager utility, how should I configure its
 JNDI resources so they work?
 
 -Joshua
 
 
 
 


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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




RE: Log4J and tomcat using Commons logging

2003-02-14 Thread Collins, Jim
Hi Larry,

There have been some problems with the location of the commons-logging jar
file. It was in server/lib but this causes intermittent problems that causes
Tomcat to crash. I have posted this problem to this mail list and the same
problem has been published on other mail lists. The fix is to move
commons-logging.jar from server/lib to common/lib and not to deploy
commons-logging with your webapp. At the moment I have commons-logging.jar
only in common/lib and the log4j jar file in common/lib and my apps
WEB-INF/lib dir. If I log directly to log4j it uses my log4j.properties file
but if I use commons-logging it uses the default.

For the moment I will stick to calling log4j directly. It would be nice to
clear this up though as a lot of other people are having the same problem
trying to use commons-logging.

Regards

Jim.

 -Original Message-
 From: Larry Meadors [mailto:[EMAIL PROTECTED]]
 Sent: 14 February 2003 15:40
 To: [EMAIL PROTECTED]
 Subject: RE: Log4J and tomcat using Commons logging
 
 
 Where are your commons-logging and log4j jars?
 
 If they are loaded by a different classloader than the 
 log4j.properties
 file, it may not work.
 
 Larry
 
  [EMAIL PROTECTED] 02/14/03 02:47 AM 
 Hi,
 
 I have managed to get log4j to work for my webapps. I just have a
 log4j.properties file in WEB-INF/classes and it works. I can't get
 commons-logging to work though. If I try commons-logging it does not
 pick up
 my log4j.properties file yet using log4j directly does pick 
 up the file.
 
 I have spent a lot of time trawling Tomcat/Struts/Commons 
 mail archives
 to
 try and find how to get this to work to no avail. Reading these mail
 archives I can see that a lot of other people are having the same
 problem as
 me.
 
 As Tomcat and Struts uses commons-logging could someone please try and
 clarify how we set up a webapp to use commons-logging with its own
 configuration file. I am sure this would prove useful to a 
 large number
 of
 users.
 
 Many thanks
 
 Jim.
 
  -Original Message-
  From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
  Sent: 13 February 2003 18:11
  To: Tomcat Users List
  Subject: RE: Log4J and tomcat
  
  
  
  Howdy,
  FYI: we deploy in packed .war files (and have 
  unpackWARs=false in the
  Host elements of server.xml).  We use log4j with a properties
  configuration file.  The way we configure log4j is in a servlet
  listener's contextInitialized(ServletContext sce) method, using 
  URL configurationFileUrl =
  sce.getServletContext().getResource(/WEB-INF/config/log4j.prop);
  PropertyConfigurator.configure(configurationFileUrl);
  
  This works from wars, unpacked wars, etc.
  
  Yoav Shapira
  Millennium ChemInformatics
  
  
  -Original Message-
  From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 13, 2003 1:03 PM
  To: Tomcat Users List
  Subject: Re: Log4J and tomcat
  
  I'll keep you posted if I ever figure something out.
  
  The problem prob. is that since the common-logging and log4j 
  use a lot
  of
  static objects I'm getting what tomcat has already set up 
 (this is a
  theory
  mind you)
  
  - Original Message -
  From: tomcat guy [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Thursday, February 13, 2003 12:57 PM
  Subject: Re: Log4J and tomcat
  
  
   Sloan, sorry can't help you out but if you find a solution I'd be
  interested
   in how you came up with the fix... Learnin about log4j it 
  could help
  in
  the
   future
  
   - Original Message -
   From: Sloan Seaman [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Wednesday, February 12, 2003 3:23 PM
   Subject: Log4J and tomcat
  
  
I'm deploying a war file using tomcat and I wish to 
 use Apache's
  common
logging api to log things (log4j behind the scenes).
   
For some reason my configuration file seems to be 
 getting ignored
  but
  my
log.info msgs are showing up in the console window for Tomcat.
   
Can someone tell me why this is happening?
   
How do I get my app to use my log4j conf file?
   
Thanks!
--
Sloan
   
   
   
   
  
 -
To unsubscribe, e-mail: 
  [EMAIL PROTECTED]
For additional commands, e-mail:
  [EMAIL PROTECTED]
   
  
  
   
  
 -
   To unsubscribe, e-mail: 
 [EMAIL PROTECTED]
   For additional commands, e-mail: 
  [EMAIL PROTECTED]
  
  
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: 
 [EMAIL PROTECTED]
  
  
  
  
  This e-mail, including any attachments, is a confidential 
  business communication, and may contain information that is 
  confidential, proprietary and/or privileged.  This e-mail is 
  intended only for the individual(s) to whom it is addressed, 
  and may not be saved, copied, 

Re: Network Monitor

2003-02-14 Thread Austin Gonyou
On Thu, 2003-02-13 at 20:16, Will Hartung wrote:
  From: Nicole Hibbard [EMAIL PROTECTED]
  Sent: Thursday, February 13, 2003 5:40 PM
  Subject: RE: Network Monitor
 
 
  linux is free and so is netsaint
 
 Yes, but hardware isn't. He may not be able to sacrifice a machine to the
 Linux gods for a monitoring solution. He may not know Linux. He may not want
 to learn Linux. All sorts of costs here for this free solution.

The cost here, is a benefit to all. You may spend time learning, but 
you will save much more than money, later. This free solution, costs only
some patience, more than anything else.

-- 
Austin Gonyou [EMAIL PROTECTED]
Coremetrics, Inc.

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




JSP files between many webapps

2003-02-14 Thread Edson Alves Pereira
Hello folks, i´m doubt about which is the best way to share JSP
files with many webapps ( in my case, i have 2 ), i don´t want copy the same
JSP to another directory and every page is easy configurable with parameters
like:

http://127.0.0.1/jsp/financ/browseLoansBr.jsp?formAction=/exec/PF_Maintenanc
eLoans

I tried to call the JSP from another webapp ( /intranet for instance
) but it isn´t the same session or enviromnent, all that i want is not to
use the same thing twice, waht i could do?

With best wishes,
Edson Alves Pereira



RE: Log4J and tomcat using Commons logging

2003-02-14 Thread Larry Meadors
I have never used log4j, but you might try putting the log4j.properties
file in common/classes, it means all apps get the same log settings, but
may work. :-/

Is there a way to tell log4j to use the properties file without relying
on the class loader, like an environment variable or something? That
might make it easier to use.

Larry

 [EMAIL PROTECTED] 02/14/03 09:55 AM 
Hi Larry,

There have been some problems with the location of the commons-logging
jar
file. It was in server/lib but this causes intermittent problems that
causes
Tomcat to crash. I have posted this problem to this mail list and the
same
problem has been published on other mail lists. The fix is to move
commons-logging.jar from server/lib to common/lib and not to deploy
commons-logging with your webapp. At the moment I have
commons-logging.jar
only in common/lib and the log4j jar file in common/lib and my apps
WEB-INF/lib dir. If I log directly to log4j it uses my log4j.properties
file
but if I use commons-logging it uses the default.

For the moment I will stick to calling log4j directly. It would be nice
to
clear this up though as a lot of other people are having the same
problem
trying to use commons-logging.

Regards

Jim.

 -Original Message-
 From: Larry Meadors [mailto:[EMAIL PROTECTED]]
 Sent: 14 February 2003 15:40
 To: [EMAIL PROTECTED]
 Subject: RE: Log4J and tomcat using Commons logging
 
 
 Where are your commons-logging and log4j jars?
 
 If they are loaded by a different classloader than the 
 log4j.properties
 file, it may not work.
 
 Larry
 
  [EMAIL PROTECTED] 02/14/03 02:47 AM 
 Hi,
 
 I have managed to get log4j to work for my webapps. I just have a
 log4j.properties file in WEB-INF/classes and it works. I can't get
 commons-logging to work though. If I try commons-logging it does not
 pick up
 my log4j.properties file yet using log4j directly does pick 
 up the file.
 
 I have spent a lot of time trawling Tomcat/Struts/Commons 
 mail archives
 to
 try and find how to get this to work to no avail. Reading these mail
 archives I can see that a lot of other people are having the same
 problem as
 me.
 
 As Tomcat and Struts uses commons-logging could someone please try and
 clarify how we set up a webapp to use commons-logging with its own
 configuration file. I am sure this would prove useful to a 
 large number
 of
 users.
 
 Many thanks
 
 Jim.
 
  -Original Message-
  From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
  Sent: 13 February 2003 18:11
  To: Tomcat Users List
  Subject: RE: Log4J and tomcat
  
  
  
  Howdy,
  FYI: we deploy in packed .war files (and have 
  unpackWARs=false in the
  Host elements of server.xml).  We use log4j with a properties
  configuration file.  The way we configure log4j is in a servlet
  listener's contextInitialized(ServletContext sce) method, using 
  URL configurationFileUrl =
  sce.getServletContext().getResource(/WEB-INF/config/log4j.prop);
  PropertyConfigurator.configure(configurationFileUrl);
  
  This works from wars, unpacked wars, etc.
  
  Yoav Shapira
  Millennium ChemInformatics
  
  
  -Original Message-
  From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 13, 2003 1:03 PM
  To: Tomcat Users List
  Subject: Re: Log4J and tomcat
  
  I'll keep you posted if I ever figure something out.
  
  The problem prob. is that since the common-logging and log4j 
  use a lot
  of
  static objects I'm getting what tomcat has already set up 
 (this is a
  theory
  mind you)
  
  - Original Message -
  From: tomcat guy [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Thursday, February 13, 2003 12:57 PM
  Subject: Re: Log4J and tomcat
  
  
   Sloan, sorry can't help you out but if you find a solution I'd be
  interested
   in how you came up with the fix... Learnin about log4j it 
  could help
  in
  the
   future
  
   - Original Message -
   From: Sloan Seaman [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Wednesday, February 12, 2003 3:23 PM
   Subject: Log4J and tomcat
  
  
I'm deploying a war file using tomcat and I wish to 
 use Apache's
  common
logging api to log things (log4j behind the scenes).
   
For some reason my configuration file seems to be 
 getting ignored
  but
  my
log.info msgs are showing up in the console window for Tomcat.
   
Can someone tell me why this is happening?
   
How do I get my app to use my log4j conf file?
   
Thanks!
--
Sloan
   
   
   
   
  
 -
To unsubscribe, e-mail: 
  [EMAIL PROTECTED]
For additional commands, e-mail:
  [EMAIL PROTECTED]
   
  
  
   
  
 -
   To unsubscribe, e-mail: 
 [EMAIL PROTECTED]
   For additional commands, e-mail: 
  [EMAIL PROTECTED]
  
  
  
  
  
 -
  To unsubscribe, 

Best practices - dev deploy?

2003-02-14 Thread John Ruffin
I running tc4.1.18, sdk1.4.0_01, struts1.1.b2 on a w2k machine.  TC runs as
an NT service.

I created a basic myHello project - just an app with 2 jsps.  Used Ant to
build and deploy the app but I can't see the changes unless I go through
this crazy process of:
(step1) removing the app using Manager
(step2) stopping the NT service - Apache Tomcat4.1 
(step3) deleting the app folder under catalina_home\webapps
(step3) deleting the appName.war file
(step4) starting the NT service - Apache Tomcat4.1
(step5) building the app using Ant - which of course redeploys the app

Did I mention it was crazy?

Question: What are some best practices for testing applications? 

I feel like I'm reinventing the wheel - there must be an easier way.

BTW, if I make changes to a jsp inside the container I can see the changes -
but of course I don't want to do that.

Thanks for your feedback.




The information in this email is confidential and may be 
legally privileged. It is intended solely for the addressee,
and access by anyone else is unauthorized.

If you are not the intended recipient, any disclosure, 
copying, distribution or any action taken or omitted to be
taken in reliance on it, is prohibited and may be unlawful. 

If you believe that you have received this email in error, 
please advise us by calling (901) 385 3688, or emailing
[EMAIL PROTECTED], and then delete this message
and all copies and backups thereof. Thank you.



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




RE: Best practices - dev deploy?

2003-02-14 Thread pqin
I guess it was cached. Try close your browser and re-launch it.

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: John Ruffin [mailto:[EMAIL PROTECTED]] 
Sent: February 14, 2003 12:13 PM
To: 'Tomcat Users List'
Subject: Best practices - dev  deploy?

I running tc4.1.18, sdk1.4.0_01, struts1.1.b2 on a w2k machine.  TC runs as
an NT service.

I created a basic myHello project - just an app with 2 jsps.  Used Ant to
build and deploy the app but I can't see the changes unless I go through
this crazy process of:
(step1) removing the app using Manager
(step2) stopping the NT service - Apache Tomcat4.1 
(step3) deleting the app folder under catalina_home\webapps
(step3) deleting the appName.war file
(step4) starting the NT service - Apache Tomcat4.1
(step5) building the app using Ant - which of course redeploys the app

Did I mention it was crazy?

Question: What are some best practices for testing applications? 

I feel like I'm reinventing the wheel - there must be an easier way.

BTW, if I make changes to a jsp inside the container I can see the changes -
but of course I don't want to do that.

Thanks for your feedback.




The information in this email is confidential and may be 
legally privileged. It is intended solely for the addressee,
and access by anyone else is unauthorized.

If you are not the intended recipient, any disclosure, 
copying, distribution or any action taken or omitted to be
taken in reliance on it, is prohibited and may be unlawful. 

If you believe that you have received this email in error, 
please advise us by calling (901) 385 3688, or emailing
[EMAIL PROTECTED], and then delete this message
and all copies and backups thereof. Thank you.



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



RE: JSP files between many webapps

2003-02-14 Thread Tim Moore
Well unfortunately, the servlet spec doesn't really allow for useful interaction 
between webapps.  Each one is considered to be its own independent environment, and 
you really can't share sessions between them without implementing your own session 
manager (as far as I know).

-- 
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: Edson Alves Pereira [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, February 14, 2003 1:08 PM
 To: 'Tomcat-User List'
 Subject: JSP files between many webapps
 
 
   Hello folks, i´m doubt about which is the best way to 
 share JSP files with many webapps ( in my case, i have 2 ), i 
 don´t want copy the same JSP to another directory and every 
 page is easy configurable with parameters
 like:
 
http://127.0.0.1/jsp/financ/browseLoansBr.jsp?formAction=/exec/PF_Maintenanc
eLoans

I tried to call the JSP from another webapp ( /intranet for instance
) but it isn´t the same session or enviromnent, all that i want is not to use the same 
thing twice, waht i could do?

With best wishes,
Edson Alves Pereira

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




Re: Best practices - dev deploy?

2003-02-14 Thread Peter Lin

As others have said recently, test often and set a
standard for how testing is done.  It's always much
easier to test small pieces by themselves first,
before it's integrated with other components. of
course development being what it is, testing isn't
always the highest priority for management.

the burden is really left up to the developer. Not all
managers like to hear it will take 1 week to write a
simple component. Assuming the management is not
adverse to formal testing and deployment procedures, I
find testing classes as it is done to be useful. Now
obviously this approach has flaws if some one decides
they want to put everything in one class that's 3k
lines long. Don't laugh, I've seen this happen in
numerous occasions.

as far deployment, 3 of my last 4 jobs were persuaded
to setup a formal deployment plan in writing. this
doesn't mean we actually follow, but it does help.

In terms of the actual process of deploying tomcat, I
prefer precompiling the jsp's on a staging machine,
running a regression test on that box in some
automated fashion, then once it's passed, copy just
the compiled classes to production machines.

then once the updated files are on one machine,
perform yet another automated verification test. if
that passes, replicate to all production machines.

peter 


--- John Ruffin [EMAIL PROTECTED] wrote:
 I running tc4.1.18, sdk1.4.0_01, struts1.1.b2 on a
 w2k machine.  TC runs as
 an NT service.
 
 I created a basic myHello project - just an app with
 2 jsps.  Used Ant to
 build and deploy the app but I can't see the changes
 unless I go through
 this crazy process of:
 (step1) removing the app using Manager
 (step2) stopping the NT service - Apache Tomcat4.1
 
 (step3) deleting the app folder under
 catalina_home\webapps
 (step3) deleting the appName.war file
 (step4) starting the NT service - Apache Tomcat4.1
 (step5) building the app using Ant - which of course
 redeploys the app
 
 Did I mention it was crazy?
 
 Question: What are some best practices for testing
 applications? 
 
 I feel like I'm reinventing the wheel - there must
 be an easier way.
 
 BTW, if I make changes to a jsp inside the container
 I can see the changes -
 but of course I don't want to do that.
 
 Thanks for your feedback.
 
 
 


 The information in this email is confidential and
 may be 
 legally privileged. It is intended solely for the
 addressee,
 and access by anyone else is unauthorized.
 
 If you are not the intended recipient, any
 disclosure, 
 copying, distribution or any action taken or omitted
 to be
 taken in reliance on it, is prohibited and may be
 unlawful. 
 
 If you believe that you have received this email in
 error, 
 please advise us by calling (901) 385 3688, or
 emailing
 [EMAIL PROTECTED], and then delete this
 message
 and all copies and backups thereof. Thank you.


 
 

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


__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

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




Re: tomcat crash puzzle

2003-02-14 Thread Dan McGowan
Justin, Yoav, Peter,
Thanks for the suggestions...I will put them to work and report my 
findings!
Dan

Dan --

As Peter Lin said, it does look like you've got a slow leak (which 
you'll
want to look at eventually), but it doesn't look like it's affecting 
your
crashes.  If it was, you'd see something much more dramatic and much 
more
obvious -- yours looks pretty normal.

As Yoav mentioned in her reply, the KERN_PROTECTION_FAILURE in the logs
indicates a kernel level error likely caused by the JVM.  That's 
obviously
not favorable territory to be in.  If you can figure out which thread is
causing the failure (and what that thread is responsible for), it'd be
useful.  If it's a Tomcat thread, there's hope.  If not, I'd check 
(who's
JVM are you using?)'s site for logged bugs and/or JVM patches or
updates.  I don't have any experience with Macs, so that's about all I 
can
suggest...

Hope that helps,
justin


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



Re: RTFM and Ettiquette was: MY ATTITUDE

2003-02-14 Thread Paul Brinkley
At 05:59 PM 2/13/2003 -0800, Jeff Wishnie wrote:

Although I agree wholeheartedly with the sentiment--do your homework 
before asking for help--lets not forget that given the
disorganized state of most opensource documentation, being pointed to the 
proper docs helps a lot.

Specifically, when someone asks a question that is answered in some docs, 
a useful answer would be something like:

You'll find the web.xml format explained in Sun's Servlet 2.3 spec, 
available at java.sun.com

Replying Yo, just, RTFM is rude and not helpful to anyone.

I'm pretty new to Tomcat as well and appreciate being pointed to the place 
where I can find an answer as much as being given told an
answer directly.

Having to manually repost a link to the documentation over and
over again gets tiresome.  The clever list member will quickly
make a handy list of links to post automatically in response,
but still has to go through the trouble of posting it repeatedly,
and it also clutters the list.

The solution that causes the least amount of distress to all
parties (that I can think of) is to teach netiquette to Internet
newcomers in some hard-to-avoid location.  It can be physical
(school courses, savvy parents, etc.) or virtual (a website, or
a tutorial in an Internet provider's software package).  That
netiquette must at the very least instruct newcomers how to find
online answers to a question:

1. Locate an official homepage for the topic, using a web search
   engine.
2a. Search archives of an official discussion forum, mailing
list, Usenet group, etc. for the answer.
2b. Search above for an FAQ.
3. Search the web in general.
4. Post to a forum, asking the question, asking for an FAQ if
   one couldn't be found by now, being polite and specific.

These should be done in the order given (2a and 2b can be in
either order as you like).  #4 absolutely, positively should be
a last-ditch option.  This is the only way we are going to
properly leverage computer automation, until NLU is achieved;
going to 4 before 1, 2, or 3 in effect requires everyone to have
their own personal research assistant, which is ludicrously
impractical in the long run.

Unfortunately, this is a culture change, and hence it will take
a while, possibly as much as a generation (25 years) or more.
Those of you with kids: start now...


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




RE: Best practices - dev deploy?

2003-02-14 Thread John Ruffin
Thanks PQ - I cleared the cache and reloaded to no avail.  I also closed the
brower and re-launched - same thing.

I'm really interested in understanding how people go about testing?  

Do you develop in your source area, run Ant, then navigate to your app in
the browser.  At this point are all your changes visible or is there
something else that needs to be done?


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 14, 2003 11:15 AM
To: [EMAIL PROTECTED]
Subject: RE: Best practices - dev  deploy?


I guess it was cached. Try close your browser and re-launch it.

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: John Ruffin [mailto:[EMAIL PROTECTED]] 
Sent: February 14, 2003 12:13 PM
To: 'Tomcat Users List'
Subject: Best practices - dev  deploy?

I running tc4.1.18, sdk1.4.0_01, struts1.1.b2 on a w2k machine.  TC runs as
an NT service.

I created a basic myHello project - just an app with 2 jsps.  Used Ant to
build and deploy the app but I can't see the changes unless I go through
this crazy process of:
(step1) removing the app using Manager
(step2) stopping the NT service - Apache Tomcat4.1 
(step3) deleting the app folder under catalina_home\webapps
(step3) deleting the appName.war file
(step4) starting the NT service - Apache Tomcat4.1
(step5) building the app using Ant - which of course redeploys the app

Did I mention it was crazy?

Question: What are some best practices for testing applications? 

I feel like I'm reinventing the wheel - there must be an easier way.

BTW, if I make changes to a jsp inside the container I can see the changes -
but of course I don't want to do that.

Thanks for your feedback.




The information in this email is confidential and may be 
legally privileged. It is intended solely for the addressee,
and access by anyone else is unauthorized.

If you are not the intended recipient, any disclosure, 
copying, distribution or any action taken or omitted to be
taken in reliance on it, is prohibited and may be unlawful. 

If you believe that you have received this email in error, 
please advise us by calling (901) 385 3688, or emailing
[EMAIL PROTECTED], and then delete this message
and all copies and backups thereof. Thank you.



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



The information in this email is confidential and may be 
legally privileged. It is intended solely for the addressee,
and access by anyone else is unauthorized.

If you are not the intended recipient, any disclosure, 
copying, distribution or any action taken or omitted to be
taken in reliance on it, is prohibited and may be unlawful. 

If you believe that you have received this email in error, 
please advise us by calling (901) 385 3688, or emailing
[EMAIL PROTECTED], and then delete this message
and all copies and backups thereof. Thank you.



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




Re: virtual hosts and manager app

2003-02-14 Thread Craig R. McClanahan


On Thu, 13 Feb 2003, Edgar Dollin wrote:

 Date: Thu, 13 Feb 2003 20:29:48 -0500
 From: Edgar Dollin [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: virtual hosts and manager app

 The manager app is pretty nice for applications located in the
 $CATALINA_HOME/webapps directory.  For the manager application to function
 does your application have to be located there or can it be in the arbitrary
 docbase directory of your Context.


There needs to be an instance of the manager web application inside each
Host.  Where the document root points is totally arbitrary -- for
example, you can share the document root from the standard one by setting
it to the absolute path corresponding to
$CATALINA_HOME/server/webapp/manager.

 I have added the Context for the manager application to my Host block
 and the manager application looks like it starts but you can't run any of
 the programs.

 Any help would be appreciated.


What does can't run any of the programs mean?

You'll need to show us details of what your Host looks like for the new
virtual host, and what error messages you get in the logs and/or in
respnose to issuing Manager commands in order to figure this one out.

 Thanks

 Edgar


Craig


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




RE: Log4J and tomcat using Commons logging

2003-02-14 Thread Collins, Jim
Hi Larry,

I am not having a problem with log4j I deploy the log4j.properties to
myapp/WEB-INF/classes and it works fine. I would not want to have
log4j.properies in common/classes because I want to be able to configure my
logging for individaul apps. The problem is if I use commons-logging, this
SHOULD use the underlying log4j implementation and the log4j.properties file
that I have deployed with my app. With commons-logging you do not log to any
particular logging implementation.

Regards

Jim.

 -Original Message-
 From: Larry Meadors [mailto:[EMAIL PROTECTED]]
 Sent: 14 February 2003 17:11
 To: [EMAIL PROTECTED]
 Subject: RE: Log4J and tomcat using Commons logging
 
 
 I have never used log4j, but you might try putting the 
 log4j.properties
 file in common/classes, it means all apps get the same log 
 settings, but
 may work. :-/
 
 Is there a way to tell log4j to use the properties file 
 without relying
 on the class loader, like an environment variable or something? That
 might make it easier to use.
 
 Larry
 
  [EMAIL PROTECTED] 02/14/03 09:55 AM 
 Hi Larry,
 
 There have been some problems with the location of the commons-logging
 jar
 file. It was in server/lib but this causes intermittent problems that
 causes
 Tomcat to crash. I have posted this problem to this mail list and the
 same
 problem has been published on other mail lists. The fix is to move
 commons-logging.jar from server/lib to common/lib and not to deploy
 commons-logging with your webapp. At the moment I have
 commons-logging.jar
 only in common/lib and the log4j jar file in common/lib and my apps
 WEB-INF/lib dir. If I log directly to log4j it uses my 
 log4j.properties
 file
 but if I use commons-logging it uses the default.
 
 For the moment I will stick to calling log4j directly. It 
 would be nice
 to
 clear this up though as a lot of other people are having the same
 problem
 trying to use commons-logging.
 
 Regards
 
 Jim.
 
  -Original Message-
  From: Larry Meadors [mailto:[EMAIL PROTECTED]]
  Sent: 14 February 2003 15:40
  To: [EMAIL PROTECTED]
  Subject: RE: Log4J and tomcat using Commons logging
  
  
  Where are your commons-logging and log4j jars?
  
  If they are loaded by a different classloader than the 
  log4j.properties
  file, it may not work.
  
  Larry
  
   [EMAIL PROTECTED] 02/14/03 02:47 AM 
  Hi,
  
  I have managed to get log4j to work for my webapps. I just have a
  log4j.properties file in WEB-INF/classes and it works. I can't get
  commons-logging to work though. If I try commons-logging it does not
  pick up
  my log4j.properties file yet using log4j directly does pick 
  up the file.
  
  I have spent a lot of time trawling Tomcat/Struts/Commons 
  mail archives
  to
  try and find how to get this to work to no avail. Reading these mail
  archives I can see that a lot of other people are having the same
  problem as
  me.
  
  As Tomcat and Struts uses commons-logging could someone 
 please try and
  clarify how we set up a webapp to use commons-logging with its own
  configuration file. I am sure this would prove useful to a 
  large number
  of
  users.
  
  Many thanks
  
  Jim.
  
   -Original Message-
   From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
   Sent: 13 February 2003 18:11
   To: Tomcat Users List
   Subject: RE: Log4J and tomcat
   
   
   
   Howdy,
   FYI: we deploy in packed .war files (and have 
   unpackWARs=false in the
   Host elements of server.xml).  We use log4j with a properties
   configuration file.  The way we configure log4j is in a servlet
   listener's contextInitialized(ServletContext sce) method, using 
   URL configurationFileUrl =
   sce.getServletContext().getResource(/WEB-INF/config/log4j.prop);
   PropertyConfigurator.configure(configurationFileUrl);
   
   This works from wars, unpacked wars, etc.
   
   Yoav Shapira
   Millennium ChemInformatics
   
   
   -Original Message-
   From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, February 13, 2003 1:03 PM
   To: Tomcat Users List
   Subject: Re: Log4J and tomcat
   
   I'll keep you posted if I ever figure something out.
   
   The problem prob. is that since the common-logging and log4j 
   use a lot
   of
   static objects I'm getting what tomcat has already set up 
  (this is a
   theory
   mind you)
   
   - Original Message -
   From: tomcat guy [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Thursday, February 13, 2003 12:57 PM
   Subject: Re: Log4J and tomcat
   
   
Sloan, sorry can't help you out but if you find a 
 solution I'd be
   interested
in how you came up with the fix... Learnin about log4j it 
   could help
   in
   the
future
   
- Original Message -
From: Sloan Seaman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 12, 2003 3:23 PM
Subject: Log4J and tomcat
   
   
 I'm deploying a war file using tomcat and I wish to 
  use Apache's
   

Re: JSP files between many webapps

2003-02-14 Thread Will Hartung
 From: Edson Alves Pereira [EMAIL PROTECTED]
 Sent: Friday, February 14, 2003 10:08 AM
 Subject: JSP files between many webapps


 Hello folks, i´m doubt about which is the best way to share JSP
 files with many webapps ( in my case, i have 2 ), i don´t want copy the
same
 JSP to another directory and every page is easy configurable with
parameters
 like:

Why not copy the JSPs? Is it difficult?

It's a simple Ant task to copy files. There's nothing stopping you from
keeping the JSPs in a common directory under your source tree and
replicating them to the appropriate spots in the independent Webapps at
build time.

To be clear, this is a build issue, not a Webapp issue.

The Webapp structure is strict, and basic. Your build environment is
dynamic, fluid and organized to suit your tastes, preferences, and
environment. These are not mutually incompatible premises.

When compiling C programs, you have a common area for library routines on
your system, and every time you build, the code gets copied from these
libraries into your final executable. You end up with N copies of printf
bundled across all of your different executables. This issue with the JSPs
within the Webapp is absolutely no different. Make N Webapps, get N copies
of the JSPs within those Webapps, yet they can all come from a single
source.

There is always (ALWAYS) this confusion that Webapps == the interlinked,
mangled web of resources in a conventional website. The whole point of the
Webapp is to avoid this mess. To cleanly and clearly demarcate the
boundaries of what is within the Webapp and what is not. This ensures the
the Webapp is moveable, easily, from one container to another.

The downside is that you pay for it with disk space, but saving disk space
has long ago been abandoned considering the drive densities of modern
systems.

The Webapp is your friend. Embrace it and be happy.

Regards,

Will Hartung
([EMAIL PROTECTED])




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




Re: Simple WAR on Apache + Tomcat + JBoss

2003-02-14 Thread Manoj Kithany
I checked the mod_jk.log file and found following...


[Fri Feb 14 09:44:47 2003]  [jk_uri_worker_map.c (460)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Fri Feb 14 09:44:47 2003]  [jk_uri_worker_map.c (477)]: Attempting to map 
URI '/mig/'
[Fri Feb 14 09:44:47 2003]  [jk_uri_worker_map.c 
(502)]:jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 
-/mig/
[Fri Feb 14 09:44:51 2003]  [jk_uri_worker_map.c (460)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Fri Feb 14 09:44:51 2003]  [jk_uri_worker_map.c (477)]: Attempting to map 
URI '/mig/'
[Fri Feb 14 09:44:51 2003]  [jk_uri_worker_map.c 
(502)]:jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 
-/mig/
[Fri Feb 14 09:52:43 2003]  [jk_uri_worker_map.c (460)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Fri Feb 14 09:52:43 2003]  [jk_uri_worker_map.c (477)]: Attempting to map 
URI '/mig/test.jsp'
[Fri Feb 14 09:52:43 2003]  [jk_uri_worker_map.c 
(558)]:jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 
-*.jsp

-

From the LOG file above it seems that INTEGRATION is successful BUT when 
I access http://MY.IP.ADDR.ESS/mig/test.jsp it shows FOLLOWING ERROR on 
BROWSER:--
-
Forbidden
You don't have permission to access /mig/test.jsp on this server
---

Any guideline on this is appreciated!


From: Manoj Kithany [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Simple WAR on Apache + Tomcat + JBoss
Date: Fri, 14 Feb 2003 15:29:11 +

Hi:

I have a simple WAR file 'mig.war' and want to see if that wokrs on 
Architecture - Apache + JBoss(Tomcat).

I have my mig.war file in /jboss/server/default/deploy

I have my mod_jk.so connector in /usr/local/apache/libexec directory

My httpd.conf has following information at end:
-
LoadModule jk_module  libexec/mod_jk.so
JkWorkersFile /jboss/catalina/conf/jk/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevel info

JKMount /examples/servlet/* ajp13
JKMount /examples/*.jsp ajp13

JKMount /mig/servlet/* ajp13
JKMount /mig/*.jsp ajp13
JKMount /mig/* ajp13
-

My workers.properties file contains
-
workers.tomcat_home=/jboss/catalina
workers.java_home=/usr/java130
ps=/

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=MY.IP.ADDR.ESS
worker.ajp13.type=ajp13
---

My tomcat4-service.xml file has following:
---
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 
debug=1/
--

By the way why should Port be 8009...? should it be 8080?

Can anyone see if the above process is proper?

When I try http://MY.IP.ADDR.ESS on my browser, it shows my Welcome Apache 
Page...which shows Apache is working fine.

Later when I try http://MY.IP.ADDR.ESS/mig is says Page Not Found Error

When I add Port 8080 as http://MY.IP.ADDR.ESS:8080/mig
it works fine...

How can I know if my Apache + Tomcat Integration is working fine and that 
Apache REDIRECTS my JSP/Servlets to Tomcat?



Should I start my Jboss first or Apache first?

THANK YOU ALL!

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


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



Re: Web app configuration problems

2003-02-14 Thread Craig R. McClanahan


On Fri, 14 Feb 2003, White, Joshua A (CASD, IT) wrote:

 Date: Fri, 14 Feb 2003 11:14:26 -0500
 From: White, Joshua A (CASD, IT) [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: Web app configuration problems

 I am hoping someone could explain how Tomcat uses context paths.

 In my server.xml file, I have declared a seperate context and some JNDI
 resources for /myapp-web.

 The way I deploy my web application determines if these resources will be
 available or not.  If I drop my web applications war file (myapp-web.war)
 into %CATALINA_HOME%/webapps, I am golden (The war does not even unpack).
 However, if I use the manager utility from ant, the resources are not
 available.

 I have checked to make sure that ant installs the application correctly.  I
 receive the following message from ant:

 [echo] OK - Installed application at context path /myapp-web

 This utility seems to place an unpacked version of the war file into the
 %CATALINA_HOME%\work\Standalone\localhost directory.  This does not seem to
 be enough.  If I manually drop the war into the webapps directory,
 everything works again.

 If I deploy using only the manager utility, how should I configure its JNDI
 resources so they work?


THe answer varies only slightly depending on whether you are using
Manager's /install or /deploy command.

* If you're using /install, you are probably using the war parameter
  to point at your WAR file.  Instead, make it point at an XML file that
  contains the Context element, and it's nested resource definitions,
  for the web application -- exactly the stuff you would put into
  server.xml if you were configuring the app manually.

* If you are using /deploy, you can include the XML file containing
  the Context element and its nested resource definitions inside the
  WAR itself, at /META-INF/context.xml.

In either case, the deployXML attribute on the Host element must be
set to true for the context configuration XML file to be recognized.

 -Joshua


Craig

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




Ant InstallTask

2003-02-14 Thread José Moreira
hello, i keep getting : 

--


file:/home/moreira/Projectos/Java/projecto/build.xml:146: taskdef class
org.apache.catalina.ant.InstallTask cannot be found


--

i followed this procedure :


  - Copy the file server/lib/catalina-ant.jar from your Tomcat 4
installation into the lib directory of your Ant installation.

  - Create a build.properties file in your application's top-level
source directory (or your user login home directory) that defines
appropriate values for the manager.password, manager.url, and
manager.username properties described above.



-- 
José Moreira [EMAIL PROTECTED]
TEGOPI S.A.


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




[Announce] Another Tomcat FAQ

2003-02-14 Thread Tim Funk
Here is another FAQ I just hastily together in light of recent events. 
There are sections which are incomplete. My goal is to have many some of 
the more common questions redirected to the FAQ.

The site is hosted by comcast (my home ISP) since they can give me 
multiple web accounts with cable(which is NOT an advertisement for them, 
just a warning in case the site is unreachable). I have no idea how 
robust their user hosting is and apologize in advance if you can't reach 
the site.

http://mywebpages.comcast.net/funkman/

-Tim


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



Re: Ant InstallTask

2003-02-14 Thread Craig R. McClanahan


On Fri, 14 Feb 2003, José Moreira wrote:

 Date: 14 Feb 2003 17:50:30 +
 From: José Moreira [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Ant InstallTask

 hello, i keep getting :

 --


 file:/home/moreira/Projectos/Java/projecto/build.xml:146: taskdef class
 org.apache.catalina.ant.InstallTask cannot be found


 --

 i followed this procedure :


   - Copy the file server/lib/catalina-ant.jar from your Tomcat 4
 installation into the lib directory of your Ant installation.

The only way you should get that error message is if this step wasn't done
correctly -- perhaps you copied it to the wrong copy of Ant?


   - Create a build.properties file in your application's top-level
 source directory (or your user login home directory) that defines
 appropriate values for the manager.password, manager.url, and
 manager.username properties described above.



Craig

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




RE: JSP files between many webapps

2003-02-14 Thread Tim Moore
I have to say that, while the webapp concept is nice in many respects, it's really not 
adequate for large, complex applications with multiple component modules.  It 
certainly makes the simple, most common case far more manageable than it was before, 
but there are some projects (probably a growing number) for which the single-unit 
webapp model doesn't quite cut it, and those of us building systems like that are 
constantly struggling against the limitations of the servlet spec. :-\

-- 
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: Will Hartung [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, February 14, 2003 12:42 PM
 To: Tomcat Users List
 Subject: Re: JSP files between many webapps
 
 
  From: Edson Alves Pereira [EMAIL PROTECTED]
  Sent: Friday, February 14, 2003 10:08 AM
  Subject: JSP files between many webapps
 
 
  Hello folks, i´m doubt about which is the best way to share 
 JSP files 
  with many webapps ( in my case, i have 2 ), i don´t want copy the
 same
  JSP to another directory and every page is easy configurable with
 parameters
  like:
 
 Why not copy the JSPs? Is it difficult?
 
 It's a simple Ant task to copy files. There's nothing 
 stopping you from keeping the JSPs in a common directory 
 under your source tree and replicating them to the 
 appropriate spots in the independent Webapps at build time.
 
 To be clear, this is a build issue, not a Webapp issue.
 
 The Webapp structure is strict, and basic. Your build 
 environment is dynamic, fluid and organized to suit your 
 tastes, preferences, and environment. These are not mutually 
 incompatible premises.
 
 When compiling C programs, you have a common area for library 
 routines on your system, and every time you build, the code 
 gets copied from these libraries into your final executable. 
 You end up with N copies of printf bundled across all of 
 your different executables. This issue with the JSPs within 
 the Webapp is absolutely no different. Make N Webapps, get N 
 copies of the JSPs within those Webapps, yet they can all 
 come from a single source.
 
 There is always (ALWAYS) this confusion that Webapps == the 
 interlinked, mangled web of resources in a conventional 
 website. The whole point of the Webapp is to avoid this mess. 
 To cleanly and clearly demarcate the boundaries of what is 
 within the Webapp and what is not. This ensures the the 
 Webapp is moveable, easily, from one container to another.
 
 The downside is that you pay for it with disk space, but 
 saving disk space has long ago been abandoned considering the 
 drive densities of modern systems.
 
 The Webapp is your friend. Embrace it and be happy.
 
 Regards,
 
 Will Hartung
 ([EMAIL PROTECTED])

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




RE: [Announce] Another Tomcat FAQ

2003-02-14 Thread Tim Moore
Thanks, Tim!  I have some ideas for contributions that I have to write
up.

-- 
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: Tim Funk [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, February 14, 2003 12:49 PM
 To: Tomcat Users List
 Subject: [Announce] Another Tomcat FAQ
 
 
 Here is another FAQ I just hastily together in light of 
 recent events. 
 There are sections which are incomplete. My goal is to have 
 many some of 
 the more common questions redirected to the FAQ.
 
 The site is hosted by comcast (my home ISP) since they can give me 
 multiple web accounts with cable(which is NOT an 
 advertisement for them, 
 just a warning in case the site is unreachable). I have no idea how 
 robust their user hosting is and apologize in advance if you 
 can't reach 
 the site.
 
http://mywebpages.comcast.net/funkman/

-Tim


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


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




using jsp bean

2003-02-14 Thread Peter Choe
i am running tomcat 4.1.10 and transfered some web apps that was running on 
tomcat 3.2.

i found that when i try to use jsp:useBean id=mgr scope=request 
class=Description /, i get the following error, which i didn't get before.

type Exception report
message
description The server encountered an internal error () that prevented it 
from fulfilling this request.
exception
org.apache.jasper.JasperException: Description
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:246)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:527)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2397)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:484)
root cause
javax.servlet.ServletException: Description
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:497)
at org.apache.jsp.menu_jsp._jspService(menu_jsp.java:206)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:202)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 

[TC-Struts?] Exception processing struts-html.tld

2003-02-14 Thread John Ruffin
 I created a basic struts app (struts-myhello).  
 
 I created files (Hello.jsp, HelloAction.java, HelloForm.java,
 HelloModel.java, Constants.java,  struts-config.xml).  Using Ant, the app
 builds and places the struts-myhello.war file in the catalina_home\webapps
 folder.
 
 Problem is: The app won't start - not automatically using Ant or manually
 via TC Manager.  Looking at the TC log, I see that the problem is:
 Exception processing TLD at resource path /WEB-INF/struts-html.tld
 
 Attached is the tc log which describes the problem.
 
 Can someone shed some light on this Exception and how to fix it?   BTW, I
 did send this to the [EMAIL PROTECTED] but it never can
 through to the list.
 
 Thanks for your help.
   localhost_log.2003-02-14.txt 



The information in this email is confidential and may be 
legally privileged. It is intended solely for the addressee,
and access by anyone else is unauthorized.

If you are not the intended recipient, any disclosure, 
copying, distribution or any action taken or omitted to be
taken in reliance on it, is prohibited and may be unlawful. 

If you believe that you have received this email in error, 
please advise us by calling (901) 385 3688, or emailing
[EMAIL PROTECTED], and then delete this message
and all copies and backups thereof. Thank you.



2003-02-14 10:50:22 StandardHost[localhost]: Removing web application at context path 
/struts-blank
2003-02-14 10:50:22 action: Tiles definition factory found for request processor ''.
2003-02-14 10:50:22 StandardHost[localhost]: Removing web application at context path 
/examples
2003-02-14 10:50:22 StandardHost[localhost]: Removing web application at context path 
/MyStars
2003-02-14 10:50:22 StandardHost[localhost]: Removing web application at context path 
/tomcat-docs
2003-02-14 10:50:22 StandardHost[localhost]: Removing web application at context path 
/webdav
2003-02-14 10:50:22 StandardHost[localhost]: Removing web application at context path 
/jsun
2003-02-14 10:50:22 StandardHost[localhost]: Removing web application at context path 
2003-02-14 10:50:22 StandardHost[localhost]: Removing web application at context path 
/admin
2003-02-14 10:50:50 HostConfig[localhost]: Deploying configuration descriptor admin.xml
2003-02-14 10:51:09 HostConfig[localhost]: Deploying configuration descriptor 
manager.xml
2003-02-14 10:51:09 WebappLoader[/manager]: Deploying class repositories to work 
directory C:\Tomcat4_1_18\work\Standalone\localhost\manager
2003-02-14 10:51:09 ContextConfig[/manager]: Configured an authenticator for method 
BASIC
2003-02-14 10:51:09 StandardManager[/manager]: Seeding random number generator class 
java.security.SecureRandom
2003-02-14 10:51:09 StandardManager[/manager]: Seeding of random number generator has 
been completed
2003-02-14 10:51:09 StandardWrapper[/manager:default]: Loading container servlet 
default
2003-02-14 10:51:09 StandardWrapper[/manager:invoker]: Loading container servlet 
invoker
2003-02-14 10:51:10 HostConfig[localhost]: Expanding web application archive jsun.war
2003-02-14 10:51:10 StandardHost[localhost]: Installing web application at context 
path /jsun from URL file:C:/Tomcat4_1_18/webapps/jsun
2003-02-14 10:51:10 WebappLoader[/jsun]: Deploying class repositories to work 
directory C:\Tomcat4_1_18\work\Standalone\localhost\jsun
2003-02-14 10:51:10 WebappLoader[/jsun]: Deploy class files /WEB-INF/classes to 
C:\Tomcat4_1_18\webapps\jsun\WEB-INF\classes
2003-02-14 10:51:10 WebappLoader[/jsun]: Deploy JAR /WEB-INF/lib/commons-beanutils.jar 
to C:\Tomcat4_1_18\webapps\jsun\WEB-INF\lib\commons-beanutils.jar
2003-02-14 10:51:10 WebappLoader[/jsun Deploy JAR /WEB-INF/lib/commons-digester.jar to 
C:\Tomcat4_1_18\webapps\jsun\WEB-INF\lib\commons-digester.jar
2003-02-14 10:51:10 WebappLoader[/jsun]: Deploy JAR /WEB-INF/lib/jsf-api.jar to 
C:\Tomcat4_1_18\webapps\jsun\WEB-INF\lib\jsf-api.jar
2003-02-14 10:51:10 WebappLoader[/jsun]: Deploy JAR /WEB-INF/lib/jsf-ri.jar to 
C:\Tomcat4_1_18\webapps\jsun\WEB-INF\lib\jsf-ri.jar
2003-02-14 10:51:10 WebappLoader[/jsun]: Deploy JAR /WEB-INF/lib/jstl.jar to 
C:\Tomcat4_1_18\webapps\jsun\WEB-INF\lib\jstl.jar
2003-02-14 10:51:10 WebappLoader[/jsun]: Deploy JAR /WEB-INF/lib/standard.jar to 
C:\Tomcat4_1_18\webapps\jsun\WEB-INF\lib\standard.jar
2003-02-14 10:51:11 StandardManager[/jsun]: Seeding random number generator class 
java.security.SecureRandom
2003-02-14 10:51:11 StandardManager[/jsun]: Seeding of random number generator has 
been completed
2003-02-14 10:51:12 StandardWrapper[/jsun:default]: Loading container servlet default
2003-02-14 10:51:12 StandardWrapper[/jsun:invoker]: Loading container servlet invoker
2003-02-14 10:51:12 HostConfig[localhost]: Expanding web application archive 
MyStars.war
2003-02-14 10:51:12 StandardHost[localhost]: Installing web application at context 
path /MyStars from URL 

HttpServletRequest.getSession() blocks for several minutes

2003-02-14 Thread Ian Stevens
Calls to HttpServletRequest.getSession() may return quickly for a while,
but then they will start to block for minutes at a time.  At that point,
all subsequent calls to that method will block until Tomcat is
restarted.

This only seems to happen when running Tomcat under Windows XP, although
I have not tried it under other Windows versions.  The JVM version is
1.4.1-b21, but I have been using version 1.4.1_01-b01 under Linux with
no problems.  I have had JPDA enabled every time the problem occurs,
with and without connected debugging processes.  The Tomcat version I am
using under Windows is 4.0.5.

ian.


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




FIX: Tomcat 4.1.18 problem with xtags library

2003-02-14 Thread Eduardo Suastegui
After seeking help in the developer's group, I found the problem had to do
with pooling and xtags' StyleTag.java's release() never getting called. I
downloaded the taglibs source base and cleared the state of StyleTag's
variables (xml and xsl seem to be the most important), setting them to null
at the end of doEndTag(). This solves the issue, and seems to also work
under Tomcat 4.0.6.

-Original Message-
From: Eduardo Suastegui [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 9:46 AM
To: '[EMAIL PROTECTED]'
Subject: Tomcat 4.1.18 problem with xtags library


I am running Tomcat 4.1.18 with JDK 1.4.1.01, and use the xtags directory
for server-side XSL transformation (XSLT). The first time I access the page
that includes XML to be displayed through xtags' XSLT, it works. The 2nd
time, it fails (see exception stack trace below), the 3rd time it works, the
4th time it fails, and so on--odds are okay; evens fail. I do not have this
problem with either Tomcat 4.0.3 or 4.0.6; when I switch to these versions,
all works as expected. Can anyone throw some help my way? Thanks.

HTTP Status 500 -




type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

org.apache.jasper.JasperException: java.io.IOException: Stream closed
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 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:260)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
 at java.lang.Thread.run(Thread.java:536)


root cause

javax.servlet.ServletException: java.io.IOException: Stream closed
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:530)
 at org.apache.jsp.XFolderList_jsp._jspService(XFolderList_jsp.java:196)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
04)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

  1   2   3   >