Re: JK 2 Binaries
Hey ... Well Said. Me too... want something like that (2.0.47 is OK )! --- Paul Wallingford [EMAIL PROTECTED] wrote: Hi, Is is possible to get the Binaries for JK 2 for Apache 2.0.48 for win32? I looked at the mirror: http://ftp.plig.net/pub/apache/dist/jakarta/tomcat-connectors/jk2/binaries/w in32/ And see jakarta-tomcat-connectors-jk2.0.2-win32-apache2.0.43.zip I would like to see something like jakarta-tomcat-connectors-jk2.0.2-win32-apache2.0.48.zip I have been unable to get Tomcat to link to Apache with the current dll. My Config: HTTP Server: 2.0.48 Tomcat: 4.1.24 Thanks Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: rare problem with javac
Better ... If you already have tomcat, take the JAR from $TOMCAT_HOME/common/lib dir. --- Jan Faerber [EMAIL PROTECTED] wrote: Am Mittwoch, 5. November 2003 19:02 schrieb Javier: Hi I'm trying to compile my first servlet but Iýve problems with javac. Hi - Java Examples in a Nutshell - David Flanagan - page 460 - in the 2nd Edition: Compiling Servlets Your servlet conainer should come with a JAR file that contains the class files for the Servlet API. It will probably be in a file named lib/servlets.jar. You need this JAR file to be able to compile the classes in this chapter. [ remark ... Well - not only those in this book I guess - Jan ... ] Either edit your _CLASSPATH_ environment variable to include the file or place a copy of the file in the lib/jre/ext/ directory of your Java SDK, where the Java VM can find it automatically. Once you have done this, you can compile servlet classes with javac, just as you would compile other Java classes. If you cannot find the Servlet API classes in your servlet container distribution, you should be able to download them from Sun´s web site (http://java.sun.com/products/servlet/;). Be careful to download a version that matches the specifications supported by your servlet container. Hope it helps - Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: V Host
If you don't want to edit your server.xml file, add a anywhere.xml file in webapps dir, with the same code. This is suggested becuase, it helps you change settings easily, without fear of corrupting server.xml file , (for other webapps). --- Dominique Batard [EMAIL PROTECTED] wrote: Put your webapp anywhere, ie C:\anywhere +--anywhere +--images +--WEB-INF +--classes +--listeners +--filters +--compressionFilters +--util Server.xml : appBase must be the absolute path Host name=pjkt debug=0 appBase=C:\anywhere Context path=/PruebaJavier reloadable=true docBase=. / /Host http://pjkt:8080/PruebaJavier Dom - Original Message - From: Javier [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 8:49 PM Subject: V Host Hi I want to know if it's possible to configure a virtual host placed outside webapps... and how could I make it... (a simple sample will be helpfull) Thanks in advance jl - 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] __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: rare problem with javac
I could see what the problem is: The PATH is the ariable, in which the various Directories are searched in order. Hence, it is often beneficial to have the env. variable set like: PATH=%JAVA_HOME\bin;%PATH%;. --- Vladimer Shioshvili [EMAIL PROTECTED] wrote: Javier, Check this out.. http://forum.java.sun.com/thread.jsp?forum=32thread=292032tstart=0trange=15 Vlad At 01:02 PM 11/5/2003, you wrote: Hi I'm trying to compile my first servlet but Iýve problems with javac. If I try to run javac without parameters I receive the message: Exception in thread main java.lang.NoClassDefFoundError: com/sun/tools/javac/Main and I receive the same with javac -h javac -? javac -classpath . Algo.java ...etc I never seen something like this...andy idea ? xl PD: I'm running java on W2K server __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Vladimer Shioshvili QRC Division of Macro International Inc. 7315 Wisconsin Avenue, Suite 400W Bethesda, MD 20814 Phone: (301) 657 3077 ext. 155 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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]
Re: setting tomcat to listen on port 80
I really don't know how to help you. The server.xml file works well in Windows (i've tried it out, on port 80). So, temporarily, till one of us comes up with a solution, start httpd, and give a redirection page to http://yourhost:8080. Tomcat uses more ports such as a Shutdown Port / AJP13 Port etc. This you can see in all the Connector lists in server.xml file. There is nothing wrong in using port 80. It works well on Windows.. But i really don't know why it doesn't work on Linux. (That doesn't answer the question anyway) --- Nadia Kunkov [EMAIL PROTECTED] wrote: I'd like Tomcat 4 to be listening on port 80. I have changed server.xml file to read: Connector name = org.apache.catalina.connector.http.HttpConnector port = 80 . I'm running as root, I know only root can access this port. When I try to start Tomcat (tomcat4 start) I get a message: bind exception - permission denied:80, bind exception - 8005 address already in use. So I found a file /etc/tomcat4/tomcat4.conf where I changed tomcat-user to root. Now when I try to start Tomcat I only have one error: bind exception 8005 address already in use. My httpd is disabled, since we are using Tomcat as web server. In Firewall configuration I added a line with Accept action for port 80. It created an /etc/sysconfig/ipchains file. When I ran netstat -tupan I see no entry for port 80. But there is an entry for port 8005 that reads Java. Could you explain to me what does it all mean? I'm pretty new to this stuff so bear with me. Dies Tomcat need both ports 80 and 8005? Isn't Java mean Tomcat is listening on 8005? Anyway how can I make Tomcat listen on port 80? Just changing server.xml doesn't seem to be enough. Any ideas would be greatly appreciated. Thanks in advance. N.K - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]