Re: How to figure out if a user is authenticated when using single sign on?

2008-04-23 Thread Mark Thomas

FR wrote:

The standard workaround mentioned is to place user information in
session, but that won't work across webapps using Single Sign On.  I
have a bunch of webapps, only one of which is protected and requires
login, the rest work fine without logging in, but display different
information when the user is logged in.  This worked great when
getUserPrincipal returned a Principal on every URL after login, but I
can't figure out any way to do it now.  I can just pass the userid
around in every URL, but that seems... not good... and involves
changing a lot of links.

 Is there any way of seeing if a user has been authenticated (and get
their username) that works across webapps?


I don't see a way to do this without changing the SSO code. I haven't 
looked at the SSO code so some of this may already be there. You'd need to:

- always send the SSO cookie
- always check for the cookie and process it regardless of whether or not 
authentication is required.


The patches at the end of 
https://issues.apache.org/bugzilla/show_bug.cgi?id=1242 may give you some 
pointers although they are hard to read as they are in the wrong format.


Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How do I co-exist both tomcat and java in one windows machine?

2008-04-23 Thread Nix Hanwei
Hi Gurus,

How do I co-exist both tomcat and java in one windows server?

Thanks in advance.


  __ 
Tired of visiting multiple sites for showtimes? 
Yahoo! Movies is all you need
http://sg.movies.yahoo.com


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How do I co-exist both tomcat and java in one windows machine?

2008-04-23 Thread David Smith
Tomcat requires java.  There's never been a problem with them on the 
same box.  Can you be a  little more specific on what you're asking?


--David

Nix Hanwei wrote:

Hi Gurus,

How do I co-exist both tomcat and java in one windows server?

Thanks in advance.


  __ 
Tired of visiting multiple sites for showtimes? 
Yahoo! Movies is all you need

http://sg.movies.yahoo.com


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How do I co-exist both tomcat and java in one windows machine?

2008-04-23 Thread Nix Hanwei
Thanks. I'm trying to install tomcat 5.0 and tomcat 6.0 and java 1.4 and java 
1.6 in a box.  How do I define CATALINA_HOME and JAVA_HOME and jk connector for 
each tomcat?

- Original Message 
From: David Smith <[EMAIL PROTECTED]>
To: Tomcat Users List 
Sent: Wednesday, 23 April 2008 5:42:59
Subject: Re: How do I co-exist both tomcat and java in one windows machine?

Tomcat requires java.  There's never been a problem with them on the 
same box.  Can you be a  little more specific on what you're asking?

--David

Nix Hanwei wrote:
> Hi Gurus,
>
> How do I co-exist both tomcat and java in one windows server?
>
> Thanks in advance.
>
>
>   __ 
> Tired of visiting multiple sites for showtimes? 
> Yahoo! Movies is all you need
> http://sg.movies.yahoo.com
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>  


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  __ 
Tired of visiting multiple sites for showtimes? 
Yahoo! Movies is all you need
http://sg.movies.yahoo.com


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How do I co-exist both tomcat and java in one windows machine?

2008-04-23 Thread David Smith
The JDKs are no problem -- they just get installed each in their own 
directory. 

The tomcat's can also be installed each in their own directory.  You'll 
have to modify the server.xml of each to make sure there are no 
conflicts in the shutdown ports or any of the connetors. 

I'm going to venture a guess you are really considering these as 
services.  In that case, you'll want to get the .zip download of tomcat 
for installation instead of the .exe installer version.  It includes 
service.bat which you should take a look at for installing each as a 
service.  If you aren't interested in installing them as services, you 
should be able to modify startup.bat  and shutdown.bat in each to use 
the correct jdk.


You'll have to post what web server (IIS or Apache Httpd) you are using 
jk with for info on that.  From the tomcat end, part of making sure 
there aren't any port conflicts is to make sure each tomcat's AJP 
connector is on a different port.  From the IIS or Apache Httpd end, 
it's just a matter of defining each in the jk config and then mounting 
url patterns to go to the appropriate jk connection.


--David

Nix Hanwei wrote:


Thanks. I'm trying to install tomcat 5.0 and tomcat 6.0 and java 1.4 and java 
1.6 in a box.  How do I define CATALINA_HOME and JAVA_HOME and jk connector for 
each tomcat?

- Original Message 
From: David Smith <[EMAIL PROTECTED]>
To: Tomcat Users List 
Sent: Wednesday, 23 April 2008 5:42:59
Subject: Re: How do I co-exist both tomcat and java in one windows machine?

Tomcat requires java.  There's never been a problem with them on the 
same box.  Can you be a  little more specific on what you're asking?


--David

Nix Hanwei wrote:
 


Hi Gurus,

How do I co-exist both tomcat and java in one windows server?

Thanks in advance.


 __ 
Tired of visiting multiple sites for showtimes? 
Yahoo! Movies is all you need

http://sg.movies.yahoo.com


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


   




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 __ 
Tired of visiting multiple sites for showtimes? 
Yahoo! Movies is all you need

http://sg.movies.yahoo.com


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How do I co-exist both tomcat and java in one windows machine?

2008-04-23 Thread Nix Hanwei
Thanks. I'm running on IIS. I think I roughly know how to get it done now. 
Thank you for your advices. 

- Original Message 
From: David Smith <[EMAIL PROTECTED]>
To: Tomcat Users List 
Sent: Wednesday, 23 April 2008 7:51:32
Subject: Re: How do I co-exist both tomcat and java in one windows machine?

The JDKs are no problem -- they just get installed each in their own 
directory. 

The tomcat's can also be installed each in their own directory.  You'll 
have to modify the server.xml of each to make sure there are no 
conflicts in the shutdown ports or any of the connetors. 

I'm going to venture a guess you are really considering these as 
services.  In that case, you'll want to get the .zip download of tomcat 
for installation instead of the .exe installer version.  It includes 
service.bat which you should take a look at for installing each as a 
service.  If you aren't interested in installing them as services, you 
should be able to modify startup.bat  and shutdown.bat in each to use 
the correct jdk.

You'll have to post what web server (IIS or Apache Httpd) you are using 
jk with for info on that.  From the tomcat end, part of making sure 
there aren't any port conflicts is to make sure each tomcat's AJP 
connector is on a different port.  >From the IIS or Apache Httpd end, 
it's just a matter of defining each in the jk config and then mounting 
url patterns to go to the appropriate jk connection.

--David

Nix Hanwei wrote:

