Re: Jboss to parse exsisting tomcat server.xml ...

2003-07-07 Thread Venkat
I dont see any file called tomcat41-service.xml under jboss home directory.
should I create one if I dont find that file. I see this file
jboss-service.xml under
JBoss home directory.
--

Paul Gregoire [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 -- this is my 4th attempt to answer a question please disregard if youve
 seen it already :) --

 To make changes to tomcat under jboss you must edit tomcat41-service.xml
not
 server.xml; changes made to the server.xml will not be used by tomcat.
 The Tomcat bundled with JBoss uses the tomcat41-service.xml file, located
in
 your /deploy directory of the selected configuration set. This file should
 be nearly identical to a regular server.xml.

 Might i suggest that you purchase the JBoss 3.0 Handbook for further
 details, this book kicks ASS!

http://www.amazon.com/exec/obidos/tg/detail/-/1861008120/qid=1045677540/sr=8
-1/ref=sr_8_1/104-9967696-6863144?v=glances=booksn=507846

 And no i dont get any kickbacks.. :(

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 27, 2003 12:55 PM
 To: [EMAIL PROTECTED]
 Subject: Jboss to parse exsisting tomcat server.xml ...


 Hi,
 Can any one tell me ( or give me ) an example of how to make jboss
 parse my existing tomcat server.xml file ???
 jboss 3.0.X and tomcat 4.1.18. ( windows / linux )



 Thanks  Regards
 Guru :-)



 -
 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: Need your help!!!

2003-07-07 Thread Holger Klawitter

 I installed Tomcat 4.1.24 on Solaris 2.6. After Tomcat is started up,
 servlets could be accessed, but all JSPs could not be accessed and below
 Exception is reported. Could you please give me some suggestion about how
 to solve it. Thanks a lot.

You don't have the full jdk installed, do you?

You need the full j2se, the jre is not enough as the jsp 
files need to be compiled into bytecode.

Mit freundlichem Gruß / With kind regards
Holger Klawitter
--
lists at klawitter dot de


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



Re: JNI with Servlets

2003-07-07 Thread Sergio Juan
Hi.

Have you linked the library (the best place to do it is at the init(), as
you can only link it once)? The code is something like this

  public void init () {
try {
  //System.loadLibrary(myLib.so); -- If you include it in
LD_LIBRARY_PATH
  System.load(/usr/local/lib/myLib.so);  // -- you don't need to
set LD_LIBRARY_PATH (I think)
 } catch (Exception ex) {
  System.out.println( Can not load dinamic library. Reason: \n);
  ex.printStackTrace();
}
}

If you already do it please show your code so the group can help better.

Regards?

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, July 05, 2003 2:25 AM
Subject: JNI with Servlets


 I'm attempting to use a shared library on Linux thats called from a
servlet that I have deployed on Tomcat 4.1.18.  Everytime I try to use the
servlet it throws an exception with an unsatisfiedlinkerror.  I've added
LD_LIBRARY_PATH=/usr/lib to my catalina.sh  startup.sh, modified the
classpath to include the .so, and copied the .so to server/lib, common/lib
and nothing seems to be working.

 Might anyone have some hints or simple examples of how to get this
working?

 Thanks,

 Jay


 -
 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: Webapp 501 error when using HTTPS.

2003-07-07 Thread Rai Ou
I am sorry that I coudln't post the error message at my first mail,
now I post all of the error message I get from the broswer:

HTTP Status 501 - 
Method ctl=ssearch=200306Submit2=+%B8%A1+%BA%F7+GET is not 
defined in RFC 2068 and is not supported by the Servlet API 

I get it when the session time out and pushed the form button(POST method).

Waitting for the response.

Rai


  -Original Message-
 From: Rai Ou  
 Sent: Monday, July 07, 2003 2:58 PM
 To:   '[EMAIL PROTECTED]'
 Subject:  Webapp 501 error when using HTTPS. 
 
 I am using Apache1.3.27 + 
 webapp1.2(jakarta-tomcat-connectors-4.1.24-src)
  + Tomcat4.1.24, and I am using the servlet filter for 
 redirect to Login page when
 the session is time out.
 
 The system is running well but, after I built a SSL in my 
 apache, I get the 501 error
 when the sessin is time out and click the form button (it use 
 the POST method).
 the error message is like this:  501 GET Method not implemented
 
 but, when I click any hyper-link(it use the GET method), the 
 filter can run well and 
 redirect to the Login page.
 
 Any ideas for this problem ?
 (Note: my OS is Sparc-Solaris8 and I download the apr-0.9.3 
 and compiled the
 jakarta-tomcat-connectors-4.1.24-src source for geting the 
 web_app.so and warp.jar).
 
 


mod_jk2 uri questions

2003-07-07 Thread Catalin Constantin
hi there

i have in my workers2.properties
the following uri mappings:

