Antw: mod_jk build fails - apxs:Break: Command failed withrc=255
Hi, my build succeeded with the following commands (using Solaris 8 J2SE): % cd ~/jakarta-tomcat-3.2.1-src/src/native/apache1.3 % /usr/local/apache/bin/apxs -o mod_jk.so -DSOLARIS -I../jk \ -I/usr/j2se/include \ -I/usr/j2se/include/solaris \ -l posix4 -c *.c ../jk/*.c -Fin [EMAIL PROTECTED] 08.01.2001 07.16 Uhr Hello, I am trying to build mod_jk for Apache from the jakarta-tomcat 3.2.1 source. Apache 1.3.14 is installed in the default directory (/usr/local/apache). I'm running Solaris 2.7 (generic) for Sparc. When I use apxs to build mod_jk (according to the current documentation), I get: # apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java1.2/include -I/usr/java1.2/ include/solaris -c *.c ../jk/*.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c mod_jk.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_ajp12_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_ajp13.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_ajp13_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_connect.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_jni_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_lb_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_map.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_msg_buff.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_nwmain.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_pool.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_sockbuf.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_uri_worker_map.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_util.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_worker.c -o mod_jk.so jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o jk_pool.o jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o jk_jni_worker.o jk_connect.o jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o mod_jk.o apxs:Break: Command failed with rc=255 Similarly, adjusting the apxs command syntax to adhear to the structure outlined by "apxs -h" produces the result: # apxs -c -o mod_jk.so -DSOLARIS -I../jk -I/usr/java1.2/include -I/usr/java1 .2/include/solaris *.c ../jk/*.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c mod_jk.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_ajp12_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_ajp13.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_ajp13_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_connect.c gcc
mod_jk.dll
I have installed Apache web server and Tomcat in my PC. Since I could not find "mod_jk.dll" in the web site, I tried building as per instructions on mod_jk(how-to) document. It is looking for ap_config.h and also, I suppose, ApacheCore.lib. I am not able to locate this lib anywhere in the web site. I would appreciate if any of you could help me on this. Thanks Ramana _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Password encryption in Java
A java implementation of crypt can be found at: http://locutus.kingwoodcable.com/jfd/crypt.html Alternatives are to use MD5 or similar from the java encryption api (I think most jvms provide an implementation of the major algorithms). However, if you need to access the password from both java and other languages (eg c) then crypt() is probably the easiest solution. Cheers, Simon -Original Message- From: Deepak C S [SMTP:[EMAIL PROTECTED]] Sent: Monday, January 08, 2001 9:35 AM To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' Subject: Password encryption in Java Hi, Can anybody tell about" How we can encrypt Passwords in Java??"say like Perl's or Unix Crypt function?? i mean, Is there any Java equivalent of unix crypt() func?? thanx in advance, Deeps - 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: Configuring tomcat and IIS
Hi, are you getting the green up arrow in the ISAPI window? -Original Message- From: nitin dubey [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 06, 2001 12:50 PM To: [EMAIL PROTECTED] Subject: Configuring tomcat and iis Hi guys, I have read the document by apache for configuring tomcat with IIS. Everything as mentioned in document is working. I have no problem there. I have also downloaded the isapi_redirect.dll from apache site. I have also tested tomcat3.2.1 and IIS 5.0 individually. Both r working and the necessary environment has been set. Now the problem is, what url should I give to activate my servlet thru IIS. I have tried with lots of combinations in one of them I got an error(null parameter) at tomcat side. In IIS log file error code is 200 which means OK. I don't know where I have gone wrong. Please let me know at the earliest. I m using tomcat 3.2.1 with IIS 5.0 and Win 2000 Professional as OS. nitin __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.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]
Creating mod_jserv.so
Hi, I have an Apache server (1.3.14) running on my Red-Hat 6.0 Linux box. I installed Tomcat 3.1 and can't manage to create a mod_jserv.so library. I downloaded all the c code, but the built command : "apxs -c -o mod_jserv.so *.c" won't work. I realized that apxs is a Perl program, which I never used before. Is there anything special/extra to do to run the built command ? Thanks Amaury - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
please help me
Hello.. Maybe this is out of topic, but i'm really thanksfull if anyone could give me many resources of jsp file specially in connectivity with database, how to get a form parameter in jsp, and get the result from database? please help me. Thanks yaya - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Creating mod_jserv.so
Hello, apxs is a tool available with the development version of apache. To utilize that one U need 2 install the apache-dev. U will get it. But U can also get the RPM. - Original Message - From: Amaury DE CAZANOVE [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 08, 2001 2:58 PM Subject: Creating mod_jserv.so Hi, I have an Apache server (1.3.14) running on my Red-Hat 6.0 Linux box. I installed Tomcat 3.1 and can't manage to create a mod_jserv.so library. I downloaded all the c code, but the built command : "apxs -c -o mod_jserv.so *.c" won't work. I realized that apxs is a Perl program, which I never used before. Is there anything special/extra to do to run the built command ? Thanks Amaury Regards Nagappan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Configuring tomcat and IIS
Hi Nagarajan, Yes I am getting green up arrow. nitin --- "G.Nagarajan" [EMAIL PROTECTED] wrote: Hi, are you getting the green up arrow in the ISAPI window? -Original Message- From: nitin dubey [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 06, 2001 12:50 PM To: [EMAIL PROTECTED] Subject: Configuring tomcat and iis Hi guys, I have read the document by apache for configuring tomcat with IIS. Everything as mentioned in document is working. I have no problem there. I have also downloaded the isapi_redirect.dll from apache site. I have also tested tomcat3.2.1 and IIS 5.0 individually. Both r working and the necessary environment has been set. Now the problem is, what url should I give to activate my servlet thru IIS. I have tried with lots of combinations in one of them I got an error(null parameter) at tomcat side. In IIS log file error code is 200 which means OK. I don't know where I have gone wrong. Please let me know at the earliest. I m using tomcat 3.2.1 with IIS 5.0 and Win 2000 Professional as OS. nitin __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.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] __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
help, virtual hosting ( tomcat 3.2)
i am attempting to make tomcat work with my virtual hosting setup (2 domain) i have set up tomcat.conf, server.xml, httpd.conf following tomcat user guide strangely, after set up, both servlet and jsp work at one siteproperly but at the other site , only servlet works and the call to a jsp file seems to leadthe host to infiinte loop two domain have nearly same configuration, i can't figure out this probelm for 2 days plz help me here is my configuration httpd.conf LoadModule jk_module libexec/mod_jk.soAddModule mod_jk.c JkWorkersFile /usr/local/jakarta/conf/workers.propertiesJkLogFile /usr/local/apache/logs/mod_jk.logJklogLevel warn NameVirtualHost 211.189.158.103 VirtualHost 211.189.158.103 ServerAdmin [EMAIL PROTECTED] DocumentRoot "/home/hoollavip/public_html" ServerName test.hoollaivip.com ErrorLog logs/test.hoollavip.com_217-error_log CustomLog logs/test.hoollavip.com_217-access_log common JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 Directory "/home/hoollavip/public_html/WEB-INF" Options None Deny from all /Directory/VirtualHost VirtualHost 211.189.158.103 ServerAdmin [EMAIL PROTECTED] DocumentRoot "/home/www/htdocs" ServerName test.hoolla.com ErrorLog logs/test.hoolla.com_217-error_log CustomLog logs/test.hoolla.com_217-access_log common JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 Directory "/home/www/htdocs/WEB-INF" Options None Deny from all /Directory/VirtualHost tomcat.conf ApJServMount http://test.hoolla.com/servlet /home/www/htdocs ApJServMount http://test.hoollavip.com/servlet /home/hoollavip/public_html server.xml Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler"value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/ Parameter name="port" value="8009"/ /Connector Host name="test.hoolla.com" Context path="" docBase="/home/www/htdocs" debug="0"/ /Host Host name="test.hoollavip.com" Context path="" docBase="/home/hoollavip/public_html" debug="0"/ /Host
Win32 3.2.1 - error on startup - can't find locale en_US
Please keep CC [EMAIL PROTECTED] as I'm not a member of this list (yet). I've installed Tomcat 3.2.1 in Win32/NT and I don't get it working. What does this erro message mean? My setup is attached below. JDK 1.2.2 is in place. To be sure I hand added the jars to classpath, which shows in this startup message. dos tomcat-env (see below) dos tomcat run Using CLASSPATH: \\argon\projekti\unix\installed\server\http\jakarta-tomcat-3.2.1\classes;\\argon\projekti\unix\installed\server\http\jakarta-tomcat-3.2.1\lib\ant.jar;\\argon\projekti\unix\installed\server\http\jakarta-tomcat-3.2.1\lib\jasper.jar;\\argon\projekti\unix\installed\server\http\jakarta-tomcat-3.2.1\lib\jaxp.jar;\\argon\projekti\unix\installed\server\http\jakarta-tomcat-3.2.1\lib\parser.jar;\\argon\projekti\unix\installed\server\http\jakarta-tomcat-3.2.1\lib\servlet.jar;\\argon\projekti\unix\installed\server\http\jakarta-tomcat-3.2.1\lib\webserver.jar;\\argon\projekti\unix\installed\server\http\jakarta-tomcat-3.2.1\webserver.jar;\\argon\projekti\unix\installed\server\http\jakarta-tomcat-3.2.1\servlet.jar;\\argon\projekti\unix\installed\server\http\jakarta-tomcat-3.2.1\parser.jar;\\argon\projekti\unix\installed\server\http\jakarta-tomcat-3.2.1\jaxp.jar;\\argon\projekti\unix\installed\server\http\jakarta-tomcat-3.2.1\jasper.jar;\\argon\projekti\unix\installed\server\h! ttp\jakarta-tomcat-3.2.1\ant.jar;.;\\argon\projekti\unix\installed\languages\java\jdk1.2.2\lib\tools.jar Exception in thread "main" java.lang.ExceptionInInitializerError: java.util.Miss ingResourceException: Can't find resource for base name org.apache.tomcat.resour ces.LocalStrings, locale en_US at java.util.ResourceBundle.getBundle(ResourceBundle.java:423) at java.util.ResourceBundle.getBundle(ResourceBundle.java:339) at org.apache.tomcat.util.StringManager.init(StringManager.java:112) at org.apache.tomcat.util.StringManager.getManager(StringManager.java:26 3) at org.apache.tomcat.startup.Tomcat.clinit(Tomcat.java:24) P:\Unix\environment\tomcat REM tomcat-env REM Let the Win32 know where the binaries (*.exe files) REM are located. We modify the PATH environment variable REM to include additional directories located at server REM ARGON. REM general ... set root=\\argon\projekti\unix\installed set install=%root%\server\http REM servers ... set PATH=%install%\apache;%PATH% set PATH=%install%\apache\bin;%PATH% set PATH=%install%\xitami;%PATH% REM ... java ... set JAVA_HOME=%root%\languages\java\jdk1.2.2 set JRE=%JAVA_HOME%\jre set CLASSPATH=. set PATH=%JAVA_HOME%\bin;%PATH% REM . tomcat ... set TOMCAT_HOME=%install%\jakarta-tomcat-3.2.1 set CLASSPATH=%TOMCAT_HOME%\ant.jar;%CLASSPATH% set CLASSPATH=%TOMCAT_HOME%\jasper.jar;%CLASSPATH% set CLASSPATH=%TOMCAT_HOME%\jaxp.jar;%CLASSPATH% set CLASSPATH=%TOMCAT_HOME%\parser.jar;%CLASSPATH% set CLASSPATH=%TOMCAT_HOME%\servlet.jar;%CLASSPATH% set CLASSPATH=%TOMCAT_HOME%\webserver.jar;%CLASSPATH% set PATH=%TOMCAT_HOME%\bin;%PATH% REM An Unix environment also supposes some other REM environment varaibles to be present. Set those here. REM REM TZ = Time zone, Eastern European time, +2, daylight REM savins time. set LANG=en set HOME=z:\%USERNAME% set USER=%USERNAME% set LOGNAME=%USERNAME% set TZ=EET-2EETDST REM End of file -- http://tiny-tools.sourceforge.net/ Swatch Internet time http://www.ryanthiessen.com/swatch/resources.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Tomcat as service and spaces in path
Hi I haven't exhaustively tested this, but it would appear as though having spaces in TOMCAT_HOME on NT means that the tomcat service will not initialise. At least, moving my tomcat to a spaceless path seemed to cure it for me. If this is the case, it might be worth alerting users on the "NT service - howto" page: http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/NT-Service-howto.htm l to avoid confusion. Then again, it may be possible to get round this by manually putting quote marks round it, or some other problem entirely. Otherwise, I'm really pleased with Tomcat: its a breeze compared to JServ. -- Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: Servlet and Multiple Instances
Check if your servlet class implements SingleThreadModel, in this case one instance of the servlet will be able to handle just one request. Leila -Ursprngliche Nachricht- Von: Cam DeBuck [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 8. Januar 2001 07:12 An: [EMAIL PROTECTED] Betreff: Servlet and Multiple Instances I've written a servlet that is getting hit pretty hard. It works fine when just one user access hit. However, when they are multiple people hitting the servlet, it seems like that it is only serving one person at a time. Is there some confirguration option that I am missing so that it can spawn multiple threads. Any help would be appreciated. Thanks. --Cam-- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Configuring tomcat and IIS
Hi, This means that the filter is working fine. just try http://localhost/examples/ This should take you to the examples context. Just check if your uriworkermap.properties contains the following # Mount the servlet context to the ajp12 worker /servlet/*=ajp12 # Mount the examples context to the ajp12 worker /examples/*=ajp12 and the workers.properties file contains # # Simple worker configuration file # worker.list=ajp12 worker.ajp12.port=8007 worker.ajp12.host=localhost Regards, Nagaraj. -Original Message- From: nitin dubey [mailto:[EMAIL PROTECTED]] Sent: Monday, January 08, 2001 11:11 AM To: [EMAIL PROTECTED] Subject: RE: Configuring tomcat and IIS Hi Nagarajan, Yes I am getting green up arrow. nitin --- "G.Nagarajan" [EMAIL PROTECTED] wrote: Hi, are you getting the green up arrow in the ISAPI window? -Original Message- From: nitin dubey [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 06, 2001 12:50 PM To: [EMAIL PROTECTED] Subject: Configuring tomcat and iis Hi guys, I have read the document by apache for configuring tomcat with IIS. Everything as mentioned in document is working. I have no problem there. I have also downloaded the isapi_redirect.dll from apache site. I have also tested tomcat3.2.1 and IIS 5.0 individually. Both r working and the necessary environment has been set. Now the problem is, what url should I give to activate my servlet thru IIS. I have tried with lots of combinations in one of them I got an error(null parameter) at tomcat side. In IIS log file error code is 200 which means OK. I don't know where I have gone wrong. Please let me know at the earliest. I m using tomcat 3.2.1 with IIS 5.0 and Win 2000 Professional as OS. nitin __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.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] __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.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: Servlet and Multiple Instances
Hi Cam, Servlets don't "have threads". Tomcat as a whole has a pool of threads for serving incoming requests (see the Connector tag in $TOMCAT_HOME/conf/server.xml). Unless you do something unusual, tomcat creates *one* instance of your servlet, and only one. Any *tomcat* request-serving thread which happens to need to run your servlet as part of a request just goes ahead and calls the service method (doGet/doPost) on the single servlet instance. If some other thread is already inside the instance, then the normal synchronization mechanisms are applied - synchronized methods can have only one thread in them, but "normal" methods are just run by the multiple threads in parallel, etc. So, does your servlet declare some critical method to be "synchronized"? If so, this is the reason that multiple client requests can't be served in parallel. If not (and you haven't deliberately turned down the size of the tomcat thread pool to 1), then I cannot think of any other reason for the behaviour you are seeing. As far as I know, there is no standard method of telling any servlet-spec-compliant system to create a "pool" of servlet instances, and run different requests using different instances. There really isn't any point in such a mechanism, because if you've bothered to declare "synchronized" methods on the servlet, that implies that there is data which *needs* to be shared across threads - so a pool of objects would break any code that needs synchronized methods anyway. If you *do* have a major servlet method "synchronized", then you need to think about **why** you declared it like that, and if possible get rid of the declaration (maybe you can just synchronize a smaller block of code?) Cheers, Simon -Original Message- From: Algarve, Leila [SMTP:[EMAIL PROTECTED]] Sent: Monday, January 08, 2001 12:08 PM To: '[EMAIL PROTECTED]' Subject: AW: Servlet and Multiple Instances Check if your servlet class implements SingleThreadModel, in this case one instance of the servlet will be able to handle just one request. Leila -Ursprngliche Nachricht- Von: Cam DeBuck [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 8. Januar 2001 07:12 An: [EMAIL PROTECTED] Betreff: Servlet and Multiple Instances I've written a servlet that is getting hit pretty hard. It works fine when just one user access hit. However, when they are multiple people hitting the servlet, it seems like that it is only serving one person at a time. Is there some confirguration option that I am missing so that it can spawn multiple threads. Any help would be appreciated. Thanks. --Cam-- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
error running tomcat
I get the following error when I run 'tomcat run': FATAL:java.net.BindException: Address in uuse: bind any ideas? Thanks, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: error running tomcat
Hello, Another instance of tomcat is running. Stop that one using killall Kaffe in case of Linux. If U R NOT able 2 stop using the standard shutdown.sh. - Original Message - From: Gallagher, Stephen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 08, 2001 5:22 PM Subject: error running tomcat I get the following error when I run 'tomcat run': FATAL:java.net.BindException: Address in uuse: bind any ideas? Thanks, Steve Regards Nagappan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Win32 3.2.1 - error on startup - can't find locale en_US
Hi Jari, I am presently in the same situation as You. To remark: my Tomcat installation did run very good for a while, then after a system reboot it can no more start. I'm asking what settings changed, but the problem still persists. Exception in thread "main" java.lang.ExceptionInInitializerError: java.util.Miss ingResourceException: Can't find bundle for base name org.apache.tomcat.resource s.LocalStrings, locale it_IT at java.util.ResourceBundle.throwMissingResourceException(Resou rceBundle .java:707) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:6 79) at java.util.ResourceBundle.getBundle(ResourceBundle.java:546) at org.apache.tomcat.util.StringManager.init(StringManager.ja va:115) at org.apache.tomcat.util.StringManager.getManager(StringManage r.java:26 0) at org.apache.tomcat.startup.Tomcat.clinit(Tomcat.java:24) == I shall reply You in any positive case. federico -- Federico Delpino Tel. 39-51-20-95722 Osservatorio Astronomico di BolognaFax. 39-51-20-95700 via Ranzani,1 - 40126 Bologna, Italy e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Password encryption in Java
Hi, Can anybody tell about" How we can encrypt Passwords in Java??"say like Perl's or Unix Crypt function?? i mean, Is there any Java equivalent of unix crypt() func?? thanx in advance, Deeps - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Problem starting Tomcat 3.1 (together with JRun)
Hi, I'm having a problem starting the Tomcat Servlet Runner. The problem appears when executing this command: "start java %TOMCAT_OPTS% -Dtomcat.home="%TOMCAT_HOME%" org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9" Tomcat used to run without any problem. After installing ColdFusion 4.5 with JRun, this problem came up. Does anyone know a solution. Is it JRun that's causing the problem? Thx. Joeri Theelen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: Problem starting Tomcat 3.1 (together with JRun)
Can you be a bit more specific, what the problem is? -Ursprngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 8. Januar 2001 13:37 An: [EMAIL PROTECTED] Betreff: Problem starting Tomcat 3.1 (together with JRun) Hi, I'm having a problem starting the Tomcat Servlet Runner. The problem appears when executing this command: "start java %TOMCAT_OPTS% -Dtomcat.home="%TOMCAT_HOME%" org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9" Tomcat used to run without any problem. After installing ColdFusion 4.5 with JRun, this problem came up. Does anyone know a solution. Is it JRun that's causing the problem? Thx. Joeri Theelen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Funny Error
Hello! Check the gif file. This happend when I replaced my servlets with new versions. bye, adrian. bug.gif - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: AW: Problem starting Tomcat 3.1 (together with JRun)
Try running c:\jakarta-tomcat\bin\tomcat.bat run from a command prompt - this will allow any errors to be printed the console. If its not obvious what the problem is, post and we'll figure it out. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, January 08, 2001 9:33 AM To: [EMAIL PROTECTED] Subject: Re: AW: Problem starting Tomcat 3.1 (together with JRun) I don't think I can be more specific. All I can do is tell you which steps are heading to my problem: 1. I put the path to all the necessary JAR-files in my CLASSPATH. 2. I start Tomcat executing the file "c:\jakarta-tomcat\bin\startup.bat". 3. This batch-file starts this file "c:\jakarta-tomcat\bin\tomcat.bat" with optional parameter "start". 4. In the batch-file, everything goes fine except the execution of the line added in my previous e-mail. There, a new console window is started, but IMMEDIATELY SHUT DOWN. It appears that the running the class "org.apache.tomcat.startup.Tomcat" generates the error now. In the past, everything went fine. We have several servlets and Java Server Pages running with Tomcat. Unfortunately, since the installation of ColdFusion 4.5 with JRun, Tomcat does not start up anymore. Hope this helps! Regards, Joeri Ralph Einfeldt ralph.einfeldt@uptiTo: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] me-isc.de cc: Subject: AW: Problem starting Tomcat 3.1 (together with JRun) 08/01/01 13:50 Please respond to tomcat-user Can you be a bit more specific, what the problem is? -Ursprngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 8. Januar 2001 13:37 An: [EMAIL PROTECTED] Betreff: Problem starting Tomcat 3.1 (together with JRun) Hi, I'm having a problem starting the Tomcat Servlet Runner. The problem appears when executing this command: "start java %TOMCAT_OPTS% -Dtomcat.home="%TOMCAT_HOME%" org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9" Tomcat used to run without any problem. After installing ColdFusion 4.5 with JRun, this problem came up. Does anyone know a solution. Is it JRun that's causing the problem? Thx. Joeri Theelen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - 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: Tomcat dies immediately under windows
Eric, I'm not sure if you got this when I sent the last time or not. If you could verify that this new tomcat.bat fixes your problem I'll committ the changes. Thanks for your help. - Eric, I don't have access to a Win98 system so could you please test the attached tomcat.bat file. I've changed the java commands to use a -classpath argument. It works fine on WinNT but I'd like to get a test on Win98 before I commit the changes. -Original Message- From: Eric Armstrong [mailto:[EMAIL PROTECTED]] Sent: Monday, January 01, 2001 3:36 PM To: [EMAIL PROTECTED]; me Subject: Re: Tomcat dies immediately under windows More info: "tomcat run" works fine. (runs in the same window) "tomcat start" fails. (separate window dies) Some environment setting must be missing in the new window. Eric Armstrong wrote: Note: Please use "reply all", as I am not subscribed at this address. Problem: * OS = Win98. * Tomcat startup announces "it is starting in a new window". * A window flashes up for an instant, and then disappears. * No LOGS directory was created. * After manually creating the directory, no log is written there after a retry. * The process list does not show any instance of tomcat running I've set up Tomcat successfully under Solaris, so I'm somewhat familiar with the process. Obviously, I have some setting wrong, but what? How can I find out, or has anyone experienced a similar problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] tomcat.bat - 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: problem in starting server
I think that it has to do with the starting slash. I think if you made your string equal to just "aServlet" that might do it. [EMAIL PROTECTED] on 01/06/2001 03:13:01 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: problem in starting server Hi, I have a frustrating problem. I have a link in a servlet that is set to String url = "/aServlet"; And the browser moves to http://127.0.0.1:8080/aServlet", which is a 404 Not Found. So I changed url to "ThisApp/servlet/aServlet", but this time browser moves to http://127.0.0.1:8080/ThisApp/servlet/ThisApp/servlet/aServlet. Can someone please help? __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.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: AW: Problem starting Tomcat 3.1 (together with JRun)
Hi, I think JRuns default port is 8080 the same as the default port of Tomcat. So perhaps the prot is blocked ba JRun when you try to start Tomcat. Try to use Tomcat with another port (change server.xml). Regards Birte -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Montag, 8. Januar 2001 15:33 To: [EMAIL PROTECTED] Subject: Re: AW: Problem starting Tomcat 3.1 (together with JRun) I don't think I can be more specific. All I can do is tell you which steps are heading to my problem: 1. I put the path to all the necessary JAR-files in my CLASSPATH. 2. I start Tomcat executing the file "c:\jakarta-tomcat\bin\startup.bat". 3. This batch-file starts this file "c:\jakarta-tomcat\bin\tomcat.bat" with optional parameter "start". 4. In the batch-file, everything goes fine except the execution of the line added in my previous e-mail. There, a new console window is started, but IMMEDIATELY SHUT DOWN. It appears that the running the class "org.apache.tomcat.startup.Tomcat" generates the error now. In the past, everything went fine. We have several servlets and Java Server Pages running with Tomcat. Unfortunately, since the installation of ColdFusion 4.5 with JRun, Tomcat does not start up anymore. Hope this helps! Regards, Joeri Ralph Einfeldt ralph.einfeldt@uptiTo: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] me-isc.de cc: Subject: AW: Problem starting Tomcat 3.1 (together with JRun) 08/01/01 13:50 Please respond to tomcat-user Can you be a bit more specific, what the problem is? -Ursprngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 8. Januar 2001 13:37 An: [EMAIL PROTECTED] Betreff: Problem starting Tomcat 3.1 (together with JRun) Hi, I'm having a problem starting the Tomcat Servlet Runner. The problem appears when executing this command: "start java %TOMCAT_OPTS% -Dtomcat.home="%TOMCAT_HOME%" org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9" Tomcat used to run without any problem. After installing ColdFusion 4.5 with JRun, this problem came up. Does anyone know a solution. Is it JRun that's causing the problem? Thx. Joeri Theelen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Mail Notification
The attached message has had some or all attachments deleted because of the following reason: Message contains attachments: tomcat.bat Additional Information: none Eric, I'm not sure if you got this when I sent the last time or not. If you could verify that this new tomcat.bat fixes your problem I'll committ the changes. Thanks for your help. - Eric, I don't have access to a Win98 system so could you please test the attached tomcat.bat file. I've changed the java commands to use a -classpath argument. It works fine on WinNT but I'd like to get a test on Win98 before I commit the changes. -Original Message- From: Eric Armstrong [mailto:[EMAIL PROTECTED]] Sent: Monday, January 01, 2001 3:36 PM To: [EMAIL PROTECTED]; me Subject: Re: Tomcat dies immediately under windows More info: "tomcat run" works fine. (runs in the same window) "tomcat start" fails. (separate window dies) Some environment setting must be missing in the new window. Eric Armstrong wrote: Note: Please use "reply all", as I am not subscribed at this address. Problem: * OS = Win98. * Tomcat startup announces "it is starting in a new window". * A window flashes up for an instant, and then disappears. * No LOGS directory was created. * After manually creating the directory, no log is written there after a retry. * The process list does not show any instance of tomcat running I've set up Tomcat successfully under Solaris, so I'm somewhat familiar with the process. Obviously, I have some setting wrong, but what? How can I find out, or has anyone experienced a similar problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] tomcat.bat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - 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: AW: Problem starting Tomcat 3.1 (together with JRun)
Hey Randy, Thank you for helping me out (as well as all the other people that already sent me good tips). Here is the error that occurs as soon as I want to startup Tomcat. In stead of starting Tomcat in another console window, I chose the same so I could see the error message. (Embedded image moved to file: pic19674.gif) Regards, Joeri Theelen. Randy Layman randy.layman@asweTo: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] think.comcc: Subject: RE: AW: Problem starting Tomcat 3.1 (together with JRun) 08/01/01 15:12 Please respond to tomcat-user Try running c:\jakarta-tomcat\bin\tomcat.bat run from a command prompt - this will allow any errors to be printed the console. If its not obvious what the problem is, post and we'll figure it out. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, January 08, 2001 9:33 AM To: [EMAIL PROTECTED] Subject: Re: AW: Problem starting Tomcat 3.1 (together with JRun) I don't think I can be more specific. All I can do is tell you which steps are heading to my problem: 1. I put the path to all the necessary JAR-files in my CLASSPATH. 2. I start Tomcat executing the file "c:\jakarta-tomcat\bin\startup.bat". 3. This batch-file starts this file "c:\jakarta-tomcat\bin\tomcat.bat" with optional parameter "start". 4. In the batch-file, everything goes fine except the execution of the line added in my previous e-mail. There, a new console window is started, but IMMEDIATELY SHUT DOWN. It appears that the running the class "org.apache.tomcat.startup.Tomcat" generates the error now. In the past, everything went fine. We have several servlets and Java Server Pages running with Tomcat. Unfortunately, since the installation of ColdFusion 4.5 with JRun, Tomcat does not start up anymore. Hope this helps! Regards, Joeri Ralph Einfeldt ralph.einfeldt@uptiTo: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] me-isc.de cc: Subject: AW: Problem starting Tomcat 3.1 (together with JRun) 08/01/01 13:50 Please respond to tomcat-user Can you be a bit more specific, what the problem is? -Ursprngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 8. Januar 2001 13:37 An: [EMAIL PROTECTED] Betreff: Problem starting Tomcat 3.1 (together with JRun) Hi, I'm having a problem starting the Tomcat Servlet Runner. The problem appears when executing this command: "start java %TOMCAT_OPTS% -Dtomcat.home="%TOMCAT_HOME%" org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9" Tomcat used to run without any problem. After installing ColdFusion 4.5 with JRun, this problem came up. Does anyone know a solution. Is it JRun that's causing the problem? Thx. Joeri Theelen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Compuserve GIF - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,
Forcing jump to an anchor inside a dynamic page.
Hello, I'm trying to get this working : Calling a servlet which returns an html page so that the browser jump automatically to an anchor ( A NAME="") inside this page. I've used an url like that, called for a form submission, http://localhost:8080/publisher/servlet/LookForIt#myanchor. Under Mozilla and IE5.0 it seems to work but not under Netscape4.7 for Linux. Is there a way to force the browser to scroll to an anchor inside a page ? Thanks a lot for any help ! Guy Bobenrieth __ Bote aux lettres - Caramail - http://www.caramail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: AW: Problem starting Tomcat 3.1 (together with JRun)
Welcome to the wonderful world of Java on Windows NT. The JVM expects the last version of Java installed to have written its version to the registry and then will not run if its version number is different. (Why? I really wish I knew.) What you need to do is to make Tomcat run with the last version installed (which is 1.2 from your screen capture, probably installed by JRun). Make sure to set your JAVA_HOME to the directory containing java 1.2. Also, you probably need to edit the tomcat.bat file so that instead of launching java -classpath... it launches %JAVA_HOME%\bin\java -classpath... Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, January 08, 2001 10:19 AM To: [EMAIL PROTECTED] Subject: RE: AW: Problem starting Tomcat 3.1 (together with JRun) Hey Randy, Thank you for helping me out (as well as all the other people that already sent me good tips). Here is the error that occurs as soon as I want to startup Tomcat. In stead of starting Tomcat in another console window, I chose the same so I could see the error message. (Embedded image moved to file: pic19674.gif) Regards, Joeri Theelen. Randy Layman randy.layman@asweTo: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] think.comcc: Subject: RE: AW: Problem starting Tomcat 3.1 (together with JRun) 08/01/01 15:12 Please respond to tomcat-user Try running c:\jakarta-tomcat\bin\tomcat.bat run from a command prompt - this will allow any errors to be printed the console. If its not obvious what the problem is, post and we'll figure it out. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, January 08, 2001 9:33 AM To: [EMAIL PROTECTED] Subject: Re: AW: Problem starting Tomcat 3.1 (together with JRun) I don't think I can be more specific. All I can do is tell you which steps are heading to my problem: 1. I put the path to all the necessary JAR-files in my CLASSPATH. 2. I start Tomcat executing the file "c:\jakarta-tomcat\bin\startup.bat". 3. This batch-file starts this file "c:\jakarta-tomcat\bin\tomcat.bat" with optional parameter "start". 4. In the batch-file, everything goes fine except the execution of the line added in my previous e-mail. There, a new console window is started, but IMMEDIATELY SHUT DOWN. It appears that the running the class "org.apache.tomcat.startup.Tomcat" generates the error now. In the past, everything went fine. We have several servlets and Java Server Pages running with Tomcat. Unfortunately, since the installation of ColdFusion 4.5 with JRun, Tomcat does not start up anymore. Hope this helps! Regards, Joeri Ralph Einfeldt ralph.einfeldt@uptiTo: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] me-isc.de cc: Subject: AW: Problem starting Tomcat 3.1 (together with JRun) 08/01/01 13:50 Please respond to tomcat-user Can you be a bit more specific, what the problem is? -Ursprngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 8. Januar 2001 13:37 An: [EMAIL PROTECTED] Betreff: Problem starting Tomcat 3.1 (together with JRun) Hi, I'm having a problem starting the Tomcat Servlet Runner. The problem appears when executing this command: "start java %TOMCAT_OPTS% -Dtomcat.home="%TOMCAT_HOME%" org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9" Tomcat used to run without any problem. After installing ColdFusion 4.5 with JRun, this problem came up. Does anyone know a solution. Is it JRun that's causing the problem? Thx. Joeri Theelen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
wrap Tomcat as NT service
hi, I try to wrap tomcat as a nt service following the instructions in the nt-service-howto.html page, and met the problem that when i try to manually start the newly installed service, a nt internal error happens(Error 2140 internal windows nt error). is the jk_nt_service executable sensitive to the space in the wrapper.tomcat_home or wrapper.java_home properties? should i use "" or '' to quote the directory? i tried both and the situation of without any "quotes", all of them are same. Or, there are other hidden secrets? i use Tomcat 3.2.1 and the dl the jk_nk_service as the newest version. i am using NT server 4.0 SP6 please fix it, thanks in advances! Weining Qi Info.nl, Amsterdam, the Netherlands
Feedback on : Tomcat IIS HowTo
Title: Feedback on : Tomcat IIS HowTo Hello there, I was able to get my IIS web server to work with Tomcat by following the instructions on: http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.html However, I had to perform one extra step before it actually worked. The problem was: IIS was trying to download jsp files, instead of executing them! The solution was (on my PC with NT4.0 sp6 + IIS4): 1. In the Microsoft Management Console, right click 'Default web site' 2. Choose 'properties' 3. Choose the 'Home directory' tab 4. Choose the 'Configuration' button 5. Choose the 'App Mappings' tab 6. Choose the 'Add' button 7. Fill in executable (point to isapi_redirect.dll) 8. Fill in extension (.jsp) 9. Tree times Ok = Now IIS recognises the .jsp extension and redirects to Tomcat! Hope this was usefull in any way, Keep up the good work! Gerrie Kimpen
IIS5 / win2000
I've just downloaded Tomcat 3.2.1 to run under IIS5 and Win2000. The user perms are ok, the configuration seems ok and I've been through the troubleshooting steps but the ISAPI_Redirector still doesn't load with a green arrow in IIS config. Are there any known issues with Win2000? Or solutions or ideas as to what I should try. The log file isn't even created but the registry settings are fine I think and the directories are in the correct places. Regards and thanks in advance,Edmund
RE: IIS5 / win2000
I, and lots of others, use Tomcat 3.2.1 with IIS on Win2000 and it works fine. If the redirector doesn't load the problem is almost always an error in the registry settings. Review the archives for this mailing list. This topic seems to get discussed about one a week. Past postings should contain information about diagnosing the problem. -Original Message- From: Edmund Davis [mailto:[EMAIL PROTECTED]] Sent: Monday, January 08, 2001 10:50 AM To: [EMAIL PROTECTED] Subject: IIS5 / win2000 I've just downloaded Tomcat 3.2.1 to run under IIS5 and Win2000. The user perms are ok, the configuration seems ok and I've been through the troubleshooting steps but the ISAPI_Redirector still doesn't load with a green arrow in IIS config. Are there any known issues with Win2000? Or solutions or ideas as to what I should try. The log file isn't even created but the registry settings are fine I think and the directories are in the correct places. Regards and thanks in advance, Edmund - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: IIS5 / win2000
Scan each registry entry carefully. Check the upper case, lower case, slashes etc. If the green arrow does not come, it means something is wrong in the registry entries. -Original Message-From: Edmund Davis [mailto:[EMAIL PROTECTED]]Sent: Monday, January 08, 2001 5:50 PMTo: [EMAIL PROTECTED]Subject: IIS5 / win2000 I've just downloaded Tomcat 3.2.1 to run under IIS5 and Win2000. The user perms are ok, the configuration seems ok and I've been through the troubleshooting steps but the ISAPI_Redirector still doesn't load with a green arrow in IIS config. Are there any known issues with Win2000? Or solutions or ideas as to what I should try. The log file isn't even created but the registry settings are fine I think and the directories are in the correct places. Regards and thanks in advance,Edmund
Re: IIS5 / win2000
I've had the same problem. Try to delete the key from registry HKLM\System\CurrentControlSet|Services\W3SVC\Parameters\Filter Dlls and restart Win2000 - Original Message - From: Edmund Davis To: [EMAIL PROTECTED] Sent: Monday, January 08, 2001 5:50 PM Subject: IIS5 / win2000 I've just downloaded Tomcat 3.2.1 to run under IIS5 and Win2000. The user perms are ok, the configuration seems ok and I've been through the troubleshooting steps but the ISAPI_Redirector still doesn't load with a green arrow in IIS config. Are there any known issues with Win2000? Or solutions or ideas as to what I should try. The log file isn't even created but the registry settings are fine I think and the directories are in the correct places. Regards and thanks in advance,Edmund
Re: ClassPath and setTomcat_Home variables?
Search the microsoft docs at msdn.microsoft.com for the "out of environment space problem. There is a quick fix listed there. If I remember correctly it deals with the dos box not properly automatically detecting memory requirements for the environment space. If you can't find the doc, try setting the memry specs maually in the dos box properties. ~Rob "Sam T." wrote: hi I have a problem to run Tomcat ,I have win98,jdk1.3, when I start to run it I get an error like Out of environment space Unable to locate servlet.jar, check the value of TOMCAT_HOME. how can I check the value of TOMCAT_HOME,JAVA_HOME? thanks sam, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- ___ Robert Wohleb Web Applications Development Manager Parafoil Software, Inc. ___ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: error running tomcat
It might also be that your tomcat config is setup to use 80 rather than 8080 for web services and are thus conflicting with your http daemon... ~Rob Nagappan A wrote: Hello, Another instance of tomcat is running. Stop that one using killall Kaffe in case of Linux. If U R NOT able 2 stop using the standard shutdown.sh. - Original Message - From: Gallagher, Stephen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 08, 2001 5:22 PM Subject: error running tomcat I get the following error when I run 'tomcat run': FATAL:java.net.BindException: Address in uuse: bind any ideas? Thanks, Steve Regards Nagappan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- ___ Robert Wohleb Web Applications Development Manager Parafoil Software, Inc. ___ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Tomcat Startup gives Resource bundle not found error
I just downloaded tomcat 3.2 and installed it. I am running with jdk1.3 on a win2000 sp1 machine. I set the TOMCAT_HOME environment variable correctly. However..when I try to start tomcat, I get the following error. Does anyone have any idea why? Exception in thread "main" java.lang.ExceptionInInitializerError: java.util.Miss ingResourceException: Can't find bundle for base name org.apache.tomcat.resource s.LocalStrings, locale en_US at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle .java:707) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:679) at java.util.ResourceBundle.getBundle(ResourceBundle.java:546) at org.apache.tomcat.util.StringManager.init(StringManager.java:115) at org.apache.tomcat.util.StringManager.getManager(StringManager.java:26 0) at org.apache.tomcat.startup.Tomcat.clinit(Tomcat.java:24) . T o n y C h a o : Developer LOBBY7 :: Enlightened Wireless :: www.lobby7.com 99 High St. 27th Floor Boston, MA 02110 Phone +1 617 556 4789 | Fax +1 617 423 4335 | Mobile +1 617 513 5612 SMS [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Internationalization problem
Hi, I got a problem with i18n. I want to use a french localized GregorianCalendar but when i execute my JSP, the GregorianCalendar is not French Localized. I use jakarta-tomcat 3.2 with Sun JDK 1.3; On the other hand, when i execute the same code in a java application (with sun JVM 1.3), the result is exactly wath i expect. What am i missing in jakarta configuration? Here are the source code and the result of my JSP and the java app testCalendar.jsp: * %@page session="true" import="java.text.*, java.util.*"% html head /head BODY TEXT="00" BGCOLOR="EBF2F1" LINK="501123" ALINK="501123" VLINK="501123" % Vector days = new Vector(); Vector weeks = new Vector(); java.text.SimpleDateFormat sdf = new SimpleDateFormat("", Locale.FRANCE); java.text.SimpleDateFormat sdf2 = new SimpleDateFormat("dd/MM/", Locale.FRANCE); GregorianCalendar myCalendar = new GregorianCalendar(Locale.FRANCE); myCalendar.setTime(sdf2.parse("05/01/2001")); myCalendar.set(myCalendar.DAY_OF_WEEK, myCalendar.getFirstDayOfWeek()); for (int i = 0; i 4; i++) { weeks.addElement(new Integer(myCalendar.get(myCalendar.WEEK_OF_YEAR))); for (int j = 0; j 7; j++) { days.addElement(myCalendar.getTime()); myCalendar.setTime(new Date(myCalendar.getTime().getTime() + (1000*60*60*24))); } } % table tr td/td % for (int j = 0; j 7; j++) { % td %=sdf.format((Date) days.elementAt(j))% /td %}% /tr %for (int i = 0; i 4; i++) {% tr td %=weeks.elementAt(i)% /td %for (int j = 0; j 7; j++) {% td %=sdf2.format((Date) days.elementAt(7 * i + j))% /td %}% /tr %}% /table /body /html the result is : Sunday Monday Tuesday Wednesday ThursdayFriday Saturday 1 31/12/2000 01/01/2001 02/01/2001 03/01/2001 04/01/2001 05/01/2001 06/01/2001 2 07/01/2001 08/01/2001 09/01/2001 10/01/2001 11/01/2001 12/01/2001 13/01/2001 3 14/01/2001 15/01/2001 16/01/2001 17/01/2001 18/01/2001 19/01/2001 20/01/2001 4 21/01/2001 22/01/2001 23/01/2001 24/01/2001 25/01/2001 26/01/2001 27/01/2001 testCalendar.java * import java.text.*; import java.util.*; public class TestCalendar { public static void main(java.lang.String[] args) { Vector days = new Vector(); Vector weeks = new Vector(); SimpleDateFormat sdf = new SimpleDateFormat("", Locale.FRANCE); SimpleDateFormat sdf2 = new SimpleDateFormat("dd/MM/", Locale.FRANCE); GregorianCalendar myCalendar = new GregorianCalendar(Locale.FRANCE); myCalendar.setTime(sdf2.parse("05/01/2001")); myCalendar.set(myCalendar.DAY_OF_WEEK, myCalendar.getFirstDayOfWeek()); for (int i = 0; i 4; i++) { weeks.addElement(new Integer(myCalendar.get(myCalendar.WEEK_OF_YEAR))); for (int j = 0; j 7; j++) { days.addElement(myCalendar.getTime()); myCalendar.setTime(new Date(myCalendar.getTime().getTime() + (1000*60*60*24))); } } System.out.print("\t"); for (int j = 0; j 7; j++) { System.out.print(sdf.format((Date) days.elementAt(j)) + "\t"); } System.out.println(); for (int i = 0; i 4; i++) { System.out.print(weeks.elementAt(i) + "\t"); for (int j = 0; j 7; j++) { System.out.print(sdf2.format((Date) days.elementAt(7 * i + j)) + "\t"); } System.out.println(); } } } and the result is : lundi mardi mercredijeudi vendredisamedi dimanche 1 01/01/2001 02/01/2001 03/01/2001 04/01/2001 05/01/2001 06/01/2001 07/01/2001 2 08/01/2001 09/01/2001 10/01/2001 11/01/2001 12/01/2001 13/01/2001 14/01/2001 3 15/01/2001 16/01/2001 17/01/2001 18/01/2001 19/01/2001 20/01/2001 21/01/2001 4 22/01/2001 23/01/2001 24/01/2001 25/01/2001 26/01/2001 27/01/2001 28/01/2001 -- Raphal LEMAITRE mailto:[EMAIL PROTECTED] e-deal 86-88 rue du Vieux
RE: using ajp13?
Copy mod_jk.conf-auto to another filename (mod_jk.conf perhaps?), edit it appropriately, and include the new file in httpd.conf instead of the auto-generated file. It sounds like you've already made the appropriate changes to server.xml and workers.properties, so you should be done at this point. Ed -Original Message- From: Dario Novakovic [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 06, 2001 5:13 PM To: [EMAIL PROTECTED] Subject: using ajp13? how am i supposed to make my webapps use ajp13 protocol? i use auto-created mod_jk.conf-auto config file, and, by defaults, every context is setup to use ajp12 protocol. i have both workers (ajp12,ajp13) and ajp13 connector set up. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Authentication/Ream question
Hello all, Sorry to keep harping on this issue but I'd really like to be able to use/understand it. I have now downloaded the tomcat source and have been building away. My problem/question comes in from doing something like this {package import statements} public class MySimpleRealm extends SimpleRealm{ } Build that (which means MySimpleRealm inherits everything from SimpleRealm) and then update /build/tomcat/conf/server.xml RequestInterceptor className="org.apache.tomcat.request.MySimpleRealm" debug="99" / I would expect that when I viewed /examples/jsp/security/login/login.jsp it'd act the exact same as SimpleRealm. Instead, it it tries to direct the page to /login/null After that though, if I manually type in /security/protected/index.jsp it picks up the fact that I have a session, I'm a valid user in my proper role. Any pointers, tidbits, etc. would be most gratefully accepted. From tomcat.log... Ctx( /examples ): XmlReader - init /examples webapps/examples Ctx( /examples ): Reading C:\jakarta\build\tomcat\webapps\examples\WEB-INF\web.xml Ctx( /examples ): Add user tomcat tomcat tomcat Ctx( /examples ): Add user role1 tomcat role1 Ctx( /examples ): Add user both tomcat tomcat,role1 Ctx( /examples ): Loading -2147483646 jsp Ctx( /examples ): Get real path /jsp/security/login/login.jsp C:\jakarta\build\tomcat\webapps\examples\jsp\security\login\login.jsp C:\jakarta\build\tomcat\webapps\examples Ctx( /examples ): Get real path \jsp\security\login\login.jsp C:\jakarta\build\tomcat\webapps\examples\jsp\security\login\login.jsp C:\jakarta\build\tomcat\webapps\examples Ctx( /examples ): Get real path \jsp\security\login\login.jsp C:\jakarta\build\tomcat\webapps\examples\jsp\security\login\login.jsp C:\jakarta\build\tomcat\webapps\examples Ctx( /examples ): Get real path \jsp\security\login\login.jsp C:\jakarta\build\tomcat\webapps\examples\jsp\security\login\login.jsp C:\jakarta\build\tomcat\webapps\examples Ctx( /examples ): Get real path /jsp/security/login/null C:\jakarta\build\tomcat\webapps\examples\jsp\security\login\null C:\jakarta\build\tomcat\webapps\examples Ctx( /examples ): 404 R( /examples + /jsp/security/login/null + null) null ContextManager: SimpleRealm: Verify user=tomcat pass=tomcat ContextManager: SimpleRealm: Auth ok, user=tomcat ContextManager: SimpleRealm: Controled access for tomcat R( /examples + /jsp/security/protected/index.jsp + null) Ct (jsp(org.apache.jasper.servlet.JspServlet/null) ) Tell all your friends about wowwowmail.zzn.com ZapZone Network brought to you by FortuneCity. http://www.fortunecity.com Get 100 megabytes of free - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Servlet API error: sendError with commited buffer
Hi, Can anyone tell me why do I get the above error in tomcat.log ? It happens whenafter I runa jsp page, I change the protocol to https: and reload the page. Thanks Shahed.
URL mappings
Title: URL mappings I am trying to figure out a solution for a URL mapping scheme for my webapp. I am trying to achieve the following maps: *context*/?? --- Servlet1 *context*/ice --- Servlet2 *context*/images/??.gif --- Straight through *context*/movies/??.swf --- Straight through I have tried several different configurations, if I use servlet-mapping servlet-nameServlet1/servlet-name url-pattern//url-pattern /servlet-mapping it will map all of the above url's to servlet 1 and ignore all other maps. I want to be able to divide these url's in the web.xml. Maybe there is a way to use regular expressions when specifying a URL pattern or something equivalent? That would be nice. I would appreciate any advice. Thanks, Ryan
expanding .war file
I'm creating a .war file for our project. The project includes an "InitServlet" and (in web.xml, referring to InitServlet)load-on-startup1/load-on-startup. I also have a line in server.xml "Context path="...".../Context that mimics that of the other webapps When I: stop Tomcat remove the existing project directory in webapps and copy in the new .war file start Tomcat the .war file gets expanded properly but the InitServlet doesn't run (causing assorted run-time problems). If I stop and restart Tomcat again, things seem to be fine. Am I missing some configuration incantation? I'm running Tomcat 3.1. Thanks George McKinney - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Antw: mod_jk build fails - apxs:Break: Command failed with rc=255
HI Fin, Your command is almost identical to what I have been using, with the exception of the reference to j2se (I am using jdk 1.2). I have tried both including and excluding the "-l posix4" reference. I'm wondering if this might be a path order-issue. Anybody have other suggestions? Fin: What is are your $PATH and $CLASSPATH variable set up to look like? Anyone else? Hi, my build succeeded with the following commands (using Solaris 8 J2SE): % cd ~/jakarta-tomcat-3.2.1-src/src/native/apache1.3 % /usr/local/apache/bin/apxs -o mod_jk.so -DSOLARIS -I../jk \ -I/usr/j2se/include \ -I/usr/j2se/include/solaris \ -l posix4 -c *.c ../jk/*.c -Fin [EMAIL PROTECTED] 08.01.2001 07.16 Uhr Hello, I am trying to build mod_jk for Apache from the jakarta-tomcat 3.2.1 source. Apache 1.3.14 is installed in the default directory (/usr/local/apache). I'm running Solaris 2.7 (generic) for Sparc. When I use apxs to build mod_jk (according to the current documentation), I get: # apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java1.2/include -I/usr/java1.2/ include/solaris -c *.c ../jk/*.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c mod_jk.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_ajp12_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_ajp13.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_ajp13_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_connect.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_jni_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_lb_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_map.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_msg_buff.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_nwmain.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_pool.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_sockbuf.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_uri_worker_map.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_util.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_worker.c -o mod_jk.so jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o jk_pool.o jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o jk_jni_worker.o jk_connect.o jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o mod_jk.o apxs:Break: Command failed with rc=255 Similarly, adjusting the apxs command syntax to adhear to the structure outlined by "apxs -h" produces the result: # apxs -c -o mod_jk.so -DSOLARIS -I../jk -I/usr/java1.2/include -I/usr/java1 .2/include/solaris *.c ../jk/*.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c mod_jk.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_ajp12_worker.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java1.2/include -I/usr/java1.2/include/solaris -DSOLARIS -c ../jk/jk_ajp13.c gcc
Re: JSP errors
It sounds like your servlet.jar is not 2.2. Look in /lib/ for your servlet.jar (or wherever it's in your classpath) See what's sittin' inside. If it's 2.2, the interface HttpSession in javax.servlet.http should have a method getAttribute(java.lang.String name) and getValue should be deprecated. If they're not there, then that is probably why Tomcat is complaining. $.02 /bill Please respond to [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] cc:(bcc: Bill Fellows/MO/americancentury) Subject: JSP errors Can anyone explain why I get these errors with Tomcat 3.2.7b and not another JSP engine like Resin or Orion? { ...snip... } D:\JavaServletProducts\jboss-tomcat\jboss_tomcat\tomcat-3.2-b7\work\localhost_80 80%2Faddressbook-web\_0002flist_0002ejsplist_jsp_0.java:139: Method setAttribute (java.lang.String, addressbook.ejb.AddressBook) not found in interface javax.ser vlet.http.HttpSession. session.setAttribute("AddressBook", addressBook); ^ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: IIS5 / win2000
Running IIS5, Win2000, Tomcat 3.2.1 Thanks for everyone's help. IIS now loads the ISAPI filter with a green arrow but I get a 500 error in the IIS log file. The virtual directory is called jakarta. The registry extension_uri setting is /jakarta/isapi_redirect.dll and the worker.ajp12.port is 8007 in both workers.properties and server.xml. I am also getting these two lines in the tomcat isapi.log file: [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 [jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed What do I try next? Regards and thanks, Edmund - Original Message - From: Angelo Brunoro To: [EMAIL PROTECTED] Sent: Monday, January 08, 2001 4:58 PM Subject: Re: IIS5 / win2000 I've had the same problem. Try to delete the key from registry HKLM\System\CurrentControlSet|Services\W3SVC\Parameters\Filter Dlls and restart Win2000 - Original Message - From: Edmund Davis To: [EMAIL PROTECTED] Sent: Monday, January 08, 2001 5:50 PM Subject: IIS5 / win2000 I've just downloaded Tomcat 3.2.1 to run under IIS5 and Win2000. The user perms are ok, the configuration seems ok and I've been through the troubleshooting steps but the ISAPI_Redirector still doesn't load with a green arrow in IIS config. Are there any known issues with Win2000? Or solutions or ideas as to what I should try. The log file isn't even created but the registry settings are fine I think and the directories are in the correct places. Regards and thanks in advance,Edmund
Adding new realms : Assigning a name
In Tomcat 3.2... How does the auth-method name "JDBCRealm" get associated with the JDBCRealm class? Is the list of available realm names derived from the class name (i.e. the name of any class on the class path that extends BaseInterceptor is a valid realm name?) In short, provided I have a class called XYZRealm that extends BaseInterceptor on my classpath, does anything need to be done to associate the auth-method name "XYZRealm" with the class XYZRealm? Is the following configuration all that is needed? ... in server.xml RequestInterceptor className="mypackage.XYZRealm" / ... in a protected webapp's web.xml (Here is the question... login-config auth-methodXYZRealm/auth-method realm-nameExample XYZ-Based Authentication Area/realm-name form-login-config form-login-page/jsp/security/login/login.jsp/form-login-page form-error-page/jsp/security/login/error.jsp/form-error-page /form-login-config /login-config == Casey Bragg - Software Engineer Allegiance Telecom, Inc. Dallas, TX 469-259-2702 - [EMAIL PROTECTED] == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Adding new realms : Assigning a name
"Bragg, Casey" wrote: In Tomcat 3.2... How does the auth-method name "JDBCRealm" get associated with the JDBCRealm class? It doesn't. The auth-method you use in your web.xml file is used to choose the mechanism by which the username/password dialog is presented to the user. Only the standard four choices are available (BASIC, DIGEST, FORM, and CLIENT-CERT). And Tomcat 3.2 only supports BASIC and FORM. What you need to do is tell Tomcat: "whenever I need to authenticate a user, look here for the users, passwords, and roles information." This is done by a configuration entry in the server.xml file. You will see an entry for the simple realm: RequestInterceptor className="org.apache.tomcat.request.SimpleRealm" debug="0"/ that you need to comment out, and replace with an entry for the JDBCRealm. There are several commented-out examples in the standard server.xml that you can use as a model for your own entry. Is the list of available realm names derived from the class name (i.e. the name of any class on the class path that extends BaseInterceptor is a valid realm name?) In short, provided I have a class called XYZRealm that extends BaseInterceptor on my classpath, does anything need to be done to associate the auth-method name "XYZRealm" with the class XYZRealm? Is the following configuration all that is needed? ... in server.xml RequestInterceptor className="mypackage.XYZRealm" / ... in a protected webapp's web.xml (Here is the question... login-config auth-methodXYZRealm/auth-method realm-nameExample XYZ-Based Authentication Area/realm-name form-login-config form-login-page/jsp/security/login/login.jsp/form-login-page form-error-page/jsp/security/login/error.jsp/form-error-page /form-login-config /login-config As discussed above, the login auth-method you use is completely independent of where the usernames database is. For Tomcat 3.2, the (single) realm you define is global to all webapps -- in Tomcat 4.0 you can configure individual realms for individual webapps. Casey Bragg - Software Engineer Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Internationalization Problem
Raphael, I tried your jsp with my Tomcat 3.1 running with JDK1.2.2 on NT and I got the correct results - in french. My default locale is en_US. Ramakrishna Get free email and a permanent address at http://www.netaddress.com/?N=1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
isapi_redirect.dll
The redirector for IIS does not work on Windows 2000. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Authentication/Ream question
As an update, It may not be elegant but it seems to work (so far). I wrote a simple redirect servlet to point to my secure content and it seems to be working. Any suggestions on why I needed to do this would be most appreciated. If anyone cares, here's my exceeding complex and difficult temporary solution. ;) servlet servlet-name NullRedirect /servlet-name servlet-class NullRedirect /servlet-class /servlet servlet-mapping servlet-name NullRedirect /servlet-name url-pattern /jsp/security/login/null /url-pattern /servlet-mapping public class NullRedirect extends HttpServlet { public void init(ServletConfig config) throws ServletException { super.init(config); } public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.redirect("/examples/jsp/security/protected/"); } public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { doGet(request, response); } } Tell all your friends about wowwowmail.zzn.com ZapZone Network brought to you by FortuneCity. http://www.fortunecity.com Get 100 megabytes of free - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: URL mappings
ryan, your best bet would be to put an index page in the root dir of your webapp and redirect to the servlet. Matt Goss Ryan Littrell wrote: I am trying to figure out a solution for a URL mapping scheme for my webapp. I am trying to achieve the following maps: *context*/?? ---> Servlet1 *context*/ice ---> Servlet2 *context*/images/??.gif ---> Straight through *context*/movies/??.swf ---> Straight through I have tried several different configurations, if I use servlet-mapping> servlet-name>Servlet1/servlet-name> url-pattern>//url-pattern> /servlet-mapping> it will map all of the above url's to servlet 1 and ignore all other maps. I want to be able to divide these url's in the web.xml. Maybe there is a way to use regular expressions when specifying a URL pattern or something equivalent? That would be nice. I would appreciate any advice. Thanks, Ryan begin:vcard n:Goss;Matt tel;fax:919-657-1501 tel;work:919-657-1432 x-mozilla-html:FALSE url:www.rtci.com org:RTCI;Custom Solutions adr:;;201 Shannon Oaks Circle;Cary;NC;27511;US version:2.1 email;internet:[EMAIL PROTECTED] title:Web Developer fn:Matt end:vcard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Basic Tomcat/IIS setup problems
I have installed Tomcat 3.2.1 on an NT machine running IIS 4. I have set up the isapi_redirector and it's got the "green arrow." I have added the directory in jakarta-tomcat/webapps that I want to serve as IIS's default directory, I have selectedExecute Access in thejakarta virtual directory in IIS,and I have started Tomcat. I can watch the contexts get added in the msdos window. However, when I try to request a servlet, I get "ctx(): 404 R( +/servlet/servletname + null) null" in the msdos window and nothing happens. When I look in the system32/logfiles/w3svc1, I see "Get jakarta/isapi_redirect 200." I am told jsp's aren't happening either. Can someone please give me some ideas about how I can fix this? Thanks in advance, Tim Coultas
dose tomcat 3.1 work with jre1.3
HI all, I have this problem I'm trying to run tomcat3.1 with Apache but every time I try to add the tomcat.conf to my httpd.conf Apache just fails to start. I must say the document aren't clear. Please help as I need this project completed today. Andrew [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Fw: wrap Tomcat as NT service
It seems that does not work when space present in the path variables. I am success on another Win2000 professional machine, this case, there's no any spaces in the path variables. but still thanks a lot for other solutions. Weining Qi - Original Message - From: Weining Qi To: [EMAIL PROTECTED] Sent: Monday, January 08, 2001 5:15 PM Subject: wrap Tomcat as NT service hi, I try to wrap tomcat as a nt service following the instructions in the nt-service-howto.html page, and met the problem that when i try to manually start the newly installed service, a nt internal error happens(Error 2140 internal windows nt error). is the jk_nt_service executable sensitive to the space in the wrapper.tomcat_home or wrapper.java_home properties? should i use "" or '' to quote the directory? i tried both and the situation of without any "quotes", all of them are same. Or, there are other hidden secrets? i use Tomcat 3.2.1 and the dl the jk_nk_service as the newest version. i am using NT server 4.0 SP6 please fix it, thanks in advances! Weining Qi Info.nl, Amsterdam, the Netherlands
[ANNOUNCEMENT] RPMs for jakarta.apache.org projects
Hi, Just started to upload my RPMS for jakarta projects : I followed the general recommandation and create a rpms subdir in each project subdir. Each source rpm follow the following rules : - All binaries are rebuilt from source code. No RPM with just copy of allready generated jars. - General jars (jakarta-regexp.jar) goes in /usr/share/java/ to follow the Debian recommandation. Allready done are : ant 1.1 = http://jakarta.apache.org/builds/jakarta-ant/release/v1.1/rpms/ ant 1.2 = http://jakarta.apache.org/builds/jakarta-ant/release/v1.2/rpms/ ecs 1.4.1 = http://jakarta.apache.org/builds/jakarta-ecs/release/v1.4.1/rpms/ oro 2.0.1 = http://jakarta.apache.org/builds/jakarta-oro/release/v2.0.1/rpms/ regexp 1.2 = http://jakarta.apache.org/builds/jakarta-regexp/release/v1.2/rpms/ tomcat 3.2.1= http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/rpms/ this one contains both tomcat RPM and mod_jk/mod_jserv apache connectors in an RPM called tomcat-mod ;-) tomcat 4.0-b1 = http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b1/rpms/ this one contains both tomcat4 RPM and mod_webapp apache connector ;-) To be done : SLIDE - STRUTS - TAGLIBS - VELOCITY Since there is many Sun employees around I need your clue and help since I finished jaxp 1.0 and 1.1 RPMs and need to know where to export them. Also does a RPM from jsse 1.0.2 (here fron binaries since I didn't have acess to source code ;-(() Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: dose tomcat 3.1 work with jre1.3
I didn't use jre1.3 but jdk1.3. I don't think there is any different if you are just trying to start Tomcat. I am running Tomcat 3.2.1 + Apache 1.3.14 and everything is fine. Andrew Burrows To: Tomcat User andrewbu@big[EMAIL PROTECTED] pond.comcc: Subject: dose tomcat 3.1 work with jre1.3 01/08/2001 01:22 PM Please respond to tomcat-user HI all, I have this problem I'm trying to run tomcat3.1 with Apache but every time I try to add the tomcat.conf to my httpd.conf Apache just fails to start. I must say the document aren't clear. Please help as I need this project completed today. Andrew [EMAIL PROTECTED] - 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: JSP as an XML Document
Gregor Rayman wrote: Hi, does Tomcat support the XML syntax for JSP? Tomcat 3.2 - No. Tomcat 4.0 - yes (per the JSP 1.2 proposed final draft spec). I want to generate JSP from XML with XSL and it would be much nicer, if I could use e.g. jsp:expression istead of %= Thanks for any help -- gR Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat process management using ps
Mark Koscak wrote: Hello everyone,I am running Jakarta-Tomcat 3.2When I have a look at my system processes (ps -aux) after starting tomcat, there are eighteen (18) separate process id's the associated command being /usr/locak/jdk1.3 Each process apparently consuming 15.4% of memory. 18 * 15.4% = 277.2%How can this be?Also (ok I'm being lazy on this one) when starting tomcat can I prune the instances of the command /usr/local/jdk1.3 to say 8-10 instead of having 18.Thanks for any input.RegardsMark The Linux "ps" command lies to you. It makes individual threads look like they are separate processes. There is only one process (assuming you started only one), all sharing the same memory. Craig McClanahan
Multipart form-data
I am trying to use the com.oreilly.servlet.MultiPartRequest object to handle a file upload through tomcat. We have successfully done this with Apache and mod_jserv, but it just won't work with tomcat and mod_jk The error returned is java.IOException "Unexpected end of part" The file upload starts, but the file never completes. Sometimes it is just 0 bytes. We have tried several different browsers and file types. I suspect the data stream handoff between apache and tomcat. Is there a configuration parameter I need to change to allow file uploads? -- William J. Fox Eversave.com Suite 2350 400 West Cummings Park Woburn, MA 01801 (781) 938-7283 x272 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
JSP's Not reloading
I finally figured out why my Tomcat 3.2 server isn't reloading my updated JSP files! It turns out that I'm using a NFS mounted file system to access the document root on my file server from the Tomcat server machine, but I'm editing the files directly through the file server instead of through the NFS mount point on the Tomcat server. I also learned that NFS has a cachine problem, where you can change the contents of a shared file one one machine, but the directory date doesn't get updated when doing a ls -l * on another machine. Does anyone know how to disable directory caching of NFS on linux 6.2? Any help would be greatly apreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: I may be too stupid...
my first recommendation would be to switch to mod_jk. I much easier configuration to with. then I could help you out. take a look at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html Filip you can contact me at [EMAIL PROTECTED] if I don't respond in a timely fashion. This list is getting really busy, so it is hard to keep track. - Original Message - From: "Glen Campbell" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 08, 2001 3:49 PM Subject: I may be too stupid... ...but I've been working and reading about this for several weeks, and I still can't figure out how to do it. I have a local website whose root is based at /u1/www. I want all .jsp files to be handled by Tomcat. When I connect to http://localhost, I get the index.html file under .../tomcat/webapps/ROOT. When I connect to http://localhost/index.html, I get the index.html file from /u1/www. When I connect to http://localhost/surveyor.jsp, I get HTTP 404 file not found. I'm using Macromedia Dreamweaver to generate the JSP files and attempting to access MySQL via the mm.msql driver. When I connect from Dreamweaver, it tells me that there is no driver available. Here's my tomcat.conf file (this tends to change 40-50 times per day): LoadModule jserv_module libexec/apache/mod_jserv.so IfModule mod_jserv.c # Do not edit! ApJServManual on ApJServDefaultProtocol ajpv12 ApJServSecretKey DISABLED ApJServMountCopy on ApJServLogLevel notice ApJServLogFile /var/log/mod_jserv.log ### Change if you run tomcat on a different host ApJServDefaultHost localhost ApJServDefaultPort 8007 All jsp files will go to tomcat ApJServMount default /root AddType text/jsp .jsp AddHandler jserv-servlet .jsp ## Context mapping - all requests go to tomcat ApJServMount /servlet /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 LocationMatch /*.jsp SetHandler jserv-servlet /LocationMatch /IfModule I feel like an absolute idiot, because I keep reading and re-reading the documentation at jakarta.apache.org, but nothing seems to work. I hope this isn't a terrible problem because I believe other websites have .jsp files in their root directory. What's going on?? Glen Campbell [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Same site multiple developpers
Hello, We are multiple developpers working on the same project... the problem is that when one developper makes a modification to his servlet the server must be restarted... this causes a bunch of problems We have tried using the reloadble tag but this also causes problems(with sessions and stuff...) If you have any suggestions Thanks Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Multipart form-data
Are you using AJP12 or AJP13? AJP13 has a bug in this area. We encountered this with uploaded JPEG files, and also got the zero bytes error, but resolved it with no other changes after switching back to AJP12. -Original Message- From: Bill Fox [mailto:[EMAIL PROTECTED]] Sent: Monday, January 08, 2001 6:29 PM To: [EMAIL PROTECTED] Subject: Multipart form-data I am trying to use the com.oreilly.servlet.MultiPartRequest object to handle a file upload through tomcat. We have successfully done this with Apache and mod_jserv, but it just won't work with tomcat and mod_jk The error returned is java.IOException "Unexpected end of part" The file upload starts, but the file never completes. Sometimes it is just 0 bytes. We have tried several different browsers and file types. I suspect the data stream handoff between apache and tomcat. Is there a configuration parameter I need to change to allow file uploads? -- William J. Fox Eversave.com Suite 2350 400 West Cummings Park Woburn, MA 01801 (781) 938-7283 x272 [EMAIL PROTECTED] - 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: Same site multiple developpers
try loading different servers on different ports in different address spaces... later, -b Hello, We are multiple developpers working on the same project... the problem is that when one developper makes a modification to his servlet the server must be restarted... this causes a bunch of problems We have tried using the reloadble tag but this also causes problems(with sessions and stuff...) If you have any suggestions Thanks Eric -- --- To unsubscribe, e-mail: tomcat-user- [EMAIL PROTECTED] For additional commands, email: tomcat-user- [EMAIL PROTECTED] Boyd Wilson School of Engineering and Applied Science Miami University Oxford, OH 45056 [EMAIL PROTECTED] www.users.muohio.edu/wilsonkb 513-529-5951 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: I may be too stupid...
Is it in Dreamweaver UD your trying to make a live data connection, if so the driver must be accessible via Dreamweaver, this is not a tomcat config issue it would be local WS config (try throwing the dll in the system32 dir)... later, -b ...but I've been working and reading about this for several weeks, and I still can't figure out how to do it. I have a local website whose root is based at /u1/www. I want all .jsp files to be handled by Tomcat. When I connect to http://localhost, I get the index.html file under .../tomcat/webapps/ROOT. When I connect to http://localhost/index.html, I get the index.html file from /u1/www. When I connect to http://localhost/surveyor.jsp, I get HTTP 404 file not found. I'm using Macromedia Dreamweaver to generate the JSP files and attempting to access MySQL via the mm.msql driver. When I connect from Dreamweaver, it tells me that there is no driver available. Here's my tomcat.conf file (this tends to change 40-50 times per day): LoadModule jserv_module libexec/apache/mod_jserv.so IfModule mod_jserv.c # Do not edit! ApJServManual on ApJServDefaultProtocol ajpv12 ApJServSecretKey DISABLED ApJServMountCopy on ApJServLogLevel notice ApJServLogFile /var/log/mod_jserv.log ### Change if you run tomcat on a different host ApJServDefaultHost localhost ApJServDefaultPort 8007 All jsp files will go to tomcat ApJServMount default /root AddType text/jsp .jsp AddHandler jserv-servlet .jsp ## Context mapping - all requests go to tomcat ApJServMount /servlet /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 LocationMatch /*.jsp SetHandler jserv-servlet /LocationMatch /IfModule I feel like an absolute idiot, because I keep reading and re-reading the documentation at jakarta.apache.org, but nothing seems to work. I hope this isn't a terrible problem because I believe other websites have .jsp files in their root directory. What's going on?? Glen Campbell [EMAIL PROTECTED] -- --- To unsubscribe, e-mail: tomcat-user- [EMAIL PROTECTED] For additional commands, email: tomcat-user- [EMAIL PROTECTED] Boyd Wilson School of Engineering and Applied Science Miami University Oxford, OH 45056 [EMAIL PROTECTED] www.users.muohio.edu/wilsonkb 513-529-5951 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Logging connections
Hello, how do I configure tomcat to log http connections? Currently I have three log files: jasper.log (verbosity level is set to INFORMATION), servlet.log (customOutput set to "yes"), tomcat.log (customOutput set to "yes"). I was expecting to find connection logging messages in the tomcat.log file, but this is not happening. Thanks in advance. -- Jabberwockey [EMAIL PROTECTED]
Can't get past the documentation...
Hi... I've got Tomcat installed (3.2.1 on Solaris x86), but I can't get past the docs for setting it up to work with Apache. The "Minimalistic User's Guide" states that the tomcat-apache.conf file is created each time Tomcat starts. This is true. But the Tomcat-Apache HOWTO suggests making customizations to this file. Why would I do that if it's going to get overwritten every time I start Tomcat? The HOWTO suggests using mod_jk instead of mod_jserv, and then goes on to use mod_jserv in all of it's configuration file examples. Which am I supposed to use? And if I use mod_jk, how do I construct the config file, since the one Tomcat writes at startup is JServ-centric? For that matter, which config file am I supposed to be constructing, since the conf file gets overwritten at startup? I'm lost... Bill Kocik Taos - Santa Clara, CA http://www.taos.com [EMAIL PROTECTED] Quantum Mechanics: The dreams stuff is made of. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Logging connections
Joe wrote: Hello, how do I configure tomcat to log http connections? Currently I have three log files: jasper.log (verbosity level is set to INFORMATION), servlet.log (customOutput set to "yes"), tomcat.log (customOutput set to "yes"). I was expecting to find connection logging messages in the tomcat.log file, but this is not happening. Are you looking for access log messages like a webserver creates? You will need Tomcat 4.0 for that. If not that, what specific kinds of log messages are you looking for? Thanks in advance. -- Jabberwockey [EMAIL PROTECTED] Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Logging connections
Are you looking for access log messages like a webserver creates? You will need Tomcat 4.0 for that Precisely. Thanks! "Craig R. McClanahan" wrote: Joe wrote: Hello, how do I configure tomcat to log http connections? Currently I have three log files: jasper.log (verbosity level is set to INFORMATION), servlet.log (customOutput set to "yes"), tomcat.log (customOutput set to "yes"). I was expecting to find connection logging messages in the tomcat.log file, but this is not happening. Are you looking for access log messages like a webserver creates? You will need Tomcat 4.0 for that. If not that, what specific kinds of log messages are you looking for? Thanks in advance. -- Jabberwockey [EMAIL PROTECTED] Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- Jabberwockey [EMAIL PROTECTED]
Re: JSP's Not reloading
I encountered a similar problem and elected to do coding on a client machine (Windows Professional) with Tomcat stand-alone installed then transfer the files to the production side with Apache and Tomcat on Linux (RH 7) for testing. Neill Laney http://home.nc.rr.com/nlaney -- Actively seeking work as Web Developer/ Technical Support Specialist in Raleigh/Durham/RTP, NC. Resume online at http://home.nc.rr.com/nlaney/nml/resume.html - Original Message - From: "Andreas Sheriff" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 08, 2001 7:54 PM Subject: JSP's Not reloading I finally figured out why my Tomcat 3.2 server isn't reloading my updated JSP files! It turns out that I'm using a NFS mounted file system to access the document root on my file server from the Tomcat server machine, but I'm editing the files directly through the file server instead of through the NFS mount point on the Tomcat server. I also learned that NFS has a cachine problem, where you can change the contents of a shared file one one machine, but the directory date doesn't get updated when doing a ls -l * on another machine. Does anyone know how to disable directory caching of NFS on linux 6.2? Any help would be greatly apreciated. - 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: Servlet and Multiple Instances
I do have a ConnectionPool that is syncronized. I wonder if that is causing the problem. However, there is also some System.out.println(..) statements in the code for debugging purposes. I took all of those statements out today and everything was running quicker. Is the System.out.println(xx) statement syncronized? I think there may be some problems with the Connection Pooling (we are using an Oracle Database). I adapted the code from the book Core Servlets (didn't change too much of the code, if any). Lastly, we did change one of the tomcat options. Can't remember exactly what the option was, but it was turned off by default (we've had other major database problems at work and was pulled into that before I could dig back into this too much). Thank you for your response. --Cam-- Quoting Kitching Simon [EMAIL PROTECTED]: Hi Cam, Servlets don't "have threads". Tomcat as a whole has a pool of threads for serving incoming requests (see the Connector tag in $TOMCAT_HOME/conf/server.xml). Unless you do something unusual, tomcat creates *one* instance of your servlet, and only one. Any *tomcat* request-serving thread which happens to need to run your servlet as part of a request just goes ahead and calls the service method (doGet/doPost) on the single servlet instance. If some other thread is already inside the instance, then the normal synchronization mechanisms are applied - synchronized methods can have only one thread in them, but "normal" methods are just run by the multiple threads in parallel, etc. So, does your servlet declare some critical method to be "synchronized"? If so, this is the reason that multiple client requests can't be served in parallel. If not (and you haven't deliberately turned down the size of the tomcat thread pool to 1), then I cannot think of any other reason for the behaviour you are seeing. As far as I know, there is no standard method of telling any servlet-spec-compliant system to create a "pool" of servlet instances, and run different requests using different instances. There really isn't any point in such a mechanism, because if you've bothered to declare "synchronized" methods on the servlet, that implies that there is data which *needs* to be shared across threads - so a pool of objects would break any code that needs synchronized methods anyway. If you *do* have a major servlet method "synchronized", then you need to think about **why** you declared it like that, and if possible get rid of the declaration (maybe you can just synchronize a smaller block of code?) Cheers, Simon -Original Message- From: Algarve, Leila [SMTP:[EMAIL PROTECTED]] Sent: Monday, January 08, 2001 12:08 PM To: '[EMAIL PROTECTED]' Subject:AW: Servlet and Multiple Instances Check if your servlet class implements SingleThreadModel, in this case one instance of the servlet will be able to handle just one request. Leila -Ursprngliche Nachricht- Von: Cam DeBuck [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 8. Januar 2001 07:12 An: [EMAIL PROTECTED] Betreff: Servlet and Multiple Instances I've written a servlet that is getting hit pretty hard. It works fine when just one user access hit. However, when they are multiple people hitting the servlet, it seems like that it is only serving one person at a time. Is there some confirguration option that I am missing so that it can spawn multiple threads. Any help would be appreciated. Thanks. --Cam-- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] --Cam-- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Can't get past the documentation...
Hi Bill, I've got Tomcat installed (3.2.1 on Solaris x86), but I can't get past the docs for setting it up to work with Apache. The "Minimalistic User's Guide" states that the tomcat-apache.conf file is created each time Tomcat starts. This is true. But the Tomcat-Apache HOWTO suggests making customizations to this file. Why would I do that if it's going to get overwritten every time I start Tomcat? Tomcat configuration is based on server.xml, which defines a lot of things that have to be then defined, mirror-like, over in httpd.conf for apache. So the easy way to get things working is to use the automatically created file tomcat-apache.conf-auto. However, this is not going to work for everyone. For example, my apache modules are not found in the default location. So for me, I need to use my own config file based on a renamed tomcat-apache.conf-auto. The HOWTO suggests using mod_jk instead of mod_jserv, and then goes on to use mod_jserv in all of it's configuration file examples. Which am I supposed to use? The Howto you are talking about is not current. However, some people stll need that jserv info. And if I use mod_jk, how do I construct the config file, since the one Tomcat writes at startup is JServ-centric? No, that's wrong. the conf-auto file output is for mod_jk.so. For that matter, which config file am I supposed to be constructing, since the conf file gets overwritten at startup? I'm lost... You need to follow the directions in the mod_jk howto. The directions assume you know a little about both apache and tomcat standalone configuration first before attempting to connect the two. Regards, Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat process management using ps (Thanks)
Hi Craig, Thanks for the info. I had a hunch something like this was happening, it's nice to get some feedback that I can take to my boss supporting my argument. Cheers Mark Koscak - Original Message - From: Craig R. McClanahan To: [EMAIL PROTECTED] Sent: Tuesday, January 09, 2001 10:58 AM Subject: Re: Tomcat process management using ps Mark Koscak wrote: Hello everyone,I am running Jakarta-Tomcat 3.2When I have a look at my system processes (ps -aux) after starting tomcat, there are eighteen (18) separate process id's the associated command being /usr/locak/jdk1.3 Each process apparently consuming 15.4% of memory. 18 * 15.4% = 277.2%How can this be?Also (ok I'm being lazy on this one) when starting tomcat can I prune the instances of the command /usr/local/jdk1.3 to say 8-10 instead of having 18.Thanks for any input.RegardsMarkThe Linux "ps" command lies to you. It makes individual threads look like they are separate processes. There is only one process (assuming you started only one), all sharing the same memory. Craig McClanahan
Re: is there any tutorial about the installation of tomcat with FreeBSD??
George, Let's assume you have IBM's JDK1.1.8 or some JDK. It's pretty easy. D/L and uncompress into /usr/local: gunzip jakarta-tomcat-3.2.1.tar.gz tar xvf jakarta-tomcat-3.2.1.tar so that you have /usr/local/jakarta-tomcat-3.2.1 to start the tomcat servlet runner: /usr/local/jakarta-tomcat-3.2.1/bin/tomcat.sh start to stop it: usr/local/jakarta-tomcat-3.2.1/bin/tomcat.sh stop Now run netscape or mozilla: mozilla http://localhost:8080/ Done! Regards, Dave - Original Message - From: george To: [EMAIL PROTECTED] Sent: Monday, January 08, 2001 7:44 PM Subject: is there any tutorial about the installation of tomcat with FreeBSD?? is there any tutorial about the installation of tomcat with FreeBSD??
Re: AW: Servlet and Multiple Instances
Thank you. Will check it out. --Cam-- Quoting "Algarve, Leila" [EMAIL PROTECTED]: Check if your servlet class implements SingleThreadModel, in this case one instance of the servlet will be able to handle just one request. Leila -Ursprngliche Nachricht- Von: Cam DeBuck [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 8. Januar 2001 07:12 An: [EMAIL PROTECTED] Betreff: Servlet and Multiple Instances I've written a servlet that is getting hit pretty hard. It works fine when just one user access hit. However, when they are multiple people hitting the servlet, it seems like that it is only serving one person at a time. Is there some confirguration option that I am missing so that it can spawn multiple threads. Any help would be appreciated. Thanks. --Cam-- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] --Cam-- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Hi Need Help
Why I am getting request.getPathInfo() null . I want the absolute path of the URL . Is there any way - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
need help
Why I am getting request.getPathInfo() null . I want the absolute path of the URL . Is there any way - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
new neubie: Defaut servlet directories
Hi, I'm brand new to Tomcat. I'm trying to figure out: 1. Directory for frequently changing servlet classes 2. Directory for infrequently changing servlet classes 3. How to invoke a servlet in the above. I seems that if 1. I put MyServlet.class file in "install_dir/webpages" 2. stop/restart the tomcat server 3. Invoke servlet by http://tomcat-server:8080/servlet/MyServlet it works. Questions: 1. I've looked through the server.xml file and do not see how 'servlet' gets mapped to /webpages. How does it? 2. Assuming that "install_dir/webpages" is the directory for 'frequently changing servlet classes', what is the other 'default' directory'. Thanks, David Rourke Talius - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
converting mod_jserv to mod_jk
I am trying to run multiple tomcat 3.2 servet engines behind 1 single Apache 1.3.14 http server. Using mod_jserv I had the following tomcat-apache.conf file: LoadModule jserv_module libexec/mod_jserv_tomcat.soApJServManual onApJServDefaultProtocol ajpv12ApJServSecretKey DISABLEDApJServMountCopy onApJServLogLevel noticeApJServDefaultHost localhostApJServDefaultPort 8009 ApJServMount /servlet1 ajpv12://localhost:8009/servlet1 ApJServMount /servlet2 ajpv12://localhost:8017/servlet2 ApJServMount /servlet3 ajpv12://localhost:8012/servlet3 ApJServMount /servlet4 ajpv12://localhost:8013/servlet4 In looking at the mod_jk.conf-auto auto file I do not see any directive that specifies a port number. Does anyone have an example that I can try to immitate? Debra Mendelson [EMAIL PROTECTED]
RE: Configuring tomcat and IIS - Nagarajan
Hi, First of all thanks for the reply. I have these entries in the uriworkermap.properties and workermap.properties file. When I call html by giving http://nitind/site/UpdateResumes.htm the following logs are made to isapi.log file. (I know this is a pretty long message and tedious to read, I have gone thru it but could'nt make out something fruitful. Please have a look at it ...) [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /Site/UpdateResumes.htm [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [jk_isapi_plugin.c (452)]: HttpFilterProc [/Site/UpdateResumes.htm] is not a servlet url [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/Site/UpdateResumes.htm] is points to the web-inf directory [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /Site/UpdateResumes.htm [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [jk_isapi_plugin.c (452)]: HttpFilterProc [/Site/UpdateResumes.htm] is not a servlet url [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/Site/UpdateResumes.htm] is points to the web-inf directory I m calling my servlet as form method="POST" action="http://nitind/servlet/Access" thru html file. And when I press submit button in my html these messages get appended to the isapi.log file.. [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /servlet/Access [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp12 [jk_isapi_plugin.c (439)]: HttpFilterProc [/servlet/Access] is a servlet url - should redirect to ajp12 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/servlet/Access] is points to the web-inf directory [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /jakarta/isapi_redirect.dll [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [jk_isapi_plugin.c (452)]: HttpFilterProc [/jakarta/isapi_redirect.dll] is not a servlet url [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/jakarta/isapi_redirect.dll] is points to the web-inf directory [jk_isapi_plugin.c (517)]: HttpExtensionProc started [jk_worker.c (123)]: Into wc_get_worker_for_name ajp12 [jk_worker.c (127)]: wc_get_worker_for_name, done found a worker [jk_isapi_plugin.c (539)]: HttpExtensionProc got a worker for name ajp12 [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service [jk_connect.c (108)]: Into jk_open_socket [jk_connect.c (115)]: jk_open_socket, try to connect socket = 288 [jk_connect.c (124)]: jk_open_socket, after connect ret = 0 [jk_connect.c (132)]: jk_open_socket, set TCP_NODELAY to on [jk_connect.c (140)]: jk_open_socket, return, sd = 288 [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = 288 [jk_ajp12_worker.c (357)]: Into ajpv12_handle_request [jk_ajp12_worker.c (361)]: ajpv12_handle_request, sending the ajp12 start sequence [jk_ajp12_worker.c (413)]: ajpv12_handle_request, sending the headers [jk_ajp12_worker.c (432)]: ajpv12_handle_request, sending the terminating mark [jk_ajp12_worker.c (445)]: ajpv12_handle_request, sending the request body [jk_isapi_plugin.c (283)]: Into jk_ws_service_t::read [jk_ajp12_worker.c (459)]: ajpv12_handle_request, read 27 bytes [jk_ajp12_worker.c (467)]: ajpv12_handle_request, sent 27 bytes [jk_ajp12_worker.c (472)]: ajpv12_handle_request done [jk_ajp12_worker.c (148)]: In jk_endpoint_t::service, sent request [jk_ajp12_worker.c (488)]: Into ajpv12_handle_response [jk_ajp12_worker.c (502)]: ajpv12_handle_response, read Status: 404 Not Found [jk_ajp12_worker.c (530)]: ajpv12_handle_response, read Status=404 Not Found [jk_ajp12_worker.c (502)]: ajpv12_handle_response, read Date: Tue, 09 Jan 2001 06:15:32 GMT [jk_ajp12_worker.c (530)]: ajpv12_handle_response, read Date=Tue, 09 Jan 2001 06:15:32 GMT [jk_ajp12_worker.c (542)]: ajpv12_handle_response, allocating header arrays [jk_ajp12_worker.c (502)]: ajpv12_handle_response, read Status: 404 [jk_ajp12_worker.c (530)]: ajpv12_handle_response, read Status=404 [jk_ajp12_worker.c (502)]: ajpv12_handle_response, read Servlet-Engine: Tomcat Web Server/3.1 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.) [jk_ajp12_worker.c (530)]: ajpv12_handle_response, read Servlet-Engine=Tomcat Web Server/3.1 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.) [jk_ajp12_worker.c (502)]:
automated URL rewriting
I have searched all over the place and see alot about "URL rewriting" here is what I know: you can use A href=%= response.encodeURL("NewPage.jsp") % to force a single link to encode the session if cookies are turned off when cookies are turned off and the above method is used it is easy for a session to be loaned/stolen by just copying the url and IM (Instant Messaging) to a friend who also has cookies turned off the above method of using rewriting is bulky and forces either designers to learn some jsp code or the programmers to replace every link on every page with the above code. My Questions: is there no setting in server.xml that we can set to have all anchors and form actions ending in .jsp rewritten? perhaps to add an extra level of security can we not encrypt the jsessionId with the value of Remote_IP so that it invalidates on a bad decryption? Blake Binkley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Setup of mysql and tomcat
Could anyone point me in the direction of some documents on setting up mysql with tomcat. I will ream them then ask some questions Thanks all [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Setup of mysql and tomcat
Hi, write a servlet that accesses mysql put it in tomcat and make an html page to access the servlet. nitin --- Andrew Burrows [EMAIL PROTECTED] wrote: Could anyone point me in the direction of some documents on setting up mysql with tomcat. I will ream them then ask some questions Thanks all [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Hi
HI Why request.getPathInfo() is giving null . Is there any settings to be done to get the pathInfo Thanks Sudhir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Can't get past the documentation...
Tomcat configuration is based on server.xml, which defines a lot of things that have to be then defined, mirror-like, over in httpd.conf for apache. So the easy way to get things working is to use the automatically created file tomcat-apache.conf-auto. However, this is not going to work for everyone. For example, my apache modules are not found in the default location. So for me, I need to use my own config file based on a renamed tomcat-apache.conf-auto. Okay. I started down that path (making a copy and customizing it), but quickly discovered that the contents of the config file were beyond me. The HOWTO suggests using mod_jk instead of mod_jserv, and then goes on to use mod_jserv in all of it's configuration file examples. Which am I supposed to use? The Howto you are talking about is not current. However, some people stll need that jserv info. The Tomcat-Apache HOWTO is not current? It ships with the source and the binary distributions, it's dated 10-05-2000, and it's not even finished...it refers to itself as "a work in progress". Is there a more current one out there somewhere? And if I use mod_jk, how do I construct the config file, since the one Tomcat writes at startup is JServ-centric? No, that's wrong. the conf-auto file output is for mod_jk.so. Yeah? Here are the first eight lines from the auto-generated config file: LoadModule jserv_module libexec/mod_jserv.so ApJServManual on ApJServDefaultProtocol ajpv12 ApJServSecretKey DISABLED ApJServMountCopy on ApJServLogLevel notice ApJServDefaultPort 8007 Looks an awful lot like JServ. Lot of "ApJServMount" stuff in there, too. In fact, it doesn't mention mod_jk.so anywhere at all. You need to follow the directions in the mod_jk howto. The directions assume you know a little about both apache and tomcat standalone configuration first before attempting to connect the two. Well, I've set up more Apache servers than I care to remember, but this is my first Tomcat attempt. However I did go through the "Minimalist" guide and managed to get it working in stand-alone mode. I guess I'll have to continue to try to find current, relevant documentation. I'll try the mod_jk howto for starters. Thanks for your response. -- Bill Kocik Taos - Santa Clara, CA http://www.taos.com [EMAIL PROTECTED] Quantum Mechanics: The dreams stuff is made of. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Can't get past the documentation...
Blake Binkley Bill, you have just pointed at an Issue I didn't even relize I had (although mine works) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bill Kocik Sent: Monday, January 08, 2001 10:33 PM To: [EMAIL PROTECTED] Subject: Re: Can't get past the documentation... Tomcat configuration is based on server.xml, which defines a lot of things that have to be then defined, mirror-like, over in httpd.conf for apache. So the easy way to get things working is to use the automatically created file tomcat-apache.conf-auto. However, this is not going to work for everyone. For example, my apache modules are not found in the default location. So for me, I need to use my own config file based on a renamed tomcat-apache.conf-auto. Okay. I started down that path (making a copy and customizing it), but quickly discovered that the contents of the config file were beyond me. The HOWTO suggests using mod_jk instead of mod_jserv, and then goes on to use mod_jserv in all of it's configuration file examples. Which am I supposed to use? The Howto you are talking about is not current. However, some people stll need that jserv info. The Tomcat-Apache HOWTO is not current? It ships with the source and the binary distributions, it's dated 10-05-2000, and it's not even finished...it refers to itself as "a work in progress". Is there a more current one out there somewhere? And if I use mod_jk, how do I construct the config file, since the one Tomcat writes at startup is JServ-centric? No, that's wrong. the conf-auto file output is for mod_jk.so. Yeah? Here are the first eight lines from the auto-generated config file: LoadModule jserv_module libexec/mod_jserv.so ApJServManual on ApJServDefaultProtocol ajpv12 ApJServSecretKey DISABLED ApJServMountCopy on ApJServLogLevel notice ApJServDefaultPort 8007 Looks an awful lot like JServ. Lot of "ApJServMount" stuff in there, too. In fact, it doesn't mention mod_jk.so anywhere at all. You need to follow the directions in the mod_jk howto. The directions assume you know a little about both apache and tomcat standalone configuration first before attempting to connect the two. Well, I've set up more Apache servers than I care to remember, but this is my first Tomcat attempt. However I did go through the "Minimalist" guide and managed to get it working in stand-alone mode. I guess I'll have to continue to try to find current, relevant documentation. I'll try the mod_jk howto for starters. Thanks for your response. -- Bill Kocik Taos - Santa Clara, CA http://www.taos.com [EMAIL PROTECTED] Quantum Mechanics: The dreams stuff is made of. - 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: Can't get past the documentation...
also lets get the filename right, mod_jk.conf.auto uses mod_jk.so tomcat-apache.conf.auto uses mod_jserv.so are we confused yet? Blake Binkley -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bill Kocik Sent: Monday, January 08, 2001 10:33 PM To: [EMAIL PROTECTED] Subject: Re: Can't get past the documentation... Tomcat configuration is based on server.xml, which defines a lot of things that have to be then defined, mirror-like, over in httpd.conf for apache. So the easy way to get things working is to use the automatically created file tomcat-apache.conf-auto. However, this is not going to work for everyone. For example, my apache modules are not found in the default location. So for me, I need to use my own config file based on a renamed tomcat-apache.conf-auto. Okay. I started down that path (making a copy and customizing it), but quickly discovered that the contents of the config file were beyond me. The HOWTO suggests using mod_jk instead of mod_jserv, and then goes on to use mod_jserv in all of it's configuration file examples. Which am I supposed to use? The Howto you are talking about is not current. However, some people stll need that jserv info. The Tomcat-Apache HOWTO is not current? It ships with the source and the binary distributions, it's dated 10-05-2000, and it's not even finished...it refers to itself as "a work in progress". Is there a more current one out there somewhere? And if I use mod_jk, how do I construct the config file, since the one Tomcat writes at startup is JServ-centric? No, that's wrong. the conf-auto file output is for mod_jk.so. Yeah? Here are the first eight lines from the auto-generated config file: LoadModule jserv_module libexec/mod_jserv.so ApJServManual on ApJServDefaultProtocol ajpv12 ApJServSecretKey DISABLED ApJServMountCopy on ApJServLogLevel notice ApJServDefaultPort 8007 Looks an awful lot like JServ. Lot of "ApJServMount" stuff in there, too. In fact, it doesn't mention mod_jk.so anywhere at all. You need to follow the directions in the mod_jk howto. The directions assume you know a little about both apache and tomcat standalone configuration first before attempting to connect the two. Well, I've set up more Apache servers than I care to remember, but this is my first Tomcat attempt. However I did go through the "Minimalist" guide and managed to get it working in stand-alone mode. I guess I'll have to continue to try to find current, relevant documentation. I'll try the mod_jk howto for starters. Thanks for your response. -- Bill Kocik Taos - Santa Clara, CA http://www.taos.com [EMAIL PROTECTED] Quantum Mechanics: The dreams stuff is made of. - 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: Can't get past the documentation...
Blake Binkley wrote: also lets get the filename right, mod_jk.conf.auto uses mod_jk.so tomcat-apache.conf.auto uses mod_jserv.so are we confused yet? Hell, I was confused when I got here. :-) But now that you mention that...I wonder if I'm supposed to replace tomcat-apache.conf with mod_jk.conf.auto? -- Bill Kocik Taos - Santa Clara, CA http://www.taos.com [EMAIL PROTECTED] Quantum Mechanics: The dreams stuff is made of. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: automated URL rewriting
See my remarks below: -Ursprngliche Nachricht- Von: Blake Binkley [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 9. Januar 2001 07:17 An: [EMAIL PROTECTED] Betreff: automated URL rewriting snip/ My Questions: is there no setting in server.xml that we can set to have all anchors and form actions ending in .jsp rewritten? Even if it is possible to automagically encode the url's, I wouldn't do it. You would have to parse your output after it is generated and before you really send it to the requesting client. The parsing has to be quite flexible to recognise links to external site and links that don't go back to the server. Links to external sites shouldn't include the session id. (That would open the door to steal the session). There are several ways to code URL's in a way that it is hard to say which site will be the target. Just two examples: 1: base href="some.server.domain"a href="/some/image.gif"/a 2: script someServer = 'someServer'; someFunction() { return someServer + '/some/image.gif'; } /script a href="javasript:someFunction()" You have to prevent the encoding on any link like a href="javasript:history.go(-2) So this leads to quite some effort in development (or organisation, if you try to come around this by enforcing apropriate policies four your web developers) and performance penalties. And I bet: you will never be shure if there isn't a whole anywhere. perhaps to add an extra level of security can we not encrypt the jsessionId with the value of Remote_IP so that it invalidates on a bad decryption? This would be very unfriendly to everybody who is connected to the web with dynamic IP adresses (E.g.: connection through a Call by Call Provider). Depending on the setting you can get several different IP adresses during one session. - 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: Can't get past doc...*SOLVED*
Thanks, Blake, for that subtle nudge, and Dave for your initial response. I guess Blake made me realize that I wasn't being as clear as I thought about what files I was talking about in my initial question, and he also set off a light bulb for me. :-) My answer was in fact to use mod_jk.conf-auto in place of tomcat-apache.conf. I loaded it up, fixed a minor error, reloaded, and it's working. I'm able to execute the supplied examples... Thanks again. -- Bill Kocik Taos - Santa Clara, CA http://www.taos.com [EMAIL PROTECTED] Quantum Mechanics: The dreams stuff is made of. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
ERROR 500!~!
Hi guys, well met this problem while i m going to execute my .jsp files on the tomcat server. It reads as: Error: 500 Location: /Pt33/SampleJSP.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to load class com.borland.samples.welcome.DoWhatUWantBean at org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepository.java:183) at org.apache.jasper.compiler.GetPropertyGenerator.generate(GetPropertyGenerator.java:99) at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(JspParseEventListener.java:730) at org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventListener.java:200) at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseEventListener.java:169) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:183) at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:149) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338) at java.lang.Thread.run(Unknown Source) Root cause: java.lang.ClassNotFoundException: Unable to load class com.borland.samples.welcome.DoWhatUWantBean at org.apache.jasper.runtime.JspLoader.findClass(JspLoader.java:184) at org.apache.jasper.runtime.JspLoader.loadClass(JspLoader.java:136) at java.lang.ClassLoader.loadClass(Unknown Source) at org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepository.java:181) at org.apache.jasper.compiler.GetPropertyGenerator.generate(GetPropertyGenerator.java:99) at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(JspParseEventListener.java:730) at org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventListener.java:200) at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseEventListener.java:169) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:183) at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:149) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338) at java.lang.Thread.run(Unknown Source) well i was wondering if this is a problem of not linking the jdk1.3 to my tomcat server properly or what...thank you guys...awaiting for some enlightenment. Java_nuts _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]