>Thanks. I'm trying to install tomcat 5.0 and tomcat 6.0 and java 1.4 and java 
>1.6 in a box.  How do I define CATALINA_HOME and JAVA_HOME and jk connector 
>for each tomcat?
>
>- Original Message 
>From: David Smith <[EMAIL PROTECTED]>
>To: Tomcat Users List 
>Sent: Wednesday, 23 April 2008 5:42:59
>Subject: Re: How do I co-exist both tomcat and java in one windows machine?
>
>Tomcat requires java.  There's never been a problem with them on the 
>same box.  Can you be a  little more specific on what you're asking?
>
>--David
>
>Nix Hanwei wrote:
>  
>
>>Hi Gurus,
>>
>>How do I co-exist both tomcat and java in one windows server?
>>
>>Thanks in advance.
>>
>>
>>  __ 
>>Tired of visiting multiple sites for showtimes? 
>>Yahoo! Movies is all you need
>>http://sg.movies.yahoo.com
>>
>>
>>-
>>To start a new topic, e-mail: users@tomcat.apache.org
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>> 
>>
>>
>
>
>-
>To start a new topic, e-mail: users@tomcat.apache.org
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  __ 
>Tired of visiting multiple sites for showtimes? 
>Yahoo! Movies is all you need
>http://sg.movies.yahoo.com
>
>
>-
>To start a new topic, e-mail: users@tomcat.apache.org
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  __
Search, browse and book your hotels and flights through Yahoo! Travel.
http://sg.travel.yahoo.com


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Directories in Tomcat 5.5\temp

2008-04-23 Thread hezjing
The Monitor Tomcat is one of the menu items created by Tomcat installer.
You can find it from Windows Start -> Programs -> Apache Tomcat 5.5 ->
Monitor Tomcat
where it's target is pointing to Tomcat 5.5\bin\tomcat5w.exe.

My application is using log4j release 1.2.15 and now, I noticed the
following suspicious error in stdout_20080423.log (appeared after
Tomcat is stopped),

log4j:ERROR LogMananger.repositorySelector was null likely due to
error in class reloading, using NOPLoggerRepository.


and this INFO message in catalina.2008-04-23.log,

23-Apr-2008 21:06:31 org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: Failed shutdown of Apache Portable Runtime


I'm not sure if the above is causing the abrupt termination of Tomcat?



On Wed, Apr 23, 2008 at 12:28 AM, Caldarale, Charles R
<[EMAIL PROTECTED]> wrote:
> > From: hezjing [mailto:[EMAIL PROTECTED]
> > Subject: Re: Directories in Tomcat 5.5\temp
> >
> > Yes, I'm using antiResourceLocking as shown in Tomcat
> > 5.5\webapps\myapp\META-INF
>
> Unless you really, really need that, I'd turn it off.
>
> > I stopped Tomcat service normally (using Monitor Tomcat).
>
> I don't know what that is, but I suspect it's causing an abrupt
> termination rather than an orderly shutdown.  You should be using either
> the shutdown script or the tomcat5w.exe program to stop the Tomcat
> service.
>
> > The following are the steps I performed,
>
> The exact same steps (using the tomcat5w.exe program to start/stop the
> service) work fine for me, and result in an empty temp directory.
>
>
>  - 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 start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 

Hez

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with Datasource

2008-04-23 Thread Fabien D.

Hi everybody,

I'm using tomcat6 and  trying to use datasource for mysql connexion (and
hibernate). I have looked to the tomcat 6 official documentation, and in the
$CATALINA_HOME/conf/context.xml, i have declared :






In my hibernate.cfg.xml, I have done this (add the first line, to replace
the commented lines):


java:comp/env/jdbc/hibernate






false
5
3
1800
thread
org.hibernate.dialect.MySQLDialect
true
true
   


When I try to launch the application, an error appears :

 INFO [http-8080-1] (NamingHelper.java:26) - JNDI InitialContext
properties:{}
 INFO [http-8080-1] (DatasourceConnectionProvider.java:61) - Using
datasource: java:comp/env/jdbc/hibernate
 WARN [http-8080-1] (SettingsFactory.java:117) - Could not obtain connection
metadata
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null'
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1150)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
at
org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
at 
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)
at 
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
at com.mycompany.hibernate.HibernateUtil.(Unknown Source)
at com.mycompany.hibernate.GestionBDD.selectQuery(Unknown Source)
at com.mycompany.middleware.CDataFromBDD.getListDomaine(Unknown Source)
at com.mycompany.commun.PanelTreeView.(Unknown Source)
at com.mycompany.HomePage.initPanels(Unknown Source)
at com.mycompany.HomePage.(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:149)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:58)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:262)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:283)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:210)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1166)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1243)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1331)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:363)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)
at sun.jdbc.odbc.JdbcOdbcDriver.knownURL(JdbcOdbcDriver.java:476)
at sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(JdbcOdbcDriver.java:307)
at java.sql.DriverManager.getDriver(DriverManager.java:253)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDat

RE: Directories in Tomcat 5.5\temp

2008-04-23 Thread Caldarale, Charles R
> From: hezjing [mailto:[EMAIL PROTECTED] 
> Subject: Re: Directories in Tomcat 5.5\temp
> 
> log4j:ERROR LogMananger.repositorySelector was null likely due to
> error in class reloading, using NOPLoggerRepository.

Not likely to be the problem, but I can't be sure.

> 23-Apr-2008 21:06:31 org.apache.catalina.core.AprLifecycleListener
> lifecycleEvent
> INFO: Failed shutdown of Apache Portable Runtime

This certainly isn't the cause; that's just because you don't have APR
installed.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with Datasource

2008-04-23 Thread David Smith
What is in tomat's lib directory?  And what's in the  ... 
 section of your web.xml?


Commenting on your resource definition below, remove autoReconnect=true 
as it's not recommended by the mysql folks.  Add validationQuery="select 
1" to have the pool test connections on borrow.  This works a *lot* 
better than the autoReconnect parameter.


In general your error "Cannot create JDBC driver of class '' for connect 
URL 'null'" generally means there's some misconfiguration in either your 
context xml file (maybe the one you have below isn't being used?) or 
WEB-INF/web.xml file.


--David

Fabien D. wrote:


Hi everybody,

I'm using tomcat6 and  trying to use datasource for mysql connexion (and
hibernate). I have looked to the tomcat 6 official documentation, and in the
$CATALINA_HOME/conf/context.xml, i have declared :

	  name="jdbc/hibernate"  
	  auth="Container"

  type="javax.sql.DataSource"
	  description="DB Connection" 
	  driverClass="com.mysql.jdbc.Driver" 
	  jdbcUrl="jdbc:mysql://localhost:3306/opensource?autoReconnect=true"  
	  user="root" 
	  password=""/>





In my hibernate.cfg.xml, I have done this (add the first line, to replace
the commented lines):
   
   
   	
name="connection.datasource">java:comp/env/jdbc/hibernate

   
   
   
   

   false
   5
   3
   1800
   thread
   org.hibernate.dialect.MySQLDialect
   true
   true
  



When I try to launch the application, an error appears :

INFO [http-8080-1] (NamingHelper.java:26) - JNDI InitialContext
properties:{}
INFO [http-8080-1] (DatasourceConnectionProvider.java:61) - Using
datasource: java:comp/env/jdbc/hibernate
WARN [http-8080-1] (SettingsFactory.java:117) - Could not obtain connection
metadata
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null'
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1150)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
at
org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
at 
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)
at 
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
at com.mycompany.hibernate.HibernateUtil.(Unknown Source)
at com.mycompany.hibernate.GestionBDD.selectQuery(Unknown Source)
at com.mycompany.middleware.CDataFromBDD.getListDomaine(Unknown Source)
at com.mycompany.commun.PanelTreeView.(Unknown Source)
at com.mycompany.HomePage.initPanels(Unknown Source)
at com.mycompany.HomePage.(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:149)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:58)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:262)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:283)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:210)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1166)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1243)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1331)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:363)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.a

