Re: apache startup errors with tomcat workers
Hi, You forget JkMount. JkMount /* .jsp ajp13 JkMount /servet/* ajp13 Ajp13 is also used in SSL.Why don't you refer to mod_ssl site? You will find clue there. "Farrell, Sarah" wrote: Hi all, I finally got my mod_jk.so compiled. on to the next glitch. I'm running Linux, jakarta-tomcat-3.2.1, and apache_1.3.19, with j2sdk-1_3_0_02. I have configured /usr/local/tomcat/conf/workers.properties file to work with Linux, and set my tomcat home and my java home. as well as the following: # Defining a worker named ajp13 and of type ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 #worker.ajp13.cachesize I have configured tomcat's server.xml with: !-- Apache AJP12 support. This is also used to shut down tomcat so don't delete. -- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/ Parameter name="port" value="8007"/ /Connector !-- Apache AJP13 support. -- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp13C onnectionHandler"/ Parameter name="port" value="8009"/ /Connector I've started Tomcat running. Then I start Apache and I see the following error in the error log: [Mon Apr 23 17:36:33 2001] [emerg] (2)No such file or directory: Error while opening the workers Does anyone see the problem? Thank you for any help you can send my way. -- Sarah Here is my apache httpd.conf file with the comments stripped out: ServerType standalone ServerRoot "/usr/local/apache" PidFile /usr/local/apache/logs/httpd.pid ScoreBoardFile /usr/local/apache/logs/httpd.scoreboard Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 MinSpareServers 5 MaxSpareServers 10 StartServers 5 MaxClients 150 MaxRequestsPerChild 0 #Listen 3000 #Listen 12.34.56.78:80 #Listen 10.10.2.31:80 BindAddress * LoadModule vhost_alias_module libexec/mod_vhost_alias.so LoadModule env_module libexec/mod_env.so LoadModule config_log_module libexec/mod_log_config.so LoadModule mime_magic_module libexec/mod_mime_magic.so LoadModule mime_modulelibexec/mod_mime.so LoadModule negotiation_module libexec/mod_negotiation.so LoadModule status_module libexec/mod_status.so LoadModule info_modulelibexec/mod_info.so LoadModule includes_modulelibexec/mod_include.so LoadModule autoindex_module libexec/mod_autoindex.so LoadModule dir_module libexec/mod_dir.so LoadModule cgi_module libexec/mod_cgi.so LoadModule asis_modulelibexec/mod_asis.so LoadModule imap_modulelibexec/mod_imap.so LoadModule action_module libexec/mod_actions.so LoadModule speling_module libexec/mod_speling.so LoadModule userdir_module libexec/mod_userdir.so LoadModule alias_module libexec/mod_alias.so LoadModule rewrite_module libexec/mod_rewrite.so LoadModule access_module libexec/mod_access.so LoadModule auth_modulelibexec/mod_auth.so LoadModule anon_auth_module libexec/mod_auth_anon.so LoadModule dbm_auth_modulelibexec/mod_auth_dbm.so LoadModule digest_module libexec/mod_digest.so LoadModule proxy_module libexec/libproxy.so LoadModule cern_meta_module libexec/mod_cern_meta.so LoadModule expires_module libexec/mod_expires.so LoadModule headers_module libexec/mod_headers.so LoadModule usertrack_module libexec/mod_usertrack.so LoadModule unique_id_module libexec/mod_unique_id.so LoadModule setenvif_modulelibexec/mod_setenvif.so LoadModule jk_module libexec/mod_jk.so ClearModuleList AddModule mod_vhost_alias.c AddModule mod_env.c AddModule mod_log_config.c AddModule mod_mime_magic.c AddModule mod_mime.c AddModule mod_negotiation.c AddModule mod_status.c AddModule mod_info.c AddModule mod_include.c AddModule mod_autoindex.c AddModule mod_dir.c AddModule mod_cgi.c AddModule mod_asis.c AddModule mod_imap.c AddModule mod_actions.c AddModule mod_speling.c AddModule mod_userdir.c AddModule mod_alias.c AddModule mod_rewrite.c AddModule mod_access.c AddModule mod_auth.c AddModule mod_auth_anon.c AddModule mod_auth_dbm.c AddModule mod_digest.c AddModule mod_proxy.c AddModule mod_cern_meta.c AddModule mod_expires.c AddModule mod_headers.c AddModule mod_usertrack.c AddModule mod_unique_id.c AddModule mod_so.c AddModule mod_setenvif.c AddModule mod_jk.c JkWorkersFile /usr/local/tomcat/conf/workers.properties JkLogFile /usr/local/apache/logs/mod_jk.log JkLogLevel warn Port 8080 User nobody Group nobody ServerAdmin [EMAIL PROTECTED] ServerName 10.10.2.31 DocumentRoot "/usr/local/apache/htdocs" Directory / Options FollowSymLinks AllowOverride None
Re: File Upload
Hi,Valeriy I found it here. http://www.servlets.com/resources/com.oreilly.servlet/ Valeriy Molyakov wrote: Hi! Where I can found class MultipartRequest ? - Original Message - From: "NSB)Hiroshi Kasamatsu" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 28, 2001 10:12 AM Subject: Re: File Upload Hi,Fabien MultipartRequest works very fine. You may use file stream wrongly. My coding is as follows. I make it in any file because of byte input-output. MultipartRequest multi=new MultipartRequest(req,"."); Enumeration params=multi.getParameterNames(); Enumeration files=multi.getFileNames(); File f=null; String f_name=null; while(files.hasMoreElements()){ f_name=(String)files.nextElement(); f_name=f_name.trim(); st_type=multi.getContentType(f_name); f=multi.getFile(f_name); } if(f!=null){ FileInputStream fis=new FileInputStream(f); FileOutputStream fos=new FileOutputStream(fname); int b; while((b=fis.read())!=-1){ fos.write((byte)b); } fis.close();fos.close(); } Fabien Modoux wrote: Hello, I am using Tomcat with Apache on Linux. I am using the OReilly package to upload files through a servlet, but it only works for text files. I found several messages in the archive about that, but haven't been able to find a good solution. Does anyone know how to go around or fix this problem. Thanks, -Fabien
Re: File Upload
Hi,Fabien MultipartRequest works very fine. You may use file stream wrongly. My coding is as follows. I make it in any file because of byte input-output. MultipartRequest multi=new MultipartRequest(req,"."); Enumeration params=multi.getParameterNames(); Enumeration files=multi.getFileNames(); File f=null; String f_name=null; while(files.hasMoreElements()){ f_name=(String)files.nextElement(); f_name=f_name.trim(); st_type=multi.getContentType(f_name); f=multi.getFile(f_name); } if(f!=null){ FileInputStream fis=new FileInputStream(f); FileOutputStream fos=new FileOutputStream(fname); int b; while((b=fis.read())!=-1){ fos.write((byte)b); } fis.close();fos.close(); } Fabien Modoux wrote: Hello, I am using Tomcat with Apache on Linux. I am using the OReilly package to upload files through a servlet, but it only works for text files. I found several messages in the archive about that, but haven't been able to find a good solution. Does anyone know how to go around or fix this problem. Thanks, -Fabien
Tomcat cannot recognize IBM jdk1.3 path.
Hi, I installed IBM jdk1.3 rpm version. By default,it is installed in /opt. I added JAVA_HOME=/opt/ibmjdk1.3 to classpath. But startup.sh of tomcat3.2.1 does not work showing error message saying /usr/local/jakarta-tomcat/bin/conf/server.xml - no such directory. As you know,server.xml exists in not TOMCAT_HOME/bin/conf but TOMCA_HOME/conf. As a stopgap, I do like this. su - [root/kasa root] source .bash_profile [root/kasa root] cd /usr/local/jakarta-tomcat/bin [root/kasa bin] ./startup.sh When shutdown, su - root/kasa root] source .bash_profile [root/kasa root] cd /usr/local/jakarta-tomcat/bin [root/kasa bin] ./shutdown.sh I am fed up with su - and source .bash_profile. In sun jdk sh version, startup.sh and shutdown.sh worked right. Does jdk rpm version differ from sh version in setting path or classpath to tomcat? Hiroshi Kasamatsu
Re: Ctx( ): 400 R( /) null - details about this error?
Hi,Goebel I have also seen Ctx( ):400 R( /) null. This problem and the explanation are in maling list.But I can't understand. This error?(or message) is seen int not only your case but windows98 and Netscape,IE Goebel Martin wrote: Okay, now I've found out that this Ctx( ): 400 R( /) null means my Browser sent a "bad request" to Tomcat. Is there any possibility to find out some more details about this bad request? My problem was that the problem only occured when sending a request from a Linux client to a WinNT4.0 Tomcat machine, a request from a WinNT client worked without problems. Thanks, Martin
Tomcat's setting to IBM jdk1.3
Hi,all I began to use IBM jdk1.3. The performance is very good. By the way,the default directory of install is /opt/. Sun's one is /usr/local/. I set JAVA_HOME=/opt/IBMjdk1.3. The problem is that tomcat's starup.sh and stop,sh does not work right. I got error messages:java.IOException,InputStream,etc. To be surprised,I also got error message:/usr/local/jakarta-tomcat/bin/conf/server.xml; no such directory. My server.xml is in /usr/local/jakarta-tomcat/conf/. Oh! Why,tomcat? Please tell me Tomcat's setting to IBM jdk1.3,namely unusual directory. Thanks in advance. Hiroshi Kasamatsu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: help: tomcat 3.2 won't work on win 98
Hi,pothi I 've got the same problem before. Dos window - property - memory - initial size of environment variable -here,set to 2086 or more. After setting,you should reboot your system. If you can't see the light,it is better for you to set the memory size of dos window of tomcat startup.bat,which you can see by right click. I found this clue somewhere and I made it. Hiroshi Kasamatsu pothi pothi wrote: hai, i am using win 98. i have set java_home and tomcat_home. But when i run the startup.bat file the following error occurred. " Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Unable to set CLASSPATH dynamically Note: To set CLASSPATH dynamically in win9x systems only dos 8.3 names may be used in TOMCAT_HOME! Setting your CLASSPATH statically. Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Using CLASSPATH: Starting Tomcat in new window Bad command or file name. " I cann't understand what is the error? please give me some suggestion to succesfully run tomcat. Thanks, Pothi K. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: cannot find file mod_jk.conf-auto
Hi,Ratnakar First of all,mod_jk.conf-auto is automatically generated when you start tomcat. Next,it is in conf directory of tomcat. Hiroshi Ratnakar Malla wrote: Hi All, The documentation says that the file "mod_jk.conf-auto" the configuration file for mod_jk.dll, will be automaticlly generated. however in my directory, i cannot find any file by the specified name. can someone please guide me, as to how i need to make Apache talk with tomcat. Thanx in Advance, Bye, Ratnakar Do You Yahoo!? Get your free @yahoo.co.in address at http://mail.yahoo.co.in - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: mok_jkapache
Hi,Deian: What is your platform? my platform:Redhat6.2 apache1.3.14 tomcat3.2.1 1.Windows98 (1)Install apache and tomcat3.2.1 (2)Copy mod_jk.dll to modules directory of apache. (3)Start tomcat3.2.1,where mod_jk-conf is produced. (4)(Stop tomcat3.2.1) (5)Insert "Include tomcat's install dir>\conf\mod_jk.conf-auto" into last line of httpd.conf of apache. (6)Start tomcat3.2.1 (7)Start apache. 2.Linux In advance,apache should be compiled with DSO. ./configure --enable-module=so --enable-rule=max (1)Install apache and tomcat3.2.1 (2)Download tomcat3_2_1-src.tar.gz. * tar zxvf tomca3_2_1-src.tar.gz * cd tomcat3.2.1-src/src/native/apache1.3 */usr/local/apache/bin/apxs -o mod_jk.so -I../jk -I/usr/local/jdk inst dir>/include -I/usr/local/jdk inst dir>/include/linux -c *.c ../jk/*.c (For detail,refer to mod_jk-howto.html) As a result,mod_jk.so is produced. (3)Copy mod_jk.so to libexe dir of apache. (4)Start tomcat3.2.1,where mod_jk-conf is produced. (5)(Stop tomcat3.2.1) (6)Insert "Include tomcat's install dir>\conf\mod_jk.conf-auto" into last line of httpd.conf of apache. (7)Start tomcat3.2.1 (8)Start apache. I am a beginner ,but make it with apache1.3.14 and tomcat3.2.1. Deian Chepishev wrote: Hi,Can anyone tell me please how i can make working together apache and tomcat 3.2.1 with mod_jkwhen I install it and try to make something the server gives me the source of the jsp or browser ask me for saving file
Re: mok_jkapache
Sorry, ./configure --enable-module=so --enable-shared=max "NSB)Hiroshi Kasamatsu" wrote: Hi,Deian: What is your platform? my platform:Redhat6.2 apache1.3.14 tomcat3.2.1 1.Windows98 (1)Install apache and tomcat3.2.1 (2)Copy mod_jk.dll to modules directory of apache. (3)Start tomcat3.2.1,where mod_jk-conf is produced. (4)(Stop tomcat3.2.1) (5)Insert "Include tomcat's install dir>\conf\mod_jk.conf-auto" into last line of httpd.conf of apache. (6)Start tomcat3.2.1 (7)Start apache. 2.Linux In advance,apache should be compiled with DSO. ./configure --enable-module=so --enable-rule=max (1)Install apache and tomcat3.2.1 (2)Download tomcat3_2_1-src.tar.gz. * tar zxvf tomca3_2_1-src.tar.gz * cd tomcat3.2.1-src/src/native/apache1.3 */usr/local/apache/bin/apxs -o mod_jk.so -I../jk -I/usr/local/jdk inst dir>/include -I/usr/local/jdk inst dir>/include/linux -c *.c ../jk/*.c (For detail,refer to mod_jk-howto.html) As a result,mod_jk.so is produced. (3)Copy mod_jk.so to libexe dir of apache. (4)Start tomcat3.2.1,where mod_jk-conf is produced. (5)(Stop tomcat3.2.1) (6)Insert "Include tomcat's install dir>\conf\mod_jk.conf-auto" into last line of httpd.conf of apache. (7)Start tomcat3.2.1 (8)Start apache. I am a beginner ,but make it with apache1.3.14 and tomcat3.2.1. Deian Chepishev wrote: Hi, Can anyone tell me please how i can make working together apache and tomcat 3.2.1 with mod_jkwhen I install it and try to make something the server gives me the source of the jsp or browser ask me for saving file
Re: 403 forbidden in tomcat-apache
Parvez, I start apache and tomcat as root,and include jara's path and tomcat's classpath ,you know, into .bash_profile. By the way,my mod_jk.so does not work.I use apache_1.3.12 and tomcat3.2beta8. How do you configure Apache for DSO? .configure --enable-module=so? I had an error with ./apachectl configtest: API module structure 'jk_module' in file /usr/local/apache_1.3.12/libexec/mod_jk.so is garbled- perhaps this is not an Apache module DSO? Thanks in advance Hiroshi Kasamatsu Parvez wrote: thanks, i got the mod_jk.so working now on my machine. but somehow i cannot get it working on the other machine. on my machine i have ... 1. apache user parvez:parvez 2. permisions to htdocs - parvez:parvez 3. permissions to jsp/servlets - parvez:parvez and it works but on the other machine 1. apache user nobody:nobody 2. permisions to htdocs - admin:admin 3. permissions to jsp/servlets - admin:admin and apache gives and error ..."403 Forbidden" where am i going wrong... also do i have to start tomcat as root. parvez And Then NSB)Hiroshi Kasamatsu wrote . There seems to be no mod_jk.so for Tomcat3.2.1. If you do'nt mind,better to use Tomcat3.2 beta version. You cannot access directly. You try like this. 1.access to http://jakarta.apache.org/ 2.click Binaries on Download area 3.click Tomcat3.x on Nightly Builds 4.click Parent Directory 5.click arcihves/ 6.click link you want 7.click bin/ 8.click linux for linux or win32 for windows 9.click i386 10.click mod_jk.so Parvez wrote: i cannot find /src/native/apache to compile mod_jk.so i have looked into tomcat 3.2.1 distribution, everywhere. where can i find it. parvez And Then NSB)Hiroshi Kasamatsu wrote . For tomcat 3.2 or up,mod_jk.so is needed.You should download, copy it into your apache directory/libexec and include "your apache directory/conf/mod_jk.conf-auto" into the last line of httpd.conf.The latter is automatically created when Tomcat is exclusively initiated on port 8080. To check,http://localhost/examples is pointed to browser.In Tomcat and apache,port 8080 is't used. Parvez wrote: hi, i have installed tomcat 3.2.1, with apache 1.3.12 on a linux machine. it works perfectly fine on port 8080, but when i include it with apache conf (i.e. tomcat-apache.conf) and try to access the same jsp/servlet file, it gives 403 forbidden error. my http user in apache is "nobody:nobody" and my htdocs is conrolled by "admin". can someone tell me, where the problem is? thanks in advance. parvez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Tell me how to config Apache with DSO?
I had an error in command of./apachectl configtest: API module structure 'jk_module' in file /usr/local/apache_1.3.12/libexec/mod_jk.so is garbled- perhaps this is not an Apache module DSO? I want to cooperate Tomcat3.2 beta 8 with apache 1,3.12. I copied mod_jk.so into apache_1.3.12/libexec and append "Include /usr/local/jakarta-tomcat/conf/mod_jk.conf-auto" into httpd.conf. Apache is compiled with ./configure --enable-rule=SHARED_CORE --enable-module=so. Does not this work? Thanks in advance. Hiroshi Kasamatsu
Re: 403 forbidden in tomcat-apache
There seems to be no mod_jk.so for Tomcat3.2.1. If you do'nt mind,better to use Tomcat3.2 beta version. You cannot access directly. You try like this. 1.access to http://jakarta.apache.org/ 2.click Binaries on Download area 3.click Tomcat3.x on Nightly Builds 4.click Parent Directory 5.click arcihves/ 6.click link you want 7.click bin/ 8.click linux for linux or win32 for windows 9.click i386 10.click mod_jk.so Parvez wrote: i cannot find /src/native/apache to compile mod_jk.so i have looked into tomcat 3.2.1 distribution, everywhere. where can i find it. parvez And Then NSB)Hiroshi Kasamatsu wrote . For tomcat 3.2 or up,mod_jk.so is needed.You should download, copy it into your apache directory/libexec and include "your apache directory/conf/mod_jk.conf-auto" into the last line of httpd.conf.The latter is automatically created when Tomcat is exclusively initiated on port 8080. To check,http://localhost/examples is pointed to browser.In Tomcat and apache,port 8080 is't used. Parvez wrote: hi, i have installed tomcat 3.2.1, with apache 1.3.12 on a linux machine. it works perfectly fine on port 8080, but when i include it with apache conf (i.e. tomcat-apache.conf) and try to access the same jsp/servlet file, it gives 403 forbidden error. my http user in apache is "nobody:nobody" and my htdocs is conrolled by "admin". can someone tell me, where the problem is? thanks in advance. parvez
Re: 403 forbidden in tomcat-apache
For tomcat 3.2 or up,mod_jk.so is needed.You should download, copy it into your apache directory/libexec and include "your apache directory/conf/mod_jk.conf-auto" into the last line of httpd.conf.The latter is automatically created when Tomcat is exclusively initiated on port 8080. To check,http://localhost/examples is pointed to browser.In Tomcat and apache,port 8080 is't used. Parvez wrote: hi, i have installed tomcat 3.2.1, with apache 1.3.12 on a linux machine. it works perfectly fine on port 8080, but when i include it with apache conf (i.e. tomcat-apache.conf) and try to access the same jsp/servlet file, it gives 403 forbidden error. my http user in apache is "nobody:nobody" and my htdocs is conrolled by "admin". can someone tell me, where the problem is? thanks in advance. parvez
Re: 403 forbidden in tomcat-apache
In advance,apache needs to be compiled with ./configure --enable-rule=SHARED_CORE --enable-module=so. Parvez wrote: hi, i have installed tomcat 3.2.1, with apache 1.3.12 on a linux machine. it works perfectly fine on port 8080, but when i include it with apache conf (i.e. tomcat-apache.conf) and try to access the same jsp/servlet file, it gives 403 forbidden error. my http user in apache is "nobody:nobody" and my htdocs is conrolled by "admin". can someone tell me, where the problem is? thanks in advance. parvez
Startup.bat of Tomcat3.2v7 does'nt work.
I got an error message on dos window when startup.bat of Tomcat3.2v7 was carried out. out of memory for environmental variables Unable to set the CLASSPATH dynamically. Note to set the CLASSPATH dynamically on Win9x sistems only DOS8.3 names may be used in TOMCAT_HOME! My autoexe.bat is as follows.And I have a windows98 second edition. . set JAVA_HOME=c:\jdk1.3 set PATH=%PATH%;%JAVA_HOME%\bin; set TOMCAT_HOME=c:\jakarta-tomcat-3.2-b7 set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\classes; %TOMCAT_HOME%\lib\jasper.jar;%TOMCAT_HOME%\lib\servlet.jar; %TOMCAT_HOME%\lib\webserver.jar;%TOMCAT_HOME%\lib\xml.jar; %JAVA_HOME%\lib\tools.jar;c:\htmlconv1_3\converter\classes For tomcat3.1,startup.bat works right. Why can't classpath be set? Please help me out. Thanks in advance. Hiroshi Kasamatsu