tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pr...@netscape.net (Peter O'Reilly)
Subject Re: Apache 2.0.52 Tomcat 5.5.4
Date Thu, 18 Nov 2004 02:54:39 GMT
Her goes, 

  It's JK2

1 > My httt.conf has this line,
    LoadModule jk2_module modules/mod_jk2.so

2 > In the same directory as the http.conf file above i have 
    workers2.properties with the following entries,
*STARRT WORKERS.PROPERTIES *******************************************
[logger]
level=DEBUG

[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

# Alternate file logger
#[logger.file:0]
#level=DEBUG
#file=${serverRoot}/logs/jk2.log

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=${serverRoot}/logs/jk2.shm
size=1000000
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0
# Default Native Logger (apache2 or win32 ) 
# can be overriden to a file logger, useful 
# when tracing win32 related issues
#logger=logger.file:0

[lb:lb]
info=Default load balancer.
debug=0

[lb:lb_1]
info=A second load balancer.
debug=0

[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009

[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[channel.socket:localhost:8019]
info=A second tomcat instance. 
debug=0
tomcatId=localhost:8019
lb_factor=1
#group=lb
group:lb:lb
#group=lb_1
group:lb:lb_1
disabled=0

[channel.un:/opt/33/work/jk2.socket]
info=A second channel connecting to localhost:8019 via unix socket
tomcatId=localhost:8019
lb_factor=1
debug=0

[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess

[status:]
info=Status worker, displays runtime informations

[vm:]
info=Parameters used to load a JVM in the server process
#JVM=C:\jdk\jre\bin\hotspot\jvm.dll
classpath=${TOMCAT_HOME}/bin/tomcat-jni.jar
classpath=${TOMCAT_HOME}/server/lib/commons-logging.jar
OPT=-Dtomcat.home=${TOMCAT_HOME}
OPT=-Dcatalina.home=${TOMCAT_HOME}
OPT=-Xmx128M
#OPT=-Djava.compiler=NONE
disabled=1

[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=start
# For Tomcat 5 use the 'stard' for startup argument
# ARG=stard
disabled=1
stdout=${serverRoot}/logs/stdout.log
stderr=${serverRoot}/logs/stderr.log

[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=stop
disabled=1

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:


[uri:/examples]
info=Example webapp in the default context. 
context=/examples
debug=0

[uri:/mydir/*]
worker=ajp13:localhost:8009

[uri:/examples/*]
worker=ajp13:localhost:8009

[uri:/examples1/*]
info=A second webapp, this time going to the second tomcat only.
group=lb_1
debug=0

[uri:/examples/servlet/*]
info=Prefix mapping

[uri:/examples/*.jsp]
info=Extension mapping

[uri:/examples/*]
info=Map the whole webapp

[uri:/examples/servlet/HelloW]
info=Example with debug enabled.
debug=10

**END WORKERS.PROPERTIES *********************************************

My apache Error_Log file is as follows,
**START APACHE ERROR_LOG***********************
[Wed Nov 17 21:40:19 2004] [notice] caught SIGTERM, shutting down
[Wed Nov 17 21:42:27 2004] [notice] config.update(): done logger
[Wed Nov 17 21:42:27 2004] [notice] config.update(): done config:
[Wed Nov 17 21:42:27 2004] [notice] config.update(): done uriMap:
[Wed Nov 17 21:42:27 2004] [notice] config.update(): done shm:
[Wed Nov 17 21:42:27 2004] [notice] config.update(): done workerEnv:
[Wed Nov 17 21:42:27 2004] [notice] config.update(): done lb:lb
[Wed Nov 17 21:42:27 2004] [notice] config.update(): done lb:lb_1
[Wed Nov 17 21:42:27 2004] [notice] config.update(): done channel.socket:localhost:8009
[Wed Nov 17 21:42:27 2004] [notice] config.update(): done ajp13:localhost:8009
[Wed Nov 17 21:42:27 2004] [notice] config.update(): done channel.socket:localhost:8019
[Wed Nov 17 21:42:27 2004] [notice] config.update(): done channel.un:/opt/33/work/jk2.socket
[Wed Nov 17 21:42:27 2004] [error] env.createBean2(): Factory error creating channel.jni:jni
( channel.jni, jni)
[Wed Nov 17 21:42:27 2004] [error] config.update(): Can't create channel.jni:jni
[Wed Nov 17 21:42:27 2004] [notice] config.update(): done status:
[Wed Nov 17 21:42:27 2004] [error] env.createBean2(): Factory error creating vm: ( vm, )
[Wed Nov 17 21:42:27 2004] [error] config.update(): Can't create vm:
[Wed Nov 17 21:42:27 2004] [error] env.createBean2(): Factory error creating worker.jni:onStartup
( worker.jni, onStartup)
[Wed Nov 17 21:42:27 2004] [error] config.update(): Can't create worker.jni:onStartup
[Wed Nov 17 21:42:27 2004] [error] env.createBean2(): Factory error creating worker.jni:onShutdown
( worker.jni, onShutdown)
[Wed Nov 17 21:42:27 2004] [error] config.update(): Can't create worker.jni:onShutdown
[Wed Nov 17 21:42:27 2004] [notice] config.update(): done uri:/jkstatus/*
[Wed Nov 17 21:42:27 2004] [notice] config.update(): done uri:/examples
[Wed Nov 17 21:42:27 2004] [notice] uriEnv.setAttribute() the worker directive is deprecated.
Use 'group' instead.
[Wed Nov 17 21:42:27 2004] [notice] config.update(): done uri:/iat/*
[Wed Nov 17 21:42:27 2004] [notice] uriEnv.setAttribute() the worker directive is deprecated.
Use 'group' instead.
[Wed Nov 17 21:42:27 2004] [notice] config.update(): done uri:/examples/*
[Wed Nov 17 21:42:27 2004] [notice] config.update(): done uri:/examples1/*
[Wed Nov 17 21:42:27 2004] [notice] config.update(): done uri:/examples/servlet/*
[Wed Nov 17 21:42:27 2004] [notice] config.update(): done uri:/examples/*.jsp
[Wed Nov 17 21:42:27 2004] [notice] uriEnv.setAttribute() the worker directive is deprecated.
Use 'group' instead.
[Wed Nov 17 21:42:27 2004] [notice] config.update(): done uri:/examples/*
[Wed Nov 17 21:42:27 2004] [notice] config.update(): done uri:/examples/servlet/HelloW
[Wed Nov 17 21:42:27 2004] [notice] shm.create() Created head 40202000 size 8192
[Wed Nov 17 21:42:28 2004] [notice] jk2_init() Setting scoreboard slot 0 for child 21372
[Wed Nov 17 21:42:28 2004] [notice] channelApr.resolve(): create AF_NET  127.0.0.1 8009
[Wed Nov 17 21:42:28 2004] [notice] channelApr.resolve(): create AF_NET  localhost 8019
[Wed Nov 17 21:42:28 2004] [notice] channelUn.init(): init 
[Wed Nov 17 21:42:28 2004] [notice] channelUn.init(): extracted file from name /opt/33/work/jk2.socket
[Wed Nov 17 21:42:28 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties
[Wed Nov 17 21:42:28 2004] [notice] mod_jk2 child 21372 initialized
[Wed Nov 17 21:42:28 2004] [notice] jk2_init() Setting scoreboard slot 0 for child 21373
[Wed Nov 17 21:42:28 2004] [notice] channelApr.resolve(): create AF_NET  127.0.0.1 8009
[Wed Nov 17 21:42:28 2004] [notice] channelApr.resolve(): create AF_NET  localhost 8019
[Wed Nov 17 21:42:28 2004] [notice] channelUn.init(): init 
[Wed Nov 17 21:42:28 2004] [notice] channelUn.init(): extracted file from name /opt/33/work/jk2.socket
[Wed Nov 17 21:42:28 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties
[Wed Nov 17 21:42:28 2004] [notice] mod_jk2 child 21373 initialized
[Wed Nov 17 21:42:28 2004] [notice] jk2_init() Setting scoreboard slot 0 for child 21374
[Wed Nov 17 21:42:28 2004] [notice] channelApr.resolve(): create AF_NET  127.0.0.1 8009
[Wed Nov 17 21:42:28 2004] [notice] channelApr.resolve(): create AF_NET  localhost 8019
[Wed Nov 17 21:42:28 2004] [notice] channelUn.init(): init 
[Wed Nov 17 21:42:28 2004] [notice] channelUn.init(): extracted file from name /opt/33/work/jk2.socket
[Wed Nov 17 21:42:28 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties
[Wed Nov 17 21:42:28 2004] [notice] mod_jk2 child 21374 initialized
[Wed Nov 17 21:42:28 2004] [notice] jk2_init() Found child 21375 in scoreboard slot 3
[Wed Nov 17 21:42:28 2004] [notice] channelApr.resolve(): create AF_NET  127.0.0.1 8009
[Wed Nov 17 21:42:28 2004] [notice] channelApr.resolve(): create AF_NET  localhost 8019
[Wed Nov 17 21:42:28 2004] [notice] channelUn.init(): init 
[Wed Nov 17 21:42:28 2004] [notice] channelUn.init(): extracted file from name /opt/33/work/jk2.socket
[Wed Nov 17 21:42:28 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties
[Wed Nov 17 21:42:28 2004] [notice] mod_jk2 child 3 initialized
[Wed Nov 17 21:42:28 2004] [notice] jk2_init() Setting scoreboard slot 0 for child 21376
[Wed Nov 17 21:42:28 2004] [notice] channelApr.resolve(): create AF_NET  127.0.0.1 8009
[Wed Nov 17 21:42:28 2004] [notice] channelApr.resolve(): create AF_NET  localhost 8019
[Wed Nov 17 21:42:28 2004] [notice] channelUn.init(): init 
[Wed Nov 17 21:42:28 2004] [notice] channelUn.init(): extracted file from name /opt/33/work/jk2.socket
[Wed Nov 17 21:42:28 2004] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties
[Wed Nov 17 21:42:28 2004] [notice] mod_jk2 child 21376 initialized
[Wed Nov 17 21:42:28 2004] [notice] Apache/2.0.52 (Unix) mod_jk2/2.0.4 configured -- resuming
normal operations

**END APACHE ERROR_LOG***********************

Catalina out has these entries,
*********************************************
Nov 17, 2004 9:40:21 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Nov 17, 2004 9:40:22 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Nov 17, 2004 9:40:22 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@c05d3b')
Nov 17, 2004 9:40:22 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@128f6ee')
Nov 17, 2004 9:40:22 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@6bade9')
Nov 17, 2004 9:40:22 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Nov 17, 2004 9:40:22 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Nov 17, 2004 9:40:23 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@16de49c')
Nov 17, 2004 9:40:23 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1bbf1ca')
Nov 17, 2004 9:40:23 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1ff0dde')
Nov 17, 2004 9:40:23 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Nov 17, 2004 9:40:23 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Nov 17, 2004 9:40:23 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Nov 17, 2004 9:40:32 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Nov 17, 2004 9:40:32 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3698 ms
Nov 17, 2004 9:40:32 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Nov 17, 2004 9:40:32 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.4
Nov 17, 2004 9:40:32 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Nov 17, 2004 9:40:35 PM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL:
http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param
name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule:
Redirect URL: http://jakarta.apache.org]]
Nov 17, 2004 9:40:35 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Nov 17, 2004 9:40:35 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Nov 17, 2004 9:40:36 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Nov 17, 2004 9:40:36 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Nov 17, 2004 9:40:37 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Nov 17, 2004 9:40:37 PM org.apache.catalina.connector.MapperListener registerEngine
WARNING: Unknown default host: localhost
Nov 17, 2004 9:40:38 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Nov 17, 2004 9:40:38 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/97  config=null
Nov 17, 2004 9:40:38 PM org.apache.catalina.connector.MapperListener registerEngine
WARNING: Unknown default host: localhost
Nov 17, 2004 9:40:38 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 6335 ms
*********************************************


Thank you,
Peter.



<qm300@brandxdev.net> wrote:

>On Wed, Nov 17, 2004 at 11:23:14AM -0500, Peter O'Reilly wrote:
>:  I can browse my website, www.123.com, but when I click a button the servlet I need
to execute doesn't and I get a Apache error.  I know its a connector issue because I can browse
www.123.com:8080/mydir and get to the site, click the button, and the servlet does what it's
supposed.
>: 
>: Can someone outline the steps and file I need to configure?  I've read the documents
and can't get this to work...
>
>For such a question, it *really* helps for you to post the relevant
>config files. In this case, those would be the mod_jk configs.
>
>You could also be kind and explain what connector you use (jk vs jk2).
>
>-QM
>
>-- 
>
>software  -- http://www.brandxdev.net
>tech news -- http://www.RoarNetworX.com
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>

__________________________________________________________________
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message