Re: Tomcat not sending JSESSIONID (servlet session cookie) with new sessions

2008-04-23 Thread Timothy Washington

Hey, thanks for responding. I'm using Firefox 2.0.0.14, so it definitely 
supports cookies. It's just weird because it looks like the JSESSIONID cookie 
is not even being sent to it. I'll try URL encoding as a last resort. 

Tim



- Original Message 
From: Martin Gainty <[EMAIL PROTECTED]>
To: Tomcat Users List 
Sent: Tuesday, April 22, 2008 8:04:25 PM
Subject: Re: Tomcat not sending JSESSIONID (servlet session cookie) with new 
sessions

Tim
try
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletResponse
html
Encodes the specified URL by including the session ID in it, or,
if encoding is not needed, returns the URL unchanged.
The implementation of this method includes the logic to determine whether
the session ID needs to be encoded in the URL.

For example, if the browser supports cookies,
or session tracking is turned off,
URL encoding is unnecessary.

http://www.idontknow.com/Idunno.html";)%>">Mongo
only pawn in game of life

In your Servlet code
response.sendRedirect(encodeRedirectURL(http://www.idontknow.html));

HTH
Martin-
- Original Message -
From: "Timothy Washington" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, April 22, 2008 7:28 PM
Subject: Tomcat not sending JSESSIONID (servlet session cookie) with new
sessions


  __
Ask a question on any topic and get answers from real people. Go to Yahoo! 
Answers and share what you know at http://ca.answers.yahoo.com

Re: Tomcat not sending JSESSIONID (servlet session cookie) with new sessions

2008-04-23 Thread Timothy Washington
Thanks for the feedback so far. I actually kept the interactions as simple as 
possible exactly to minimize any unknown behaviour. There's no SSL or filters 
in the application yet. So my code looks something like the following (by path 
of execution, I assume you mean the code's call sequence). So I'm not 
forwarding this to any other process, servlet, etc. I even tried downloading a 
fresh tomcat 6.0.16 server and doing a clean deploy. I get the same result. 

A. is the handling servlet that finds a system facade in the session. Then in 
B., that facade does some processing, spits out a response to the printwriter, 
and returns. A., then sets the changed facade back into the session and ends. 


A. 
public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
...
SystemFacade bsfacade = 
(SystemFacade)(req.getSession(true).getAttribute(SystemFacade.FACADE_NAME));
...
bsfacade.perform(req, resp); 
req.getSession().setAttribute(FACADE_NAME, bsfacade);
...
}


B. 
public synchronized void perform(HttpServletRequest req, HttpServletResponse 
resp)
throws ServletException, IOException, InterruptedException {

 ... do some stuff 

PrintWriter pwriter = new PrintWriter(resp.getOutputStream()); 
pwriter.println(bkell.getPreviousCommandResult().toXML()); 
pwriter.close(); 

}


Because this is so simple, I figured I was missing something basic like a 
cookie setting in Tomcat. I tried commenting out 
req.getSession().setAttribute(FACADE_NAME, bsfacade);, thinking maybe that 
nulls out the JSESSIONID. But that has no effect. 


Tim



- Original Message 
From: Christopher Schultz <[EMAIL PROTECTED]>
To: Tomcat Users List 
Sent: Tuesday, April 22, 2008 10:20:25 PM
Subject: Re: Tomcat not sending JSESSIONID (servlet session cookie) with new 
sessions

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Len,

Len Popp wrote:
| Have you set cookies="false" in the app's  declaration?
| That'd do it.

That wouldn't explain why Tomcat is adding the cookie to the response,
but the cookie isn't making it across the wire.

Tim, can you tell us a little more about the path of execution? I'm
wondering if you are handling a request, modifying the response, and
then forwarding (on the server side) to another process that maybe
blanks-out the response and effectively kills the cookie or something
like that.

Is there any SSL involved at all? I wouldn't expect the behavior you
describe to result from crossing an SSL boundary (I would expect the
browser to get the cookie, but refuse to send it with the next request).

Are there any special filters or valves that are being applied that
might be modifying the behavior of the response?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgOnOkACgkQ9CaO5/Lv0PBUIQCdH1Q39DcjEM7dm6caLbHLEIrz
PuQAnRuxPKiKx10EnGbV9fyM2ENTLSit
=ULgz
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  __
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/

Re: Problem with Datasource

2008-04-23 Thread Mark Thomas

Fabien D. wrote:

Hi everybody,

I'm using tomcat6 and  trying to use datasource for mysql connexion (and
hibernate). I have looked to the tomcat 6 official documentation, and in the
$CATALINA_HOME/conf/context.xml, i have declared :


You do want this to be available to *every* webapp don't you? Webapp 
specific stuff goes in META-INF/context.xml


Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat not sending JSESSIONID (servlet session cookie) with new sessions

2008-04-23 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tim,

Timothy Washington wrote:
| Thanks for the feedback so far. I actually kept the interactions as
| simple as possible exactly to minimize any unknown behaviour. There's no
| SSL or filters in the application yet.

So, there's pretty much nothing in the way.

Where is your client in relation to Tomcat? Is this on localhost, or
over a network?

Is is possible that you have a firewall or proxy that is removing the
Set-Cookie header? I would imagine that some corporate firewalls do that
to enforce a no-cookies policy.

What if you try to set your own header on the response (before or after
the 'perform' method is invoked)? Try something like:

response.addHeader("my-custom-header", "foo");

...and see if that makes it back to the client.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgPSTkACgkQ9CaO5/Lv0PCC5QCfZCdZ96e6JccC9e/KuwDVqKwL
87wAn29FZvSE+GJgmVlPJMFC+MLsrR/y
=0J/F
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JNDI Realm nor returning LDAP error codes/exceptions

2008-04-23 Thread Gundersen, Richard
Hi

I'm using the standard JNDIRealm class to authenticate users. However if
the login is unsuccessful, I am unable report the *reason* for the
failure.

The code for JNDIRealm.java tries to return a valid Principal object. 

If logging on fails - which could be for several reasons e.g. bad
password, account expired, password needs changing etc - then the
exception is caught, logged, and then forgotten. The authenticate method
just returns a null Principal object. 

So, by the time the request gets to the 'error' JSP, all I can report to
the user is that there was some kind of problem - not what the problem
was.

I was thinking of writing my own Realm class which did the same, but
threw the exception if one occurred. Unfortunately this would break the
contract with the RealmBase class I think (abstract methods).

From reading the Servlet spec, it suggests that the failure information
*should* be available:

"The error page sent to a user that is not authenticated
contains information about the failure."

Does anyone have any advice / solved this problem before? Appreciate any
feedback

Thanks

Richard Gundersen

As a responsible corporate citizen, London Scottish Bank plc asks you to 
consider the environment before printing this email.

*** Disclaimer *** 

This electronic communication is confidential and for the exclusive use of the 
addressee. It may contain private and confidential information. The 
information, attachments and opinions contained in this E-mail are those of its 
author only and do not necessarily represent those of London Scottish Bank PLC 
or any other members of the London Scottish Group. 

If you are not the intended addressee, you are prohibited from any disclosure, 
distribution or further copying or use of this communication or the information 
in it or taking any action in reliance on it. If you have received this 
communication in error please notify the Information Security Manager at [EMAIL 
PROTECTED] as soon as possible and delete the message from all places in your 
computer where it is stored. 

We utilise virus scanning software but we cannot guarantee the security of 
electronic communications and you are advised to check any attachments for 
viruses. We do not accept liability for any loss resulting from any corruption 
or alteration of data or importation of any virus as a result of receiving this 
electronic communication. 

Replies to this E-mail may be monitored for operational or business reasons. 
London Scottish Bank PLC is regulated by the Financial Services Authority.


London Scottish Bank plc, Registered Office: 201 Deansgate, Manchester M3 3NW 
Registered Number 973008 England.

Subsidiary Companies:-

London Scottish Finance Limited, Registered Office: 201 Deansgate, Manchester 
M3 3NW Registered Number 233259 England.

London Scottish Broking Limited, Registered Office: 201 Deansgate, Manchester 
M3 3NW Registered Number 230110 England.

London Scottish Invoice Finance Limited, Registered Office: 201 Deansgate, 
Manchester M3 3NW Registered Number 2643766 England.

Robinson Way & Company Limited, Registered Office: 201 Deansgate, Manchester M3 
3NW Registered Number 885896 England.

__
This email has been scanned by the MessageLabs Email Security System.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Response time

2008-04-23 Thread Bruno Matos

Hello,

I'm using tomcat to run my servlet. This is the code of processReuqest 
method:


response.setContentType("text/xml;charset=UTF-8");

   PrintWriter outResponse = response.getWriter();

   StringBuffer out = new StringBuffer();

   


   try {

   


   String search = request.getParameter("q");

   


   // Lucene properties

   String index = "/tmp/index/";

   
org.apache.lucene.search.BooleanQuery.setMaxClauseCount(Integer.MAX_VALUE);

   


   IndexReader id = IndexReader.open(index);

   IndexSearcher is = new IndexSearcher(id);

   Analyzer analyzer = new StandardAnalyzer();

   QueryParser parser = new QueryParser("all", analyzer);

   Query query = parser.parse(search);

   Hits hits = is.search(query);

   

   


   out.append("");

   out.append("");  

   out.append("");

   


   long startTime =0;

   long alltime = 0;

   for(int i=0;i   out.append(""); 


   startTime = System.currentTimeMillis();

   String s = hits.doc(i).get("id");

   alltime += (System.currentTimeMillis() - startTime);

   out.append(s);


   out.append("");

   }


   System.out.println("Time: " + alltime + "ms");

   out.append("");

   out.append("");

   


   startTime = System.currentTimeMillis();

   outResponse.print(out.toString());

   System.out.println(System.currentTimeMillis()-startTime);

   } finally { 


   long startTime = System.currentTimeMillis();

   outResponse.close();

   System.out.println(System.currentTimeMillis()-startTime);

   }

   } 



