tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ภฬฝยน้" <ranu...@hanmail.net>
Subject [Apache + Tomcat HOWTO] HANDLER THREAD PROBLEM
Date Tue, 22 Feb 2000 14:14:27 GMT
I am getting a following message, what does it mean?
(RedHat6.1 + Apache1.3.9 + Tomcat3.1m1)

[root@dolphin /root]# httpdstart
Starting httpd:                                            [  OK  ]
[root@dolphin /root]# startup.sh
cd /usr/local/Jakarta/tomcat
Using classpath: /usr/local/Jakarta/tomcat/classes:/usr/local/Jakarta/tomcat/webserver.jar:
/usr/local/Jakarta/tomcat/lib/servlet.jar:/usr/local/Jakarta/tomcat/lib/jasper.jar:
/usr/local/Jakarta/tomcat/lib/xml.jar:/usr/local/java/lib/tools.jar:.:/usr/local/java/lib:
/usr/local/java/lib/tools.jar:/usr/local/Jakarta/tomcat/classes
[root@dolphin /root]# Tomcat Web Server Version 3.1M1
Loaded configuration from: file:/usr/local/Jakarta/tomcat/server.xml
Starting tcp endpoint on 8080 with org.apache.tomcat.service.http.HttpConnectionHandler
Starting tcp endpoint on 8007 with org.apache.tomcat.service.connector.Ajp12ConnectionHandler
Configuring web service using "default"
Configuring web service using "file:/usr/local/Jakarta/tomcat/examples/WEB-INF/web.xml"
Context(/examples): default: init
Context(/examples): jsp: init
Configuring web service using "default"
Configuring web service using "file:/home/webmaster/badaMain/WEB-INF/web.xml"
Context(/bada): default: init
Context(/bada): jsp: init
Configuring web service using "default"
Configuring web service using "file:/usr/local/Jakarta/tomcat/webpages/WEB-INF/web.xml"
Context(): default: init
Context(): jsp: init
HANDLER THREAD PROBLEM: java.io.IOException: ?????p? ??????
java.io.IOException: ?????p? ??????
        at java.net.SocketOutputStream.socketWrite(Native Method)
	at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
	at org.apache.tomcat.service.http.HttpResponseAdapter.doWrite(HttpResponseAdapter.java:151)
	at org.apache.tomcat.core.BufferedServletOutputStream.doWrite(BufferedServletOutputStream.java:121)
	at org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush(BufferedServletOutputStream.java:250)
	at org.apache.tomcat.core.ResponseImpl.finish(ResponseImpl.java:175)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:352)
	at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:146)
	at org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:305)
	at java.lang.Thread.run(Thread.java:475)
FATAL: error in error handler
java.io.IOException: ?????p? ??????
        at java.net.SocketOutputStream.socketWrite(Native Method)
	at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
	at org.apache.tomcat.service.http.HttpResponseAdapter.doWrite(HttpResponseAdapter.java:151)
	at org.apache.tomcat.core.BufferedServletOutputStream.doWrite(BufferedServletOutputStream.java:121)
	at org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush(BufferedServletOutputStream.java:250)
	at org.apache.tomcat.core.BufferedServletOutputStream.close(BufferedServletOutputStream.java:259)
	at org.apache.tomcat.core.ResponseImpl.close(ResponseImpl.java:599)
	at org.apache.tomcat.core.ResponseImpl.sendError(ResponseImpl.java:519)
	at org.apache.tomcat.core.HttpServletResponseFacade.sendError(HttpServletResponseFacade.java:158)
	at org.apache.tomcat.servlets.DefaultErrorPage.service(DefaultErrorPage.java:102)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
	at org.apache.tomcat.core.ServletWrapper.sendInternalServletError(ServletWrapper.java:321)
	at org.apache.tomcat.core.ServletWrapper.handleException(ServletWrapper.java:301)
	at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:237)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:347)
	at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:146)
	at org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:305)
	at java.lang.Thread.run(Thread.java:475)


