Re: Tomcat Security Vulnerabilities

2006-02-10 Thread Markus Schönhaber
Jo Pfeffer wrote:
 Just wanting to know if anyone can tell me in which version of Tomcat
 the bug was fixed that allows you to enter in a URL like
 http://domain.com/%3f.jsp and get a directory listing. I know it exists
 in 3.2, just wondering which version it was fixed in.

http://issues.apache.org/bugzilla/show_bug.cgi?id=5261

Regards
  mks

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



Re: Problem with Tomcat and Java versions

2006-02-10 Thread Letícia Álvares Barbalho
I think I could require that, but as a last try - if nothing else would
work...

But I really think this should be able to be solved without reinstalling.
The thing is that when I only restart tomcat (with /etc/init.d/tomcat5
restart) things start working fine! So i don't think it's a tomcat problem,
but a tomcat configuration problem. It means that maybe, even if
reinstalling it, it would remain.

On 2/10/06, Anoop kumar V [EMAIL PROTECTED] wrote:

 Do you have the option of reinstalling Tomcat5  - so that Tomcat5 would
 just
 pick up java 5 and not have anything at all to do with java 1.4??

 -Anoop

 On 2/9/06, Letícia Álvares Barbalho [EMAIL PROTECTED] wrote:
 
  Hey,
 
  First of all thank you very much for the attention. I got some reading
  about
  it and found the jars [jaxp_parser_impl].jar and [xml-commons-apis].jar
  under /usr/share/tomcat5/common/endorsed
  I renamed them (so they could not be found) and restarted the server
 (the
  computer, I mean). Still, didn't work.
 
  The problem remains just as it was before :(
 
 
 
  On 2/9/06, Caldarale, Charles R [EMAIL PROTECTED] wrote:
  
From: Letícia Álvares Barbalho [mailto:[EMAIL PROTECTED]
Subject: Problem with Tomcat and Java versions
   
I was using java 1.4.2 here, and recently migrated to java 1.5.
Unfortunately, something probably is missing, 'cause I'm
having problems with Tomcat.
  
   You don't say what Tomcat version you're using.  If you were running
  5.5.xon JRE
   1.4.2, there may in fact be something extra, not something
 missing.  The
   compatibility package that's required for 1.4.2 execution should be
   removed when using JRE 5; the package consists of two jars in
   common/endorsed, and these should be deleted.  Of course, this may or
  may
   not have anything to do with your problem, but it's something to try.
  
   - 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]
  
  
 
 
  --
  Letícia Álvares Barbalho
  [EMAIL PROTECTED]
 
 


 --
 Thanks and best regards,
 Anoop




--
Letícia Álvares Barbalho
[EMAIL PROTECTED]


Re: pure java mod_rewrite using javax.servlet.Filter

2006-02-10 Thread Bruno Georges
Hi Antony
Such implementation already exist.
Google is your friend there.

Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


- Original Message -
From: Antony Riley [EMAIL PROTECTED]
Sent: 10.02.2006 14:32
To: users@tomcat.apache.org
Subject: pure java mod_rewrite using javax.servlet.Filter

Hiya all,

I'm looking at writing a Filter class which does request rewriting similar
to mod_rewrite in a apache for Tomcat (preferably written so that it will
work with any servlets 2.4 compliant server).

I'm having a little trouble with regards how filters actually work.

The following all happen inside filters (tomcat 5.5, latest stable release):

1) Wrapping the HttpServletRequest with one which modifies
request.getRequestURI(), request.getPathInfo() request.getServletPath() does
not seem to work, as at this point tomcat seems to have already decided what
server will proces the request.

2) using request.getRequestDispatcher(path).forward(request,response)
seems to work, however, this does not cause the Filter to be reapplied as I
would have expected if called at this stage in the request parsing process.

3) When declaring a filter in a web.xml for an application with a
url-mapping of /* seems to break hideously if there is also a default
servlet also declared in the web.xml (the application specific web.xml, not
the server web.xml) [I can and will probably will have to provide further
info on this] seems to break rather horribly causing tomcat to server up
unprocessed jsp pages, and fail to do directory indexes, even though without
the filter mapping it works correctly.

-Antony Riley


LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.



webapp under different URLs with different JSP but same java classes

2006-02-10 Thread Lothar Krenzien
Hi,

I'm not sure whether it is possible or not:

I have a webapp which I want to access under different URL's with different 
JSP's but the same java classes. I know that I can define the context URL in 
the context.xml But how to define which jsp's to use ?

Example :

Context path=/a docBase=/myapp

/Context

Context path=/b docBase=/myapp 

/Context

In myapp I may have a folder jsp_a and jsp_b.  Path 'a' should use JSPs from 
jsp_a and path 'b' should JSPs from jsp_b. Of course I can set up two different 
webapps. But the java classes and so the the content of the WEB-INF/classes 
directory will be identically for both webapps. I'm using Tomcat 5.5 under 
Windows 2003.

Thanks,
Lothar
__
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


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



Re: webapp under different URLs with different JSP but same java classes

2006-02-10 Thread David Delbecq
Duplicate your classes, one copy in each webapp

Lothar Krenzien a écrit :

Hi,

I'm not sure whether it is possible or not:

I have a webapp which I want to access under different URL's with different 
JSP's but the same java classes. I know that I can define the context URL in 
the context.xml But how to define which jsp's to use ?

Example :

Context path=/a docBase=/myapp

/Context

Context path=/b docBase=/myapp 

/Context

In myapp I may have a folder jsp_a and jsp_b.  Path 'a' should use JSPs from 
jsp_a and path 'b' should JSPs from jsp_b. Of course I can set up two 
different webapps. But the java classes and so the the content of the 
WEB-INF/classes directory will be identically for both webapps. I'm using 
Tomcat 5.5 under Windows 2003.

Thanks,
Lothar
__
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


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



How to enable HTTP 1.1 Content-MD5 headers?

2006-02-10 Thread Jeff Calog

Hi,

Does anybody know how to tell Tomcat 5.5.12 to send HTTP 1.1 Content-MD5 
response headers?  I can't seem to find any configuration settings for 
this.  Our goal is to evaluate the performance impact and perhaps use 
the MD5 digests as a way of validating file integrity.  Any help would 
be appreciated.


Thanks in advance for your time,

Jeff

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



Re: webapp under different URLs with different JSP but same java classes

2006-02-10 Thread Lothar Krenzien

Tomcat Users List users@tomcat.apache.org schrieb am 10.02.06 15:14:51:
 
 Duplicate your classes, one copy in each webapp



Of course I did it. But I hoped there is a better way ?





 
 Lothar Krenzien a écrit :
 
 Hi,
 
 I'm not sure whether it is possible or not:
 
 I have a webapp which I want to access under different URL's with different 
 JSP's but the same java classes. I know that I can define the context URL in 
 the context.xml But how to define which jsp's to use ?
 
 Example :
 
 Context path=/a docBase=/myapp
 
 /Context
 
 Context path=/b docBase=/myapp 
 
 /Context
 
 In myapp I may have a folder jsp_a and jsp_b.  Path 'a' should use JSPs from 
 jsp_a and path 'b' should JSPs from jsp_b. Of course I can set up two 
 different webapps. But the java classes and so the the content of the 
 WEB-INF/classes directory will be identically for both webapps. I'm using 
 Tomcat 5.5 under Windows 2003.
 
 Thanks,
 Lothar
 __
 Verschicken Sie romantische, coole und witzige Bilder per SMS!
 Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
 
 
 -
 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]
 


__
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


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



RE: webapp under different URLs with different JSP but same java classes

2006-02-10 Thread Caldarale, Charles R
 From: Lothar Krenzien [mailto:[EMAIL PROTECTED] 
 Subject: Re: webapp under different URLs with different JSP 
 but same java classes
 
 Tomcat Users List users@tomcat.apache.org schrieb am 
 10.02.06 15:14:51:
  
  Duplicate your classes, one copy in each webapp
 
 Of course I did it. But I hoped there is a better way ?

You should be able to use a filter to intercept the request and forward
it to the proper jsp.

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



Re: webapp under different URLs with different JSP but same java classes

2006-02-10 Thread Antony Riley
You could use a javax.servlet.Filter apparently, and say redirect requests
to a particular servername to /jsp_a and redirect the rest to /jsp_b.

basically installing a filter which does the following:

public void doFilter(request,response,chain) {
  if(request.getServerName.equals(server1) {
request.getRequestDispatcher(/jsp_a + request.getRequestURI
()).forward(request,response);
  } else {
request.getRequestDispatcher(/jsp_b + request.getRequestURI
()).forward(request,response);
  }
}

I can't comment if that's the correct way to do it as I'm a little bit new
to filters.

You'd declare it in your web.xml as

filter
  filter-namefoobar/filter
  filter-classcom.whatever.MyFilter/filter-class
/filter
filter-mapping
  filter-namefoobar/filter-name
  url-pattern*/url-pattern