I'm getting documents from lucene and creating a string with all the 
results with string buffer. The string creation takes 2 seconds and the


outResponse.print(out.toString());

takes 1 second. Closing the writer take no time at all, although I have 
to wait 2 minutes until the result shows in firefox. The same happens 
with solr, that should make something like that. The xml file, only has 
300KB. Why I need to wait for so long?


Thank you.

--
Bruno Matos
Analista de Sistemas 
PardigmaXis - Engenharia e Arquitectura de Software, S.A

Avenida da Boavista, 1043
4100-129 Porto
Portugal

Tel: (+351) 22 605 48 72
Fax: (+351) 22 605 48 74


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



FW: Tomcat ModJK Issues!!!

2008-04-23 Thread Razat Gupta (razgupta)


Hi All

Can any one help me on this, I am posting it for the second time.

Regards
Razat

-Original Message-
From: Razat Gupta (razgupta) 
Sent: Thursday, April 17, 2008 12:19 PM
To: users@tomcat.apache.org
Subject: Tomcat ModJK Issues!!!

 

Hi All,

 

We are using Tomcat 4.1.29, Apache 1.3 and modjk in our project.

Sometimes, we got the following message in Catalina logs:-


"No processor available, rejecting this connection" and application
stops responding and we got an Internal Server Error for every request
from Apache to Tomcat.


If we restart the tomcat server after this, Tomcat starts responding to
every request being forwarded from Apache to Tomcat.


Seems to be some mod_jk issue. Has any one faced such type of issue
before, if yes what can be the reason for this and how we can overcome
this thing without restarting the tomcat server again and again? 


Thanks in advance.


Regards


Razat


 

 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cookie-less session tracking - whats are the downsides

2008-04-23 Thread Peter Stavrinides
This topic comes up on the list very frequently, you ask ten developers 
this question you may even get eleven opinions. Your answer is it 
depends on your use case and security requirements (for example: I may 
not care, in a shopping cart application, if I write a product id in the 
URL, but I may care about exposing a primary key for a user record in 
the URL)... these are subject to your implementation.