#####################   httpd.conf  #####################
ServerType standalone
ServerRoot "/etc/httpd"
#Listen 3000
#Listen 12.34.56.78:80
#BindAddress *
Port 80
User nobody
Group nobody
ServerAdmin root@localhost
ServerName dolphin.badara.com
DocumentRoot "/home/httpd/html"
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

<Directory "/home/httpd/html">

    Options Indexes FollowSymLinks Includes

    AllowOverride None

    Order allow,deny
    Allow from all
</Directory>

UserDir public_html
DirectoryIndex index.html index.shtml index.cgi

Include /usr/local/Jakarta/tomcat/etc/tomcat.conf


###################### server.xml #########################
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE Server
    PUBLIC "-//Sun Microsystems, Inc.//DTD Servlet Server 1.0//EN"
    "file:./etc/server.dtd">
<!--
This is the configuration file for the JSWDK server.
Following is a brief overview of the JSWDK server
configuration options. Please review the following
file for complete configuration information:
    etc/server.dtd
-->

<Server adminPort="-1" workDir="work">
    <ContextManager port="8080" hostName="dolphin" inet="">
<!--
    Note: a default context, one which path is specified
          as "/", must be defined per the servlet 2.2
          specification.
-->
        <Context path="/" docBase="webpages"
            defaultSessionTimeOut="30" isWARExpanded="true"
            isWARValidated="false" isInvokerEnabled="true"
            isWorkDirPersistent="false"/>
        <Context path="/examples" docBase="examples"
            defaultSessionTimeOut="30" isWARExpanded="true"
            isWARValidated="false" isInvokerEnabled="true"
            isWorkDirPersistent="false"/>
        <Context path="/bada" docBase="/home/webmaster/badaMain"
            defaultSessionTimeOut="30" isWARExpanded="true"
            isWARValidated="false" isInvokerEnabled="true"
            isWorkDirPersistent="false"/>
<!--
        <Interceptor className="com.mycompany.MyInterceptor"
                     docBase="*" />
-->
        
        <!-- AJP12 - current JServ module -->
        <Connector className="org.apache.tomcat.service.TcpEndpointConnector">
            <Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
            <Parameter name="port" value="8007"/>
        </Connector>
     </ContextManager>
</Server>

######################## tomcat.conf #######################
###################################################################
#                     Apache JServ Configuration File             #          
###################################################################

# Note: this file should be appended or included into your httpd.conf

# Tell Apache on win32 to load the Apache JServ communication module
# LoadModule jserv_module modules/ApacheModuleJServ.dll

# Tell Apache on Unix to load the Apache JServ communication module
# For shared object builds only!!!
# @LOAD_OR_NOT@LoadModule jserv_module @LIBEXECDIR@/mod_jserv.so
LoadModule jserv_module modules/mod_jserv.so

<IfModule mod_jserv.c>
# Do not edit! 
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice


### Change if you run tomcat on a different host
#ApJServDefaultHost localhost
ApJServDefaultPort 8007


#################### All jsp files will go to tomcat ####################
ApJServMount default /root
 
AddType test/jsp .jsp
AddHandler jserv-servlet .jsp

############################## Context mapping - all requests go to tomcat

ApJServMount /examples /root
ApJServMount /bada /root
ApJServMount / /root

############################## Context mapping - you need to "deploy"
# ( copy or ln -s ) the context into htdocs
##

# ApJservMount /CONTEXT/servlet  /root
# <Location /CONTEXT/WEB-INF/ >
#      AllowOverride None
#      deny from all
# </Location>  

</IfModule>

==================================================
No. 1 ์šฐ๋ฆฌ ์ธํ„ฐ๋„ท, ๋‹ค์Œ
ํ‰์ƒ ์“ฐ๋Š” ๋ฌด๋ฃŒ E-mail ์ฃผ์†Œ ํ•œ๋ฉ”์ผ๋„ท
์ง€๊ตฌ์ดŒ ํ•œ๊ธ€ ๊ฒ€์ƒ‰์„œ๋น„์Šค Daum FIREBALL
http://www.daum.net

Mime
View raw message