Is it possible to use JNDI in Tomcat 3.2.x
Hi I was trying to use JNDI in Tomcat and I didn't get anywhere. My servlet should connect to EJB that is in another server on different machine. I know that it's possible to use JNDI in Tomcat 4 beta, but there isn't any documentation and I don't have time to experiment. Is there any documentation for using JNDI in Tomcat 3.2.x or 4 beta? Any link? Any sample code? Thanks in advance. Denis Kranjcec
Re: can4t build mod_jk under AIX :-(((
Hi, rainer Wrote: i work on AIX 4.3.3 and with apache 1.13.14 and need zu build a mod_jk but it doesn4t work. i am using java 1.3.0. when i execute the apxs-tool described in the mod_jk-howto the linker reports an error and stops. /usr/local/apache/bin/apxs -o mod_jk.so -I../jk -I/usr/java130/include -c *.c ../jk/*.c it seems the gcc works fine, but then it happens: ld -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -bI:/usr/local/apache/libexec/http d.exp -lc -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 ld: 0711-244 ERROR: No csects or exported symbols have been saved. apxs:Break: Command failed with rc=8 I successfully built mod_jk.so on AIX using the following command: ld -H512 -T512 -bhalt:4 -bM:SRE -bnoentry \ -bI:/usr/local/apache/libexec/httpd.exp \ -bE:mod_jserv.exp -lc -o mod_jserv.so \ autochange.o jserv_ajpv11.o serv_ajpv12.o \ jserv_balance.o jserv_image.o \ jserv_mmap.o jserv_protocols.o \ jserv_status.o jserv_utils.o \jserv_watchdog.o jserv_wrapper.o \ jserv_wrapper_unix.o jserv_wrapper_win.o \ mod_jserv.o I used the file mod_jserv.exp must contain the following text: jserv_module Denis Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: can4t build mod_jk under AIX :-(((
Hi Rainer, We did not use mod_jk.so, Tomcat can use the "older" mod_jserv.so without problem, you'll only be limited by the fact that you can't use the ajpv12 protocol instead of the newer ajpv13 protocol. I tried to compile mod_jk.so but I could not because it seems to use some JNI which uses the IBM headers file, some declaration confuses the GCC compiler in these header files which are targeted to the IBM compiler. You will obtain the source of the mod_jserv.so library with the source of Tomcat 3.1.1. If you apply the "trick" I explained (the small export file you have to manually create), then you will be able to compile it successfully. By the way, did you try to add the -bE:mod_jserv.exp flag to your link command? You should be able to successfully link the library. The file mod_jserv.exp should contain only a name, the name of the library that you are supposed to put in your LoadModule stanza of your apache config file. In my case (mod_jserv) it is jserv_module. The name of the file, evidently, is not relevant, what's important is that it contain the name of the module you're trying to compile. Bye! On Fri, 2 Feb 2001, Palumbo, Mark wrote: Hi Denis, So you used the mod_jserv.so compiled objects and linked them into a mod_jk.so and it works with tomcat(v3.2) and apache(v1.3)? I'm asking because we are also running AIX 4.3 and are currently running apache and tomcat as "standalones" since we don't have the shared load module built, so I'm very curious to understand and re-create what you did! Thank you!! -Mark- -Original Message- From: Denis Benoit [mailto:[EMAIL PROTECTED]] Sent: Friday, February 02, 2001 9:31 AM To: [EMAIL PROTECTED] Subject: Re: can4t build mod_jk under AIX :-((( Hi, rainer Wrote: i work on AIX 4.3.3 and with apache 1.13.14 and need zu build a mod_jk but it doesn4t work. i am using java 1.3.0. when i execute the apxs-tool described in the mod_jk-howto the linker reports an error and stops. /usr/local/apache/bin/apxs -o mod_jk.so -I../jk -I/usr/java130/include -c *.c ../jk/*.c it seems the gcc works fine, but then it happens: ld -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -bI:/usr/local/apache/libexec/http d.exp -lc -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 ld: 0711-244 ERROR: No csects or exported symbols have been saved. apxs:Break: Command failed with rc=8 I successfully built mod_jk.so on AIX using the following command: ld -H512 -T512 -bhalt:4 -bM:SRE -bnoentry \ -bI:/usr/local/apache/libexec/httpd.exp \ -bE:mod_jserv.exp -lc -o mod_jserv.so \ autochange.o jserv_ajpv11.o serv_ajpv12.o \ jserv_balance.o jserv_image.o \ jserv_mmap.o jserv_protocols.o \ jserv_status.o jserv_utils.o \jserv_watchdog.o jserv_wrapper.o \ jserv_wrapper_unix.o jserv_wrapper_win.o \ mod_jserv.o I used the file mod_jserv.exp must contain the following text: jserv_module Denis Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.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] -- Denis Benoit [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Setting UNIX Environment Variables
"O'Daniel, Chris" wrote: I need some UNIX environment variables to be available to my servlets. Using JServ I can add the following lines to the the jserv.properties file: [...] I need to provide the same environment to my servlets running in Tomcat. Does anyone have any suggestions? Please advise. Thanks. I'm running into a similar problem myself. Apparently, the place to set CLASSPATH is in the tomcat.sh script that you use to start stop Tomcat. If there's a better place for it, someone please let me know! I'm having trouble getting LD_LIBRARY_PATH (e.g. java.library.path) set, though. Even though I'm setting it in tomcat.sh, the value I'm setting is not showing up in the JVM when I check java.library.path. So far I can't figure out why. Anyone have any better suggestions? Thanks, dwh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: File Deletion----not working
Gee... where do I start? Does the username this is running under have the proper access to the file and to the direcory it's in? What OS is this? What's the result of f.canRead() or f.canWrite()? What about results of those calls for the parent directory? What does f.delete() return (does it return true, meaning it thinks the file was deleted)? dwh Deepak C S wrote: hi, I am trying to delete a file under filesystem in a bean using: File f=new File(path-to-file); f.delete(); But the File isnt getting deleted...Can anybody help?? thanx 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]
Are there any Tomcat mirror sites?
I'm getting horrendously bad response time from tomcat.apache.org today and am trying to download some packages--the downloads keep failing. None of the tomcat files appear to be part of the regular Apache mirrors. Are there any mirrors out there that have the (current) Tomcat files, particularly the binaries? Particularly, say, builds/jakarta-tomcat/release/v3.2.1/bin/jakarta-tomcat-3.2.1.tar.gz? Much thanks, dwh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Are there any Tomcat mirror sites?
Denis Haskin wrote: I'm getting horrendously bad response time from tomcat.apache.org today and am trying to download some packages--the downloads keep failing. Whoops... that should have been "jakarta.apache.org"... FWIW... dwh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Why the servlet still alive?
Henry DU wrote: I removed the servlet from the directory and removed the servlet mapping from web.xml file, however the servlet was still alive. What is the problem? Restart tomcat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Hi
Sudhir wrote: Why request.getPathInfo() is giving null . Is there any settings to be done to get the pathInfo Well, it's probably returning null because the URI for the request doesn't include any path info. See the servlet spec, pages 28 29 (section 5.4, "Request Path Elements"). dwh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]