I suggest you do a little more reading and understand the history of 
cookies and URL rewriting, which may help you to understand why/why 
not/when to use them, because this is a highly subjective area, and when 
do developers agree about technology anyway! Personally though, I am 
prepared to sacrifice some compatibility in favour of security... on the 
other hand I also detest the over paranoid.


Peter


mfs wrote:

Guys,

I would want to know the downsides to using cookie-less sessions ? I want to
give my client the freedom to disable cookies on the browser if he chooses
to, but i would want to know the implications to that ?

Some say, exposing your sessionId in the url exposes it to hackers who can
spoof the IP (as of the victim) and provide the jsessionId (in the url) and
can gain control of the victim's session, but if u are using ssl, that
shouldnt be an issue.

Would someone comment on the real hazards/bottlenecks to the cookie-less
approach.

Thanks in advance and Regards,

Farhan.


  


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IE and Mozilla issue with Cookies with setVersion(1)

2008-04-23 Thread Rajeev Angal


On Apr 22, 2008, at 11:39 AM, Mark Thomas wrote:


Rajeev Angal wrote:
You indiated earlier on this thread that a "patch for 6.0.16" is  
being worked on to fix the v1 cookies issue  - any idea when it  
will be released?
There has been some discussion of this on the dev list. No specific  
timetable as yet.


Also would appreciate if I can get a bugzila number to track it - I  
can seem to find it as I searched the bug list.

As I recall, I don't think there was one. A quick search found this:


Have filed :
https://issues.apache.org/bugzilla/show_bug.cgi?id=44860

.. as a regression - its holding up  our release - anything I can do  
to expedite a fix highly appreciated.

thanks,
-rajeev



http://svn.apache.org/viewvc?rev=639909&view=rev

There may have been others - you'd have to check the svn history to  
be sure.


Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Response time

2008-04-23 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bruno,

Bruno Matos wrote:
| I'm getting documents from lucene and creating a string with all the
| results with string buffer. The string creation takes 2 seconds and the
|
| outResponse.print(out.toString());
|
| takes 1 second. Closing the writer take no time at all, although I have
| to wait 2 minutes until the result shows in firefox. The same happens
| with solr, that should make something like that. The xml file, only has
| 300KB. Why I need to wait for so long?

Have you tried saving the 300kb XML file and then loading it off the
disk just to see how long the browser takes to render it? Perhaps it's
all on the client side...

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgPX7YACgkQ9CaO5/Lv0PCBgACgjQG0lVaGNCWWNSXcmSXXxXUF
AS8AoLSBsz6vGtH6zfALFvI5W3GGgtwR
=2WzS
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FooRealm not returning [any] error codes/exceptions

2008-04-23 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Richard,

Gundersen, Richard wrote:
| I'm using the standard JNDIRealm class to authenticate users. However if
| the login is unsuccessful, I am unable report the *reason* for the
| failure.

Yup. That's just how the realms are written. The code catches all
checked exceptions and merely logs them, and returns null (which means
"not authenticated").

Check your catalina.out or other log files for the reason.

| I was thinking of writing my own Realm class which did the same, but
| threw the exception if one occurred. Unfortunately this would break the
| contract with the RealmBase class I think (abstract methods).

You can't change that without re-writing a bunch of Tomcat code. What
you can do is to log the problem somewhere specific.

| From reading the Servlet spec, it suggests that the failure information
| *should* be available:
|
|   "The error page sent to a user that is not authenticated
| contains information about the failure."
|
| Does anyone have any advice / solved this problem before? Appreciate any
| feedback

The information that Tomcat has chosen to provide is limited to the lack
of successful authentication.