/filter-mapping

On 2/10/06, Lothar Krenzien [EMAIL PROTECTED] wrote:


 Tomcat Users List users@tomcat.apache.org schrieb am 10.02.0615:14:51:
 
  Duplicate your classes, one copy in each webapp



 Of course I did it. But I hoped there is a better way ?





 
  Lothar Krenzien a écrit :
 
  Hi,
  
  I'm not sure whether it is possible or not:
  
  I have a webapp which I want to access under different URL's with
 different JSP's but the same java classes. I know that I can define the
 context URL in the context.xml But how to define which jsp's to use ?
  
  Example :
  
  Context path=/a docBase=/myapp
  
  /Context
  
  Context path=/b docBase=/myapp 
  
  /Context
  
  In myapp I may have a folder jsp_a and jsp_b.  Path 'a' should use JSPs
 from jsp_a and path 'b' should JSPs from jsp_b. Of course I can set up two
 different webapps. But the java classes and so the the content of the
 WEB-INF/classes directory will be identically for both webapps. I'm using
 Tomcat 5.5 under Windows 2003.
  
  Thanks,
  Lothar
  __
  Verschicken Sie romantische, coole und witzige Bilder per SMS!
  Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
  
  
  -
  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]
 


 __
 Verschicken Sie romantische, coole und witzige Bilder per SMS!
 Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


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




RE: Tomcat out of memory

2006-02-10 Thread Biernesser, Beth
Add this line to your catalina.sh file under environment variables:

 export JAVA_OPTS=-Xmx512m

However, you should not expand the memory to more than half of the memory 
available on your server.  If you don't have a GB of memory, modify the 512 
to an appropriate level relative to your memory size.