[uri:www.mysite.com/*.jsp]
info=Map .jsp files

[uri:www.mysite.com/do/*]
info=Map do actions

[uri:www.mysite.com/manager/*]
info=Map the manager webapp

why does tomcat handle the requests to
http://www.mysite.com/images ?
(eg: i see the tomcat directory listing, instead of the Apache 2.0.46
forbidden error) 

thank you !


Catalin Constantin
Bounce Software
www.bounce-software.com


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



CGI scripts

2003-07-07 Thread harsh

Hi can i run cgi scripts too through apache
if yes then how and where to place them ?

--
harsh
http://www.cse.iitb.ac.in/~harsh
--



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



AW: mod_jk2 uri questions

2003-07-07 Thread Thomas Weller
Hi Catalin,

you may turn listings off in your web.xml file

!--   listings   Should directory listings be produced if there --
!--  is no welcome file in this directory?  [true]  --

which is

init-param
param-namelistings/param-name
param-valuefalse/param-value
/init-param


Thomas


-Ursprungliche Nachricht-
Von: Catalin Constantin [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 7. Juli 2003 10:01
An: [EMAIL PROTECTED]
Betreff: mod_jk2 uri questions

hi there

i have in my workers2.properties
the following uri mappings:

[uri:www.mysite.com/*.jsp]
info=Map .jsp files

[uri:www.mysite.com/do/*]
info=Map do actions

[uri:www.mysite.com/manager/*]
info=Map the manager webapp

why does tomcat handle the requests to
http://www.mysite.com/images ?
(eg: i see the tomcat directory listing, instead of the Apache 2.0.46
forbidden error) 

thank you !


Catalin Constantin
Bounce Software
www.bounce-software.com


-
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: CGI scripts

2003-07-07 Thread Susan Hoddinott
Hi,

I don't know if this is too simple an answer to your question but it is
similar to what I have been trying to do and I have discovered that they can
be referenced in the all the same ways as a normal http address, e.g.
anchors, etc. (e.g. http://localhost/directory/cgiscriptname.   If you need
something more complicated then look at URLConnection and HttpURLConnection.
You effectively simulate a servlet GET request by opening an input stream on
the connection but you may need to use URLEncode for the parameters.

Regards,
Susan Hoddinott
http://www.hexworx.com

- Original Message -
From: harsh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 07, 2003 4:02 PM
Subject: CGI scripts



 Hi can i run cgi scripts too through apache
 if yes then how and where to place them ?

 --

 harsh
 http://www.cse.iitb.ac.in/~harsh
 --




 -
 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: mod_jk2 uri questions

2003-07-07 Thread Catalin Constantin
thanx for the tip !

but isn't there any way to set mod_jk2 to process just some 
urls and not all of them ?
eg: not the whole webapp ?

i really want the images to be processed by apache ONLY !

thanx again !


Catalin Constantin
Bounce Software
www.bounce-software.com
 

 
 -Original Message-
 From: Thomas Weller [mailto:[EMAIL PROTECTED] 
 Sent: Monday, July 07, 2003 11:11 AM
 To: 'Tomcat Users List'
 
 Hi Catalin,
 
 you may turn listings off in your web.xml file
 
 !--   listings   Should directory listings be produced 
 if there --
 !--  is no welcome file in this directory?  
 [true]  --
 
 which is
 
 init-param
   param-namelistings/param-name
   param-valuefalse/param-value
 /init-param
 
 
 Thomas
 
 
 -Ursprungliche Nachricht-
 Von: Catalin Constantin [mailto:[EMAIL PROTECTED] 
 Gesendet: Montag, 7. Juli 2003 10:01
 An: [EMAIL PROTECTED]
 Betreff: mod_jk2 uri questions
 
 hi there
 
 i have in my workers2.properties
 the following uri mappings:
 
 [uri:www.mysite.com/*.jsp]
 info=Map .jsp files
 
 [uri:www.mysite.com/do/*]
 info=Map do actions
 
 [uri:www.mysite.com/manager/*]
 info=Map the manager webapp
 
 why does tomcat handle the requests to
 http://www.mysite.com/images ?
 (eg: i see the tomcat directory listing, instead of the Apache 2.0.46
 forbidden error) 
 
 thank you !
 
 
 Catalin Constantin
 Bounce Software
 www.bounce-software.com
 
 
 -
 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: I can no longer start TC from W2k Start Menu

2003-07-07 Thread Maurice Coyle - Sun Microsystems Ireland
are you sure tomcat isn't already running?  i had that very same problem after 
rebooting and it turned out i hadn't realised that tomcat had been installed as 
a service and started when the machine did.  check the task manager for 
tomcat.exe.

course, if you want System.out.println() statements redirected to a terminal, 
you'll have to stop and then restart tomcat.

maurice


 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
 List-Unsubscribe: mailto:[EMAIL PROTECTED]
 List-Subscribe: mailto:[EMAIL PROTECTED]
 List-Help: mailto:[EMAIL PROTECTED]
 List-Post: mailto:[EMAIL PROTECTED]
 List-Id: Tomcat Users List tomcat-user.jakarta.apache.org
 Delivered-To: mailing list [EMAIL PROTECTED]
 From: [EMAIL PROTECTED]
 Date: Sat, 5 Jul 2003 14:26:33 EDT
 Subject: I can no longer start TC from W2k Start Menu
 To: [EMAIL PROTECTED]
 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
 
 
 Hi All,
 
 I can no longer start TC from W2k from the 
 
 Start  Program  Apache Tomcat 4.1  Start Tomcat 
 
 using the parameters E:\j2sdk1.4.1_01\bin\java.exe -jar -Duser.dir=E:\Tomcat 
 4.1 E:\Tomcat 4.1\bin\bootstrap.jar start
 
 
 Tomcat start by opening a commandline window as usual, but this window 
 vanishes after displaying the ff. on the screen :
 
 04.07.2003 17:12:57 org.apache.commons.modeler.Registry loadRegistry
 INFO: Loading registry information
 04.07.2003 17:12:57 org.apache.commons.modeler.Registry getRegistry
 INFO: Creating new Registry instance
 04.07.2003 17:12:58 org.apache.commons.modeler.Registry getServer
 INFO: Creating MBeanServer
 04.07.2003 17:12:59 org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on port 8080
 04.07.2003 17:12:59 org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on port 80
 Starting service Tomcat-Standalone
 Apache Tomcat/4.1.18-LE-jdk14
 
 I am using struts too.
 
 What could be the root course. I have looked into the logs folder, but I can 
 find any log info. to show me what is missing.
 
 Tomcat starts with no problem when I do start it in my ide.
 
 Any help will be much appreciated.
 
 Thanks.
 
 Bob.


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



Re: I can no longer start TC from W2k Start Menu

2003-07-07 Thread ThePrahs
No, TC is not(or won't be) already running when I try to start it from W2k 
Start Menu. 

Might have to do with a package which either  not there or conflicting the 
TC's start-up process. What is missing or conflicting is what I can not figure 
out - the logs don't say say anything either.

Anyway suggestions will be much appreciated.

Thanks.

p.s:
Like I mentioned earlier, I am able to start and stop TC within my IDE


RE: Effect of J2SE upgrade on Tomcat

2003-07-07 Thread Govinda Rao, Ragavendiran
Bill,

Thank you very much. Is there any place where I can find these compatibility
/ support details for Tomcat versions?

Thanks in advance,
Raga

-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]
Sent: 06 July 2003 08:12
To: [EMAIL PROTECTED]
Subject: Re: Effect of J2SE upgrade on Tomcat


AFAIK, there is no reason that you *have* to upgrade your TC version.  A
possible exception would be if you are using the stand-alone SSL Connector,
but I'm guessing that it would still work.

Of course, TC 3.2.x is no longer officially supported, so you can't expect
that any bugs that you report against it (e.g. you actually find problems
with the upgraded JVM) will be fixed.  The currently supported version for
the Servlet-2.2 Spec is TC 3.3.1(a).

Govinda Rao, Ragavendiran [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 We intend to migrate our Java application to J2SE 1.4.2 from 1.3.1. I
would
 like to know whether I need to upgrade Tomcat 3.2.4 also at the same time.
 Any pointers would be very much appreciated

 Thanks,
 Raga




-
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: Forking high loaded servlet

2003-07-07 Thread Rodrigo Ruiz
Depending on the kind of request you are trying to accelerate, you could
also do some caching in the response.
Depending on what the servlet is intended to do, the strategies to apply can
vary a lot.
A description of the servlet execution would allow people to help you better
:)

Regards,
Rodrigo Ruiz

- Original Message -
From: Peter Lin [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, July 04, 2003 5:31 PM
Subject: Re: Forking high loaded servlet



 I haven't followed this thread too closely, but what kind of concurrent
requests you looking at?  i ask this because the number of concurrent
threads in most cases is the result of hardware limitations.

 if you want to double the concurrent requests, get more cpu and multiple
gigabit ethernet cards.  trying to do it with servlet tricks (aside from
server.xml configuration) won't do much in the long run.

 peter


 Sergio Juan [EMAIL PROTECTED] wrote:

 - Original Message -
 From: Diego Castillo
 To:
 Sent: Friday, July 04, 2003 3:05 PM
 Subject: Forking high loaded servlet


  Hi all,
 
  I have a servlet that receives a heavy load. I would like to process
  multiple requests in parallel in order to increase throughput.
 
  Tomcat creates one single instance of the servlet. This is right
  according to servlet specification paragraph 3.2, but it does not suit
  my needs.
 
  I have tried extending SingleThreadModel and Tomcat does create multiple
  instances, but I get the exact same throughput.

 Tomcat automatically creates one thread per request. If your servlet does
 not have synchronization issues, it will be the same creating an object
per
 thread that using the same object (in fact a little heavier in the first
 case, because of the overhead of creating objects).
 
  I have also tried launching a new thread for handling HttpServletRequest
   HttpServletResponse, but as soon as the servlet exits service(), the
  response output stream gets closed by Tomcat.
 
 Same here.. you are launching a Thread inside of an already independent
 Thread.

  Is there any spec compliant strategy to increase the number of requests
  per second that a servlet can handle?
 
 In configuration you can set the processors number, but I think it is not
 the issue. If the problem is that you got a bottleneck in your host (CPU
or
 disk at nearly 100%) you should consider load balancing between multiple
 servers in different machines or using common programming performance
tricks
 (but I think you have already done that).

 Regards.

  Thanks in advance,
 
 
  Diego
 
 
  -
  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]



 -
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!


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



problem running Javamail and Ant

2003-07-07 Thread kitty winslet

Hi..  I just installed Tomcat web server in my W2K professional, but I have very 
little knowledge about Java and Tomcat.  May I know whether Javamail is already 
included in Tomcat? How do I send mail thru tomcat?  I download the Javamail-1.3.1 at 
http://java.sun.com/products/javamail/index.html, the it only provide the installation 
instruction for solaris, 95/NT.  Anyone know it can be installed in Win2000 pro?? I 
followed the way (for win95) to install javamail in my W2k pro PC, but  when I want to 
run the following demo, it gives me the following error.  How do I solve the problem?

C:\javamail\javamail-1.3.1\demojava msgshow -
Exception in thread main java.lang.NoClassDefFoundError: msgshow

Besides, I also downloaded ant, but when I type the command, it gives me the 
following error.  Why?

C:\ant
Buildfile: build.xml does not exist!
Build failed
C:\


 

 




-
Yahoo! Mobile
- Check  compose your email via SMS on your Telstra or Vodafone mobile.

Re: problem running Javamail and Ant

2003-07-07 Thread Bjorn A
See inline comments
On Mon, 7 Jul 2003 19:56:25 +1000 (EST), kitty winslet 
[EMAIL PROTECTED] wrote:
Hi..  I just installed Tomcat web server in my W2K professional, but I 
have very little knowledge about Java and Tomcat.  May I know whether 
Javamail is already included in Tomcat? How do I send mail thru tomcat?  
I download the Javamail-1.3.1 at 
http://java.sun.com/products/javamail/index.html, the it only provide the 
installation instruction for solaris, 95/NT.  Anyone know it can be 
installed in Win2000 pro?? I followed the way (for win95) to install 
javamail in my W2k pro PC, but  when I want to run the following demo, it 
gives me the following error.  How do I solve the problem?

C:\javamail\javamail-1.3.1\demojava msgshow -
Exception in thread main java.lang.NoClassDefFoundError: msgshow
it seems you havent compiled the application, or the compile failed...

Besides, I also downloaded ant, but when I type the command, it gives 
me the following error.  Why?
C:\ant
Buildfile: build.xml does not exist!
Build failed
C:\
I'm not a ant guru, but ...
Ant is a build tool. afaik it does not do much on its own.
Say you develop a killer webapplication, and you'd wanna create a 
distribution version of that app. this process often includes many 
individual tasks. You'd have to compile your servlets, see to it that all 
the required libraries are in place, copy jsps, create a war file and other 
things... With ant you can do this automatically. But you have to describe 
what ant should copy where etc., and this is done in an xml file called 
build.xml

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/introduction.html
and subpages for further information...
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


log rotation clarification

2003-07-07 Thread Euan Guttridge
Tomcat automatically rotates localhost_log_x and localhost_access_log_x, but
not catalina.out. From searching the archives you need to use a cron to
rotate catalina. 

1 - Is this correct
2 - Where is the rotation for localhost_x configured?
3 - Will this change in TC5?


Thanks,
Euan



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



Re: log rotation clarification

2003-07-07 Thread Tim Funk
This is correct.
The config for localhost_x is in its logging element.
For example:
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log. suffix=.txt
timestamp=true/
For all configurable properties, see the javadocs for 
org.apache.catalina.logger.FileLogger

For catalina.out - it still doesn't rotate and that is not changing. But it 
*may* change if if one of the committers do change and it isn't -1'd.

-Tim

Euan Guttridge wrote:
Tomcat automatically rotates localhost_log_x and localhost_access_log_x, but
not catalina.out. From searching the archives you need to use a cron to
rotate catalina. 

1 - Is this correct
2 - Where is the rotation for localhost_x configured?
3 - Will this change in TC5?
Thanks,
Euan


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


RE: log rotation clarification

2003-07-07 Thread Dave Naden
Tim, looking up javadoc for the logger, I see a property (info) telling us about that 
logger.  How do I access that property from my jsp (or can I)?  What's the name of the 
logger object?
thanks,
Dave Naden

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 07, 2003 6:56 AM
To: Tomcat Users List
Subject: Re: log rotation clarification


This is correct.
The config for localhost_x is in its logging element.

For example:
 Logger className=org.apache.catalina.logger.FileLogger
  directory=logs  prefix=localhost_log. suffix=.txt
 timestamp=true/

For all configurable properties, see the javadocs for 
org.apache.catalina.logger.FileLogger

For catalina.out - it still doesn't rotate and that is not changing. But it 
*may* change if if one of the committers do change and it isn't -1'd.

-Tim

Euan Guttridge wrote:
 Tomcat automatically rotates localhost_log_x and 
 localhost_access_log_x, but not catalina.out. From searching the 
 archives you need to use a cron to rotate catalina.
 
 1 - Is this correct
 2 - Where is the rotation for localhost_x configured?
 3 - Will this change in TC5?
 
 
 Thanks,
 Euan
 


-
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: log rotation clarification

2003-07-07 Thread Tim Funk
You can't access a FileLogger from a jsp. Unless your webapp is privledged. 
(which is usually not a good thing to do)

info() is pretty much an unused property - but it is helpful for admin 
interfaces to describe the implementation.

-Tim

Dave Naden wrote:
Tim, looking up javadoc for the logger, I see a property (info) telling us about that 
logger.  How do I access that property from my jsp (or can I)?  What's the name of the 
logger object?
thanks,
Dave Naden
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 07, 2003 6:56 AM
To: Tomcat Users List
Subject: Re: log rotation clarification

This is correct.
The config for localhost_x is in its logging element.
For example:
 Logger className=org.apache.catalina.logger.FileLogger
  directory=logs  prefix=localhost_log. suffix=.txt
 timestamp=true/
For all configurable properties, see the javadocs for 
org.apache.catalina.logger.FileLogger

For catalina.out - it still doesn't rotate and that is not changing. But it 
*may* change if if one of the committers do change and it isn't -1'd.

-Tim

Euan Guttridge wrote:

Tomcat automatically rotates localhost_log_x and 
localhost_access_log_x, but not catalina.out. From searching the 
archives you need to use a cron to rotate catalina.

1 - Is this correct
2 - Where is the rotation for localhost_x configured?
3 - Will this change in TC5?
Thanks,
Euan


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


How many concurrent session in tomcat 4.1.24

2003-07-07 Thread pawan
Title: Nature



Hello 
Everyone,

I was just 
wonderingthat How many concurrent request / session can be efficiently 
handled by Tomcat 4.1.24 ?? and where it is configured???


Thanks  Regards,
Pawan Kumar Shrivastava
Apar Infotech, Bombay

Tel: 91-22-56939710/11/12/13




Someody Help Me out!!!!

2003-07-07 Thread sharath chandra

Hello There,

I am having three problem on the whole with tomcat as
a standalone server.

My operating system is Windows-XP Home Edition with
good memory and hard disk.

I have installed JDK1.3 and i have been using it for
the last 10 months.and the path is appropriately set.I
can run javac or java or jar from any directory.


I downloaded at least three to four different versions
of tomcat server but i am not able to run any JSP's
not even the one in the testing page.


FIRST PROBLEM:

When i install jakarta-tomcat-3.2.4 i am able to start
the server but nothing works.
 I am able to run servlet(my own) from it but neither
the example JSP's nor the servlets run and i browser
returns me an error page with an exception in it and
error number 500.

 The exception is:

Error: 500
Location: /examples/jsp/dates/date.jsp
Internal Servlet Error:

java.lang.NoSuchMethodError
at
org.apache.tomcat.context.ExceptionHandler.doService(DefaultCMSetter.java:289)
at
org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.handleError(ContextManager.java:1177)
at
org.apache.tomcat.core.Handler.service(Handler.java:312)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)


p.s: This date.jsp is the example jsp came with the
tomcat.
No matter whichever jsp i run i get the same error
page.



SECOND PROBLEM :

 When i installed jakarta-tomcat-3.3.2-dev,the scene
is the same nothing worlks but the error shown and
thrown is differnt this time.

 The exception is:

Error: 500
Location: /examples/jsp/dates/date.jsp
Internal Servlet Error:

org.apache.jasper.compiler.ParseException: Cannot read
file: \jsp\dates\date.jsp
at
org.apache.jasper.compiler.JspReader.pushFile(JspReader.java:242)
at
org.apache.jasper.compiler.JspReader.pushFile(JspReader.java:165)
at
org.apache.jasper.compiler.JspReader.(JspReader.java:283)
at
org.apache.jasper.compiler.JspReader.createJspReader(JspReader.java:289)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:159)
at
org.apache.tomcat.facade.JasperLiaison.jsp2java(JspInterceptor.java:790)
at
org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:731)
at
org.apache.tomcat.facade.JspInterceptor.preInitCheck(JspInterceptor.java:518)
at
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:449)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:484)


THIRD PROBLEM:
 This one is with jakarta-tomcat-4.0.6 and
jakarta-tomcat-4.1.18
In this not even the server starts that is i can t
even get the test page run!
Whenver i run the start.bat,the server tries to run
but then i throws some exception and then the DOS
window closes on its own and i cant see the exception
as well.



So i am not able to run any of the tomcat server.
 I guess that i must be doing something wrong as no
one worked.
Isn't JDK1.3 sufficient.
I have made many applications and applet programs in
JDK1.3 so does tomcat needs some other JVM

with regards
sharath




Send free SMS using the Yahoo! Messenger. Go to http://in.mobile.yahoo.com/new/pc/

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



Re: IIS Redirector - Not Refreshing

2003-07-07 Thread John Turner
You are saying that stopping Tomcat and stopping IIS, without rebooting 
Windows, has no effect?

John

On Fri, 4 Jul 2003 10:45:02 +0100, [EMAIL PROTECTED] wrote:

Hi,

I'm using IIS redirector with Tomcat 4.1.24 and everything works fine. 
However,
when I modify the uriworkermap.properties file, the modifications are 
not
recognized unless I reboot Windoz! Am I missing something?

Thanks,

- Yagiz



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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Someody Help Me out!!!!

2003-07-07 Thread Anthony Cunningham

 THIRD PROBLEM:
  This one is with jakarta-tomcat-4.0.6 and
 jakarta-tomcat-4.1.18
 In this not even the server starts that is i can t
 even get the test page run!
 Whenver i run the start.bat,the server tries to run
 but then i throws some exception and then the DOS
 window closes on its own and i cant see the exception
 as well.


I've never used Tomcat 3x but in Tomcat 4 to see the error that happened try opening a 
command prompt and
changing to the tomcat/bin directory.  Then type :
catalina run

if the error appears and its something like :
Catalina.start: LifecycleException:  null.open:  java.net.BindException: Address in 
use: JVM_Bind
LifecycleException:  null.open:  java.net.BindException: Address in use: JVM_Bind
at 
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1116)
at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:454)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:552)
at org.apache.catalina.startup.Catalina.start(Catalina.java:775)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.net.BindException: Address in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:408)
at java.net.ServerSocket.init(ServerSocket.java:173)

then one of the other tomcats or another program is using the same port as Tomcat 4.

Please try this and you may see the error

Anthony


 So i am not able to run any of the tomcat server.
  I guess that i must be doing something wrong as no
 one worked.
 Isn't JDK1.3 sufficient.
 I have made many applications and applet programs in
 JDK1.3 so does tomcat needs some other JVM

 with regards
 sharath

 
 Send free SMS using the Yahoo! Messenger. Go to http://in.mobile.yahoo.com/new/pc/

 -
 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: IIS Redirector - Not Refreshing

2003-07-07 Thread John Roth
After changing uriworkermap.properties, you must stop/start IIS (if the
redirector is configured on the 'master' website) or the specific site
instance (if the redirector is configured on the specific web instance).

This also applies to workers.properties.  Keep in mind that it is
isapi_redirect.dll that reads these files.

Hope this helps.

-- John


-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 07, 2003 8:23 AM
To: Tomcat Users List
Subject: Re: IIS Redirector - Not Refreshing



You are saying that stopping Tomcat and stopping IIS, without rebooting 
Windows, has no effect?

John

On Fri, 4 Jul 2003 10:45:02 +0100, [EMAIL PROTECTED] wrote:

 Hi,

 I'm using IIS redirector with Tomcat 4.1.24 and everything works fine.
 However,
 when I modify the uriworkermap.properties file, the modifications
are 
 not
 recognized unless I reboot Windoz! Am I missing something?

 Thanks,

 - Yagiz




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





-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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



What did I miss setting? Log4j?

2003-07-07 Thread Jim Lynch
log4j:ERROR Could not read configuration file
[null/WEB-INF/classes/log4j.properties].
java.io.FileNotFoundException: null/WEB-INF/classes/log4j.properties (No
such file or directory)

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



RE: IIS Redirector - Not Refreshing

2003-07-07 Thread YErkan

Guys,

Thanks for your replies...
Unfortunately, as John Turner earlier asked, restarting Tomcat and/or IIS
doesn't seem to be the solution. If I modify the uriworkermap.properties, the
changes are not effective until the next reboot. Logging off the user didn't
help. Removing the ISAPI filter and redeclaring it didn't work either. I don't
know which process loads the ISAPI filter DLLs however it looks like a system
level process to me.
Any ideas?

Regards,

 - Yagiz




|-+
| |   John Roth  |
| |   [EMAIL PROTECTED]|
| |   ine.com |
| ||
| |   07/07/2003 01:25 |
| |   PM   |
| |   Please respond to|
| |   Tomcat Users|
| |   List|
| ||
|-+
  
--|
  |
  |
  |   To:   'Tomcat Users List' [EMAIL PROTECTED]  
 |
  |   cc:  
  |
  |   Subject:  RE: IIS Redirector - Not Refreshing
  |
  
--|




After changing uriworkermap.properties, you must stop/start IIS (if the
redirector is configured on the 'master' website) or the specific site
instance (if the redirector is configured on the specific web instance).

This also applies to workers.properties.  Keep in mind that it is
isapi_redirect.dll that reads these files.

Hope this helps.

-- John


-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Monday, July 07, 2003 8:23 AM
To: Tomcat Users List
Subject: Re: IIS Redirector - Not Refreshing



You are saying that stopping Tomcat and stopping IIS, without rebooting
Windows, has no effect?

John

On Fri, 4 Jul 2003 10:45:02 +0100, [EMAIL PROTECTED] wrote:

 Hi,

 I'm using IIS redirector with Tomcat 4.1.24 and everything works fine.
 However,
 when I modify the uriworkermap.properties file, the modifications
are
 not
 recognized unless I reboot Windoz! Am I missing something?

 Thanks,

 - Yagiz




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





--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

-
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 : Forking high loaded servlet

2003-07-07 Thread Diego Castillo
Hi Rodrigo,

My objective is developing an HTTP proxy that receives a request,
applies some business logic on it (analysis + modifications), and
forwards the result to another host. When the final host responds to the
modified request, the response is forwarded to the original client:

  ++ Request 1 +---+ Request 2 +--+
  | Client | --- | Proxy | --- | Host |
  ++  Reply 1  +---+  Reply 2  +--+

The proxy itself does not spend a long time analyzing and forwarding the
request, but the final host may do. The proxy needs to continue
forwarding requests while waiting for the final host to respond.

I am evaluating the feasibility of the proxy as a servlet that uses
Commons HttpClient for forwarding the requests. If performance tests are
not satisfactory, I will consider developing a CGI or even an Apache
module.

Hope this helps understand my requirement for a multithreaded servlet.

Regards,


Diego

-Message d'origine-
De : Rodrigo Ruiz [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 7 juillet 2003 11:53
À : Tomcat Users List
Objet : Re: Forking high loaded servlet

Depending on the kind of request you are trying to accelerate, you could
also do some caching in the response.
Depending on what the servlet is intended to do, the strategies to apply
can
vary a lot.
A description of the servlet execution would allow people to help you
better
:)

Regards,
Rodrigo Ruiz

- Original Message -
From: Peter Lin [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, July 04, 2003 5:31 PM
Subject: Re: Forking high loaded servlet



 I haven't followed this thread too closely, but what kind of
concurrent
requests you looking at?  i ask this because the number of concurrent
threads in most cases is the result of hardware limitations.

 if you want to double the concurrent requests, get more cpu and
multiple
gigabit ethernet cards.  trying to do it with servlet tricks (aside from
server.xml configuration) won't do much in the long run.

 peter


 Sergio Juan [EMAIL PROTECTED] wrote:

 - Original Message -
 From: Diego Castillo
 To:
 Sent: Friday, July 04, 2003 3:05 PM
 Subject: Forking high loaded servlet


  Hi all,
 
  I have a servlet that receives a heavy load. I would like to process
  multiple requests in parallel in order to increase throughput.
 
  Tomcat creates one single instance of the servlet. This is right
  according to servlet specification paragraph 3.2, but it does not
suit
  my needs.
 
  I have tried extending SingleThreadModel and Tomcat does create
multiple
  instances, but I get the exact same throughput.

 Tomcat automatically creates one thread per request. If your servlet
does
 not have synchronization issues, it will be the same creating an
object
per
 thread that using the same object (in fact a little heavier in the
first
 case, because of the overhead of creating objects).
 
  I have also tried launching a new thread for handling
HttpServletRequest
   HttpServletResponse, but as soon as the servlet exits service(),
the
  response output stream gets closed by Tomcat.
 
 Same here.. you are launching a Thread inside of an already
independent
 Thread.

  Is there any spec compliant strategy to increase the number of
requests
  per second that a servlet can handle?
 
 In configuration you can set the processors number, but I think it is
not
 the issue. If the problem is that you got a bottleneck in your host
(CPU
or
 disk at nearly 100%) you should consider load balancing between
multiple
 servers in different machines or using common programming performance
tricks
 (but I think you have already done that).

 Regards.

  Thanks in advance,
 
 
  Diego
 
 
 
-
  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]



 -
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!


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



Help!!! How many concurrent user request handled by tomcat???

2003-07-07 Thread pawan
Title: Nature





Hello 
Everyone,

I was just 
wonderingthat How many concurrent request / session can be efficiently 
handled by Tomcat 4.1.24 ?? and where it is configured???


Thanks  Regards,
Pawan Kumar 
Shrivastava


Double decoding of URL

2003-07-07 Thread Benjamin Butler-Cole
I am having a problem with Apache/mod_jk/Ajp13Connector/Tomcat.

If I make a request to a servlet with '%' in the path, the URL appears to be
being decoded twice.

I have a servlet mapping of escape - escape.jsp.  That JSP contains the
following:

  %= request.getPathInfo() %
  %= request.getRequestURL() %

A request to http://localhost/escape/a%25sdf returns

  /a f
  http://sekhmet.datcon.co.uk/escape/a%sdf

And http://sekhmet/escape/a%21sdf gives

  /a!sdf
  http://sekhmet.datcon.co.uk/escape/a!sdf

Note that getRequestURL() returns the URL *without* decoding it, while
getPathInfo() does decode.  So it looks like the URL is already decoded
before it reaches Tomcat (by Apache or the connector).

I would expect the values of getPathInfo() to be '/a%sdf' and '/a!sdf', and
the values of getRequestURL to contain '%25' and '%21'.

Does anyone know what's going on?  The relevant bits of my configuration
files are below.

Thanks
Ben

-- -- --

httpd.conf

  LoadModule jk_module libexec/mod_jk.so
  JkWorkersFile /opt/websrv/tomcat/conf/workers.properties
  JkLogFile logs/mod_jk.log
  JkLogLevel info
  JkMount /escape/* ajp13


workers.properties

  worker.list=ajp13
  worker.ajp13.type=ajp13
  worker.tomcat_home=/opt/websrv/tomcat
  worker.java_home=/opt/j2sdk1.4.1
  ps=/
  worker.ajp13.port=8009
  worker.ajp13.host=localhost


server.xml

  Connector className=org.Apache.tomcat4.Ajp13Connector 
 port=8009 minProcessors=5 maxProcessors=1000
  acceptCount=10 debug=0/


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



Running Tomcat as a service

2003-07-07 Thread nrapagnani
I am running Apache 4.1 along with IIS on a windows 2000 machine.

I chose Run as an NT service during the Tomcat install.

I've configured the 2 web servers to work together.

The jsp pages come up fine when I choose the Start Tomcat icon in the
start folder.  Problem is, when Tomcat is running as a service I get 1 of 2
pages.
The first page is The servlet container is temporary unavailable or being
upgraded written on a blank page.  Other times I get a 500 error pointing
to a line in my jsp page that does not exist.  I disabled the service an
then re-enabled it and things worked fine for a while.  Then it went back to
the same problem.  I do not know much about NT services.  Any help would be
appreciated.


Nicholas Rapagnani
Phone: (484) 762-3105 

Confidentiality Notice:  This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information.  Any unauthorized review, use, disclosure or
distribution is prohibited.  If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.


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



RE: Running Tomcat as a service

2003-07-07 Thread nrapagnani
Let me add that I'm running Tomcat 4.1 not Apache 4.1.  Also the 500 error
is a nullPointerException error.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, July 07, 2003 9.04 AM
To: [EMAIL PROTECTED]
Subject: Running Tomcat as a service


I am running Apache 4.1 along with IIS on a windows 2000 machine.

I chose Run as an NT service during the Tomcat install.

I've configured the 2 web servers to work together.

The jsp pages come up fine when I choose the Start Tomcat icon in the
start folder.  Problem is, when Tomcat is running as a service I get 1 of 2
pages.
The first page is The servlet container is temporary unavailable or being
upgraded written on a blank page.  Other times I get a 500 error pointing
to a line in my jsp page that does not exist.  I disabled the service an
then re-enabled it and things worked fine for a while.  Then it went back to
the same problem.  I do not know much about NT services.  Any help would be
appreciated.


Nicholas Rapagnani
Phone: (484) 762-3105 

Confidentiality Notice:  This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information.  Any unauthorized review, use, disclosure or
distribution is prohibited.  If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.


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

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



RE: How many concurrent session in tomcat 4.1.24

2003-07-07 Thread Angus Mezick
As many as your hardware allows.  Requests are mainly CPU limited and
sessions are mainly memory/disk space (If you are using a persistent
manager that swaps sessions out to disk/DB) limited.  This also depends
on how complex/big your servlets/jsps/sessions are.  You can host a LOT
more hello world servlets that store the person's name in the session
than you can get twenty items from 3 DB's servlets that save 8k of
data in the session.  The answer is install tomcat on your hardware,
with your code and test it.  If ANY vendor even tries to give you
numbers for this they are blowing smoke up your butt.
--Angus

-Original Message-
From: pawan [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 07, 2003 8:01 AM
To: [EMAIL PROTECTED]
Subject: How many concurrent session in tomcat 4.1.24


Hello Everyone,
 
I was just wondering that How many concurrent request / session
can be efficiently handled by Tomcat 4.1.24 ?? and where it is
configured???
 
 
Thanks  Regards,
Pawan Kumar Shrivastava
Apar Infotech, Bombay
 
Tel: 91-22-56939710/11/12/13







RE: What did I miss setting? Log4j?

2003-07-07 Thread Phillip Qin
I had similar problem when I didn't grant read/write permission to
log4j.properties in Catalina.policy. Did you start tomcat -security?

-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED] 
Sent: July 7, 2003 8:36 AM
To: tomcat
Subject: What did I miss setting? Log4j?

log4j:ERROR Could not read configuration file
[null/WEB-INF/classes/log4j.properties].
java.io.FileNotFoundException: null/WEB-INF/classes/log4j.properties (No
such file or directory)

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


Re: Running Tomcat as a service

2003-07-07 Thread Tom Cole
I don't know if this will help, but I have the same setup and it's working
just fine.

I did go into the World Wide Web Publishing Services in Win2000 and add the
Apache Tomcat 4.1 service as a dependency. What this does is to ensure that
Tomcat starts before IIS does.

If you need details, let me know, but it appears to work for me.

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 07, 2003 9:07 AM
Subject: RE: Running Tomcat as a service


 Let me add that I'm running Tomcat 4.1 not Apache 4.1.  Also the 500 error
 is a nullPointerException error.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 07, 2003 9.04 AM
 To: [EMAIL PROTECTED]
 Subject: Running Tomcat as a service


 I am running Apache 4.1 along with IIS on a windows 2000 machine.

 I chose Run as an NT service during the Tomcat install.

 I've configured the 2 web servers to work together.

 The jsp pages come up fine when I choose the Start Tomcat icon in the
 start folder.  Problem is, when Tomcat is running as a service I get 1 of
2
 pages.
 The first page is The servlet container is temporary unavailable or being
 upgraded written on a blank page.  Other times I get a 500 error pointing
 to a line in my jsp page that does not exist.  I disabled the service an
 then re-enabled it and things worked fine for a while.  Then it went back
to
 the same problem.  I do not know much about NT services.  Any help would
be
 appreciated.


 Nicholas Rapagnani
 Phone: (484) 762-3105

 Confidentiality Notice:  This e-mail message, including any attachments,
is
 for the sole use of the intended recipient(s) and may contain confidential
 and privileged information.  Any unauthorized review, use, disclosure or
 distribution is prohibited.  If you are not the intended recipient, please
 contact the sender by reply e-mail and destroy all copies of the original
 message.


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



Help for a newbie - Unable to load class present

2003-07-07 Thread Marcio Merlone
Hello all,

I am really sorry to ask this here, since it looks like a very dumb
question and probably could be found somewhere on the net, but I am
completely lost. I am a sys admin and trying to set up jamm
(jamm.sourceforge.net) to admin a postfix server with ldap-stored users.
The java components documentation is not much clear on how to install
its pieces, so I probably has lost something.

I am running a Jakarta-tomcat like this:

root@/usr/local /usr/local/jakarta-tomcat-4.1.24/bin/startup.sh  
Using CATALINA_BASE:   /usr/local/jakarta-tomcat-4.1.24
Using CATALINA_HOME:   /usr/local/jakarta-tomcat-4.1.24
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.24/temp
Using JAVA_HOME:   /usr/local/j2sdk1.4.2
root@/usr/local 

The main tomcat page opens fine, hacked conf/tomcat-users.xml so admin
and manager pages are all OK. I downloaded jamm and untared on
/usr/local/jakarta-tomcat-4.1.24/webapps/ROOT/jamm-0.9.4

When I access the url

http://server:8080/jamm-0.9.4/index.jsp I get the error:

type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
org.apache.jasper.JasperException: /jamm-0.9.4/index.jsp(0,5)
/jamm-0.9.4/WEB-INF/common/all_definitions.jsp(6,0) Unable to load class
present at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHan
dler.java:94)   at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.jav
a:428)  at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.jav
a:126)  at
org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:3
07) at
org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:340)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:378)
(...)

Jamm requires:
* Java JDK, version 1.3.x or 1.4.x
  http://java.sun.com/
* XDoclet, version 1.1
  http://xdoclet.sourceforge.net/
* Log4j, version 1.1.3
  http://jakarta.apache.org/log4j
* Cryptix, version 3.2.0
  http://www.cryptix.org/
* Servlet, vesion 2.3
  http://java.sun.com/products/servlet/
* Checkstyle, version 2.2
  http://checkstyle.sourceforge.net/
* Struts, version 1.1b3
  http://jakarta.apache.org/struts/index.html

I am probably missing something on those requirements, but I have no
idea on how to even start to track this down. Questions:

1. In general, what is the way to install some component on a servlet
server? Simply copy all *.jar files to (in my case)
/usr/local/jakarta-tomcat-4.1.24/common/lib ?

2 What are the relevant env variables to set? Actually I have:
CATALINA_HOME=/usr/local/jakarta-tomcat-4.1.24/
ANT_HOME=/usr/local/jakarta-ant-1.5
JAVA_HOME=/usr/local/j2sdk1.4.2
CLASSPATH=/usr/local/j2sdk1.4.2/lib/log4j-1.2.8.jar:/usr/local/junit3.8
.1/junit.jar:/usr/local/jakarta-tomcat-4.1.24/common/lib/servlet.jar

This machine is a Linux slackware 9 with kernel 2.4.21. Any help, point
to any doc, url is appreciated.

Regards,


-- 
Marcio Merlone

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



Win 2000 Folder Perms

2003-07-07 Thread Nick Stuart
Easy question for you all. 
What should the tomcat folder permissions be set to on a windows 2000
server? Right now I have Everyone as the user and I know this obviously
isn't good but if I remove it then tomcat cant access the folder when
only the administrator has rights :-\
This would be simpler if I was able to but it on a *nix box, but I cant,
so thanks for the info!

-Nick


Re: Win 2000 Folder Perms

2003-07-07 Thread John Turner
Give full access to Administrator and whatever user account Tomcat is 
using.

John

On 07 Jul 2003 09:47:26 -0400, Nick Stuart [EMAIL PROTECTED] 
wrote:

Easy question for you all. What should the tomcat folder permissions be 
set to on a windows 2000
server? Right now I have Everyone as the user and I know this obviously
isn't good but if I remove it then tomcat cant access the folder when
only the administrator has rights :-\
This would be simpler if I was able to but it on a *nix box, but I cant,
so thanks for the info!

-Nick



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


variable out may not have been initialised

2003-07-07 Thread Maurice Coyle - Sun Microsystems Ireland
hi,
if i have a complex jsp with a lot of information on it, i get a whole ream of 
errors such as that in the subject of this message, telling me that variables in 
the jsp that quite clearly have been (when you look at the source) initialised 
haven't.  i really don't get it, is there anyone who knows a way around this?

thanks,
maurice


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



reloading jk2

2003-07-07 Thread Nick Stuart
Is there a way to reload a workers.propetries file in jk2 with out
having to stop and start iis?
I noticed in /jkstatus that it does re-read the file but it does
create/assign any workers for a newly added context?
After I restarted the whole IIS Admin process it re-read the file fine
and the forwards work correctly, but would like to avoid that if its
possible.
Thanks again!

-Nick


update Re: variable out may not have been initialised

2003-07-07 Thread Maurice Coyle - Sun Microsystems Ireland
i forgot to say, i found a thread in a forum online about this, the guys there 
seemed to think it was a page size problem, possibly related to how many tags 
there are on a page.  just inc ase this sheds any more light on it.



 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
 List-Unsubscribe: mailto:[EMAIL PROTECTED]
 List-Subscribe: mailto:[EMAIL PROTECTED]
 List-Help: mailto:[EMAIL PROTECTED]
 List-Post: mailto:[EMAIL PROTECTED]
 List-Id: Tomcat Users List tomcat-user.jakarta.apache.org
 Delivered-To: mailing list [EMAIL PROTECTED]
 Date: Mon, 7 Jul 2003 15:04:22 +0100 (BST)
 From: Maurice Coyle - Sun Microsystems Ireland [EMAIL PROTECTED]
 Subject: variable out may not have been initialised
 To: [EMAIL PROTECTED]
 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
 
 hi,
 if i have a complex jsp with a lot of information on it, i get a whole ream of 
 errors such as that in the subject of this message, telling me that variables 
in 
 the jsp that quite clearly have been (when you look at the source) initialised 
 haven't.  i really don't get it, is there anyone who knows a way around this?
 
 thanks,
 maurice
 
 
 -
 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: variable out may not have been initialised

2003-07-07 Thread YErkan

Hi Maurice,

You probably don't need to hear that right now but Complex JSPs bring
development/maintenance problems. You'd better use some kind of MVC
framework...

Does the error disappear when you remove some part of the page?

 - Yagiz




|-+
| |   Maurice Coyle -  |
| |   Sun Microsystems |
| |   Ireland  |
| |   [EMAIL PROTECTED]|
| ||
| |   07/07/2003 03:18 |
| |   PM   |
| |   Please respond to|
| |   Tomcat Users|
| |   List|
| ||
|-+
  
--|
  |
  |
  |   To:   [EMAIL PROTECTED], [EMAIL PROTECTED]   
   |
  |   cc:  
  |
  |   Subject:  update Re: variable out may not have been initialised  
  |
  
--|




i forgot to say, i found a thread in a forum online about this, the guys there
seemed to think it was a page size problem, possibly related to how many tags
there are on a page.  just inc ase this sheds any more light on it.



 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
 List-Unsubscribe: mailto:[EMAIL PROTECTED]
 List-Subscribe: mailto:[EMAIL PROTECTED]
 List-Help: mailto:[EMAIL PROTECTED]
 List-Post: mailto:[EMAIL PROTECTED]
 List-Id: Tomcat Users List tomcat-user.jakarta.apache.org
 Delivered-To: mailing list [EMAIL PROTECTED]
 Date: Mon, 7 Jul 2003 15:04:22 +0100 (BST)
 From: Maurice Coyle - Sun Microsystems Ireland [EMAIL PROTECTED]
 Subject: variable out may not have been initialised
 To: [EMAIL PROTECTED]
 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N

 hi,
 if i have a complex jsp with a lot of information on it, i get a whole ream of

 errors such as that in the subject of this message, telling me that variables
in
 the jsp that quite clearly have been (when you look at the source) initialised

 haven't.  i really don't get it, is there anyone who knows a way around this?

 thanks,
 maurice


 -
 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: Win 2000 Folder Perms

2003-07-07 Thread Nick Stuart
Great, thanks for the info!

-Nick

On Mon, 2003-07-07 at 10:03, John Turner wrote:

 Give full access to Administrator and whatever user account Tomcat is 
 using.
 
 John
 
 On 07 Jul 2003 09:47:26 -0400, Nick Stuart [EMAIL PROTECTED] 
 wrote:
 
  Easy question for you all. What should the tomcat folder permissions be 
  set to on a windows 2000
  server? Right now I have Everyone as the user and I know this obviously
  isn't good but if I remove it then tomcat cant access the folder when
  only the administrator has rights :-\
  This would be simpler if I was able to but it on a *nix box, but I cant,
  so thanks for the info!
 
  -Nick
 
 
 


Re: mod_jk2 uri questions

2003-07-07 Thread Eric J. Pinnell
Hi,

What is your httpd.conf entry?  Your workers2.properties files looks ok.
You include things you want Tomcat to do rather than exclude things.  You
are not including /images so apache should handle those requests.

-e

On Mon, 7 Jul 2003, Catalin Constantin wrote:

 hi there

 i have in my workers2.properties
 the following uri mappings:

 [uri:www.mysite.com/*.jsp]
 info=Map .jsp files

 [uri:www.mysite.com/do/*]
 info=Map do actions

 [uri:www.mysite.com/manager/*]
 info=Map the manager webapp

 why does tomcat handle the requests to
 http://www.mysite.com/images ?
 (eg: i see the tomcat directory listing, instead of the Apache 2.0.46
 forbidden error)

 thank you !


 Catalin Constantin
 Bounce Software
 www.bounce-software.com


 -
 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: jspc ant task and merge web.xml

2003-07-07 Thread Johannes Fiala
Hi Arnaud,

You might be interested in this.
http://www.fwd.at/tomcat/buildmanagement-using-ant-howto.html

(look at the build.xml which is available as a link inside the html file, 
you find the merge-descriptors task there).

Johannes




Elisabeth Rotbach [EMAIL PROTECTED] 
03.07.2003 19:10
Please respond to
Tomcat Users List [EMAIL PROTECTED]


To
[EMAIL PROTECTED]
cc

Subject
Re: jspc ant task and merge web.xml







To merge several xml, I use : xmltask from http://www.oopsconsultancy.com.

EJL
Toulouse


From: BOULAY Arnaud [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: jspc ant task and merge web.xml
Date: Thu, 03 Jul 2003 16:33:30 +0200

Hi !
I want to do an automatic merge of newweb.xml file generated with 
jspc 
task with an existing  web.xml.
Thanks in advance.
Regards, Arnaud


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


_
MSN Messenger 6 http://g.msn.fr/FR1001/866  : dialoguez en son et en image 

avec vos amis.


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




Number of Processes

2003-07-07 Thread Shannon Scott
Hello,
I have noticed that tomcat uses only one process on my new redhat 8.0 machine.
( ps -elf | grep tomcat )
There is an interesting explanation here.

http://marc.theaimsgroup.com/?l=tomcat-userm=103762836306068w=2

So I wrote a short test_process.jsp page ( below ) that I thought would force another 
process, but I still only show one when I try to open the page with multiple browsers. 
 
Does anyone have a way to force another process to begin?

Could something in my configuration not allow other processes?
I have set the minProcessors=5 in my server.xml Connector.

Linux RedHat 8.0
Apache 2.0.43 ( mod_jk )
Tomcat 4.1.24

Any help is greatly appreciated.
Thank You.
Shannon

test_process.jsp:
%@ page session=false % 
% 
Thread.sleep(1);
out.print( Done... ); 
% 



RE: mod_jk2 uri questions

2003-07-07 Thread Catalin Constantin
in my httpd.conf i have
LoadModule jk2_module modules/mod_jk2.so

VirtualHost some.ip:80
DocumentRoot /nethosting/mysite.com/jsp/ROOT
ServerName www.mysite.com
ServerAdmin [EMAIL PROTECTED]
ServerPath /nethosting/mysite.com/jsp/ROOTs
CustomLog /var/log/httpd/mysite.com/access.log combined
ErrorLog /var/log/httpd/mysite.com/error.log
/VirtualHost

so basically nothing that has to do with jk2 in my httpd.conf file !

below is a full listing of my workers2.properties file

--- begin 
[logger]
level=DEBUG

# Define the comunication channel
#[channel.jni:jni]
#info=The jni channel, used if tomcat is started inprocess

[shm]
file=/var/log/httpd/shm.file
size=1048576

# Define the parameters for the Java Virtual Machine
#[vm:]
#info=Parameters used to load a JVM in the server process
#OPT=-Djava.class.path=${TOMCAT_HOME}/bin/tomcat-jni.jar;${TOMCAT_HOME}/serv
er/lib/catalina.jar
#OPT=-Dtomcat.home=${TOMCAT_HOME}
#OPT=-Dcatalina.home=${TOMCAT_HOME}
#OPT=-Xmx128M

# JNI worker startup handler
#[worker.jni:onStartup]
#info=Command to be executed by the VM on startup. This one will start
tomcat.
#class=org/apache/jk/apr/TomcatStarter
#ARG=start
#stdout=/var/log/httpd/stdout.log
#stderr=/var/log/httpd/stderr.log

# JNI worker shutdown handler
#[worker.jni:onShutdown]
#info=Command to be executed by the VM on shutdown. This one will stop
tomcat.
#class=org/apache/jk/apr/TomcatStarter
#ARG=stop

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# ksi webapp configuration (virtualhost)
[uri:www.mysite.com/*.jsp]
info=Map .jsp files

[uri:www.mysite.com/do/*]
info=Map do actions

[uri:www.mysite.com/manager/*]
info=Map the manager webapp
--- end   

i am using apache 2.0.46
and tomcat 4.1

thanx again !

Catalin Constantin
Bounce Software
www.bounce-software.com
 

 
 -Original Message-
 From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] 
 Sent: Monday, July 07, 2003 5:27 PM
 To: Tomcat Users List
 
 Hi,
 
 What is your httpd.conf entry?  Your workers2.properties 
 files looks ok.
 You include things you want Tomcat to do rather than exclude 
 things.  You
 are not including /images so apache should handle those requests.
 
 -e
 
 On Mon, 7 Jul 2003, Catalin Constantin wrote:
 
  hi there
 
  i have in my workers2.properties
  the following uri mappings:
 
  [uri:www.mysite.com/*.jsp]
  info=Map .jsp files
 
  [uri:www.mysite.com/do/*]
  info=Map do actions
 
  [uri:www.mysite.com/manager/*]
  info=Map the manager webapp
 
  why does tomcat handle the requests to
  http://www.mysite.com/images ?
  (eg: i see the tomcat directory listing, instead of the 
 Apache 2.0.46
  forbidden error)
 
  thank you !
 
 
  Catalin Constantin
  Bounce Software
  www.bounce-software.com
 
 
  
 -
  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]



ServletContext.getResource()

2003-07-07 Thread Thomas Colin de Verdière
Hello,
about a month ago i saw a thread talking about the getResourceAsStream() 
that do not reloaded resource,
and that if you changed the resource as a config.xml file it doesn't 
care about it is modified.
I didn't try this but i tried the method ServletContext.getResource(..) 
on a property file,
and this file is reloaded sometimes but not always.
Since a property file is for me a resource as a Jsp, and when you change 
Jsp
it is taking the modification into account (i don't know if i could say 
that), i think it is a bug, but in the other it
is deployed in a directory not in a war file, and Servlet specification 
doesn't say that the resource MUST BE RELOADED anytime so ...
Could you light a bit my thought on this?

Thanks,
Thomas




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


RE: mod_jk2 uri questions

2003-07-07 Thread Eric J. Pinnell
I don't know if this will work but try adding

JkSet config.file /path/to/workers2.properties

just under the LoadModule.  That way you know for sure it's reading the
file you want.

-e

On Mon, 7 Jul 2003, Catalin Constantin wrote:

 in my httpd.conf i have
 LoadModule jk2_module modules/mod_jk2.so

 VirtualHost some.ip:80
 DocumentRoot /nethosting/mysite.com/jsp/ROOT
 ServerName www.mysite.com
 ServerAdmin [EMAIL PROTECTED]
 ServerPath /nethosting/mysite.com/jsp/ROOTs
 CustomLog /var/log/httpd/mysite.com/access.log combined
 ErrorLog /var/log/httpd/mysite.com/error.log
 /VirtualHost

 so basically nothing that has to do with jk2 in my httpd.conf file !

 below is a full listing of my workers2.properties file

 --- begin 
 [logger]
 level=DEBUG

 # Define the comunication channel
 #[channel.jni:jni]
 #info=The jni channel, used if tomcat is started inprocess

 [shm]
 file=/var/log/httpd/shm.file
 size=1048576

 # Define the parameters for the Java Virtual Machine
 #[vm:]
 #info=Parameters used to load a JVM in the server process
 #OPT=-Djava.class.path=${TOMCAT_HOME}/bin/tomcat-jni.jar;${TOMCAT_HOME}/serv
 er/lib/catalina.jar
 #OPT=-Dtomcat.home=${TOMCAT_HOME}
 #OPT=-Dcatalina.home=${TOMCAT_HOME}
 #OPT=-Xmx128M

 # JNI worker startup handler
 #[worker.jni:onStartup]
 #info=Command to be executed by the VM on startup. This one will start
 tomcat.
 #class=org/apache/jk/apr/TomcatStarter
 #ARG=start
 #stdout=/var/log/httpd/stdout.log
 #stderr=/var/log/httpd/stderr.log

 # JNI worker shutdown handler
 #[worker.jni:onShutdown]
 #info=Command to be executed by the VM on shutdown. This one will stop
 tomcat.
 #class=org/apache/jk/apr/TomcatStarter
 #ARG=stop

 # Example socket channel, override port and host.
 [channel.socket:localhost:8009]
 port=8009
 host=127.0.0.1

 [ajp13:localhost:8009]
 channel=channel.socket:localhost:8009

 # ksi webapp configuration (virtualhost)
 [uri:www.mysite.com/*.jsp]
 info=Map .jsp files

 [uri:www.mysite.com/do/*]
 info=Map do actions

 [uri:www.mysite.com/manager/*]
 info=Map the manager webapp
 --- end   

 i am using apache 2.0.46
 and tomcat 4.1

 thanx again !

 Catalin Constantin
 Bounce Software
 www.bounce-software.com


 
  -Original Message-
  From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
  Sent: Monday, July 07, 2003 5:27 PM
  To: Tomcat Users List
 
  Hi,
 
  What is your httpd.conf entry?  Your workers2.properties
  files looks ok.
  You include things you want Tomcat to do rather than exclude
  things.  You
  are not including /images so apache should handle those requests.
 
  -e
 
  On Mon, 7 Jul 2003, Catalin Constantin wrote:
 
   hi there
  
   i have in my workers2.properties
   the following uri mappings:
  
   [uri:www.mysite.com/*.jsp]
   info=Map .jsp files
  
   [uri:www.mysite.com/do/*]
   info=Map do actions
  
   [uri:www.mysite.com/manager/*]
   info=Map the manager webapp
  
   why does tomcat handle the requests to
   http://www.mysite.com/images ?
   (eg: i see the tomcat directory listing, instead of the
  Apache 2.0.46
   forbidden error)
  
   thank you !
  
  
   Catalin Constantin
   Bounce Software
   www.bounce-software.com
  
  
  
  -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


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




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



RE: mod_jk2 uri questions

2003-07-07 Thread Catalin Constantin
nope !
it is the same thing !

anyway i am sure that it reads the correct file cause 
if i remove the *.jsp line then the jsp files are printed (source).

so it must be something else !

any clue ?

Catalin Constantin
Bounce Software
www.bounce-software.com
 

 
 -Original Message-
 From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] 
 Sent: Monday, July 07, 2003 5:36 PM
 To: Tomcat Users List
 
 I don't know if this will work but try adding
 
 JkSet config.file /path/to/workers2.properties
 
 just under the LoadModule.  That way you know for sure it's 
 reading the
 file you want.
 
 -e
 
 On Mon, 7 Jul 2003, Catalin Constantin wrote:
 
  in my httpd.conf i have
  LoadModule jk2_module modules/mod_jk2.so
 
  VirtualHost some.ip:80
  DocumentRoot /nethosting/mysite.com/jsp/ROOT
  ServerName www.mysite.com
  ServerAdmin [EMAIL PROTECTED]
  ServerPath /nethosting/mysite.com/jsp/ROOTs
  CustomLog /var/log/httpd/mysite.com/access.log combined
  ErrorLog /var/log/httpd/mysite.com/error.log
  /VirtualHost
 
  so basically nothing that has to do with jk2 in my httpd.conf file !
 
  below is a full listing of my workers2.properties file
 
  --- begin 
  [logger]
  level=DEBUG
 
  # Define the comunication channel
  #[channel.jni:jni]
  #info=The jni channel, used if tomcat is started inprocess
 
  [shm]
  file=/var/log/httpd/shm.file
  size=1048576
 
  # Define the parameters for the Java Virtual Machine
  #[vm:]
  #info=Parameters used to load a JVM in the server process
  
 #OPT=-Djava.class.path=${TOMCAT_HOME}/bin/tomcat-jni.jar;${TOM
 CAT_HOME}/serv
  er/lib/catalina.jar
  #OPT=-Dtomcat.home=${TOMCAT_HOME}
  #OPT=-Dcatalina.home=${TOMCAT_HOME}
  #OPT=-Xmx128M
 
  # JNI worker startup handler
  #[worker.jni:onStartup]
  #info=Command to be executed by the VM on startup. This one 
 will start
  tomcat.
  #class=org/apache/jk/apr/TomcatStarter
  #ARG=start
  #stdout=/var/log/httpd/stdout.log
  #stderr=/var/log/httpd/stderr.log
 
  # JNI worker shutdown handler
  #[worker.jni:onShutdown]
  #info=Command to be executed by the VM on shutdown. This 
 one will stop
  tomcat.
  #class=org/apache/jk/apr/TomcatStarter
  #ARG=stop
 
  # Example socket channel, override port and host.
  [channel.socket:localhost:8009]
  port=8009
  host=127.0.0.1
 
  [ajp13:localhost:8009]
  channel=channel.socket:localhost:8009
 
  # ksi webapp configuration (virtualhost)
  [uri:www.mysite.com/*.jsp]
  info=Map .jsp files
 
  [uri:www.mysite.com/do/*]
  info=Map do actions
 
  [uri:www.mysite.com/manager/*]
  info=Map the manager webapp
  --- end   
 
  i am using apache 2.0.46
  and tomcat 4.1
 
  thanx again !
 
  Catalin Constantin
  Bounce Software
  www.bounce-software.com
 
 
  
   -Original Message-
   From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
   Sent: Monday, July 07, 2003 5:27 PM
   To: Tomcat Users List
  
   Hi,
  
   What is your httpd.conf entry?  Your workers2.properties
   files looks ok.
   You include things you want Tomcat to do rather than exclude
   things.  You
   are not including /images so apache should handle those requests.
  
   -e
  
   On Mon, 7 Jul 2003, Catalin Constantin wrote:
  
hi there
   
i have in my workers2.properties
the following uri mappings:
   
[uri:www.mysite.com/*.jsp]
info=Map .jsp files
   
[uri:www.mysite.com/do/*]
info=Map do actions
   
[uri:www.mysite.com/manager/*]
info=Map the manager webapp
   
why does tomcat handle the requests to
http://www.mysite.com/images ?
(eg: i see the tomcat directory listing, instead of the
   Apache 2.0.46
forbidden error)
   
thank you !
   
   
Catalin Constantin
Bounce Software
www.bounce-software.com
   
   
   
   
 -
To unsubscribe, e-mail: 
 [EMAIL PROTECTED]
For additional commands, e-mail: 
 [EMAIL PROTECTED]
   
   
  
   
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
  
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: Someody Help Me out!!!!

2003-07-07 Thread Ben Souther
Make sure that your JAVA_HOME evironment variable is properly set.

From the command line type:

%JAVA_HOME%\bin\javac

If you get a Program not found error, then it's not set right.
Any time that servlets work but JSPs don't, start by making sure that Tomcat:  
A) Can find the java compiler
B) Has write permissions for the work directory.





On Monday 07 July 2003 08:18 am, sharath chandra wrote:

 Hello There,

 I am having three problem on the whole with tomcat as
 a standalone server.

 My operating system is Windows-XP Home Edition with
 good memory and hard disk.

 I have installed JDK1.3 and i have been using it for
 the last 10 months.and the path is appropriately set.I
 can run javac or java or jar from any directory.


 I downloaded at least three to four different versions
 of tomcat server but i am not able to run any JSP's
 not even the one in the testing page.


 FIRST PROBLEM:

 When i install jakarta-tomcat-3.2.4 i am able to start
 the server but nothing works.
  I am able to run servlet(my own) from it but neither
 the example JSP's nor the servlets run and i browser
 returns me an error page with an exception in it and
 error number 500.

  The exception is:

 Error: 500
 Location: /examples/jsp/dates/date.jsp
 Internal Servlet Error:

 java.lang.NoSuchMethodError
   at
 org.apache.tomcat.context.ExceptionHandler.doService(DefaultCMSetter.java:2
89) at
 org.apache.tomcat.core.Handler.service(Handler.java:287)
   at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
 org.apache.tomcat.core.ContextManager.handleError(ContextManager.java:1177)
   at
 org.apache.tomcat.core.Handler.service(Handler.java:312)
   at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:8
06) at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
   at
 org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Http
ConnectionHandler.java:213) at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
   at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
   at java.lang.Thread.run(Thread.java:484)


 p.s: This date.jsp is the example jsp came with the
 tomcat.
 No matter whichever jsp i run i get the same error
 page.



 SECOND PROBLEM :

  When i installed jakarta-tomcat-3.3.2-dev,the scene
 is the same nothing worlks but the error shown and
 thrown is differnt this time.

  The exception is:

 Error: 500
 Location: /examples/jsp/dates/date.jsp
 Internal Servlet Error:

 org.apache.jasper.compiler.ParseException: Cannot read
 file: \jsp\dates\date.jsp
   at
 org.apache.jasper.compiler.JspReader.pushFile(JspReader.java:242)
   at
 org.apache.jasper.compiler.JspReader.pushFile(JspReader.java:165)
   at
 org.apache.jasper.compiler.JspReader.(JspReader.java:283)
   at
 org.apache.jasper.compiler.JspReader.createJspReader(JspReader.java:289)
   at
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:159)
   at
 org.apache.tomcat.facade.JasperLiaison.jsp2java(JspInterceptor.java:790)
   at
 org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:7
31) at
 org.apache.tomcat.facade.JspInterceptor.preInitCheck(JspInterceptor.java:51
8) at
 org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:449)
   at
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:9
17) at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
   at
 org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10
Interceptor.java:176) at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
   at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja
va:619) at java.lang.Thread.run(Thread.java:484)


 THIRD PROBLEM:
  This one is with jakarta-tomcat-4.0.6 and
 jakarta-tomcat-4.1.18
 In this not even the server starts that is i can t
 even get the test page run!
 Whenver i run the start.bat,the server tries to run
 but then i throws some exception and then the DOS
 window closes on its own and i cant see the exception
 as well.



 So i am not able to run any of the tomcat server.
  I guess that i must be doing something wrong as no
 one worked.
 Isn't JDK1.3 sufficient.
 I have made many applications and applet programs in
 JDK1.3 so does tomcat needs some other JVM

 with regards
 sharath



 
 Send free SMS using the Yahoo! Messenger. Go to
 http://in.mobile.yahoo.com/new/pc/

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

-- 
Ben Souther
F.W. Davison  Company, Inc.



REGISTER NOW FOR THE SCORPEO USER CONFERENCE!
September 18-19, 2003 

RE: mod_jk2 uri questions

2003-07-07 Thread Eric J. Pinnell
Hi,

Try removing the hostname from the URI.  So

[uri:www.mysite.com/*.jsp]

would just be

[uri:/*.jsp]
and
[uri:/do/*]

and so on and so forth.

-e

On Mon, 7 Jul 2003, Catalin Constantin wrote:

 nope !
 it is the same thing !

 anyway i am sure that it reads the correct file cause
 if i remove the *.jsp line then the jsp files are printed (source).

 so it must be something else !

 any clue ?

 Catalin Constantin
 Bounce Software
 www.bounce-software.com


 
  -Original Message-
  From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
  Sent: Monday, July 07, 2003 5:36 PM
  To: Tomcat Users List
 
  I don't know if this will work but try adding
 
  JkSet config.file /path/to/workers2.properties
 
  just under the LoadModule.  That way you know for sure it's
  reading the
  file you want.
 
  -e
 
  On Mon, 7 Jul 2003, Catalin Constantin wrote:
 
   in my httpd.conf i have
   LoadModule jk2_module modules/mod_jk2.so
  
   VirtualHost some.ip:80
   DocumentRoot /nethosting/mysite.com/jsp/ROOT
   ServerName www.mysite.com
   ServerAdmin [EMAIL PROTECTED]
   ServerPath /nethosting/mysite.com/jsp/ROOTs
   CustomLog /var/log/httpd/mysite.com/access.log combined
   ErrorLog /var/log/httpd/mysite.com/error.log
   /VirtualHost
  
   so basically nothing that has to do with jk2 in my httpd.conf file !
  
   below is a full listing of my workers2.properties file
  
   --- begin 
   [logger]
   level=DEBUG
  
   # Define the comunication channel
   #[channel.jni:jni]
   #info=The jni channel, used if tomcat is started inprocess
  
   [shm]
   file=/var/log/httpd/shm.file
   size=1048576
  
   # Define the parameters for the Java Virtual Machine
   #[vm:]
   #info=Parameters used to load a JVM in the server process
  
  #OPT=-Djava.class.path=${TOMCAT_HOME}/bin/tomcat-jni.jar;${TOM
  CAT_HOME}/serv
   er/lib/catalina.jar
   #OPT=-Dtomcat.home=${TOMCAT_HOME}
   #OPT=-Dcatalina.home=${TOMCAT_HOME}
   #OPT=-Xmx128M
  
   # JNI worker startup handler
   #[worker.jni:onStartup]
   #info=Command to be executed by the VM on startup. This one
  will start
   tomcat.
   #class=org/apache/jk/apr/TomcatStarter
   #ARG=start
   #stdout=/var/log/httpd/stdout.log
   #stderr=/var/log/httpd/stderr.log
  
   # JNI worker shutdown handler
   #[worker.jni:onShutdown]
   #info=Command to be executed by the VM on shutdown. This
  one will stop
   tomcat.
   #class=org/apache/jk/apr/TomcatStarter
   #ARG=stop
  
   # Example socket channel, override port and host.
   [channel.socket:localhost:8009]
   port=8009
   host=127.0.0.1
  
   [ajp13:localhost:8009]
   channel=channel.socket:localhost:8009
  
   # ksi webapp configuration (virtualhost)
   [uri:www.mysite.com/*.jsp]
   info=Map .jsp files
  
   [uri:www.mysite.com/do/*]
   info=Map do actions
  
   [uri:www.mysite.com/manager/*]
   info=Map the manager webapp
   --- end   
  
   i am using apache 2.0.46
   and tomcat 4.1
  
   thanx again !
  
   Catalin Constantin
   Bounce Software
   www.bounce-software.com
  
  
   
-Original Message-
From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
Sent: Monday, July 07, 2003 5:27 PM
To: Tomcat Users List
   
Hi,
   
What is your httpd.conf entry?  Your workers2.properties
files looks ok.
You include things you want Tomcat to do rather than exclude
things.  You
are not including /images so apache should handle those requests.
   
-e
   
On Mon, 7 Jul 2003, Catalin Constantin wrote:
   
 hi there

 i have in my workers2.properties
 the following uri mappings:

 [uri:www.mysite.com/*.jsp]
 info=Map .jsp files

 [uri:www.mysite.com/do/*]
 info=Map do actions

 [uri:www.mysite.com/manager/*]
 info=Map the manager webapp

 why does tomcat handle the requests to
 http://www.mysite.com/images ?
 (eg: i see the tomcat directory listing, instead of the
Apache 2.0.46
 forbidden error)

 thank you !


 Catalin Constantin
 Bounce Software
 www.bounce-software.com



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


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


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

RE: mod_jk2 uri questions

2003-07-07 Thread Catalin Constantin
nope !
now when i remove the url (www.mysite.com)
it mapps each /images on all virtualhosts i have to the Tomcat /images thing
!

pretty weird i think !


Catalin Constantin
Bounce Software
www.bounce-software.com
 

 
 -Original Message-
 From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] 
 Sent: Monday, July 07, 2003 5:50 PM
 To: Tomcat Users List
 
 Hi,
 
 Try removing the hostname from the URI.  So
 
 [uri:www.mysite.com/*.jsp]
 
 would just be
 
 [uri:/*.jsp]
 and
 [uri:/do/*]
 
 and so on and so forth.
 
 -e
 
 On Mon, 7 Jul 2003, Catalin Constantin wrote:
 
  nope !
  it is the same thing !
 
  anyway i am sure that it reads the correct file cause
  if i remove the *.jsp line then the jsp files are printed (source).
 
  so it must be something else !
 
  any clue ?
 
  Catalin Constantin
  Bounce Software
  www.bounce-software.com
 
 
  
   -Original Message-
   From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
   Sent: Monday, July 07, 2003 5:36 PM
   To: Tomcat Users List
  
   I don't know if this will work but try adding
  
   JkSet config.file /path/to/workers2.properties
  
   just under the LoadModule.  That way you know for sure it's
   reading the
   file you want.
  
   -e
  
   On Mon, 7 Jul 2003, Catalin Constantin wrote:
  
in my httpd.conf i have
LoadModule jk2_module modules/mod_jk2.so
   
VirtualHost some.ip:80
DocumentRoot /nethosting/mysite.com/jsp/ROOT
ServerName www.mysite.com
ServerAdmin [EMAIL PROTECTED]
ServerPath /nethosting/mysite.com/jsp/ROOTs
CustomLog /var/log/httpd/mysite.com/access.log combined
ErrorLog /var/log/httpd/mysite.com/error.log
/VirtualHost
   
so basically nothing that has to do with jk2 in my 
 httpd.conf file !
   
below is a full listing of my workers2.properties file
   
--- begin 
[logger]
level=DEBUG
   
# Define the comunication channel
#[channel.jni:jni]
#info=The jni channel, used if tomcat is started inprocess
   
[shm]
file=/var/log/httpd/shm.file
size=1048576
   
# Define the parameters for the Java Virtual Machine
#[vm:]
#info=Parameters used to load a JVM in the server process
   
   #OPT=-Djava.class.path=${TOMCAT_HOME}/bin/tomcat-jni.jar;${TOM
   CAT_HOME}/serv
er/lib/catalina.jar
#OPT=-Dtomcat.home=${TOMCAT_HOME}
#OPT=-Dcatalina.home=${TOMCAT_HOME}
#OPT=-Xmx128M
   
# JNI worker startup handler
#[worker.jni:onStartup]
#info=Command to be executed by the VM on startup. This one
   will start
tomcat.
#class=org/apache/jk/apr/TomcatStarter
#ARG=start
#stdout=/var/log/httpd/stdout.log
#stderr=/var/log/httpd/stderr.log
   
# JNI worker shutdown handler
#[worker.jni:onShutdown]
#info=Command to be executed by the VM on shutdown. This
   one will stop
tomcat.
#class=org/apache/jk/apr/TomcatStarter
#ARG=stop
   
# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
   
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
   
# ksi webapp configuration (virtualhost)
[uri:www.mysite.com/*.jsp]
info=Map .jsp files
   
[uri:www.mysite.com/do/*]
info=Map do actions
   
[uri:www.mysite.com/manager/*]
info=Map the manager webapp
--- end   
   
i am using apache 2.0.46
and tomcat 4.1
   
thanx again !
   
Catalin Constantin
Bounce Software
www.bounce-software.com
   
   

 -Original Message-
 From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 07, 2003 5:27 PM
 To: Tomcat Users List

 Hi,

 What is your httpd.conf entry?  Your workers2.properties
 files looks ok.
 You include things you want Tomcat to do rather than exclude
 things.  You
 are not including /images so apache should handle 
 those requests.

 -e

 On Mon, 7 Jul 2003, Catalin Constantin wrote:

  hi there
 
  i have in my workers2.properties
  the following uri mappings:
 
  [uri:www.mysite.com/*.jsp]
  info=Map .jsp files
 
  [uri:www.mysite.com/do/*]
  info=Map do actions
 
  [uri:www.mysite.com/manager/*]
  info=Map the manager webapp
 
  why does tomcat handle the requests to
  http://www.mysite.com/images ?
  (eg: i see the tomcat directory listing, instead of the
 Apache 2.0.46
  forbidden error)
 
  thank you !
 
 
  Catalin Constantin
  Bounce Software
  www.bounce-software.com
 
 
 

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


   
 -
 To unsubscribe, e-mail: 
 [EMAIL 

[TOMCAT4.1] ServletContext.getResource()

2003-07-07 Thread Thomas Colin de Verdière
in case it has not been sent

Hello,
about a month ago i saw a thread talking about the getResourceAsStream()
that do not reloaded resource,
and that if you changed the resource as a config.xml file it doesn't
care about it is modified.
I didn't try this but i tried the method ServletContext.getResource(..)
on a property file,
and this file is reloaded sometimes but not always.
Since a property file is for me a resource as a Jsp, and when you change
Jsp
it is taking the modification into account (i don't know if i could say
that), i think it is a bug, but in the other it
is deployed in a directory not in a war file, and Servlet specification
doesn't say that the resource MUST BE RELOADED anytime so ...
Could you light a bit my thought on this?
Thanks,
Thomas




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


RE: mod_jk2 uri questions

2003-07-07 Thread Eric J. Pinnell
Hmm... well ya got me.  I'm not a pro with Vhosts in tomcat.  I use one
apache and one tomcat per application/site.  JK2 is getting confused on
the URI for some reason.  My systems don't have the hostname in the URI
since it doesn't need to see any differences in a Vhost.

But, like I said I'm not and expert at Vhosts, so that might or might not
make a difference.

-e

On Mon, 7 Jul 2003, Catalin Constantin wrote:

 nope !
 now when i remove the url (www.mysite.com)
 it mapps each /images on all virtualhosts i have to the Tomcat /images thing
 !

 pretty weird i think !


 Catalin Constantin
 Bounce Software
 www.bounce-software.com


 
  -Original Message-
  From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
  Sent: Monday, July 07, 2003 5:50 PM
  To: Tomcat Users List
 
  Hi,
 
  Try removing the hostname from the URI.  So
 
  [uri:www.mysite.com/*.jsp]
 
  would just be
 
  [uri:/*.jsp]
  and
  [uri:/do/*]
 
  and so on and so forth.
 
  -e
 
  On Mon, 7 Jul 2003, Catalin Constantin wrote:
 
   nope !
   it is the same thing !
  
   anyway i am sure that it reads the correct file cause
   if i remove the *.jsp line then the jsp files are printed (source).
  
   so it must be something else !
  
   any clue ?
  
   Catalin Constantin
   Bounce Software
   www.bounce-software.com
  
  
   
-Original Message-
From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
Sent: Monday, July 07, 2003 5:36 PM
To: Tomcat Users List
   
I don't know if this will work but try adding
   
JkSet config.file /path/to/workers2.properties
   
just under the LoadModule.  That way you know for sure it's
reading the
file you want.
   
-e
   
On Mon, 7 Jul 2003, Catalin Constantin wrote:
   
 in my httpd.conf i have
 LoadModule jk2_module modules/mod_jk2.so

 VirtualHost some.ip:80
 DocumentRoot /nethosting/mysite.com/jsp/ROOT
 ServerName www.mysite.com
 ServerAdmin [EMAIL PROTECTED]
 ServerPath /nethosting/mysite.com/jsp/ROOTs
 CustomLog /var/log/httpd/mysite.com/access.log combined
 ErrorLog /var/log/httpd/mysite.com/error.log
 /VirtualHost

 so basically nothing that has to do with jk2 in my
  httpd.conf file !

 below is a full listing of my workers2.properties file

 --- begin 
 [logger]
 level=DEBUG

 # Define the comunication channel
 #[channel.jni:jni]
 #info=The jni channel, used if tomcat is started inprocess

 [shm]
 file=/var/log/httpd/shm.file
 size=1048576

 # Define the parameters for the Java Virtual Machine
 #[vm:]
 #info=Parameters used to load a JVM in the server process

#OPT=-Djava.class.path=${TOMCAT_HOME}/bin/tomcat-jni.jar;${TOM
CAT_HOME}/serv
 er/lib/catalina.jar
 #OPT=-Dtomcat.home=${TOMCAT_HOME}
 #OPT=-Dcatalina.home=${TOMCAT_HOME}
 #OPT=-Xmx128M

 # JNI worker startup handler
 #[worker.jni:onStartup]
 #info=Command to be executed by the VM on startup. This one
will start
 tomcat.
 #class=org/apache/jk/apr/TomcatStarter
 #ARG=start
 #stdout=/var/log/httpd/stdout.log
 #stderr=/var/log/httpd/stderr.log

 # JNI worker shutdown handler
 #[worker.jni:onShutdown]
 #info=Command to be executed by the VM on shutdown. This
one will stop
 tomcat.
 #class=org/apache/jk/apr/TomcatStarter
 #ARG=stop

 # Example socket channel, override port and host.
 [channel.socket:localhost:8009]
 port=8009
 host=127.0.0.1

 [ajp13:localhost:8009]
 channel=channel.socket:localhost:8009

 # ksi webapp configuration (virtualhost)
 [uri:www.mysite.com/*.jsp]
 info=Map .jsp files

 [uri:www.mysite.com/do/*]
 info=Map do actions

 [uri:www.mysite.com/manager/*]
 info=Map the manager webapp
 --- end   

 i am using apache 2.0.46
 and tomcat 4.1

 thanx again !

 Catalin Constantin
 Bounce Software
 www.bounce-software.com


 
  -Original Message-
  From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
  Sent: Monday, July 07, 2003 5:27 PM
  To: Tomcat Users List
 
  Hi,
 
  What is your httpd.conf entry?  Your workers2.properties
  files looks ok.
  You include things you want Tomcat to do rather than exclude
  things.  You
  are not including /images so apache should handle
  those requests.
 
  -e
 
  On Mon, 7 Jul 2003, Catalin Constantin wrote:
 
   hi there
  
   i have in my workers2.properties
   the following uri mappings:
  
   [uri:www.mysite.com/*.jsp]
   info=Map .jsp files
  
   [uri:www.mysite.com/do/*]
   info=Map do actions
  
   [uri:www.mysite.com/manager/*]
   info=Map the manager webapp
  
   why does tomcat handle the requests to
   

RE: mod_jk2 uri questions

2003-07-07 Thread Eric J. Pinnell
Interesting...  http://issues.apache.org/bugzilla/show_bug.cgi?id=14017

Don't know if it will help...

-e

On Mon, 7 Jul 2003, Eric J. Pinnell wrote:

 Hmm... well ya got me.  I'm not a pro with Vhosts in tomcat.  I use one
 apache and one tomcat per application/site.  JK2 is getting confused on
 the URI for some reason.  My systems don't have the hostname in the URI
 since it doesn't need to see any differences in a Vhost.

 But, like I said I'm not and expert at Vhosts, so that might or might not
 make a difference.

 -e

 On Mon, 7 Jul 2003, Catalin Constantin wrote:

  nope !
  now when i remove the url (www.mysite.com)
  it mapps each /images on all virtualhosts i have to the Tomcat /images thing
  !
 
  pretty weird i think !
 
 
  Catalin Constantin
  Bounce Software
  www.bounce-software.com
 
 
  
   -Original Message-
   From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
   Sent: Monday, July 07, 2003 5:50 PM
   To: Tomcat Users List
  
   Hi,
  
   Try removing the hostname from the URI.  So
  
   [uri:www.mysite.com/*.jsp]
  
   would just be
  
   [uri:/*.jsp]
   and
   [uri:/do/*]
  
   and so on and so forth.
  
   -e
  
   On Mon, 7 Jul 2003, Catalin Constantin wrote:
  
nope !
it is the same thing !
   
anyway i am sure that it reads the correct file cause
if i remove the *.jsp line then the jsp files are printed (source).
   
so it must be something else !
   
any clue ?
   
Catalin Constantin
Bounce Software
www.bounce-software.com
   
   

 -Original Message-
 From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 07, 2003 5:36 PM
 To: Tomcat Users List

 I don't know if this will work but try adding

 JkSet config.file /path/to/workers2.properties

 just under the LoadModule.  That way you know for sure it's
 reading the
 file you want.

 -e

 On Mon, 7 Jul 2003, Catalin Constantin wrote:

  in my httpd.conf i have
  LoadModule jk2_module modules/mod_jk2.so
 
  VirtualHost some.ip:80
  DocumentRoot /nethosting/mysite.com/jsp/ROOT
  ServerName www.mysite.com
  ServerAdmin [EMAIL PROTECTED]
  ServerPath /nethosting/mysite.com/jsp/ROOTs
  CustomLog /var/log/httpd/mysite.com/access.log combined
  ErrorLog /var/log/httpd/mysite.com/error.log
  /VirtualHost
 
  so basically nothing that has to do with jk2 in my
   httpd.conf file !
 
  below is a full listing of my workers2.properties file
 
  --- begin 
  [logger]
  level=DEBUG
 
  # Define the comunication channel
  #[channel.jni:jni]
  #info=The jni channel, used if tomcat is started inprocess
 
  [shm]
  file=/var/log/httpd/shm.file
  size=1048576
 
  # Define the parameters for the Java Virtual Machine
  #[vm:]
  #info=Parameters used to load a JVM in the server process
 
 #OPT=-Djava.class.path=${TOMCAT_HOME}/bin/tomcat-jni.jar;${TOM
 CAT_HOME}/serv
  er/lib/catalina.jar
  #OPT=-Dtomcat.home=${TOMCAT_HOME}
  #OPT=-Dcatalina.home=${TOMCAT_HOME}
  #OPT=-Xmx128M
 
  # JNI worker startup handler
  #[worker.jni:onStartup]
  #info=Command to be executed by the VM on startup. This one
 will start
  tomcat.
  #class=org/apache/jk/apr/TomcatStarter
  #ARG=start
  #stdout=/var/log/httpd/stdout.log
  #stderr=/var/log/httpd/stderr.log
 
  # JNI worker shutdown handler
  #[worker.jni:onShutdown]
  #info=Command to be executed by the VM on shutdown. This
 one will stop
  tomcat.
  #class=org/apache/jk/apr/TomcatStarter
  #ARG=stop
 
  # Example socket channel, override port and host.
  [channel.socket:localhost:8009]
  port=8009
  host=127.0.0.1
 
  [ajp13:localhost:8009]
  channel=channel.socket:localhost:8009
 
  # ksi webapp configuration (virtualhost)
  [uri:www.mysite.com/*.jsp]
  info=Map .jsp files
 
  [uri:www.mysite.com/do/*]
  info=Map do actions
 
  [uri:www.mysite.com/manager/*]
  info=Map the manager webapp
  --- end   
 
  i am using apache 2.0.46
  and tomcat 4.1
 
  thanx again !
 
  Catalin Constantin
  Bounce Software
  www.bounce-software.com
 
 
  
   -Original Message-
   From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
   Sent: Monday, July 07, 2003 5:27 PM
   To: Tomcat Users List
  
   Hi,
  
   What is your httpd.conf entry?  Your workers2.properties
   files looks ok.
   You include things you want Tomcat to do rather than exclude
   things.  You
   are not including /images so apache should handle
   those requests.
  
   -e
  
   On Mon, 7 Jul 2003, Catalin Constantin wrote:
  
hi there
   
i have 

Re: What did I miss setting? Log4j?

2003-07-07 Thread Jim Lynch
I think the problem is the path.  Somehow he has lost the path to
WEB-INF...

Phillip Qin wrote:
 
 I had similar problem when I didn't grant read/write permission to
 log4j.properties in Catalina.policy. Did you start tomcat -security?
 
 -Original Message-
 From: Jim Lynch [mailto:[EMAIL PROTECTED]
 Sent: July 7, 2003 8:36 AM
 To: tomcat
 Subject: What did I miss setting? Log4j?
 
 log4j:ERROR Could not read configuration file
 [null/WEB-INF/classes/log4j.properties].
 java.io.FileNotFoundException: null/WEB-INF/classes/log4j.properties (No
 such file or directory)
 
 -
 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]



sharing context information between different contexts

2003-07-07 Thread Pat Pomatto








Hi,



Im running Tomcat 4.1 with IIS. Does anyone know how to share
information among different context in applications. I have images that all my
Tomcat context use. Instead of duplicating these files multiple times within
each context can you access an images directory from all of your context under webapps?
How would this be done? I would like to keep the images within the Tomcat area
if possible. Any suggestion would be greatly appreciated.



Pat Pomatto








Re: Double decoding of URL

2003-07-07 Thread Tim Funk
The current behavior seems OK.

getRequestURL() returns the URL. This method was originally in HttpUtils. It 
acts much like getRequestURI() which in the javadocs explicitly says: The 
web container does not decode this String

getPathInfo() OTOH according the the javadocs says... Returns: a String, 
decoded by the web container

-Tim

Benjamin Butler-Cole wrote:
I am having a problem with Apache/mod_jk/Ajp13Connector/Tomcat.

If I make a request to a servlet with '%' in the path, the URL appears to be
being decoded twice.
I have a servlet mapping of escape - escape.jsp.  That JSP contains the
following:
  %= request.getPathInfo() %
  %= request.getRequestURL() %
A request to http://localhost/escape/a%25sdf returns

  /a f
  http://sekhmet.datcon.co.uk/escape/a%sdf
And http://sekhmet/escape/a%21sdf gives

  /a!sdf
  http://sekhmet.datcon.co.uk/escape/a!sdf
Note that getRequestURL() returns the URL *without* decoding it, while
getPathInfo() does decode.  So it looks like the URL is already decoded
before it reaches Tomcat (by Apache or the connector).
I would expect the values of getPathInfo() to be '/a%sdf' and '/a!sdf', and
the values of getRequestURL to contain '%25' and '%21'.
Does anyone know what's going on?  The relevant bits of my configuration
files are below.
Thanks
Ben


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


Problems integrating Tomcat 4.1.24 IIS

2003-07-07 Thread Tom Cole
Well surprisingly enough I am now having problems with a Tomcat/IIS integration that 
was working fine on Friday.

The jk_iis.log file shows an error 61 trying to connect the port to the Tomcat Process.

Any ideas why this would become a problem?

Tom E. Cole, Jr.
General Manager, Lamatek, Inc.
[EMAIL PROTECTED]
http://www.lamatek.com


Re: Number of Processes

2003-07-07 Thread Tim Funk
The JVM is one process. One process with many threads. minProcessors!=OS 
processes.

minProcessors == number of concurrent workers at any given point in time

-Tim

Shannon Scott wrote:
Hello,
I have noticed that tomcat uses only one process on my new redhat 8.0 machine.
( ps -elf | grep tomcat )
There is an interesting explanation here.
http://marc.theaimsgroup.com/?l=tomcat-userm=103762836306068w=2

So I wrote a short test_process.jsp page ( below ) that I thought would force another process, but I still only show one when I try to open the page with multiple browsers.  
Does anyone have a way to force another process to begin?

Could something in my configuration not allow other processes?
I have set the minProcessors=5 in my server.xml Connector.
Linux RedHat 8.0
Apache 2.0.43 ( mod_jk )
Tomcat 4.1.24
Any help is greatly appreciated.
Thank You.
Shannon
test_process.jsp:
%@ page session=false % 
% 
Thread.sleep(1);
out.print( Done... ); 
% 




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


Deploying web apps - Help

2003-07-07 Thread Kal Govindu
hi all,

I am running multiple tomcat, one for each of the test environments we
have defined in the company.
In the each of the there Catalina_log files I have the following four
lines for each and every request to the web server.

2003-07-07 09:21:06 HostConfig[dev]: Deploying discovered web
applications

2003-07-07 09:21:21 HostConfig[dev]: Deploying discovered web
applications

2003-07-07 09:21:37 HostConfig[dev]: Deploying discovered web
applications

2003-07-07 09:21:52 HostConfig[dev]: Deploying discovered web
applications  

I don't know what web application tomcat is trying to deploy, all of the
web apps running are already deployed. Is does not seem like common
functionality.
Please Help, any information would be appreciated.

Thanks
Kal 


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



Slowness in Tomcat app

2003-07-07 Thread Ben Ricker
I am seeing a strange slowness on our QA tier. For some reason, this
only occurs on this one tier (we have a production setup running, as
well as a development playground).

I have two Apaches talking to two Tomcats running on Solaris. They are
running Tomcat 4.0.5. I can see no reason for the problem. Both Tomcats
are up and running and listening on the correct ports. The only
indication of an issue (which may or may not be related) is the
following error in the mod_jk.log on the Apache side:

[Wed Jul 02 10:23:34 2003]  [jk_ajp_common.c (679)]: ajp_connection_tcp_get_message: 
Error - jk_tcp_socket_recvfull failed
[Wed Jul 02 10:23:34 2003]  [jk_ajp_common.c (1041)]: Error reading reply
[Wed Jul 02 10:23:34 2003]  [jk_ajp_common.c (1178)]: In jk_endpoint_t::service, 
ajp_get_reply failed in send loop 0

What does this error indicate? I am not a developer, so looking at the
source code would get me no where.

Thanks for your time,

Ben Ricker
Wellinx, Inc.


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



how to configure diff web applications under one tomcat

2003-07-07 Thread Shanta B
Hi
  I would like to know how to configure different web
applications(web.xml) under one tomcat


Thanks  Regards
Shanta.B

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



RE: how to configure diff web applications under one tomcat

2003-07-07 Thread Shanta B




Hi
  I would like to know how to configure different web
applications(web.xml) under one tomcat
i dont want use separte class path for each webapplicationi would like
use Tomcat class loader concept.

Thanks  Regards
Shanta.B

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



RE: how to configure diff web applications under one tomcat

2003-07-07 Thread Bodycombe, Andrew
Just create a new context in server.xml

Andy

-Original Message-
From: Shanta B [mailto:[EMAIL PROTECTED] 
Sent: 07 July 2003 17:07
To: Tomcat Users List
Subject: how to configure diff web applications under one tomcat


Hi
  I would like to know how to configure different web
applications(web.xml) under one tomcat


Thanks  Regards
Shanta.B

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



Deploy web app - Help

2003-07-07 Thread Kal Govindu
hi all,

I am running multiple tomcat, one for each of the test environments we
have defined in the company.
In the each of the there Catalina_log files I have the following four
lines for each and every request to the web server.

2003-07-07 09:21:06 HostConfig[dev]: Deploying discovered web
applications

2003-07-07 09:21:21 HostConfig[dev]: Deploying discovered web
applications

2003-07-07 09:21:37 HostConfig[dev]: Deploying discovered web
applications

2003-07-07 09:21:52 HostConfig[dev]: Deploying discovered web
applications  

I don't know what web application tomcat is trying to deploy, all of the
web apps running are already deployed. Is does not seem like common
functionality.
Please Help, any information would be appreciated.

Thanks
Kal 


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



Help Creating new Host

2003-07-07 Thread Oreste Luci
Hi

I'm using Tomcat 4.1.24 and when I create a new host with the 
Administration Tool I have to restart the server for the changes to take 
place. If I don't restart the new host is not available.

Is there a way to create a new Host without restarting the server?

Thanks

Oreste

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


RE: IIS Redirector - Not Refreshing

2003-07-07 Thread Januski, Ken
Does your isapi log indicate that it's reading the changes? It should read
and implement them after you stop and restart first Tomcat then IIS
services.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, July 07, 2003 8:38 AM
To: Tomcat Users List
Subject: RE: IIS Redirector - Not Refreshing



Guys,

Thanks for your replies...
Unfortunately, as John Turner earlier asked, restarting Tomcat and/or IIS
doesn't seem to be the solution. If I modify the uriworkermap.properties,
the
changes are not effective until the next reboot. Logging off the user didn't
help. Removing the ISAPI filter and redeclaring it didn't work either. I
don't
know which process loads the ISAPI filter DLLs however it looks like a
system
level process to me.
Any ideas?

Regards,

 - Yagiz




|-+
| |   John Roth  |
| |   [EMAIL PROTECTED]|
| |   ine.com |
| ||
| |   07/07/2003 01:25 |
| |   PM   |
| |   Please respond to|
| |   Tomcat Users|
| |   List|
| ||
|-+
 
---
---|
  |
|
  |   To:   'Tomcat Users List' [EMAIL PROTECTED]
|
  |   cc:
|
  |   Subject:  RE: IIS Redirector - Not Refreshing
|
 
---
---|




After changing uriworkermap.properties, you must stop/start IIS (if the
redirector is configured on the 'master' website) or the specific site
instance (if the redirector is configured on the specific web instance).

This also applies to workers.properties.  Keep in mind that it is
isapi_redirect.dll that reads these files.

Hope this helps.

-- John


-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Monday, July 07, 2003 8:23 AM
To: Tomcat Users List
Subject: Re: IIS Redirector - Not Refreshing



You are saying that stopping Tomcat and stopping IIS, without rebooting
Windows, has no effect?

John

On Fri, 4 Jul 2003 10:45:02 +0100, [EMAIL PROTECTED] wrote:

 Hi,

 I'm using IIS redirector with Tomcat 4.1.24 and everything works fine.
 However,
 when I modify the uriworkermap.properties file, the modifications
are
 not
 recognized unless I reboot Windoz! Am I missing something?

 Thanks,

 - Yagiz




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





--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

-
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: Double decoding of URL

2003-07-07 Thread Benjamin Butler-Cole
I agree that that is the expected behaviour.  However the URL seems to be
decoded *twice*.

'a%25sdf' - 'a%sdf' - 'a f'

The second decoding is converting '%sd' to ' ', presumably because it's
garbage.

As Tim says, getRequestURL() doesn't decode the string, but I am seeing the
'%25' decoded to '%'.  For a request to 'http://localhost/escape/a%25sdf',
the value of getRequestURL() is 'http://sekhmet.datcon.co.uk/escape/a%sdf'.



-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: 07 July 2003 16:53
To: Tomcat Users List
Subject: Re: Double decoding of URL


The current behavior seems OK.

getRequestURL() returns the URL. This method was originally in HttpUtils. It

acts much like getRequestURI() which in the javadocs explicitly says: The 
web container does not decode this String

getPathInfo() OTOH according the the javadocs says... Returns: a String, 
decoded by the web container

-Tim

Benjamin Butler-Cole wrote:
 I am having a problem with Apache/mod_jk/Ajp13Connector/Tomcat.
 
 If I make a request to a servlet with '%' in the path, the URL appears to
be
 being decoded twice.
 
 I have a servlet mapping of escape - escape.jsp.  That JSP contains the
 following:
 
   %= request.getPathInfo() %
   %= request.getRequestURL() %
 
 A request to http://localhost/escape/a%25sdf returns
 
   /a f
   http://sekhmet.datcon.co.uk/escape/a%sdf
 
 And http://sekhmet/escape/a%21sdf gives
 
   /a!sdf
   http://sekhmet.datcon.co.uk/escape/a!sdf
 
 Note that getRequestURL() returns the URL *without* decoding it, while
 getPathInfo() does decode.  So it looks like the URL is already decoded
 before it reaches Tomcat (by Apache or the connector).
 
 I would expect the values of getPathInfo() to be '/a%sdf' and '/a!sdf',
and
 the values of getRequestURL to contain '%25' and '%21'.
 
 Does anyone know what's going on?  The relevant bits of my configuration
 files are below.
 
 Thanks
 Ben


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



URI Mapping question

2003-07-07 Thread Atreya Basu

I've got a quick question;

In the workers2.properties I am trying to map a URL.  

Does the mapping work like a regular expression?

Can I have something like:

[uri:www.myhost.com/*/hello/*]

will the above work?

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca




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



channel.socket or channel.apr

2003-07-07 Thread James Courtney
Which is preferable in the Tomcat 4.1.24 release (similar to connectors jk2 2.0.2 
release) of mod_jk2?

Thanks!

Jamey


Re: Double decoding of URL

2003-07-07 Thread Tim Funk
I cannot reproduce this (standalone 4.1.24 standalone). Do you get the same 
problem with the standalone connectors? Otherwise, have you played with the 
Jk options http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html

For example: +ForwardURIEscaped +ForwardURICompatUnparsed, or 
+ForwardURICompat ??

I have never used those options but if the are set (or unset) - then they 
might be causing your problem.

-Tim

Benjamin Butler-Cole wrote:
I agree that that is the expected behaviour.  However the URL seems to be
decoded *twice*.
'a%25sdf' - 'a%sdf' - 'a f'

The second decoding is converting '%sd' to ' ', presumably because it's
garbage.
As Tim says, getRequestURL() doesn't decode the string, but I am seeing the
'%25' decoded to '%'.  For a request to 'http://localhost/escape/a%25sdf',
the value of getRequestURL() is 'http://sekhmet.datcon.co.uk/escape/a%sdf'.


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: 07 July 2003 16:53
To: Tomcat Users List
Subject: Re: Double decoding of URL
The current behavior seems OK.

getRequestURL() returns the URL. This method was originally in HttpUtils. It

acts much like getRequestURI() which in the javadocs explicitly says: The 
web container does not decode this String

getPathInfo() OTOH according the the javadocs says... Returns: a String, 
decoded by the web container

-Tim

Benjamin Butler-Cole wrote:

I am having a problem with Apache/mod_jk/Ajp13Connector/Tomcat.

If I make a request to a servlet with '%' in the path, the URL appears to
be

being decoded twice.

I have a servlet mapping of escape - escape.jsp.  That JSP contains the
following:
 %= request.getPathInfo() %
 %= request.getRequestURL() %
A request to http://localhost/escape/a%25sdf returns

 /a f
 http://sekhmet.datcon.co.uk/escape/a%sdf
And http://sekhmet/escape/a%21sdf gives

 /a!sdf
 http://sekhmet.datcon.co.uk/escape/a!sdf
Note that getRequestURL() returns the URL *without* decoding it, while
getPathInfo() does decode.  So it looks like the URL is already decoded
before it reaches Tomcat (by Apache or the connector).
I would expect the values of getPathInfo() to be '/a%sdf' and '/a!sdf',
and

the values of getRequestURL to contain '%25' and '%21'.

Does anyone know what's going on?  The relevant bits of my configuration
files are below.
Thanks
Ben


-
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: URI Mapping question

2003-07-07 Thread Eric J. Pinnell
You could always try it and find out.  I would guess that if it accepts
wildcards at all that that would work.  But I'd try it first.

-e

On Mon, 7 Jul 2003, Atreya Basu wrote:


 I've got a quick question;

 In the workers2.properties I am trying to map a URL.

 Does the mapping work like a regular expression?

 Can I have something like:

 [uri:www.myhost.com/*/hello/*]

 will the above work?

 _
 Atreya Basu
 Developer,
 Greenfield Research Inc.
 e-mail: atreya (at) greenfieldresearch (dot) ca




 -
 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: Number of Processes

2003-07-07 Thread Shannon Scott
Thank You for helping, but I still think I am having a threading problem.
I read here:
http://marc.theaimsgroup.com/?l=tomcat-userm=104378596024043w=2
that On linux, the top command displays every java thread as a separate
line item.

On my Linux Redhat 7.2 machine I get several listed with the top ( and ps )
command, but on my redhat 8.0 machines I only get 1 listed with the top (
and ps ) command.
Does anyone understand this behavior?
Thanks again.
Shannon

- Original Message -
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, July 07, 2003 11:56 AM
Subject: Re: Number of Processes


 The JVM is one process. One process with many threads. minProcessors!=OS
 processes.

 minProcessors == number of concurrent workers at any given point in time

 -Tim

 Shannon Scott wrote:
  Hello,
  I have noticed that tomcat uses only one process on my new redhat 8.0
machine.
  ( ps -elf | grep tomcat )
  There is an interesting explanation here.
 
  http://marc.theaimsgroup.com/?l=tomcat-userm=103762836306068w=2
 
  So I wrote a short test_process.jsp page ( below ) that I thought would
force another process, but I still only show one when I try to open the page
with multiple browsers.
  Does anyone have a way to force another process to begin?
 
  Could something in my configuration not allow other processes?
  I have set the minProcessors=5 in my server.xml Connector.
 
  Linux RedHat 8.0
  Apache 2.0.43 ( mod_jk )
  Tomcat 4.1.24
 
  Any help is greatly appreciated.
  Thank You.
  Shannon
 
  test_process.jsp:
  %@ page session=false %
  %
  Thread.sleep(1);
  out.print( Done... );
  %
 
 


 -
 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: URI Mapping question

2003-07-07 Thread John Turner
AFAIK only one wildcard is accepted.  But, testing it shouldn't be too 
hard.

John

On Mon, 07 Jul 2003 13:58:21 -0300, Atreya Basu 
[EMAIL PROTECTED] wrote:

I've got a quick question;

In the workers2.properties I am trying to map a URL.

Does the mapping work like a regular expression?

Can I have something like:

[uri:www.myhost.com/*/hello/*]

will the above work?

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca


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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tiomcat 4.1.24 HTTP Status 404 - The requested resource (servlet) is not available

2003-07-07 Thread bernd pier
hi,
could it be, that the folder coffemy is not integrate into the server.xml. 
cause when tomcat couldn`t find all the servlets that are in this folder, 
this could be the reason.
hope that will help you a little
bernd

At 20:10 02.07.2003 +0100, you wrote:

I have Tomcat 4.02 working using servlets and JSP and have now installed
Tomcat 4.1.24 as a service.
When I run the web site all is fine until a servlet is called and I get
 The requested resource (/coffeemy/servlet/ControlServlet) is not available
this happens with all the servlets I use.

Any suggestions please.

John

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


---
Eingehende Mail ist zertifiziert virenfrei.
Überprüft durch AVG Antivirus System (http://www.grisoft.com/de).
Version: 6.0.490 / Virendatenbank: 289 - Erstellungsdatum: 16.06.2003


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


Re: Help Creating new Host

2003-07-07 Thread bernd pier
so far as i know no, cause tomcat had to read the config files to make the 
changes.
bernd
At 12:25 07.07.2003 -0400, you wrote:
Hi

I'm using Tomcat 4.1.24 and when I create a new host with the 
Administration Tool I have to restart the server for the changes to take 
place. If I don't restart the new host is not available.

Is there a way to create a new Host without restarting the server?

Thanks

Oreste

-
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: Help Creating new Host

2003-07-07 Thread Oreste Luci
bernd pier wrote:

so far as i know no, cause tomcat had to read the config files to make 
the changes.
bernd

Thanks for your answer. But why with the Administration Tool one can do 
various configurations with the server running except create a new Host?

How do the Tomcat hosting sites do it?

Thanks again

Oreste

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


Re: Number of Processes

2003-07-07 Thread Ben Ricker
As far as I understand it, top and ps changed in Redhat due to the
confusion of processes vs. threads. I am not positive that this is the
case, but you might just look up the CHANGE docs for the package that
supplies Redhat's ps and top (probably two different RPMs).

Ben Ricker
Wellinx.com

On Mon, 2003-07-07 at 12:38, Shannon Scott wrote:
 Thank You for helping, but I still think I am having a threading problem.
 I read here:
 http://marc.theaimsgroup.com/?l=tomcat-userm=104378596024043w=2
 that On linux, the top command displays every java thread as a separate
 line item.
 
 On my Linux Redhat 7.2 machine I get several listed with the top ( and ps )
 command, but on my redhat 8.0 machines I only get 1 listed with the top (
 and ps ) command.
 Does anyone understand this behavior?
 Thanks again.
 Shannon
 
 - Original Message -
 From: Tim Funk [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, July 07, 2003 11:56 AM
 Subject: Re: Number of Processes
 
 
  The JVM is one process. One process with many threads. minProcessors!=OS
  processes.
 
  minProcessors == number of concurrent workers at any given point in time
 
  -Tim
 
  Shannon Scott wrote:
   Hello,
   I have noticed that tomcat uses only one process on my new redhat 8.0
 machine.
   ( ps -elf | grep tomcat )
   There is an interesting explanation here.
  
   http://marc.theaimsgroup.com/?l=tomcat-userm=103762836306068w=2
  
   So I wrote a short test_process.jsp page ( below ) that I thought would
 force another process, but I still only show one when I try to open the page
 with multiple browsers.
   Does anyone have a way to force another process to begin?
  
   Could something in my configuration not allow other processes?
   I have set the minProcessors=5 in my server.xml Connector.
  
   Linux RedHat 8.0
   Apache 2.0.43 ( mod_jk )
   Tomcat 4.1.24
  
   Any help is greatly appreciated.
   Thank You.
   Shannon
  
   test_process.jsp:
   %@ page session=false %
   %
   Thread.sleep(1);
   out.print( Done... );
   %
  
  
 
 
  -
  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: Problem reloading unpacked web app with Tomcat 5.0.3

2003-07-07 Thread Michael Woinoski
I'm now trying to redeploy the app by firest removing it with a remove request
to the tomcat manager app. This works as long as there are no jar files in the
app's WEB-INF/lib directory. The remove request deletes the app's directory from
webapps, and the deploy task recreates the directory. 

However, if the there are jar files in the lib directory, the remove request
does not remove the directory completely from webapps. WEB-INF/lib/*.jar still
remain. If I try to remove the jar files manually, I get a sharing violation
error. 

It seems that a remove request to Tomcat should always delete the directory from
webapps whether or not the app contains jar files. Is this a Tomcat bug? If not,
aside from restarting Tomcat, how I do tell Tomcat to release the app's jar
files?

Thanks,
Mike

Michael Woinoski wrote:
 
 I've refined the problem somewhat. I think I need to supply a Context with
 reloadable set to true. So how do I do that with an expanded app? If I copy a
 context definition (Context reloadable=true... /) to webapps, Tomcat seems
 to ignore it. I seem to remember reading that the context definition could be
 stored in the app's META-INF dir, so I set Tomcat's unpackWARs to true and tried
 the Ant deploy task again, but again the context definition was ignored.
 
 thanks,
 Mike
 
 Michael Woinoski wrote:
 
  I need to deploy a web app as an unpacked directory structure (the app needs to
  be able write a file to its WEB-INF). I also need to automate the deployment and
  reloading using Ant. So far, I've tried a few things:
 
  1. setting unpackWARs in server.xml to true and copying the war file to the
  webapps dir
  2. copying the expanded directory structure directly in webapps
 
  In both cases, the app deployment is successful initially. However, when I make
  changes (update the war file for case 1 or update the app's classes in case 2)
  Tomcat does not update the application (i.e., the class files are not reloaded.)
 
  The Ant reload task gives errors in both cases. I tried to undeploy and deploy
  the app using the Ant undeploy task but the undeploy also gave errors in both
  cases (IncompatibleClassChangeError). However, I can remove the app with the gui
  app manager.
 
  autoDeploy and liveDeploy are both set to true for the Host. Is there something
  else I need to do to notify Tomcat to reload the class files after
  modifications? Or is there another way to deploy the expanded app so it will be
  reloaded automatically?
 
  Thanks,
  Mike
 
  --
 
  Mike Woinoski  Pine Needle Consulting
  mailto:[EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 --
 
 Mike Woinoski  Pine Needle Consulting
 mailto:[EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 

Mike Woinoski  Pine Needle Consulting
mailto:[EMAIL PROTECTED]

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



RE: mod_jk2 uri questions

2003-07-07 Thread Catalin Constantin
i've tryed with the latest jk2 connector
from: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/release/v1.1M1/ (like 
[EMAIL PROTECTED] suggested)
but the behaviour is the same.

one thing i've noticed is that
after i set my tomcat webapp to log the access 
there is no request to any .gif / .jpg file 

so what i think is that mod_jk2 handles by default directories (folers)
but the content if not mapped is served through apache.

so like Thomas Weller [EMAIL PROTECTED]
i've turned off directory listing from tomcat's web.xml
and all seems to be ok for now !

anyway pretty strange that the directories are intercepted by mod_jk2 by default.

thanks for your time !

Catalin Constantin
Bounce Software
www.bounce-software.com
 

 
 -Original Message-
 From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] 
 Sent: Monday, July 07, 2003 6:25 PM
 To: Tomcat Users List
 
 Interesting...  
 http://issues.apache.org/bugzilla/show_bug.cgi?id=14017
 
 Don't know if it will help...
 
 -e
 
 On Mon, 7 Jul 2003, Eric J. Pinnell wrote:
 
  Hmm... well ya got me.  I'm not a pro with Vhosts in 
 tomcat.  I use one
  apache and one tomcat per application/site.  JK2 is getting 
 confused on
  the URI for some reason.  My systems don't have the 
 hostname in the URI
  since it doesn't need to see any differences in a Vhost.
 
  But, like I said I'm not and expert at Vhosts, so that 
 might or might not
  make a difference.
 
  -e
 
  On Mon, 7 Jul 2003, Catalin Constantin wrote:
 
   nope !
   now when i remove the url (www.mysite.com)
   it mapps each /images on all virtualhosts i have to the 
 Tomcat /images thing
   !
  
   pretty weird i think !
  
  
   Catalin Constantin
   Bounce Software
   www.bounce-software.com
  
  
   
-Original Message-
From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
Sent: Monday, July 07, 2003 5:50 PM
To: Tomcat Users List
   
Hi,
   
Try removing the hostname from the URI.  So
   
[uri:www.mysite.com/*.jsp]
   
would just be
   
[uri:/*.jsp]
and
[uri:/do/*]
   
and so on and so forth.
   
-e
   
On Mon, 7 Jul 2003, Catalin Constantin wrote:
   
 nope !
 it is the same thing !

 anyway i am sure that it reads the correct file cause
 if i remove the *.jsp line then the jsp files are 
 printed (source).

 so it must be something else !

 any clue ?

 Catalin Constantin
 Bounce Software
 www.bounce-software.com


 
  -Original Message-
  From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
  Sent: Monday, July 07, 2003 5:36 PM
  To: Tomcat Users List
 
  I don't know if this will work but try adding
 
  JkSet config.file /path/to/workers2.properties
 
  just under the LoadModule.  That way you know for sure it's
  reading the
  file you want.
 
  -e
 
  On Mon, 7 Jul 2003, Catalin Constantin wrote:
 
   in my httpd.conf i have
   LoadModule jk2_module modules/mod_jk2.so
  
   VirtualHost some.ip:80
   DocumentRoot /nethosting/mysite.com/jsp/ROOT
   ServerName www.mysite.com
   ServerAdmin [EMAIL PROTECTED]
   ServerPath /nethosting/mysite.com/jsp/ROOTs
   CustomLog 
 /var/log/httpd/mysite.com/access.log combined
   ErrorLog /var/log/httpd/mysite.com/error.log
   /VirtualHost
  
   so basically nothing that has to do with jk2 in my
httpd.conf file !
  
   below is a full listing of my workers2.properties file
  
   --- begin 
   [logger]
   level=DEBUG
  
   # Define the comunication channel
   #[channel.jni:jni]
   #info=The jni channel, used if tomcat is started inprocess
  
   [shm]
   file=/var/log/httpd/shm.file
   size=1048576
  
   # Define the parameters for the Java Virtual Machine
   #[vm:]
   #info=Parameters used to load a JVM in the server process
  
  
 #OPT=-Djava.class.path=${TOMCAT_HOME}/bin/tomcat-jni.jar;${TOM
  CAT_HOME}/serv
   er/lib/catalina.jar
   #OPT=-Dtomcat.home=${TOMCAT_HOME}
   #OPT=-Dcatalina.home=${TOMCAT_HOME}
   #OPT=-Xmx128M
  
   # JNI worker startup handler
   #[worker.jni:onStartup]
   #info=Command to be executed by the VM on 
 startup. This one
  will start
   tomcat.
   #class=org/apache/jk/apr/TomcatStarter
   #ARG=start
   #stdout=/var/log/httpd/stdout.log
   #stderr=/var/log/httpd/stderr.log
  
   # JNI worker shutdown handler
   #[worker.jni:onShutdown]
   #info=Command to be executed by the VM on shutdown. This
  one will stop
   tomcat.
   #class=org/apache/jk/apr/TomcatStarter
   #ARG=stop
  
   # Example socket channel, override port and host.
   [channel.socket:localhost:8009]
   port=8009
   host=127.0.0.1
  
   [ajp13:localhost:8009]
   

ISAPI_REDIRECT?

2003-07-07 Thread List
Hi,
(B
(BI have the following environment:
(B
(BWin2k Server
(BTomcat 4.1
(BIIS 5.0
(B
(BI am trying to integrate IIS and Tomcat like everyone else, but I am having an 
(Binteresting
(Bproblem.  
(B
(BTomcat works fine by itself when I do
(Bhttp://localhost/examples/..blahblah/blah.jsp
(BBut it doesn't work when I do 
(Bhttp://myserver/examples/..blahblah/blah.jsp
(B
(BThis works though:
(Bhttp://myserver:8080/examples/..blahblah/blah.jsp
(B
(BFor the 
(Bhttp://myserver/examples/..blahblah/blah.jsp
(Bit seems to be giving 500 error, but I don't see the configuration
(Berror in server.xml, urimapping, worker properties files...  I have 
(Bthe registry added, and I also see the green arrow pointing up 
(Bunder the IIS ISAPI_FILTER.  
(B
(BCould someone tell me what I could be doing wrong(or what kind
(Bof info I'm missing on my email).
(B
(B
(BThanks!
(B
(B
(B
(BTNak

ISAPI redirect JK2 error/bug/failure or something of the kind

2003-07-07 Thread Reynir Hübner
Hi, 

I am getting the following : 

The HTTP server encountered an unhandled exception while processing the ISAPI 
Application '
MSVCRT!strncmp + 0x14
isapi_redirector2 + 0xC71B
 + 0xCAD0C8
'. 

The redirector stopped running suddently (after few weeks of ok running), and it now 
gives me this error, it seems along with these:  

Error: [jk_handler_response.c (200)]: Error ajp_process_callback - write failed
Error: [jk_worker_ajp13.c (416)]: ajp13.service() ajpGetReply recoverable error 3
Error: [jk_service_iis.c (157)]: jk_ws_service_t::head, ServerSupportFunction failed
Error: [jk_handler_response.c (178)]: handler.response() Error sending response 
Error: [jk_service_iis.c (247)]: jk_ws_service_t::write, WriteClient failed

 
This is a server that was running very much ok untill to day, and noone has done 
anything to disturb the setup I've installed the old JK and it runs fine, and it 
seems to be a lot better connector than the new JK2. I recommend that people do not 
use JK2 for production, as it's not stable yet. 


Has anyone seen that error before ???

Thanx
-reynir



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



Re: TomCat and EJBs in WebSphere

2003-07-07 Thread brainSucka
absolutely no one out there, who can help me :-(((

- Original Message - 
From: brainSucka [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 04, 2003 7:03 AM
Subject: TomCat and EJBs in WebSphere


 Hi Guys!
 
 Im trying to use my TomCat as EJB-Client and reach WebSphere5 EJBs.
 (This is necessary for a special scenario i try to access).
 
 To reach WebSphere-JNDI-Namespace with a Client, one has to use
 the launchClient.bat that is shipped with WebSphere. This batch sets
 several properties, uses IBM-JRE and starts a com.ibmWSLauncher
 class. With this class the EJB-client is started.
 
 This works fine with a simple test-class that uses
 com.ibmInitialFactory.
 
 Now i tried to add the property-settings into catalina.bat, startup.bat =
 and
 setclasspath.bat. The problem is, that the WSLauncher starts the TomCat
 Bootstrap thats a Launcher itself.
 
 I read that TomCat ignores property-set Classpath e.g.. I tried to add =
 the
 .jars that are needed in TC\common\lib, but they still ignored. This =
 means,
 that i cant start TomCat, because it wants to instanciate the Factory.
 
 I tried to use a Factory thats included in j2se too, but its imopssible =
 to
 reach
 WebSphere JNDI-Namespace with it.
 
 
 I really need a solution :-
 
 Hope someone out there that can help me :-))
 
 Greetings
 Patrick Elgner
 
 
 -
 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]



Logging in Tomcat

2003-07-07 Thread James Darwin
Hi,

I've got a website running on Tomcat 4.1.18. It logs all
System.out.println to catalina.out. However, this file is getting too
long, making it difficult to view the file. So, I would like to
generate a separate log file for each day. Is this possible to
configure under Tomcat?

Also, under tomcat-4.1.18/logs I have a whole heap of other files, e.g:

catalina_log.2003-07-07.txt
localhost_log.2003-04-07.txt
localhost_examples_log.2003-02-28.txt

What are these log files used for? I've searched around Tomcat website,
but there doesn't seem to be any information on the default logging
behaviour of Tomcat. If anyone knows of any good documents or websites
which explain Tomcat logging it would be much appreciated if you pass
it on.

Thanks.

http://mobile.yahoo.com.au - Yahoo! Mobile
- Check  compose your email via SMS on your Telstra or Vodafone mobile.

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



cookie based session sharing among web apps

2003-07-07 Thread Harris Cotton
I am keen on having two web applications be able to share sessions.  
Currently, tomcat creates and maintains a session for each web application 
for a client.  Moving the session id to the url is an option, but one I hope 
to avoid because of the refactoring it would generate in my applications 
jsps.

In essence, I want tomcat to use / as the url path in the JSESSIONID 
cookie, and use this session id in all web applications the tomcat server 
hosts.

Can this be accomplished solely with configuration?

Thank You

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

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


Re: Number of Processes

2003-07-07 Thread John Smith
Can you point out the JVM version you are using. on Redhat 7 and 8.

John

[EMAIL PROTECTED] 7/8/2003 1:03:56 AM 
As far as I understand it, top and ps changed in Redhat due to the
confusion of processes vs. threads. I am not positive that this is the
case, but you might just look up the CHANGE docs for the package that
supplies Redhat's ps and top (probably two different RPMs).
Ben Ricker
Wellinx.com
On Mon, 2003-07-07 at 12:38, Shannon Scott wrote:
Thank You for helping, but I still think I am having a threading problem.
I read here:
http://marc.theaimsgroup.com/?l=tomcat-userm=104378596024043w=2 that On 
linux, the top command displays every java thread as a separate
line item.

On my Linux Redhat 7.2 machine I get several listed with the top ( and ps )
command, but on my redhat 8.0 machines I only get 1 listed with the top (
and ps ) command.
Does anyone understand this behavior?
Thanks again.
Shannon
- Original Message -
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, July 07, 2003 11:56 AM
Subject: Re: Number of Processes
 The JVM is one process. One process with many threads. minProcessors!=OS
 processes.

 minProcessors == number of concurrent workers at any given point in time

 -Tim

 Shannon Scott wrote:
  Hello,
  I have noticed that tomcat uses only one process on my new redhat 8.0
machine.
  ( ps -elf | grep tomcat )
  There is an interesting explanation here.
 
  http://marc.theaimsgroup.com/?l=tomcat-userm=103762836306068w=2  
  So I wrote a short test_process.jsp page ( below ) that I thought 
would
force another process, but I still only show one when I try to open the 
page
with multiple browsers.
  Does anyone have a way to force another process to begin?
 
  Could something in my configuration not allow other processes?
  I have set the minProcessors=5 in my server.xml Connector.
 
  Linux RedHat 8.0
  Apache 2.0.43 ( mod_jk )
  Tomcat 4.1.24
 
  Any help is greatly appreciated.
  Thank You.
  Shannon
 
  test_process.jsp:
  %@ page session=false %
  %
  Thread.sleep(1);
  out.print( Done... );
  %
 
 


 -
 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]
_
Watch Hallmark. Enjoy cool movies. 
http://server1.msn.co.in/sp03/hallmark/index.asp Win hot prizes!

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


Re: Number of Processes

2003-07-07 Thread Kwok Peng Tuck
Try 'ps -elfm' ; the 'm' will show the other threads.
You can also achieve the same thing with top by using the 'H' command.
Shannon Scott wrote:

Hello,
I have noticed that tomcat uses only one process on my new redhat 8.0 machine.
( ps -elf | grep tomcat )
There is an interesting explanation here.
http://marc.theaimsgroup.com/?l=tomcat-userm=103762836306068w=2

So I wrote a short test_process.jsp page ( below ) that I thought would force another process, but I still only show one when I try to open the page with multiple browsers.  
Does anyone have a way to force another process to begin?

Could something in my configuration not allow other processes?
I have set the minProcessors=5 in my server.xml Connector.
Linux RedHat 8.0
Apache 2.0.43 ( mod_jk )
Tomcat 4.1.24
Any help is greatly appreciated.
Thank You.
Shannon
test_process.jsp:
%@ page session=false % 
% 
Thread.sleep(1);
out.print( Done... ); 
% 

 



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


HTTP Status 404.../Redirecting JSP from servlet......../How to set web.xml????

2003-07-07 Thread Naveen My

I am unable to redirect a JSP page from a servlet

This is my directory structure...

D:\Tomcat 4.1\webapps\careerCenter\jsp\ *.jsp's

D:\Tomcat 4.1\webapps\careerCenter\WEB-INF\classes\.class files

 

My WEB.xml has following entry
 servlet
   servlet-nameStudentLoginServlet/servlet-name 
   servlet-classStudentLoginServlet/servlet-class 
  /servlet
 servlet-mapping
   servlet-nameinvoker/servlet-name 
   url-pattern/servlet/*/url-pattern 
  /servlet-mapping

My code in jsp is

form  method=POST action=./servlet/StudentLoginServlet

 

My code in servlet is 

res.sendRedirect(./jsp/StudentLogin.jsp);

 

Please help...

thanks

naveen

 


-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

TOMCAT with EJB??

2003-07-07 Thread vipul viz
HI all
I am using Tomcat 4. as an application server but it
doesn't support EJB 
could any one tell me which is the best EJB Server
available in the category of Open cource.
i have found 2-3 like Jboss,OpenEJB , Jonas.
but not sure which one to use for some commercial
development






__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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