One solution is to use securityfilter
(http://securityfilter.sourceforge.net/). You can use Tomcat-provided
realms or write your own (which I recommend, given your requirements).
Get the latest source code and look at the FlexibleRealmInterface, which
has a method for authentication that includes a reference to the
request, so you can shove error messages into that and stuff like that.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgPYZQACgkQ9CaO5/Lv0PDdfACgnPmbJOmsM7Ve0CatQgsRvtkn
jQQAnjMogAAWdD+29gE7HAr5f976ZKXd
=7qgR
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Response time

2008-04-23 Thread Alan Chaney
One a similar vein, exactly how do you connect firefox to the server? 
Directly, or via some kind of network connection. If its a network, 
what's the bandwidth?


Alan Chaney


Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bruno,

Bruno Matos wrote:
| I'm getting documents from lucene and creating a string with all the
| results with string buffer. The string creation takes 2 seconds and the
|
| outResponse.print(out.toString());
|
| takes 1 second. Closing the writer take no time at all, although I have
| to wait 2 minutes until the result shows in firefox. The same happens
| with solr, that should make something like that. The xml file, only has
| 300KB. Why I need to wait for so long?

Have you tried saving the 300kb XML file and then loading it off the
disk just to see how long the browser takes to render it? Perhaps it's
all on the client side...

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgPX7YACgkQ9CaO5/Lv0PCBgACgjQG0lVaGNCWWNSXcmSXXxXUF
AS8AoLSBsz6vGtH6zfALFvI5W3GGgtwR
=2WzS
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



!DSPAM:480f6080289839080218370!



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Response time

2008-04-23 Thread Bruno Matos

Hello,

Tank you every one.

I connect to localhost and my CPU stays in 100% all the time.

Open directly the xml file take no time at all.

Alan Chaney wrote:
One a similar vein, exactly how do you connect firefox to the server? 
Directly, or via some kind of network connection. If its a network, 
what's the bandwidth?


Alan Chaney


Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bruno,

Bruno Matos wrote:
| I'm getting documents from lucene and creating a string with all the
| results with string buffer. The string creation takes 2 seconds and 
the

|
| outResponse.print(out.toString());
|
| takes 1 second. Closing the writer take no time at all, although I 
have

| to wait 2 minutes until the result shows in firefox. The same happens
| with solr, that should make something like that. The xml file, only 
has

| 300KB. Why I need to wait for so long?

Have you tried saving the 300kb XML file and then loading it off the
disk just to see how long the browser takes to render it? Perhaps it's
all on the client side...

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgPX7YACgkQ9CaO5/Lv0PCBgACgjQG0lVaGNCWWNSXcmSXXxXUF
AS8AoLSBsz6vGtH6zfALFvI5W3GGgtwR
=2WzS
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



!DSPAM:480f6080289839080218370!



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--
Bruno Matos
Analista de Sistemas 
PardigmaXis - Engenharia e Arquitectura de Software, S.A

Avenida da Boavista, 1043
4100-129 Porto
Portugal

Tel: (+351) 22 605 48 72
Fax: (+351) 22 605 48 74


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Response time

2008-04-23 Thread Alan Chaney
I do a lot of downloads of large files (several 10's of MB). Firefox 
seems to limit its transfer rate to about 100 kbps (that is, kilobits 
per sec). If you are using linux, try doing a 'wget' on the file instead 
of using a browser.


300,000 bytes is 2,400,000 bits (approx) so to take 2 minutes = 120 secs
implies a bit rate of 10,000 bits per sec. I don't for a moment believe 
that is a limitation of tomcat (I regularly stream continuously 40 
MBitsPerSec with hardly any CPU)


Here are various random thoughts:

1. Some kind of timeout (maybe DNS?)

2. Swapping (you say CPU = 100% what about memory usage?)

3. Some kind of lock contention.

HTH



Bruno Matos wrote:

Hello,

Tank you every one.

I connect to localhost and my CPU stays in 100% all the time.

Open directly the xml file take no time at all.

Alan Chaney wrote:
One a similar vein, exactly how do you connect firefox to the server? 
Directly, or via some kind of network connection. If its a network, 
what's the bandwidth?


Alan Chaney


Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bruno,

Bruno Matos wrote:
| I'm getting documents from lucene and creating a string with all the
| results with string buffer. The string creation takes 2 seconds and 
the

|
| outResponse.print(out.toString());
|
| takes 1 second. Closing the writer take no time at all, although I 
have

| to wait 2 minutes until the result shows in firefox. The same happens
| with solr, that should make something like that. The xml file, only 
has

| 300KB. Why I need to wait for so long?

Have you tried saving the 300kb XML file and then loading it off the
disk just to see how long the browser takes to render it? Perhaps it's
all on the client side...

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgPX7YACgkQ9CaO5/Lv0PCBgACgjQG0lVaGNCWWNSXcmSXXxXUF
AS8AoLSBsz6vGtH6zfALFvI5W3GGgtwR
=2WzS
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Response time

2008-04-23 Thread Bruno Matos

Thank you a lot.

Alan Chaney wrote:
I do a lot of downloads of large files (several 10's of MB). Firefox 
seems to limit its transfer rate to about 100 kbps (that is, kilobits 
per sec). If you are using linux, try doing a 'wget' on the file 
instead of using a browser.


300,000 bytes is 2,400,000 bits (approx) so to take 2 minutes = 120 secs
implies a bit rate of 10,000 bits per sec. I don't for a moment 
believe that is a limitation of tomcat (I regularly stream 
continuously 40 MBitsPerSec with hardly any CPU)


Here are various random thoughts:

1. Some kind of timeout (maybe DNS?)

localhost is on the hots file


2. Swapping (you say CPU = 100% what about memory usage?)  

memory still ok


3. Some kind of lock contention.

I will try to find out.


HTH



Bruno Matos wrote:

Hello,

Tank you every one.

I connect to localhost and my CPU stays in 100% all the time.

Open directly the xml file take no time at all.

Alan Chaney wrote:
One a similar vein, exactly how do you connect firefox to the 
server? Directly, or via some kind of network connection. If its a 
network, what's the bandwidth?


Alan Chaney


Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bruno,

Bruno Matos wrote:
| I'm getting documents from lucene and creating a string with all the
| results with string buffer. The string creation takes 2 seconds 
and the

|
| outResponse.print(out.toString());
|
| takes 1 second. Closing the writer take no time at all, although 
I have
| to wait 2 minutes until the result shows in firefox. The same 
happens
| with solr, that should make something like that. The xml file, 
only has

| 300KB. Why I need to wait for so long?

Have you tried saving the 300kb XML file and then loading it off the
disk just to see how long the browser takes to render it? Perhaps it's
all on the client side...

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgPX7YACgkQ9CaO5/Lv0PCBgACgjQG0lVaGNCWWNSXcmSXXxXUF
AS8AoLSBsz6vGtH6zfALFvI5W3GGgtwR
=2WzS
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--
Bruno Matos
Analista de Sistemas 
PardigmaXis - Engenharia e Arquitectura de Software, S.A

Avenida da Boavista, 1043
4100-129 Porto
Portugal

Tel: (+351) 22 605 48 72
Fax: (+351) 22 605 48 74


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Response time

2008-04-23 Thread Bruno Matos
I have tried with wget, and with my client application and the problem 
was the firefox. Now I have to go to another forum: solr. Solr really 
takes 3 minutes to make what my test version makes in 6 seconds.


Thank you every one!
Regards.

Bruno Matos wrote:

Thank you a lot.

Alan Chaney wrote:
I do a lot of downloads of large files (several 10's of MB). Firefox 
seems to limit its transfer rate to about 100 kbps (that is, kilobits 
per sec). If you are using linux, try doing a 'wget' on the file 
instead of using a browser.


300,000 bytes is 2,400,000 bits (approx) so to take 2 minutes = 120 secs
implies a bit rate of 10,000 bits per sec. I don't for a moment 
believe that is a limitation of tomcat (I regularly stream 
continuously 40 MBitsPerSec with hardly any CPU)


Here are various random thoughts:

1. Some kind of timeout (maybe DNS?)

localhost is on the hots file


2. Swapping (you say CPU = 100% what about memory usage?)  

memory still ok


3. Some kind of lock contention.

I will try to find out.


HTH



Bruno Matos wrote:

Hello,

Tank you every one.

I connect to localhost and my CPU stays in 100% all the time.

Open directly the xml file take no time at all.

Alan Chaney wrote:
One a similar vein, exactly how do you connect firefox to the 
server? Directly, or via some kind of network connection. If its a 
network, what's the bandwidth?


Alan Chaney


Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bruno,

Bruno Matos wrote:
| I'm getting documents from lucene and creating a string with all 
the
| results with string buffer. The string creation takes 2 seconds 
and the

|
| outResponse.print(out.toString());
|
| takes 1 second. Closing the writer take no time at all, although 
I have
| to wait 2 minutes until the result shows in firefox. The same 
happens
| with solr, that should make something like that. The xml file, 
only has

| 300KB. Why I need to wait for so long?

Have you tried saving the 300kb XML file and then loading it off the
disk just to see how long the browser takes to render it? Perhaps 
it's

all on the client side...

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgPX7YACgkQ9CaO5/Lv0PCBgACgjQG0lVaGNCWWNSXcmSXXxXUF
AS8AoLSBsz6vGtH6zfALFvI5W3GGgtwR
=2WzS
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]









--
Bruno Matos
Analista de Sistemas 
PardigmaXis - Engenharia e Arquitectura de Software, S.A

Avenida da Boavista, 1043
4100-129 Porto
Portugal

Tel: (+351) 22 605 48 72
Fax: (+351) 22 605 48 74


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat not sending JSESSIONID (servlet session cookie) with new sessions

2008-04-23 Thread Timothy Washington

Yes, the client and server are both on my localhost (I also tried 127.0.0.1), 
and that is the requesting/sending url. Hmmm, I tried setting that specific 
header (resp.addHeader("my-custom-header", "foo");), but there's no indication 
it's sending(from RequestDumpervalse output) or receiving(from LiveHTTPHeaders 
output) that header value. 


LiveHTTPHeaders output: 
http://localhost:8080/webkell/webkell

POST /webkell/webkell HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) 
Gecko/20080404 Firefox/2.0.0.14
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://localhost:8080/webkell/
Content-Type: application/x-www-form-urlencoded
Content-Length: 63
bkexpr=login+%28+user+-username+root+-password+password+%29%3B+
HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
Content-Length: 96
Date: Wed, 23 Apr 2008 17:38:02 GMT


RequestDumperValve output:
DEBUG [http-8080-1] (ExpressionVisitor.java:620) - Login: userSession: 

END EchoServlet EV: 
Apr 23, 2008 1:38:02 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: ---
Apr 23, 2008 1:38:02 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO:   authType=null
Apr 23, 2008 1:38:02 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO:  contentLength=96
Apr 23, 2008 1:38:02 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO:contentType=null
Apr 23, 2008 1:38:02 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: cookie=JSESSIONID=FA7EBDD5908EEB626BDEBB45367D964C; 
domain=null; path=/webkell
Apr 23, 2008 1:38:02 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: header=Content-Length=96
Apr 23, 2008 1:38:02 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: header=Date=Wed, 23 Apr 2008 17:38:02 GMT
Apr 23, 2008 1:38:02 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO:message=null
Apr 23, 2008 1:38:02 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: remoteUser=null
Apr 23, 2008 1:38:02 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: status=200
Apr 23, 2008 1:38:02 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: ===


Tim


- Original Message 
From: Christopher Schultz <[EMAIL PROTECTED]>
To: Tomcat Users List 
Sent: Wednesday, April 23, 2008 10:35:37 AM
Subject: Re: Tomcat not sending JSESSIONID (servlet session cookie) with new 
sessions

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tim,

Timothy Washington wrote:
| Thanks for the feedback so far. I actually kept the interactions as
| simple as possible exactly to minimize any unknown behaviour. There's no
| SSL or filters in the application yet.

So, there's pretty much nothing in the way.

Where is your client in relation to Tomcat? Is this on localhost, or
over a network?

Is is possible that you have a firewall or proxy that is removing the
Set-Cookie header? I would imagine that some corporate firewalls do that
to enforce a no-cookies policy.

What if you try to set your own header on the response (before or after
the 'perform' method is invoked)? Try something like:

response.addHeader("my-custom-header", "foo");

...and see if that makes it back to the client.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgPSTkACgkQ9CaO5/Lv0PCC5QCfZCdZ96e6JccC9e/KuwDVqKwL
87wAn29FZvSE+GJgmVlPJMFC+MLsrR/y
=0J/F
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  __
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/

Re: Tomcat not sending JSESSIONID (servlet session cookie) with new sessions

2008-04-23 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Timothy,

Timothy Washington wrote:
| Yes, the client and server are both on my localhost (I also tried
| 127.0.0.1), and that is the requesting/sending url. Hmmm, I tried
| setting that specific header (resp.addHeader("my-custom-header",
| "foo");), but there's no indication it's sending(from
| RequestDumpervalse output) or receiving(from LiveHTTPHeaders output)
| that header value.

That's totally weird.

Can you duplicate the offending servlet/action/JSP/whatever and start
removing things from it until it works?

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgPeKsACgkQ9CaO5/Lv0PDLFACgoATSJKX3WCHTjRqo38K5i2Rk
eK0AoKTXj0W+ip9OoNUVT6jmTERHDzEP
=zn8X
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FW: Tomcat ModJK Issues!!!

2008-04-23 Thread Filip Hanik - Dev Lists
what OS are you on, if you are on a Unix system, you can issue a "kill 
-3 "

and that will generate a thread dump in your std.out

looking at this file, you can see where the "processors" are taken up, 
and if they are locked up somewhere in your code, or simply busy with 
other connections (if you have configured more maxClients on httpd than 
maxProcessors on Tomcat)


Filip

Razat Gupta (razgupta) wrote:

Hi All

Can any one help me on this, I am posting it for the second time.

Regards
Razat

-Original Message-
From: Razat Gupta (razgupta) 
Sent: Thursday, April 17, 2008 12:19 PM

To: users@tomcat.apache.org
Subject: Tomcat ModJK Issues!!!

 


Hi All,

 


We are using Tomcat 4.1.29, Apache 1.3 and modjk in our project.

Sometimes, we got the following message in Catalina logs:-


"No processor available, rejecting this connection" and application
stops responding and we got an Internal Server Error for every request
from Apache to Tomcat.


If we restart the tomcat server after this, Tomcat starts responding to
every request being forwarded from Apache to Tomcat.


Seems to be some mod_jk issue. Has any one faced such type of issue
before, if yes what can be the reason for this and how we can overcome
this thing without restarting the tomcat server again and again? 



Thanks in advance.


Regards


Razat


 

 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FW: Tomcat ModJK Issues!!!

2008-04-23 Thread Mark Thomas

Razat Gupta (razgupta) wrote:

Can any one help me on this, I am posting it for the second time.


1. Stop posting the same question multiple times.
2. Read the response(s) you do get.
3. Respond to the questions in those responses.

Hint: There are responses you don't appear to have read yet.

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Share session cookie across subdomains

2008-04-23 Thread Zach Cox

Hi Chris - I'm not sure what this will accomplish:

public Request(Request wrapped)
{
~this.wrapped = wrapped;
}

public whatever doWhatever(args)
{
~super.doWhatever(args);
}

1) this.wrapped is never used so what's the point of saving it?
2) why override all of the methods just to call the super version of it?

