Re: What means the second number of Next Maintenance status ?

2008-05-22 Thread Stephanie Wullbieter
E.g. what means
Next Maintenance 42/104 ?

Thanks
-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/[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]



Distributed Singletons with clustered Tomcat

2008-05-22 Thread Lyallex
Hello

Up until now everything I've done with Tomcat has been on a single server.
Now I am developing an application that will require multiple Tomcat
servers (instances at least) with some sort of load balancer thing in
front of them.
Classically my ServiceLocator has been a Singleton, now I have the
prospect of multiple Singletons living in multiple JVMs.

I realise that this is not actually Tomcat specific and that this
situation can arise regardless of Servlet container but I am using
Tomcat so I posted here.

I was thinking maybe RMI might prove the answer (so I can still have a
single Singleton) but another correspondant on this list seems to be
having problems with lost data (although we won't be using a wan
AFAIK). Is there a well tried solution to this issue ?

Many Thanks In Advance

Lyallex

-
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: Apache+mod_jk+Tomcat in openSUSE 10.3

2008-05-22 Thread Tomás Tormo

Hi
 Here i come again!! I'm would  like to install 
apache+mod_jk+tomcat in openSuse 10.3, but according to the howto's for 
SUSE I've seen on the internet, I should create a virtual host in apache 
in order to make it work. In my experience in other distros (Ubuntu, 
CentOs), this is not necessary... then... should  I create that virtual 
host? ( i'm asking this because other guy I met couldn't make it work...)


Thank you very much

--
Un saludo,

Tomás Tormo Franco

Indenova, S.L.
Tels.: +34 963 81 99 47  ext.519
http://www.indenova.com
mailto:[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]



Apache and Tomcat sharing the same web root.

2008-05-22 Thread Philip Wigg
Hi,

are there any reasons why Apache and Tomcat cannot share the same web
root folder, presuming that I exclude access to WEB-INF?

Thanks,
Phil.

-
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: Long freeze during tomcat start

2008-05-22 Thread Adam Hardy
I'm still frustrated by this freeze. Looking at this thread dump, I can see it 
must be the main thread that's hanging - but how can I work out anything more 
regarding the problem?


I've done all I can think of to open up the machine it's running on - stopping 
all other unnecessary processes such as the firewall, apache, the DNS server etc.


Could tomcat be waiting in vain for a port? As far as I can tell, it should be 
using 8080 and 8005 - nothing else is set up in server.xml. Yet these ports are 
free on the machine. Is there a linux tool I can use to check those ports?


Thanks
Adam

 Original Message 
Date: Mon, 19 May 2008 23:13:02 +0100

19-May-2008 23:04:32 org.apache.tomcat.util.modeler.BaseModelMBean preRegister
FINE: preRegister [EMAIL PROTECTED]
Catalina:type=Connector,port=8080
Full thread dump Java HotSpot(TM) Client VM (1.5.0_12-b04 mixed mode, sharing):

Low Memory Detector daemon prio=1 tid=0x0809e1a8 nid=0xe39 runnable
[0x..0x]

CompilerThread0 daemon prio=1 tid=0x0809cc40 nid=0xe38 waiting on condition
[0x..0xb2176828]

Signal Dispatcher daemon prio=1 tid=0x0809bd60 nid=0xe37 runnable
[0x..0x]

Finalizer daemon prio=1 tid=0x08094f38 nid=0xe36 in Object.wait()
[0xb23a..0xb23a1140]
at java.lang.Object.wait(Native Method)
- waiting on 0x88e609e8 (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
- locked 0x88e609e8 (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

Reference Handler daemon prio=1 tid=0x08094240 nid=0xe35 in Object.wait()
[0xb2421000..0xb24220c0]
at java.lang.Object.wait(Native Method)
- waiting on 0x88e60910 (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:474)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
- locked 0x88e60910 (a java.lang.ref.Reference$Lock)

main prio=1 tid=0x080557c8 nid=0xe33 runnable [0xbf8d6000..0xbf8d8078]
at java.net.PlainSocketImpl.initProto(Native Method)
at java.net.PlainSocketImpl.clinit(PlainSocketImpl.java:84)
at java.net.ServerSocket.setImpl(ServerSocket.java:236)
at java.net.ServerSocket.init(ServerSocket.java:178)
at java.net.ServerSocket.init(ServerSocket.java:141)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:496)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:177)
at 
org.apache.catalina.connector.Connector.initialize(Connector.java:1059)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
- locked 0x88f6e690 (a [Lorg.apache.catalina.connector.Connector;)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)
at org.apache.catalina.startup.Catalina.load(Catalina.java:518)
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:585)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:275)
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:585)
at
org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:160)

VM Thread prio=1 tid=0x08092e48 nid=0xe34 runnable

VM Periodic Task Thread prio=1 tid=0x0809f650 nid=0xe3a waiting on condition

Full thread dump Java HotSpot(TM) Client VM (1.5.0_12-b04 mixed mode, sharing):

Low Memory Detector daemon prio=1 tid=0x0809e1a8 nid=0xe39 runnable
[0x..0x]

CompilerThread0 daemon prio=1 tid=0x0809cc40 nid=0xe38 waiting on condition
[0x..0xb2176828]

Signal Dispatcher daemon prio=1 tid=0x0809bd60 nid=0xe37 runnable
[0x..0x]

Finalizer daemon prio=1 tid=0x08094f38 nid=0xe36 in Object.wait()
[0xb23a..0xb23a1140]
at java.lang.Object.wait(Native Method)
- waiting on 0x88e609e8 (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
- locked 0x88e609e8 (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
at 

Re: Long freeze during tomcat start

2008-05-22 Thread Jim Cox
I'd think it's more likely to be timing out while resolving a hostname via
DNS, but starting tomcat via strace should show you exactly where it is
pausing.

On Thu, May 22, 2008 at 5:08 AM, Adam Hardy [EMAIL PROTECTED]
wrote:

 I'm still frustrated by this freeze. Looking at this thread dump, I can see
 it must be the main thread that's hanging - but how can I work out
 anything more regarding the problem?

 I've done all I can think of to open up the machine it's running on -
 stopping all other unnecessary processes such as the firewall, apache, the
 DNS server etc.

 Could tomcat be waiting in vain for a port? As far as I can tell, it should
 be using 8080 and 8005 - nothing else is set up in server.xml. Yet these
 ports are free on the machine. Is there a linux tool I can use to check
 those ports?

 Thanks
 Adam

  Original Message 
 Date: Mon, 19 May 2008 23:13:02 +0100

 19-May-2008 23:04:32 org.apache.tomcat.util.modeler.BaseModelMBean
 preRegister
 FINE: preRegister [EMAIL PROTECTED]
 Catalina:type=Connector,port=8080
 Full thread dump Java HotSpot(TM) Client VM (1.5.0_12-b04 mixed mode,
 sharing):

 Low Memory Detector daemon prio=1 tid=0x0809e1a8 nid=0xe39 runnable
 [0x..0x]

 CompilerThread0 daemon prio=1 tid=0x0809cc40 nid=0xe38 waiting on
 condition
 [0x..0xb2176828]

 Signal Dispatcher daemon prio=1 tid=0x0809bd60 nid=0xe37 runnable
 [0x..0x]

 Finalizer daemon prio=1 tid=0x08094f38 nid=0xe36 in Object.wait()
 [0xb23a..0xb23a1140]
at java.lang.Object.wait(Native Method)
- waiting on 0x88e609e8 (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
- locked 0x88e609e8 (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

 Reference Handler daemon prio=1 tid=0x08094240 nid=0xe35 in Object.wait()
 [0xb2421000..0xb24220c0]
at java.lang.Object.wait(Native Method)
- waiting on 0x88e60910 (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:474)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
- locked 0x88e60910 (a java.lang.ref.Reference$Lock)

 main prio=1 tid=0x080557c8 nid=0xe33 runnable [0xbf8d6000..0xbf8d8078]
at java.net.PlainSocketImpl.initProto(Native Method)
at java.net.PlainSocketImpl.clinit(PlainSocketImpl.java:84)
at java.net.ServerSocket.setImpl(ServerSocket.java:236)
at java.net.ServerSocket.init(ServerSocket.java:178)
at java.net.ServerSocket.init(ServerSocket.java:141)
at

 org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:496)
at
 org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:177)
at
 org.apache.catalina.connector.Connector.initialize(Connector.java:1059)
at

 org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
- locked 0x88f6e690 (a [Lorg.apache.catalina.connector.Connector;)
at
 org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)
at org.apache.catalina.startup.Catalina.load(Catalina.java:518)
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:585)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:275)
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:585)
at
 org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:160)

 VM Thread prio=1 tid=0x08092e48 nid=0xe34 runnable

 VM Periodic Task Thread prio=1 tid=0x0809f650 nid=0xe3a waiting on
 condition

 Full thread dump Java HotSpot(TM) Client VM (1.5.0_12-b04 mixed mode,
 sharing):

 Low Memory Detector daemon prio=1 tid=0x0809e1a8 nid=0xe39 runnable
 [0x..0x]

 CompilerThread0 daemon prio=1 tid=0x0809cc40 nid=0xe38 waiting on
 condition
 [0x..0xb2176828]

 Signal Dispatcher daemon prio=1 tid=0x0809bd60 nid=0xe37 runnable
 [0x..0x]

 Finalizer daemon prio=1 tid=0x08094f38 nid=0xe36 in Object.wait()
 [0xb23a..0xb23a1140]