-Original Message-
From: Burak Yýlmaz [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 10, 2006 9:45 AM
To: users@tomcat.apache.org
Subject: Tomcat out of memory

Hi all;

I have a web site where 200 users online at average...These user overload 
started in these days...

Webpages seem to be loading sometimes then blank page comes(totaly blank no 
error messages)...I havent set any memory pool option on Tomcat or havent 
installed native software support of Tomcat...

Please give me an idea in this situation...What must i do?

thanks

Burak YILMAZ


-
 Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews,  more on new 
and used cars.



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



Re: pure java mod_rewrite using javax.servlet.Filter

2006-02-10 Thread Antony Riley
Googles suggested implementation is GPL, which prohibits me from using it,
and I'm not paying for the equivalent of mod_rewrite for tomcat. I'd rather
write my own and publish it under a less restrictive license.

Regards my questions,

(1) still stands,

(2) I've partially answered for myself, by looking in the servlet 2.4 JSR
(notably the dispatcher*/dispatcher web.xml option seems to be missing
from the Tomcat docs pages), and RequestDispatcher.forward()/include() does
seem to work as expected inside a Filter.

(3) I guess I'll  try to reproduce this and submit an appropriately
carefully worded bug after trawling through the specs myself instead of
asking on the mailing list, and having someone read the first two lines and
decide that I haven't even tried to use google.

On 2/10/06, Bruno Georges [EMAIL PROTECTED] wrote:

 Hi Antony
 Such implementation already exist.
 Google is your friend there.

 Bruno Georges

 Glencore International AG
 Tel. +41 41 709 3204
 Fax +41 41 709 3000


 - Original Message -
 From: Antony Riley [EMAIL PROTECTED]
 Sent: 10.02.2006 14:32
 To: users@tomcat.apache.org
 Subject: pure java mod_rewrite using javax.servlet.Filter

 Hiya all,

 I'm looking at writing a Filter class which does request rewriting similar
 to mod_rewrite in a apache for Tomcat (preferably written so that it will
 work with any servlets 2.4 compliant server).

 I'm having a little trouble with regards how filters actually work.

 The following all happen inside filters (tomcat 5.5, latest stable
 release):

 1) Wrapping the HttpServletRequest with one which modifies
 request.getRequestURI(), request.getPathInfo() request.getServletPath()
 does
 not seem to work, as at this point tomcat seems to have already decided
 what
 server will proces the request.

 2) using request.getRequestDispatcher(path).forward(request,response)
 seems to work, however, this does not cause the Filter to be reapplied as
 I
 would have expected if called at this stage in the request parsing
 process.

 3) When declaring a filter in a web.xml for an application with a
 url-mapping of /* seems to break hideously if there is also a default
 servlet also declared in the web.xml (the application specific web.xml,
 not
 the server web.xml) [I can and will probably will have to provide further
 info on this] seems to break rather horribly causing tomcat to server up
 unprocessed jsp pages, and fail to do directory indexes, even though
 without
 the filter mapping it works correctly.

 -Antony Riley


 LEGAL DISCLAIMER. The contents of this e-mail and any attachments are
 strictly
 confidential and they may not be used or disclosed by someone who is not a
 named recipient.
 If you have received this email in error please notify the sender by
 replying
 to this email inserting the word misdirected as the message and delete
 this
 e-mail from your system.





Tomcat - blank page problem

2006-02-10 Thread Y
Webpages seem to be loading then usually blank page 
 comes(totaly blank no error messages) on high traffic.

This problem started in these days when my website traffic increased a lot.(200 
users online at the same time)

System configuration..:Windows 2003 server ,1 gb ram ,2.4 celeron
Tomcat version:5.5.15 connected to IIS with isapi redirector

Anyone knows why this problem may occur...?
I am not a pro about tomcat but i think this problem occurs about 
memory..because i havent set any initial or maximum memory pool option of 
tomcat and the problem started with high traffic..

thank you

Burak YILMAZ





-
Relax. Yahoo! Mail virus scanning helps detect nasty viruses!

Re: Problem with Tomcat and Java versions

2006-02-10 Thread Mike Sabroff
I have been looking at this for a couple of days, and it seems that 
maybe, it is a problem with the init.d startup. Sounds like it is 
pointing at the old tomcat and not the new until you run it manually and 
tell it tomcat 5. I am no systems person and I have many problems of 
this nature and it usually ends up being some file or symlink the I 
failed to remove or change with the new installation.


Letícia Álvares Barbalho wrote:

I think I could require that, but as a last try - if nothing else would
work...

But I really think this should be able to be solved without reinstalling.
The thing is that when I only restart tomcat (with /etc/init.d/tomcat5
restart) things start working fine! So i don't think it's a tomcat problem,
but a tomcat configuration problem. It means that maybe, even if
reinstalling it, it would remain.

On 2/10/06, Anoop kumar V [EMAIL PROTECTED] wrote:
  

Do you have the option of reinstalling Tomcat5  - so that Tomcat5 would
just
pick up java 5 and not have anything at all to do with java 1.4??

-Anoop

On 2/9/06, Let?cia ?lvares Barbalho [EMAIL PROTECTED] wrote:


Hey,

First of all thank you very much for the attention. I got some reading
about
it and found the jars [jaxp_parser_impl].jar and [xml-commons-apis].jar
under /usr/share/tomcat5/common/endorsed
I renamed them (so they could not be found) and restarted the server
  

(the


computer, I mean). Still, didn't work.

The problem remains just as it was before :(



On 2/9/06, Caldarale, Charles R [EMAIL PROTECTED] wrote:
  

From: Let?cia ?lvares Barbalho [mailto:[EMAIL PROTECTED]
Subject: Problem with Tomcat and Java versions

I was using java 1.4.2 here, and recently migrated to java 1.5.
Unfortunately, something probably is missing, 'cause I'm
having problems with Tomcat.
  

You don't say what Tomcat version you're using.  If you were running


5.5.xon JRE
  

1.4.2, there may in fact be something extra, not something


missing.  The


compatibility package that's required for 1.4.2 execution should be
removed when using JRE 5; the package consists of two jars in
common/endorsed, and these should be deleted.  Of course, this may or


may
  

not have anything to do with your problem, but it's something to try.

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




--
Let?cia ?lvares Barbalho
[EMAIL PROTECTED]


  

--
Thanks and best regards,
Anoop






--
Let?cia ?lvares Barbalho
[EMAIL PROTECTED]

  


--
Mike Sabroff
Web Services
Developer
[EMAIL PROTECTED]
920-568-8379


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



Re: pure java mod_rewrite using javax.servlet.Filter

2006-02-10 Thread Tim Funk

The Tomcat distritbution doesn't have an equivalent of mod_rewrite.

Try http://javawebparts.sourceforge.net/ It has an apache license.

-Tim

Antony Riley wrote:

Googles suggested implementation is GPL, which prohibits me from using it,
and I'm not paying for the equivalent of mod_rewrite for tomcat. I'd rather
write my own and publish it under a less restrictive license.

Regards my questions,

(1) still stands,

(2) I've partially answered for myself, by looking in the servlet 2.4 JSR
(notably the dispatcher*/dispatcher web.xml option seems to be missing
from the Tomcat docs pages), and RequestDispatcher.forward()/include() does
seem to work as expected inside a Filter.

(3) I guess I'll  try to reproduce this and submit an appropriately
carefully worded bug after trawling through the specs myself instead of
asking on the mailing list, and having someone read the first two lines and
decide that I haven't even tried to use google.



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



RE: Tomcat - blank page problem

