Re: Problem Bringing up Admin

2005-07-26 Thread Peddireddy Srikanth
hmm 
if u have manger application running , try depploying  (or redeploying
) admin application theu it
and then try to login
I hope u added the user with which r trying to login into admin in
tomcat-users.xml
If u have tried all these already and still failed then I too dont
have a clue :-(


On 7/25/05, J. Ryan Kelley [EMAIL PROTECTED] wrote:
 Yes, those files are exactly where you say they should be.
 
 Thanks.
 Ryan
 
 Peddireddy Srikanth wrote:
 
 may be you would have done this but I want to know...
 whethere you extracted all  files from that admin archive (zip or tar)
 and placed the files in respective folders like
  admin.xml in catalina home\conf\Catalina\localhost
  admin folder in  catalina home\server\webapps\
 
 Srikanth
 
 On 7/22/05, J. Ryan Kelley [EMAIL PROTECTED] wrote:
 
 
 I've installed tomcat 5.5.9 and downloaded the admin package.  When I
 attempt to access http://localhost:8080/admin/ I get a blank screen the
 first time, then if i reload I get the following error message in my
 browser.
 
 
 HTTP Status 503 - Servlet admin.login_jsp is currently unavailable
 
 *type* Status report
 *message* _Servlet admin.login_jsp is currently unavailable_
 *description* _The requested service (Servlet admin.login_jsp is
 currently unavailable) is not currently available._
 
 Apache Tomcat /5.5.9
 
 
 
 
 I've read around on several forums, and the usual cause of this seems to
 be duplicate instances of the file struts.jar, however I can only locate
 the struts.jar file that is in
 $CATALINA_HOME/server/webapps/admin/WEB-INF/lib.  Is anyone familiar
 with this problem, I'm sure that it's probably a basic solution, i'm a
 complete and total newbie to tomcat.
 
 Thanks in advance,
 
 --
 J. Ryan Kelley
 Trinity Transport, Inc.
 
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 --
 J. Ryan Kelley
 Trinity Transport, Inc.
 
 
 
 -
 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]



HTTP/1.1 GZIP compression and its impact on server

2005-07-26 Thread Peddireddy Srikanth
Hi all,
Iam planning to turn on the HTTP/1.1 GZIP compression for my
application by setting the compression attribute of http connector.
Iam sure that this will reduce my bandwidth requirements.
But I have a doubt. Is Compressing the responses  will eat away many
CPU cycles and affect my throughput or performance or scalability.

Any one have used this option in production environment and what r the
results(performance etc)

thanx for any info on this .

Regards
Srikanth

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



Re: Newbie: Connection refused first time on Tomcat

2005-07-26 Thread Rob Hills
Hi Bruce, 

On 25 Jul 2005 at 18:39, Bruce E. Stemplewski wrote: 

 Where does this get installed?  Remember, I am a total newbie at this. 
  
 And do I even need this?  The error says: 
  
 This release of Apache Tomcat was packaged to run on J2SE 5.0 
 or later. It can be run on earlier JVMs by downloading and 
 installing a compatibility package from the Apache Tomcat 
 binary download page. 
  
 But my Tomcat JVM setting is at: 
  
 C:\Program Files\Java\jre1.5.0_04\bin\client\jvm.dll 
  
 Isn't 1.5.0   J2SE 5.0? 

Basically yes, though there's a difference between the JRE and J2SE - the  
latter includes a compiler, though I seem to recall that recent versions of  
Tomcat are no longer dependant on having access to the Java compiler. 

I suspect you may have a path problem here. 

A trap for the unwary Windows player is that, as far as I am aware, Tomcat  
(and Java) struggle with Windows' standard approach to paths with spaces  
in them.  What I mean by that is that Windows mostly copes happily with  
paths with spaces in them, whereas programs like Java require such paths  
to be inside quotes. 

IIRC, by default, the tomcat installer puts at least one space in the path 
(  
Tomcat 5.5 - between Tomcat and 5 - there will be at least one more if you  
put it in the C:\Program Files\ directory), but doesn't put any quotes around  
that path in program settings and shortcuts, so installation using the default  
settings on Windows simply doesn't work.  Note, this problem may have  
been fixed in recent versions - I now habitually ensure I have no spaces in  
the tomcat (or JVM) path when I install it.  If you have any spaces in the  
path, I suggest you: 

1.  Uninstall Tomcat and the JVM/JRE 
2.  Reinstall being sure to choose paths for Tomcat and the JRE that  
have no spaces in them - be sure to remove the space in the path the  
installer offers for Tomcat (Tomcat 5.5) - it's not always obvious. 

HTH, 

Rob Hills 
www.netpaver.com.au 
West Perth, Western Australia 

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



RE: Web Application Question

2005-07-26 Thread Chris Ward

Joe,

Are you sure your filter is doing the right thing?

Sounds like it may be forwarding to a bad URL or 
something.  If it works without the web.xml then I
assume you've set up your context for the /cms 
application.

Maybe try a 

System.err.println( myDestURL )

in the filter and then copy/paste that output into 
your browser to see it exists.

Hope this helps.
Chris Ward



 
 
 Hello,
 
 I'm running Tomcat 5.5.7, and right now I have one 
 application ( the default application ). I just created a new 
 dir ( $CATALINA_HOME/webapps/cms ) for a new application. The 
 home page ( index.jsp ), for the application, is just a 
 simple jsp file with static content.
 
 Once I added a WEB-INF/web.xml file, with just filter  
 filter-mapping tags, and my welcome-file list, and browse to 
 the application I get a 404 error. Now, if I remove the 
 web.xml file from the WEB-INF/web.xml directory, I see the 
 correct index.jsp.
 
 I'm looking in the $CATALINA_HOME/logs/catalina.out file and 
 see nothing. I have watched the file, using tail -f during 
 start up, and don't see any message about a misconfiguration 
 in my web-xml file.
 
 Am I missing a step in the process of creating a  new web 
 application? Any help would be appreciated.
 
 Thanks.
 
 -
 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: restarting tomcat in production

2005-07-26 Thread Christoph Kutzinski

Agreed,
and if you have any session information and the session can't be (for 
whatever reason) be de/serialized, it would indeed be a very bad idea to 
restart tomcat.


Christoph

Robert Harper wrote:

The best practice is to find the leak and fix it. Restarting is a cover up
to a problem that may cause bigger problems down the road as the project
scope increases. You can do this but it only hides the real problem and if
someone replicates you site and forgets to write or enable the script, then
the problem will resurface and you will have to start the discovery process
all over again.

