Re: mod_jk2 - problem with servlets
Nevermind I figured it out. Just needed to add this in the Host in conf/server.xml: Context path= docBase= debug=1/ Doesn't make a lot of sense but it did the trick. John Hello Im running tomcat5 with mod_jk2, apache 2 and RH FC01 Im having trouble getting servlets to work under mod_jk2 and shared instance for virtual hosting. It works fine with preview link context for the site: http://ip:8080/domain.com/serlvet/helloworld but with domain.com/servlet/helloworld does not work. I uploaded the root contents for servlets-examples to the root of the site (html folder which is also doc base). The WEB-INF in the dir is from the servlets-examples. So when you go to domain.com the index.html from the examples loads. But links to serlvet/servletname doesnt work. Settings: Tomcats entry for virtual host in server.xml: Host name=domain1.com debug=0 appBase=/home/username/domain1.com/html unpackWARs=true autoDeploy=true Aliaswww.domain1.com/Alias Valve className=org.apache.catalina.valves.AccessLogValve directory=/home/username/domain1.com/logs prefix=tomcat5_log. suffix=.txt pattern=common resolveHosts=false/ /Host Workers2.properties entry (JSPs work and html is routed to apache) # DOMAIN1.COM [uri:domain1.com:80/*.jsp] group=TC5 [uri:www.domain1.com:80/*.jsp] group=TC5 [uri:domain1.com:80/servlet/*] group=TC5 [uri:www.domain1.com:80/servlet/*] group=TC5 The http.conf file has document root as /home/username/domain1.com/html and the locations for WEB-INF are included for security. Any Ideas what I might be missing?? (remember it works when accessing via port.) Thanks! John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk2 - problem with servlets
Hello Im running tomcat5 with mod_jk2, apache 2 and RH FC01 Im having trouble getting servlets to work under mod_jk2 and shared instance for virtual hosting. It works fine with preview link context for the site: http://ip:8080/domain.com/serlvet/helloworld but with domain.com/servlet/helloworld does not work. I uploaded the root contents for servlets-examples to the root of the site (html folder which is also doc base). The WEB-INF in the dir is from the servlets-examples. So when you go to domain.com the index.html from the examples loads. But links to serlvet/servletname doesnt work. Settings: Tomcats entry for virtual host in server.xml: Host name=domain1.com debug=0 appBase=/home/username/domain1.com/html unpackWARs=true autoDeploy=true Aliaswww.domain1.com/Alias Valve className=org.apache.catalina.valves.AccessLogValve directory=/home/username/domain1.com/logs prefix=tomcat5_log. suffix=.txt pattern=common resolveHosts=false/ /Host Workers2.properties entry (JSPs work and html is routed to apache) # DOMAIN1.COM [uri:domain1.com:80/*.jsp] group=TC5 [uri:www.domain1.com:80/*.jsp] group=TC5 [uri:domain1.com:80/servlet/*] group=TC5 [uri:www.domain1.com:80/servlet/*] group=TC5 The http.conf file has document root as /home/username/domain1.com/html and the locations for WEB-INF are included for security. Any Ideas what I might be missing?? (remember it works when accessing via port.) Thanks! John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk2 problem
I have only one tomcat instance running on port 50089 but mod_jk2 can't connect. It require port 8009? If i try to run ajp connector on port 8009 all runs fine. But I need a different port. This is the output log: [Sun Mar 28 15:06:22 2004] [error] channelSocket.open() connect failed 127.0.0.1:8009 111 Connection refused [Sun Mar 28 15:06:22 2004] [error] ajp13.connect() failed ajp13:localhost:50089 [Sun Mar 28 15:06:22 2004] [error] ajp13.service() failed to connect endpoint errno=111 Connection refused [Sun Mar 28 15:06:22 2004] [error] ajp13.service() Error forwarding ajp13:localhost:50089 1 1 [Sun Mar 28 15:06:22 2004] [error] lb.service() worker failed 12 for ajp13:localhost:50089 It seems that first time it looks to the port 8009. It's true? This is my workers2.properties: [shm] info=Scoreboard. Requried for reconfiguration and status with multiprocess servers. file=anon # Defines a load balancer named lb. Use even if you only have one machine. [lb:lb] # Example socket channel, override port and host. [channel.socket:localhost:50089] port=50089 host=127.0.0.1 # define the worker [ajp13:localhost:50089] channel=channel.socket:localhost:50089 group=lb # Map the Tomcat examples webapp to the Web server uri space [uri:/pzmanager/*] group=lb [uri:/pzadmin/*] group=lb [status:] info=Status worker, displays runtime information [uri:/jkstatus/*] info=The Tomcat /jkstatus handler group=status: Please Help me! Thanks Angelo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk2 problem [OK]
My problem was a port number... changing from 50089 to 8010 jk2 runs perfectly. There is some documentation about this? It's normal? Thanks in advance. Angelo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk2 problem [OK]
Sehr geehrte Damen und Herren Wir haben Ihre Nachricht dankend erhalten und werden diese so schnell wie möglich bearbeiten. Mit internetten Grüssen Ihr Shoppingcity.ch-Team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Upgrading mod_jk to mod_jk2 - problem with uri map to old /servlet
I am in the process of upgrading my servers from: apache 1.3 , jakarta-tomcat-3.2.1, mod_jk 1.2 to: apache 2 , jakarta-tomcat-4.1.29, mod_jk 2 I am having problems finding information on how to forward calls to sevlets from jsp's in the context. old mod_jk 1.2 JkMount /mycontext/*.jsp worker2 JkMount mycontext/servlet/* worker2 New mod_jk Location /*.jsp JkUriSet worker ajp13:localhost:8025 /Location Location /bobjects/servlet/* JkUriSet worker ajp13:localhost:8025 /Location I have the workers2.properties file if anyone needs it. My problems is that I have a number of applications that were built to use the /mycontext/servlet/servlets.path-to-servlet format. When I call the servlets from the jsp it comes back with an error requested resource not available error - (it can't find the path to the servlets) I don't want to rewrite a large number of jsp files and controllers. Is there a way to use the new mod_jk2 JkUriSet to allow these calls to the /mycontext/servlet/ without having to fix a large number of jsp files? Thanks in advance Rick.
MOD_JK2 Problem
Hi, I am having a problem with mod_jk2. Here are the details: Windows 2000 Apache 2.0.47, running on port 80 Apache Tomcat 4.1.24, running on port 8080 (AJP13 on port 8009) Mod_JK2 v2.0.2 (Pre-Built Binary) I couldn't find jkjni.dll pre-built, so I didn't use JNI. I have included a list of all the config files etc. in a text file (attachment). I've exhausted almost all possibilities trying to connect Apache and Tomcat. It doesn't work. (I've included the Error Log in the textfile.) So please help me out and tell me what the problem is. I don't have a decent C++ compiler (like VC++/G++) - so compiling the source code from scratch is ruled out :( So please help me out. __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfreeworkers2.properties --- # Define the communication channel [channel.socket:localhost:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 # Define the comunication channel #[channel.jni:jni] #info=The jni channel, used if tomcat is started inprocess # Define the parameters for the Java Virtual Machine #[vm:] #info=Parameters used to load a JVM in the server process #OPT=-Djava.class.path=${TOMCAT_HOME}/lib/tomcat-jni.jar;${TOMCAT_HOME}/lib/tomcat.jar #OPT=-Dtomcat.home=${TOMCAT_HOME} #OPT=-Dcatalina.home=${TOMCAT_HOME} #OPT=-Xmx128M # JNI worker startup handler #[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 #stdout=${serverRoot}/logs/stdout.log #stderr=${serverRoot}/logs/stderr.log # JNI worker shutdown handler #[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 # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] info=Map the whole webapp httpd.conf -- LoadModule jk2_module modules/mod_jk2.dll (v2.0.2) jk2.properties -- # Set the desired handler list handler.list=apr,request,channelJni # Override the default port for the socketChannel channelSocket.port=8019 # Default: # channelUnix.file=${jkHome}/work/jk2.socket # Just to check if the the config is working shm.file=${jkHome}/work/jk2.shm # In order to enable jni use any channelJni directive channelJni.disabled = 0 # And one of the following directives: # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so # If set to inprocess the mod_jk2 will Register natives itself # This will enable the starting of the Tomcat from mod_jk2 apr.jniModeSo=inprocess server.xml (default, as in distro) -- AJP13 on 8009 config -- x Win2000 x Apache 2.0.47 x Tomcat 4.1.24 x JK2 2.0.2 (Binary) x JDK 1.4.2 x All on localhost (Accessed URL : http://localhost/examples) (Also tried : http://localhost/examples/servlet/HelloWorldExample) error.log - [Wed Nov 05 16:17:53 2003] [error] shm.init(): No file [Wed Nov 05 16:17:53 2003] [notice] Parent: Created child process 724 [Wed Nov 05 16:17:53 2003] [error] shm.init(): No file [Wed Nov 05 16:17:53 2003] [notice] Child 724: Child process is running [Wed Nov 05 16:17:53 2003] [error] shm.init(): No file [Wed Nov 05 16:17:53 2003] [error] mod_jk child init 1 0 [Wed Nov 05 16:17:53 2003] [notice] Child 724: Acquired the start mutex. [Wed Nov 05 16:17:53 2003] [notice] Child 724: Starting 250 worker threads. [Wed Nov 05 16:17:58 2003] [error] workerEnv.init() create slot epStat.0 failed [Wed Nov 05 16:17:58 2003] [error] lb.service() worker failed 12 for ajp13:localhost:8009 [Wed Nov 05 16:17:58 2003] [error] lb.service() unrecoverable error... [Wed Nov 05 16:17:58 2003] [error] mod_jk.handler() Error connecting to tomcat 12 [Wed Nov 05 16:18:00 2003] [error] workerEnv.init() create slot epStat.0 failed [Wed Nov 05 16:18:00 2003] [error] lb.service() worker failed 12 for ajp13:localhost:8009 [Wed Nov 05 16:18:00 2003] [error] lb.service() unrecoverable error... [Wed Nov 05 16:18:00 2003] [error] mod_jk.handler() Error connecting to tomcat 12 [Wed Nov 05 16:18:00 2003] [error] workerEnv.init() create slot epStat.0 failed [Wed Nov 05 16:18:00 2003] [error] lb.service() worker failed 12 for ajp13:localhost:8009 [Wed Nov 05 16:18:00 2003] [error] lb.service() unrecoverable error... [Wed Nov 05 16:18:00 2003] [error] mod_jk.handler() Error connecting to tomcat 12 [Wed Nov 05 16:18:00 2003] [error] workerEnv.init() create slot epStat.0 failed [Wed Nov 05 16:18:00 2003] [error] lb.service() worker failed 12 for ajp13:localhost:8009 [Wed Nov 05 16:18:00 2003] [error] lb.service() unrecoverable error... [Wed Nov 05 16:18:00 2003] [error] mod_jk.handler() Error connecting to tomcat 12 [Wed Nov 05 16:18:01 2003] [error] workerEnv.init() create slot epStat.0 failed [Wed Nov 05 16:18:01 2003] [error] lb.service() worker failed 12 for ajp13:localhost:8009 [Wed Nov 05 16:18:01 2003] [error]
Apache-2.0.43 + Tomcat-4.1.12 + MOD_JK2 -- Problem while redirecting from one jsp to another
Hi, (B (BI have a following scenario. (B (BI am using apache tomcat combination with mod_jk2. (BIt works fine when I access it with IP address and port no. in URL (B(e.g. http://10.22.22.22:/sush/dcs/a000.jsp). (B (BBut when I access the same jsp with host name in URL (B(e.g. http://sam.jad.com/sush/dcs/a000.jsp). (BI get nothing, (B (BI analyzed the problem (but no solution yet ), (B (Bwhen the request is redirected, port no. is getting appended to domain name. (B(e.g. http://sam.jad.com:/sush/dcs/a000.jsp). (B (Bis somebody share the same problem, and have any suggestions/answers. (B (BRegards, (BSusheel (B (B (B (B (B (B (B (B (B