2006-02-10 Thread Caldarale, Charles R
 From: Burak Yýlmaz [mailto:[EMAIL PROTECTED] 
 Subject: Tomcat - blank page problem
 
 Webpages seem to be loading then usually blank page 
  comes(totaly blank no error messages) on high traffic.

 Anyone knows why this problem may occur...?

What do you see in the Tomcat logs?  Can you simulate the volume of traffic in 
a test environment?  Does the problem occur if the requests go directly to 
Tomcat, not through IIS?

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



Re: Tomcat out of memory

2006-02-10 Thread Mike Sabroff

At our company we bounce tomcat every morning via a cron job

Burak Y wrote:

Hi all;

I have a web site where 200 users online at average...These user overload 
started in these days...

Webpages seem to be loading sometimes then blank page comes(totaly blank no 
error messages)...I havent set any memory pool option on Tomcat or havent 
installed native software support of Tomcat...

Please give me an idea in this situation...What must i do?

thanks

Burak YILMAZ


-
 Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews,  more on new 
and used cars.
  


--
Mike Sabroff
Web Services
Developer
[EMAIL PROTECTED]
920-568-8379


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



RE: Tomcat - blank page problem

2006-02-10 Thread Ian Buzer
 Webpages seem to be loading then usually blank page 
  comes(totaly blank no error messages) on high traffic.

I suspect this could either be your redirector cachesize is not large enough
(the number of threads that the redirector will accept from IIS) or tomcat
is not able to respond to all the threads that are being passed through to
it.

Both these will show up in the isapi redirector logs.

Cache size is set in /conf/workers.properties

Tomcat threads are set in /conf/server.xml (maxThreads etc. on the AJP
connector)

Ian


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



Re: webapp under different URLs with different JSP but same java classes

2006-02-10 Thread David Smith
In the long run, duplicating classes is really the best way.  It 
eliminates a whole slew of headaches with version control if you 
introduce new webapps based on an updated version.  Set up your 
development environment to take care of the duplication for you in the 
build process.


-- David

Lothar Krenzien wrote:

Tomcat Users List users@tomcat.apache.org schrieb am 10.02.06 15:14:51:
  

Duplicate your classes, one copy in each webapp





Of course I did it. But I hoped there is a better way ?





  

Lothar Krenzien a écrit :



Hi,

I'm not sure whether it is possible or not:

I have a webapp which I want to access under different URL's with different 
JSP's but the same java classes. I know that I can define the context URL in 
the context.xml But how to define which jsp's to use ?

Example :

Context path=/a docBase=/myapp

/Context

Context path=/b docBase=/myapp 

/Context

In myapp I may have a folder jsp_a and jsp_b.  Path 'a' should use JSPs from 
jsp_a and path 'b' should JSPs from jsp_b. Of course I can set up two different 
webapps. But the java classes and so the the content of the WEB-INF/classes 
directory will be identically for both webapps. I'm using Tomcat 5.5 under 
Windows 2003.

Thanks,
Lothar
__
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


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





__
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


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



Getting directory in which app is deployed

2006-02-10 Thread Wojciech Ciesielski
Hi there,

I have one problem... We have to execute external Java process from JAR archive 
included in our web application directory. The problem is, that all system 
dependant functions are relative to tomcat home directory. And - when our 
application is deployed outside tomcat directory via server.xml context 
definition - we cannot find a way to get path to our web directory...

I am not sure if I am expressing myself clear, so example...

I have web app with structure:

someDir/web:
  WEB-INF
  META-INF
  dirWithArchive
externalProgram.jar
  ...

which is deployed OUTSIDE tomcat. I need to execute such code:

Process = new ProcessBuilder(java -jar 
some/path/to/someDir/web/dirWithArchive/externalProgram.jar.split(\\s+).start();

from within struts action or struts plugin. HOW can I find a path without 
specifying it manualy (it's problematic because of different environments we 
deploy our application to).

TIA

Wojciech Ciesielski
Software Mind | Where Quality Meets the Future 
 
mailto:[EMAIL PROTECTED]
tel./fax: +48-12 6145170
http://www.softwaremind.pl
 


Re: StandardManager instance

2006-02-10 Thread Leon Rosenberg
class SessionHolder implements HttpSessionListener{

/* (non-Javadoc)
 * @see 
javax.servlet.http.HttpSessionListener#sessionCreated(javax.servlet.http.HttpSessionEvent)
 */
public void sessionCreated(HttpSessionEvent arg0) {
//Store session
}


to add this listener to your webapp, add to web.xml:

!-- Listeners --
listener
listener-class
de.friendscout.datingr4.admin.presentation.util.SessionCounter
/listener-class
/listener

regards
leon

On 2/10/06, Supreeth Shetty [EMAIL PROTECTED] wrote:
 Hello all,
  I got a really quick question. How do i get hold of the StandardManager 
 instance which the tomcat instatiates when it starts up??
  I need it to get all the active sessions the server is handling. If i can 
 get a hold of all session list someother way, then thats fine too ...

 thanks in advance
 Supreeth


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



Re: StandardManager instance

2006-02-10 Thread Supreeth Shetty
So does that mean i need to store the sessions myself??  Can i not get the
list of sessions already being managed by tomcat?

- Original Message - 
From: Leon Rosenberg [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, February 10, 2006 10:14 PM
Subject: Re: StandardManager instance


class SessionHolder implements HttpSessionListener{

/* (non-Javadoc)
* @see
javax.servlet.http.HttpSessionListener#sessionCreated(javax.servlet.http.Htt
pSessionEvent)
*/
public void sessionCreated(HttpSessionEvent arg0) {
//Store session
}


to add this listener to your webapp, add to web.xml:

!-- Listeners --
listener
listener-class

de.friendscout.datingr4.admin.presentation.util.SessionCounter
/listener-class
/listener

regards
leon

On 2/10/06, Supreeth Shetty [EMAIL PROTECTED] wrote:
 Hello all,
  I got a really quick question. How do i get hold of the StandardManager
instance which the tomcat instatiates when it starts up??
  I need it to get all the active sessions the server is handling. If i can
get a hold of all session list someother way, then thats fine too ...

 thanks in advance
 Supreeth


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



problems with iso-8859-2 characters sending with GET method

2006-02-10 Thread Przemysław Klein

Hi All.

I use iso-8859-2 character encoding in my application. When I sent forms 
using GET metod I receive question marks instead of some iso-8859-2 
characters. There is no problem when I send same form with same data 
using POST metdod - all letters look properly.


I set proper character set both for response and request.

Any suggerstions (Tomcat 5.5.12)?

Thanks in advance,
Przemek

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



Re: Getting directory in which app is deployed

2006-02-10 Thread David Smith
If your webapp is deployed as an exploded app (ie not a .war file), 
ServletContext#getRealPath() should do the trick


--David

Wojciech Ciesielski wrote:

Hi there,

I have one problem... We have to execute external Java process from JAR archive 
included in our web application directory. The problem is, that all system 
dependant functions are relative to tomcat home directory. And - when our 
application is deployed outside tomcat directory via server.xml context 
definition - we cannot find a way to get path to our web directory...

I am not sure if I am expressing myself clear, so example...

I have web app with structure:

someDir/web:
  WEB-INF
  META-INF
  dirWithArchive
externalProgram.jar
  ...

which is deployed OUTSIDE tomcat. I need to execute such code:

Process = new ProcessBuilder(java -jar 
some/path/to/someDir/web/dirWithArchive/externalProgram.jar.split(\\s+).start();

from within struts action or struts plugin. HOW can I find a path without 
specifying it manualy (it's problematic because of different environments we 
deploy our application to).

TIA

Wojciech Ciesielski
Software Mind | Where Quality Meets the Future 
 
mailto:[EMAIL PROTECTED]

tel./fax: +48-12 6145170
http://www.softwaremind.pl
 

  



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



RE: Tomcat out of memory

2006-02-10 Thread Eddie Dimond
We were experiencing the same problem with our tomcat servers (5.0.28).  Our
problem was that the jk connector port was being overwhelmed with
connections (we connect to tomcat from apache via mod_jk).  There in no way
5.0.28 to enlarge the thread pool size on the connectors (in server.xml).
The solution we found was to add the recylce_timeout property to all of our
workers in the apache/conf/workers.properties file:

worker.tc1.recycle_timeout=120

This setting will kill threads that have been inactive for two minutes (the
thread checking takes place once a minute by default).  We've been running
for a week with this setup and have had no recurrence of the problems you
describe.

If you are running tomcat 5.5, you can set the threads pool size for
connectors in server.xml using the maxThreads property of the connector.

If you are not running apache/tomcat, you will have to change the settings
on the tcp/ip connector port.

Hope this helps.



-Original Message-
From: Mike Sabroff [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 10, 2006 8:20 AM
To: Tomcat Users List
Subject: Re: Tomcat out of memory

At our company we bounce tomcat every morning via a cron job

Burak Y wrote:
 Hi all;

 I have a web site where 200 users online at average...These user overload
started in these days...

 Webpages seem to be loading sometimes then blank page comes(totaly blank
no error messages)...I havent set any memory pool option on Tomcat or havent
installed native software support of Tomcat...

 Please give me an idea in this situation...What must i do?

 thanks

 Burak YILMAZ

   
 -
  Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews,  more on
new and used cars.
   

--
Mike Sabroff
Web Services
Developer
[EMAIL PROTECTED]
920-568-8379


-
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: Realm and Authentication with Tomcat 5.0, Apache 2 and mod_jk 1.2

2006-02-10 Thread Duan, Nick
Sorry for jumping into the discussion.  The comment I'd like to make is
that you can't really separate the security realm from authentication.
In other words, a security realm is an integral part of user
authentication.  If user authentication is done by apache, the realm
(the term realm is kind of used for app servers exclusively) should be
provided by apache.  If it is done by tomcat, the tomcat realm should be
used.  In this case, one option is to use or customize the mod_auth of
apache (http://localhost/manual/mod/mod_auth_dbm.html), which is the
apache realm for doing authentication.  Another option would be just
letting tomcat do the authentication by setting the tomcatAuthentication
field to true.

ND

  

-Original Message-
From: Mickael Goujon [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 10, 2006 3:30 AM
To: Tomcat Users List
Subject: Re: Realm and Authentication with Tomcat 5.0, Apache 2 and
mod_jk 1.2

Hi Bill,

Thanks for your answer.

The original design of this authentication/session creation mechanism 
was made by another developper who knows Tomcat better than I know (but 
not enough apparently ;) ).

If I understand correctly, your suggestion is to write a custom valve 
which will be used as our missing link between the Apache authentication

and the Tomcat Realm call. Is this correct?
The Valve will access the username/password in the header and explicitly

call the Realm (Kind of similar to the SSO Valve)?

Cheers,

Mickael

Bill Barker wrote:
 Mickael Goujon [EMAIL PROTECTED] wrote in
message 
 news:[EMAIL PROTECTED]
 
Hi,

We have a web application deployed under Tomcat 5.0 which uses a
custom 
Realm for authentication. This custom Realm basically does a web
service 
call using the user's credentials to authenticate with the web service

server (basic WS-I username/password authentication).

If the web service call fails (user not allowed to call the web
service 
with his credentials), then Tomcat authentication fails.

If the web service call succeed (user has access to the web service),
then 
Tomcat authentication succeed and the Realm will store the Session
object 
returned by the web service in a ThreadLocalContext to be reused later
in 
the web application.

This works fine with Tomcat only, but as soon as I add mod_jk and try
to 
use Apache to do the authentication and then pass the credentials to 
Tomcat (using tomcatAuthentication=false), I get the 403 - access
denied 
page.

I'd like to know if, in my configuration (Apache authentication +
Tomcat 
Realm + tomcatAuthentication=false), Apache is supposed to pass the
user 
login/password to the Tomcat Realm or if the realm is not called at
all 
(This would be the bad news I fear)?

 
 
 Sorry for the bad news, but the Tomcat Realm is not called at all in
this 
 situation.  Also, Apache doesn't forward the password directly
(although it 
 is still in encoded in the Header).
 
 
My combination Apache/Tomcat/mod_jk works when I specify 
tomcatAuthentication=true. But, I'd like to have Apache authentication
and 
the Tomcat Realm called automatically after that with the 
username/password... Is this possible or do I have to move my Session 
creation process somewhere else?

 
 
 A custom Authenticator is probably over-kill here.  I would probably
just 
 use a custom Valve.  But as-is, you do at least have to add something
(or, 
 modify your copy of the Tomcat code :) to invoke the Realm.
 
 
Hope you understood my problem,

Cheers,

Mickael

--
Mickael Goujon
Software Engineer
Lion Bioscience Ltd 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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


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



RE: tomcat + certificate

2006-02-10 Thread Duan, Nick
Without knowing the details of your problem (you may want to provide a
stack trace next time), I think the problem is in the java client.  Did
you use JSSE to implement the client?  The java sockets for accessing
http are not the same as https.

ND

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Saravana Kumar
Sent: Friday, February 10, 2006 2:29 AM
To: users@tomcat.apache.org
Subject: tomcat + certificate

Hi,

I am running a tomcat server running here. We have a servlet container
hosted in the server. The servlet is called from a java client program
and
is working fine(http).

Then i following the instructions from the tomcat documentation page i
installed a self signed certificate. The site now shows up with the
certificate from the browser.

The problem is while running the java client and connecting to the
server(https) the program gives out error(connection timed out/SSL
handshake ... etc).

Hope i am not raising a dumb question here. What is wrong with my setup?
Any
pointers. Some one said we have to install apache also. Is that so? Is
it
possible to make tomcat handle the certificates itself and free the
servlet
from that.

BTW, i am running on FC4, with tomcat version 5.5.12.


TIA,
SK


-
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: Getting directory in which app is deployed

2006-02-10 Thread Mike Sabroff
have your external process use a script that points to the webdirectory 
or if you use servlets, set an init param in the web.xml or in 
server.xml set an environment variable:

!-- Test entry for demonstration purposes --
   Environment name=simpleValue type=java.lang.Integer value=30/
or set a session variable in a jsp

Wojciech Ciesielski wrote:


Hi there,

I have one problem... We have to execute external Java process from 
JAR archive included in our web application directory. The problem is, 
that all system dependant functions are relative to tomcat home 
directory. And - when our application is deployed outside tomcat 
directory via server.xml context definition - we cannot find a way to 
get path to our web directory...


I am not sure if I am expressing myself clear, so example...

I have web app with structure:

someDir/web:
  WEB-INF
  META-INF
  dirWithArchive
externalProgram.jar
  ...

which is deployed OUTSIDE tomcat. I need to execute such code:

Process = new ProcessBuilder(java -jar 
some/path/to/someDir/web/dirWithArchive/externalProgram.jar.split(\\s+).start();


from within struts action or struts plugin. HOW can I find a path 
without specifying it manualy (it's problematic because of different 
environments we deploy our application to).


TIA

Wojciech Ciesielski
Software Mind | Where Quality Meets the Future

mailto:[EMAIL PROTECTED]
tel./fax: +48-12 6145170
http://www.softwaremind.pl



--
Mike Sabroff
Web Services
Developer
[EMAIL PROTECTED]
920-568-8379


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



Re: problems with iso-8859-2 characters sending with GET method

2006-02-10 Thread Mike Sabroff
why would you use  8859-2? why not use utf-8 and solve a lot of future 
problems?

Przemysław Klein wrote:

Hi All.

I use iso-8859-2 character encoding in my application. When I sent 
forms using GET metod I receive question marks instead of some 
iso-8859-2 characters. There is no problem when I send same form with 
same data using POST metdod - all letters look properly.


I set proper character set both for response and request.

Any suggerstions (Tomcat 5.5.12)?

Thanks in advance,
Przemek

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



--
Mike Sabroff
Web Services
Developer
[EMAIL PROTECTED]
920-568-8379


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



Re: problems with iso-8859-2 characters sending with GET method

2006-02-10 Thread Mark Thomas
Przemysław Klein wrote:
 I use iso-8859-2 character encoding in my application. When I sent forms
 using GET metod I receive question marks instead of some iso-8859-2
 characters. There is no problem when I send same form with same data
 using POST metdod - all letters look properly.

http://tomcat.apache.org/tomcat-5.5-doc/config/http.html
Look for URIEncoding

Mark


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



FAQ? Taglibs not rendering in Tomcat 5

2006-02-10 Thread catfarm

(IF this is a FAQ please redirect me)

I built an app with extensive use of tag libraries. It runs great on my build 
machine with TC4 but doesn't render properly on the test box running TC5. The 
get/set methods for the taglib are being called but not writeTagBodyContent. 
This is never being called.

Surely this is a known problem. Am I running a stale version?

Thanks.

RE: FAQ? Taglibs not rendering in Tomcat 5

2006-02-10 Thread Tim Lucia
Chuck would ask you to tell us what version of Tomcat 5 (5.0, 5.5) and the
release number (.28, .12), and he would ask for the O/S, and probably ask if
there were any exceptions in the log...

Remember, the more information you give us, the easier it is for us to help
you and the likelier you are to experience quick turnaround.

Tim 

-Original Message-
From: catfarm [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 10, 2006 2:23 PM
To: users@tomcat.apache.org
Subject: FAQ? Taglibs not rendering in Tomcat 5


(IF this is a FAQ please redirect me)

I built an app with extensive use of tag libraries. It runs great on my
build machine with TC4 but doesn't render properly on the test box running
TC5. The get/set methods for the taglib are being called but not
writeTagBodyContent. This is never being called.

Surely this is a known problem. Am I running a stale version?

Thanks.


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



Re: Verisign SSL on Tomcat 5.5.9

2006-02-10 Thread Patrick Lacson
These instruction by sycamore are correct.  Thanks for updating the docs.

On 2/9/06, Mark Thomas [EMAIL PROTECTED] wrote:

 Sycamore Days wrote:
  Follow the instructions here on tomcat's site:
 
  Every step is correct, ***EXCEPT*** for the Verisign link:
 For Verisign.com go to:
 http://www.verisign.com/support/install/intermediate.html
 
  That should be:
 
 http://www.verisign.com/support/verisign-intermediate-ca/Trial_Secure_Server_Root/index.html
 
  The Trial Root Certificate is what you should use, not the Secure Site
 Intermediate.  That's apparently for paid customers only.

 I have updated the docs to clarify that there are different CAs for
 trial and paid certificates. Updated docs will be included in the next
 release.

 Mark


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




--
Patrick


Off topic: Email bounce handler code?

2006-02-10 Thread David Wall
Does anybody know of any good Java/servlet code that handles email 
bounce processing?  When our automated systems send an email that 
bounces (lots of hotmail bounce if the user has an account but just 
hasn't logged in the past 30 days), we'd like a somewhat reliable 
mechanism to associate the bounce with a transaction in our system.  I'd 
guess I'd put a special header in so that bounces that return headers or 
return the original message can be parsed.


I've seen some mailman type code, but they rely on the SMTP server being 
able to handle mangled email addresses, but that's not generally an 
option for us as we often need to rely on existing SMTP systems in which 
at best we can configure the return path to be a given mailbox that we 
can analyze.


Thanks,
David

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



RE: Off topic: Email bounce handler code?

2006-02-10 Thread Nicholas Irving
Yeah did something similair a number of yeah ago, but was not with TomCat.
Instead used ACS, Oracle Server and qmail, where we used oracle to read the
mail messages, from qmail store, into the database and the ACS to read those
messages. Cannot remember off the top of my head how it was done, but we had
set the bounce back to a unique id which qmail would associate with a
mailbox for us. Will try and dig out how it all work properly later.

-Original Message-
From: David Wall [mailto:[EMAIL PROTECTED] 
Sent: Saturday, 11 February 2006 8:02 AM
To: Tomcat Users List
Subject: Off topic: Email bounce handler code?

Does anybody know of any good Java/servlet code that handles email 
bounce processing?  When our automated systems send an email that 
bounces (lots of hotmail bounce if the user has an account but just 
hasn't logged in the past 30 days), we'd like a somewhat reliable 
mechanism to associate the bounce with a transaction in our system.  I'd 
guess I'd put a special header in so that bounces that return headers or 
return the original message can be parsed.

I've seen some mailman type code, but they rely on the SMTP server being 
able to handle mangled email addresses, but that's not generally an 
option for us as we often need to rely on existing SMTP systems in which 
at best we can configure the return path to be a given mailbox that we 
can analyze.

Thanks,
David

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


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.2/253 - Release Date: 7/02/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.6/257 - Release Date: 10/02/2006
 


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



RE: Off topic: Email bounce handler code?

2006-02-10 Thread Nicholas Irving
Take a look at 
http://rhea.redhat.com/asj/webmail/ 
http://www.eveandersson.com/arsdigita/doc/email-handler
http://ryanlee.org/doc/bulkmail.html

Basis of what you are trying to do is here, just may need some adaptation to
your systems.

-Original Message-
From: David Wall [mailto:[EMAIL PROTECTED] 
Sent: Saturday, 11 February 2006 8:02 AM
To: Tomcat Users List
Subject: Off topic: Email bounce handler code?

Does anybody know of any good Java/servlet code that handles email 
bounce processing?  When our automated systems send an email that 
bounces (lots of hotmail bounce if the user has an account but just 
hasn't logged in the past 30 days), we'd like a somewhat reliable 
mechanism to associate the bounce with a transaction in our system.  I'd 
guess I'd put a special header in so that bounces that return headers or 
return the original message can be parsed.

I've seen some mailman type code, but they rely on the SMTP server being 
able to handle mangled email addresses, but that's not generally an 
option for us as we often need to rely on existing SMTP systems in which 
at best we can configure the return path to be a given mailbox that we 
can analyze.

Thanks,
David

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


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.2/253 - Release Date: 7/02/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.6/257 - Release Date: 10/02/2006
 


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



Access log to see where robots go.

2006-02-10 Thread Scott Purcell
I have had trouble getting search engines to see my site. I built it with 
struts, and use some tags from the index.html page to get business logic, to 
finally get to my page. The url is http://www.theuniquepear.com

Anyway, upon talking to some co-workers, they suggested I watch my access log, 
so I can see what files they are indexing. I thought I had the access log 
turned on for the site, and see when someone hits my web site, but as far as 
the searchbots go, I only see this in my logs daily.

$ cat  localhost_access_log.2006-02-07.txt | less
67.15.16.30 - - [07/Feb/2006:03:44:55 -0600] GET /robots.txt HTTP/1.0 404 985
67.15.16.30 - - [07/Feb/2006:03:46:21 -0600] GET / HTTP/1.0 200 844
67.15.16.30 - - [07/Feb/2006:03:51:57 -0600] GET /robots.txt HTTP/1.0 404 985
62.114.208.233 - - [07/Feb/2006:03:52:42 -0600] GET 
/unique/welcome.do?OVRAW=home%20decorating%20ideasOVKEY=home
62.114.208.233 - - [07/Feb/2006:03:52:44 -0600] GET 
/unique/includes/siteWide.css HTTP/1.1 200 15402
62.114.208.233 - - [07/Feb/2006:03:52:44 -0600] GET 
/unique/images/header_pear.jpg HTTP/1.1 200 11227


I see the entry for robots.txt, but I have no idea where they are going, or 
what they are doing.

I turned on access log like this in the server.xml like so:
Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=localhost_access_log. suffix=.txt
 pattern=common resolveHosts=false/

And that is a snippet of the log from above.

Does anyone know how to get more involved text, or can anyone tell me what the 
robots.txt above is doing?


Thanks,
Scott


Re: webapp under different URLs with different JSP but same java classes

2006-02-10 Thread Wade Chandler
--- Lothar Krenzien [EMAIL PROTECTED] wrote:

 Hi,
 
 I'm not sure whether it is possible or not:
 
 I have a webapp which I want to access under
 different URL's with different JSP's but the same
 java classes. I know that I can define the context
 URL in the context.xml But how to define which jsp's
 to use ?
 
 Example :
 
 Context path=/a docBase=/myapp
 
 /Context
 
 Context path=/b docBase=/myapp 
 
 /Context
 
 In myapp I may have a folder jsp_a and jsp_b.  Path
 'a' should use JSPs from jsp_a and path 'b' should
 JSPs from jsp_b. Of course I can set up two
 different webapps. But the java classes and so the
 the content of the WEB-INF/classes directory will be
 identically for both webapps. I'm using Tomcat 5.5
 under Windows 2003.
 
 Thanks,
 Lothar

__
 Verschicken Sie romantische, coole und witzige
 Bilder per SMS!
 Jetzt bei WEB.DE FreeMail:
 http://f.web.de/?mc=021193
 
Why exactly can't you use /webapp/a /webapp/b and must
use /a and /b?  That would be much simpler.  Same
classes and different JSPs.

Wade

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



Re: Access log to see where robots go.

2006-02-10 Thread Tim Funk
The problem is your home page, not robots.txt. When / is requested - the 
following is served back, notice the javascript redirect: (the full file is 
below)



  function invokeWebApp() {
top.location.href = http://www.theuniquepear.com/unique/index.jsp;;
  }

Search engines do not execute javascript are there are no links on the page 
so search engines have no where to go. (Except someone else's site).


As much as I detest SEO companies, you might find it helpful to search for 
one for some assistance.


html
head
  head
titleThe Unique Pear | Unique Home Decor  Accessories/title
meta name=description content=The Unique Pear is an 
online b outique specializing in home decor  
accessories. Products include clocks, candl es, wall 
decor, garden, lighting, bath and more.
meta name=keywords content=The Unique Pear Timework clocks, lamps, 
lamp  shades, candles, aroma, aroma difuser, wall decor, 
wall scounces, wrought iron,  pitchers, bookstands, jaqua 
bath products, candleholders

meta name=description content=
meta name=keywords content=
 /head
body bgcolor=#FF

script language = javascript
  //!--
  function invokeWebApp() {
top.location.href = http://www.theuniquepear.com/unique/index.jsp;;
  }
  invokeWebApp();
  // --
/script

hello
/body
/html

-Tim

Scott Purcell wrote:

I have had trouble getting search engines to see my site. I built it with 
struts, and use some tags from the index.html page to get business logic, to 
finally get to my page. The url is http://www.theuniquepear.com

Anyway, upon talking to some co-workers, they suggested I watch my access log, 
so I can see what files they are indexing. I thought I had the access log 
turned on for the site, and see when someone hits my web site, but as far as 
the searchbots go, I only see this in my logs daily.

$ cat  localhost_access_log.2006-02-07.txt | less
67.15.16.30 - - [07/Feb/2006:03:44:55 -0600] GET /robots.txt HTTP/1.0 404 985
67.15.16.30 - - [07/Feb/2006:03:46:21 -0600] GET / HTTP/1.0 200 844
67.15.16.30 - - [07/Feb/2006:03:51:57 -0600] GET /robots.txt HTTP/1.0 404 985
62.114.208.233 - - [07/Feb/2006:03:52:42 -0600] GET 
/unique/welcome.do?OVRAW=home%20decorating%20ideasOVKEY=home
62.114.208.233 - - [07/Feb/2006:03:52:44 -0600] GET /unique/includes/siteWide.css 
HTTP/1.1 200 15402
62.114.208.233 - - [07/Feb/2006:03:52:44 -0600] GET /unique/images/header_pear.jpg 
HTTP/1.1 200 11227


I see the entry for robots.txt, but I have no idea where they are going, or 
what they are doing.

I turned on access log like this in the server.xml like so:
Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=localhost_access_log. suffix=.txt
 pattern=common resolveHosts=false/

And that is a snippet of the log from above.



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



Re: From Java to C#, ASP.NET [Off Topic]

2006-02-10 Thread V D


Thank you for sharing your experience.  I am surprised to see no one 
reply your message.  For the thread, here's what I have to say.  The 
original poster shared some frank and sincere experience and feeling.  
However, it lacks sorely the technicality of the comparison.


For example, no links to the video demo the guy was talking about, no 
point about each feature, and why he thinks one is better than another.  
I didn't look at the video, but scan through the tutorial, I was 
surprised to find out that Netbeans and Creator would do most of the 
things it shows.  What tool did the author used?  What kind of app did 
he develop (I know he mention J2EE, but that's a large spectrum).


From playing with the previous version of the studio (2003 or 
something), looking at many of the tutorial today on the site, I don't 
see much advantage. For the language itself.  I have seen discussion 
about delegate, and other stuff and I don't see a clear advantage.  I am 
surprise the thread head thinks it is.  I programed in Swing and the 
event model seems to fine for me.  It's never was a problem for me.  The 
IDE needs better GUI development support, but not the language.  Layout 
also is a bit problem, but 10 times better than the old VB days.  With 
Netbeans 5 and Matisse, I think the thread head should check it out and 
compares a bit better.


I see a lot of praise from the thread head, but I just don't see the how 
that is true.


George Sexton wrote:

I've been developing with Microsoft Products for 15 year. At one point I was
an MVP, and I was on the original MVP program steering committee. Here's
what I can tell you about MS product development. A lot of my comments are
going to be about FoxPro, which I used most, but the same issues exist with
other tools.

Corporate strategy drives tool development, not developer desires. Several
years ago, with FoxPro, OLE forms was the big thing. So, the bulk of the
development effort went into creating the ability to run FoxPro forms as OLE
controls in a browser. None of the developers wanted it. They wanted an
improved report writer and menu system. No one that I know ever used this
capability.

There are ALWAYS a lot of unexpected problems when using MS tools. Take for
example, memo fields and ADO. You basically only get one shot to read a memo
field from an ADO result set. Once you access it, its consumed and you can't
get the value again. There's also a problem in ADO if you don't make sure
that memo fields are the last elements in a select list. In FoxPro, if you
assign a string longer than 200 characters to a caption, the caption isn't
displayed at all. Its not truncated, and it doesn't throw an error, it just
doesn't display. You're just sitting there, scratching your head wonder why
the heck it isn't working. If you create a view in FoxPro that is select *
from table, and someone modifies the base table, you'll get an error
opening the remote view, and you have to drop the view and re-add it. Don't
even get me started on Windows Installer technology.

Bugs RARELY get fixed. There's a problem in the Excel ODBC driver. If the
first 6-8 rows are digits, the driver assumes the column type is numeric and
will throw an error if later rows have characters. There's supposed to be an
override feature to set the type, but it doesn't work either. Another
example is THEAD/TBODY tags. There is a KB article for IE 4.0 (Q190278)
saying that failure to support THEAD/TBODY tags for printing was a defect
(although the revised KB article now says this is by design). This was never
fixed in IE 4.0, 5.0, 5.5, or 6.0. I don't have IE 7.0 so I can't say if
they have added support for it or not. There's a real corporate culture that
says customers are fools, and these quirks don't have to be repaired. The
problem is that a small bug in a development tool can easily consume a day
of developer time.

Tool strategy churn is another problem. Their development tool focus changes
every two years. Did I mention tool strategy exists to sell servers (SQL,
Windows, etc)? Right when developers become comfortable with a technology,
the focus is changed. The end result is that companies end up with a series
of core applications, each developed using a different toolset, methodology,
or mindset. Developers never become proficient at a tool, and consequently
quality of applications just sucks.

These things make it almost impossible to accurately fix bid a project. You
just never know when some obscure bug reported 5 years ago is going to come
out and bite you. 


From my experience, I've had perhaps 1/10th of the development tool problems
with Java compared to using MS tools. I can accurately cost estimate Java
projects, and do them profitably. I know that I probably am not going to run
into any bugs (where a large project will hit at least 5-10 in the MS
world).

So, good luck. I hope you're really happy. But, I think that when you have
the experience and the career span that I do you'll start 

A question about log rotation

2006-02-10 Thread Randy Paries
Hello,

I have a tomcat apache-tomcat-5.5.15 running on RH9

i am having this wierd problem. I think it is log rotation

I start getting exceptions in the catalina.out that it can not access
a log file .

permission denied

I have tomcat running as user  apache.

But when the logs are rotated, they are create by root,

what rotates the logs and where do change the settings.

Thanks
Randy

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