Robert S. Harper
Information Access Technology, Inc.
-Original Message-
From: Ron Heeb [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 25, 2005 2:16 PM

To: tomcat-user@jakarta.apache.org
Subject: restarting tomcat in production

hi,

i'm looking for some feedback on whether or not it's a normal procedure 
to regularly restart tomcat.  we have some memory leak somewhere that 
forces us to restart the process every 6-8 days but we're thinking that 
just putting in a script to restart daily would prevent this and may not 
be a bad idea to do even if there wasn't any leak.


any response appreciated.  thanks in advance...ron




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



tomcat 5.5.9, JSP, EL evaluation

2005-07-26 Thread Walther Hautermann
Hi,

 

My jsp page contains a c:out value=${users}/. The result is
${users}. I had a look in the generated .java and it seems the ${users}
is not evaluated : _jspx_th_c_out_0.setValue(new String(${users}));

 

Is there something to configure with tomcat 5.5.9 to enable the
evaluation of the EL ?

 

Thanks for your help.

Walther



Re: tomcat 5.5.9, JSP, EL evaluation

2005-07-26 Thread Martin Bromley

Do you need the c:out?  Have you tried just ${users}?  I'm no expert on c:out 
but my understanding is that it's a tag of times past..

Walther Hautermann wrote:

Hi,

 


My jsp page contains a c:out value=${users}/. The result is
${users}. I had a look in the generated .java and it seems the ${users}
is not evaluated : _jspx_th_c_out_0.setValue(new String(${users}));

 


Is there something to configure with tomcat 5.5.9 to enable the
evaluation of the EL ?

 


Thanks for your help.

Walther




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



AW: tomcat 5.5.9, JSP, EL evaluation

2005-07-26 Thread Peter . Zoche
Hi Walther,

be sure your web.xml is set to the following:

web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd
version=2.4

It has to be version 2.4 of Servlet Specification to enable
EL in your jsp's. It does not work with older versions!

Hope this helps,

Peter

-Ursprüngliche Nachricht-
Von: Walther Hautermann [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 26. Juli 2005 10:37
An: tomcat-user@jakarta.apache.org
Betreff: tomcat 5.5.9, JSP, EL evaluation


Hi,

 

My jsp page contains a c:out value=${users}/. The result is
${users}. I had a look in the generated .java and it seems the ${users}
is not evaluated : _jspx_th_c_out_0.setValue(new String(${users}));

 

Is there something to configure with tomcat 5.5.9 to enable the
evaluation of the EL ?

 

Thanks for your help.

Walther


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



RE: tomcat 5.5.9, JSP, EL evaluation

2005-07-26 Thread Allistair Crossley
Hi,

1. Check your JSP imports the c tag library
2. Check your web.xml schema is for J2EE 2.4

web-app xmlns=http://java.sun.com/xml/ns/j2ee; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=2.4 
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;

3. You don't need to use c:out for this kind of thing. Just

${users}

in the page works. Many people don't seem to realise this.

Allistair.

 -Original Message-
 From: Walther Hautermann [mailto:[EMAIL PROTECTED]
 Sent: 26 July 2005 09:37
 To: tomcat-user@jakarta.apache.org
 Subject: tomcat 5.5.9, JSP, EL evaluation
 
 
 Hi,
 
  
 
 My jsp page contains a c:out value=${users}/. The result is
 ${users}. I had a look in the generated .java and it seems 
 the ${users}
 is not evaluated : _jspx_th_c_out_0.setValue(new String(${users}));
 
  
 
 Is there something to configure with tomcat 5.5.9 to enable the
 evaluation of the EL ?
 
  
 
 Thanks for your help.
 
 Walther
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



How to prevent JSP from creating a session by default?

2005-07-26 Thread Markus Kobler

We have recently introduced load balancing using JK and have been
surprised to find that by default, all JSP pages create a user session.

Adding %@ page session=false % seems to be the only way
of disabling this. I assume this is because every JSP has access to the
session object. Is there anyway to disabling this by default?

Thanks

Markus

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



tomcat releases

2005-07-26 Thread Guy Katz
hi all;
i never seem to understand from the change log and release notes if a new 
tomcat version is worth upgrading to.
i remember reading in some article that tomcat 5.5.10 has some major changes 
regarding the HTTP server part but i could not really see that from the release 
notes.
did tomcat 5.5.10 had those changes? i have 5.5.9 in production and i am quite 
happy with it so only major changes can make me upgrade.
thanks for the help.




RE: tomcat 5.5.9, JSP, EL evaluation

2005-07-26 Thread Walther Hautermann
Hi Allistair,

Now the definition of the taglibs in the web.xml seems to be wrong.
Could you provide me an example?


Thx

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: mardi 26 juillet 2005 10:43
To: Tomcat Users List
Subject: RE: tomcat 5.5.9, JSP, EL evaluation

Hi,

1. Check your JSP imports the c tag library
2. Check your web.xml schema is for J2EE 2.4

web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=2.4
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;

3. You don't need to use c:out for this kind of thing. Just

${users}

in the page works. Many people don't seem to realise this.

Allistair.

 -Original Message-
 From: Walther Hautermann [mailto:[EMAIL PROTECTED]
 Sent: 26 July 2005 09:37
 To: tomcat-user@jakarta.apache.org
 Subject: tomcat 5.5.9, JSP, EL evaluation
 
 
 Hi,
 
  
 
 My jsp page contains a c:out value=${users}/. The result is
 ${users}. I had a look in the generated .java and it seems 
 the ${users}
 is not evaluated : _jspx_th_c_out_0.setValue(new String(${users}));
 
  
 
 Is there something to configure with tomcat 5.5.9 to enable the
 evaluation of the EL ?
 
  
 
 Thanks for your help.
 
 Walther
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


-
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: tomcat 5.5.9, JSP, EL evaluation

2005-07-26 Thread Allistair Crossley
Hi,

You don't need to import the tag libraries for EL etc.. only in your pages. 
However, the new schema will cause problems for your web.xml in other ways. 
Here is a valid web.xml

?xml version=1.0 encoding=UTF-8?
web-app xmlns=http://java.sun.com/xml/ns/j2ee; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=2.4 
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;

context-param
param-namecontextConfigLocation/param-name
param-value/WEB-INF/applicationContext.xml/param-value
/context-param

listener
listener-class
org.springframework.web.context.ContextLoaderListener
/listener-class
/listener

listener
listener-class
com.opensymphony.oscache.web.CacheContextListener
/listener-class
/listener 

listener
listener-class

com.qas.newmedia.internet.core.framework.listener.ContextListener
/listener-class
/listener

filter
filter-nameUrlRewriteFilter/filter-name

filter-classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/filter-class
init-param
param-namelogLevel/param-name
param-valueERROR/param-value
/init-param
/filter

filter-mapping
filter-nameUrlRewriteFilter/filter-name
url-pattern/*/url-pattern
/filter-mapping

servlet
servlet-namespringFrontController/servlet-name

servlet-classorg.springframework.web.servlet.DispatcherServlet/servlet-class
load-on-startup1/load-on-startup
/servlet

servlet-mapping
servlet-namespringFrontController/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping

session-config
session-timeout10/session-timeout
/session-config

mime-mapping
extensionpdf/extension
mime-typeapplication/pdf/mime-type
/mime-mapping

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

!-- 
error-page
error-code404/error-code
location/views/errors/404.html/location
/error-page   
--

error-page

exception-typecom.qas.newmedia.internet.core.page.exception.PageException/exception-type
location/jsp/errors/pageNotFound.html/location
/error-page   

jsp-config

taglib
taglib-uriqas/taglib-uri
taglib-location/WEB-INF/tld/qas.tld/taglib-location
/taglib

taglib
taglib-urioscache/taglib-uri
taglib-location/WEB-INF/tld/oscache.tld/taglib-location
/taglib

taglib
taglib-urispring/taglib-uri
taglib-location/WEB-INF/tld/spring.tld/taglib-location
/taglib


jsp-property-group
display-nameQAS.com/display-name
url-pattern*.jsp/url-pattern
el-ignoredfalse/el-ignored
scripting-invalidfalse/scripting-invalid
is-xmlfalse/is-xml
/jsp-property-group
/jsp-config   

/web-app


 -Original Message-
 From: Walther Hautermann [mailto:[EMAIL PROTECTED]
 Sent: 26 July 2005 10:00
 To: Tomcat Users List
 Subject: RE: tomcat 5.5.9, JSP, EL evaluation
 
 
 Hi Allistair,
 
 Now the definition of the taglibs in the web.xml seems to be wrong.
 Could you provide me an example?
 
 
 Thx
 
 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
 Sent: mardi 26 juillet 2005 10:43
 To: Tomcat Users List
 Subject: RE: tomcat 5.5.9, JSP, EL evaluation
 
 Hi,
 
 1. Check your JSP imports the c tag library
 2. Check your web.xml schema is for J2EE 2.4
 
 web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=2.4
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
 
 3. You don't need to use c:out for this kind of thing. Just
 
 ${users}
 
 in the page works. Many people don't seem to realise this.
 
 Allistair.
 
  -Original Message-
  From: Walther Hautermann [mailto:[EMAIL PROTECTED]
  Sent: 26 July 2005 09:37
  To: tomcat-user@jakarta.apache.org
  Subject: tomcat 5.5.9, JSP, EL evaluation
  
  
  Hi,
  
   
  
  My jsp page 

RE: tomcat 5.5.9, JSP, EL evaluation

2005-07-26 Thread Walther Hautermann
Many thx. It works now

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: mardi 26 juillet 2005 11:02
To: Tomcat Users List
Subject: RE: tomcat 5.5.9, JSP, EL evaluation

Hi,

You don't need to import the tag libraries for EL etc.. only in your
pages. However, the new schema will cause problems for your web.xml in
other ways. Here is a valid web.xml

?xml version=1.0 encoding=UTF-8?
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=2.4
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;

context-param
param-namecontextConfigLocation/param-name

param-value/WEB-INF/applicationContext.xml/param-value
/context-param

listener
listener-class

org.springframework.web.context.ContextLoaderListener
/listener-class
/listener

listener
listener-class

com.opensymphony.oscache.web.CacheContextListener
/listener-class
/listener 

listener
listener-class

com.qas.newmedia.internet.core.framework.listener.ContextListener
/listener-class
/listener

filter
filter-nameUrlRewriteFilter/filter-name
 
filter-classorg.tuckey.web.filters.urlrewrite.UrlRewriteFilter/filter
-class
init-param
param-namelogLevel/param-name
param-valueERROR/param-value
/init-param
/filter

filter-mapping
filter-nameUrlRewriteFilter/filter-name
url-pattern/*/url-pattern
/filter-mapping

servlet
servlet-namespringFrontController/servlet-name

servlet-classorg.springframework.web.servlet.DispatcherServlet/servle
t-class
load-on-startup1/load-on-startup
/servlet

servlet-mapping
servlet-namespringFrontController/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping

session-config
session-timeout10/session-timeout
/session-config

mime-mapping
extensionpdf/extension
mime-typeapplication/pdf/mime-type
/mime-mapping

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

!-- 
error-page
error-code404/error-code
location/views/errors/404.html/location
/error-page   
--

error-page

exception-typecom.qas.newmedia.internet.core.page.exception.PageExcept
ion/exception-type
location/jsp/errors/pageNotFound.html/location
/error-page   

jsp-config

taglib
taglib-uriqas/taglib-uri

taglib-location/WEB-INF/tld/qas.tld/taglib-location
/taglib

taglib
taglib-urioscache/taglib-uri
 
taglib-location/WEB-INF/tld/oscache.tld/taglib-location
/taglib

taglib
taglib-urispring/taglib-uri
 
taglib-location/WEB-INF/tld/spring.tld/taglib-location
/taglib


jsp-property-group
display-nameQAS.com/display-name
url-pattern*.jsp/url-pattern
el-ignoredfalse/el-ignored
scripting-invalidfalse/scripting-invalid
is-xmlfalse/is-xml
/jsp-property-group
/jsp-config   

/web-app


 -Original Message-
 From: Walther Hautermann [mailto:[EMAIL PROTECTED]
 Sent: 26 July 2005 10:00
 To: Tomcat Users List
 Subject: RE: tomcat 5.5.9, JSP, EL evaluation
 
 
 Hi Allistair,
 
 Now the definition of the taglibs in the web.xml seems to be wrong.
 Could you provide me an example?
 
 
 Thx
 
 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
 Sent: mardi 26 juillet 2005 10:43
 To: Tomcat Users List
 Subject: RE: tomcat 5.5.9, JSP, EL evaluation
 
 Hi,
 
 1. Check your JSP imports the c tag library
 2. Check your web.xml schema is for J2EE 2.4
 
 web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=2.4
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
 
 3. You don't need to use c:out for this kind of thing. Just
 
 ${users}
 
 in the page works. Many people don't seem to realise this.
 
 Allistair.
 
  -Original Message-
  From: Walther Hautermann [mailto:[EMAIL PROTECTED]
  Sent: 26 July 2005 09:37
  To: 

Requests that are not handled by ROOT

2005-07-26 Thread Allistair Crossley
Hi,
 
Mind's gone a little blank, should know this but our webapp has a setup such 
that a filter maps /* requests and handles them.
 
However, Tomcat is preventing requests that do not match /abc with a 404 I 
think because it thinks abc is another web application if it has /abc/def
 
E.g
 
/index.do HTTP/1.1 200 -
/utilities/index.do HTTP/1.1 404 -
 
My question is how do I get all requests (i.e both those above) to get handled 
by the ROOT web application?
 
Cheers, Allistair


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT



RE: Requests that are not handled by ROOT

2005-07-26 Thread Raghupathy,Gurumoorthy
Try filter map with * instead of /* 

Regards
Guru 

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: 26 July 2005 11:36
To: tomcat-user@jakarta.apache.org
Subject: Requests that are not handled by ROOT


Hi,
 
Mind's gone a little blank, should know this but our webapp has a setup such
that a filter maps /* requests and handles them.
 
However, Tomcat is preventing requests that do not match /abc with a 404 I
think because it thinks abc is another web application if it has /abc/def
 
E.g
 
/index.do HTTP/1.1 200 -
/utilities/index.do HTTP/1.1 404 -
 
My question is how do I get all requests (i.e both those above) to get
handled by the ROOT web application?
 
Cheers, Allistair


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



Re: Error 500 messages

2005-07-26 Thread Tim Funk

Yes, for example: %@ page buffer='128kb' %

-Tim

Adile Abbadi wrote:

Hi Tim,

Thanx for this again - sorry to be a pain - but this is good info - so the
bugger size value is a jsp page directive? I'll check into it - but if you
can confirm I would appreciate it.

Thanx

Adile


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: July 24, 2005 7:46 AM
To: Tomcat Users List
Subject: Re: Error 500 messages


The response is being comitted before the erro is being thrown. You need to
set the buffer size to be larger. Its a page directive.


-Tim


Adile Abbadi wrote:



Hi Tim,

Thank you very much - that has helped - however I discovered that the
problem still exists if I have an include within an include - ie.

I have an include called this

jsp:include page=navmenu.jsp flush=false

Inside that include I have another include also with flush set to false -
and I still get a blank page - however if I remove the includes within the
include then the exception is visible. Any ideas on this?



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



Re: Init parameter in context.xml

2005-07-26 Thread Tim Funk

Only a guess try
   Context path=/appName ...
Parameter name=paramName value=dummyValue/
   /Context

-Tim

Arash Ramin wrote:


In lieu of using web.xml, I'm trying to add an init parameter in our
application's context.xml file:

  context path=/appName ...
parameter name=paramName value=dummyValue/
  /context

According to the Tomcat docs, this is equivalent to using the following in
web.xml:

  context-param
param-nameparamName/param-name
param-valuedummyValue/param-value
  /context-param

In my JSP page, I try the following:

%= getServletContext().getInitParameter(helpAppName) %

but I get simply get 'null'.  If I move the parameter to web.xml, everything
works fine.

Our context.xml file is generated through an Ant script for different
environments, hence my need to put the parameter there instead of web.xml
 


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



Re: HTTP/1.1 GZIP compression and its impact on server

2005-07-26 Thread Tim Funk
It will eat up CPU, but you also save CPU by not having to transmit those 
extra bytes.


Its always a good idea to GZIP.

-Tim

Peddireddy Srikanth wrote:


Hi all,
Iam planning to turn on the HTTP/1.1 GZIP compression for my
application by setting the compression attribute of http connector.
Iam sure that this will reduce my bandwidth requirements.
But I have a doubt. Is Compressing the responses  will eat away many
CPU cycles and affect my throughput or performance or scalability.

Any one have used this option in production environment and what r the
results(performance etc)
 


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



RE: Requests that are not handled by ROOT

2005-07-26 Thread Allistair Crossley
According to the spec /* is everything in the web application. Well, I did try 
* but that killed all my requests with 404 errors.

Any further suggestions? 

Thx.

 -Original Message-
 From: Raghupathy,Gurumoorthy
 [mailto:[EMAIL PROTECTED]
 Sent: 26 July 2005 11:38
 To: 'Tomcat Users List'
 Subject: RE: Requests that are not handled by ROOT
 
 
 Try filter map with * instead of /* 
 
 Regards
 Guru 
 
 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
 Sent: 26 July 2005 11:36
 To: tomcat-user@jakarta.apache.org
 Subject: Requests that are not handled by ROOT
 
 
 Hi,
  
 Mind's gone a little blank, should know this but our webapp 
 has a setup such
 that a filter maps /* requests and handles them.
  
 However, Tomcat is preventing requests that do not match /abc 
 with a 404 I
 think because it thinks abc is another web application if it 
 has /abc/def
  
 E.g
  
 /index.do HTTP/1.1 200 -
 /utilities/index.do HTTP/1.1 404 -
  
 My question is how do I get all requests (i.e both those above) to get
 handled by the ROOT web application?
  
 Cheers, Allistair
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
 ---
 QAS Ltd.
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT
 
 
 -
 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: How to prevent JSP from creating a session by default?

2005-07-26 Thread Tim Funk
If your running tomcat5, look at the JSP spec - JSP.3.3.5 Defining Implicit 
Includes


This *might* allow you to declare %@ page session=false % in an include 
then have that be included in all your jsp's.


-Tim

Markus Kobler wrote:


We have recently introduced load balancing using JK and have been
surprised to find that by default, all JSP pages create a user session.

Adding %@ page session=false % seems to be the only way
of disabling this. I assume this is because every JSP has access to the
session object. Is there anyway to disabling this by default?
 


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



RE: Requests that are not handled by ROOT

2005-07-26 Thread Allistair Crossley
My bad. It is actually coming into the web application afterall with /*.

Cheers!

 -Original Message-
 From: Allistair Crossley 
 Sent: 26 July 2005 11:46
 To: Tomcat Users List
 Subject: RE: Requests that are not handled by ROOT
 
 
 According to the spec /* is everything in the web 
 application. Well, I did try * but that killed all my 
 requests with 404 errors.
 
 Any further suggestions? 
 
 Thx.
 
  -Original Message-
  From: Raghupathy,Gurumoorthy
  [mailto:[EMAIL PROTECTED]
  Sent: 26 July 2005 11:38
  To: 'Tomcat Users List'
  Subject: RE: Requests that are not handled by ROOT
  
  
  Try filter map with * instead of /* 
  
  Regards
  Guru 
  
  -Original Message-
  From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
  Sent: 26 July 2005 11:36
  To: tomcat-user@jakarta.apache.org
  Subject: Requests that are not handled by ROOT
  
  
  Hi,
   
  Mind's gone a little blank, should know this but our webapp 
  has a setup such
  that a filter maps /* requests and handles them.
   
  However, Tomcat is preventing requests that do not match /abc 
  with a 404 I
  think because it thinks abc is another web application if it 
  has /abc/def
   
  E.g
   
  /index.do HTTP/1.1 200 -
  /utilities/index.do HTTP/1.1 404 -
   
  My question is how do I get all requests (i.e both those 
 above) to get
  handled by the ROOT web application?
   
  Cheers, Allistair
  
  
  FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
  ---
  QAS Ltd.
  Registered in England: No 2582055
  Registered in Australia: No 082 851 474
  ---
  /FONT
  
  
  
 -
  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]



NoSuchElementException

2005-07-26 Thread Ronald Klop

I get this running Tomcat 5.5.9 on JDK 1.5 on Linux 2.6.x.
The toArray makes an array of the 'attributes' attribute of the session. But 
fails to do so. Should I synchronize all access to the session or is this 
something inside Tomcat or maybe inside Java?
I looked at both the source of Tomcat and Java and it can be solved in a lot of 
ways.

Ronald.

java.util.NoSuchElementException
  java.util.HashMap$HashIterator.nextEntry(HashMap.java:790)
  java.util.HashMap$KeyIterator.next(HashMap.java:823)
  java.util.AbstractCollection.toArray(AbstractCollection.java:176)
  org.apache.catalina.session.StandardSession.keys(StandardSession.java:1527)
  org.apache.catalina.session.StandardSession.expire(StandardSession.java:709)
  org.apache.catalina.session.StandardSession.expire(StandardSession.java:635)
  
org.apache.catalina.session.StandardSession.invalidate(StandardSession.java:1054)
  
org.apache.catalina.session.StandardSessionFacade.invalidate(StandardSessionFacade.java:153)
  nl.base.servlets.Login.processRequest(Login.java:117)
  nl.base.servlets.Login.doGet(Login.java:93)
  nl.base.servlets.Login.doPost(Login.java:86)


Re: HTTP/1.1 GZIP compression and its impact on server

2005-07-26 Thread Ronald Klop

I'm using this in a 4-node cluster serving about 30 req/s. And didn't really 
notice any difference in cpu usage. (I think generating my pages use more 
cpu-power than compressing them.)

Ronald.

On Tue Jul 26 08:33:07 CEST 2005 Tomcat Users List 
tomcat-user@jakarta.apache.org wrote:

Hi all,
Iam planning to turn on the HTTP/1.1 GZIP compression for my
application by setting the compression attribute of http connector.
Iam sure that this will reduce my bandwidth requirements.
But I have a doubt. Is Compressing the responses will eat away many
CPU cycles and affect my throughput or performance or scalability.

Any one have used this option in production environment and what r the
results(performance etc)

thanx for any info on this .

Regards
Srikanth

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





Re: Web Application Question

2005-07-26 Thread Joe Riopel
Hello Chris,
 I'm a little embarassed to say that I was watching a log file on a
different machine, I had one too many xterm's opened. It was a long
weekend :)

However, on the server where I was having my problem, the ending tag
for the filter's url pattern was wrong. I had  /urlpattern instead
of /url-pattern

Thank you for your help though!


On 7/26/05, Chris Ward [EMAIL PROTECTED] wrote:
 
 Joe,
 
 Are you sure your filter is doing the right thing?
 
 Sounds like it may be forwarding to a bad URL or
 something.  If it works without the web.xml then I
 assume you've set up your context for the /cms
 application.
 
 Maybe try a
 
 System.err.println( myDestURL )
 
 in the filter and then copy/paste that output into
 your browser to see it exists.
 
 Hope this helps.
 Chris Ward
 
 
 
 
 
  Hello,
 
  I'm running Tomcat 5.5.7, and right now I have one
  application ( the default application ). I just created a new
  dir ( $CATALINA_HOME/webapps/cms ) for a new application. The
  home page ( index.jsp ), for the application, is just a
  simple jsp file with static content.
 
  Once I added a WEB-INF/web.xml file, with just filter 
  filter-mapping tags, and my welcome-file list, and browse to
  the application I get a 404 error. Now, if I remove the
  web.xml file from the WEB-INF/web.xml directory, I see the
  correct index.jsp.
 
  I'm looking in the $CATALINA_HOME/logs/catalina.out file and
  see nothing. I have watched the file, using tail -f during
  start up, and don't see any message about a misconfiguration
  in my web-xml file.
 
  Am I missing a step in the process of creating a  new web
  application? Any help would be appreciated.
 
  Thanks.
 
  -
  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: HTTP/1.1 GZIP compression and its impact on server

2005-07-26 Thread Ronald Klop

If you have enough bandwidth yourself, the big win is in the saved bandwidth on 
the client-side and that is what your customers like. The browser wil act 
quicker because it has more data to render in a shorter time.

On Tue Jul 26 12:46:07 CEST 2005 Tomcat Users List 
tomcat-user@jakarta.apache.org wrote:
It will eat up CPU, but you also save CPU by not having to transmit those 
extra bytes.


Its always a good idea to GZIP.

-Tim

Peddireddy Srikanth wrote:

 Hi all,
 Iam planning to turn on the HTTP/1.1 GZIP compression for my
 application by setting the compression attribute of http connector.
 Iam sure that this will reduce my bandwidth requirements.
 But I have a doubt. Is Compressing the responses will eat away many
 CPU cycles and affect my throughput or performance or scalability.
 
 Any one have used this option in production environment and what r the

 results(performance etc)
 


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





Re: Web Application Question

2005-07-26 Thread Mikolaj Rydzewski

Joe Riopel wrote:


However, on the server where I was having my problem, the ending tag
for the filter's url pattern was wrong. I had  /urlpattern instead
of /url-pattern
 


It is always a good idea to edit xml files with dtd capable editor.

--
Mikolaj Rydzewski  [EMAIL PROTECTED]
Becomo S.A.
tel. (12) 2927104




smime.p7s
Description: S/MIME Cryptographic Signature


attributes in servletcontext and servletrequest

2005-07-26 Thread Marten Lehmann

Hello,

within the init() of a filter, I'm storing a reference to the 
servletContext:


filterConfig.getServletContext().setAttribute(servletContext, 
filterConfig.getServletContext());


But when I'm trying to access this attribute in the doFilter-method, I 
get a NullPointerException:


ServletContext servletContext = (ServletContext) 
request.getAttribute(servletContext);


Why doesn't this work?

Regards
Marten

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



Re: attributes in servletcontext and servletrequest

2005-07-26 Thread David Smith
A better way to handle this stuff is to just get the servlet context
when you need it and not store it in the request.  If you have access to
the request, you have access to the servlet context.

ie ServletContext servContext = request.getSession().getServletContext() ;

--David

Marten Lehmann wrote:

 Hello,

 within the init() of a filter, I'm storing a reference to the
 servletContext:

 filterConfig.getServletContext().setAttribute(servletContext,
 filterConfig.getServletContext());

 But when I'm trying to access this attribute in the doFilter-method, I
 get a NullPointerException:

 ServletContext servletContext = (ServletContext)
 request.getAttribute(servletContext);

 Why doesn't this work?

 Regards
 Marten

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



-- 
===
David Smith
Network Operations Supervisor
Department of Entomology
College of Agriculture  Life Sciences
Cornell University
2132 Comstock Hall
Ithaca, NY  14853
Phone: 607.255.9571
Fax: 607.255.0939



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



apache/tomcat/mysql cluster info request

2005-07-26 Thread Kiarna Boyd

Good Morning,

I'm looking for suggestions on a large scale tomcat cluster for one 
deployed app.
I currently run our app happily with all server apps smushed on one 
server. Apache webserver 2.0.52/mod_jk/tomcat5.0.28/mysql 4.1.7 on 
Fedora Core 3.
My company wants to deploy a site that would generate a huge amount of 
traffic. Lots of huge files, lot's of CPU use.


I've been reading the online resources for cluster set ups but I still 
have some questions I'm hoping someone who has a successful cluster can 
help with.


I'd like a set up that has redundant pipes, so a horizontal cluster on 
all tiers is important for growth and fail over.
I'm trying to find information about a setup that uses a hardware 
loadbalancer in front of multiple apache webservers that are in front 
of mutliple tomcat app servers with a MySQL master/slave at the back.
I'm thinking the tomcat servers may need to be connected to the 
application data filesystem via a NAS. I'm not sure about the 
performance hit, but it is critical that the data served is shared.


I've read a bunch of great articles on using the apache webserver as 
the loadbalancer for the tomcat cluster, but I'm concerned about the 
webserver failing. Plus I use the webserver tier for rewrite 
flexibility.
I think I want to start with two of each tier(web server, application 
server, database server), with multiple tomcat engines running on the 
application servers on some memory rich hardware.
From my current setup my load tests have always shown the bottleneck to 
be java memory use (jdk 1.5)




Thank you for your time.

-Kiarna


tomcat not starting properly

2005-07-26 Thread blackwater dev
Hello,

I am having trouble starting tomcat.  It gets to a point then just stops. 

What am I doing wrong?

[EMAIL PROTECTED] bin]# ./catalina.sh jpda run
Using CATALINA_BASE:   /usr/tomcat
Using CATALINA_HOME:   /usr/tomcat
Using CATALINA_TMPDIR: /usr/tomcat/temp
Using JRE_HOME:   /usr/java/jdk1.5.0_04
Listening for transport dt_socket at address: 8000
Jul 26, 2005 8:48:25 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
Jul 26, 2005 8:48:25 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2932 ms
Jul 26, 2005 8:48:26 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 26, 2005 8:48:26 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
Jul 26, 2005 8:48:26 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jul 26, 2005 8:48:32 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-80
Jul 26, 2005 8:48:33 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jul 26, 2005 8:48:33 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/179  config=null
Jul 26, 2005 8:48:33 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jul 26, 2005 8:48:34 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 8138 ms

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



Re: Problem Bringing up Admin

2005-07-26 Thread J. Ryan Kelley
yeah, my user is added to tomcat-users.xml, but i don't even get a 
prompt to attempt to loginI have a feeling that some of my 
dependencies are not complete.  I never installed struts, but there is a 
struts.jar file in my $CATALINA_HOME/server/webapps/admin/WEB-INF/lib 
directory...the reason that i think this is some of the following 
entries I found in my catalina.out log file ...


...
Jul 25, 2005 9:18:53 PM org.apache.struts.action.ActionServlet init
SEVERE: Unable to initialize Struts ActionServlet due to an unexpected 
exception or error thrown, so marking the servlet as unavailable.  Most 
likely, this is

due to an incorrect or missing library dependency.
java.lang.NoClassDefFoundError: org/apache/commons/modeler/Registry
   at java.lang.Class.getDeclaredMethods0(Native Method)
   at java.lang.Class.privateGetDeclaredMethods(Class.java:1655)
   at java.lang.Class.getMethod0(Class.java:1901)
   at java.lang.Class.getMethod(Class.java:984)
   at 
org.apache.commons.beanutils.MethodUtils.getMatchingAccessibleMethod(MethodUtils.java:535)
   at 
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:209)
   at 
org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:585)

   at org.apache.commons.digester.Rule.end(Rule.java:228)
   at 
org.apache.commons.digester.Digester.endElement(Digester.java:1067)
   at 
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
   at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown 
Source)
   at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown 
Source)
   at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)

   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.commons.digester.Digester.parse(Digester.java:1591)
   at 
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1140)
   at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:326)
   at 
org.apache.webapp.admin.ApplicationServlet.init(ApplicationServlet.java:105)

   at javax.servlet.GenericServlet.init(GenericServlet.java:211)
   at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
   at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:750)
   at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:641)
   at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:539)
   at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)

   at admin.login_jsp._jspService(login_jsp.java:66)
   at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
   at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
   at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
   at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
   at 
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:238)
   at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:446)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
   at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
   at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

   at java.lang.Thread.run(Thread.java:534)
Jul 25, 2005 9:18:53 PM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet action as unavailable
Jul 

RE: attributes in servletcontext and servletrequest

2005-07-26 Thread Caldarale, Charles R
 From: Marten Lehmann [mailto:[EMAIL PROTECTED] 
 Subject: attributes in servletcontext and servletrequest
 
 within the init() of a filter, I'm storing a reference to the 
 servletContext:
 
 filterConfig.getServletContext().setAttribute(servletContext, 
 filterConfig.getServletContext());

Perhaps I'm reading this out of context, but the above fragment seems to
be storing the servletContext attribute in the servlet context itself,
not in the request.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Problem running tomcat with a CMS application

2005-07-26 Thread Patrick saad
Hy,

I am trying to run a CMS program called magnolia on my
http://localhost:8080/magnolia/

I made sure that everything is installed properly: tomcat 4.1.31,
mysql. I downloaded the .war file and dropped it in my webapps folder.
I also made sure that my environment variables for CATALINA HOME are
properly set to my tomcat folder.

After running the startup.bat, I try and log on to
http://localhost:8080/magnolia/ but with no success, I get an
unauthorized access:

---
HTTP Status 403 

Access to the specified resource () has been forbidden. by tomcat. 
--
Is there something that I am doing wrong in my installation?
 
I previously had installed another CMS program, but I removed it and
reinstalled tomcat 4.1.31. Is there something that is blocking me from
doing my installation ?
 
Please help!
 
Patrick S.

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



RE: tomcat not starting properly

2005-07-26 Thread Peter Crowther
 From: blackwater dev [mailto:[EMAIL PROTECTED] 
 I am having trouble starting tomcat.  It gets to a point then 
 just stops. 
 
 What am I doing wrong?
 
 [EMAIL PROTECTED] bin]# ./catalina.sh jpda run
 Using CATALINA_BASE:   /usr/tomcat
 Using CATALINA_HOME:   /usr/tomcat
 Using CATALINA_TMPDIR: /usr/tomcat/temp
 Using JRE_HOME:   /usr/java/jdk1.5.0_04
 Listening for transport dt_socket at address: 8000

You have JPDA debugging enabled?

 Jul 26, 2005 8:48:25 AM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on http-80
 Jul 26, 2005 8:48:25 AM org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 2932 ms
 Jul 26, 2005 8:48:26 AM org.apache.catalina.core.StandardService start
 INFO: Starting service Catalina
 Jul 26, 2005 8:48:26 AM org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
 Jul 26, 2005 8:48:26 AM org.apache.catalina.core.StandardHost start
 INFO: XML validation disabled
 Jul 26, 2005 8:48:32 AM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on http-80

OK, there's port 80

 Jul 26, 2005 8:48:33 AM org.apache.jk.common.ChannelSocket init
 INFO: JK: ajp13 listening on /0.0.0.0:8009

There's its shutdown port

 Jul 26, 2005 8:48:33 AM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=0/179  config=null
 Jul 26, 2005 8:48:33 AM 
 org.apache.catalina.storeconfig.StoreLoader load
 INFO: Find registry server-registry.xml at classpath resource
 Jul 26, 2005 8:48:34 AM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 8138 ms

... all looks OK to me.  It starts up and is waiting for you to connect
to eg. http://localhost:80.  What isn't happening that you would expect?

- Peter

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



Using Tomcat and certificates from CAcert

2005-07-26 Thread Bengt Bäverman
Can you please tell med what's wrong with this setup?

I have one server runnig Fedora Core 3 and Tomcat 5.5.9 with Java 1.5.0_04. 
Tomcat is setup to require a client  certificate. 
For this server I have generated a server cert and installed it.

I have one client running Windows 2000 SP4 with IE 6.0 and Firefox 1.0.4
For this client I have installed the same client certificate in both browsers.

All certificates come from CAcert.
Before I found CAcert I played a little bit with Javas keytool and created two 
certificates. 
The server asked the client for a certificate, but my certificate on the client 
was not recognized when asked to select one. It simple was not in the list.
So I assumed that the server setup (at least the Tomcat part) is OK, but the 
client setup was wrong (and I don't mean Windows here... :-))

When I skipped the Java keytoolcertificates and tried certificates from CAcert 
I get absolutely no response when running with IE.
IE just says that the server cannot be found. When trying with Firefox I get an 
error message stating that the server
and the client cannot establish a connection as they have no common crypto 
algorithm  (except I get the error message in Swedish...).

What can possibly be wrong?

Thanks in advance!
/Bengt

ps
  When I generated the cert req with keytool I first tried with out stating a 
key length or algorith the when I tried again I used RSA and 1024 bits.
  Still no cigar.
ds

RE: Problem running tomcat with a CMS application

2005-07-26 Thread Allistair Crossley
from memory you need to ensure you add users and roles to the tomcat-users.xml 
file? it's all in the manual.

 -Original Message-
 From: Patrick saad [mailto:[EMAIL PROTECTED]
 Sent: 26 July 2005 15:39
 To: tomcat-user@jakarta.apache.org
 Subject: Problem running tomcat with a CMS application
 
 
 Hy,
 
 I am trying to run a CMS program called magnolia on my
 http://localhost:8080/magnolia/
 
 I made sure that everything is installed properly: tomcat 4.1.31,
 mysql. I downloaded the .war file and dropped it in my webapps folder.
 I also made sure that my environment variables for CATALINA HOME are
 properly set to my tomcat folder.
 
 After running the startup.bat, I try and log on to
 http://localhost:8080/magnolia/ but with no success, I get an
 unauthorized access:
 
 ---
 HTTP Status 403 
 
 Access to the specified resource () has been forbidden. by tomcat. 
 --
 Is there something that I am doing wrong in my installation?
  
 I previously had installed another CMS program, but I removed it and
 reinstalled tomcat 4.1.31. Is there something that is blocking me from
 doing my installation ?
  
 Please help!
  
 Patrick S.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



Re: tomcat not starting properly

2005-07-26 Thread blackwater dev
Just me being stupid and trying to hit 8080...thanks!

On 7/26/05, Peter Crowther [EMAIL PROTECTED] wrote:
  From: blackwater dev [mailto:[EMAIL PROTECTED]
  I am having trouble starting tomcat.  It gets to a point then
  just stops.
 
  What am I doing wrong?
 
  [EMAIL PROTECTED] bin]# ./catalina.sh jpda run
  Using CATALINA_BASE:   /usr/tomcat
  Using CATALINA_HOME:   /usr/tomcat
  Using CATALINA_TMPDIR: /usr/tomcat/temp
  Using JRE_HOME:   /usr/java/jdk1.5.0_04
  Listening for transport dt_socket at address: 8000
 
 You have JPDA debugging enabled?
 
  Jul 26, 2005 8:48:25 AM org.apache.coyote.http11.Http11Protocol init
  INFO: Initializing Coyote HTTP/1.1 on http-80
  Jul 26, 2005 8:48:25 AM org.apache.catalina.startup.Catalina load
  INFO: Initialization processed in 2932 ms
  Jul 26, 2005 8:48:26 AM org.apache.catalina.core.StandardService start
  INFO: Starting service Catalina
  Jul 26, 2005 8:48:26 AM org.apache.catalina.core.StandardEngine start
  INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
  Jul 26, 2005 8:48:26 AM org.apache.catalina.core.StandardHost start
  INFO: XML validation disabled
  Jul 26, 2005 8:48:32 AM org.apache.coyote.http11.Http11Protocol start
  INFO: Starting Coyote HTTP/1.1 on http-80
 
 OK, there's port 80
 
  Jul 26, 2005 8:48:33 AM org.apache.jk.common.ChannelSocket init
  INFO: JK: ajp13 listening on /0.0.0.0:8009
 
 There's its shutdown port
 
  Jul 26, 2005 8:48:33 AM org.apache.jk.server.JkMain start
  INFO: Jk running ID=0 time=0/179  config=null
  Jul 26, 2005 8:48:33 AM
  org.apache.catalina.storeconfig.StoreLoader load
  INFO: Find registry server-registry.xml at classpath resource
  Jul 26, 2005 8:48:34 AM org.apache.catalina.startup.Catalina start
  INFO: Server startup in 8138 ms
 
 ... all looks OK to me.  It starts up and is waiting for you to connect
 to eg. http://localhost:80.  What isn't happening that you would expect?
 
 - Peter


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



Re: Problem running tomcat with a CMS application

2005-07-26 Thread David Smith
Hi.

I run the same CMS here.  I've seen this happen when the repository
isn't initialized right.  Check the logs to see what happened, post the
version of Magnolia you're working with, and also ask on the magnolia
list at [EMAIL PROTECTED]

--David

Patrick saad wrote:

Hy,

I am trying to run a CMS program called magnolia on my
http://localhost:8080/magnolia/

I made sure that everything is installed properly: tomcat 4.1.31,
mysql. I downloaded the .war file and dropped it in my webapps folder.
I also made sure that my environment variables for CATALINA HOME are
properly set to my tomcat folder.

After running the startup.bat, I try and log on to
http://localhost:8080/magnolia/ but with no success, I get an
unauthorized access:

---
HTTP Status 403 

Access to the specified resource () has been forbidden. by tomcat. 
--
Is there something that I am doing wrong in my installation?
 
I previously had installed another CMS program, but I removed it and
reinstalled tomcat 4.1.31. Is there something that is blocking me from
doing my installation ?
 
Please help!
 
Patrick S.

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

  



-- 
===
David Smith
Network Operations Supervisor
Department of Entomology
College of Agriculture  Life Sciences
Cornell University
2132 Comstock Hall
Ithaca, NY  14853
Phone: 607.255.9571
Fax: 607.255.0939



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



Re: Problem running tomcat with a CMS application

2005-07-26 Thread David Smith
Normally you're right on the money.  In this case Magnolia manages it's
own authorization through a repository.

--David

Allistair Crossley wrote:

from memory you need to ensure you add users and roles to the tomcat-users.xml 
file? it's all in the manual.

  

-Original Message-
From: Patrick saad [mailto:[EMAIL PROTECTED]
Sent: 26 July 2005 15:39
To: tomcat-user@jakarta.apache.org
Subject: Problem running tomcat with a CMS application


Hy,

I am trying to run a CMS program called magnolia on my
http://localhost:8080/magnolia/

I made sure that everything is installed properly: tomcat 4.1.31,
mysql. I downloaded the .war file and dropped it in my webapps folder.
I also made sure that my environment variables for CATALINA HOME are
properly set to my tomcat folder.

After running the startup.bat, I try and log on to
http://localhost:8080/magnolia/ but with no success, I get an
unauthorized access:

---
HTTP Status 403 

Access to the specified resource () has been forbidden. by tomcat. 
--
Is there something that I am doing wrong in my installation?
 
I previously had installed another CMS program, but I removed it and
reinstalled tomcat 4.1.31. Is there something that is blocking me from
doing my installation ?
 
Please help!
 
Patrick S.

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






FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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

  



-- 
===
David Smith
Network Operations Supervisor
Department of Entomology
College of Agriculture  Life Sciences
Cornell University
2132 Comstock Hall
Ithaca, NY  14853
Phone: 607.255.9571
Fax: 607.255.0939



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



RE: Problem running tomcat with a CMS application

2005-07-26 Thread Allistair Crossley
Okidokes :o)

 -Original Message-
 From: David Smith [mailto:[EMAIL PROTECTED]
 Sent: 26 July 2005 16:02
 To: Tomcat Users List
 Subject: Re: Problem running tomcat with a CMS application
 
 
 Normally you're right on the money.  In this case Magnolia 
 manages it's
 own authorization through a repository.
 
 --David
 
 Allistair Crossley wrote:
 
 from memory you need to ensure you add users and roles to 
 the tomcat-users.xml file? it's all in the manual.
 
   
 
 -Original Message-
 From: Patrick saad [mailto:[EMAIL PROTECTED]
 Sent: 26 July 2005 15:39
 To: tomcat-user@jakarta.apache.org
 Subject: Problem running tomcat with a CMS application
 
 
 Hy,
 
 I am trying to run a CMS program called magnolia on my
 http://localhost:8080/magnolia/
 
 I made sure that everything is installed properly: tomcat 4.1.31,
 mysql. I downloaded the .war file and dropped it in my 
 webapps folder.
 I also made sure that my environment variables for CATALINA HOME are
 properly set to my tomcat folder.
 
 After running the startup.bat, I try and log on to
 http://localhost:8080/magnolia/ but with no success, I get an
 unauthorized access:
 
 ---
 HTTP Status 403 
 
 Access to the specified resource () has been forbidden. by tomcat. 
 --
 Is there something that I am doing wrong in my installation?
  
 I previously had installed another CMS program, but I removed it and
 reinstalled tomcat 4.1.31. Is there something that is 
 blocking me from
 doing my installation ?
  
 Please help!
  
 Patrick S.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
 ---
 QAS Ltd.
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
   
 
 
 
 -- 
 ===
 David Smith
 Network Operations Supervisor
 Department of Entomology
 College of Agriculture  Life Sciences
 Cornell University
 2132 Comstock Hall
 Ithaca, NY  14853
 Phone: 607.255.9571
 Fax: 607.255.0939
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



Re: Problem running tomcat with a CMS application

2005-07-26 Thread Patrick saad
I posted the issue to the mailing list for magnolia, no one answered
me back with an answer yet.

On 7/26/05, Patrick saad [EMAIL PROTECTED] wrote:
 Hy David,
 
 Thank you for the quick reply.
 
 Im working with magnolia ver 2.0.3.
 
 Here is a small part of my magnolia-error log file:
 
 info.magnolia.cms.beans.config.Listener 26.07.2005 10:05:52 -- ERROR
 -- Config : Failed to load Listener info
 info.magnolia.cms.beans.config.Listener 26.07.2005 10:05:52 -- ERROR -- 
 /server
 javax.jcr.PathNotFoundException: /server
at  ..
 
 I have included the log file in the attachment as well.
 
 Do you think it has to do with magnolia the error, or specific to tomcat ?
 
 
 On 7/26/05, David Smith [EMAIL PROTECTED] wrote:
  Hi.
 
  I run the same CMS here.  I've seen this happen when the repository
  isn't initialized right.  Check the logs to see what happened, post the
  version of Magnolia you're working with, and also ask on the magnolia
  list at [EMAIL PROTECTED]
 
  --David
 
  Patrick saad wrote:
 
  Hy,
  
  I am trying to run a CMS program called magnolia on my
  http://localhost:8080/magnolia/
  
  I made sure that everything is installed properly: tomcat 4.1.31,
  mysql. I downloaded the .war file and dropped it in my webapps folder.
  I also made sure that my environment variables for CATALINA HOME are
  properly set to my tomcat folder.
  
  After running the startup.bat, I try and log on to
  http://localhost:8080/magnolia/ but with no success, I get an
  unauthorized access:
  
  ---
  HTTP Status 403
  
  Access to the specified resource () has been forbidden. by tomcat.
  --
  Is there something that I am doing wrong in my installation?
  
  I previously had installed another CMS program, but I removed it and
  reinstalled tomcat 4.1.31. Is there something that is blocking me from
  doing my installation ?
  
  Please help!
  
  Patrick S.
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
 
  --
  ===
  David Smith
  Network Operations Supervisor
  Department of Entomology
  College of Agriculture  Life Sciences
  Cornell University
  2132 Comstock Hall
  Ithaca, NY  14853
  Phone: 607.255.9571
  Fax: 607.255.0939
 
 
 
  -
  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]



DefaultServlet raising 404 when mapped explicitely

2005-07-26 Thread Dirk Weinhardt

Hi,

Apache 5.5.9 with Apache 2 and mod_jk.

Some files in /download/files.

If i do not configure any servlet mapping for this path, the files in this  
folder are delivered. I assume org.apache.catalina.servlets.DefaultServlet  
is invoked.


If i do configure a servlet mapping, that maps  
org.apache.catalina.servlets.DefaultServlet to be invoked for requests to  
/download/files/* a 404 is raised for all files like  
http://my.server.com/download/files/afile.ext


Where's the difference? Is it another servlet than DefaultServlet that  
serves static content by default? Does the DefaultServlet need any runtime  
configuration?


I copied catalina.jar to webapps/my-webapp/lib to have access to  
org.apache.catalina.servlets.DefaultServlet. Therefore the DefaultServlet  
instance i'm using probably is not the one that is loaded during startup.


I would like to derive a servlet from DefaultServlet that does some  
authorization checks before proceeding to delivery.


Thanks for your help!

Dirk



--


LuraTech GmbH
Kantstr.21, 10623 Berlin, Germany
fon: +49(0)30/39 40 50 - 0
fax: +49(0)30/39 40 50 - 99

http://www.luratech.com
mailto:[EMAIL PROTECTED]


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



Building statically mod_jk in Apache in Windows environment

2005-07-26 Thread Frédéric Viollet

Hi everybody,

I'm using mod_jk - 1.2.14.1 and apache - 1.3.19
I would like to link statically mod_jk in Apache in Windows environment.
Has anyone already managed this?

The configure --with-apache command works fine for Solaris and AIX; and 
it compiles and links alright...but I don't know what to use to 
integrate the mod_jk feature in Apache for Windows...


Thanks for your help...

Fred

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



Re: Building statically mod_jk in Apache in Windows environment

2005-07-26 Thread Mladen Turk

Frédéric Viollet wrote:

Hi everybody,

I'm using mod_jk - 1.2.14.1 and apache - 1.3.19
I would like to link statically mod_jk in Apache in Windows environment.
Has anyone already managed this?

The configure --with-apache command works fine for Solaris and AIX; and 
it compiles and links alright...but I don't know what to use to 
integrate the mod_jk feature in Apache for Windows...




Not sure what features will you have with static build that can not
be accomplished with dynamic one.
You should first consider to use the 1.3.33 version of the apache.
Although the Apache 2 version is much more stable then any 1.3 version
on windows platform, so perhaps you should consider using that.

In general you will need to create a mod_jk .lib project and link
the ApacheCore.dll with that library, also adding the module
reference to the src/os/win32/modules.c

Regards,
Mladen.




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



getContextURI?

2005-07-26 Thread Marten Lehmann

Hello,

how can I get the requestURI or pathTranslated without the 
context-prefix? Instead of


/newsletter/config/login.jsp

I would like to get returned just

/config/login.jsp

Additionally, while you can enter

//newsletter//config/login.jsp

in the address-field of the browser, it would be fine to just work with 
the normalized uri /newsletter/config/login.jsp. Is there any 
predfined function?


Regards
Marten

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



how to set index.faces as welcome-file

2005-07-26 Thread Marten Lehmann

Hello,

I tried to put the following into web.xml:

welcome-file-list
welcome-fileindex.faces/welcome-file
/welcome-file-list

But obviously, this doesn't work, because there is no file index.faces, 
but index.jsp. However, if the index.jsp isn't called through 
index.faces, the FacesContext isn't used. How can I achieve this as 
expected? I don't want to use the plain old workaround with an 
index.html containing a refresh.


Regards
Marten

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



Re: how to set index.faces as welcome-file

2005-07-26 Thread Christoph Kutzinski

Create a dummy index.faces file.
I did it this wy with Struts and index.do so I assume it should work 
with faces, too.


hth,
Christoph

Marten Lehmann wrote:

Hello,

I tried to put the following into web.xml:

welcome-file-list
welcome-fileindex.faces/welcome-file
/welcome-file-list

But obviously, this doesn't work, because there is no file index.faces, 
but index.jsp. However, if the index.jsp isn't called through 
index.faces, the FacesContext isn't used. How can I achieve this as 
expected? I don't want to use the plain old workaround with an 
index.html containing a refresh.


Regards
Marten

-
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]



Tomcat 5.5.9 MIME Problem

2005-07-26 Thread Son Dang
Hi,

I have two in which I wanted IE to recognize
as a binary file.  So I added the following
entries into my application web.xml file.

mime-mapping
extensioncab/extension
mime-typeapplication/octet-stream/mime-type
/mime-mapping

mime-mapping
extensionmlf/extension
mime-typeapplication/octet-stream/mime-type
/mime-mapping

Tomcat started up fine without any problem.  When
I tried to access file with these extend, I am getting
a file not found error (HTTP 503).

Furthermore, without the entries in my application
web.xml file, Tomcat delivers a garbaged text file.

Thanks for any assistance you can give.

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



Re: how to set index.faces as welcome-file

2005-07-26 Thread Martin Bromley

It took me a while to get welcome files working with the SpringMVC web 
framework.

I created the attached servlet to get things working properly.  It requires 
servlet spec 2.4, and it works by mapping the welcome file to a servlet, 
WelcomeFileServlet, rather than direct to a JSP.  The WelcomeFileServlet then 
forwards it on to the correct servlet, and makes sure that the requestURI 
returns the right value (e.g. /index.htm rather than just /) It should work 
fine with JSF, if you configure it properly.

Here's an example of how to configure it in web.xml

servlet
servlet-nameWelcomeFileServlet/servlet-name

servlet-classcom.mbromley.util.servlet.WelcomeFileServlet/servlet-class
init-param
param-nameforward-to-servlet-name/param-name
param-valueDispatcherServlet/param-value
/init-param
init-param
param-namewelcome-file/param-name
param-valueindex.htm/param-value
/init-param
/servlet

It works by mapping the index page (index.htm in my case, index.faces or 
whatever in yours) to the WelcomeFileServlet:

!-- Exact mappings are needed below for the welcome-file feature to work 
with WelcomeFileServlet. --
servlet-mapping
servlet-nameWelcomeFileServlet/servlet-name
url-pattern/index.htm/url-pattern
/servlet-mapping

and then defining the welcome file as 


!-- This relies on the 2.4 spec allowing mappings to a servlet as opposed to just 
a real file (index.htm doesn't exist as a real file in any of the directories this 
feature is required).  The WelcomeFileServlet docs have lots of info on the correct 
setup of that class. --
welcome-file-list
welcome-fileindex.htm/welcome-file
/welcome-file-list

Take a look at the docs with the attached file for more.

Hope it helps,

Martin with an 'i' ;-)




Marten Lehmann wrote:

Hello,

I tried to put the following into web.xml:

welcome-file-list
welcome-fileindex.faces/welcome-file
/welcome-file-list

But obviously, this doesn't work, because there is no file index.faces, 
but index.jsp. However, if the index.jsp isn't called through 
index.faces, the FacesContext isn't used. How can I achieve this as 
expected? I don't want to use the plain old workaround with an 
index.html containing a refresh.


Regards
Marten

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

package com.mbromley.util.servlet;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;

/** This enables the URLs in an HttpServletRequest to be consistently rewritten.
 * This needs to be extended for it to do anything useful.  At least one of the
 * rewriteURL methods needs to be overridden.
 */
public abstract class URLRewritingRequestWrapper 
extends HttpServletRequestWrapper {

public URLRewritingRequestWrapper(
final HttpServletRequest request) {
super(request);
}

@Override
public final String getPathInfo() {
return getPossiblyNull(super.getPathInfo());
}

@Override
public final String getPathTranslated() {
return getPossiblyNull(super.getPathTranslated());
}

@Override
public final String getRequestURI() {
return rewriteURL(super.getRequestURI());
}

@Override
public final StringBuffer getRequestURL() {
return rewriteURL(super.getRequestURL());
}

@Override
public final String getServletPath() {
return rewriteURL(super.getServletPath());
}

private String getPossiblyNull(final String s) {
if (s == null) {
return null;
}
return rewriteURL(s);
}

/** Subclasses can override this if they can improve efficiency by 
rewriting
 * a StringBuffer.  By default this calls the other method and creates 
a new
 * StringBuffer from the result.
 */
protected StringBuffer rewriteURL(final StringBuffer sB) {
return new StringBuffer(rewriteURL(sB.toString()));
}

protected abstract String rewriteURL(final String url);

@Override
public String toString() {
return super.toString() +  wrapping  + 
getRequest().toString();
}

}package com.mbromley.util.servlet;

import java.io.IOException;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

RE: Init parameter in context.xml

2005-07-26 Thread Arash Ramin

You're right, thanks.  I was missing the capital 'P' in the Parameter
property.

When defining parameters under ResourceParams, it's all lowercase though.

- Arash

 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, July 26, 2005 03:44
 To: Tomcat Users List
 Subject: Re: Init parameter in context.xml
 
 Only a guess try
 Context path=/appName ...
  Parameter name=paramName value=dummyValue/
 /Context
 
 -Tim
 
 Arash Ramin wrote:
 
  In lieu of using web.xml, I'm trying to add an init 
 parameter in our 
  application's context.xml file:
  
context path=/appName ...
  parameter name=paramName value=dummyValue/
/context
  
  According to the Tomcat docs, this is equivalent to using the 
  following in
  web.xml:
  
context-param
  param-nameparamName/param-name
  param-valuedummyValue/param-value
/context-param
  
  In my JSP page, I try the following:
  
  %= getServletContext().getInitParameter(helpAppName) %
  
  but I get simply get 'null'.  If I move the parameter to web.xml, 
  everything works fine.
  
  Our context.xml file is generated through an Ant script for 
 different 
  environments, hence my need to put the parameter there instead of 
  web.xml
   
 
 -
 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]



confused

2005-07-26 Thread ganesan malairaja


guys i am seriously confused now..

a normal jsp i can display in tomcat..

ok i have some questions here :-

1) let say i have admin.jsp , i create a folder call MGT .. i put in side 
the file admin.jsp and create a WEB-INF folder and inside i put web.xml .. 
is it correct ?


2) do i have customise web.xml or can simply copy and paste the default 
WEB-INF folder into MGT.


3) i having problem displaying jsp files with Database access, do i haveto 
use  the same mysql-javaconnecter or some other file ( need indepth guide ) 
? i know the are alot of guides there .. but most of the skip the 
prerequisite  ..  what i really need to have in my linux system in order to 
setup the tomcat seerver which can display jsp with database access


i am sorry if the questions are elementary.. but i have tried to solve on my 
own but no solution till now


any help will be greatly appreciated ...

thanks



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



What is the current stable version of jk connector?

2005-07-26 Thread Gary Moh

According to http://www.apache.org/dist/jakarta/tomcat-connectors/jk/, the 
current stable version is 1.2.10.
Now, four additional releases have been made.  Does 1.2.10 remain the stable 
version?
 
gary
 



Web application directory structure

2005-07-26 Thread Joe Becknell
I'm new to Tomcat and having a problem I thought someone could help me with.
I have an application with servlet installed under webapps. I can run the
servlet without problems. The servlet creates a page that gets sent to the
browser with some links to some (HTML and XML) data files on it. When I
click on one of the links, I get a 404 (resource not available) error, even
though the file exists under my web application location. My setup is
(basically, I'm not at work, so I can't remember it exactly):
 
webapps\testapp\index.html
webapps\testapp\WEB-INF\web.xml
webapps\testapp\WEB-INF\classes\servlet.class
webapps\testapp\WEB-INF\src\servlet.java
webapps\testapp\data\test1.html
 
in my server.xml config file I have:
 
Context path=/testapp docBase=testapp debug=0 reloadable=true
 
although I don't think I need this since my app is located under the webapps
directory. Navigating to:
 
http://localhost:8080/testapp/index.html works fine, but navigating to
 
http://localhost:8080/testapp/data/test1.html gives me the 404 error. I was
under the imression that I could place files anywhere under the application
root (docBase) directory. Am I missing something here. Configuration
oversight?
 
Thanks for any information.
Joe.
 
 


Re: Problem Bringing up Admin

2005-07-26 Thread Peddireddy Srikanth
hmm,
i dont think struts need to be downloaded seperately
are u using JDK 1.4 or 1.5 ??
if u r using 1.4 u have to download compatabliity package and
configure its contents in ur tomcat installation by following the
steps in Running.txt




On 7/26/05, J. Ryan Kelley [EMAIL PROTECTED] wrote:
 yeah, my user is added to tomcat-users.xml, but i don't even get a
 prompt to attempt to loginI have a feeling that some of my
 dependencies are not complete.  I never installed struts, but there is a
 struts.jar file in my $CATALINA_HOME/server/webapps/admin/WEB-INF/lib
 directory...the reason that i think this is some of the following
 entries I found in my catalina.out log file ...
 
 ...
 Jul 25, 2005 9:18:53 PM org.apache.struts.action.ActionServlet init
 SEVERE: Unable to initialize Struts ActionServlet due to an unexpected
 exception or error thrown, so marking the servlet as unavailable.  Most
 likely, this is
  due to an incorrect or missing library dependency.
 java.lang.NoClassDefFoundError: org/apache/commons/modeler/Registry
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:1655)
at java.lang.Class.getMethod0(Class.java:1901)
at java.lang.Class.getMethod(Class.java:984)
at
 org.apache.commons.beanutils.MethodUtils.getMatchingAccessibleMethod(MethodUtils.java:535)
at
 org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:209)
at
 org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:585)
at org.apache.commons.digester.Rule.end(Rule.java:228)
at
 org.apache.commons.digester.Digester.endElement(Digester.java:1067)
at
 org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at
 org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
 Source)
at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
 Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
 Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
 Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1591)
at
 org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1140)
at
 org.apache.struts.action.ActionServlet.init(ActionServlet.java:326)
at
 org.apache.webapp.admin.ApplicationServlet.init(ApplicationServlet.java:105)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
at
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:750)
at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:641)
at
 org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:539)
at
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
at admin.login_jsp._jspService(login_jsp.java:66)
at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at
 org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at
 org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:238)
at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:446)
at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at