at java.lang.Object.wait(Native Method)
- waiting on 0x88e609e8 (a 

Error using log4j in Tomcat 5.5

2008-05-22 Thread nashrul

Hi all, I'm a beginner to web application
I tried to create a simple web application, namely WebTest. It only contains
one servlet, like this:

quote:
package solmit;

import java.io.IOException;
import java.io.PrintWriter;

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

import org.apache.log4j.Logger;;

public class WebTest extends HttpServlet {
private static Logger log = Logger.getLogger(WebTest.class);

public void doGet(HttpServletRequest request, HttpServletResponse
response)
throws IOException, ServletException
{
log.debug(anas: about to enter doGet);
response.setContentType(text/html);
PrintWriter writer = response.getWriter();

writer.println(htmlheadtitleSimple Web
Application/title/head);
writer.println(bodyh1A Simple Web Application/h1);
writer.println(Here's some text...br...and a bit more text);
writer.println(/body/html);
log.debug(anas: about to leave doGet);
}
}

My web.xml file looks like this:
 
?xml version=1.0 encoding=UTF-8?
web-app id=WebApp_ID version=2.4
xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
display-nameWebTest/display-name
welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
welcome-filedefault.html/welcome-file
welcome-filedefault.htm/welcome-file
welcome-filedefault.jsp/welcome-file
/welcome-file-list
servlet
servlet-namesome dummy name/servlet-name
servlet-classsolmit.WebTest/servlet-class
/servlet
servlet-mapping
servlet-namesome dummy name/servlet-name
url-pattern/start-web-test/url-pattern
/servlet-mapping
/web-app
 
I also created log4j.properties file in web-app/WEB-INF/classes directory.
It contains the following code:

log4j.logger.solmit=ALL, A
log4j.logger.org.apache=OFF, A
 
log4j.appender.A=org.apache.log4j.ConsoleAppender
log4j.appender.A.layout=org.apache.log4j.PatternLayout
 log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n 


I packaged this application into WebTest.war.
When I dropped this package into my Tomcat (Tomcat 5.5), and tried to access
web app using this url :http://localhost:8080/WebTest/start-web-test
I got error messages on my stderr_20080522 log:


log4j:WARN No appenders could be found for logger
(org.apache.catalina.startup.Embedded).
log4j:WARN Please initialize the log4j system properly.


Oh, I've also dropped log4j-1.2.13.jar and commons-logging-1.0.4.jar on
Tomcat/common/lib
I've read tomcat documentation on logging.. but it seems that it doesn't
give me some clue to use log4j logging in my application
(http://localhost:8080/tomcat-docs/logging.html;)
I've also already read the documentation about log4j on
http://www.laliluna.de/log4j-tutorial.html;

What the error actually means. ??
How do we setup tomcat to use log4j for logging ??
Any help would be greatly appreciated..
Thanks

My computer spec:
Tomcat 5.5
Jre 1.5.0_15
Windows XP Prof edition

-- 
View this message in context: 
http://www.nabble.com/Error-using-log4j-in-Tomcat-5.5-tp17400689p17400689.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]



Please review this worker timeout configuration

2008-05-22 Thread Stephanie Wullbieter
Please have a look at this reference worker timeouts:

worker.vorlagedummy.port=8009
worker.vorlagedummy.type=ajp13
worker.vorlagedummy.sticky_session=True
worker.vorlagedummy.socket_keepalive=True
worker.vorlagedummy.connect_timeout=5
worker.vorlagedummy.prepost_timeout=5
worker.vorlagedummy.connection_pool_timeout=30

We switch from mod_jk 1.2.5 to 1.2.23
And with 1.2.5 we had a socket_timeout (now named connection_pool_timeout) of 
30s and the other timouts are new. So first I want to set high timeouts because 
our network is unstable with sometimes big latency (e.g. 20s) because the 
firewall is sometimes overloaded.

Is this ok ?
-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

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



Clustering

2008-05-22 Thread Ch Praveena
Hi all,

  I think I can get a proper response and can solve my issue.  I am
trying to cluster Jboss(Mainitans tomcat as a web container) using APACHE as
load balancer, to run my application written using Hibernate and Echo2. I am
finding a common exception called NOTSERIALIZABLE EXCEPTION pinning at
RequestFacade.java available in the Tomcat source. Here is the stack trace
of it. http://rifers.org/paste/show/7354

Please let me know If I can be helped in any way.



-- 


-Coolest Regards,

Praveena Chalamcharla,
Securview


Re: Long freeze during tomcat start

2008-05-22 Thread Adam Hardy
Found it! But I think my knowledge of linux system calls and kernel functions is 
letting me down now. Presumably that is port 48669, which should be open - but 
is it a DNS call? If it is a DNS call, then the DNS server on the same machine 
should serve it - piping it out to the net, presumably. But with my DNS server 
running, which up to now has worked fine, and with the gateway open to allow 
internet access, tomcat still freezes.


So I guess it doesn't matter what the DNS call is for, the problem is that my 
DNS server is not serving it? I guess that means its config needs tweaking to 
tell it to serve DNS requests on the loopback interface.



socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 10
listen(10, 1)   = 0
getsockname(10, {sa_family=AF_INET6, sin6_port=htons(48669), inet_pton(AF_INET6, 
::, sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0

socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 11
connect(11, {sa_family=AF_INET6, sin6_port=htons(48669), inet_pton(AF_INET6, 
::1, sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 ETIMEDOUT 
(Connection timed out)

close(10)   = 0
close(11)   = 0




Jim Cox on 22/05/08 11:23, wrote:

I'd think it's more likely to be timing out while resolving a hostname via
DNS, but starting tomcat via strace should show you exactly where it is
pausing.

On Thu, May 22, 2008 at 5:08 AM, Adam Hardy [EMAIL PROTECTED]
wrote:


I'm still frustrated by this freeze. Looking at this thread dump, I can see
it must be the main thread that's hanging - but how can I work out
anything more regarding the problem?

I've done all I can think of to open up the machine it's running on -
stopping all other unnecessary processes such as the firewall, apache, the
DNS server etc.

Could tomcat be waiting in vain for a port? As far as I can tell, it should
be using 8080 and 8005 - nothing else is set up in server.xml. Yet these
ports are free on the machine. Is there a linux tool I can use to check
those ports?

Thanks
Adam

 Original Message 
Date: Mon, 19 May 2008 23:13:02 +0100

19-May-2008 23:04:32 org.apache.tomcat.util.modeler.BaseModelMBean
preRegister
FINE: preRegister [EMAIL PROTECTED]
Catalina:type=Connector,port=8080
Full thread dump Java HotSpot(TM) Client VM (1.5.0_12-b04 mixed mode,
sharing):

Low Memory Detector daemon prio=1 tid=0x0809e1a8 nid=0xe39 runnable
[0x..0x]

CompilerThread0 daemon prio=1 tid=0x0809cc40 nid=0xe38 waiting on
condition
[0x..0xb2176828]

Signal Dispatcher daemon prio=1 tid=0x0809bd60 nid=0xe37 runnable
[0x..0x]

Finalizer daemon prio=1 tid=0x08094f38 nid=0xe36 in Object.wait()
[0xb23a..0xb23a1140]
   at java.lang.Object.wait(Native Method)
   - waiting on 0x88e609e8 (a java.lang.ref.ReferenceQueue$Lock)
   at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
   - locked 0x88e609e8 (a java.lang.ref.ReferenceQueue$Lock)
   at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
   at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

Reference Handler daemon prio=1 tid=0x08094240 nid=0xe35 in Object.wait()
[0xb2421000..0xb24220c0]
   at java.lang.Object.wait(Native Method)
   - waiting on 0x88e60910 (a java.lang.ref.Reference$Lock)
   at java.lang.Object.wait(Object.java:474)
   at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
   - locked 0x88e60910 (a java.lang.ref.Reference$Lock)

main prio=1 tid=0x080557c8 nid=0xe33 runnable [0xbf8d6000..0xbf8d8078]
   at java.net.PlainSocketImpl.initProto(Native Method)
   at java.net.PlainSocketImpl.clinit(PlainSocketImpl.java:84)
   at java.net.ServerSocket.setImpl(ServerSocket.java:236)
   at java.net.ServerSocket.init(ServerSocket.java:178)
   at java.net.ServerSocket.init(ServerSocket.java:141)
   at

org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)
   at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:496)
   at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:177)
   at
org.apache.catalina.connector.Connector.initialize(Connector.java:1059)
   at

org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
   - locked 0x88f6e690 (a [Lorg.apache.catalina.connector.Connector;)
   at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)
   at org.apache.catalina.startup.Catalina.load(Catalina.java:518)
   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:585)
   at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
   at 

Tomcat, iis connector and case sensitivity

2008-05-22 Thread Luis Villa
Hello all,

I'm using IIS 6 with Tomcat 6, and I need to use case insensitive urls. I've
been able to do it with the document part, but not with the context name,
so:

http://MyDomain/index.html   --loads
http://MyDomain/INDEX.html  --loads
http://MYDOMAIN/INDEX.html--does not load !

How could I fix this?

Thank you all :)


Re: Long freeze during tomcat start

2008-05-22 Thread Jim Cox
Can you compare that output to a capture from the box where you don't see
the pause? I wonder if it's a difference in IPv4/IPv6 configuration between
the boxes...

On Thu, May 22, 2008 at 8:24 AM, Adam Hardy [EMAIL PROTECTED]
wrote:

 Found it! But I think my knowledge of linux system calls and kernel
 functions is letting me down now. Presumably that is port 48669, which
 should be open - but is it a DNS call? If it is a DNS call, then the DNS
 server on the same machine should serve it - piping it out to the net,
 presumably. But with my DNS server running, which up to now has worked fine,
 and with the gateway open to allow internet access, tomcat still freezes.

 So I guess it doesn't matter what the DNS call is for, the problem is that
 my DNS server is not serving it? I guess that means its config needs
 tweaking to tell it to serve DNS requests on the loopback interface.


 socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 10
 listen(10, 1)   = 0
 getsockname(10, {sa_family=AF_INET6, sin6_port=htons(48669),
 inet_pton(AF_INET6, ::, sin6_addr), sin6_flowinfo=0, sin6_scope_id=0},
 [28]) = 0
 socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 11
 connect(11, {sa_family=AF_INET6, sin6_port=htons(48669),
 inet_pton(AF_INET6, ::1, sin6_addr), sin6_flowinfo=0, sin6_scope_id=0},
 28) = -1 ETIMEDOUT (Connection timed out)
 close(10)   = 0
 close(11)   = 0





 Jim Cox on 22/05/08 11:23, wrote:

 I'd think it's more likely to be timing out while resolving a hostname via
 DNS, but starting tomcat via strace should show you exactly where it is
 pausing.

 On Thu, May 22, 2008 at 5:08 AM, Adam Hardy [EMAIL PROTECTED]
 wrote:

  I'm still frustrated by this freeze. Looking at this thread dump, I can
 see
 it must be the main thread that's hanging - but how can I work out
 anything more regarding the problem?

 I've done all I can think of to open up the machine it's running on -
 stopping all other unnecessary processes such as the firewall, apache,
 the
 DNS server etc.

 Could tomcat be waiting in vain for a port? As far as I can tell, it
 should
 be using 8080 and 8005 - nothing else is set up in server.xml. Yet these
 ports are free on the machine. Is there a linux tool I can use to check
 those ports?

 Thanks
 Adam

  Original Message 
 Date: Mon, 19 May 2008 23:13:02 +0100

 19-May-2008 23:04:32 org.apache.tomcat.util.modeler.BaseModelMBean
 preRegister
 FINE: preRegister [EMAIL PROTECTED]
 Catalina:type=Connector,port=8080
 Full thread dump Java HotSpot(TM) Client VM (1.5.0_12-b04 mixed mode,
 sharing):

 Low Memory Detector daemon prio=1 tid=0x0809e1a8 nid=0xe39 runnable
 [0x..0x]

 CompilerThread0 daemon prio=1 tid=0x0809cc40 nid=0xe38 waiting on
 condition
 [0x..0xb2176828]

 Signal Dispatcher daemon prio=1 tid=0x0809bd60 nid=0xe37 runnable
 [0x..0x]

 Finalizer daemon prio=1 tid=0x08094f38 nid=0xe36 in Object.wait()
 [0xb23a..0xb23a1140]
   at java.lang.Object.wait(Native Method)
   - waiting on 0x88e609e8 (a java.lang.ref.ReferenceQueue$Lock)
   at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
   - locked 0x88e609e8 (a java.lang.ref.ReferenceQueue$Lock)
   at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
   at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

 Reference Handler daemon prio=1 tid=0x08094240 nid=0xe35 in
 Object.wait()
 [0xb2421000..0xb24220c0]
   at java.lang.Object.wait(Native Method)
   - waiting on 0x88e60910 (a java.lang.ref.Reference$Lock)
   at java.lang.Object.wait(Object.java:474)
   at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
   - locked 0x88e60910 (a java.lang.ref.Reference$Lock)

 main prio=1 tid=0x080557c8 nid=0xe33 runnable [0xbf8d6000..0xbf8d8078]
   at java.net.PlainSocketImpl.initProto(Native Method)
   at java.net.PlainSocketImpl.clinit(PlainSocketImpl.java:84)
   at java.net.ServerSocket.setImpl(ServerSocket.java:236)
   at java.net.ServerSocket.init(ServerSocket.java:178)
   at java.net.ServerSocket.init(ServerSocket.java:141)
   at


 org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)
   at
 org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:496)
   at
 org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:177)
   at
 org.apache.catalina.connector.Connector.initialize(Connector.java:1059)
   at


 org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
   - locked 0x88f6e690 (a
 [Lorg.apache.catalina.connector.Connector;)
   at

 org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)
   at org.apache.catalina.startup.Catalina.load(Catalina.java:518)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at


 

Re: Long freeze during tomcat start

2008-05-22 Thread Adam Hardy
I think this is the equivalent part of the strace log from another machine on 
the LAN:


socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 10
listen(10, 1)   = 0
getsockname(10, {sa_family=AF_INET6, sin6_port=htons(54792), inet_pton(AF_INET6, 
::, sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0

socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 11
connect(11, {sa_family=AF_INET6, sin6_port=htons(54792), inet_pton(AF_INET6, 
::1, sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0

fcntl64(10, F_GETFL)= 0x2 (flags O_RDWR)
fcntl64(10, F_SETFL, O_RDWR|O_NONBLOCK) = 0
accept(10, {sa_family=AF_INET6, sin6_port=htons(51175), inet_pton(AF_INET6, 
::1, sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 12

shutdown(11, 2 /* send and receive */)  = 0


Jim Cox on 22/05/08 13:38, wrote:

Can you compare that output to a capture from the box where you don't see
the pause? I wonder if it's a difference in IPv4/IPv6 configuration between
the boxes...

On Thu, May 22, 2008 at 8:24 AM, Adam Hardy [EMAIL PROTECTED]
wrote:


Found it! But I think my knowledge of linux system calls and kernel
functions is letting me down now. Presumably that is port 48669, which
should be open - but is it a DNS call? If it is a DNS call, then the DNS
server on the same machine should serve it - piping it out to the net,
presumably. But with my DNS server running, which up to now has worked fine,
and with the gateway open to allow internet access, tomcat still freezes.

So I guess it doesn't matter what the DNS call is for, the problem is that
my DNS server is not serving it? I guess that means its config needs
tweaking to tell it to serve DNS requests on the loopback interface.


socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 10
listen(10, 1)   = 0
getsockname(10, {sa_family=AF_INET6, sin6_port=htons(48669),
inet_pton(AF_INET6, ::, sin6_addr), sin6_flowinfo=0, sin6_scope_id=0},
[28]) = 0
socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 11
connect(11, {sa_family=AF_INET6, sin6_port=htons(48669),
inet_pton(AF_INET6, ::1, sin6_addr), sin6_flowinfo=0, sin6_scope_id=0},
28) = -1 ETIMEDOUT (Connection timed out)
close(10)   = 0
close(11)   = 0





Jim Cox on 22/05/08 11:23, wrote:


I'd think it's more likely to be timing out while resolving a hostname via
DNS, but starting tomcat via strace should show you exactly where it is
pausing.

On Thu, May 22, 2008 at 5:08 AM, Adam Hardy [EMAIL PROTECTED]
wrote:

 I'm still frustrated by this freeze. Looking at this thread dump, I can

see
it must be the main thread that's hanging - but how can I work out
anything more regarding the problem?

I've done all I can think of to open up the machine it's running on -
stopping all other unnecessary processes such as the firewall, apache,
the
DNS server etc.

Could tomcat be waiting in vain for a port? As far as I can tell, it
should
be using 8080 and 8005 - nothing else is set up in server.xml. Yet these
ports are free on the machine. Is there a linux tool I can use to check
those ports?

Thanks
Adam

 Original Message 
Date: Mon, 19 May 2008 23:13:02 +0100

19-May-2008 23:04:32 org.apache.tomcat.util.modeler.BaseModelMBean
preRegister
FINE: preRegister [EMAIL PROTECTED]
Catalina:type=Connector,port=8080
Full thread dump Java HotSpot(TM) Client VM (1.5.0_12-b04 mixed mode,
sharing):

Low Memory Detector daemon prio=1 tid=0x0809e1a8 nid=0xe39 runnable
[0x..0x]

CompilerThread0 daemon prio=1 tid=0x0809cc40 nid=0xe38 waiting on
condition
[0x..0xb2176828]

Signal Dispatcher daemon prio=1 tid=0x0809bd60 nid=0xe37 runnable
[0x..0x]

Finalizer daemon prio=1 tid=0x08094f38 nid=0xe36 in Object.wait()
[0xb23a..0xb23a1140]
  at java.lang.Object.wait(Native Method)
  - waiting on 0x88e609e8 (a java.lang.ref.ReferenceQueue$Lock)
  at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
  - locked 0x88e609e8 (a java.lang.ref.ReferenceQueue$Lock)
  at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
  at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

Reference Handler daemon prio=1 tid=0x08094240 nid=0xe35 in
Object.wait()
[0xb2421000..0xb24220c0]
  at java.lang.Object.wait(Native Method)
  - waiting on 0x88e60910 (a java.lang.ref.Reference$Lock)
  at java.lang.Object.wait(Object.java:474)
  at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
  - locked 0x88e60910 (a java.lang.ref.Reference$Lock)

main prio=1 tid=0x080557c8 nid=0xe33 runnable [0xbf8d6000..0xbf8d8078]
  at java.net.PlainSocketImpl.initProto(Native Method)
  at java.net.PlainSocketImpl.clinit(PlainSocketImpl.java:84)
  at java.net.ServerSocket.setImpl(ServerSocket.java:236)
  at java.net.ServerSocket.init(ServerSocket.java:178)
  at java.net.ServerSocket.init(ServerSocket.java:141)
  at



Re: Deploy applications using /user/MyServlet as name

2008-05-22 Thread Johnny Kewl


- Original Message - 


Cristian
I tried... it doesnt work.

But what does work is if you unpack the WAR to a location.
Create a context file with a DOC BASE

then

http://myserver:8080/manager/deploy?config=file:/home/user1/webapps/context.xmlpath=/UserX/Whatever

Then it will do it... but the hassle is you need to unpack the war.
Only way I could find that works..

BUT It just doesnt feel like a good thing to me...
Also remember that when you change the context to anything other than the 
actual webapp name, there are other potential
problems, like you now hoping the guy that made it didnt hard code that in 
their links.


I dont now what you doing, but I would rather try something like going with 
the webappname, and then just saying to users

that if its not of this form USERNAME_WEBAPPNAME.WAR
it will not be deployed.

Then if you just go with the default deployment it will be 
/User1_Accounting/blah


So can be done... but my gut is telling me you'd be better off changing the 
scheme...


Also tomcat defaults to the webapp name... so if you have to manually 
deploy, or its emailed to you and you want to drop it into webapps, what 
ever1 does... then at most you just have to change the webapp name...


Thats why TC ignores the internal context path... humans know how to 
change a file name ;)


I'd make it a convention... and a war in the user folder that does not carry 
the prepended userid... is not deployed, but can be fixed by simply renaming 
it.


Good Luck... hope your students like it :)


Sorry for my confusing terminology. I'll try to explain better.
I'm using Tomcat 6.0.16 and as as Jhonny said, I want to have multiple
WebApplications for each user in my server.
Each user could call applications using the browser in that way:
http://myserver:8080/user1/WebApp1
http://myserver:8080/user1/WebApp2
http://myserver:8080/user2/OtherWebApp1
http://myserver:8080/user2/OtherWebApp2 .

I've deployed one application in my folder using the manager using
this sentence:

http://myserver:8080/manager/deploy?path=/WebApp1war=file:/home/user1/webapps/WebApp1.war

and this work fine, but, when i tried to deploy using the path
including username in the path it fails:

http://myserver:8080/manager/deploy?path=/user1/WebApp1war=file:/home/user1/webapps/WebApp1.war

The returned error is:

FAIL - Failed to deploy application at context path /usuario1/hello

Any idea? I need to declare one context for each application?

Regards
Cristian


---
HARBOR: http://coolharbor.100free.com/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
--- 



-
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: Long freeze during tomcat start

2008-05-22 Thread Jim Cox
I'm assuming the pause you saw was at the following line?
  connect(11, {sa_family=AF_INET6, sin6_port=htons(48669),
inet_pton(AF_INET6, ::1, sin6_addr), sin6_flowinfo=0, sin6_scope_id=0},
28) = -1 ETIMEDOUT (Connection timed out)

That looks like a connect attempt to the IPv6 loopback address (?) which
times out, but the corresponding line from the no-pause box seems to do
the same without delay. Do you have IPv6 enabled on both boxes, i.e. does
the output from /sbin/ifconfig -a look similar?

On Thu, May 22, 2008 at 8:52 AM, Adam Hardy [EMAIL PROTECTED]
wrote:

 I think this is the equivalent part of the strace log from another machine
 on the LAN:

 socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 10
 listen(10, 1)   = 0
 getsockname(10, {sa_family=AF_INET6, sin6_port=htons(54792),
 inet_pton(AF_INET6, ::, sin6_addr), sin6_flowinfo=0, sin6_scope_id=0},
 [28]) = 0
 socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 11
 connect(11, {sa_family=AF_INET6, sin6_port=htons(54792),
 inet_pton(AF_INET6, ::1, sin6_addr), sin6_flowinfo=0, sin6_scope_id=0},
 28) = 0
 fcntl64(10, F_GETFL)= 0x2 (flags O_RDWR)
 fcntl64(10, F_SETFL, O_RDWR|O_NONBLOCK) = 0
 accept(10, {sa_family=AF_INET6, sin6_port=htons(51175), inet_pton(AF_INET6,
 ::1, sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 12
 shutdown(11, 2 /* send and receive */)  = 0



 Jim Cox on 22/05/08 13:38, wrote:

 Can you compare that output to a capture from the box where you don't see
 the pause? I wonder if it's a difference in IPv4/IPv6 configuration
 between
 the boxes...

 On Thu, May 22, 2008 at 8:24 AM, Adam Hardy [EMAIL PROTECTED]
 wrote:

  Found it! But I think my knowledge of linux system calls and kernel
 functions is letting me down now. Presumably that is port 48669, which
 should be open - but is it a DNS call? If it is a DNS call, then the DNS
 server on the same machine should serve it - piping it out to the net,
 presumably. But with my DNS server running, which up to now has worked
 fine,
 and with the gateway open to allow internet access, tomcat still freezes.

 So I guess it doesn't matter what the DNS call is for, the problem is
 that
 my DNS server is not serving it? I guess that means its config needs
 tweaking to tell it to serve DNS requests on the loopback interface.


 socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 10
 listen(10, 1)   = 0
 getsockname(10, {sa_family=AF_INET6, sin6_port=htons(48669),
 inet_pton(AF_INET6, ::, sin6_addr), sin6_flowinfo=0, sin6_scope_id=0},
 [28]) = 0
 socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 11
 connect(11, {sa_family=AF_INET6, sin6_port=htons(48669),
 inet_pton(AF_INET6, ::1, sin6_addr), sin6_flowinfo=0,
 sin6_scope_id=0},
 28) = -1 ETIMEDOUT (Connection timed out)
 close(10)   = 0
 close(11)   = 0





 Jim Cox on 22/05/08 11:23, wrote:

  I'd think it's more likely to be timing out while resolving a hostname
 via
 DNS, but starting tomcat via strace should show you exactly where it is
 pausing.

 On Thu, May 22, 2008 at 5:08 AM, Adam Hardy 
 [EMAIL PROTECTED]
 wrote:

  I'm still frustrated by this freeze. Looking at this thread dump, I can

 see
 it must be the main thread that's hanging - but how can I work out
 anything more regarding the problem?

 I've done all I can think of to open up the machine it's running on -
 stopping all other unnecessary processes such as the firewall, apache,
 the
 DNS server etc.

 Could tomcat be waiting in vain for a port? As far as I can tell, it
 should
 be using 8080 and 8005 - nothing else is set up in server.xml. Yet
 these
 ports are free on the machine. Is there a linux tool I can use to check
 those ports?

 Thanks
 Adam

  Original Message 
 Date: Mon, 19 May 2008 23:13:02 +0100

 19-May-2008 23:04:32 org.apache.tomcat.util.modeler.BaseModelMBean
 preRegister
 FINE: preRegister [EMAIL PROTECTED]
 Catalina:type=Connector,port=8080
 Full thread dump Java HotSpot(TM) Client VM (1.5.0_12-b04 mixed mode,
 sharing):

 Low Memory Detector daemon prio=1 tid=0x0809e1a8 nid=0xe39 runnable
 [0x..0x]

 CompilerThread0 daemon prio=1 tid=0x0809cc40 nid=0xe38 waiting on
 condition
 [0x..0xb2176828]

 Signal Dispatcher daemon prio=1 tid=0x0809bd60 nid=0xe37 runnable
 [0x..0x]

 Finalizer daemon prio=1 tid=0x08094f38 nid=0xe36 in Object.wait()
 [0xb23a..0xb23a1140]
  at java.lang.Object.wait(Native Method)
  - waiting on 0x88e609e8 (a java.lang.ref.ReferenceQueue$Lock)
  at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
  - locked 0x88e609e8 (a java.lang.ref.ReferenceQueue$Lock)
  at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
  at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

 Reference Handler daemon prio=1 tid=0x08094240 nid=0xe35 in
 Object.wait()
 [0xb2421000..0xb24220c0]
  at java.lang.Object.wait(Native Method)
  

Re: Distributed Singletons with clustered Tomcat

2008-05-22 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Lyllax,

Lyallex wrote:
| Classically my ServiceLocator has been a Singleton, now I have the
| prospect of multiple Singletons living in multiple JVMs.

Do you actually need intra-JVM synchronization or something like that?
Why can these singletons not operate independently on each instance of TC?

- -chris

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

iEYEARECAAYFAkg1cLUACgkQ9CaO5/Lv0PCRDgCgnOIn1dS1S7qMgCGH++NkxE6M
3h0AoLJiwo+qjrnLhmj4FzjhrXdUrXlU
=FbQA
-END PGP SIGNATURE-

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



Re: Apache and Tomcat sharing the same web root.

2008-05-22 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Philip,

Philip Wigg wrote:
| are there any reasons why Apache and Tomcat cannot share the same web
| root folder, presuming that I exclude access to WEB-INF?

Nope, you should be good.

I would also restrict access to META-INF, and if you have any files that
should not be served by Tomcat (such as Velocity or Freemarker
templates, properties files outside of the WEB-INF directory, etc.), you
should make arrangements for Apache to refuse to serve them.

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

iEYEARECAAYFAkg1cV8ACgkQ9CaO5/Lv0PA4pgCgktFE+Ke6pjfXxOhcd4hK7cwt
kAgAnAsgoLlEaPqBi3ybwH583BBA6X8h
=pBih
-END PGP SIGNATURE-

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



Re: Error using log4j in Tomcat 5.5

2008-05-22 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nashrul,

nashrul wrote:
| Hi all, I'm a beginner to web application [and log4j isn't working for
me].

[snip]

| I also created log4j.properties file in web-app/WEB-INF/classes
directory.
| It contains the following [configuration]:
|
| log4j.logger.solmit=ALL, A
| log4j.logger.org.apache=OFF, A
|
| log4j.appender.A=org.apache.log4j.ConsoleAppender
| log4j.appender.A.layout=org.apache.log4j.PatternLayout
| log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
|
|
| I packaged this application into WebTest.war.
| When I dropped this package into my Tomcat (Tomcat 5.5), and tried to
access
| web app using this url :http://localhost:8080/WebTest/start-web-test
| I got error messages on my stderr_20080522 log:
|
| log4j:WARN No appenders could be found for logger
| (org.apache.catalina.startup.Embedded).
| log4j:WARN Please initialize the log4j system properly.

This means that log4j was asked to log a message before the logging
system was initialized. IIRC, log4j is supposed to automatically
configure itself on first-use by looking for log4j.properties in the
classpath, but that does not appear to be happening, here.

I recall having the same problem on several of our projects, and we
simply added this to our initialization listener:

~   new org.apache.log4j.PropertyConfigurator();

This forces log4j to initialize itself using a properties file, and it
will search the classpath for it -- so placing your log4j.properties
file in WEB-INF/classes is appropriate.

| Oh, I've also dropped log4j-1.2.13.jar and commons-logging-1.0.4.jar on
| Tomcat/common/lib

Do not do that. Remove those files from common/lib and anywhere else you
tried putting them. Just use WEB-INF/lib in your own application for
log4j.jar and commons-logging (if you actually need commons-logging).

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

iEYEARECAAYFAkg1dj8ACgkQ9CaO5/Lv0PDbqgCgouMNS+GuLE/a2qsP/u5/sCV8
494AnRMbIfdxLyY8MZoQz8p3r2Yufy7u
=kSFm
-END PGP SIGNATURE-

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



Re: Please review this worker timeout configuration

2008-05-22 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Stephanie,

Please start a new thread when posting a new question.

Stephanie Wullbieter wrote:
| Please have a look at this reference worker timeouts:
|
| worker.vorlagedummy.port=8009
| worker.vorlagedummy.type=ajp13
| worker.vorlagedummy.sticky_session=True
| worker.vorlagedummy.socket_keepalive=True
| worker.vorlagedummy.connect_timeout=5
| worker.vorlagedummy.prepost_timeout=5
| worker.vorlagedummy.connection_pool_timeout=30
|
| We switch from mod_jk 1.2.5 to 1.2.23
| And with 1.2.5 we had a socket_timeout (now named
| connection_pool_timeout) of 30s and the other timouts are new. So first
| I want to set high timeouts because our network is unstable with
| sometimes big latency (e.g. 20s) because the firewall is sometimes
| overloaded.

Wow -- time to get a new firewall.

- -chris

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

iEYEARECAAYFAkg1dnkACgkQ9CaO5/Lv0PBBRwCgmJX6zFz+oFhj2zjJ9IFX3Dsl
m0AAoMHKxKGXUGPVV9uIbaYvTcQ5FKLD
=nZV2
-END PGP SIGNATURE-

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



Re: tomcat deployment error

2008-05-22 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Shreekanta,

Shreekanta Prasad wrote:
| I am using tomcat 5.5. Using deployer utility of tomcat to
| do hot deployment to the server. But it is giving error error like
|
| \build.xml:98: java.io.IOException:
|
|  Server returned HTTP response code: 403 for URL:
| http://localhost:8080/manager/deploy?path=%2Fdmiupdate=true

403  is Forbidden which generally means that your username and
password are wrong.

| My build file has target called deploy it passes url,username,pwd  I am
| passing same parameters those defined in  tomcat-users.xml in conf
| directory of tomcat

Try connecting to the manager application using a web browser and
entering your username and password. Once you are sure that works, make
sure that your ant build file contains the correct username and password
values.

| role as manager. Also observe the error line my context path is dmi it
| is taking path as '%2Fdmi' why is it?

Because / must be escaped in order to pass it as a parameter value.

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

iEYEARECAAYFAkg1dzAACgkQ9CaO5/Lv0PBXAACgnxKRqRJh5MJcURb7PejPdPy1
0GkAn1A8T/odZwS1UJC59xXjQ2RBKXfq
=xY2k
-END PGP SIGNATURE-

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



Re: Clustering

2008-05-22 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ch,

Ch Praveena wrote:
|   I think I can get a proper response and can solve my issue.  I am
| trying to cluster Jboss(Mainitans tomcat as a web container) using
APACHE as
| load balancer, to run my application written using Hibernate and
Echo2. I am
| finding a common exception called NOTSERIALIZABLE EXCEPTION pinning at
| RequestFacade.java available in the Tomcat source. Here is the stack trace
| of it. http://rifers.org/paste/show/7354

Wow, that's a heckuva stack trace.

Are you storing the request object in your session? That's what it looks
like you are doing.

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

iEYEARECAAYFAkg1d9gACgkQ9CaO5/Lv0PA3dQCgnM3Th89DXFNvmSdfP+Xf1pmU
OEMAoKuHbFvzMDskWzd06oyeR9hVO86u
=4ICU
-END PGP SIGNATURE-

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



Re: Tomcat, iis connector and case sensitivity

2008-05-22 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Luis,

Luis Villa wrote:
| I'm using IIS 6 with Tomcat 6, and I need to use case insensitive urls.

I'm pretty sure that breaks the URI specification. The only part of the
URI which is considered case-insensitive is the scheme (protocol).
Since hostnames are, by definition, case-insensitive, they are also
treated as case-insensitive.

Since case-insensitivity is explicitly mentioned in several cases, but
not anywhere for the remainder for the URI, it implies that the rest of
the URI is supposed to be case-sensitive.

See http://www.ietf.org/rfc/rfc2396.txt

| I've been able to do it with the document part, but not with the
| context name, so:
|
| http://MyDomain/index.html   --loads
| http://MyDomain/INDEX.html  --loads
| http://MYDOMAIN/INDEX.html--does not load !
|
| How could I fix this?

Why do you need it in the first place?

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

iEYEARECAAYFAkg1emsACgkQ9CaO5/Lv0PCYFQCfTreZgfocoe1UjkWNNtd2DhNc
DjIAn27VP90xHpXH7gsAKY/xj9bXxGIC
=sy80
-END PGP SIGNATURE-

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



Re: What means the second number of Next Maintenance status ?

2008-05-22 Thread Rainer Jung

Stephanie Wullbieter schrieb:

Hello,

with mod_jk 1.2.23 status worker there is the output

Next Maintenance

The first seems to be the countdown until next maintenance. But what does the 
second number stand for? Could not find it in the docs.


Due to the way the maintenance feature is implemented, we can't be sure, 
when *exactly* global maintenance it is happening. The two values are 
the earliest possible and the latest possible time it will take for the 
next global maintenance. Global maintenance is responsible for error 
recovery (allowing workers in error state to be used again for requests) 
and decaying load values for the balancer. The min and max times will 
only be correct, if there are any requests at all during that time.


The uncertainty comes from the fact, that there is local and global 
maintenance. Local means once *per web server process* (closing of idle 
backend connections), global means once per web server.
Mladen added a separate maintenance thread for the next version 1.2.27 
(off by default), that would make timing much more predictable.



Thank You,

Stephanie


Regards,

Rainer

-
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: possible bug for mod_jk configure for cygwin

2008-05-22 Thread Rainer Jung

Committed for 1.2.27. Thanks for reporting.

Taro App schrieb:

Hi Rainer,

Yes, your patch solved the problem!
Thank you.

Taro App




-- Forwarded message --
From: Rainer Jung [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Date: Tue, 20 May 2008 10:27:49 +0200
Subject: Re: possible bug for mod_jk configure for cygwin
Taro App wrote:

Hi list,

I tried compiling mod_jk on cygwin and error occurred. It looks like a
bug in configure, which correctly recognizes os as cygwin, but forgets
to add -DCYGWIN for gcc, thus resulting in incorrect inclusion of
sys/socketvar.h. Setting CFLAGS=-DCYGWIN solves the problem. Can
someone take a look at it and maybe register this in a bug database?
(I am pretty new here, so...)

mod_jk: 1.2.26
apache: 2.2.8
cygwin 1.5.25
os: Windows XP SP2


Could you please try the following patch instead of any changes you did:

Index: common/jk_global.h
===
--- common/jk_global.h  (old)
+++ common/jk_global.h  (new)
@@ -137,7 +137,7 @@
 #include netinet/tcp.h
 #include arpa/inet.h
 #include sys/un.h
-#if !defined(_OSD_POSIX)  !defined(AS400)  !defined(CYGWIN) 
!defined(HPUX11)
+#if !defined(_OSD_POSIX)  !defined(AS400)  !defined(__CYGWIN__) 
!defined(HPUX11)
 #include sys/socketvar.h
 #endif
 #if !defined(HPUX11)  !defined(AS400)


There is a line wrap in there. The patch should simply replace CYGWIN by
__CYGWIN__ in file common/jk_global.h.


-

./buildconf.sh
./configure

--with-apache=/home/user/apache2tmp/httpd-2.2.8

make

.

 gcc -I/apache2tmp/httpd-2.2.8/include
-I/apache2tmp/httpd-2.2.8/srclib/apr/include
-I/apache2tmp/httpd-2.2.8/os/unix
-I/apache2tmp/httpd-2.2.8/srclib/apr-util/include -g -O2

-g -O2 -I

/include -I /include/Windows_NT -c jk_ajp12_worker.c  -DDLL_EXPORT
-DPIC -o .libs/jk_ajp12_worker.o
In file included from jk_logger.h:27,
from jk_ajp12_worker.h:27,
from jk_ajp12_worker.c:26:
jk_global.h:141:27: sys/socketvar.h: No such file or directory
make[1]: *** [jk_ajp12_worker.lo] Error 1
make[1]: Leaving directory


`/tomcatconnectortmp/tomcat-connectors-1.2.26-src/native/common'

make: *** [all-recursive] Error 1


Regards,

Rainer


-
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: Please review this worker timeout configuration

2008-05-22 Thread Rainer Jung

Stephanie Wullbieter schrieb:

Please have a look at this reference worker timeouts:

worker.vorlagedummy.port=8009
worker.vorlagedummy.type=ajp13
worker.vorlagedummy.sticky_session=True
worker.vorlagedummy.socket_keepalive=True
worker.vorlagedummy.connect_timeout=5
worker.vorlagedummy.prepost_timeout=5


50 seconds is pretty long for a connect and a prepost timeout.
As you say, your network is unstable. If you want mod_jk to wait for 
such a long time to finally succeed, 50 seconds will be OK, but this 
will mean, that under high load a lot of requests might wait and block 
httpd ressources. If you prefer mod_jk to throw and error and clear the 
system whenever a long network latency shows up, reduce those two 
timeouts to something like 10 seconds.



worker.vorlagedummy.connection_pool_timeout=30


This is pretty short. The timeout determines, how long we keep an idle 
backend connection open for reuse. Usually it is more in the range of 
300 seconds. You should also adjust connectionTimeout on the Tomcat AJP 
connector to the same value multiplied by 1000 (it is in milliseconds on 
the Tomcat side).


Some more info on the timepouts is contained in

http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html


We switch from mod_jk 1.2.5 to 1.2.23


If you are doing the upgrade now (which is good), I would suggest to go 
directly to 1.2.26.



And with 1.2.5 we had a socket_timeout (now named connection_pool_timeout) of 
30s and the other timouts are new. So first I want to set high timeouts because 
our network is unstable with sometimes big latency (e.g. 20s) because the 
firewall is sometimes overloaded.


No, there still is a socket_timeout. It is *not* the same as the 
connection_pool_timeout.



Is this ok ?


See above :)

Regards,

Rainer

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



error message, can you tell me where I went wrong

2008-05-22 Thread Rick Simpson
I am new to Tomcat and I am trying to setup a new 2003 server to replace
an existing 2k server. I have downloaded the Tomcat 5.5 and installed.
When I get it installed it says it is stopped and when trying to start
just goes back to stopped. I have tried to look at all the faq and tried
to compare old server to new. I am sure it is someting that I am
missing. I have created an environamental variable called JAVA_HOME with
a path pointing to the JDK folder. I have also uninstalled and
reinstalled Tomcat 4.1 with same results. The log in Jakarta for both
versions says [174 javajni.c] [error] the specified module could not be
found. [986 prunsrv.c] [error] failed creating java c:\program
Files\java\jre1.6.0_06\bin\client\jvm.dll. This file does exist in this
location. As an additional note when I load version 4.1 I can start
Tomcat using the startup.bat file, and get to the tomcat default page on
server, but taskbar icon still shows Tomcat stopped.
Thanks for any help you can provide.
 

Rick Simpson
Insl-x
308 Old County Road
Edgewater, FL 32132
T/386-428-6461, x164
F/386-427-7130
Email:  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  

 

 

===
This e-mail is intended only for the use of the addressees.  Any copying, 
forwarding, printing or 
other use of this e-mail by persons other than the addressees is not 
authorized.  
This e-mail may contain information that is privileged, confidential and exempt 
from disclosure.  
If you are not the intended recipient, please notify us immediately by return 
e-mail 
(including the original message in your reply) and then delete and discard all 
copies of the e-mail.  




Re: error message, can you tell me where I went wrong

2008-05-22 Thread Chris Stewart

Rick,

The JAVA_HOME\bin directory needs to be added to the PATH variable on  
your machine.  Do that and then try to restart the server.


Chris Stewart
[EMAIL PROTECTED]



On May 22, 2008, at 10:44 AM, Rick Simpson wrote:

I am new to Tomcat and I am trying to setup a new 2003 server to  
replace

an existing 2k server. I have downloaded the Tomcat 5.5 and installed.
When I get it installed it says it is stopped and when trying to start
just goes back to stopped. I have tried to look at all the faq and  
tried

to compare old server to new. I am sure it is someting that I am
missing. I have created an environamental variable called JAVA_HOME  
with

a path pointing to the JDK folder. I have also uninstalled and
reinstalled Tomcat 4.1 with same results. The log in Jakarta for both
versions says [174 javajni.c] [error] the specified module could not  
be

found. [986 prunsrv.c] [error] failed creating java c:\program
Files\java\jre1.6.0_06\bin\client\jvm.dll. This file does exist in  
this

location. As an additional note when I load version 4.1 I can start
Tomcat using the startup.bat file, and get to the tomcat default  
page on

server, but taskbar icon still shows Tomcat stopped.
Thanks for any help you can provide.


Rick Simpson
Insl-x
308 Old County Road
Edgewater, FL 32132
T/386-428-6461, x164
F/386-427-7130
Email:  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]





===
This e-mail is intended only for the use of the addressees.  Any  
copying, forwarding, printing or
other use of this e-mail by persons other than the addressees is not  
authorized.
This e-mail may contain information that is privileged, confidential  
and exempt from disclosure.
If you are not the intended recipient, please notify us immediately  
by return e-mail
(including the original message in your reply) and then delete and  
discard all copies of the e-mail.






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



mod jk and workers file

2008-05-22 Thread Mehrotra, Anurag

I am using apache 2.0.59 to connect to Tomcat 6.0.16 using mod_jk 1.2.26.
Current configuration is working just fine. I have specified my
worker.properties file location under httpd.conf (apache web server) as
follows:

JkWorkersFile D:\Apache Software Foundation\Tomcat
6.0\conf\jk\workers.properties


I now have to connect the same instance of web server (as above) to another
instance of Tomcat running on a different ip address and port numbers.

How can I go about specifying multiple Workers file? 

Or 

Can I use the same workers file and define new worker definition

worker.wk2.port=new port number
worker.wk2.host=new ip address
worker.wk2.type=ajp13

Thanks,


Anurag  301-296-3838

The information contained in this message may be privileged and confidential
and protected from disclosure.  If the reader of this message is not the
intended recipient, or an employee or agent responsible for delivering this
message to the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this communication in error, please notify
us immediately by replying to the message and deleting it from your
computer.


-
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 message, can you tell me where I went wrong

2008-05-22 Thread Caldarale, Charles R
 From: Chris Stewart [mailto:[EMAIL PROTECTED]
 Subject: Re: error message, can you tell me where I went wrong

 The JAVA_HOME\bin directory needs to be added to the PATH variable on
 your machine.

The above is useless - Tomcat is being run as a service, so there is no PATH in 
effect.

  I have created an environamental variable called JAVA_HOME
  with a path pointing to the JDK folder.

Also a waste of time when running Tomcat as a service.

  The log in Jakarta for both versions says
  [174 javajni.c] [error] the specified module could not
  be found.

You may well be missing a .dll file that the service launcher needs; find a 
copy of msvcr71.dll and put it in Tomcat's bin directory and see if that fixes 
the problem.

  java\jre1.6.0_06\bin\client\jvm.dll

You probably want to use the server version of the JVM.  Use the tomcat5w.exe 
program to change that.

 - Chuck


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

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



Re: error message, can you tell me where I went wrong

2008-05-22 Thread Chris Stewart

Chuck,

Randomly throwing around versions of DLLs is not the answer to this  
problem.  I had the exact issue as the original poster described and  
what I posted solved my issue. What fixes the issue is putting the  
msvcr71.dll file in the system32 directory on the machine.  Of course  
this isn't a wise choice when simply adding the Java bin directory to  
your PATH will work just fine.


Chris Stewart
[EMAIL PROTECTED]



On May 22, 2008, at 11:13 AM, Caldarale, Charles R wrote:


From: Chris Stewart [mailto:[EMAIL PROTECTED]
Subject: Re: error message, can you tell me where I went wrong

The JAVA_HOME\bin directory needs to be added to the PATH variable on
your machine.


The above is useless - Tomcat is being run as a service, so there is  
no PATH in effect.



I have created an environamental variable called JAVA_HOME
with a path pointing to the JDK folder.


Also a waste of time when running Tomcat as a service.


The log in Jakarta for both versions says
[174 javajni.c] [error] the specified module could not
be found.


You may well be missing a .dll file that the service launcher needs;  
find a copy of msvcr71.dll and put it in Tomcat's bin directory and  
see if that fixes the problem.



java\jre1.6.0_06\bin\client\jvm.dll


You probably want to use the server version of the JVM.  Use the  
tomcat5w.exe program to change that.


- Chuck


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


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




-
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 message, can you tell me where I went wrong

2008-05-22 Thread Rick Simpson
Thanks everyone for the responses. I added the msvcr71.dll to the Tomcat
bin file and it fixed my problems. THANKS 

-Original Message-
From: Chris Stewart [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 22, 2008 11:23 AM
To: Tomcat Users List
Subject: Re: error message, can you tell me where I went wrong

Chuck,

Randomly throwing around versions of DLLs is not the answer to this
problem.  I had the exact issue as the original poster described and
what I posted solved my issue. What fixes the issue is putting the
msvcr71.dll file in the system32 directory on the machine.  Of course
this isn't a wise choice when simply adding the Java bin directory to
your PATH will work just fine.

Chris Stewart
[EMAIL PROTECTED]



On May 22, 2008, at 11:13 AM, Caldarale, Charles R wrote:

 From: Chris Stewart [mailto:[EMAIL PROTECTED]
 Subject: Re: error message, can you tell me where I went wrong

 The JAVA_HOME\bin directory needs to be added to the PATH variable on

 your machine.

 The above is useless - Tomcat is being run as a service, so there is 
 no PATH in effect.

 I have created an environamental variable called JAVA_HOME with a 
 path pointing to the JDK folder.

 Also a waste of time when running Tomcat as a service.

 The log in Jakarta for both versions says
 [174 javajni.c] [error] the specified module could not be found.

 You may well be missing a .dll file that the service launcher needs; 
 find a copy of msvcr71.dll and put it in Tomcat's bin directory and 
 see if that fixes the problem.

 java\jre1.6.0_06\bin\client\jvm.dll

 You probably want to use the server version of the JVM.  Use the 
 tomcat5w.exe program to change that.

 - Chuck


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

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



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


===
This e-mail is intended only for the use of the addressees.  Any copying, 
forwarding, printing or 
other use of this e-mail by persons other than the addressees is not 
authorized.  
This e-mail may contain information that is privileged, confidential and exempt 
from disclosure.  
If you are not the intended recipient, please notify us immediately by return 
e-mail 
(including the original message in your reply) and then delete and discard all 
copies of the e-mail.  



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



Blank page when installing tomcat in Mac Leopard

2008-05-22 Thread Christina Tziviskou

hi everyone,
I recently installed tomcat version 6.0 in mac Leopard.
After installation, by calling the http://localhost:8080/ page, I get a 
blank page.
No error messages are in the log files, and i keep getting the blank 
page even if i ask jsp pages contained in the webapps folder.


I had no problems installing tomcat in mac Tiger.

Thank you,
christina

-
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: Long freeze during tomcat start

2008-05-22 Thread Adam Hardy
Tell you the truth, I can only assume IPv6 stuff is configured to the debian 
etch defaults - although that might have changed between the date I installed 
the no-pause-box and the date I installed the problem box.


no-pause-box:
eth0  Link encap:Ethernet  HWaddr 00:10:DC:79:FF:8F
  inet addr:192.168.0.234  Bcast:192.168.0.255  Mask:255.255.255.0
  inet6 addr: fe80::210:dcff:fe79:ff8f/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:606692 errors:0 dropped:0 overruns:0 frame:0
  TX packets:598681 errors:0 dropped:0 overruns:0 carrier:0
  collisions:65 txqueuelen:1000
  RX bytes:145074456 (138.3 MiB)  TX bytes:44751878 (42.6 MiB)

loLink encap:Local Loopback
  inet addr:127.0.0.1  Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:59645 errors:0 dropped:0 overruns:0 frame:0
  TX packets:59645 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:5125125 (4.8 MiB)  TX bytes:5125125 (4.8 MiB)

box-with-pause (eth1 is LAN, eth2 is internet):
eth1  Link encap:Ethernet  HWaddr 00:18:F3:98:F4:EC
  inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
  inet6 addr: fe80::218:f3ff:fe98:f4ec/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:134101 errors:0 dropped:0 overruns:0 frame:0
  TX packets:138909 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:100
  RX bytes:12595060 (12.0 MiB)  TX bytes:53461584 (50.9 MiB)
  Base address:0xbc00 Memory:fe8e-fe90

eth2  Link encap:Ethernet  HWaddr 00:08:54:0A:B1:E7
  inet addr:86.138.125.132  Bcast:86.138.125.132  Mask:255.255.255.255
  inet6 addr: fe80::208:54ff:fe0a:b1e7/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:56889 errors:0 dropped:0 overruns:0 frame:0
  TX packets:50695 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:42379708 (40.4 MiB)  TX bytes:6543279 (6.2 MiB)
  Interrupt:58 Base address:0xd800

loLink encap:Local Loopback
  inet addr:127.0.0.1  Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:3894 errors:0 dropped:0 overruns:0 frame:0
  TX packets:3894 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:236606 (231.0 KiB)  TX bytes:236606 (231.0 KiB)


Jim Cox on 22/05/08 14:05, wrote:

I'm assuming the pause you saw was at the following line?
  connect(11, {sa_family=AF_INET6, sin6_port=htons(48669),
inet_pton(AF_INET6, ::1, sin6_addr), sin6_flowinfo=0, sin6_scope_id=0},
28) = -1 ETIMEDOUT (Connection timed out)

That looks like a connect attempt to the IPv6 loopback address (?) which
times out, but the corresponding line from the no-pause box seems to do
the same without delay. Do you have IPv6 enabled on both boxes, i.e. does
the output from /sbin/ifconfig -a look similar?

On Thu, May 22, 2008 at 8:52 AM, Adam Hardy [EMAIL PROTECTED]
wrote:


I think this is the equivalent part of the strace log from another machine
on the LAN:

socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 10
listen(10, 1)   = 0
getsockname(10, {sa_family=AF_INET6, sin6_port=htons(54792),
inet_pton(AF_INET6, ::, sin6_addr), sin6_flowinfo=0, sin6_scope_id=0},
[28]) = 0
socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 11
connect(11, {sa_family=AF_INET6, sin6_port=htons(54792),
inet_pton(AF_INET6, ::1, sin6_addr), sin6_flowinfo=0, sin6_scope_id=0},
28) = 0
fcntl64(10, F_GETFL)= 0x2 (flags O_RDWR)
fcntl64(10, F_SETFL, O_RDWR|O_NONBLOCK) = 0
accept(10, {sa_family=AF_INET6, sin6_port=htons(51175), inet_pton(AF_INET6,
::1, sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 12
shutdown(11, 2 /* send and receive */)  = 0



Jim Cox on 22/05/08 13:38, wrote:


Can you compare that output to a capture from the box where you don't see
the pause? I wonder if it's a difference in IPv4/IPv6 configuration
between
the boxes...

On Thu, May 22, 2008 at 8:24 AM, Adam Hardy [EMAIL PROTECTED]
wrote:

 Found it! But I think my knowledge of linux system calls and kernel

functions is letting me down now. Presumably that is port 48669, which
should be open - but is it a DNS call? If it is a DNS call, then the DNS
server on the same machine should serve it - piping it out to the net,
presumably. But with my DNS server running, which up to now has worked
fine,
and with the gateway open to allow internet access, tomcat still freezes.

So I guess it doesn't matter what the DNS call is for, the problem is
that
my DNS server is not serving it? I guess that means its config needs
tweaking to tell it to serve DNS requests on the loopback 

Broken pipe errors

2008-05-22 Thread James Law
Can anyone help with the below error? We have just changed from a FC8
box with the default install (Test Box) to a FC8 box with a more
stripped down install (both the same machines)

With the stripped down install we now get the following error, the only
difference's between the two was the test box was setup to use the AJP
connector attached to a Apache server. And the slimmed down is stand
alone, both using Sun's JDK6 with Tomcat 6.0.16.

Thanks!

 

 

org.apache.cxf.interceptor.Fault: Could not send Message.

  at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingI
nterceptor.handleMessage(MessageSenderInterceptor.java:64)

  at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorC
hain.java:208)

  at
org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage
(AbstractFaultChainInitiatorObserver.java:96)

  at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorC
hain.java:242)

  at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiati
onObserver.java:77)

  at
org.apache.cxf.transport.servlet.ServletDestination.doMessage(ServletDes
tination.java:79)

  at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(Ser
vletController.java:264)

  at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletControl
ler.java:160)

  at
org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFSe
rvlet.java:170)

  at
org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(AbstractCXFSe
rvlet.java:148)

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:290)

  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)

  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:233)

  at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:175)

  at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:128)

  at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:102)

  at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)

  at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2
86)

  at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84
4)

  at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:583)

  at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

  at java.lang.Thread.run(Thread.java:619)

Caused by: ClientAbortException:  java.net.SocketException: Broken pipe

  at
org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:319
)

  at
org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:288)

  at
org.apache.catalina.connector.Response.flushBuffer(Response.java:548)

  at
org.apache.catalina.connector.ResponseFacade.flushBuffer(ResponseFacade.
java:279)

  at
org.apache.cxf.transport.http.AbstractHTTPDestination$WrappedOutputStrea
m.close(AbstractHTTPDestination.java:427)

  at
org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)

  at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingI
nterceptor.handleMessage(MessageSenderInterceptor.java:62)

  ... 23 more

Caused by: java.net.SocketException: Broken pipe

  at java.net.SocketOutputStream.socketWrite0(Native Method)

  at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)

  at java.net.SocketOutputStream.write(SocketOutputStream.java:136)

  at
org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOut
putBuffer.java:737)

  at
org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)

  at
org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer
.java:299)

  at
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:963
)

  at org.apache.coyote.Response.action(Response.java:183)

  at
org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:314
)

  ... 29 more

May 22, 2008 12:30:37 AM org.apache.cxf.phase.PhaseInterceptorChain
doIntercept




Search all of our current vacancies at www.generic-software.com


The information contained within this message is intended for the addressee 
only and may contain confidential and/or privileged information. If you are 
not the addressee, please delete this message and notify the sender - you 
should not copy, distribute or disclose its contents to other parties.
 

Re: Apache and Tomcat sharing the same web root.

2008-05-22 Thread Mark Thomas

Christopher Schultz wrote:

Philip,

Philip Wigg wrote:
| are there any reasons why Apache and Tomcat cannot share the same web
| root folder, presuming that I exclude access to WEB-INF?

Nope, you should be good.

I would also restrict access to META-INF, and if you have any files that
should not be served by Tomcat (such as Velocity or Freemarker
templates, properties files outside of the WEB-INF directory, etc.), you
should make arrangements for Apache to refuse to serve them.


I strongly advise against doing this. Unless you know *exactly* what you 
are doing it is far too easy to open a whole can of security worms, the 
most regularly seen of which is source code disclosure of all of the JSPs 
on the site.


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]



Moving a site

2008-05-22 Thread Rick Simpson
Another question, that I am sure I am just over looking something
simple. I need to move a folder from old server to new server for a
sales website. I know I am missing something obvious but I have tried
serveral ways and none seem to work. Is there some magic. I have copied
the folder into the Tomcat web application manager, under the root. I
can see the file on the manager page but when I try to click on it I get
an error The requested source is not available. I started with little
hair and this is taking the rest. Thanks
 

Rick Simpson
Insl-x
308 Old County Road
Edgewater, FL 32132
T/386-428-6461, x164
F/386-427-7130
Email:  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  

 

 

===
This e-mail is intended only for the use of the addressees.  Any copying, 
forwarding, printing or 
other use of this e-mail by persons other than the addressees is not 
authorized.  
This e-mail may contain information that is privileged, confidential and exempt 
from disclosure.  
If you are not the intended recipient, please notify us immediately by return 
e-mail 
(including the original message in your reply) and then delete and discard all 
copies of the e-mail.  




Re: mod jk and workers file

2008-05-22 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Anurag,

Mehrotra, Anurag wrote:
| I now have to connect the same instance of web server (as above) to
another
| instance of Tomcat running on a different ip address and port numbers.
|
| How can I go about specifying multiple Workers file?

You don't want to do this.

| Can I use the same workers file and define new worker definition
|
| worker.wk2.port=new port number
| worker.wk2.host=new ip address
| worker.wk2.type=ajp13

This is the way to do it. Just copy your existing worker configuration
(the worker.[name].whatever lines) and paste them below the originals.
Just change the worker name and whatever other settings you need (such
as port number).

Finally, adjust the worker.list property to include both workers, like
this:

worker.list=wk1, wk2

That should be all you need. Make sure you reload httpd's configuration
after you change your workers file.

- -chris

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

iEYEARECAAYFAkg1vGoACgkQ9CaO5/Lv0PBUYQCffxjJKoZR9G8+cOqZXtC++Hlu
VpgAoKFCuMV5glCTL+lJ5wQh56yxy6pb
=Z6f1
-END PGP SIGNATURE-

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



Re: Moving a site

2008-05-22 Thread David Smith

So you decided to take our hair as well .. :-)

Specifics please:

Tomcat version:
Java version:
OS:


Any relevant excerpts from the logs:

--David


Rick Simpson wrote:


Another question, that I am sure I am just over looking something
simple. I need to move a folder from old server to new server for a
sales website. I know I am missing something obvious but I have tried
serveral ways and none seem to work. Is there some magic. I have copied
the folder into the Tomcat web application manager, under the root. I
can see the file on the manager page but when I try to click on it I get
an error The requested source is not available. I started with little
hair and this is taking the rest. Thanks


Rick Simpson
Insl-x
308 Old County Road
Edgewater, FL 32132
T/386-428-6461, x164
F/386-427-7130
Email:  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  






===
This e-mail is intended only for the use of the addressees.  Any copying, forwarding, printing or 
other use of this e-mail by persons other than the addressees is not authorized.  
This e-mail may contain information that is privileged, confidential and exempt from disclosure.  
If you are not the intended recipient, please notify us immediately by return e-mail 
(including the original message in your reply) and then delete and discard all copies of the e-mail.  




 




-
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: Broken pipe errors

2008-05-22 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

James,

James Law wrote:
| Can anyone help with the below error? We have just changed from a FC8
| box with the default install (Test Box) to a FC8 box with a more
| stripped down install (both the same machines)

Is anything actually not working? Broken pipe messages are occasionally
generated when users hit STOP on their browsers before the entire
response has been written to the output stream.

AFAIK, unless you find that something is actually not working, I think
you can safely ignore these messages.

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

iEYEARECAAYFAkg1vQcACgkQ9CaO5/Lv0PCPSgCgpP2XWeyaVbbElgVJ4UUnbTA6
uV4AoMQkfNkymmXex8XzElfGJkvjLXkp
=L/dz
-END PGP SIGNATURE-

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



Re: Broken pipe errors

2008-05-22 Thread David Smith
Broken pipe can also happen when faulty network hardware or sensitive 
firewalls drop the connection.


--David

Christopher Schultz wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

James,

James Law wrote:
| Can anyone help with the below error? We have just changed from a FC8
| box with the default install (Test Box) to a FC8 box with a more
| stripped down install (both the same machines)

Is anything actually not working? Broken pipe messages are occasionally
generated when users hit STOP on their browsers before the entire
response has been written to the output stream.

AFAIK, unless you find that something is actually not working, I think
you can safely ignore these messages.

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

iEYEARECAAYFAkg1vQcACgkQ9CaO5/Lv0PCPSgCgpP2XWeyaVbbElgVJ4UUnbTA6
uV4AoMQkfNkymmXex8XzElfGJkvjLXkp
=L/dz
-END PGP SIGNATURE-

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




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



RE: Moving a site

2008-05-22 Thread Rick Simpson
All 3 remaining hairs will thank you. 

Tomcat 5.5 Java JDK 1.6.0 Sever 2003

May 22, 2008 11:53:05 AM org.apache.catalina.core.StandardContext stop
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/SalesPor
tal] has not been started
May 22, 2008 11:53:12 AM org.apache.catalina.core.StandardContext stop
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/SalesPor
tal] has not been started
May 22, 2008 11:54:45 AM org.apache.catalina.core.StandardContext stop
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/SalesPor
tal] has not been started
May 22, 2008 11:54:45 AM org.apache.catalina.startup.HostConfig
checkResources
INFO: Undeploying context [/SalesPortal]
May 22, 2008 11:55:24 AM org.apache.catalina.core.StandardContext
resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\Program
Files\Apache Software Foundation\Tomcat 5.5\webapps\SalesPortal does not
exist or is not a readable directory 

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 22, 2008 2:36 PM
To: Tomcat Users List
Subject: Re: Moving a site

So you decided to take our hair as well .. :-)

Specifics please:

Tomcat version:
Java version:
OS:


Any relevant excerpts from the logs:

--David


===
This e-mail is intended only for the use of the addressees.  Any copying, 
forwarding, printing or 
other use of this e-mail by persons other than the addressees is not 
authorized.  
This e-mail may contain information that is privileged, confidential and exempt 
from disclosure.  
If you are not the intended recipient, please notify us immediately by return 
e-mail 
(including the original message in your reply) and then delete and discard all 
copies of the e-mail.  



-
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: Moving a site

2008-05-22 Thread David Smith



SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\Program
Files\Apache Software Foundation\Tomcat 5.5\webapps\SalesPortal does not
exist or is not a readable directory 




Can you post more of this ... like say a root cause?  Also can you 
verify the existence of the webapp folder and check to be sure the 
tomcat service has permission to read it?


--David

Rick Simpson wrote:

All 3 remaining hairs will thank you. 


Tomcat 5.5 Java JDK 1.6.0 Sever 2003

May 22, 2008 11:53:05 AM org.apache.catalina.core.StandardContext stop
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/SalesPor
tal] has not been started
May 22, 2008 11:53:12 AM org.apache.catalina.core.StandardContext stop
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/SalesPor
tal] has not been started
May 22, 2008 11:54:45 AM org.apache.catalina.core.StandardContext stop
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/SalesPor
tal] has not been started
May 22, 2008 11:54:45 AM org.apache.catalina.startup.HostConfig
checkResources
INFO: Undeploying context [/SalesPortal]
May 22, 2008 11:55:24 AM org.apache.catalina.core.StandardContext
resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\Program
Files\Apache Software Foundation\Tomcat 5.5\webapps\SalesPortal does not
exist or is not a readable directory 


-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 22, 2008 2:36 PM

To: Tomcat Users List
Subject: Re: Moving a site

So you decided to take our hair as well .. :-)

Specifics please:

Tomcat version:
Java version:
OS:


Any relevant excerpts from the logs:

--David


===
This e-mail is intended only for the use of the addressees.  Any copying, forwarding, printing or 
other use of this e-mail by persons other than the addressees is not authorized.  
This e-mail may contain information that is privileged, confidential and exempt from disclosure.  
If you are not the intended recipient, please notify us immediately by return e-mail 
(including the original message in your reply) and then delete and discard all copies of the e-mail.  




-
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: Moving a site

2008-05-22 Thread Leon Rosenberg
maybe you should pick a dir without spaces.

regards
Leon

On Thu, May 22, 2008 at 9:01 PM, David Smith [EMAIL PROTECTED] wrote:


 SEVERE: Error starting static Resources
 java.lang.IllegalArgumentException: Document base C:\Program
 Files\Apache Software Foundation\Tomcat 5.5\webapps\SalesPortal does not
 exist or is not a readable directory


 Can you post more of this ... like say a root cause?  Also can you verify
 the existence of the webapp folder and check to be sure the tomcat service
 has permission to read it?

 --David

 Rick Simpson wrote:

 All 3 remaining hairs will thank you.
 Tomcat 5.5 Java JDK 1.6.0 Sever 2003

 May 22, 2008 11:53:05 AM org.apache.catalina.core.StandardContext stop
 INFO: Container
 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/SalesPor
 tal] has not been started
 May 22, 2008 11:53:12 AM org.apache.catalina.core.StandardContext stop
 INFO: Container
 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/SalesPor
 tal] has not been started
 May 22, 2008 11:54:45 AM org.apache.catalina.core.StandardContext stop
 INFO: Container
 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/SalesPor
 tal] has not been started
 May 22, 2008 11:54:45 AM org.apache.catalina.startup.HostConfig
 checkResources
 INFO: Undeploying context [/SalesPortal]
 May 22, 2008 11:55:24 AM org.apache.catalina.core.StandardContext
 resourcesStart
 SEVERE: Error starting static Resources
 java.lang.IllegalArgumentException: Document base C:\Program
 Files\Apache Software Foundation\Tomcat 5.5\webapps\SalesPortal does not
 exist or is not a readable directory
 -Original Message-
 From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, May 22, 2008
 2:36 PM
 To: Tomcat Users List
 Subject: Re: Moving a site

 So you decided to take our hair as well .. :-)

 Specifics please:

 Tomcat version:
 Java version:
 OS:


 Any relevant excerpts from the logs:

 --David


 ===
 This e-mail is intended only for the use of the addressees.  Any copying,
 forwarding, printing or other use of this e-mail by persons other than the
 addressees is not authorized.  This e-mail may contain information that is
 privileged, confidential and exempt from disclosure.  If you are not the
 intended recipient, please notify us immediately by return e-mail (including
 the original message in your reply) and then delete and discard all copies
 of the e-mail.


 -
 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: Moving a site

2008-05-22 Thread Rick Simpson
David

I am sorry to sound like I don't know what I am doing but I don't. I can
open the rest of the folders in webapp folder from the manager just not
mine. The file I am moving came from version 4.1 of Tomcat, not sure if
that matters or not. 

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 22, 2008 3:02 PM
To: Tomcat Users List
Subject: Re: Moving a site



SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\Program 
Files\Apache Software Foundation\Tomcat 5.5\webapps\SalesPortal does 
not exist or is not a readable directory



Can you post more of this ... like say a root cause?  Also can you
verify the existence of the webapp folder and check to be sure the
tomcat service has permission to read it?

--David


===
This e-mail is intended only for the use of the addressees.  Any copying, 
forwarding, printing or 
other use of this e-mail by persons other than the addressees is not 
authorized.  
This e-mail may contain information that is privileged, confidential and exempt 
from disclosure.  
If you are not the intended recipient, please notify us immediately by return 
e-mail 
(including the original message in your reply) and then delete and discard all 
copies of the e-mail.  



-
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: Moving a site

2008-05-22 Thread David Smith
Regarding the logs, exceptions usually log very much like what you 
posted then go off into a huge list of  '... at (some class name) (some 
line number)'.


For example:

java.lang.IllegalArgumentException: Document base C:\Program 
Files\Apache Software Foundation\Tomcat 5.5\webapps\SalesPortal does

not exist or is not a readable directory
   at org.apache.catalina.. (SomeClass.java:443)
   at ..
   at 
root cause: java.io.PermissionDeniedException (or whatever) 
   at 
   at 

At the end of that, there usually is a 'root cause:' and another 
exception stack trace.  If you see such a thing in your logs, we'd like 
to see that.  That would offer more infomation regarding what happened. 

Could you give us the general layout of webapps\SalesPortal?  Also right 
click on the SalesPortal folder and take a look at the security tab.  
Does the local System account have Read permissions on the folder and 
it's contents?  Lastly, you should check to be sure the folder isn't 
really a shortcut which Java may not understand or follow.


--David


Rick Simpson wrote:


David

I am sorry to sound like I don't know what I am doing but I don't. I can
open the rest of the folders in webapp folder from the manager just not
mine. The file I am moving came from version 4.1 of Tomcat, not sure if
that matters or not. 


-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 22, 2008 3:02 PM

To: Tomcat Users List
Subject: Re: Moving a site

 


SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\Program 
Files\Apache Software Foundation\Tomcat 5.5\webapps\SalesPortal does 
not exist or is not a readable directory


   




Can you post more of this ... like say a root cause?  Also can you
verify the existence of the webapp folder and check to be sure the
tomcat service has permission to read it?

--David


===
This e-mail is intended only for the use of the addressees.  Any copying, forwarding, printing or 
other use of this e-mail by persons other than the addressees is not authorized.  
This e-mail may contain information that is privileged, confidential and exempt from disclosure.  
If you are not the intended recipient, please notify us immediately by return e-mail 
(including the original message in your reply) and then delete and discard all copies of the e-mail.  




-
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: Moving a site

2008-05-22 Thread Rick Simpson
First
It is a 20 meg folder not a shortcut
Second
Local system has read permissions
Third
C:\Program Files\Apache Software Foundation\Tomcat
5.5\webapps\SalesPortal
Fourth sorry its so long but complete log

ay 22, 2008 11:50:43 AM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance
in production environments was not found on the java.library.path:
C:\Program Files\Apache Software Foundation\Tomcat
5.5\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WIND
OWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
May 22, 2008 11:50:44 AM org.apache.coyote.http11.Http11BaseProtocol
init
INFO: Initializing Coyote HTTP/1.1 on http-8080
May 22, 2008 11:50:44 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 547 ms
May 22, 2008 11:50:44 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 22, 2008 11:50:44 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.26
May 22, 2008 11:50:44 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
May 22, 2008 11:50:44 AM org.apache.coyote.http11.Http11BaseProtocol
start
INFO: Starting Coyote HTTP/1.1 on http-8080
May 22, 2008 11:50:44 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
May 22, 2008 11:50:44 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/15  config=null
May 22, 2008 11:50:44 AM org.apache.catalina.storeconfig.StoreLoader
load
INFO: Find registry server-registry.xml at classpath resource
May 22, 2008 11:50:44 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 843 ms
May 22, 2008 11:53:05 AM org.apache.catalina.core.StandardContext stop
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/SalesPor
tal] has not been started
May 22, 2008 11:53:12 AM org.apache.catalina.core.StandardContext stop
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/SalesPor
tal] has not been started
May 22, 2008 11:54:45 AM org.apache.catalina.core.StandardContext stop
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/SalesPor
tal] has not been started
May 22, 2008 11:54:45 AM org.apache.catalina.startup.HostConfig
checkResources
INFO: Undeploying context [/SalesPortal]
May 22, 2008 11:55:24 AM org.apache.catalina.core.StandardContext
resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\Program
Files\Apache Software Foundation\Tomcat 5.5\webapps\SalesPortal does not
exist or is not a readable directory
at
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.jav
a:141)
at
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.
java:3855)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4024
)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:760)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:9
26)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:519)
at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1231)
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.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:458
)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown
Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
at
org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:139
4)
at
org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:81
2)
at
org.apache.catalina.manager.HTMLManagerServlet.deployInternal(HTMLManage
rServlet.java:252)
at
org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.
java:96)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:174)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator

Re: Moving a site

2008-05-22 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rick,

Rick Simpson wrote:
| C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\SalesPortal

Leon hinted that a path with spaces might be the problem. My experience
on win32 is that spaces are /sometimes/ a problem, and I haven't been
able to figure out why... sometimes they work fine and other times, not
so much.

How are you deploying your webapp... WAR file? Are you supplying a
context.xml either in your webapp or somewhere in Tomcat's configuration?

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

iEYEARECAAYFAkg11cwACgkQ9CaO5/Lv0PBgmgCgmQRhnTeOmVvdafSCwYEu+rob
uL4AnjnHQEJsrfpW94kDTSVdYrSevGY1
=g6SM
-END PGP SIGNATURE-

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



Debugging a Web application

2008-05-22 Thread R. Sriram

Hello,
I am using Tomcat 6.0.16 and JDK 1.6. I am using IntelliJ IDEA as my IDE 
to develop a Web application.
What Port(s) does Tomcat Listen to. I am unable to connect to 
localhost:5005.
The command Line args I have set in the IDE is: -Xdebug -Xnoagent 
-Djava.compiler=NONE 
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005

Transport: Socket
Debugger Mode: Attach
Host: localhost
Port: 5005
Thanks...Sriram

-
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 WebDAV - Restrict Fileupload with a max filesize

2008-05-22 Thread Thorsten Hodes

Hello!

How can I restrict the maximum filesize for webdav - users I have 
defined in the web.xml configuration of the tomcat's webdav servlet...


Here is my actual definition in web.xml

!-- Secure WebDAV - ROOT with these Authentification Role --
  security-constraint
  web-resource-collection
web-resource-nameWebDAV-Root 
Authentification/web-resource-name

url-pattern/*/url-pattern
  /web-resource-collection
  auth-constraint
role-nameadmin/role-name
  /auth-constraint
/security-constraint

security-role
  description
An webdav role defined in conf/tomcat-users.xml
  /description
  role-nameadmin/role-name
/security-role


The user here is admin an every upload via webdav with this user 
privileges should have a max. upload filesize of, for example, 10Mb.


How can I do this? Is there a way...I currently use tomcat 5.5.26...

Thanks for help and answers!!!

Regards,

Thorsten


-
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: Moving a site

2008-05-22 Thread Martin

Turn on god permissions on that folder..

Martin
- Original Message - 
From: David Smith [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, May 22, 2008 3:01 PM
Subject: Re: Moving a site






SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\Program
Files\Apache Software Foundation\Tomcat 5.5\webapps\SalesPortal does not
exist or is not a readable directory



Can you post more of this ... like say a root cause?  Also can you verify 
the existence of the webapp folder and check to be sure the tomcat service 
has permission to read it?


--David

Rick Simpson wrote:


All 3 remaining hairs will thank you.
Tomcat 5.5 Java JDK 1.6.0 Sever 2003

May 22, 2008 11:53:05 AM org.apache.catalina.core.StandardContext stop
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/SalesPor
tal] has not been started
May 22, 2008 11:53:12 AM org.apache.catalina.core.StandardContext stop
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/SalesPor
tal] has not been started
May 22, 2008 11:54:45 AM org.apache.catalina.core.StandardContext stop
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/SalesPor
tal] has not been started
May 22, 2008 11:54:45 AM org.apache.catalina.startup.HostConfig
checkResources
INFO: Undeploying context [/SalesPortal]
May 22, 2008 11:55:24 AM org.apache.catalina.core.StandardContext
resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\Program
Files\Apache Software Foundation\Tomcat 5.5\webapps\SalesPortal does not
exist or is not a readable directory
-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, May 22, 2008 
2:36 PM

To: Tomcat Users List
Subject: Re: Moving a site

So you decided to take our hair as well .. :-)

Specifics please:

Tomcat version:
Java version:
OS:


Any relevant excerpts from the logs:

--David


===
This e-mail is intended only for the use of the addressees.  Any copying, 
forwarding, printing or other use of this e-mail by persons other than the 
addressees is not authorized.  This e-mail may contain information that is 
privileged, confidential and exempt from disclosure.  If you are not the 
intended recipient, please notify us immediately by return e-mail 
(including the original message in your reply) and then delete and discard 
all copies of the e-mail.



-
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 deployment error

2008-05-22 Thread Shreekanta Prasad
Hi Chris/all,

Thanks this is solved. Two jars related to deployment catalina-ant.jar
and
Catalina-deployer.jar. were inside tomcat/common/lib directory where
other server related jars are there.I saperated these two from that
location. It works :).




Thanks and Regards - 
Shreekanta Prasad

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 22, 2008 7:08 PM
To: Tomcat Users List
Subject: Re: tomcat deployment error

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Shreekanta,

Shreekanta Prasad wrote:
| I am using tomcat 5.5. Using deployer utility of tomcat to
| do hot deployment to the server. But it is giving error error like
|
| \build.xml:98: java.io.IOException:
|
|  Server returned HTTP response code: 403 for URL:
| http://localhost:8080/manager/deploy?path=%2Fdmiupdate=true

403  is Forbidden which generally means that your username and
password are wrong.

| My build file has target called deploy it passes url,username,pwd  I
am
| passing same parameters those defined in  tomcat-users.xml in conf
| directory of tomcat

Try connecting to the manager application using a web browser and
entering your username and password. Once you are sure that works, make
sure that your ant build file contains the correct username and password
values.

| role as manager. Also observe the error line my context path is dmi it
| is taking path as '%2Fdmi' why is it?

Because / must be escaped in order to pass it as a parameter value.

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

iEYEARECAAYFAkg1dzAACgkQ9CaO5/Lv0PBXAACgnxKRqRJh5MJcURb7PejPdPy1
0GkAn1A8T/odZwS1UJC59xXjQ2RBKXfq
=xY2k
-END PGP SIGNATURE-

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


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



[Fwd: Re: Re: [Fwd: Tomcat manager]]

2008-05-22 Thread Khurram H Khan

Thanks for your reply.

No there are no national characters that I am using in my user name and 
password. Furthermore I have another instance of tomcat running on 
another server which is behind a vpn and I used its manager to stop and 
start webapps, it is not like that I don't know how to set up the users. 
It is the instance of tomcat that is available on the internet gives me 
this trouble. And I have also tried out 
'http://IP_ADDRESS/manager/html/' and I encounter the same problem.


Any other suggestions or ideas will be appreciated.

Regards,

*Khurram Khan*



Konstantin Kolinko wrote:

Aren't you using some national characters in your user name or password?

Admin application specifies SetCharacterEncodingFilter in its web.xml
and uses FORM authentication. The Manager one does not specify the
filter and uses BASIC authentication.

Also,
https://issues.apache.org/bugzilla/show_bug.cgi?id=29091

Also, does it work if you access it through the web page of
http://IP_ADDRESS/manager/html/
?


2008/5/14 Khurram H Khan [EMAIL PROTECTED]:
  

Hello everyone,

I have sent an email before regarding tomcat manager. And the issue was that
I could not use the same username and password to start/stop a webapp using
http://IP_ADDRESS/manager/stop?path=/My_WebAp . And it keeps popping up an
input box for username and password. I have the same username and password
for the admin webapp and it works. But this username and password does not
work for the manager webapp even though I have the same username and
password. Let me give you the content of my tomcat-users.xml which are the
following:





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