I'm not sure I follow you...

Thanks,
Zach

-- 
View this message in context: 
http://www.nabble.com/Share-session-cookie-across-subdomains-tp16787390p16834778.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Share session cookie across subdomains

2008-04-23 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Zach,

Zach Cox wrote:
| Hi Chris - I'm not sure what this will accomplish:
|
| public Request(Request wrapped)
| {
| ~this.wrapped = wrapped;
| }
|
| public whatever doWhatever(args)
| {
| ~super.doWhatever(args);
| }
|
| 1) this.wrapped is never used so what's the point of saving it?

Sorry, I meant "wrapper.doWhatever(args)";

I've taken a closer look at this class and my suggestion is impossible
as there is a final method in the class. :(

Looks like valves are not nearly as useful as they should be. double :(

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgPkzoACgkQ9CaO5/Lv0PB1fgCgutaBFqLgjPK2H16yWJ04YxAn
D3oAn0eLFzc8sHiWft3yKvtxFIbRLryI
=hwi6
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat not sending JSESSIONID (servlet session cookie) with new sessions

2008-04-23 Thread Timothy Washington

Oh, that's a good point. I actually have an EchoSservlet to test stuff like 
this and the JSESSIONID is being passed back in that case. I've copied it's 
process method which is called by doGet/doPost. 

LiveHTTPHeader output:
http://localhost:8080/webkell/echo

GET /webkell/echo HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) 
Gecko/20080404 Firefox/2.0.0.14
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive

HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=C190519696B6307CE7B04F53ACC890A6; Path=/webkell
Content-Length: 13
Date: Wed, 23 Apr 2008 21:23:44 GMT


EchoServlet.process:
public void process(HttpServletRequest req, HttpServletResponse resp) 
throws ServletException { 


com.interrupt.bookkeeping.ISystem system = 

(com.interrupt.bookkeeping.ISystem)req.getSession().getAttribute("system"); 
PrintWriter pwriter = null; 
try { 

//... printing debug stuff


pwriter = new PrintWriter(resp.getOutputStream()); 
if(system == null) { 

pwriter.println("system NULL"); 
system = 
(com.interrupt.bookkeeping.ISystem)com.interrupt.bob.base.Bob.loadS( 

Bkell.class.getResourceAsStream("/bookkeeping.system.xml"), 
"xml/bookkeeping.system.xml" ); 
}
else { 
pwriter.println(system.toXML(false)); 
}
req.getSession().setAttribute("system", system); 

pwriter.close(); 

}
catch(IOException e) { 
e.printStackTrace(); 
}

}



- Original Message 
From: Christopher Schultz <[EMAIL PROTECTED]>
To: Tomcat Users List 
Sent: Wednesday, April 23, 2008 1:58:03 PM
Subject: Re: Tomcat not sending JSESSIONID (servlet session cookie) with new 
sessions

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Timothy,

Timothy Washington wrote:
| Yes, the client and server are both on my localhost (I also tried
| 127.0.0.1), and that is the requesting/sending url. Hmmm, I tried
| setting that specific header (resp.addHeader("my-custom-header",
| "foo");), but there's no indication it's sending(from
| RequestDumpervalse output) or receiving(from LiveHTTPHeaders output)
| that header value.

That's totally weird.

Can you duplicate the offending servlet/action/JSP/whatever and start
removing things from it until it works?

- -chris


  __
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot 
with the All-new Yahoo! Mail.  Click on Options in Mail and switch to New Mail 
today or register for free at http://mail.yahoo.ca

Re: Tomcat not sending JSESSIONID (servlet session cookie) with new sessions

2008-04-23 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tim,

Timothy Washington wrote:
| Oh, that's a good point. I actually have an EchoSservlet to test
| stuff like this and the JSESSIONID is being passed back in that case.
| I've copied it's process method which is called by doGet/doPost.

So, what's the difference between the one that works and the one that
doesn't?

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgPrHMACgkQ9CaO5/Lv0PCrUQCfU4pINQ1YpOFHu5nuubTJa647
YjoAoIvwM7lL9Cq7AMQj9xKyQAzad+S2
=gfzA
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat not sending JSESSIONID (servlet session cookie) with new sessions

2008-04-23 Thread Timothy Washington
The only thing is that in my real app, I send the response (via responseWriter) 
in my facade. Whereas in the EchoServlet, all processing is done in the servlet 
proper. I tried moving the response sending back up to the handling servlet and 
still no dice. I'll have to rip everything out and add stuff until I see where 
the breakage is. 

Tim



- Original Message 
From: Christopher Schultz <[EMAIL PROTECTED]>
To: Tomcat Users List 
Sent: Wednesday, April 23, 2008 5:38:59 PM
Subject: Re: Tomcat not sending JSESSIONID (servlet session cookie) with new 
sessions

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tim,

Timothy Washington wrote:
| Oh, that's a good point. I actually have an EchoSservlet to test
| stuff like this and the JSESSIONID is being passed back in that case.
| I've copied it's process method which is called by doGet/doPost.

So, what's the difference between the one that works and the one that
doesn't?

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgPrHMACgkQ9CaO5/Lv0PCrUQCfU4pINQ1YpOFHu5nuubTJa647
YjoAoIvwM7lL9Cq7AMQj9xKyQAzad+S2
=gfzA
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  __
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/

Re: Directories in Tomcat 5.5\temp

2008-04-23 Thread hezjing
You may read more about the log4j error at
http://marc.info/?l=log4j-user&m=120897082320333&w=2

So, that seems to be a normal behaviour in Tomcat.

Maybe we should conclude that this is an expected side-effect of using
antiResourceLocking?

:-)


