Tomcat 5.5.9 not picking up changes

2005-08-24 Thread MC Moisei
I configured Tomcat 5.5.9 for my development station. I moved from 4.1.30 
where the classes where pickup on the fly. (Maybe I shouldn't have moved 
since all worked so nice)


I know things changed since 4.1 but I think I'm doing thing right. In conf 
folder I defined the context file like below


Context debug=0 reloadable=true crossContext=true 
antiJARLocking=true antiResourceLocking=true 
docBase=c:/projects/projname/webApplication/



Anything else I should do ? Anyone is debugging using this configuration ? 
It's pretty annoying to restart server after changes.



Your thoughts are appreciated!!!
MC



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



Re: Tomcat 5.5.9 not picking up changes

2005-08-24 Thread MC Moisei

As you could see in my post I do have reloadable=true in my context file.

Thanks for replying,
MC






From: Rakesh Kumar [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: tomcat-user@jakarta.apache.org
Subject: Re: Tomcat 5.5.9 not picking up changes
Date: Wed, 24 Aug 2005 11:54:30 +0530

I use Tomcat 5.0.28 and as per this version, you should add 
reloadable=true to

your context definition for the required behaviour.

Rakesh Kumar,


Quoting MC Moisei [EMAIL PROTECTED]:

I configured Tomcat 5.5.9 for my development station. I moved from 4.1.30 
where the classes where pickup on the fly. (Maybe I shouldn't have moved 
since all worked so nice)


I know things changed since 4.1 but I think I'm doing thing right. In conf 
folder I defined the context file like below


Context debug=0 reloadable=true crossContext=true 
antiJARLocking=true antiResourceLocking=true 
docBase=c:/projects/projname/webApplication/



Anything else I should do ? Anyone is debugging using this configuration ? 
It's pretty annoying to restart server after changes.



Your thoughts are appreciated!!!
MC



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






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





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



RE: 5.5.9 on Ubuntu/Debian

2005-08-21 Thread MC Moisei

Hi,

I planning to start using Linux for a new site but a war file that deploys 
wondeful on Windows won't start on Linux. Here's the first error(see track). 
I'm using JDK 1.4.2.
I'm pretty sure is a rights thing. I'm using the jsvc daemon loaded that 
switches to tomcat user.


Another error is that the postgress driver won't load. (Cannot load JDBC 
driver class 'org.postgresql.Driver' java.lang.ClassNotFoundException: 
org.postgresql.Driver at 
java.net.URLClassLoader$1.run(URLClassLoader.java:199)



Here is the error

Aug 21, 2005 7:01:19 PM org.apache.catalina.startup.ExpandWar copy
SEVERE: Error copying 
/usr/local/tomcat/tomcat_home/webapps/webfolio/META-INF/MANIFEST.MF to 
/var/tmp/0-webfolio/META-INF/MANIFEST.MF

java.io.IOException: Invalid argument
at sun.nio.ch.FileChannelImpl.transferTo0(Native Method)
at 
sun.nio.ch.FileChannelImpl.transferToDirectly(FileChannelImpl.java:392)
at sun.nio.ch.FileChannelImpl.transferTo(FileChannelImpl.java:487)
at org.apache.catalina.startup.ExpandWar.copy(ExpandWar.java:228)
at org.apache.catalina.startup.ExpandWar.copy(ExpandWar.java:221)
	at 
org.apache.catalina.startup.ContextConfig.antiLocking(ContextConfig.java:954)
	at 
org.apache.catalina.startup.ContextConfig.beforeStart(ContextConfig.java:991)
	at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:257)
	at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3904)
	at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)

at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
	at 
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:589)
	at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:536)

at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:471)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102)
	at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
	at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)
	at 
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:218)



Thanks,
Constantin
http://www.goodstockimages.com



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



Re: HELP: Tomcat 5.5.9 with jsvc as low priviledges user on Linux fails in Boots

2005-08-04 Thread MC Moisei

Thanks Rainer!

Meanwhile what I did was to give root access to the conf folder.That worked 
as a charm.


Right/Owner are
chown -R tomcat:tomcat /usr/local/tomcat
chown -R root:root /usr/local/tomcat/bin
chown -R root:root /usr/local/tomcat/common
chown -R root:root /usr/local/tomcat/conf

Having it in the memory is a much better way. I'm looking forward to get the 
5.5.11 release then.


MC




