Re: Tomcat 6 Windows Service

2008-08-05 Thread Skondras Panos
Setting the catalina_base solves the problem but you have to create a
new dir for the conf files.
Is there a way to just pass as a parameter the server.xml in the startUp class 
as StartParams or something else.
Thanks a lot


--- Στις Δευτ., 04/08/08, ο/η Mark Thomas [EMAIL PROTECTED] έγραψε:

 Από: Mark Thomas [EMAIL PROTECTED]
 Θέμα: Re: Tomcat 6 Windows Service
 Προς: Tomcat Users List users@tomcat.apache.org
 Ημερομηνία: Δευτέρα, 4 Αύγουστος 2008, 17:21
 Skondras Panos wrote:
  Hi all,
  I install Tomcat 6 as a services in windows 2000.
  I follow the how-to and all went ok.
  Now i want to install another service of tomcat 6 BUT
 for this service
  i want to get a different server.xml file than the
 other service.
  I want to do this without having to copy the dir of
 tomcat and install
  the service from there.I want to have one installation
 of tomcat.
  I tried all the StartParams option with no luck.
  Also i tries the tomcat6w config tool to add the
 parameter no luck.
  When i run catalina.bat start -config /con/server2.xml
 all works ok.
  Any suggestions.
 
 Read RUNNING.txt
 Use service.bat to create multiple instances with different
 service names.
 
 Mark
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]


  
___ 
Χρησιμοποιείτε Yahoo!; 
Βαρεθήκατε τα ενοχλητικά μηνύματα (spam); Το Yahoo! Mail 
διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών 
μηνυμάτων http://login.yahoo.com/config/mail?.intl=gr 


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



Re: Can two Tomcat's safely share the same webapps directory?

2008-08-05 Thread Mark Thomas

Richard M wrote:

Progress: Well so far it seems to work in preliminary testing. Is there
anything or any reason to shy away from this solution? Both Tomcat's will
have separate work directories. The JSP's will run on the first Tomcat
instance, the batch processing on the second.

Thanks in advance for any ideas, thoughts, etc. - Richard


I'd be nervous about this simply because it isn't, as far as I am aware, a 
requirement that was considered when designing it. That said,
- separate work dirs are a must and will resolve most (all?) issues and you 
are already doing this
- sharing a single directory should be OK, sharing a WAR or the entire 
appBase is likely to be more problematic
- I assume you are using a context.xml file on at least one instance. If 
you have one on both, be careful to keep the two in sync


Other than that, if you testing looks good then you should be OK.

Just as a word of warning, if you do hit a bug that is caused by the 
sharing of the dir then depending on the bug it might not get fixed on the 
grounds that it is an unsupported configuration. Equally, if it is a simple 
fix that has little/no impact then it is likely that it would be applied.


Good luck!

Mark


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



Re: configure tomcat

2008-08-05 Thread Maduranga Kannangara
Also a tiny note: 
It should be localhost:8080 and not localhost/8080
(Hope you tried the first way?)

Cheers

-- 
Koodos - stylish brads, smart prices
http://www.Koodos.com




On 5/8/08 03:37, Nadun Herath [EMAIL PROTECTED] wrote:

 David and others
 Thanks a lot. I will remove that from classpath and see.
 Thanks again.
 
 On Mon, Aug 4, 2008 at 6:16 PM, David Smith [EMAIL PROTECTED] wrote:
 
 A couple of suggestions:
 
 1. Drop the CLASSPATH from bashrc.  It'll cause all sorts of weird
 problems.  Plus the jars you added are automatically added by tomcat's own
 internal classloader.  No need to explicitly declare them anyway.
 
 2. Check you logs for what happened during startup up to the moment of your
 request.  That should help a lot in determining what happened.
 
 --David
 
 
 Nadun Herath wrote:
 
 I am a newbie to tomcat. I installed it ubuntu
 
 added the following line to bashrc file
 
 export
 CLASSPATH=/usr/local/tomcat/common/lib/jsp-api.jar:/usr/local/tomcat/common/
 lib/servlet-api.jar
 
 
 When I run startup.sh it runs ok. Giving this message
 
 Using CATALINA_BASE:   /usr/local/tomcat
 Using CATALINA_HOME:   /usr/local/tomcat
 Using CATALINA_TMPDIR: /usr/local/tomcat/temp
 Using JRE_HOME:   /usr/lib/jvm/java-6-sun
 
 But when I type localhost/8080 it says can't connect. What is the problem.
 Please help. I thank you in advance.
 
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Need source code of Tomcat 5.5.20's dbcp

2008-08-05 Thread Mamta, Jain

The Tomcat 5.5.20 source does not provide code for the dbcp module. So I
checked the version of naming-factory-dbcp.jar, found it to be of ver
1.0 and checked out the dbcp source from Apache commons archives. But
the source and the binaries do not seem to match. Where do I get the
right version of dbcp source that is bundled with tomcat 5.5.20 version
for linux ?

Thanks !



This email and any attachments are confidential and may also be privileged.  If 
you are not the addressee, do not disclose, copy, circulate or in any other way 
use or rely on the information contained in this email or any attachments.  If 
received in error, notify the sender immediately and delete this email and any 
attachments from your system.  Emails cannot be guaranteed to be secure or 
error free as the message and any attachments could be intercepted, corrupted, 
lost, delayed, incomplete or amended.  Standard Chartered PLC and its 
subsidiaries do not accept liability for damage caused by this email or any 
attachments and may monitor email traffic.

 

Standard Chartered PLC is incorporated in England with limited liability under 
company number 966425 and has its registered office at 1 Aldermanbury Square, 
London, EC2V 7SB.

 

Standard Chartered Bank (SCB) is incorporated in England with limited 
liability by Royal Charter 1853, under reference ZC18.  The Principal Office of 
SCB is situated in England at 1 Aldermanbury Square, London EC2V 7SB. In the 
United Kingdom, SCB is authorised and regulated by the Financial Services 
Authority under FSA register number 114276.

 

If you are receiving this email from SCB outside the UK, please click 
http://www.standardchartered.com/global/email_disclaimer.html to refer to the 
information on other jurisdictions.



Re: Need source code of Tomcat 5.5.20's dbcp

2008-08-05 Thread Mark Thomas

Mamta, Jain wrote:

The Tomcat 5.5.20 source does not provide code for the dbcp module. So I
checked the version of naming-factory-dbcp.jar, found it to be of ver
1.0 and checked out the dbcp source from Apache commons archives. But
the source and the binaries do not seem to match. Where do I get the
right version of dbcp source that is bundled with tomcat 5.5.20 version
for linux ?

Thanks !


http://svn.apache.org/repos/asf/tomcat/build/tags/tc5.5.x/TOMCAT_5_5_20/build.properties.default

shows that 5.5.20 used commons DBCP 1.2.1

Mark



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



RE: Tomcat does not shutdown properly and kill -3 does not work!