On 4/23/08, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
> > From: hezjing [mailto:[EMAIL PROTECTED]
> > Subject: Re: Directories in Tomcat 5.5\temp
> >
> > log4j:ERROR LogMananger.repositorySelector was null likely due to
> > error in class reloading, using NOPLoggerRepository.
>
> Not likely to be the problem, but I can't be sure.
>
> > 23-Apr-2008 21:06:31 org.apache.catalina.core.AprLifecycleListener
> > lifecycleEvent
> > INFO: Failed shutdown of Apache Portable Runtime
>
> This certainly isn't the cause; that's just because you don't have APR
> installed.
>
>  - 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 start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 

Hez

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Extending DefaultServlet, broken welcome-file

2008-04-23 Thread Fred Toth

Hi all,

I'm lost in the woods.

Some time ago we built an application that required us to extend
the TC 5.5 DefaultServlet. All we did was point it to an external path
(outside the war file). It works great.

However, I now realize that I've somehow broken the 
mechanism for our extended servlet.

I've been churning through the source trying to find where the 

stuff is implemented. I can see that the configuration is loaded into 
the context,
but for the life of me I can't see how the DefaultServlet uses that 
information.


I keep looking for something like:

if (isDirectory)
   if there's a welcome file
  serve the welcome file

But no luck. Perhaps this is buried in the ProxyDirContext that 
abstracts the

actual file system resources?

Again, I'm lost. Can anyone shed light on this?

Thanks,

Fred

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]