From: Rainer Jung [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: HELP: Tomcat 5.5.9 with jsvc as low priviledges user on Linux 
fails in Bootstrap

Date: Thu, 04 Aug 2005 15:22:19 +0200

CVS head now includes an improvement:

1) If the directory containing tomcat-users.xml is not writeable you will 
get a nice warning instead of a strange exception.
2) You can configure the MemoryUserDatabase with the attribute 
readonly=true. Then there will be not write attempt at all.


Details under

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

Will be included in 5.5.11 most probably sometime during august.

MC Moisei wrote:


Hi,

I manage to configure my tomcat with jsvc(common-daemon) and everything 
work great till I start to launch it as root. If I run it as tomcat user 
it does work great. If I try to run it as root from command prompt or from 
init.d I get the following exception ( see below )


Right are given as below
chown -R tomcat:tomcat /usr/local/tomcat
chown -R root:root /usr/local/tomcat/bin
chown -R root:root /usr/local/tomcat/common

This is not right - looks like the bootstrap is trying to access the Realm 
and there is no write access to the conf/tomcat-users.xml file. I can't 
believe the common-daemon not tomcat side didn't say a thing about this, I 
bet there are others experiencing the matter.
Do i have to disable Tomcat realms ? It doesn't sounds right. There is no 
way I'd give others write access on that.


Looking forward to hear from you if you experienced something similar.
Thanks,
MC




Aug 1, 2005 7:23:15 PM org.apache.naming.NamingContext lookup
WARNING: Unexpected exception resolving reference
java.io.FileNotFoundException: 
/usr/local/tomcat/tomcat_home/conf/tomcat-users.xml.new (Permission 
denied)

at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.init(FileOutputStream.java:179)
at java.io.FileOutputStream.init(FileOutputStream.java:131)
at 
org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:462)


at 
org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:98)


at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:129)


at 
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)

at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:138)


at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:108)


at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:80)


at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)


at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:676)

at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)


at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)


at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:218)
Aug 1, 2005 7:23:15 PM 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans

SEVERE: Exception processing Global JNDI Resources



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


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





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

RE: anonymising Tomcat

2005-08-04 Thread MC Moisei

That a good question Paul.

On top of that is there a way to threat/redirect requests to a different 
application while the requested application is being deployed ?