2008-08-05 Thread Peter Crowther
 From: Maduranga Kannangara [mailto:[EMAIL PROTECTED]
 There is an issue with my Tomcat instance where I have to
 kill it using 9 all the time.

 This is my application environment:
 An active-mq queue is used inside my application war.
 Tomcat version: 5.x
 OS: Redhat Linux

It would help if you were more specific with your versions - Tomcat 5.0.x and 
5.5.x are significantly different, and RedHat has put out a *lot* of Linux 
versions over the years.

 However I was unable to get trace using kill 3 as I saw in
 some of the threads in this mailing list.

 How can I ensure proper shutdown of Tomcat?

What JVM are you using?  In particular, I don't think the GNU JVM that comes 
with some versions of RedHat supports giving a thread dump on kill -QUIT.

- Peter

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



RE: Tomcat Service is stopped automatically???

2008-08-05 Thread Peter Crowther
 From: Thangavel Sankaranarayanan [mailto:[EMAIL PROTECTED]
 I tried  it and it is working... but how do i make the
 process to run in
 backround..what happens is when my session expires (as i am connected
 through RDC)
 or if i wanted to logoff from the remote system the
 process will stop i
 guess... how to make it keep running 24/7 and open the tomcat process
 window and see the  status of threads 

The obvious approach would be to use the console RDC session (mstsc /console or 
mstsc /admin depending on which version of the client you have).  The console 
session is never reset due to a connection timeout.  Of course, this assumes 
you have credentials to log in to the system console and are willing to keep it 
logged in!

- Peter

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



Re: Tomcat does not shutdown properly and kill -3 does not work!

2008-08-05 Thread Maduranga Kannangara
Tomcat: 5.5.20
JVM: Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b01)
OS: Red Hat Enterprise Linux AS release 4 (Nahant Update 2)

However, this also same behavior on OSX 10.5 as well.
With JVM: Java(TM) 2 Runtime Environment, Standard Edition (build
1.5.0_13-b05-237)

I need more of a tracing mechanism at the moment, as the good kill -3 seem
no good with my environment :-(

Thanks


On 5/8/08 11:21, Peter Crowther [EMAIL PROTECTED] wrote:

 From: Maduranga Kannangara [mailto:[EMAIL PROTECTED]
 There is an issue with my Tomcat instance where I have to
 kill it using 9 all the time.
 
 This is my application environment:
 An active-mq queue is used inside my application war.
 Tomcat version: 5.x
 OS: Redhat Linux
 
 It would help if you were more specific with your versions - Tomcat 5.0.x and
 5.5.x are significantly different, and RedHat has put out a *lot* of Linux
 versions over the years.
 
 However I was unable to get trace using kill 3 as I saw in
 some of the threads in this mailing list.
 
 How can I ensure proper shutdown of Tomcat?
 
 What JVM are you using?  In particular, I don't think the GNU JVM that comes
 with some versions of RedHat supports giving a thread dump on kill -QUIT.
 
 - Peter
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: Tomcat Service is stopped automatically???

2008-08-05 Thread Thangavel Sankaranarayanan
Hi ..

Andre wrote:

Oh well, that means you (or rather your user-id) are probably not a
Local Administrator on that system.

At this stage, I'm not quite sure anymore, because I don't have a Tomcat
4.1 system to compare this with.  So I'm working from memory.

Try this :
Supposing you can find the top directory where Tomcat was installed.
It may be something like c:\Programs\Apache Group\Tomcat4.1, or
C:\Tomcat4 or whatever.
Under that directory should be a sub-directory bin, with some programs
in it, and maybe some .bat or .cmd files.

(With Tomcat 5, there are just 2 programs tomcat5.exe and
tomcat5w.exe, and I used the tomcat5.exe in my previous example.)

But I believe that in Tomcat4.x, there is a command-file called
startup.bat.
If so, then :
- anyway stop the Tomcat service
- open a command window, and go to the Tomcat/bin directory
- type : startup.bat

To stop Tomcat later, just type a CTRL-C in the window.
(And restart the service if needed).

I tried  it and it is working... but how do i make the process to run in
backround..what happens is when my session expires (as i am connected
through RDC)
or if i wanted to logoff from the remote system the process will stop i
guess... how to make it keep running 24/7 and open the tomcat process
window and see
the  status of threads 




   
 André Warnier   
 [EMAIL PROTECTED]   
To
 08/04/2008 08:58  Tomcat Users List   
 PMusers@tomcat.apache.org   
cc
   
 Please respond to Subject
   Tomcat Users   Re: Tomcat Service is stopped   
   List   automatically???
 [EMAIL PROTECTED] 
 che.org  
   
   
   
   




Thangavel Sankaranarayanan wrote:
 Hi,
 I dont find any Hkey..instead i find a Hkey_Current_user..
 I have loggged in to a remote system through RDC...
 and i could'nt find any system or other things in it...

Oh well, that means you (or rather your user-id) are probably not a
Local Administrator on that system.

At this stage, I'm not quite sure anymore, because I don't have a Tomcat
4.1 system to compare this with.  So I'm working from memory.

Try this :
Supposing you can find the top directory where Tomcat was installed.
It may be something like c:\Programs\Apache Group\Tomcat4.1, or
C:\Tomcat4 or whatever.
Under that directory should be a sub-directory bin, with some programs
in it, and maybe some .bat or .cmd files.

(With Tomcat 5, there are just 2 programs tomcat5.exe and
tomcat5w.exe, and I used the tomcat5.exe in my previous example.)

But I believe that in Tomcat4.x, there is a command-file called
startup.bat.
If so, then :
- anyway stop the Tomcat service
- open a command window, and go to the Tomcat/bin directory
- type : startup.bat

To stop Tomcat later, just type a CTRL-C in the window.
(And restart the service if needed).





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




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



Tomcat does not shutdown properly and kill -3 does not work!

2008-08-05 Thread Maduranga Kannangara
Hello,

There is an issue with my Tomcat instance where I have to kill it using ­9
all the time.

This is my application environment:
An active-mq queue is used inside my application war.
Tomcat version: 5.x
OS: Redhat Linux

However I was unable to get trace using kill ­3 as I saw in some of the
threads in this mailing list.

How can I ensure proper shutdown of Tomcat?

Thanks in advance!
Maduranga


-- 
Koodos - stylish brads, smart prices
http://www.Koodos.com




Re: Can two Tomcat's safely share the same webapps directory?

2008-08-05 Thread Johnny Kewl


- Original Message - 
From: Richard M [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Tuesday, August 05, 2008 5:21 AM
Subject: Can two Tomcat's safely share the same webapps directory?




I looked through the documentation and searched the user list and web for 
the

answer to this. I found a lot of postings that talked about using NFS
sharing to share the actual Tomcat software directories, but none that 
dealt

with trying to share an expanded web application between two instances of
Tomcat Actually one Tomcat instance is on a separate machine - using NFS 
to

mount the directory.

Background: This is a legacy application (somewhat of a content management
system) that places user-uploaded files in the web application directory.
The application is not deployed as a WAR file, just the JSP's and classes
directories are updates as needed. No change to change the app in the
short-term. We are trying to move some batch processing to a separate
instance of Tomcat and want both Tomcat's looking at the same webapps
directory so the second Tomcat instance can mostly read, but possibly 
update

some of the content files.

Progress: Well so far it seems to work in preliminary testing. Is there
anything or any reason to shy away from this solution? Both Tomcat's will
have separate work directories. The JSP's will run on the first Tomcat
instance, the batch processing on the second.

Thanks in advance for any ideas, thoughts, etc. - Richard


Richard, I got a little Samba link going with a few shared web apps, no high 
traffic, but no problems...
Ie sharing a webapp only I think will only give you normal issues... like 
for example, if your uploading file is busy writing to a JSP, and that is 
viewed at the same time, will probably get a compiler exception... I have 
never seen one ;) and you can get uploaders to get the whole file before 
writing it to location, so those are normal issues... if it was an html 
file, the user may only see half a file, if they just catch it


But one thing you cannot do, especially on windows is share the catalina 
base ie the whole TC structure... ie if logs are now trying to share the 
same folder, then I think that is definite problems, especially on a MS 
system.


A stupid little test I do on windows, is open files with notepad... because 
notepad holds the lock... you will see that you can open a JSP in notepad 
and TC will still read it... but with log files, you'll see that windows 
tells notepad to take a hike... ie one TC owns that log only...


It will work... you just got to think about how you changing files if it 
gets really busy... the normal things to worry about..


TC is made... think about the ~user shared folders for example, for one to 
drop JSP and html files into it, like say one would when FTPing up to a 
site... so you can safely expect that to work when it comes to servlet 
classes and things like that... then the fun would really start... because 
even if you turn on TC's lib change detection, theres dependencies to worry 
about etc JSP/HTML... no problem... have fun


Of course in your software... you want to make sure you access files read 
only and that you dont hold locks... ie if you batch processing software 
went an held a JSP file for half an hour... well then TC wouldnt be able to 
get at it, should it want to recompile it... normal stuff ;)

---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---





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



Re: Can two Tomcat's safely share the same webapps directory?

2008-08-05 Thread Richard M

Mark, Thanks for the feedback and thoughts. I figured it might not be
supported and a little risky - since I found no references or experiences.
I'll certainly report back if any inherent problems do pop up.


markt-2 wrote:
 
 Richard M wrote:
 Progress: Well so far it seems to work in preliminary testing. Is there
 anything or any reason to shy away from this solution? Both Tomcat's will
 have separate work directories. The JSP's will run on the first Tomcat
 instance, the batch processing on the second.
 
 Thanks in advance for any ideas, thoughts, etc. - Richard
 
 I'd be nervous about this simply because it isn't, as far as I am aware, a 
 requirement that was considered when designing it. That said,
 - separate work dirs are a must and will resolve most (all?) issues and
 you 
 are already doing this
 - sharing a single directory should be OK, sharing a WAR or the entire 
 appBase is likely to be more problematic
 - I assume you are using a context.xml file on at least one instance. If 
 you have one on both, be careful to keep the two in sync
 
 Other than that, if you testing looks good then you should be OK.
 
 Just as a word of warning, if you do hit a bug that is caused by the 
 sharing of the dir then depending on the bug it might not get fixed on the 
 grounds that it is an unsupported configuration. Equally, if it is a
 simple 
 fix that has little/no impact then it is likely that it would be applied.
 
 Good luck!
 
 Mark
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Can-two-Tomcat%27s-safely-share-the-same-webapps-directory--tp18823860p18831164.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Can two Tomcat's safely share the same webapps directory?

2008-08-05 Thread Richard M

Johnny, Thanks for sharing this info - good to know it works beyond my
simple tests so far. You bring up a number of good points, things to
consider and test out - e.g. I can see what you mean about the issues of
mid-stream uploads not being handled gracefully in some cases. For us it
should not be a problem they way we are partitioning the workload.


Johnny Kewl wrote:
 
 
 - Original Message - 
 From: Richard M [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Tuesday, August 05, 2008 5:21 AM
 Subject: Can two Tomcat's safely share the same webapps directory?
 
 

 I looked through the documentation and searched the user list and web for 
 the
 answer to this. I found a lot of postings that talked about using NFS
 sharing to share the actual Tomcat software directories, but none that 
 dealt
 with trying to share an expanded web application between two instances of
 Tomcat Actually one Tomcat instance is on a separate machine - using NFS 
 to
 mount the directory.

 Background: This is a legacy application (somewhat of a content
 management
 system) that places user-uploaded files in the web application directory.
 The application is not deployed as a WAR file, just the JSP's and classes
 directories are updates as needed. No change to change the app in the
 short-term. We are trying to move some batch processing to a separate
 instance of Tomcat and want both Tomcat's looking at the same webapps
 directory so the second Tomcat instance can mostly read, but possibly 
 update
 some of the content files.

 Progress: Well so far it seems to work in preliminary testing. Is there
 anything or any reason to shy away from this solution? Both Tomcat's will
 have separate work directories. The JSP's will run on the first Tomcat
 instance, the batch processing on the second.

 Thanks in advance for any ideas, thoughts, etc. - Richard
 
 Richard, I got a little Samba link going with a few shared web apps, no
 high 
 traffic, but no problems...
 Ie sharing a webapp only I think will only give you normal issues... like 
 for example, if your uploading file is busy writing to a JSP, and that is 
 viewed at the same time, will probably get a compiler exception... I have 
 never seen one ;) and you can get uploaders to get the whole file before 
 writing it to location, so those are normal issues... if it was an html 
 file, the user may only see half a file, if they just catch it
 
 But one thing you cannot do, especially on windows is share the catalina 
 base ie the whole TC structure... ie if logs are now trying to share
 the 
 same folder, then I think that is definite problems, especially on a MS 
 system.
 
 A stupid little test I do on windows, is open files with notepad...
 because 
 notepad holds the lock... you will see that you can open a JSP in notepad 
 and TC will still read it... but with log files, you'll see that windows 
 tells notepad to take a hike... ie one TC owns that log only...
 
 It will work... you just got to think about how you changing files if it 
 gets really busy... the normal things to worry about..
 
 TC is made... think about the ~user shared folders for example, for one to 
 drop JSP and html files into it, like say one would when FTPing up to a 
 site... so you can safely expect that to work when it comes to servlet 
 classes and things like that... then the fun would really start... because 
 even if you turn on TC's lib change detection, theres dependencies to
 worry 
 about etc JSP/HTML... no problem... have fun
 
 Of course in your software... you want to make sure you access files read 
 only and that you dont hold locks... ie if you batch processing software 
 went an held a JSP file for half an hour... well then TC wouldnt be able
 to 
 get at it, should it want to recompile it... normal stuff ;)
 ---
 HARBOR : http://www.kewlstuff.co.za/index.htm
 The most powerful application server on earth.
 The only real POJO Application Server.
 See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
 ---
 
 
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Can-two-Tomcat%27s-safely-share-the-same-webapps-directory--tp18823860p18831240.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



tomcat5 and jaas

2008-08-05 Thread rafabbri

I'm a beginner in this technology and I try to configure Tomcat 5.0.28 in
order to use JAASRealm as detailed in the next link 
http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html#JAASRealm
but these informations seem to be not enought for my knoweledge.

I can't integrate jaas with tomcat, I don't know what I must write in
web.xml and in server.xml 

In my server.xml I wrote a section like this:

  Realm className=org.apache.catalina.realm.JAASRealm 
 appName=Sample   
 userClassNames=sample.principal.SamplePrincipal
 debug=99/ 
but I don't now what I must do for roleClassNames 

If you have a completed sample, plese send it

Thank's in advance 

Excuse me for my bad english
-- 
View this message in context: 
http://www.nabble.com/tomcat5-and-jaas-tp18831242p18831242.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: tomcat5 and jaas

2008-08-05 Thread Mark Thomas

rafabbri wrote:

I'm a beginner in this technology and I try to configure Tomcat 5.0.28 in
The 5.0.x series is no longer supported. It is also quote old. You shoudl 
consider upgrading to 5.5.x or better yet 6.0.x


order to use JAASRealm as detailed in the next link 
http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html#JAASRealm
Those are the docs for 5.5.x, not 5.0.x. This may well be different. You'll 
need to look at the docs that come with 5.0.28



but these informations seem to be not enought for my knoweledge.

I can't integrate jaas with tomcat, I don't know what I must write in
web.xml and in server.xml 


In my server.xml I wrote a section like this:

  Realm className=org.apache.catalina.realm.JAASRealm 
 appName=Sample   
	 userClassNames=sample.principal.SamplePrincipal
 debug=99/	  
but I don't now what I must do for roleClassNames

You can ignore it - is is optional.

Mark



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



RE: FW: Rotate stdout_xxx.log without Restart Tomcat

2008-08-05 Thread Cosio, Raul
I run tomcat under java service wrapper little slow to install but great to 
work with, and it supports rolling of logs...

http://wrapper.tanukisoftware.org/doc/english/props-nt.html 



Raúl Cosío
Business Technology

(+52) 55 5481 9600 ext 9333

-Original Message-
From: Alex Mestiashvili [mailto:[EMAIL PROTECTED] 
Sent: Lunes, 21 de Julio de 2008 04:32 a.m.
To: Tomcat Users List
Subject: Re: FW: Rotate stdout_xxx.log without Restart Tomcat

Alexander Diedler wrote:
 Has nobody any idea about rotating Tomcat logfiles??

 Alex

 -Original Message-
 From: Alexander Diedler [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 18, 2008 9:24 AM
 To: users@tomcat.apache.org
 Subject: Rotate stdout_xxx.log without Restart Tomcat

 Hello,

 It is possible to implement a log rotation for the Tomcat Default logs
 (Stdout, stderr,localhost,Jakarta_service etc) ?

 It is a Tomcat 6.0.14 x64 on Windows 2003 Std Ed.

  

 Greetings

 Alex

  

  


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

   

The problem is windows ...

but , may be this links will be useful for you
http://www.datori.org/?p=7
http://freshmeat.net/projects/perl-logrotate/

but , you should be careful with log rotation , it is better to copy log 
and truncate it , but not rename , in such case restart of tomcat is not 
needed .
Notice:  This e-mail message, together with any attachments, contains
information of Merck  Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp  Dohme or
MSD and in Japan, as Banyu - direct contact information for affiliates is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and
then delete it from your system.


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



Unable to view tomcat admin in Mac

2008-08-05 Thread prakash shanmugam
hai all,
  i have Mac Leapoard os . How to install admin console for  Tomcat 5.5.26.
Please  tell me  where  i have  to download  admin  console files.

-- 
with Regards
S.Prakash


Re: Unable to view tomcat admin in Mac

2008-08-05 Thread Mark Thomas

prakash shanmugam wrote:

hai all,
  i have Mac Leapoard os . How to install admin console for  Tomcat 5.5.26.
Please  tell me  where  i have  to download  admin  console files.


Did you look at the Tomcat 5 download pages?

Mark




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



Re: tomcat5 and jaas

2008-08-05 Thread rafabbri

Thank for your reply

In the mean time I did some steps a head

In web.xml I add the next lines:

  !-- Define a Security Constraint on this Application --
  security-constraint
web-resource-collection
  web-resource-nameSample/web-resource-name
  url-pattern/*/url-pattern
/web-resource-collection
auth-constraint
  role-nameyour-role/role-name
/auth-constraint
  /security-constraint

  !-- Define the Login Configuration for this Application --
  login-config
auth-methodBASIC/auth-method
realm-nameSample/realm-name
  /login-config

  !-- Security roles referenced by this web application --
  security-role
description
  The role that is required to log in to the Manager Application
/description
role-nameyour-role/role-name
  /security-role   

And now tomcat tell me login and password.
if the user is authenticated tomcat tell me the next message:

[SampleLoginModule] user entered user name: testUser
[SampleLoginModule] user entered password: testPassword
[SampleLoginModule] authentication succeeded
[SampleLoginModule] added SamplePrincipal to Subject

but in my browser I found the next error:

type Status report

message Access to the requested resource has been denied

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

I think that this error is due by a wrong role but I don't know how to send
tomcat a right role that in this case is your-role

Thank's in advance


-- 
View this message in context: 
http://www.nabble.com/tomcat5-and-jaas-tp18831242p18831826.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Unable to view tomcat6.0.16 admin in Mac

2008-08-05 Thread prakash shanmugam
hello mark,
sorry, i dont find any relevant pages. right now i am looking for admin
page in tomcat 6.0.16.

-- 
with Regards
S.Prakash


Re: Unable to view tomcat6.0.16 admin in Mac

2008-08-05 Thread Mark Thomas

prakash shanmugam wrote:

hello mark,
sorry, i dont find any relevant pages. right now i am looking for admin
page in tomcat 6.0.16.


The admin app does not exist in 6.0.x

Mark



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



Re: Unable to view tomcat6.0.16 admin in Mac

2008-08-05 Thread David Smith

prakash shanmugam wrote:

hello mark,
sorry, i dont find any relevant pages. right now i am looking for admin
page in tomcat 6.0.16.

  
Because tomcat 6.0.x does not have the admin webapp.  It was dropped in 
tomcat 6.0 entirely.


--David

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



Re: Error deploying struts application in tomcat

2008-08-05 Thread ramya lekha
I had made the change but still i am getting the same error in my log
file

2008-08-05 13:37:17
StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter: init():
ruleChain: [org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News /
Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param name:
paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]

Can someone please help me ot in this

Thanks
Ramya



On 8/4/08, Tandel, Aswin [EMAIL PROTECTED] wrote:

 Hi,

 I think ur context name in incorrect.
 Check your context name on your admin console. It is generally ur war
 file name. Give that context name before the action path and it should
 work.

 In ur case /proj/bookList.do  proj should be replaced with the
 context name..

 Thanks and Regards,
 Ashwin Tandel
 Email - [EMAIL PROTECTED]


 -Original Message-
 From: ramya lekha [mailto:[EMAIL PROTECTED]
 Sent: Monday, August 04, 2008 4:50 PM
 To: Tomcat Users List
 Subject: Error deploying struts application in tomcat

 HI,

 I had written a build.xml file for my struts application.. this file
 creates
 a .war file which i can deploy in a tomcat server. I am able to create a
 .war file... and wen I deploy it in the server and start calling the
 application servername/proj/index.jsp i can view the jsp page and wen
 i
 click the link which calls a action (bookList.do). I am getting a error
 msg
 saying The requested URL /proj/bookList.do was not found on this
 server.

 the directory structure is

 webapps/proj/WEB-INF , webapps/proj/jsp
 and under WEB-INF i have the files web.xml, struts-config.xml, all
 struts
 tlds files, folders(classes,lib)

 my web.xml file is

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

 servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value3/param-value
/init-param
init-param
  param-namedetail/param-name
  param-value3/param-value
/init-param
load-on-startup0/load-on-startup
 /servlet
 servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
 /servlet-mapping
 welcome-file-list
welcome-fileindex.jsp/welcome-file
 /welcome-file-list
 /web-app

 -struts-config.xml--


 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD
 Struts
 Configuration 1.2//EN http://struts.apache.org/dtds/struts-config$

 struts-config
 data-sources /
 form-beans 
form-bean name=bookListForm
 type=com.yourcompany.struts.form.BookListForm /
form-bean name=bookEditForm
 type=com.yourcompany.struts.form.BookEditForm /
 /form-beans

 global-exceptions /
 global-forwards 


 /global-forwards

 action-mappings 

action
  attribute=bookListForm
  input=/WEB-INF/jsp/bookList.jsp
  name=bookListForm
  path=/bookList
  scope=request
  type=com.yourcompany.struts.action.BookListAction
  forward name=showList path=/WEB-INF/jsp/bookList.jsp /
/action
action
  attribute=bookEditForm
  name=bookEditForm
  parameter=do
  path=/bookEdit
  scope=request
  type=com.yourcompany.struts.action.BookEditAction
  forward name=showEdit path=/WEB-INF/jsp/bookEdit.jsp /
  forward
name=showList
path=/bookList.do
redirect=true /
  forward name=showAdd path=/WEB-INF/jsp/bookAdd.jsp /
/action


 /action-mappings

 message-resources
 parameter=com.yourcompany.struts.ApplicationResources
 /
 /struts-config

 -log
 file

 2008-08-04 20:33:55
 StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter:
 init():
 ruleChain: [org.apache.webapp.balancer.RuleChain:
 [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
 News /
 Redirect URL: http://www.cnn.com],
 [org.apache.webapp.balancer.rules.RequestParameterRule: Target param
 name:
 paramName / Target param value: paramValue / Redirect URL:
 http://www.yahoo.com],
 [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
 http://jakarta.apache.org]]


 Can you please let me know wer is the error...???

 Thanks in advance

 Ramya

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




RE: Unable to view tomcat6.0.16 admin in Mac

2008-08-05 Thread Rob Mercer
Are there any plans to bring back the admin application?

-Rob

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2008 10:51 AM
To: Tomcat Users List
Subject: Re: Unable to view tomcat6.0.16 admin in Mac

prakash shanmugam wrote:
 hello mark,
 sorry, i dont find any relevant pages. right now i am looking for
admin
 page in tomcat 6.0.16.

   
Because tomcat 6.0.x does not have the admin webapp.  It was dropped in 
tomcat 6.0 entirely.

--David

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


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



Re: Unable to view tomcat6.0.16 admin in Mac

2008-08-05 Thread Mark Thomas

Rob Mercer wrote:

Are there any plans to bring back the admin application?


No since no-one supported it.

Mark



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



Re: Unable to view tomcat6.0.16 admin in Mac

2008-08-05 Thread David Smith
As I understand, only if someone is willing to rewrite and maintain it.  
It had some serious design flaws and hadn't been maintained in a while.


--David

Rob Mercer wrote:

Are there any plans to bring back the admin application?

-Rob

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2008 10:51 AM

To: Tomcat Users List
Subject: Re: Unable to view tomcat6.0.16 admin in Mac

prakash shanmugam wrote:
  

hello mark,
sorry, i dont find any relevant pages. right now i am looking for


admin
  

page in tomcat 6.0.16.

  

Because tomcat 6.0.x does not have the admin webapp.  It was dropped in 
tomcat 6.0 entirely.


--David

  


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



Virtual Host

2008-08-05 Thread nilanthan

I have a virtual host for my domain. Everything works fine but I am having an
issue with jsession/cookies, i think. What settings do I need to have the
jsessionID properly.
-- 
View this message in context: 
http://www.nabble.com/Virtual-Host-tp18834399p18834399.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Unable to view tomcat6.0.16 admin in Mac

2008-08-05 Thread Sameer Acharya
If there is a group planning to take up this task(ie. maintaining/re-writing 
admin. app.) Iam willing to help out. I had not used it much but I think an 
admin and configuration utility for Tomcat would be useful especially for 
novice users.

-Sameer


--- On Tue, 8/5/08, David Smith [EMAIL PROTECTED] wrote:

 From: David Smith [EMAIL PROTECTED]
 Subject: Re: Unable to view tomcat6.0.16 admin in Mac
 To: Tomcat Users List users@tomcat.apache.org
 Date: Tuesday, August 5, 2008, 9:08 PM
 As I understand, only if someone is willing to rewrite and
 maintain it.  
 It had some serious design flaws and hadn't been
 maintained in a while.
 
 --David
 
 Rob Mercer wrote:
  Are there any plans to bring back the admin
 application?
 
  -Rob
 
  -Original Message-
  From: David Smith [mailto:[EMAIL PROTECTED] 
  Sent: Tuesday, August 05, 2008 10:51 AM
  To: Tomcat Users List
  Subject: Re: Unable to view tomcat6.0.16 admin in Mac
 
  prakash shanmugam wrote:

  hello mark,
  sorry, i dont find any relevant pages. right
 now i am looking for
  
  admin

  page in tomcat 6.0.16.
 

  
  Because tomcat 6.0.x does not have the admin webapp. 
 It was dropped in 
  tomcat 6.0 entirely.
 
  --David
 

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


  

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



Re: Virtual Host

2008-08-05 Thread Hassan Schroeder
On Tue, Aug 5, 2008 at 9:08 AM, nilanthan [EMAIL PROTECTED] wrote:

 I have a virtual host for my domain. Everything works fine but I am having an
 issue with jsession/cookies, i think. What settings do I need to have the
 jsessionID properly.

Absolutely none. It works out of the box.

So if you think you're having an issue, it might be better to provide
detailed information about that, as well as describing the environment:
Tomcat version, Java version, etc.

-- 
Hassan Schroeder  [EMAIL PROTECTED]

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



Avast Antivirus and apache-tomcat-6.0.18.exe

2008-08-05 Thread Ангелин Лалев
Greetings, 

Avast Antivirus detects some strange trojan when the installer runs. Is it a 
known problem?
The virus information: 
File name: C:\DOCUME~1\Ownjo\LOCALS~1\Temp\nspDA.tmp\nsDB.tmp
Malware name: Win32:Trojan-gen {Other}
Malware type: Virus/Worm
VPS version: 080805-0, 08/05/2008

The file is donwloaded today at ~ 5:40GMT. MD5: 
fb827381b1eca44bf32273db548157d3 (matches)

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



RE: Avast Antivirus and apache-tomcat-6.0.18.exe

2008-08-05 Thread Martin Gainty

Which server has this virus?did you try the american servers ?
Martin __ Disclaimer and 
confidentiality note Everything in this e-mail and any attachments relates to 
the official business of Sender. This transmission is of a confidential nature 
and Sender does not endorse distribution to any party other than intended 
recipient. Sender does not necessarily endorse content contained within this 
transmission.  Date: Tue, 5 Aug 2008 20:07:20 +0300 From: [EMAIL PROTECTED] 
To: users@tomcat.apache.org Subject: Avast Antivirus and 
apache-tomcat-6.0.18.exe  Greetings,   Avast Antivirus detects some strange 
trojan when the installer runs. Is it a known problem? The virus information: 
 File name: C:\DOCUME~1\Ownjo\LOCALS~1\Temp\nspDA.tmp\nsDB.tmp Malware name: 
Win32:Trojan-gen {Other} Malware type: Virus/Worm VPS version: 080805-0, 
08/05/2008  The file is donwloaded today at ~ 5:40GMT. MD5: 
fb827381b1eca44bf32273db548157d3 (matches)  
- To start 
a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL 
PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 
_
Get more from your digital life.  Find out how.
http://www.windowslive.com/default.html?ocid=TXT_TAGLM_WL_Home2_082008

Re: Avast Antivirus and apache-tomcat-6.0.18.exe

2008-08-05 Thread Mark Thomas

Martin Gainty wrote:

Which server has this virus?did you try the american servers ?


The MD5 matches - it is irrelevant where he got it from it is the same file.

Mark



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



Re: Avast Antivirus and apache-tomcat-6.0.18.exe

2008-08-05 Thread Mark Thomas

Ангелин Лалев wrote:
Greetings, 


Avast Antivirus detects some strange trojan when the installer runs. Is it a 
known problem?


It isn't but I see the same issue. Let me do some more testing.

Mark



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



Re: Re: Avast Antivirus and apache-tomcat-6.0.18.exe

2008-08-05 Thread Ангелин Лалев
Apparently the address is from Bulgarian mirror, where I am automatically 
redirected 
when i load the http://tomcat.apache.org/download-60.cgi.
The md5 sum is from there too.

If the alert is reproducable on binaries from other mirrors that still don't 
mean it's a virus.
I had false warnings with Avast before.

http://apache.online.bg/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.exe



  Original letter 
 От:  Mark Thomas 
 Относно: Re: Avast Antivirus and apache-tomcat-6.0.18.exe
 До: Tomcat Users List 
 Изпратено на: Вторник, 2008, Август 5 20:34:35 EEST

 Angelin Lalev wrote:
  Greetings, 
  
  Avast Antivirus detects some strange trojan when the installer runs. Is it 
  a known problem?
 
 It isn't but I see the same issue. Let me do some more testing.
 
 Mark
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



Re: Avast Antivirus and apache-tomcat-6.0.18.exe

2008-08-05 Thread Mark Thomas

Ангелин Лалев wrote:
Apparently the address is from Bulgarian mirror, where I am automatically redirected 
when i load the http://tomcat.apache.org/download-60.cgi.

The md5 sum is from there too.

If the alert is reproducable on binaries from other mirrors that still don't 
mean it's a virus.
I had false warnings with Avast before.


Indeed. That is what I am trying to establish.

Mark



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



#of Site can be run on single Tomcat Instance?

2008-08-05 Thread Tomcat User6


I am running around 10 different site on single Tomcat Instnace i.e. 6.0. I
am facing some unexpected errors while running some of the sites. Everytime
I restart the Tomcat, the same error is throwing by individual site.

This is the error..

java.lang.NoClassDefFoundError:
com/opensymphony/xwork2/util/profiling/UtilTimerStack

org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:425)

I have Struts2 integrated in all sites. everytime this error appears on
different-different sites.

Is there any limitation of #of sites can be run on tomcat or so.?

If this is not the issue then, what can be other possible causes.?
 
-- 
View this message in context: 
http://www.nabble.com/-of-Site-can-be-run-on-single-Tomcat-Instance--tp18838809p18838809.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Avast Antivirus and apache-tomcat-6.0.18.exe

2008-08-05 Thread Mark Thomas

Mark Thomas wrote:

Ангелин Лалев wrote:
Apparently the address is from Bulgarian mirror, where I am 
automatically redirected when i load the 
http://tomcat.apache.org/download-60.cgi.

The md5 sum is from there too.

If the alert is reproducable on binaries from other mirrors that still 
don't mean it's a virus.

I had false warnings with Avast before.


Indeed. That is what I am trying to establish.


I am as sure as I can be that this is a false positive.

Mark



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



List remote files in Servlet

2008-08-05 Thread Nathan Thatcher
I am experiencing a little problem with Tomcat 6.0 and I haven't been
able to determine the cause or solution. In a standalone Java
application I can list the files from a remote directory like this:

File[] list = new File(//192.168.0.1/shared_dir).listFiles();

When I execute the same code in a servlet running on the same machine
the call to listFiles() always returns null. Is this a security
problem? I am not seeing any errors in the logs and I haven't changed
any of the default security settings for Tomcat of Java. Since I don't
know what the problem is I have had a hard time tracking down a
solution online. Any idea why listFiles() doesn't work in a servlet?

Thanks

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



Re: List remote files in Servlet

2008-08-05 Thread Steve Ochani
Date sent:  Tue, 05 Aug 2008 15:45:26 -0600
From:   Nathan Thatcher [EMAIL PROTECTED]
Subject:List remote files in Servlet
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 I am experiencing a little problem with Tomcat 6.0 and I haven't been
 able to determine the cause or solution. In a standalone Java
 application I can list the files from a remote directory like this:
 
 File[] list = new File(//192.168.0.1/shared_dir).listFiles();
 
 When I execute the same code in a servlet running on the same machine
 the call to listFiles() always returns null. Is this a security
 problem? I am not seeing any errors in the logs and I haven't changed
 any of the default security settings for Tomcat of Java. Since I don't
 know what the problem is I have had a hard time tracking down a
 solution online. Any idea why listFiles() doesn't work in a servlet?
 

The most likely problem is that Tomcat is running under a user that doesn't 
have permission 
to that share.


-Steve O.




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



Re: List remote files in Servlet

2008-08-05 Thread Nathan Thatcher
On Tue, Aug 5, 2008 at 3:53 PM, Steve Ochani [EMAIL PROTECTED] wrote:
 Date sent:  Tue, 05 Aug 2008 15:45:26 -0600
 From:   Nathan Thatcher [EMAIL PROTECTED]
 Subject:List remote files in Servlet
 To: users@tomcat.apache.org
 Send reply to:  Tomcat Users List users@tomcat.apache.org

 I am experiencing a little problem with Tomcat 6.0 and I haven't been
 able to determine the cause or solution. In a standalone Java
 application I can list the files from a remote directory like this:

 File[] list = new File(//192.168.0.1/shared_dir).listFiles();

 When I execute the same code in a servlet running on the same machine
 the call to listFiles() always returns null. Is this a security
 problem? I am not seeing any errors in the logs and I haven't changed
 any of the default security settings for Tomcat of Java. Since I don't
 know what the problem is I have had a hard time tracking down a
 solution online. Any idea why listFiles() doesn't work in a servlet?


 The most likely problem is that Tomcat is running under a user that doesn't 
 have permission
 to that share.


 -Steve O.




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



Tomcat is running on a windows machine under the SYSTEM account so I
assume that it has the permissions. Is there a way to check if this is
the problem?

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



Re: Virtual Host

2008-08-05 Thread Warren Killian
Hi Nilanthan,

Yeah, I think Hassan is correct.  Cookies deal more with HTTP Headers than
Tomcat itself.  You don't have to do anything at all to Tomcat for it to
support cookies out of the box.  You may want to take a closer look at your
particular web application and how it is (or is not as the case may be)
handling URL rewriting (the rewriting of URL's to include the jsession
id).

Hope this helps.

On Tue, Aug 5, 2008 at 12:48 PM, Hassan Schroeder 
[EMAIL PROTECTED] wrote:

 On Tue, Aug 5, 2008 at 9:08 AM, nilanthan [EMAIL PROTECTED] wrote:
 
  I have a virtual host for my domain. Everything works fine but I am
 having an
  issue with jsession/cookies, i think. What settings do I need to have the
  jsessionID properly.

 Absolutely none. It works out of the box.

 So if you think you're having an issue, it might be better to provide
 detailed information about that, as well as describing the environment:
 Tomcat version, Java version, etc.

 --
 Hassan Schroeder  [EMAIL PROTECTED]

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




-- 
Cheers,
Warren Killian
[EMAIL PROTECTED]


Re: #of Site can be run on single Tomcat Instance?

2008-08-05 Thread Warren Killian
Hi,

I don't know of any specific limit to the number of web apps you can run on
a single instance of Tomcat.  I think it may only be limited by the amount
of system resources you can sweat out of your hardware.  Where I work, we
have one instance of Tomcat which has probably 30 distinct web applications
deployed to it and it still performs nicely.  Hopefully, someone with more
struts knowledge than I can answer your struts question.

On Tue, Aug 5, 2008 at 4:01 PM, Tomcat User6 [EMAIL PROTECTED] wrote:



 I am running around 10 different site on single Tomcat Instnace i.e. 6.0. I
 am facing some unexpected errors while running some of the sites. Everytime
 I restart the Tomcat, the same error is throwing by individual site.

 This is the error..

 java.lang.NoClassDefFoundError:
 com/opensymphony/xwork2/util/profiling/UtilTimerStack


 org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:425)

 I have Struts2 integrated in all sites. everytime this error appears on
 different-different sites.

 Is there any limitation of #of sites can be run on tomcat or so.?

 If this is not the issue then, what can be other possible causes.?

 --
 View this message in context:
 http://www.nabble.com/-of-Site-can-be-run-on-single-Tomcat-Instance--tp18838809p18838809.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


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




Re: List remote files in Servlet

2008-08-05 Thread Nathan Thatcher
Turns out that was the issue. I set tomcat to run as a local user and
now it works. Thanks for the help.

On Tue, Aug 5, 2008 at 4:15 PM, Nathan Thatcher [EMAIL PROTECTED] wrote:
 On Tue, Aug 5, 2008 at 3:53 PM, Steve Ochani [EMAIL PROTECTED] wrote:
 Date sent:  Tue, 05 Aug 2008 15:45:26 -0600
 From:   Nathan Thatcher [EMAIL PROTECTED]
 Subject:List remote files in Servlet
 To: users@tomcat.apache.org
 Send reply to:  Tomcat Users List users@tomcat.apache.org

 I am experiencing a little problem with Tomcat 6.0 and I haven't been
 able to determine the cause or solution. In a standalone Java
 application I can list the files from a remote directory like this:

 File[] list = new File(//192.168.0.1/shared_dir).listFiles();

 When I execute the same code in a servlet running on the same machine
 the call to listFiles() always returns null. Is this a security
 problem? I am not seeing any errors in the logs and I haven't changed
 any of the default security settings for Tomcat of Java. Since I don't
 know what the problem is I have had a hard time tracking down a
 solution online. Any idea why listFiles() doesn't work in a servlet?


 The most likely problem is that Tomcat is running under a user that doesn't 
 have permission
 to that share.


 -Steve O.




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



 Tomcat is running on a windows machine under the SYSTEM account so I
 assume that it has the permissions. Is there a way to check if this is
 the problem?


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



Re: Avast Antivirus and apache-tomcat-6.0.18.exe

2008-08-05 Thread Johnny Kewl


- Original Message - 
From: Mark Thomas [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, August 05, 2008 11:09 PM
Subject: Re: Avast Antivirus and apache-tomcat-6.0.18.exe



Mark Thomas wrote:

Ангелин Лалев wrote:
Apparently the address is from Bulgarian mirror, where I am 
automatically redirected when i load the 
http://tomcat.apache.org/download-60.cgi.

The md5 sum is from there too.

If the alert is reproducable on binaries from other mirrors that still 
don't mean it's a virus.

I had false warnings with Avast before.


Indeed. That is what I am trying to establish.


I am as sure as I can be that this is a false positive.

Mark


Hi Mark, I think so to, I scanned the zips, scanned native binaries... 
conclude either something has snuck onto the MS build machine, or Avast is 
getting it wrong... I believe the later because it doesnt actually identify 
the virus, Win32 gen seems to be a generic warning with no description...
But all this doesnt really matter... one cant recommend users ignore it, 
Avast is popular... and its just the kind of thing competition will thrive 
on... its negative marketing for TC.
It will probably go away with a slight mod to the build and I think it has 
to be marked as urgent and the instant the next build is ready, its 
replaced.

I would actually remove it... just the Win32 service... the zip is fine.
Regards
JK 



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



Parsing a URL to see if a param exists

2008-08-05 Thread David Wall
Is there an API call to parse an URL I have as a String so that I can 
determine if a given param exists? 

I know that when processing from Tomcat, I can do 
request.getParameterValues() for the URL of my servlet, but I'd like to 
know if the URL used to arrive at my page includes a given parameter on 
the URL itself (and not from a POST hidden param that will also be 
returned by getParameterValues).


Thanks,
David

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



Re: Parsing a URL to see if a param exists

2008-08-05 Thread Tommy Pham

--- On Tue, 8/5/08, David Wall [EMAIL PROTECTED] wrote:

 From: David Wall [EMAIL PROTECTED]
 Subject: Parsing a URL to see if a param exists
 To: Tomcat Users List users@tomcat.apache.org
 Date: Tuesday, August 5, 2008, 7:17 PM
 Is there an API call to parse an URL I have as a String so
 that I can 
 determine if a given param exists? 
 

http://java.sun.com/docs/books/tutorial/networking/urls/urlInfo.html

It breaks down every component of the url (protocol, domain name, etc).  Is 
that what you're looking for?

 I know that when processing from Tomcat, I can do 
 request.getParameterValues() for the URL of my servlet, but
 I'd like to 
 know if the URL used to arrive at my page includes a given
 parameter on 
 the URL itself (and not from a POST hidden param that will
 also be 
 returned by getParameterValues).
 
 Thanks,
 David
 


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



Monitoring tomcat process

2008-08-05 Thread Fu-Tung Cheng
Hi,

I was wondering what solutions people are using to monitor their tomcat 
processes.  

I've been having a look at the following:

http://code.google.com/p/tomcat-monitor/wiki/TomcatMonitor

Are there better scripts or alternatives for handling restarting the vm in the 
case of out of memory errors or for alerting admin that the server is non 
responsive?

Thank you,

Fu-Tung


  


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



RE: Monitoring tomcat process

2008-08-05 Thread Martin Gainty

'top' shows the most resource consumptive processeshttp://www.unixtop.org/
HTHMartin __ Disclaimer and 
confidentiality note Everything in this e-mail and any attachments relates to 
the official business of Sender. This transmission is of a confidential nature 
and Sender does not endorse distribution to any party other than intended 
recipient. Sender does not necessarily endorse content contained within this 
transmission.  Date: Tue, 5 Aug 2008 15:50:10 -0700 From: [EMAIL PROTECTED] 
Subject: Monitoring tomcat process To: users@tomcat.apache.org  Hi,  I was 
wondering what solutions people are using to monitor their tomcat processes.  
 I've been having a look at the following:  
http://code.google.com/p/tomcat-monitor/wiki/TomcatMonitor  Are there better 
scripts or alternatives for handling restarting the vm in the case of out of 
memory errors or for alerting admin that the server is non responsive?  Thank 
you,  Fu-Tung  
- To start 
a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL 
PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 
_
Reveal your inner athlete and share it with friends on Windows Live.
http://revealyourinnerathlete.windowslive.com?locale=en-usocid=TXT_TAGLM_WLYIA_whichathlete_us

Re: Parsing a URL to see if a param exists

2008-08-05 Thread David Wall



http://java.sun.com/docs/books/tutorial/networking/urls/urlInfo.html

It breaks down every component of the url (protocol, domain name, etc).  Is 
that what you're looking for?
  


Not really since I just need to process the query string portion to see 
if a given param exists or not.  I'm using a simple homegrown parser now:


   public boolean isParamInUrl(String url, String paramName)
   {
   int pos = url.indexOf(?);
   if ( pos  0 )
   url = url.substring(pos);
   String[] paramValues = url.split();
   if ( paramValues == null )
   return false;
  
   for( String paramValue : paramValues )

   {
   String[] paramAndValue = paramValue.split(=);
   if ( paramAndValue == null || paramAndValue.length != 2 )
   return false;
   if ( paramAndValue[0].equals(paramName) )
   return true;
   }
   return false;
   }

The concern is whether this is valid should the URL have complex params 
and such based on encoding schemes.  I mean, it just splits the url 
query string into an array of param-values '', and then splits that by 
'=' without concern for any encoding.


David



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



Re: Parsing a URL to see if a param exists

2008-08-05 Thread Tommy Pham

--- On Tue, 8/5/08, David Wall [EMAIL PROTECTED] wrote:

 From: David Wall [EMAIL PROTECTED]
 Subject: Re: Parsing a URL to see if a param exists
 To: Tomcat Users List users@tomcat.apache.org
 Date: Tuesday, August 5, 2008, 7:50 PM
 
 http://java.sun.com/docs/books/tutorial/networking/urls/urlInfo.html
 
  It breaks down every component of the url (protocol,
 domain name, etc).  Is that what you're looking for?

 
 Not really since I just need to process the query string
 portion to see 
 if a given param exists or not.  I'm using a simple
 homegrown parser now:
 
 public boolean isParamInUrl(String url, String
 paramName)
 {
 int pos = url.indexOf(?);
 if ( pos  0 )
 url = url.substring(pos);
 String[] paramValues =
 url.split();
 if ( paramValues == null )
 return false;

 for( String paramValue : paramValues )
 {
 String[] paramAndValue =
 paramValue.split(=);
 if ( paramAndValue == null ||
 paramAndValue.length != 2 )
 return false;
 if ( paramAndValue[0].equals(paramName) )
 return true;
 }
 return false;
 }
 
 The concern is whether this is valid should the URL have
 complex params 
 and such based on encoding schemes.  I mean, it just splits
 the url 
 query string into an array of param-values '',
 and then splits that by 
 '=' without concern for any encoding.
 
 David
 
 
Hi,

Wouldn't be faster/less coding if you just use this?

URL aURL = new URL(url);
String urlParams = aURL.getQuery();
if (urlParams.contains(paramName)) {
// proccess as needed if paramName exists
} else {
// process as otherwise
}

just a thought :)

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



Re: Avast Antivirus and apache-tomcat-6.0.18.exe

2008-08-05 Thread Len Popp
2008/8/5 Johnny Kewl [EMAIL PROTECTED]:

 - Original Message - From: Mark Thomas [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Tuesday, August 05, 2008 11:09 PM
 Subject: Re: Avast Antivirus and apache-tomcat-6.0.18.exe


 Mark Thomas wrote:

 Ангелин Лалев wrote:

 Apparently the address is from Bulgarian mirror, where I am
 automatically redirected when i load the
 http://tomcat.apache.org/download-60.cgi.
 The md5 sum is from there too.

 If the alert is reproducable on binaries from other mirrors that still
 don't mean it's a virus.
 I had false warnings with Avast before.

 Indeed. That is what I am trying to establish.

 I am as sure as I can be that this is a false positive.

 Mark

 Hi Mark, I think so to, I scanned the zips, scanned native binaries...
 conclude either something has snuck onto the MS build machine, or Avast is
 getting it wrong... I believe the later because it doesnt actually identify
 the virus, Win32 gen seems to be a generic warning with no description...
 But all this doesnt really matter... one cant recommend users ignore it,
 Avast is popular... and its just the kind of thing competition will thrive
 on... its negative marketing for TC.
 It will probably go away with a slight mod to the build and I think it has
 to be marked as urgent and the instant the next build is ready, its
 replaced.
 I would actually remove it... just the Win32 service... the zip is fine.
 Regards
 JK

I agree that a false positive from Avast shouldn't be ignored, but I
think the correct solution is for someone @apache.org to contact Avast
and ask them to either explain what the problem is or remove Tomcat
from their virus definitions.

Sometimes the problem is caused by the installer program. There have
been cases where the anti-virus guys mistakenly extract a signature
from the installer program rather than the from the malware itself,
which causes false positives on other programs using the same
installer. Just a guess, but it seems likely here because Tomcat uses
the popular open-source Nullsoft installer.
-- 
Len


Re: Parsing a URL to see if a param exists

2008-08-05 Thread David Wall



if ( pos  0 )
url = url.substring(pos);


Found a bug in that this should be pos+1 to remove the ?.


if ( paramAndValue[0].equals(paramName) )
return true;

We're also doing a URLDecoder.decode on the paramAndValue[0] in case the 
param name was encoded (though in practice it's rarely done).




Wouldn't be faster/less coding if you just use this?

URL aURL = new URL(url);
String urlParams = aURL.getQuery();
if (urlParams.contains(paramName)) {
// proccess as needed if paramName exists
} else {
// process as otherwise
}
  
That would find the paramName even if was a substring of a param name or 
the param value.  That is, if I'm checking if param name exists, and 
the URL query string was firstname=bob or sort=nameOrder that code 
would say name exists but no such name param is there.


David


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



RE: Setting up Comet on Tomcat 6

2008-08-05 Thread Talal Rabaa
I appreciate your feedback, it led me to the problem.  My environment was setup 
using an invoker servlet.  It didn't occur to me to explicitly map the Comet 
servlet.  Once I made the entry in web.xml I was able to see the results you 
provided.

Cheers!

   Anthony

-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2008 2:37 PM
To: Tomcat Users List
Subject: Re: Setting up Comet on Tomcat 6

I took your servlet, compiled it, put it in WEB-INF/classes/testing/comet

then in web.xml I put
  servlet
servlet-nametestcomet/servlet-name
servlet-classtesting.comet.CometConnection/servlet-class
  /servlet
 
  servlet-mapping
servlet-nametestcomet/servlet-name
url-pattern/comet/url-pattern
  /servlet-mapping

server.xml has
Connector port=8080 
protocol=org.apache.coyote.http11.Http11NioProtocol 
connectionTimeout=1
tomcatAuthentication=false keepaliveTimeout=5000
backlog=50 maxThreads=300 /


hit http://localhost:8080/comet with my browser, output is

Comet test servlet initialized.
Comet test initialized.
Received event BEGIN


Filip
Talal Rabaa wrote:
 package testing.comet;

 import java.io.IOException;

 import javax.servlet.ServletException;
 import javax.servlet.http.HttpServlet;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;

 import org.apache.catalina.CometEvent;
 import org.apache.catalina.CometProcessor;

 public class CometConnection extends HttpServlet implements CometProcessor
 {
   public CometConnection()
   {
   System.err.println(Comet test servlet initialized.);
   }
   
   public void init()
   {
   System.err.println(Comet test initialized.);
   }
   
   public void doGet(HttpServletRequest request, HttpServletResponse 
 response) throws IOException
   {
   System.err.println(doGet called.);
   }
   
   public void doPost(HttpServletRequest request, HttpServletResponse 
 response) throws IOException
   {
   System.err.println(doPost called.);
   }
   
   public void event(CometEvent cometEvent) throws IOException, 
 ServletException
   {
   System.err.println(Received event  + 
 cometEvent.getEventType().toString());
   }
   
   protected void service(HttpServletRequest request, HttpServletResponse 
 response) throws ServletException, IOException
   {
   
 response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, You must be 
 using the APR or NIO connector to get the event method called.);
   }
 }

 -Original Message-
 From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 30, 2008 1:28 PM
 To: Tomcat Users List
 Subject: Re: Setting up Comet on Tomcat 6

 send us your test class


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


   


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


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



Re: Tomcat 6 Cluster Woes

2008-08-05 Thread Filip Hanik - Dev Lists
have you by any chance deployed your apps in Host elements with a 
different name?


Filip

Zachariah Zachariah wrote:

Hi,

I am trying to set up a cluster of tomcat servers to serve up my 
dynamic content with session replication. Although failover seems to 
be working with each node aware of the other, Session replication does 
not work quite as expected. I get the error WARNING: Context manager 
doesn't exist warning. For testing I use the Sessions example in the 
examples web application of the tomcat distribtion. Although I see 
session variables created through one node the other node does not 
receive the variables.


Here is how I have set up the nodes:

Zither: NFS server serving apache/tomcat binaries and config files
Z2: node1 running Apache 2.2 and Tomcat 6
Z3: node2 running Apache 2.2 and Tomcat 6

Load balancer: mod_jk
CATALINA_BASE: /usr/local/tomcat/node name
CATALINA_HOME: /usr/local/tomcat

Each node has its own config and logs directory under CATALINA_BASE

My server.xml file with cluser section shown:

/ Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster
channelSendOptions=8
!--
Manager className=org.apache.catalina.ha.session.BackupManager
expireSessionsOnShutdown=false
notifyListenersOnReplication=true
mapSendOptions=6/
--
Manager className=org.apache.catalina.ha.session.DeltaManager
expireSessionsOnShutdown=false
notifyListenersOnReplication=true/

Channel className=org.apache.catalina.tribes.group.GroupChannel
Membership 
className=org.apache.catalina.tribes.membership.McastService

address=228.0.0.4
port=45564
frequency=500
dropTime=3000/
Receiver 
className=org.apache.catalina.tribes.transport.nio.NioReceiver

address=z2
port=5000
selectorTimeout=100
maxThreads=6/

Sender 
className=org.apache.catalina.tribes.transport.ReplicationTransmitter
Transport 
className=org.apache.catalina.tribes.transport.nio.PooledParallelSender/ 


/Sender
Interceptor 
className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector/ 

Interceptor 
className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor/ 

Interceptor 
className=org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor/ 


/Channel

Valve className=org.apache.catalina.ha.tcp.ReplicationValve
filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;/ 


Valve className=org.apache.catalina.ha.session.JvmRouteBinderValve/

!--
Deployer className=org.apache.catalina.ha.deploy.FarmWarDeployer
tempDir=/tmp/war-temp/
deployDir=/tmp/war-deploy/
watchDir=/tmp/war-listen/
watchEnabled=false/
--

ClusterListener 
className=org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener/ 

ClusterListener 
className=org.apache.catalina.ha.session.ClusterSessionListener/

/Cluster/



Here are the snippets from the Catalina.out log files of Z1 and Z2

From NODE Z2

/Aug 1, 2008 12:09:11 PM org.apache.catalina.ha.session.DeltaManager 
start

INFO: Starting clustering manager at /manager
Aug 1, 2008 12:09:11 PM org.apache.catalina.ha.session.DeltaManager 
getAllClusterSessions
INFO: Manager [z2#/manager]: skipping state transfer. No members 
active in cluster group.
Aug 1, 2008 12:09:11 PM 
org.apache.catalina.ha.session.JvmRouteBinderValve start

INFO: JvmRouteBinderValve started
Aug 1, 2008 12:09:11 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Aug 1, 2008 12:09:11 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Aug 1, 2008 12:09:11 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/34 config=null
Aug 1, 2008 12:09:11 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3552 ms
Aug 1, 2008 12:13:25 PM org.apache.catalina.tribes.io.BufferPool 
getBufferPool
INFO: Created a buffer pool with max size:104857600 bytes of 
type:org.apache.catalina.tribes.io.BufferPool15Impl
Aug 1, 2008 12:13:25 PM org.apache.catalina.ha.tcp.SimpleTcpCluster 
memberAdded
INFO: Replication member 
added:org.apache.catalina.tribes.membership.MemberImpl[tcp://z3:5000,z3,5000, 
alive=1015,id={111 -85 -38 -109 -29 -125 69 -7

1 -118 121 71 35 86 80 86 20 }, payload={}, command={}, domain={}, ]
Aug 1, 2008 12:13:27 PM 
org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:z3#/TestWebApp
Aug 1, 2008 12:14:27 PM 
org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:z3#/examples
Aug 1, 2008 12:15:27 PM 
org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:z3#/CVS
Aug 1, 2008 12:16:27 PM 
org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:z3#/manager
Aug 1, 2008 5:20:09 PM 
org.apache.catalina.ha.session.ClusterSessionListener messageReceived

WARNING: Context manager doesn't exist:z3#/examples
Aug 1, 2008 5:20:29 PM 

Permission Denied

2008-08-05 Thread Charles Lim
Hi,
I got the error shown below when i run startup.bat. Seems to have 2 main
error here:
1. Tomcat not able to find the library that allows optimal performance in
production environment.
2. There is a Permission Denied while trying to initialize endpoint.

Currently using:
Microsoft Vista
jdk1.6.0_10 (tried jdk1.5.16 also does not work)

What I have tried:
* has disabled the firewall
* start the DOS session as administrator
* change the port number 8080 in server.xml to 8383.

Run out of ideas on how to solve it...so any help will be much appreciated.

Regards,
yclim





06-Aug-08 PM 12:02 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performanc
e in production environments was not found on the java.library.path:
C:\Program
Files\Java\jre1.6.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows
;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows
;C:\Windows\System32\Wbem;C:\PROGRA~1\COMMON~1\ULEADS~1\MPEG;C:\Program
Files\No
rman\Npm\Bin;C:\Program Files\jEdit;C:\Program Files\QuickTime\QTSystem\
06-Aug-08 PM 12:02 org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.SocketException: Permission denied: listen failed
at java.net.PlainSocketImpl.socketListen(Native Method)
at java.net.PlainSocketImpl.listen(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.init(Unknown Source)
at java.net.ServerSocket.init(Unknown Source)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(De
faultServerSocketFactory.java:50)
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:496)
at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)
at
org.apache.catalina.connector.Connector.initialize(Connector.java:105
8)
at
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:677)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:795)
at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
06-Aug-08 PM 12:02 org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException:  Protocol handler initialization failed:
java.net.SocketExce
ption: Permission denied: listen failed
at
org.apache.catalina.connector.Connector.initialize(Connector.java:106
0)
at
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:677)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:795)
at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
06-Aug-08 PM 12:02 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 904 ms
06-Aug-08 PM 12:02 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
06-Aug-08 PM 12:02 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
06-Aug-08 PM 12:02 org.apache.coyote.http11.Http11Protocol start
SEVERE: Error starting endpoint
java.net.SocketException: Permission denied: listen failed
at java.net.PlainSocketImpl.socketListen(Native Method)
at java.net.PlainSocketImpl.listen(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.init(Unknown Source)
at java.net.ServerSocket.init(Unknown Source)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(De
faultServerSocketFactory.java:50)
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:496)
at
org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:519)
at
org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203
)
at
org.apache.catalina.connector.Connector.start(Connector.java:1131)
at
org.apache.catalina.core.StandardService.start(StandardService.java:5
31)
at

Setting CATALINA_BASE failed with tomcat-6.0.18

2008-08-05 Thread Zemian Deng
Hello list,

When I try the following it works with tomcat-6.0.14, but failed on
tomcat-6.0.18

$ mkdir -p /tmp/mybase/conf
$ cp /opt/apache-tomcat-6.0.18/conf/server.xml /tmp/mybase/conf
$ export CATALINA_BASE=/tmp/mybase
$ /opt/apache-tomcat-6.0.18/bin/catalina.sh run
Using CATALINA_BASE:   /tmp/mytomcatbase
Using CATALINA_HOME:   /opt/apache-tomcat-6.0.18
Using CATALINA_TMPDIR: /tmp/mytomcatbase/temp
Using JRE_HOME:
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
Exception in thread main java.lang.NoClassDefFoundError:

Is this a bug?

-- 
Sweet - a Scala web framework:
http://code.google.com/p/sweetscala


How to stop getting emails from Tomcat in my inbox but to remain subscribed

2008-08-05 Thread suman
Hi,
I get lots of emails from tomcat-apace mailing list and it's difficult to
live  with them. I preferred a digest version everday/perweek.
Is it possible to stop getting emails  but to remain subscribed in
tomcat-apache mailing list?

Thank you.
-suman


tomcat as a proxy via a proxy

2008-08-05 Thread Steve Cameron

Hello

I want to make use of a proxy jsp that takes a POST request and sends it on
another server, receives the request and passes it back to the browser.

The jsp is making use of the org.apache.commons.httpclient.HttpClient class.

However my Tomcat instance cannot retrieve the request from the second
server as it must send the request via a Proxy which requires
authentication.

I have tried adding the following options to the JAVA_OPTS in the
catalina.bat file.

-Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080 -DproxyUser=xxx
-DproxyPassword=xx

However I get a java.io.ConnectException Connection timed out

Has anyone else had more success??

Thanks

Steve Cameron
-- 
View this message in context: 
http://www.nabble.com/tomcat-as-a-proxy-via-a-proxy-tp18844302p18844302.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Re: Avast Antivirus and apache-tomcat-6.0.18.exe

2008-08-05 Thread Ангелин Лалев
Thanks for the fast replies!
I'm going to proceed with installation. 
Maybe Avast guys should be notified, but that must be done from someone 
regular with the project.  

  Оригинално писмо 
 От:  Len Popp 
 Относно: Re: Avast Antivirus and apache-tomcat-6.0.18.exe
 До: Tomcat Users List 
 Изпратено на: Сряда, 2008, Август 6 03:09:50 EEST

 2008/8/5 Johnny Kewl :
 
  - Original Message - From: Mark Thomas 
  To: Tomcat Users List 
  Sent: Tuesday, August 05, 2008 11:09 PM
  Subject: Re: Avast Antivirus and apache-tomcat-6.0.18.exe
 
 
  Mark Thomas wrote:
 
  Ангелин Лалев wrote:
 
  Apparently the address is from Bulgarian mirror, where I am
  automatically redirected when i load the
  http://tomcat.apache.org/download-60.cgi.
  The md5 sum is from there too.
 
  If the alert is reproducable on binaries from other mirrors that still
  don't mean it's a virus.
  I had false warnings with Avast before.
 
  Indeed. That is what I am trying to establish.
 
  I am as sure as I can be that this is a false positive.
 
  Mark
 
  Hi Mark, I think so to, I scanned the zips, scanned native binaries...
  conclude either something has snuck onto the MS build machine, or Avast is
  getting it wrong... I believe the later because it doesnt actually identify
  the virus, Win32 gen seems to be a generic warning with no description...
  But all this doesnt really matter... one cant recommend users ignore it,
  Avast is popular... and its just the kind of thing competition will thrive
  on... its negative marketing for TC.
  It will probably go away with a slight mod to the build and I think it has
  to be marked as urgent and the instant the next build is ready, its
  replaced.
  I would actually remove it... just the Win32 service... the zip is fine.
  Regards
  JK
 
 I agree that a false positive from Avast shouldn't be ignored, but I
 think the correct solution is for someone @apache.org to contact Avast
 and ask them to either explain what the problem is or remove Tomcat
 from their virus definitions.
 
 Sometimes the problem is caused by the installer program. There have
 been cases where the anti-virus guys mistakenly extract a signature
 from the installer program rather than the from the malware itself,
 which causes false positives on other programs using the same
 installer. Just a guess, but it seems likely here because Tomcat uses
 the popular open-source Nullsoft installer.
 -- 
 Len
 

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



Tomcat 6.0.18 startup Permission Denied Error:listen failed initializing endpoint

2008-08-05 Thread Charles Lim
Hi, (reposted to provide more meaningful subject)
I got the error shown below when i run startup.bat. Seems to have 2 main
error here:
1. Tomcat not able to find the library that allows optimal performance in
production environment.
2. There is a Permission Denied while trying to initialize endpoint.

Currently using:
Microsoft Vista
jdk1.6.0_10 (tried jdk1.5.16 also does not work)
tomcat 6.0.18

What I have tried:
* has disabled the firewall
* start the DOS session as administrator
* change the port number 8080 in server.xml to 8383.

Run out of ideas on how to solve it...so any help will be much appreciated.

Regards,
yclim

06-Aug-08 PM 12:02 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performanc
e in production environments was not found on the java.library.path:
C:\Program
Files\Java\jre1.6.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows
;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows
;C:\Windows\System32\Wbem;C:\PROGRA~1\COMMON~1\ULEADS~1\MPEG;C:\Program
Files\No
rman\Npm\Bin;C:\Program Files\jEdit;C:\Program Files\QuickTime\QTSystem\
06-Aug-08 PM 12:02 org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.SocketException: Permission denied: listen failed
at java.net.PlainSocketImpl.socketListen(Native Method)
at java.net.PlainSocketImpl.listen(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.init(Unknown Source)
at java.net.ServerSocket.init(Unknown Source)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(De
faultServerSocketFactory.java:50)
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:496)
at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)
at
org.apache.catalina.connector.Connector.initialize(Connector.java:105
8)
at
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:677)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:795)
at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
06-Aug-08 PM 12:02 org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException:  Protocol handler initialization failed:
java.net.SocketExce
ption: Permission denied: listen failed
at
org.apache.catalina.connector.Connector.initialize(Connector.java:106
0)
at
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:677)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:795)
at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
06-Aug-08 PM 12:02 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 904 ms
06-Aug-08 PM 12:02 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
06-Aug-08 PM 12:02 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
06-Aug-08 PM 12:02 org.apache.coyote.http11.Http11Protocol start
SEVERE: Error starting endpoint
java.net.SocketException: Permission denied: listen failed
at java.net.PlainSocketImpl.socketListen(Native Method)
at java.net.PlainSocketImpl.listen(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.init(Unknown Source)
at java.net.ServerSocket.init(Unknown Source)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(De
faultServerSocketFactory.java:50)
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:496)
at
org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:519)
at
org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203
)
at
org.apache.catalina.connector.Connector.start(Connector.java:1131)
at