WebApp not recognised when having context.xml

On Jul 15, 2010, at 14:57, “bugger” wrote:

Nice e-mail address; how to win friends and influence future employers…

Misspelling – case matters.

Also, manually unzipping the .war file may cause Tomcat to see just a portion of the webapp rather than the whole thing. Better to let Tomcat do the unpacking of the .war file.

– Chuck

’403 forbidden’ when trying to serve index.html

At 05:26 PM 7/14/2010, Frank Gingras wrote:

Thanks, that fixed it! I had to add world execute permissions for the /root directory. After that the index.html page loaded fine.

’403 forbidden’ when trying to serve index.html

On 07/14/2010 08:21 PM, Bennett Haselton wrote:

Bennet,

Please read :

http://wiki.apache.org/httpd/13PermissionDenied

Frank.

’403 forbidden’ when trying to serve index.html

At 05:06 PM 7/14/2010, Frank Gingras wrote:

That just says:

[Wed Jul 14 17:17:17 2010] [error] [client 71.112.32.149] (13)Permission denied: access to /index.html denied

-Bennett

’403 forbidden’ when trying to serve index.html

On 07/14/2010 08:01 PM, Bennett Haselton wrote:

How about the entry from the error log, first?

Frank.

’403 forbidden’ when trying to serve index.html

A consultant is giving me instructions for compiling a second copy of Apache on my server to listen on a different port from the main Apache. The second copy resides under /root/httpd, the httpd.conf file contains the line

DocumentRoot “/root/httpd/htdocs”

so I assume that attempting to browse http://66.148.71.117:8080/index.html should attempt to load the contents of /root/httpd/htdocs/index.html. (This webserver is set to listen on port 8080 so as not to conflict with the main webserver.)

However, http://66.148.71.117:8080/index.html gives “403 Forbidden” and we can’t figure out why. Here’s what I know:

“ps auwx | grep httpd” shows several instances of:

apache 4585 1.0 1.7 30656 17932 ? S 14:59 1:11 /usr/sbin/httpd (the main webserver that was originally on the machine)

and several instances of:

daemon 7199 0.0 0.1 4700 1992 ? S 16:56 0:00 /root/httpd/bin/httpd -k start

which is the test Apache. The permissions on /root/httpd/htdocs/index.html are:

[root@sls-ec5p18 bin]# ls -l /root/httpd/htdocs/index.html -rw-r–r– 1 daemon root 53 Jul 13 11:41 /root/httpd/htdocs/index.html [root@sls-ec5p18 bin]#

(that was after I changed ownership of the file to the “daemon” user to see if that would enable Apache to read it, but it didn’t).

and selinux is disabled:

[root@sls-ec5p18 bin]# sestatus SELinux status: disabled

Since index.html is world-readable, *and* in fact owned by the user “daemon” (the same user that this custom build of Apache is running under), any idea why index.html would be bringing up ’403 forbidden’?

-Bennett

remove “content-length” http header when header “Transfer-Encoding chunked” exist

On 13/07/2010 22:02, clam715 wrote:

Fix your broken application? Tomcat is unlikely to be doing that on its own.

Mark

When and how does the parent pid get notified that it is time for the child to die because MaxRequestsPerChild has been reached?

Hi All,

Can anyone help me Why parent httpd process isn’t spawning a new replacement child in a timely fashion, after MaxRequestsPerChild has been hit and the child worker httpd has exited.

When and how does the parent pid get notified that it is time for the child to die because MaxRequestsPerChild has been reached?

Does the child send back to the parent that it is servicing it’s last client BEFORE it starts doing so or does the parent in some way keep track of how many clients the child has serviced or what?

Thanks Matty.

newly installed KDE: don’t want Nautilus window when USB memory inserted

On a newly installed KDE on a Testing system, I notice that when I connect a USB flash stick memory, it automatically opens in a Nautilus window.

On the previously installed system, the Nautilus window did not open and only the removable device notifier for KDE popped up a message saying that a memory stick has been inserted. I could then click on the memory’s icon and it would then open in dolphin browser. How do I get this behavior back (and prevent the Nautilus browser from automatically opening)?

Thanks.

when memory leak, tomcat can’t accept requests?

Hi all:

Out web site use Nginx infront of tomcat6.0.28, nio connector, in heavy load running about 24 hours, tomcat can’t accept request, we must restart tomcat .

check nginx error log, there are lots of “Connection timed out”, print tomcat jstack, found most tomcat threads is “TIMED_WAITING”, like this:

“http-10.132.23.74-8090-exec-54″ daemon prio=10 tid=0x00002aab36ecec00 nid=0×3175 waiting on condition [0x00000000498c0000..0x00000000498c0e20]

java.lang.Thread.State: TIMED_WAITING (parking)

at sun.misc.Unsafe.park(Native Method)

– parking to wait for (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)

at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitN anos(AbstractQueuedSynchronizer.java:1963)

at java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:395)

at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:944)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:9 06)

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

print jmap, we found we have lots of memory leak:

num #instances #bytes class name