From: Paul Singleton [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: anonymising Tomcat
Date: Thu, 04 Aug 2005 18:30:56 +0100

Is it possible to configure Tomcat (5.5.9) so that a
moderately able hacker couldn't figure out what is
serving up our web apps?

Paul Singleton


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.0/63 - Release Date: 3/Aug/2005


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





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



RE: 1 jakarta server + multiple ip's

2005-08-03 Thread MC Moisei


Quick  question on this one:

So you have an apache2 that fronts tomcat via jk2 connector, are there two 
instances of tomcat or just one ? If there would be two I'd see the benefits 
if one is busy the round robin algorithm redistributes the request to the 
second one. But its only one instance with two jk2 services how is that 
helping if the tomcat is busy handling a lot of requests ?


C







From: Justin Jaynes [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: RE: 1 jakarta server + multiple ip's
Date: Wed, 3 Aug 2005 10:21:29 -0700 (PDT)

Peter,

I tried the solution you offered (below) about
creating more than one service and using the
address=xxx parameter in the Connectors tags.  It
works great.  However, what do you mean in your
disclaimer that it is from the documentation and is
untested?  Did you mean to say NOT from the
documentation?  And if it is untested, but it is
working, are there any reasons not to use it in a
production server?  Is it safe?

Justin

--- Peter Crowther [EMAIL PROTECTED]
wrote:

  From: [EMAIL PROTECTED]
  I'm configuring a tomcat-server and the server has
 multiple
  ip's. I would like
  to setup virtual hosts based on the ip-address. I
 wouldn't
  like running
  multiple servers.
 
  What I've done: I have setup aliases for the
 possible
  dns-names of the second
  virtual host (the possible names for one of the
 ip's). I have
  also added the ip
  itself to the aliases link.
  However, I don't know how tomcat filter based on
 these names.
  The ip-alias seems
  to work, so I'm wondering what tomcat is comparing
 it with.

 Try this.  Beware, this is from the documentation
 and is untested!
 Based on my 5.0.28 installation.

 In your server.xml for Tomcat, set up two different
 Services - copy and
 paste the existing chunk of XML for the Service, its
 Engine (and the
 bits inside that) and its Connectors.

 Change the appBase of the second Host to the place
 you want the second
 virtual host to find its files.

 In the Connectors of each Service, add:

address=ip.of.virtual.host

 near the port=port attribute.  THis should cause
 the Connector to bind
 to that IP rather than every IP on the machine.

 Hope this helps.

- Peter


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




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





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



Tomcat and JDK version

2005-08-03 Thread MC Moisei

Currently I have a tomcat server running with the lastest JDK 1.4.2 (08).
I was wondering if any of you that are using JDK1.5(aka Tiger) seen benefits 
by switching to the newer and supposedly better JDK.


On top of that I know that tomcat is suppose to run with the JDK but JRE is 
suppose to be faster then the JDK because I assume the native code is 
optimized and all the debugging info in native and in classes are removed.


Anyone can share a perfomance store with regards with this topic ?

Thanks,
MC



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



RE: mod_jk or jk2??

2005-08-03 Thread MC Moisei

I thought the jk2 is newer... but I can be wrong...

MC



From: Luis Torres [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: mod_jk or jk2??
Date: Wed, 03 Aug 2005 13:47:42 -0500

Hello everyone,

I see lots of posts saying that they are using or implementing jk2? For 
what I understand, that has been replaced by mod_jk... so which one is 
better or what is recommended??


I also have found better documentation related to jk2 so that adds to the 
puzzle.


Regards,

Luis

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





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



RE: Tomcat and JDK version

2005-08-03 Thread MC Moisei
Okay - my bad. I was under the impression that I've seen two rt.jar files in 
the jdk but not that you stated otherwise I looked closely and indeed my 
bad.


One is down the drain. What about the jdk1.5 vs jdk1.4.2  question ? Should 
I upgrade ? Usually the  newer the better but would I had any problems 
swtching to 1.5 in a production environment ?






From: Caldarale, Charles R [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: RE: Tomcat and JDK version
Date: Wed, 3 Aug 2005 16:34:15 -0500

 From: MC Moisei [mailto:[EMAIL PROTECTED]
 Subject: Tomcat and JDK version

 On top of that I know that tomcat is suppose to run with the
 JDK but JRE is suppose to be faster then the JDK because I
 assume the native code is optimized and all the debugging
 info in native and in classes are removed.

Somebody is feeding you real garbage on that one.  The JRE that's part
of a JDK is bit-for-bit identical to the separate JRE download for that
level.  A JDK supplies additional tools for development purposes (such
as javac), but that's it.

 - Chuck


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

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





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



Re: HELP: Tomcat 5.5.9 with jsvc as low priviledges user on Linux fails in Boots

2005-08-02 Thread MC Moisei


Interesting, Thanks Darryl for sharing. So you run 5.5.9 and no problem huh 
?


What's the access given for the tomcat structure ? I'm interested in 
particular on that conf folder.  I can run it fine too but not as root and 
root has no write access to the conf folder. How is your set up ?


BTW that .new extension looked strange to me too. I cannot explain it - 
didn't look yet in TC source code.


Here's the way I call the jsvc

JAVA_HOME=/usr/local/java_home
CATALINA_HOME=/usr/local/tomcat/tomcat_home
TOMCAT_USER=tomcat
TMP_DIR=/var/tmp

CATALINA_OPTS=

CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$CATALINA_HOME/bin/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar:\
$CATALINA_HOME/bin/mx4j-jmx.jar:\
$CATALINA_HOME/bin/mx4j.jar:\

   $CATALINA_HOME/bin/jsvc \
   -user $TOMCAT_USER \
   -home $JAVA_HOME \
   -Dcatalina.home=$CATALINA_HOME \
   -Djava.io.tmpdir=$TMP_DIR \
   -outfile $CATALINA_HOME/logs/catalina-daemon.out \
   -errfile $CATALINA_HOME/logs/catalina-daemon.err \
   $CATALINA_OPTS \
   -cp 
$CLASSPATH:$CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/commons-daemon.jar 
org.apache.catalina.startup.Bootstrap



Did you have any issues while installing jsvc ?

Thanks again,
MC

http://www.goodstockimages.com




From: Darryl L. Miles [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: HELP: Tomcat 5.5.9 with jsvc as low priviledges user on Linux 
fails in Bootstrap

Date: Tue, 02 Aug 2005 08:01:36 +0100

MC Moisei wrote:

java.io.FileNotFoundException: 
/usr/local/tomcat/tomcat_home/conf/tomcat-users.xml.new (Permission 
denied)

at java.io.FileOutputStream.open(Native Method)


This smells like its calling for write access to the DIRECTORY  
/usr/local/tomcat/tomcat_home/conf/  (not the file)


Unless you have a left over file that is actually called 
conf/tomcat-users.xml.new from a previous execution of TC that did not 
complete the edit and rename.  In which case I think you need to delete the 
conf/tomcat-users.xml.new file (after you've ensured you have a valid and 
working conf/tomcat-users.xml file itself).



FYI - I run jsvc too and have not seen this problem with 5.5.9.

jsvc.exec -Djava.endorsed.dirs=./common/endorsed -classpath 
:/opt/jakarta-tomcat-5.5.9/bin/bootstrap.jar:/opt/jakarta-tomcat-5.5.9/bin/commons-logging-api.jar 
-Dcatalina.base=/opt/jakarta-tomcat-5.5.9 
-Dcatalina.home=/opt/jakarta-tomcat-5.5.9 
-Djava.io.tmpdir=/opt/jakarta-tomcat-5.5.9/temp -outfile 
./logs/catalina.out -errfile ./logs/catalina.err -pidfile ./logs/jsvc.pid
-user jakarta -Xmx2048M -Xms512M 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
org.apache.catalina.startup.Bootstrap start


--
Darryl L. Miles



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





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



Re: can I prevent DoS (Denial of Service) Attacks in JSP?

2005-08-02 Thread MC Moisei
I don't is possible because in case of a DoS they first target your web 
server by making it busy.

That can be tomcat but can well be apache.

Secondly they can attack you from many ip addresses and that would be 
pretty harsh, if for example you'd get 1 zillion requests for a larger 
file/page and your tomcat will become very busy trying to serve that 
page/file.Additional users will experience slow access or even no access at 
all.


What you can do, is more like a prevention - just an idea, never implemented 
yet - keep tap of access and if you think that one particular ip address or 
one resource is hit extremely often then treat that request differenly, a 
short(text), polite message will do - you'd serve it differently.
This will not be bullet proof thought, any additional number of requests can 
bring you bag at start point...


Maybe load balancing can help, that has nothing to do though with your 
application. It's a appserver and hardware configuration.


Hope this will help,
MC
http://www.goodstockimages.com




From: Larry Meadors [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: can I prevent DoS (Denial of Service) Attacks in JSP?
Date: Tue, 2 Aug 2005 08:30:32 -0600

Hmm, that is like asking how to avoid automobile accidents.

Larry


On 8/2/05, Ben Bookey [EMAIL PROTECTED] wrote:

 Dear List,

 I have been asked if its possible to prevent DoS attacks inside Java
 (JSP/Servlet).

 I guess it is ... is this something however that TC would be configured 
to

 deal with, or
 must I do something myself. Whats normal ?

 Many thanks in advance!
 Best wishes
 Ben Bookey



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






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



HELP: Tomcat 5.5.9 with jsvc as low priviledges user on Linux fails in Bootstrap

2005-08-01 Thread MC Moisei

Hi,

I manage to configure my tomcat with jsvc(common-daemon) and everything work 
great till I start to launch it as root. If I run it as tomcat user it does 
work great. If I try to run it as root from command prompt or from init.d I 
get the following exception ( see below )


Right are given as below
chown -R tomcat:tomcat /usr/local/tomcat
chown -R root:root /usr/local/tomcat/bin
chown -R root:root /usr/local/tomcat/common

This is not right - looks like the bootstrap is trying to access the Realm 
and there is no write access to the conf/tomcat-users.xml file. I can't 
believe the common-daemon not tomcat side didn't say a thing about this, I 
bet there are others experiencing the matter.
Do i have to disable Tomcat realms ? It doesn't sounds right. There is no 
way I'd give others write access on that.


Looking forward to hear from you if you experienced something similar.
Thanks,
MC




Aug 1, 2005 7:23:15 PM org.apache.naming.NamingContext lookup
WARNING: Unexpected exception resolving reference
java.io.FileNotFoundException: 
/usr/local/tomcat/tomcat_home/conf/tomcat-users.xml.new (Permission denied)

at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.init(FileOutputStream.java:179)
at java.io.FileOutputStream.init(FileOutputStream.java:131)
	at 
org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:462)
	at 
org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:98)
	at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:129)

at 
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
	at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:138)
	at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:108)
	at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:80)
	at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)

at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:676)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)
	at 
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:218)
Aug 1, 2005 7:23:15 PM 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans

SEVERE: Exception processing Global JNDI Resources



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



Treating requests while application is deploying...

2005-06-01 Thread MC Moisei


Hi,

I was searching thru documentation about this matter but I didn't find an
answer yet.

I want to display to the end users a default down page, automatically,
during deployment. How do I do that ? I assume I'd have to modify the
DefaultServlet and it's error handling. Is there a different/better way to
do it ?


Thanks,
MC
http://www.goodstockimages.com



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