Building mod_jk on Solaris - Apache 2 Tomcat 4.0.x
All I'm trying to integrate Apache 2 and Tomcat 4.0.4 on Solaris, JDK 1.3. I've been trying on and off for the past few months. Having given up on building mod_webapp (despite help from the list) I'm now trying to build mod_jk The build-unix.sh script in /jk/native/apache-2.0 doesn't work. The Galatea Flashguide instructions also don't work: buildconf.sh configure --with-apxs=/usr/local/apache2/bin/apxs make make install I've installed half the software GNU has produced :) - autoconf, automake... I've also installed ant. I already had gcc installed. I've tried the various instructions within the Tomcat 3.3 docs - no luck. I've tried jakarta-tomcat-connectors-4.0.4 and jakarta-tomcat-connectors-4.0.2-01 Env variables are all set okay (AFAIK) but all this c stuff is meaningless to me :) Output from make: /bin/sh /usr/local/apache2/build/libtool --silent --mode=install cp `pwd`/mod_jk.so libtool: install: you must specify a destination Try `libtool --help --mode=install' for more information. *** Error code 1 make: Fatal error: Command failed for target `mod_jk.so' Current working directory /export/home/stsejw/update/conns/jk/native/apache-2.0 *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Output from build-unix.sh: /usr/local/apache2/build/libtool --silent --mode=link gcc -o mod_jk.so -rpath /usr/local/apache2/modules -module -avoid-version -I../common -I/usr/local/a pache2/include/apr-util -I/usr/java/include -I/usr/java/include/solaris mod_jk.lo jk_worker.lo jk_util.lo jk_uri_worker_map.lo jk_sockbuf.lo jk_pool.lo jk_nwmain.lo jk_msg_buff.lo jk_md5.lo jk_map.lo jk_lb_worker.lo jk_jni_worker.lo jk_context.lo jk_connect.lo jk_ajp_common.lo jk_ajp14_worker.lo jk_ajp14. lo jk_ajp13_worker.lo jk_ajp13.lo jk_ajp12_worker.lo Undefined first referenced symbol in file socket jk_connect.lo apr_date_parse_http mod_jk.lo ap_os_escape_path mod_jk.lo apr_palloc mod_jk.lo ap_hook_translate_name mod_jk.lo ap_hook_handler mod_jk.lo recvjk_sockbuf.lo ap_rflush mod_jk.lo ap_server_root_relative mod_jk.lo dlclose jk_jni_worker.lo (symbol belongs to implicit dependency /usr/lib/libdl.so.1) apr_table_setn mod_jk.lo apr_pcalloc mod_jk.lo ap_update_mtime mod_jk.lo apr_table_add mod_jk.lo ap_get_server_port mod_jk.lo gethostbyname jk_connect.lo apr_filename_of_pathnamemod_jk.lo apr_pool_cleanup_register mod_jk.lo ap_get_server_version mod_jk.lo apr_pvsprintf mod_jk.lo ap_hook_child_init mod_jk.lo apr_sockaddr_port_get mod_jk.lo sendjk_sockbuf.lo ap_add_common_vars mod_jk.lo apr_pstrdup mod_jk.lo ap_setup_client_block mod_jk.lo setsockopt jk_connect.lo ap_get_server_name mod_jk.lo apr_table_overlay mod_jk.lo ap_getword_conf mod_jk.lo ap_add_version_componentmod_jk.lo apr_table_set mod_jk.lo inet_addr jk_connect.lo apr_table_make mod_jk.lo ap_log_errormod_jk.lo ap_get_client_block mod_jk.lo ap_should_client_block mod_jk.lo ap_content_type_tolower mod_jk.lo ap_get_remote_host mod_jk.lo apr_table_get mod_jk.lo ap_hook_post_config mod_jk.lo dlsym jk_jni_worker.lo (symbol belongs to implicit dependency /usr/lib/libdl.so.1) ap_set_last_modifiedmod_jk.lo dlopen jk_jni_worker.lo (symbol belongs to implicit dependency /usr/lib/libdl.so.1) ap_rwrite mod_jk.lo main /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/crt1.o apr_pstrcat mod_jk.lo apr_psprintfmod_jk.lo dlerror jk_jni_worker.lo (symbol belongs to implicit dependency /usr/lib/libdl.so.1) ap_hook_map_to_storage mod_jk.lo connect jk_connect.lo ld: fatal: Symbol referencing errors. No output written to mod_jk.so collect2: ld returned 1 exit status apxs:Error: Command failed with rc=65536 . Installing mod_jk.so into /usr/local/apache2/libexec cp: cannot access mod_jk.so Done. Install by running ./install-unix.sh Thanks, John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
TomCat 4.0.x and Apache 2
All, Java 1.2 Solaris 8 I'm considering upgrading from Apache 1.x and TomCat 4.0.1, to Apache 2.x and TomCat 4.0.4 There aren't any binaries for the mod_wepApp connector so I'm preparing to compile my own. So far, I've gathered various readme's and websites and searched mail archives. I haven't yet found a coherent and accurate set of instructions! What happened to configure/make/make install? I've got something called apr to install, which requires autoconf and libtool (no idea about these either), which also need installing... Seems like a heck of a lot software just to compile the connector! apr doesn't seem to have a distribution version just snapshots. Is it even possible to get Apache 2 working with TomCat? And what nightmares lay ahead in trying to compile the mod_webApp connector? Thanks, John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: List Down?
...and self aware, Terminator-style. It chooses which messages to send, and which to submit to the ether. It chooses how many copies of a message to send - anything from one to half-a-dozen. It also threatens me on a regular basis with removal from the list because people (who I have no control over) send emails without all the proper fields. Oh yes - it also puts random spaces in the subject field in order to thwart anyone using Outlook's grouping feature. John W. Somerset Maugham. You can't learn too soon that the most useful thing about a principle is that it can always be sacrificed to expediency. Circle (1912) -Original Message- From: Short, Dave [mailto:[EMAIL PROTECTED]] Sent: 09 May 2002 18:26 To: 'Tomcat Users List' Subject: RE: List Down? it's up. -Original Message- From: Anthony W. Marino [mailto:[EMAIL PROTECTED]] Sent: May 09, 2002 10:25 PM To: [EMAIL PROTECTED] Subject: List Down? Testing to see if the list down? I don't see any traffic today. Anthony -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Character encoding problem: strange rash
All, Tomcat 4.0.1 Apache 1.3 WARP Solaris 8 JDK 1.2/1.3 Does anyone know why a servlet would suddenly start displaying non-breaking spaces (#160;) as question marks (?) when the JDK/SDK is upgraded from 1.2 to 1.3? Very odd behaviour! Like a rash - question marks all over the place :) The servlet was written for a version of the Servlet API 2.3, so it doesn't set the character encoding. BUT I don't see how this would have any bearing on the problem, since the JDK has nothing to do with the Servlet API? Thanks, John -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
TomCat crashes using PJA
I'd appreciate comments/ideas on this :) Would changing the JDK help, for example? Looking at the stack trace, it seems that TomCat unravelled thread by thread! I've worked with the servlet developer and researched PJA to find a solution but no joy. As I understand it, it's common to use PJA with servlets? I was thinking that others might have had similar problems but I've not found anything in any archive I've searched. Thanks, John -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: 04 April 2002 17:07 To: Tomcat Users List (E-mail) Subject: TomCat crashes using PJA All, TomCat 4.0.1 Apache 1.3 WARP connector JDK 1.2 [If you read nothing else, look at the stack trace at the end of this mail - pretty bad!] I've had numerous problems trying to get the PJA ToolKit to work with my servlet. I set CATALINA_OPTS: -Dawt.toolkit=com.eteks.awt.PJAToolkit -Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment -Djava.awt.fonts=font directory But I got an error about not finding the com.eteks.java2d.PJAGraphicsEnvironment class. Reading on the Net I came across numerous resources (e.g. the Cocoon install guide), which indicated that I should include this additional option: -Xbootclasspath:/path/to/JDK/jre/lib/rt.jar:path/to/pja.jar When I accessed the part of the my servlet that uses PJA, TomCat crashed BIG style! Any ideas why? What I can try next? I'm out of ideas! Thanks, John From catalina.out: SIGSEGV 11 segmentation violation si_signo [11]: SEGV si_errno [0]: si_code [1]: SEGV_MAPERR [addr: 0x4d0] stackpointer=EAF7D740 Thread-10 (TID:0xf12e90, sys_thread_t:0xf12dc8, state:R, thread_t: t@21, threadID:0xe9ec1d78, stack_bottom:0xe9ec2000, stack_size:0x2) prio=5 [1] java.net.SocketInputStream.socketRead(Native Method) [2] java.net.SocketInputStream.read(SocketInputStream.java:78) [3] java.net.SocketInputStream.read(SocketInputStream.java:95) [4] org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2 32) [5] org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand ler.java:95) [6] org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:18 2) [7] java.lang.Thread.run(Thread.java:472) --- Thread-9 (TID:0xeb79f8, sys_thread_t:0xeb7930, state:R, thread_t: t@20, threadID:0xe9ef1d78, stack_bottom:0xe9ef2000, stack_size:0x2) prio=5 [1] java.net.SocketInputStream.socketRead(Native Method) [2] java.net.SocketInputStream.read(SocketInputStream.java:78) [3] java.net.SocketInputStream.read(SocketInputStream.java:95) [4] org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2 32) [5] org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand ler.java:95) [6] org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:18 2) [7] java.lang.Thread.run(Thread.java:472) --- Thread-8 (TID:0xbf3250, sys_thread_t:0xbf3188, state:R, thread_t: t@19, threadID:0xea071d78, stack_bottom:0xea072000, stack_size:0x2) prio=5 [1] java.net.SocketInputStream.socketRead(Native Method) [2] java.net.SocketInputStream.read(SocketInputStream.java:78) [3] java.net.SocketInputStream.read(SocketInputStream.java:95) [4] org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2 32) [5] org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand ler.java:95) [6] org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:18 2) [7] java.lang.Thread.run(Thread.java:472) --- Thread-7 (TID:0xb84a48, sys_thread_t:0xb84980, state:R, thread_t: t@18, threadID:0xea1f1d78, stack_bottom:0xea1f2000, stack_size:0x2) prio=5 [1] java.net.SocketInputStream.socketRead(Native Method) [2] java.net.SocketInputStream.read(SocketInputStream.java:78) [3] java.net.SocketInputStream.read(SocketInputStream.java:95) [4] org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2 32) [5] org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand ler.java:95) [6] org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:18 2) [7] java.lang.Thread.run(Thread.java:472) --- Thread-6 (TID:0xb46be8, sys_thread_t:0xb46b20, state:R, thread_t: t@17, threadID:0xeaec1d78, stack_bottom:0xeaec2000, stack_size:0x2) prio=5 [1] java.net.SocketInputStream.socketRead(Native Method) [2] java.net.SocketInputStream.read(SocketInputStream.java:78) [3] java.net.SocketInputStream.read(SocketInputStream.java:95) [4] org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2 32) [5] org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand ler.java:95) [6] org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:18 2) [7] java.lang.Thread.run(Thread.java:472) --- Thread-5 (TID:0xb50b70, sys_thread_t:0xb50aa8, state:R, thread_t: t@16, threadID:0xeaf01d78, stack_bottom
TomCat crashes using PJA
All, TomCat 4.0.1 Apache 1.3 WARP connector JDK 1.2 [If you read nothing else, look at the stack trace at the end of this mail - pretty bad!] I've had numerous problems trying to get the PJA ToolKit to work with my servlet. I set CATALINA_OPTS: -Dawt.toolkit=com.eteks.awt.PJAToolkit -Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment -Djava.awt.fonts=font directory But I got an error about not finding the com.eteks.java2d.PJAGraphicsEnvironment class. Reading on the Net I came across numerous resources (e.g. the Cocoon install guide), which indicated that I should include this additional option: -Xbootclasspath:/path/to/JDK/jre/lib/rt.jar:path/to/pja.jar When I accessed the part of the my servlet that uses PJA, TomCat crashed BIG style! Any ideas why? What I can try next? I'm out of ideas! Thanks, John From catalina.out: SIGSEGV 11 segmentation violation si_signo [11]: SEGV si_errno [0]: si_code [1]: SEGV_MAPERR [addr: 0x4d0] stackpointer=EAF7D740 Thread-10 (TID:0xf12e90, sys_thread_t:0xf12dc8, state:R, thread_t: t@21, threadID:0xe9ec1d78, stack_bottom:0xe9ec2000, stack_size:0x2) prio=5 [1] java.net.SocketInputStream.socketRead(Native Method) [2] java.net.SocketInputStream.read(SocketInputStream.java:78) [3] java.net.SocketInputStream.read(SocketInputStream.java:95) [4] org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2 32) [5] org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand ler.java:95) [6] org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:18 2) [7] java.lang.Thread.run(Thread.java:472) --- Thread-9 (TID:0xeb79f8, sys_thread_t:0xeb7930, state:R, thread_t: t@20, threadID:0xe9ef1d78, stack_bottom:0xe9ef2000, stack_size:0x2) prio=5 [1] java.net.SocketInputStream.socketRead(Native Method) [2] java.net.SocketInputStream.read(SocketInputStream.java:78) [3] java.net.SocketInputStream.read(SocketInputStream.java:95) [4] org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2 32) [5] org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand ler.java:95) [6] org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:18 2) [7] java.lang.Thread.run(Thread.java:472) --- Thread-8 (TID:0xbf3250, sys_thread_t:0xbf3188, state:R, thread_t: t@19, threadID:0xea071d78, stack_bottom:0xea072000, stack_size:0x2) prio=5 [1] java.net.SocketInputStream.socketRead(Native Method) [2] java.net.SocketInputStream.read(SocketInputStream.java:78) [3] java.net.SocketInputStream.read(SocketInputStream.java:95) [4] org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2 32) [5] org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand ler.java:95) [6] org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:18 2) [7] java.lang.Thread.run(Thread.java:472) --- Thread-7 (TID:0xb84a48, sys_thread_t:0xb84980, state:R, thread_t: t@18, threadID:0xea1f1d78, stack_bottom:0xea1f2000, stack_size:0x2) prio=5 [1] java.net.SocketInputStream.socketRead(Native Method) [2] java.net.SocketInputStream.read(SocketInputStream.java:78) [3] java.net.SocketInputStream.read(SocketInputStream.java:95) [4] org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2 32) [5] org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand ler.java:95) [6] org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:18 2) [7] java.lang.Thread.run(Thread.java:472) --- Thread-6 (TID:0xb46be8, sys_thread_t:0xb46b20, state:R, thread_t: t@17, threadID:0xeaec1d78, stack_bottom:0xeaec2000, stack_size:0x2) prio=5 [1] java.net.SocketInputStream.socketRead(Native Method) [2] java.net.SocketInputStream.read(SocketInputStream.java:78) [3] java.net.SocketInputStream.read(SocketInputStream.java:95) [4] org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2 32) [5] org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand ler.java:95) [6] org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:18 2) [7] java.lang.Thread.run(Thread.java:472) --- Thread-5 (TID:0xb50b70, sys_thread_t:0xb50aa8, state:R, thread_t: t@16, threadID:0xeaf01d78, stack_bottom:0xeaf02000, stack_size:0x2) prio=5 [1] java.net.SocketInputStream.socketRead(Native Method) [2] java.net.SocketInputStream.read(SocketInputStream.java:78) [3] java.net.SocketInputStream.read(SocketInputStream.java:95) [4] org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2 32) [5] org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand ler.java:95) [6] org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:18 2) [7] java.lang.Thread.run(Thread.java:472) --- Thread-4 (TID:0xb163a8, sys_thread_t:0xb162e0, state:R, thread_t:
TomCat crashes using PJA
All, TomCat 4.0.1 Apache 1.3 WARP connector JDK 1.2 [If you read nothing else, look at the stack trace at the end of this mail - pretty bad!] I've had numerous problems trying to get the PJA ToolKit to work with my servlet. I set CATALINA_OPTS: -Dawt.toolkit=com.eteks.awt.PJAToolkit -Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment -Djava.awt.fonts=font directory But I got an error about not finding the com.eteks.java2d.PJAGraphicsEnvironment class. Reading on the Net I came across numerous resources (e.g. the Cocoon install guide), which indicated that I should include this additional option: -Xbootclasspath:/path/to/JDK/jre/lib/rt.jar:path/to/pja.jar When I accessed the part of the my servlet that uses PJA, TomCat crashed BIG style! Any ideas why? What I can try next? I'm out of ideas! Thanks, John From catalina.out: SIGSEGV 11 segmentation violation si_signo [11]: SEGV si_errno [0]: si_code [1]: SEGV_MAPERR [addr: 0x4d0] stackpointer=EAF7D740 Thread-10 (TID:0xf12e90, sys_thread_t:0xf12dc8, state:R, thread_t: t@21, threadID:0xe9ec1d78, stack_bottom:0xe9ec2000, stack_size:0x2) prio=5 [1] java.net.SocketInputStream.socketRead(Native Method) [2] java.net.SocketInputStream.read(SocketInputStream.java:78) [3] java.net.SocketInputStream.read(SocketInputStream.java:95) [4] org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2 32) [5] org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand ler.java:95) [6] org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:18 2) [7] java.lang.Thread.run(Thread.java:472) --- Thread-9 (TID:0xeb79f8, sys_thread_t:0xeb7930, state:R, thread_t: t@20, threadID:0xe9ef1d78, stack_bottom:0xe9ef2000, stack_size:0x2) prio=5 [1] java.net.SocketInputStream.socketRead(Native Method) [2] java.net.SocketInputStream.read(SocketInputStream.java:78) [3] java.net.SocketInputStream.read(SocketInputStream.java:95) [4] org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2 32) [5] org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand ler.java:95) [6] org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:18 2) [7] java.lang.Thread.run(Thread.java:472) --- Thread-8 (TID:0xbf3250, sys_thread_t:0xbf3188, state:R, thread_t: t@19, threadID:0xea071d78, stack_bottom:0xea072000, stack_size:0x2) prio=5 [1] java.net.SocketInputStream.socketRead(Native Method) [2] java.net.SocketInputStream.read(SocketInputStream.java:78) [3] java.net.SocketInputStream.read(SocketInputStream.java:95) [4] org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2 32) [5] org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand ler.java:95) [6] org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:18 2) [7] java.lang.Thread.run(Thread.java:472) --- Thread-7 (TID:0xb84a48, sys_thread_t:0xb84980, state:R, thread_t: t@18, threadID:0xea1f1d78, stack_bottom:0xea1f2000, stack_size:0x2) prio=5 [1] java.net.SocketInputStream.socketRead(Native Method) [2] java.net.SocketInputStream.read(SocketInputStream.java:78) [3] java.net.SocketInputStream.read(SocketInputStream.java:95) [4] org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2 32) [5] org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand ler.java:95) [6] org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:18 2) [7] java.lang.Thread.run(Thread.java:472) --- Thread-6 (TID:0xb46be8, sys_thread_t:0xb46b20, state:R, thread_t: t@17, threadID:0xeaec1d78, stack_bottom:0xeaec2000, stack_size:0x2) prio=5 [1] java.net.SocketInputStream.socketRead(Native Method) [2] java.net.SocketInputStream.read(SocketInputStream.java:78) [3] java.net.SocketInputStream.read(SocketInputStream.java:95) [4] org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2 32) [5] org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand ler.java:95) [6] org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:18 2) [7] java.lang.Thread.run(Thread.java:472) --- Thread-5 (TID:0xb50b70, sys_thread_t:0xb50aa8, state:R, thread_t: t@16, threadID:0xeaf01d78, stack_bottom:0xeaf02000, stack_size:0x2) prio=5 [1] java.net.SocketInputStream.socketRead(Native Method) [2] java.net.SocketInputStream.read(SocketInputStream.java:78) [3] java.net.SocketInputStream.read(SocketInputStream.java:95) [4] org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2 32) [5] org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand ler.java:95) [6] org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:18 2) [7] java.lang.Thread.run(Thread.java:472) --- Thread-4 (TID:0xb163a8, sys_thread_t:0xb162e0, state:R, thread_t:
Help with ClassLoading
All, Tomcat 4.0.1 Apache 1.3 mod_WebApp Java 1.2 I've got a servlet that uses Eteks PJA ToolKit. I've set CATALINA_OPTS to include the environment variables: -Dawt.toolkit=com.eteks.awt.PJAToolkit -Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment -Djava.awt.fonts=font directory but the servlet catches and reports that the com.eteks.java2d.PJAGraphicsEnvironment class couldn't be found: java.lang.Error: Could not find class: com.eteks.java2d.PJAGraphicsEnvironment The pja jars were originally in WEB-INF/lib. I moved them to common/lib - no change. I still get the exception. Any ideas? Is anyone successfully using the PJA ToolKit? Thanks, John -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
WARP connector and TomCat 4.0.1 - bug?
All, A Servlet I look after uses Eteks PJA ToolKit for fonts. I tried accessing a HTML page generated by the Servlet that uses the fonts: HTTP/1.1 200 OK Date: Wed, 27 Mar 2002 16:39:53 GMT Server: Apache/1.3.22 (Unix) Content-Type: text/html Keep-Alive: timeout=15, max=97 Connection: Keep-Alive, close Transfer-Encoding: chunked, chunked WebApp: Error 500 (File: pr_warp.c Line: 369) Communitcation interrupted A ps -ef revealed that TomCat had stopped. The last thing in catalina.out is a reference to the Servlet not being able to find the fonts: Font specified in font.properties not found [-bh-lucida sans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1] No fonts were found in '/usr/local/tomcat/webapps/dial/WEB-INF/fonts'. The fonts are there, but even if they weren't, TomCat shouldn't just crash! Should it? Odd! There's an extra letter t in communication... Thanks, John -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: WARP connector and TomCat 4.0.1 - bug?
Forgot to mention: Solaris 8 JDK 1.2 Apache 1.3 TomCat 4.0.1 Warp connector Thanks, John -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: 27 March 2002 16:53 To: Tomcat Users List (E-mail) Subject: WARP connector and TomCat 4.0.1 - bug? All, A Servlet I look after uses Eteks PJA ToolKit for fonts. I tried accessing a HTML page generated by the Servlet that uses the fonts: HTTP/1.1 200 OK Date: Wed, 27 Mar 2002 16:39:53 GMT Server: Apache/1.3.22 (Unix) Content-Type: text/html Keep-Alive: timeout=15, max=97 Connection: Keep-Alive, close Transfer-Encoding: chunked, chunked WebApp: Error 500 (File: pr_warp.c Line: 369) Communitcation interrupted A ps -ef revealed that TomCat had stopped. The last thing in catalina.out is a reference to the Servlet not being able to find the fonts: Font specified in font.properties not found [-bh-lucida sans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1] No fonts were found in '/usr/local/tomcat/webapps/dial/WEB-INF/fonts'. The fonts are there, but even if they weren't, TomCat shouldn't just crash! Should it? Odd! There's an extra letter t in communication... Thanks, John -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Web-application not yet deployed
I've only seen this error when: I've tried starting Apache before TomCat TomCat hasn't started - Apache can't communicate with it I've tried starting Apache too soon after starting TomCat Hope it helps! John -Original Message- From: William Crook [mailto:[EMAIL PROTECTED]] Sent: 20 March 2002 20:22 To: Tomcat Users List Subject: Web-application not yet deployed I'm trying to configure tomcat 4.0.3 / apache 1.3 / red hat 7.1 and I'm getting this error when trying to hit /examples/ Here is a snip from my config file: HTTPD.CONF LoadModule webapp_module modules/mod_webapp-1.0-eapi.so AddModule mod_webapp.c VirtualHost * ServerName localhost ErrorLog logs/error_log CustomLog logs/access_log common WebAppConnection conn warp localhost:8180 WebAppDeploy examples conn /examples/ WebAppInfo /web-inf /VirtualHost The error i keep receiving is WebApp: Error 404 (File: wa_request.c Line: 197) Web-application not yet deployed Please HELP!!! Thanks in advance! :bill crook -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
XML curiosities
All, A few XML issues. Firstly, I wrongly put this in server.xml: Valve classname=org.apache.catalina.valves.RemoteAddrValve allow=ip address, ip address / Instead of seeing a SAX parse exception or similar, this appeared in catalina.out: ERROR reading /usr/local/tomcat/conf/server.xml At Line 29 /Server/Service/Engine/Host/Context/Valve/ classname=org.apache.catalina.valves.RemoteAddrValve allow=161.112.*, 194.164.* Catalina.start: java.lang.NullPointerException java.lang.NullPointerException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName0(Compiled Code) at java.lang.Class.forName(Compiled Code) at org.apache.catalina.util.xml.ObjectCreate.start(Compiled Code) at org.apache.catalina.util.xml.XmlMapper.matchStart(Compiled Code) at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91) at org.xml.sax.helpers.XMLReaderAdapter.startElement(Compiled Code) at org.apache.xerces.parsers.SAXParser.startElement(Compiled Code) at org.apache.xerces.validators.common.XMLValidator.callStartElement(Compiled Code) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(Compiled Code) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(Co mpiled Code) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(Compiled Code) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at javax.xml.parsers.SAXParser.parse(SAXParser.java:290) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Compiled Code) at org.apache.catalina.startup.Bootstrap.main(Compiled Code) Is this behaviour correct? It's very misleading - took me a while to work out what was wrong! Secondly, I changed the parser in common/lib to Xerces 2 - the two jar files. I expected TomCat to break, but it worked fine. However, the new parser reported that an XML document wasn't well-formed. I didn't think upgrading a parser would change the status of an XML document from OK to not OK! What gives? Is the latest version of Xerces more strict? Solaris 8 Tomcat 4.0.1 Apache 1.3 mod_webapp 1 Thanks, John -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: XML curiosities
Craig, What was wrong? :) I deliberately didn't say - wanted to see if anyone could spot it. The answer: N! classname v className - just an N! That's why I expected a parse error - classname isn't a valid attribute of an element, but className is. Talk about fussy :) The Xerces parser issue is still getting me. TomCat works fine with v2 but my servlet breaks. The servlet works fine in v1. If I knew why, it would help with changing the xml documents/DTD/entity files that are causing the problem when using Xerces 2 The complexities of XML just drive me nuts - external/internal, general entities, parameter entities... I strongly suspect that the xml is less than valid and well-formed, but I've yet to find anything on xml that answers my questions. The DTD extends (or is meant to) the XHTML Transitional DTD. There are numerous files full of what I think would be termed general entities. The thing that I'm not sure on is if entities can use external entities. I'm also less than sure on the declarations - PUBLIC and SYSTEM and all that. I've invested in the world's thickest book on XML but it's only valuable as a door stop :) The whole application was written ages ago and doesn't exactly conform to commercial standards but it was developed by a (nother) University on a shoestring budget. My University agreed to adopt the system and work with it. I'm looking at all aspects of the system, apart from the code, which is way beyond me :) I stuck my neck out and pushed to use the latest software - e.g. TomCat rather than JServ - even though we didn't know if it would work with anything other than JServ. It did! Just the xml now! Not even sure if it was wise to use xml... John -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: 19 March 2002 20:48 To: Tomcat Users List Subject: Re: XML curiosities On Tue, 19 Mar 2002, John Wadkin wrote: Date: Tue, 19 Mar 2002 17:22:47 - From: John Wadkin [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List (E-mail) [EMAIL PROTECTED] Subject: XML curiosities All, A few XML issues. Firstly, I wrongly put this in server.xml: Valve classname=org.apache.catalina.valves.RemoteAddrValve allow=ip address, ip address / Instead of seeing a SAX parse exception or similar, this appeared in catalina.out: I agree that the error message below is less than helpful, but why did you expect an XML parsing error? It looks like you have valid XML syntax. What was wrong that you finally found and fixed? Craig ERROR reading /usr/local/tomcat/conf/server.xml At Line 29 /Server/Service/Engine/Host/Context/Valve/ classname=org.apache.catalina.valves.RemoteAddrValve allow=161.112.*, 194.164.* Catalina.start: java.lang.NullPointerException java.lang.NullPointerException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName0(Compiled Code) at java.lang.Class.forName(Compiled Code) at org.apache.catalina.util.xml.ObjectCreate.start(Compiled Code) at org.apache.catalina.util.xml.XmlMapper.matchStart(Compiled Code) at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91) at org.xml.sax.helpers.XMLReaderAdapter.startElement(Compiled Code) at org.apache.xerces.parsers.SAXParser.startElement(Compiled Code) at org.apache.xerces.validators.common.XMLValidator.callStartElement(Compiled Code) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(Compiled Code) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(Co mpiled Code) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(Compiled Code) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at javax.xml.parsers.SAXParser.parse(SAXParser.java:290) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Compiled Code) at org.apache.catalina.startup.Bootstrap.main(Compiled Code) Is this behaviour correct? It's very misleading - took me a while to work out what was wrong! Secondly, I changed the parser in common/lib to Xerces 2 - the two jar files. I expected TomCat to break, but it worked fine. However, the new parser reported that an XML document wasn't well-formed. I didn't think upgrading a parser would change the status of an XML document from OK to not OK! What gives? Is the latest version of Xerces more strict? Solaris 8 Tomcat 4.0.1 Apache 1.3 mod_webapp 1 Thanks
RE: XML curiosities
Yes - I know. Wrote the email when I was borderline homicidal maniac after trying to work out why Xerces 2 doesn't like the same documents that Xerces 1 is more than happy with. I'm not thick (not a genius either!) - you don't get 82% on an AI assignment without having a few brain cells - but XML... -Original Message- From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]] Sent: 19 March 2002 22:49 To: Tomcat Users List Subject: RE: XML curiosities The reason xml is so popular is that it is ubiquitous. At 07:33 PM 3/19/02 +, you wrote: Adam, I'm not entirely certain why XML is so popular. XML tools are thin on the ground, as is any decipherable information. The spec's make little sense - borderline gibberish. I've tried making the XML files you refer to more well formed but all I get is more errors! I've tried using references of the nature http://somesite; rather than URI's that are absolute or system dependant - more errors. Does my head in - I'll stick to theoretical physics :) The setup with LUSID (a servlet) is that there are a series of .ent files containing entity reference. Each entity file might also use other entity files. The xml documents that LUSID uses, use the DTD and the entity files. I've not found *anywhere* where it says that this is valid or possible. It does work with Xerces 1 but not 2. Thanks, John -Original Message- From: Dr A.C. Marshall [mailto:[EMAIL PROTECTED]] Sent: 19 March 2002 17:33 To: John Wadkin Cc: Tomcat Users List (E-mail) Subject: Re: XML curiosities Funnily enough (as it always is!) - we've been having problems with a new version of xerces on the WBL project that I supervise. It just keeps coming back with things that arent wrong - for example, it claims an entity isnt defined when it quite plainly is (and the other entities in the same file are OK, and also theres an attempt to load local.ent by uising a relative path not an absolute**. the relative path is something like ../../../../../../../../ents/lusid.ent the parser claims that the file /lusid/uk/ac/liv/pages/test/../../ents/lusid.ent doesnt exist - well I know it doesnt thats why the path is pointing else where - it just seems to ignore the first part of the path. Got no idea at all what is going on - it works fine with abs paths - can the parser be full of bugs? What is the line which is supposed to be causing problems in cqdefs? Adam ** that reminds me the liverpool page tree that I sent had absolute paths to the ents files so they wont be found on your server - sorry! On Tue, 19 Mar 2002, John Wadkin wrote: |All, | |A few XML issues. Firstly, I wrongly put this in server.xml: | |Valve classname=org.apache.catalina.valves.RemoteAddrValve | allow=ip address, ip address / | |Instead of seeing a SAX parse exception or similar, this appeared in |catalina.out: | |ERROR reading /usr/local/tomcat/conf/server.xml |At Line 29 /Server/Service/Engine/Host/Context/Valve/ |classname=org.apache.catalina.valves.RemoteAddrValve allow=161.112.*, |194.164.* | |Catalina.start: java.lang.NullPointerException |java.lang.NullPointerException | at java.lang.Class.forName0(Native Method) | at java.lang.Class.forName0(Compiled Code) | at java.lang.Class.forName(Compiled Code) | at org.apache.catalina.util.xml.ObjectCreate.start(Compiled Code) | at org.apache.catalina.util.xml.XmlMapper.matchStart(Compiled Code) | at |org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91) | at org.xml.sax.helpers.XMLReaderAdapter.startElement(Compiled Code) | at org.apache.xerces.parsers.SAXParser.startElement(Compiled Code) | at |org.apache.xerces.validators.common.XMLValidator.callStartElement(Compiled |Code) | at |org.apache.xerces.framework.XMLDocumentScanner.scanElement(Compiled Code) | at |org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch( C o |mpiled Code) | at org.apache.xerces.framework.XMLDocumentScanner.parseSome(Compiled |Code) | at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081) | at |org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) | at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) | at javax.xml.parsers.SAXParser.parse(SAXParser.java:290) | at |org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228) | at org.apache.catalina.startup.Catalina.start(Catalina.java:725) | at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) | at org.apache.catalina.startup.Catalina.process(Catalina.java:179) | at java.lang.reflect.Method.invoke(Native Method) | at java.lang.reflect.Method.invoke(Compiled Code) | at org.apache.catalina.startup.Bootstrap.main(Compiled Code) | |Is this behaviour correct? It's very misleading - took me a while to work |out what was wrong! | |Secondly, I changed the parser in common/lib to Xerces 2 - the two jar |files
RE: Problems using own XML parser
Rick, Simple question, here comes the complex answer :) I'm a student who's working for my Uni for a year. I'm working on a small project to look at how best to implement a new Government recommendation - that all Higher Education institutions in the UK have some sort of Personal Development Planning (PDP) for students. The project is funded by the Higher Education Funding Council (HEFC - f-ki), so we don't have a lot of cash! Unlike America, education in the UK hasn't yet sold out to the big multinationals (Coca Cola day). This means that instead of using a proper server, I'm having to make do with a workstation - a Sun Ultra 10. I'm no expert on servers, loads, load balancing and all that, but I should imagine that performance will be a problem. In view of this, I'm keen to squeeze as much out of the server as I can. The person who actually wrote the servlet recommends using Aelfred because of it's speed, hence my asking about using a parser other than Xerces. Thanks to Charlie, I checked the bug database - didn't think it would be bug, and it isn't. The bug database mentioned postings on the list about XML parsers, which I've read. From what I can tell (it isn't too clear): 4.0.1 only works with xerces.jar in common/lib - no per-WebApp parser is permitted 4.0.4 will allow per-WebApp parsers so long as it implements something called JAXP - i.e. xerces Looks like the developers have been reading Microsoft's marketing strategy :) I might have it totally wrong - I don't fully understand all the stuff about parsers and classLoaders - nor should I! Thanks, John Quote for the week: The stupid neither forgive nor forget; the naive forgive and forget; the wise forgive but do not forget. Thomas Szasz, The Second Sin (1973) -Original Message- From: Rick K [mailto:[EMAIL PROTECTED]] Sent: 13 March 2002 06:09 To: Tomcat Users List Subject: RE: Problems using own XML parser Maybe you covered this before, but: Why doesn't Xerces meet your needs? I'm not much of an XML expert, I'm just curious. --- John Wadkin [EMAIL PROTECTED] wrote: Charlie, It seems from: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6374 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6628 That webApps *can't* have their own parser. Stuck with Xerces 1, then! Taken a week to find that out :) Thanks, John Quote for the week: The stupid neither forgive nor forget; the naive forgive and forget; the wise forgive but do not forget. Thomas Szasz, The Second Sin (1973) -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent: 12 March 2002 16:27 To: 'Tomcat Users List' Subject: RE: Problems using own XML parser see the archives or bugzilla as this was addressed in 4.0.3 or 4.0.4b1(I don't remember which one) Charlie -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 10:59 AM To: 'Tomcat Users List' Subject: RE: Problems using own XML parser I'm not privy to the workings of the servlet. There's a properties file I edit to indicate the name of the SAX driver: #Xerces sax.driver.name=org.apache.xerces.parsers.SAXParser OR #Aelfred sax.driver.name=com.microstar.xml.SAXDriver Xerces works fine, but Aelfred doesn't. The driver names are correct and as I said, TomCat does load aelfred.jar Yes - I too would like to know if it's possible to use another parser! Thanks, John Quote for the week: The stupid neither forgive nor forget; the naive forgive and forget; the wise forgive but do not forget. Thomas Szasz, The Second Sin (1973) -Original Message- From: Evguenia Krylova [mailto:[EMAIL PROTECTED]] Sent: 12 March 2002 15:52 To: Tomcat Users List Subject: RE: Problems using own XML parser Isn't it that udner Tomcat 4x you can specify class path for a context in server.xml. I saw something like this in the comments portion of server.xml. I have not tried this, but would like to know if you found a way to use another parser with Tomcat. I assume you don't use JAXP API's but call alphred's classes directly. Ev -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 9:31 AM To: Tomcat Users List (E-mail) Subject: RE: Problems using own XML parser All, I'd appreciate a response on this otherwise I'll just have to assume that TomCat allows only xerces.jar as a parser. The jsp errors I mention relate to the default servlet for jsp. I tried commenting out (in conf/web.xml) all references to this servlet - it just created more errors! The docs give the impression that it's a simple case of moving xerces.jar and putting your own parser in /WEB-INF/lib, but this just doesn't work. Thanks, John -Original Message- From
RE: Problems using own XML parser
All, I'd appreciate a response on this otherwise I'll just have to assume that TomCat allows only xerces.jar as a parser. The jsp errors I mention relate to the default servlet for jsp. I tried commenting out (in conf/web.xml) all references to this servlet - it just created more errors! The docs give the impression that it's a simple case of moving xerces.jar and putting your own parser in /WEB-INF/lib, but this just doesn't work. Thanks, John -Original Message- From: John Wadkin Sent: 09 March 2002 03:04 To: Tomcat Users List (E-mail) Subject: Problems using own XML parser All, Tomcat 4.0.1 Apache 1.3 mod_WebApp Solaris 8 I'm trying to use the aelfred parser in a servlet. I've read the docs on class loaders and XML but no luck so far. I moved xerces.jar from common/lib to server/lib and re-started TomCat. A couple of errors appeared in catalina.out relating to the default servlet for jsp's. So I put xerces.jar back in common/lib. I put the aelfred.jar in my web app's WEB-INF/lib directory and re-started TomCat. I expected errors relating to the fact that two XML parsers existed - there weren't any. The logs show that aelfred.jar has loaded but the servlet throws a ClassNotFoundException. Any ideas? The servlet does work with Aelfred at another site and it works fine with the xerces parser in common/lib. The reason I'm trying to use Aelfred is that I'm told it's faster than Xerces. Is this a fair comment? Thanks, John -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Problems using own XML parser
I'm not privy to the workings of the servlet. There's a properties file I edit to indicate the name of the SAX driver: #Xerces sax.driver.name=org.apache.xerces.parsers.SAXParser OR #Aelfred sax.driver.name=com.microstar.xml.SAXDriver Xerces works fine, but Aelfred doesn't. The driver names are correct and as I said, TomCat does load aelfred.jar Yes - I too would like to know if it's possible to use another parser! Thanks, John Quote for the week: The stupid neither forgive nor forget; the naive forgive and forget; the wise forgive but do not forget. Thomas Szasz, The Second Sin (1973) -Original Message- From: Evguenia Krylova [mailto:[EMAIL PROTECTED]] Sent: 12 March 2002 15:52 To: Tomcat Users List Subject: RE: Problems using own XML parser Isn't it that udner Tomcat 4x you can specify class path for a context in server.xml. I saw something like this in the comments portion of server.xml. I have not tried this, but would like to know if you found a way to use another parser with Tomcat. I assume you don't use JAXP API's but call alphred's classes directly. Ev -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 9:31 AM To: Tomcat Users List (E-mail) Subject: RE: Problems using own XML parser All, I'd appreciate a response on this otherwise I'll just have to assume that TomCat allows only xerces.jar as a parser. The jsp errors I mention relate to the default servlet for jsp. I tried commenting out (in conf/web.xml) all references to this servlet - it just created more errors! The docs give the impression that it's a simple case of moving xerces.jar and putting your own parser in /WEB-INF/lib, but this just doesn't work. Thanks, John -Original Message- From: John Wadkin Sent: 09 March 2002 03:04 To: Tomcat Users List (E-mail) Subject: Problems using own XML parser All, Tomcat 4.0.1 Apache 1.3 mod_WebApp Solaris 8 I'm trying to use the aelfred parser in a servlet. I've read the docs on class loaders and XML but no luck so far. I moved xerces.jar from common/lib to server/lib and re-started TomCat. A couple of errors appeared in catalina.out relating to the default servlet for jsp's. So I put xerces.jar back in common/lib. I put the aelfred.jar in my web app's WEB-INF/lib directory and re-started TomCat. I expected errors relating to the fact that two XML parsers existed - there weren't any. The logs show that aelfred.jar has loaded but the servlet throws a ClassNotFoundException. Any ideas? The servlet does work with Aelfred at another site and it works fine with the xerces parser in common/lib. The reason I'm trying to use Aelfred is that I'm told it's faster than Xerces. Is this a fair comment? Thanks, John -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Problems using own XML parser
Charlie, It seems from: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6374 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6628 That webApps *can't* have their own parser. Stuck with Xerces 1, then! Taken a week to find that out :) Thanks, John Quote for the week: The stupid neither forgive nor forget; the naive forgive and forget; the wise forgive but do not forget. Thomas Szasz, The Second Sin (1973) -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent: 12 March 2002 16:27 To: 'Tomcat Users List' Subject: RE: Problems using own XML parser see the archives or bugzilla as this was addressed in 4.0.3 or 4.0.4b1(I don't remember which one) Charlie -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 10:59 AM To: 'Tomcat Users List' Subject: RE: Problems using own XML parser I'm not privy to the workings of the servlet. There's a properties file I edit to indicate the name of the SAX driver: #Xerces sax.driver.name=org.apache.xerces.parsers.SAXParser OR #Aelfred sax.driver.name=com.microstar.xml.SAXDriver Xerces works fine, but Aelfred doesn't. The driver names are correct and as I said, TomCat does load aelfred.jar Yes - I too would like to know if it's possible to use another parser! Thanks, John Quote for the week: The stupid neither forgive nor forget; the naive forgive and forget; the wise forgive but do not forget. Thomas Szasz, The Second Sin (1973) -Original Message- From: Evguenia Krylova [mailto:[EMAIL PROTECTED]] Sent: 12 March 2002 15:52 To: Tomcat Users List Subject: RE: Problems using own XML parser Isn't it that udner Tomcat 4x you can specify class path for a context in server.xml. I saw something like this in the comments portion of server.xml. I have not tried this, but would like to know if you found a way to use another parser with Tomcat. I assume you don't use JAXP API's but call alphred's classes directly. Ev -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 9:31 AM To: Tomcat Users List (E-mail) Subject: RE: Problems using own XML parser All, I'd appreciate a response on this otherwise I'll just have to assume that TomCat allows only xerces.jar as a parser. The jsp errors I mention relate to the default servlet for jsp. I tried commenting out (in conf/web.xml) all references to this servlet - it just created more errors! The docs give the impression that it's a simple case of moving xerces.jar and putting your own parser in /WEB-INF/lib, but this just doesn't work. Thanks, John -Original Message- From: John Wadkin Sent: 09 March 2002 03:04 To: Tomcat Users List (E-mail) Subject: Problems using own XML parser All, Tomcat 4.0.1 Apache 1.3 mod_WebApp Solaris 8 I'm trying to use the aelfred parser in a servlet. I've read the docs on class loaders and XML but no luck so far. I moved xerces.jar from common/lib to server/lib and re-started TomCat. A couple of errors appeared in catalina.out relating to the default servlet for jsp's. So I put xerces.jar back in common/lib. I put the aelfred.jar in my web app's WEB-INF/lib directory and re-started TomCat. I expected errors relating to the fact that two XML parsers existed - there weren't any. The logs show that aelfred.jar has loaded but the servlet throws a ClassNotFoundException. Any ideas? The servlet does work with Aelfred at another site and it works fine with the xerces parser in common/lib. The reason I'm trying to use Aelfred is that I'm told it's faster than Xerces. Is this a fair comment? Thanks, John -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat changing file ownership
Ted, If I understand your question correctly, you want to find a way to alter the default file permissions for the TomCat user? The only thing I can think of is umask, which sets the default permissions. In Solaris (C shell): umask 000 Sets (I think!) read and write for all (user, group, other) on files, and full permissions on directories. Try putting the command in catalina.sh or the tomcat user's login script. Thanks, John Quote for the week: The stupid neither forgive nor forget; the naive forgive and forget; the wise forgive but do not forget. Thomas Szasz, The Second Sin (1973) -Original Message- From: Edward Haynes [mailto:[EMAIL PROTECTED]] Sent: 11 March 2002 14:07 To: tomcat-user Subject: Tomcat changing file ownership I am running tomcat 4.0.3 rpm on Redhat Linux 7.1. Every so often, tomcat updates all the files in its folder structure (/var/tomcat4/) to be owned by the tomcat user and readonly for everyone else. The problem being that when I want to modify/overwrite anyone of these files, I have to go into the linux server and chmod for every file/folder. This happens all day long. Is there a way to turn this off? Thanks, Ted -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat changing file ownership
Good question! I guess it would depend on what tomCat's doing with the files. Reading a file shouldn't change the ownership, and yes, so long as the TomCat user has read/write access, it shouldn't need to own the files. Unix, eh? Thanks, John Quote for the week: The stupid neither forgive nor forget; the naive forgive and forget; the wise forgive but do not forget. Thomas Szasz, The Second Sin (1973) -Original Message- From: Edward Haynes [mailto:[EMAIL PROTECTED]] Sent: 11 March 2002 14:52 To: 'Tomcat Users List' Subject: RE: Tomcat changing file ownership Thanks. That will definitely solve the problem, but why does tomcat change the files to its ownership? As long as it can read the files, I wouldn't think tomcat would need to own the files to run them? Ted -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002 9:42 AM To: 'Tomcat Users List' Subject: RE: Tomcat changing file ownership Ted, If I understand your question correctly, you want to find a way to alter the default file permissions for the TomCat user? The only thing I can think of is umask, which sets the default permissions. In Solaris (C shell): umask 000 Sets (I think!) read and write for all (user, group, other) on files, and full permissions on directories. Try putting the command in catalina.sh or the tomcat user's login script. Thanks, John Quote for the week: The stupid neither forgive nor forget; the naive forgive and forget; the wise forgive but do not forget. Thomas Szasz, The Second Sin (1973) -Original Message- From: Edward Haynes [mailto:[EMAIL PROTECTED]] Sent: 11 March 2002 14:07 To: tomcat-user Subject: Tomcat changing file ownership I am running tomcat 4.0.3 rpm on Redhat Linux 7.1. Every so often, tomcat updates all the files in its folder structure (/var/tomcat4/) to be owned by the tomcat user and readonly for everyone else. The problem being that when I want to modify/overwrite anyone of these files, I have to go into the linux server and chmod for every file/folder. This happens all day long. Is there a way to turn this off? Thanks, Ted -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: AW: How to Unsubscribe?
Just a thought.. The mail thingy had a go at me when an email from the list to my email account bounced. It threatened to withdraw me from the list if further mails bounced and a probe was unsuccessful. If you can re-configure your mail server to reject TC emails or take your account off-line for a day or two (!), then the mail thingy might just remove you. A bit drastic I know :) Thanks, John Quote for the week: The stupid neither forgive nor forget; the naive forgive and forget; the wise forgive but do not forget. Thomas Szasz, The Second Sin (1973) -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: 11 March 2002 17:39 To: Tomcat Users List Subject: AW: AW: How to Unsubscribe? Hey, he was asking for the maintainer, as the receiver you provided didn't work for him. -Ursprüngliche Nachricht- Von: Darren Foltinek [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 11. März 2002 18:27 An: Tomcat Users List Betreff: Re: AW: How to Unsubscribe? Actually, it's this, from the original welcome email: Does anyone actually moderate this list or have the power to remove people from the list? Or is it completely automated? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Problems using own XML parser
All, Tomcat 4.0.1 Apache 1.3 mod_WebApp Solaris 8 I'm trying to use the aelfred parser in a servlet. I've read the docs on class loaders and XML but no luck so far. I moved xerces.jar from common/lib to server/lib and re-started TomCat. A couple of errors appeared in catalina.out relating to the default servlet for jsp's. So I put xerces.jar back in common/lib. I put the aelfred.jar in my web app's WEB-INF/lib directory and re-started TomCat. I expected errors relating to the fact that two XML parsers existed - there weren't any. The logs show that aelfred.jar has loaded but the servlet throws a ClassNotFoundException. Any ideas? The servlet does work with Aelfred at another site and it works fine with the xerces parser in common/lib. The reason I'm trying to use Aelfred is that I'm told it's faster than Xerces. Is this a fair comment? Thanks, John -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Problems with SendMailServlet
I came across the same problem and worked out why - miracle :) Despite having all the correct jars and setting the classpath properly, the servlet wouldn't compile. I downloaded the .class from one of the tomcat zips that did have it. That didn't work - weird error about the date. I downloaded the entire examples directory from the afore-mentioned tomcat zip. That didn't work - the Java Mail API doesn't like the mail server. Nowt wrong with the mail server - works fine. I gave it up as a bad job :) Thanks, John Quote for the week: It's not that I'm afraid to die. I just don't want to be there when it happens. Woody Allen, Death (1975), p.53 -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: 06 March 2002 13:17 To: 'Tomcat Users List' Subject: RE: Problems with SendMailServlet You will need to compile the SendMailServlet yourself for Tomcat versions 4 through 4.0.3. There was apparently a problem with the build script that has been resolved with Tomcat 4.0.4 B1. Randy -Original Message- From: Gustavo Souza [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 8:49 AM To: Tomcat Users List Subject: Problems with SendMailServlet hello, i installed Jacarta Tomcat v4.0.3 binaries on a linux slackware v8.0 box with J2SDK1.3.1 from blackdown (i tried with J2SDK1.4.0 from sun too ) i run it with default configurations and open it on my browser. All examples worked fine with one exeption: the send mail example. when i try to send an email with jsp example, i got this error: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: Wrapper cannot find servlet class SendMailServlet or a class it depends on at org.apache.catalina.core.StandardWrapper.loadServlet(StandardW rapper.java:871) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrap per.java:653) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.java:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:566) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut henticatorBase.java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContex t.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv e.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEn gineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpP rocessor.java:1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProce ssor.java:1107) at java.lang.Thread.run(Thread.java:484) root cause java.lang.ClassNotFoundException: SendMailServlet at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC lassLoader.java:1394) at
RE: file creation
#!/sbin/sh # case $1 in start) echo Starting TomCat 4... su - nocat -c /usr/local/tomcat/bin/startup.sh sleep 10 /usr/local/apache/bin/apachectl start ;; restart) ;; stop) /usr/local/apache/bin/apachectl stop echo Stoping TomCat 4... su - nocat -c /usr/local/tomcat/bin/shutdown.sh sleep 10 ;; *) echo Usage: $0 {start|stop|restart} exit 1 ;; esac Thanks, John Quote for the week: It's not that I'm afraid to die. I just don't want to be there when it happens. Woody Allen, Death (1975), p.53 -Original Message- From: chad kellerman [mailto:[EMAIL PROTECTED]] Sent: 05 March 2002 14:06 To: Tomcat Users List Subject: file creation Hello everyone, I am using Apache 1.3.23 with tomcat 4.0.1 woth the web_app module. I have configured tomcat to work with Virtual Hosts. All jsp pages and serverlets operate correctly, and everything is running smoothly except one thing. I downloaded a evalutaion copy of jive forum from http://www.jivesoftware.com just to do some testing ( jsp, jdbc, and servlets) Everything runs great and looks great but one thing. Any files that that it creates has the uid and gid of root. Root being who started and running tomcat. How can I set suexec for tomcat? And how can I change the user the Tomcat is running as? For example, have it run as the user tomcat. Thanks for all the help, -chad -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat x Apache
Your interpretation of the problem seems accurate. catalina.out and apache's error log should tell you more. Does engine in Service name=Tomcat_Apache in server.xml have a host nested within it and the examples context defined within the host? John -Original Message- From: Cleber Hostalácio de Melo [mailto:[EMAIL PROTECTED]] Sent: 27 February 2002 16:25 To: [EMAIL PROTECTED] Subject: Tomcat x Apache Hi, I have linux (kernel 2.4.5), apache 1.3.19 and Tomacat 4.0.2 Tomcat are working well with the url: http://Myserv:tomcat_port/examples/jsp/index.html But when I try to access this application from Apache with the URL: http://Myserv/examples/jsp/index.html I receive the message in my browser: Forbidden You don't have permission to access /examples/jsp/index.html on this server. The corresponding entries in the Apache logs are: httpd/logs/access.log: GET /examples/jsp/index.html HTTP/1.0 403 301 httpd/logs/error.log: [error] [client xxx.xxx.xxx.x] (2)No such file or directory: cannot read directory for multi: /examples/jsp/ There is no entry in the Tomcat logs which looks like that Apache is not even trying to connect to Tomcat. My configuration files are: httpd.com . ServerName myServer ServerType standalone ServerRoot /etc/httpd .. LoadModule LoadModule webapp_module libexec/mod_webapp-1.0-eapi.so .. AddModule AddModule mod_webapp.c .. DocumentRoot /home/myDocs .. WebAppConnection Tomcat_Apache warp localhost:8008 WebAppDeploy examples Tomcat_Apache /examples/ server.xml . Service name=Tomcat_Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0/ !-- Replace localhost with what your Apache ServerName is set to -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=localhost debug=0 appBase=webapps . /Engine /Service Anyone has any idea what could be the problem? Thanks. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Servlet POST results in 404 error
All, TomCat 4.0.1 Apache 1.3 mod_WebApp Solaris 8 I have a servlet that returns a 404 error whenever a POST is sent. GET works fine. The servlet uses sessions - not sure if this has anything to do with it. My server.xml just defines a context and a logger. The web.xml has a servlet name and mapping, nothing more. The servlet was originally written for JServ - could this have something to do with it? There's nothing in the logs. I'm not a servlet programmer so I have no ideas! Any suggestions?? Thanks, John -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Servlet POST results in 404 error
I'd appreciate a response on this! I've spent time searching the Net but haven't turned up anything useful. I don't think I've misconfigured anything in my server.xml or web.xml... It's just the POST method that doesn't work - no idea why! Suggestions please!! Thanks, John -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: 26 February 2002 16:11 To: Tomcat Users List (E-mail) Subject: Servlet POST results in 404 error All, TomCat 4.0.1 Apache 1.3 mod_WebApp Solaris 8 I have a servlet that returns a 404 error whenever a POST is sent. GET works fine. The servlet uses sessions - not sure if this has anything to do with it. My server.xml just defines a context and a logger. The web.xml has a servlet name and mapping, nothing more. The servlet was originally written for JServ - could this have something to do with it? There's nothing in the logs. I'm not a servlet programmer so I have no ideas! Any suggestions?? Thanks, John -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Servlet POST results in 404 error
The servlet is an application that has numerous modes. If I want to create a new user of the app, I type the URL: servername/webapp/servletname?mode=19 I enter all the details of the new user, and the servlet posts this info - a get would show password details in the URL. It then creates a page: servername/webapp/servletname/stringofnumbers Informing me of the outcome of the attempt to create a new user - i.e. success or failure. At this point it fails with a 404. The logs give exactly the same info. I've checked everything I can think of and changed the DocumentRoot in Apache to the webapps/webappname directory. No joy! As I see it there are two possibilities: I've misconfigured TC and/or Apache - but how? The servlet implements or does something that is no longer supported in TomCat and/or the latest servlet API. I'm at a loss! Thanks, John -Original Message- From: Ken Martin [mailto:[EMAIL PROTECTED]] Sent: 26 February 2002 19:08 To: Tomcat Users List Subject: Re: Servlet POST results in 404 error On Tuesday, February 26, 2002, at 12:25 PM, John Wadkin wrote: I'd give you the URL but I'd have to give passwords and stuff... It goes like this: servername/webapp/servletname/stringofnumbers I had some JSP pages that worked on Netscape but not Tomcat. It turned out that Tomcat wanted to see a = separating the name=value pairs. From your example above, it looks like you're just trying to pass some numbers so you don't actually need the = (informationally), but Tomcat does to pass it on through the request. Simply adding the = fixed it for me. Now, sometimes I'll add a label as the value, like: thedata=a_label, which is a visual convenience but ignored by the backend. Just my experience. Ken Martin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Servlet POST results in 404 error
Marvellous - spot on Randy. I'd just used servletname/ as the mapping. No idea why. Obvious now that it won't work. I guess I'll have to lay off the aluminium pans :) -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: 26 February 2002 18:59 To: 'Tomcat Users List' Subject: RE: Servlet POST results in 404 error It sounds like the servlet is trying to use PathInfo (extra characters beyond the real servlet's name for parameters). In your web.xml you probably want to make your URL mapping something like /servletname/* so that every URL that starts with servletname is called for that servlet. Randy -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 2:44 PM To: 'Tomcat Users List' Subject: RE: Servlet POST results in 404 error The servlet is an application that has numerous modes. If I want to create a new user of the app, I type the URL: servername/webapp/servletname?mode=19 I enter all the details of the new user, and the servlet posts this info - a get would show password details in the URL. It then creates a page: servername/webapp/servletname/stringofnumbers Informing me of the outcome of the attempt to create a new user - i.e. success or failure. At this point it fails with a 404. The logs give exactly the same info. I've checked everything I can think of and changed the DocumentRoot in Apache to the webapps/webappname directory. No joy! As I see it there are two possibilities: I've misconfigured TC and/or Apache - but how? The servlet implements or does something that is no longer supported in TomCat and/or the latest servlet API. I'm at a loss! Thanks, John -Original Message- From: Ken Martin [mailto:[EMAIL PROTECTED]] Sent: 26 February 2002 19:08 To: Tomcat Users List Subject: Re: Servlet POST results in 404 error On Tuesday, February 26, 2002, at 12:25 PM, John Wadkin wrote: I'd give you the URL but I'd have to give passwords and stuff... It goes like this: servername/webapp/servletname/stringofnumbers I had some JSP pages that worked on Netscape but not Tomcat. It turned out that Tomcat wanted to see a = separating the name=value pairs. From your example above, it looks like you're just trying to pass some numbers so you don't actually need the = (informationally), but Tomcat does to pass it on through the request. Simply adding the = fixed it for me. Now, sometimes I'll add a label as the value, like: thedata=a_label, which is a visual convenience but ignored by the backend. Just my experience. Ken Martin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Servlet POST results in 404 error
keith, Yeah - Randy Layman solved it. The servlet mapping was setup to servletname/ instead of servletname/* The answer's obvious now! Whenever the servlet created a URL like: /servletname/stringofnumbers It stopped working cos that particular URL pattern wasn't mapped. It just so happens that this only occurs when the servlet uses doPost, hence me thinking it was a POST problem! Re showing you the post method - I'd have trouble finding it :) The servlet is incredibly complex - loads of classes. I'm a pretty naff Java programmer, which doesn't help! I've only seen parts of the code - frightening stuff! The servlet is an electronic Personal Development Planning (PDP) tool called LUSID. It allows the user to record experiences and achievements, perform skills audits, and plan goals and activities. Pages are create in an XML language (lusidml) which the servlet then parses. Everything's stored in an Oracle database. It's a bit rough around the edges and the interface is pretty poor from a HCI perspective but otherwise it's pretty good. Thanks, John -Original Message- From: Keith Ng [mailto:[EMAIL PROTECTED]] Sent: 02 March 2002 20:22 To: Tomcat Users List Subject: RE: Servlet POST results in 404 error Hi John, have u solved it already? someone here said that u might not have define yr post method would u care to show us yr post mthod?(whole defination) pls do the following. add a System.out.println(post method invoked); under your post method implemention for us to see. Is tat post method even invoked? -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 12:11 AM To: Tomcat Users List (E-mail) Subject: Servlet POST results in 404 error All, TomCat 4.0.1 Apache 1.3 mod_WebApp Solaris 8 I have a servlet that returns a 404 error whenever a POST is sent. GET works fine. The servlet uses sessions - not sure if this has anything to do with it. My server.xml just defines a context and a logger. The web.xml has a servlet name and mapping, nothing more. The servlet was originally written for JServ - could this have something to do with it? There's nothing in the logs. I'm not a servlet programmer so I have no ideas! Any suggestions?? Thanks, John -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
TomCat 4 and XML parsers
Just discovered (by chance) that the on-line docs are missing this bit from the class-loader howto... This is the sort of info I wanted a while ago - I thought that the on-line docs contained the latest info?? == TomCat 4 and XML parsers Tomcat 4 itself utilizes XML parsing for three processing activities: Parsing the server.xml configuration file Parsing web.xml deployment descriptors Parsing JSP pages in XML syntax By default, the Java API for XML Processing (Version 1.1) reference implementation is utilized for all of these purposes. However, this parser is not visible to web applications -- instead, the XML parser stored in $CATALINA_HOME/server/lib is used for parsing web.xml and server.xml files, while the parser stored in $CATALINA_HOME/jasper is used for parsing JSP pages in XML syntax. To make an XML parser available to your web applications, you have several options: To utilize an XML parser in a single web application, simply include the parser's JAR files in the /WEB-INF/web.xml directory of that web application. This will work, no matter what parser might be used by Tomcat 4 internally, or by other web applications running in the same instance of Tomcat 4. If you wish to make the JAXP/1.1 reference implementation parser available to all web applications, simply move the jaxp.jar and crimson.jar files from the $CATALINA_HOME/jasper directory into the $CATALINA_HOME/lib directory. Jasper will continue to use this parser for processing JSP pages in XML syntax. If you wish to make another XML parser that is JAXP/1.1 compatible (such as Xerces 1.3.1 or later), install that parser's JAR files into the $CATALINA_HOME/lib directory, and remove jaxp.jar and crimson.jar from the $CATALINA_HOME/jasper directory. Jasper will then utilize the new XML parser as well. WARNING - Do not attempt to use a JAXP/1.0 (rather than JAXP/1.1) compliant parser with Tomcat 4. Tomcat relies on the extra features that were added in JAXP/1.1 to perform its parsing activities. WARNING - The final release of the JAXP/1.1 reference implementation includes JAR files with the sealed attribute. This causes class loading problems (most commonly visible through package sealing violation exceptions) on JDK 1.3 and later platforms. To avoid these problems, modified versions of jaxp.jar and crimson.jar are shipped with Tomcat 4. You must NOT replace these files with standard JAXP/1.1 JAR files, until a subsequent JAXP release occurs that has the sealed attribute removed. = It: a) seems to conflict with user experiences b) doesn't really tell me if I can remove xerces.jar and replace it with: i) a more up-to-date version of xerces - i.e. 2 ii) a different parser such as Aelfred Thanks, John -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: TomCat 4 and XML parsers
Er, none of the documentation on parsers make sense! The only parser I can find is in common/lib *not* server/lib. This means that (if the docs on class loading are correct) the XML parser xerces.jar is visible to TC and all Web Apps, which might cause problems if you where to use a parser in a Web App. I guess the solution would be to move xerces.jar (the parser) to server/lib and install my parser in either /lib or the lib directory of my webapp? Try it and see I guess :) The parser docs also refer to a jasper directory which also doesn't exist! Thanks, John -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat + Solaris = ??
If I log in as root and start TomCat, then TomCat's user will be root. Ditto if I log in as fred or bert. If, for example, root owns all TC files (i.e. everything under TomCatHome) then you will run into problems trying to run TC as anybody other than root. Change the ownership of TomCat to the user that it will run as. On my system, TC runs as nocat on boot. The same user owns all TC files. No world write permissions are needed. ps -ef | grep java will tell you who TC is running as: nocat 251 1 0 Feb 14 ?0:11 /usr/java/bin/../jre/bin/../bin/sparc/native_threads/java -Xms64M -Xmx256M -cla John -Original Message- From: Scott Shorter [mailto:[EMAIL PROTECTED]] Sent: 20 February 2002 14:55 To: TomcatUserList Subject: Tomcat + Solaris = ?? Hi all, I've searched the archives and found questions on this topic, but few answers. I've developed a web app using Tomcat 4.0.1 on my Win2K box (with no other web server), and the time has come to port it to Solaris. There seem to be issues of processes and permissions regarding this. I am having basically the same problem as http://www.apachelabs.org/tomcat-user/29.mbox/%3C39D1F701.BF277F08@s pinweb.net%3E and I was able to get around that one by setting the permissions a+w for all relevant subdirectories of tomcat/work/localhost/. There must be a better way, though. How can I determine what user tomcat runs as? Does the same user compile jsps? How can this be configured? Thanks in advance for any assistance. Regards, Scott -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Manager options...
Works fine on my Solaris 8, TC 4.0.1, Apache 1.3 system. httpd.conf: WebAppConnection warpConnection warp servername:8008 WebAppDeploy manager warpConnection /manager server.xml !-- Tomcat Manager Context -- Context path=/manager docBase=manager debug=0 privileged=true/ One point - the context is in the host I defined under the Service name=Tomcat-Apache Thanks, John -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent: 20 February 2002 15:34 To: 'Tomcat Users List' Subject: RE: Manager options... you should probably file a bug report as it appears to be a problem with manager through the connector as opposed to something with just the manager app. This way one of the developers is sure to look at it. Charlie -Original Message- From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 10:22 AM To: Tomcat Users List Subject: Re: Manager options... Yoav Shapira a écrit : Hi, Sorry to bump in late in the thread, maybe this was already raised, but in your server.xml, did you specify the privileged=true attribute for the Manager context? Yoav If i enter http://myserver/managerstuff/list it then ask for login/password - OK and then generates an exeption below: javax.servlet.ServletException: Error allocating a servlet instance at org.apache.catalina.core.StandardWrapper.allocate(StandardWrap per.java:619) ../.. - Root Cause - java.lang.SecurityException: Servlet of class org.apache.catalina.servlets.ManagerServlet is privileged and cannot be loaded by this web application -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] Yes i did. The manager context seems to work fine on the standalone Tomcat ( ie for me port 8080 ) but fails with Apache through mod_webapp on port 80 Sure the privileged=true is set, as it appears in the eeption raised... Well i don't know what to do more.. JLB :0( -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Manager options...
The only differences I can see are: You use Manger and /managerstuff whereas I use manager and /manager - could this have something to do with it? Not sure! You use localhost I use the actual server name - again, not sure if this has anything to do with it... You don't have a host in your TomCat-Apache service. There's some debate as to whether this is necessary but I have one and the manager app works... Bit of puzzle really. I had no problems - just added the necessary lines in httpd.conf and server.xml and the manager app worked! Thanks, John -Original Message- From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]] Sent: 20 February 2002 16:26 To: Tomcat Users List Subject: Re: Manager options... Thank yu for the answer, john. I verified again and again, but... John Wadkin a icrit : Works fine on my Solaris 8, TC 4.0.1, Apache 1.3 system. I'm actually runnin' SOLARIS _ TC 4.0.2/Warp 1.0.2 Apache 1.3.22 full dso httpd.conf: WebAppConnection warpConnection warp servername:8008 WebAppDeploy manager warpConnection /manager Mine is WebAppConnection WarpConnector0 warplocalhost:8008 WebAppDeploy ManagerWarpConnector0 /managerstuff/ server.xml !-- Tomcat Manager Context -- Context path=/manager docBase=manager debug=0 privileged=true/ For me it is ( full description of the Tomcat Apache part ) !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0/ !-- Replace localhost with what your Apache ServerName is set to -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache appBase=webapps defaulthost=localhost DefaultContext reloadable=true debug=20/ !-- Tomcat Manager Context -- Context path=/manager docBase=manager debug=0 privileged=true/ !-- Context path=/neocam docBase=Neocam debug=0 reloadable=true crossContext=false/ -- !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ !-- Because this Realm is here, an instance will be shared globally -- Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service One point - the context is in the host I defined under the Service name=Tomcat-Apache Hum i don't have any host defined as i don't need virtual host for the moment. Thanks, John And it still doesn't work. I'm really stuck ! Jean-Luc :0( -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Manager options...
Attached my server.xml - there a couple of contexts including manager. All are declared within the host tag. I've just used manager now to restart a context - worked fine. It's definitely using the Warp connector! I can't think of anything else other than the web.xml for manager - is it there and complete? Thanks, John -Original Message- From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]] Sent: 20 February 2002 17:03 To: Tomcat Users List Subject: Re: Manager options... John Wadkin a icrit : The only differences I can see are: You use Manger and /managerstuff whereas I use manager and /manager - could this have something to do with it? Not sure! You use localhost I use the actual server name - again, not sure if this has anything to do with it... You don't have a host in your TomCat-Apache service. There's some debate as to whether this is necessary but I have one and the manager app works... Bit of puzzle really. I had no problems - just added the necessary lines in httpd.conf and server.xml and the manager app worked! Thanks, John -Original Message- From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]] Sent: 20 February 2002 16:26 To: Tomcat Users List Subject: Re: Manager options... Thank yu for the answer, john. I verified again and again, but... John Wadkin a icrit : Works fine on my Solaris 8, TC 4.0.1, Apache 1.3 system. I'm actually runnin' SOLARIS _ TC 4.0.2/Warp 1.0.2 Apache 1.3.22 full dso httpd.conf: WebAppConnection warpConnection warp servername:8008 WebAppDeploy manager warpConnection /manager Mine is WebAppConnection WarpConnector0 warplocalhost:8008 WebAppDeploy ManagerWarpConnector0 /managerstuff/ server.xml !-- Tomcat Manager Context -- Context path=/manager docBase=manager debug=0 privileged=true/ For me it is ( full description of the Tomcat Apache part ) !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0/ !-- Replace localhost with what your Apache ServerName is set to -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache appBase=webapps defaulthost=localhost DefaultContext reloadable=true debug=20/ !-- Tomcat Manager Context -- Context path=/manager docBase=manager debug=0 privileged=true/ !-- Context path=/neocam docBase=Neocam debug=0 reloadable=true crossContext=false/ -- !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ !-- Because this Realm is here, an instance will be shared globally -- Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service One point - the context is in the host I defined under the Service name=Tomcat-Apache Hum i don't have any host defined as i don't need virtual host for the moment. Thanks, John And it still doesn't work. I'm really stuck ! Jean-Luc :0( -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] OK. It does work under Apache/Warp connector ? Great. Could yu indicate me how yu declared yur Host in Engine for the Tomcat-Apache Engine, please ? Jean-Luc B :0( -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] server.xml Description: Binary data -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Manager options...
Oh boy :) You must have missed the great debate thread on engines, hosts and name. It was debated as to whether an engine needs a host. I set the defaulthost attribute and specified a host. Is this necessary? The doc's aren't clear. The default server.xml has a confusing comment about setting localhost. The name att. of engine is used for logging (according to the docs) and is simply logical. I see no reason why it -should- match the name attr. of the host tag or the Servername directive, although it can't do any harm. I set the defaulthost att. of the engine to match the servername directive in httpd.conf. If you look at server.xml and server-noexamples.xml.config you'll see that the !-- Replace localhost with what your Apache ServerName is set to -- comment makes much more sense in noexamples.xml.config! No body (developer) came back with a definitive answer... Thanks, John -Original Message- From: Ricky Leung [mailto:[EMAIL PROTECTED]] Sent: 20 February 2002 17:26 To: Tomcat Users List Subject: RE: Manager options... I think name=Apache in Engine has to be the same as what ServerName is defined in http.conf in apache. -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 12:13 PM To: 'Tomcat Users List' Subject: RE: Manager options... Attached my server.xml - there a couple of contexts including manager. All are declared within the host tag. I've just used manager now to restart a context - worked fine. It's definitely using the Warp connector! I can't think of anything else other than the web.xml for manager - is it there and complete? Thanks, John -Original Message- From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]] Sent: 20 February 2002 17:03 To: Tomcat Users List Subject: Re: Manager options... John Wadkin a icrit : The only differences I can see are: You use Manger and /managerstuff whereas I use manager and /manager - could this have something to do with it? Not sure! You use localhost I use the actual server name - again, not sure if this has anything to do with it... You don't have a host in your TomCat-Apache service. There's some debate as to whether this is necessary but I have one and the manager app works... Bit of puzzle really. I had no problems - just added the necessary lines in httpd.conf and server.xml and the manager app worked! Thanks, John -Original Message- From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]] Sent: 20 February 2002 16:26 To: Tomcat Users List Subject: Re: Manager options... Thank yu for the answer, john. I verified again and again, but... John Wadkin a icrit : Works fine on my Solaris 8, TC 4.0.1, Apache 1.3 system. I'm actually runnin' SOLARIS _ TC 4.0.2/Warp 1.0.2 Apache 1.3.22 full dso httpd.conf: WebAppConnection warpConnection warp servername:8008 WebAppDeploy manager warpConnection /manager Mine is WebAppConnection WarpConnector0 warplocalhost:8008 WebAppDeploy ManagerWarpConnector0 /managerstuff/ server.xml !-- Tomcat Manager Context -- Context path=/manager docBase=manager debug=0 privileged=true/ For me it is ( full description of the Tomcat Apache part ) !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0/ !-- Replace localhost with what your Apache ServerName is set to -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache appBase=webapps defaulthost=localhost DefaultContext reloadable=true debug=20/ !-- Tomcat Manager Context -- Context path=/manager docBase=manager debug=0 privileged=true/ !-- Context path=/neocam docBase=Neocam debug=0 reloadable=true crossContext=false/ -- !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ !-- Because this Realm is here, an instance will be shared globally -- Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service One point - the context is in the host I defined under the Service name=Tomcat-Apache Hum i don't have any host defined as i don't need virtual host for the moment. Thanks, John And it still doesn't work. I'm really stuck ! Jean-Luc :0( -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] OK. It does work under Apache
RE: Manager options...
Craig, Very true - but Manager can still be used to redeploy and stop/start Web App's. I found it easier to manually install App's than use Manager. Looking at the larger issues, this thread raises questions about the clarity of documentation and the ease (or not) of the TomCat-Apache integration process using any of the various connectors. If you cut out the integration and documentation threads there wouldn't be much left on this list other than servlet/jsp programming threads :) I think the doc's mention that in the final release of TomCat, there won't be any need to modify httpd.conf - I guess this is why? John -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: 20 February 2002 21:34 To: Tomcat Users List Subject: Re: Manager options... On Wed, 20 Feb 2002, Jean-Luc BEAUDET wrote: Date: Wed, 20 Feb 2002 12:02:16 +0100 From: Jean-Luc BEAUDET [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Manager options... Hi all ! Well i try hard to get Manager working well through Warp Connector. We use Tomcat 4.0.2/Warp 1.0.2 with Apache 1.3.22. All is correct except a few little things like... Manager ! I really found no way to do it. Error messages like Can't deploy manager cause it's a priviliged application ... make me nervous ! Even after you get the deployment issues resolved, it seems very unlikely to me that the Manager webapp will be useful through the mod_webapp or mod_jk connectors :-(. The reason for this: Tomcat has no problem with dynamically adding new web applications on the fly. However, Apache won't be able to see them until the httpd.conf file is updated, and Apache is restarted. Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: TomCat's XML parser
Mehjabin Never got a reply! Wondering if I might have said something offensive in a previous post :) Would be great if someone would reply... John -Original Message- From: Kapasi, Mehjabin [mailto:[EMAIL PROTECTED]] Sent: 19 February 2002 20:27 To: 'Tomcat Users List' Subject: RE: TomCat's XML parser Hi, I have the same issue. I would like to use another parser instead of Xerces. Did you get a reply to this question? If yes, could you let me know? thank you -Mehjabin -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 10:15 AM To: Tomcat Users List (E-mail) Subject: TomCat's XML parser All, I'm in the process of setting up a (Unix) system ready for a servlet. I'm told by the person who wrote the servlet that it needs a XML parser. He recommends Xerces and (apparently) I'll also need SAX. I know that TomCat uses Xerces but which version? And does that include SAX? If so, which version? I've read the doc's and the latest version of Xerces no longer comes as Xerces.jar - it's now two separate jars - but can be made into a single jar. This leaves me wondering if TomCat uses the latest version or not - i.e. TomCat has xerces.jar in tchome/common. Also, would it be possible to have a second parser installed alongside Xerces - e.g. Aelfred - without breaking TomCat? Thanks, John -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
TomCat's XML parser
All, I'm in the process of setting up a (Unix) system ready for a servlet. I'm told by the person who wrote the servlet that it needs a XML parser. He recommends Xerces and (apparently) I'll also need SAX. I know that TomCat uses Xerces but which version? And does that include SAX? If so, which version? I've read the doc's and the latest version of Xerces no longer comes as Xerces.jar - it's now two separate jars - but can be made into a single jar. This leaves me wondering if TomCat uses the latest version or not - i.e. TomCat has xerces.jar in tchome/common. Also, would it be possible to have a second parser installed alongside Xerces - e.g. Aelfred - without breaking TomCat? Thanks, John -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Deploying wars using Manager
All, Is it possible for me to deploy a Web App stored on my Windows NT machine to TomCat running under Unix using the Manager Web App? The docs (as ever) aren't clear on if this can be done and how. If not, then what's the point of the Manager app? Thanks, John -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: tomcat 4 + apache 1.3 + WarpConnection
AFAIK, in TomCat 4, every engine needs at least one host. Set engine's defaultHost attribute to match the name attribute of the host element. I assume that earlier versions of TomCat will follow the same logic. Have a read of the TomCat documentation on the engine and host elements. John -Original Message- From: Domenico Piol [mailto:[EMAIL PROTECTED]] Sent: 12 February 2002 08:29 To: tomcat-user Subject: RE: tomcat 4 + apache 1.3 + WarpConnection well, on my opinion i would need that when i would use virtual hosts, but i don't is my opinion wrong ? Your server.xml needs a host - something like this: Server port=8005 shutdown=SHUTDOWN debug=0 Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache defaultHost=myserver.domain.com debug=0 appBase=webapps !-- Define the default virtual host -- Host name=myserver.domain.com debug=0 appBase=webapps unpackWARs=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=apache_log. suffix=.txt timestamp=true/ !-- Tomcat Manager Context -- Context path=/manager docBase=manager debug=0 privileged=true/ /Host !-- Because this Realm is here, an instance will be shared globally -- Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service /Server Don't know if it'll help! John -Original Message- From: Domenico Piol [mailto:[EMAIL PROTECTED]] Sent: 11 February 2002 09:14 To: tomcat-user Subject: tomcat 4 + apache 1.3 + WarpConnection hi i'm trying to get my tomcat installation work together with apache 1.3... without success. tomcat works fine as standalone, but with WarpConnection i get an error: *** error 2002-02-11 08:51:53 [org.apache.catalina.connector.warp.WarpConnection] Exception on socket java.io.IOException: Premature packet header end at org.apache.catalina.connector.warp.WarpConnection.recv(Unknown Source) at org.apache.catalina.connector.warp.WarpRequestHandler.handle (Unknown Source) at org.apache.catalina.connector.warp.WarpConnection.run(Unknown Source) at java.lang.Thread.run(Thread.java:484) 2002-02-11 08:51:54 [org.apache.catalina.connector.warp.WarpConnector] Connection from localhost/127.0.0.1:2394 to localhost/127.0.0.1:8008 2002-02-11 08:51:54 [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (2) 2002-02-11 08:51:54 [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (0) *** i don't use a virtual host in my apache config, is that the problem ? my configs look as follwows: *** server.xml *** !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=false appBase=webapps acceptCount=10 debug=0/ !-- Replace localhost with what your Apache ServerName is set to - - Engine className=org.apache.catalina.connector.warp.WarpEngine name=arakis debug=0 !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ !-- Because this Realm is here, an instance will be shared globally -- Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service ** *** httpd.conf *** ... ServerName arakis.local ... LoadModule webapp_module /usr/lib/apache/mod_webapp.so AddModule mod_webapp.c ... DocumentRoot /usr/local/httpd/htdocs ### NOT in a virtual host WebAppConnectionconnwarplocalhost:8008 WebAppDeploywebdav conn/webdav WebAppDeployexamplesconn/examples WebAppInfo /webapp-info ... ** tomcat runs as user wwwrun, as well as apache. i'm thankfull for any hint... domenico --- domenico piol infometis ag eidg. dipl.
Progress?
I think this is the first time that I've been threatened by a machine :) Is this progress indicative of a modern information society? Or is it a worrying trend? Quite funny really :) AFAIK, all email servers should bounce a message that doesn't have a from, so the problem is more at the sender's end than mine. Thanks, John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 13 February 2002 07:09 To: [EMAIL PROTECTED] Subject: ezmlm warning Hi! This is the ezmlm program. I'm managing the [EMAIL PROTECTED] mailing list. I'm working for my owner, who can be reached at [EMAIL PROTECTED] Messages to you from the tomcat-user mailing list seem to have been bouncing. I've attached a copy of the first bounce message I received. If this message bounces too, I will send you a probe. If the probe bounces, I will remove your address from the tomcat-user mailing list, without further notice. I've kept a list of which messages from the tomcat-user mailing list have bounced from your address. Copies of these messages may be in the archive. To retrieve a set of messages 123-145 (a maximum of 100 per request), send an empty message to: [EMAIL PROTECTED] To receive a subject and author list for the last 100 or so messages, send an empty message to: [EMAIL PROTECTED] Here are the message numbers: 9053 --- Enclosed is a copy of the bounce message I received. Return-Path: Received: (qmail 3839 invoked for bounce); 1 Feb 2002 12:12:02 - Date: 1 Feb 2002 12:12:02 - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: failure notice Hi. This is the qmail-send program at nagoya.betaversion.org. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. [EMAIL PROTECTED]: 161.112.232.17 failed after I sent the message. Remote host said: 554 No From field given -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: tomcat 4 + apache 1.3 + WarpConnection
It would be nice if the developers provided a complete TomCat-Apache Service example - one without the misleading comments :) I read the documentation (more than most) and ended up more confused than when I started! For the engine element, the following is written as an explanation of the defaultHost attribute: - The default host name, which identifies the Host that will process requests directed to host - names on this server, but which are not configured in this configuration file. This name MUST - match the name attributes of one of the Host elements nested immediately inside. The documentation further clarifies (!) things: - You can nest one or more Host elements inside this Engine element, each representing a - different virtual host associated with this server. At least one Host is required, and one of - the nested Hosts MUST have a name that matches the name specified for the defaultHost - attribute, listed above. It's as clear as mud, which just goes to show that developers should never write documentation :) I ended up with these questions: In what circumstances would a request have a host specified that didn't match a host in server.xml - wouldn't it be cleaner/wiser to have a host for every virtual host? Is defaultHost necessary? I.e if every virtual host has a host The two paragraphs imply that a host and matching defaultHost are necessary but this isn't clear and it's open to (mis)interpretation. It's also implied that specifying one necessitates the specification of the other - i.e. if you have a host you must have a defaultHost and vice versa. In the end I took the cautious approach and specified a host and matching defaultHost! Thanks, John -Original Message- From: Mike Millson [mailto:[EMAIL PROTECTED]] Sent: 13 February 2002 12:50 To: Tomcat Users List Subject: RE: tomcat 4 + apache 1.3 + WarpConnection I'm running Tomcat 4.0.1 w/o any hosts in my engine. If you connect by ip address, I don't think you need any hosts. This is contrary to the Tomcat documentation, which says you have to have at least 1 host, but all the host element is doing is relating an ip address to a name. So it makes sense to me if you don't use domain names (say on a test server), you don't need hosts. However, I'd like to hear other people's thoughts on this and learn more. Mike -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 6:25 AM To: 'Tomcat Users List' Subject: RE: tomcat 4 + apache 1.3 + WarpConnection AFAIK, in TomCat 4, every engine needs at least one host. Set engine's defaultHost attribute to match the name attribute of the host element. I assume that earlier versions of TomCat will follow the same logic. Have a read of the TomCat documentation on the engine and host elements. John -Original Message- From: Domenico Piol [mailto:[EMAIL PROTECTED]] Sent: 12 February 2002 08:29 To: tomcat-user Subject: RE: tomcat 4 + apache 1.3 + WarpConnection well, on my opinion i would need that when i would use virtual hosts, but i don't is my opinion wrong ? Your server.xml needs a host - something like this: Server port=8005 shutdown=SHUTDOWN debug=0 Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache defaultHost=myserver.domain.com debug=0 appBase=webapps !-- Define the default virtual host -- Host name=myserver.domain.com debug=0 appBase=webapps unpackWARs=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=apache_log. suffix=.txt timestamp=true/ !-- Tomcat Manager Context -- Context path=/manager docBase=manager debug=0 privileged=true/ /Host !-- Because this Realm is here, an instance will be shared globally -- Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service /Server Don't know if it'll help! John -Original Message- From: Domenico Piol [mailto:[EMAIL PROTECTED]] Sent: 11 February 2002 09:14 To: tomcat-user Subject: tomcat 4 + apache 1.3 + WarpConnection hi i'm trying to get my tomcat installation work together with apache 1.3... without success. tomcat works fine as standalone, but with WarpConnection i get an error: *** error 2002-02-11 08:51:53 [org.apache.catalina.connector.warp.WarpConnection] Exception on socket java.io.IOException: Premature packet header end
RE: tomcat 4 + apache 1.3 + WarpConnection
I've managed to get TomCat 4.0.1 and Apache 1.3 working with mod_WebApp/WARP on Solaris 8. I didn't run into that many difficulties either! Does strike me as odd that TC will work with and without a host. There'll no doubt be a logical explanation :) I've mentioned this before but... The server.xml has this line: !-- Replace localhost with what your Apache ServerName is set to -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 appBase=webapps But there's no localhost to replace! In the server-noexamples.xml.config file the line becomes: !-- Replace localhost with what your Apache ServerName is set to -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache defaultHost=localhost debug=0 appBase=webapps Which makes more sense!! When trying to interpret the documentation, this is partly what swung it in favour of specifying host and defaultHost. From the list, it seems that many people think that the engine name and host name need to match, but they don't. In engine name is purely logical, but in host it defines the name of the host - another area of confusion! I.e. two attributes with the same name (i.e. name) but different meanings. Try http://localhost/examples/ i.e. put a slash on the end. Thanks, John -Original Message- From: Frank [mailto:[EMAIL PROTECTED]] Sent: 13 February 2002 13:47 To: Tomcat Users List Subject: Re: tomcat 4 + apache 1.3 + WarpConnection I'm also stuck in this information warp. I've tried the documented solutions as well as those proposed here and and I still can't access examples e.g. with http://host/examples. still works with :8080 of course. [EMAIL PROTECTED] wrote: It would be nice if the developers provided a complete TomCat-Apache Service example - one without the misleading comments :) I read the documentation (more than most) and ended up more confused than when I started! For the engine element, the following is written as an explanation of the defaultHost attribute: - The default host name, which identifies the Host that will process requests directed to host - names on this server, but which are not configured in this configuration file. This name MUST - match the name attributes of one of the Host elements nested immediately inside. The documentation further clarifies (!) things: - You can nest one or more Host elements inside this Engine element, each representing a - different virtual host associated with this server. At least one Host is required, and one of - the nested Hosts MUST have a name that matches the name specified for the defaultHost - attribute, listed above. It's as clear as mud, which just goes to show that developers should never write documentation :) I ended up with these questions: In what circumstances would a request have a host specified that didn't match a host in server.xml - wouldn't it be cleaner/wiser to have a host for every virtual host? Is defaultHost necessary? I.e if every virtual host has a host The two paragraphs imply that a host and matching defaultHost are necessary but this isn't clear and it's open to (mis)interpretation. It's also implied that specifying one necessitates the specification of the other - i.e. if you have a host you must have a defaultHost and vice versa. In the end I took the cautious approach and specified a host and matching defaultHost! Thanks, John -Original Message- From: Mike Millson [mailto:[EMAIL PROTECTED]] Sent: 13 February 2002 12:50 To: Tomcat Users List Subject: RE: tomcat 4 + apache 1.3 + WarpConnection I'm running Tomcat 4.0.1 w/o any hosts in my engine. If you connect by ip address, I don't think you need any hosts. This is contrary to the Tomcat documentation, which says you have to have at least 1 host, but all the host element is doing is relating an ip address to a name. So it makes sense to me if you don't use domain names (say on a test server), you don't need hosts. However, I'd like to hear other people's thoughts on this and learn more. Mike -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 6:25 AM To: 'Tomcat Users List' Subject: RE: tomcat 4 + apache 1.3 + WarpConnection AFAIK, in TomCat 4, every engine needs at least one host. Set engine's defaultHost attribute to match the name attribute of the host element. I assume that earlier versions of TomCat will follow the same logic. Have a read of the TomCat documentation on the engine and host elements. John -Original Message- From: Domenico Piol [mailto:[EMAIL PROTECTED]] Sent: 12 February 2002 08:29 To: tomcat-user Subject: RE: tomcat 4 + apache 1.3 + WarpConnection well, on my opinion i would need that when i would use virtual hosts, but i don't is my opinion wrong ? Your server.xml needs a host - something like this: Server port=8005 shutdown
RE: tomcat 4 + apache 1.3 + WarpConnection
I find it interesting that you make a distinction between a server with DNS entries and without - i.e. one is a host, the other's not. I've never thought of it that way. I'm not sure if TC/Apache makes this distinction... I know that (in Apache) ServerName can be set to an IP address. When my server was first setup, it didn't have DNS entries so I used an IP address in the defaultHost and host :) Worked fine. Another spanner in the understanding the documentation works :) Yes - it would be nice to here the definitive answer! Thanks, John -Original Message- From: Mike Millson [mailto:[EMAIL PROTECTED]] Sent: 13 February 2002 14:07 To: Tomcat Users List Subject: RE: tomcat 4 + apache 1.3 + WarpConnection I don't have a defaultHost attribute in my Engine tag, and Tomcat 4.0.1 seems to be working fine. I'm finding the same challenges w/ the documentation that you are - stumbling along. I'm guessing that what they meant to say is the following: Neither the Engine defaultHost property nor the Host container are required to access Tomcat via an IP address. If you wish to access Tomcat via a host name, you will have to specify one or more Host containers. If the Engine specifies a defaultHost, there must be a Host container whose name property matches the Engine's defaultHost property. If one or more Host containers are specified, the Engine defaultHost property must be defined, and it must match the name property of one of the Host containers. But, I'm just guessing and would appreciate any further clarification on this. Mike -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 8:14 AM To: 'Tomcat Users List' Subject: RE: tomcat 4 + apache 1.3 + WarpConnection It would be nice if the developers provided a complete TomCat-Apache Service example - one without the misleading comments :) I read the documentation (more than most) and ended up more confused than when I started! For the engine element, the following is written as an explanation of the defaultHost attribute: - The default host name, which identifies the Host that will process requests directed to host - names on this server, but which are not configured in this configuration file. This name MUST - match the name attributes of one of the Host elements nested immediately inside. The documentation further clarifies (!) things: - You can nest one or more Host elements inside this Engine element, each representing a - different virtual host associated with this server. At least one Host is required, and one of - the nested Hosts MUST have a name that matches the name specified for the defaultHost - attribute, listed above. It's as clear as mud, which just goes to show that developers should never write documentation :) I ended up with these questions: In what circumstances would a request have a host specified that didn't match a host in server.xml - wouldn't it be cleaner/wiser to have a host for every virtual host? Is defaultHost necessary? I.e if every virtual host has a host The two paragraphs imply that a host and matching defaultHost are necessary but this isn't clear and it's open to (mis)interpretation. It's also implied that specifying one necessitates the specification of the other - i.e. if you have a host you must have a defaultHost and vice versa. In the end I took the cautious approach and specified a host and matching defaultHost! Thanks, John -Original Message- From: Mike Millson [mailto:[EMAIL PROTECTED]] Sent: 13 February 2002 12:50 To: Tomcat Users List Subject: RE: tomcat 4 + apache 1.3 + WarpConnection I'm running Tomcat 4.0.1 w/o any hosts in my engine. If you connect by ip address, I don't think you need any hosts. This is contrary to the Tomcat documentation, which says you have to have at least 1 host, but all the host element is doing is relating an ip address to a name. So it makes sense to me if you don't use domain names (say on a test server), you don't need hosts. However, I'd like to hear other people's thoughts on this and learn more. Mike -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 6:25 AM To: 'Tomcat Users List' Subject: RE: tomcat 4 + apache 1.3 + WarpConnection AFAIK, in TomCat 4, every engine needs at least one host. Set engine's defaultHost attribute to match the name attribute of the host element. I assume that earlier versions of TomCat will follow the same logic. Have a read of the TomCat documentation on the engine and host elements. John -Original Message- From: Domenico Piol [mailto:[EMAIL PROTECTED]] Sent: 12 February 2002 08:29 To: tomcat-user Subject: RE: tomcat 4 + apache 1.3 + WarpConnection well, on my opinion i would need that when i would use virtual hosts, but i don't is my opinion wrong ? Your server.xml needs a host - something like this: Server port=8005 shutdown=SHUTDOWN debug=0 Service name=Tomcat-Apache
RE: tomcat 4 + apache 1.3 + WarpConnection
http://localhost/examples/ should only give you a directory listing. I -think- you should be able to go to something like (for example) http://locahost/examples/servlets/index.html and be able to execute the servlets - assuming that everything is setup correctly. Or you might be able to go direct to an example - e.g. http://localhost/examples/jsp/snp/snoop.jsp I no longer have the examples installed on my server so I can't be 100% certain! John -Original Message- From: Frank [mailto:[EMAIL PROTECTED]] Sent: 13 February 2002 15:13 To: Tomcat Users List Subject: Re: tomcat 4 + apache 1.3 + WarpConnection Taking the suggestion to include a Host section in my server.xml under tomcat apache allows me to do http://host/examples/ and see the directory. I can't execute anyhting though. [EMAIL PROTECTED] wrote: I think this is another shortfall of the documentation. You can change the Engine name to Bob and it will still work, at least if you don't use host names and access via IP address. From reading the documentation, I get the impression the Engine name property is only used for errors and logging id. Mike -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 9:06 AM To: 'Tomcat Users List' Subject: RE: tomcat 4 + apache 1.3 + WarpConnection I've managed to get TomCat 4.0.1 and Apache 1.3 working with mod_WebApp/WARP on Solaris 8. I didn't run into that many difficulties either! Does strike me as odd that TC will work with and without a host. There'll no doubt be a logical explanation :) I've mentioned this before but... The server.xml has this line: !-- Replace localhost with what your Apache ServerName is set to -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 appBase=webapps But there's no localhost to replace! In the server-noexamples.xml.config file the line becomes: !-- Replace localhost with what your Apache ServerName is set to -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache defaultHost=localhost debug=0 appBase=webapps Which makes more sense!! When trying to interpret the documentation, this is partly what swung it in favour of specifying host and defaultHost. From the list, it seems that many people think that the engine name and host name need to match, but they don't. In engine name is purely logical, but in host it defines the name of the host - another area of confusion! I.e. two attributes with the same name (i.e. name) but different meanings. Try http://localhost/examples/ i.e. put a slash on the end. Thanks, John -Original Message- From: Frank [mailto:[EMAIL PROTECTED]] Sent: 13 February 2002 13:47 To: Tomcat Users List Subject: Re: tomcat 4 + apache 1.3 + WarpConnection I'm also stuck in this information warp. I've tried the documented solutions as well as those proposed here and and I still can't access examples e.g. with http://host/examples. still works with :8080 of course. [EMAIL PROTECTED] wrote: It would be nice if the developers provided a complete TomCat-Apache Service example - one without the misleading comments :) I read the documentation (more than most) and ended up more confused than when I started! For the engine element, the following is written as an explanation of the defaultHost attribute: - The default host name, which identifies the Host that will process requests directed to host - names on this server, but which are not configured in this configuration file. This name MUST - match the name attributes of one of the Host elements nested immediately inside. The documentation further clarifies (!) things: - You can nest one or more Host elements inside this Engine element, each representing a - different virtual host associated with this server. At least one Host is required, and one of - the nested Hosts MUST have a name that matches the name specified for the defaultHost - attribute, listed above. It's as clear as mud, which just goes to show that developers should never write documentation :) I ended up with these questions: In what circumstances would a request have a host specified that didn't match a host in server.xml - wouldn't it be cleaner/wiser to have a host for every virtual host? Is defaultHost necessary? I.e if every virtual host has a host The two paragraphs imply that a host and matching defaultHost are necessary but this isn't clear and it's open to (mis)interpretation. It's also implied that specifying one necessitates the specification of the other - i.e. if you have a host you must have a defaultHost and vice versa. In the end I took the cautious approach and specified a host and matching defaultHost! Thanks, John -Original Message- From: Mike Millson [mailto:[EMAIL PROTECTED]] Sent: 13 February 2002 12:50 To: Tomcat Users List Subject: RE: tomcat 4 + apache 1.3
RE: tomcat 4 + apache 1.3 + WarpConnection
Frank, Without having the examples installed on my server I can't say for certain what will and won't work. I'm trying to remember if I had problems with the examples - can't remember though. If you can access: http://localhost/examples/ and http://host/examples/servlets/index.html then that's a good indication that everything is setup ok and that your own servlets/jsp app's should work. Sorry I can't be of more help! John -Original Message- From: Frank [mailto:[EMAIL PROTECTED]] Sent: 13 February 2002 15:50 To: Tomcat Users List Subject: Re: tomcat 4 + apache 1.3 + WarpConnection http://host/examples/servlets/index.html works, but it won't actually execute a servlet (HelloWorld for example). what would the syntax be for this? [EMAIL PROTECTED] wrote: http://localhost/examples/ should only give you a directory listing. I -think- you should be able to go to something like (for example) http://locahost/examples/servlets/index.html and be able to execute the servlets - assuming that everything is setup correctly. Or you might be able to go direct to an example - e.g. http://localhost/examples/jsp/snp/snoop.jsp I no longer have the examples installed on my server so I can't be 100% certain! John -Original Message- From: Frank [mailto:[EMAIL PROTECTED]] Sent: 13 February 2002 15:13 To: Tomcat Users List Subject: Re: tomcat 4 + apache 1.3 + WarpConnection Taking the suggestion to include a Host section in my server.xml under tomcat apache allows me to do http://host/examples/ and see the directory. I can't execute anyhting though. [EMAIL PROTECTED] wrote: I think this is another shortfall of the documentation. You can change the Engine name to Bob and it will still work, at least if you don't use host names and access via IP address. From reading the documentation, I get the impression the Engine name property is only used for errors and logging id. Mike -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 9:06 AM To: 'Tomcat Users List' Subject: RE: tomcat 4 + apache 1.3 + WarpConnection I've managed to get TomCat 4.0.1 and Apache 1.3 working with mod_WebApp/WARP on Solaris 8. I didn't run into that many difficulties either! Does strike me as odd that TC will work with and without a host. There'll no doubt be a logical explanation :) I've mentioned this before but... The server.xml has this line: !-- Replace localhost with what your Apache ServerName is set to -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 appBase=webapps But there's no localhost to replace! In the server-noexamples.xml.config file the line becomes: !-- Replace localhost with what your Apache ServerName is set to -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache defaultHost=localhost debug=0 appBase=webapps Which makes more sense!! When trying to interpret the documentation, this is partly what swung it in favour of specifying host and defaultHost. From the list, it seems that many people think that the engine name and host name need to match, but they don't. In engine name is purely logical, but in host it defines the name of the host - another area of confusion! I.e. two attributes with the same name (i.e. name) but different meanings. Try http://localhost/examples/ i.e. put a slash on the end. Thanks, John -Original Message- From: Frank [mailto:[EMAIL PROTECTED]] Sent: 13 February 2002 13:47 To: Tomcat Users List Subject: Re: tomcat 4 + apache 1.3 + WarpConnection I'm also stuck in this information warp. I've tried the documented solutions as well as those proposed here and and I still can't access examples e.g. with http://host/examples. still works with :8080 of course. [EMAIL PROTECTED] wrote: It would be nice if the developers provided a complete TomCat-Apache Service example - one without the misleading comments :) I read the documentation (more than most) and ended up more confused than when I started! For the engine element, the following is written as an explanation of the defaultHost attribute: - The default host name, which identifies the Host that will process requests directed to host - names on this server, but which are not configured in this configuration file. This name MUST - match the name attributes of one of the Host elements nested immediately inside. The documentation further clarifies (!) things: - You can nest one or more Host elements inside this Engine element, each representing a - different virtual host associated with this server. At least one Host is required, and one of - the nested Hosts MUST have a name that matches the name specified for the defaultHost - attribute, listed above. It's as clear as mud, which just goes to show that developers should never write documentation :) I ended up with these questions: In what circumstances
Unjar a war??
All, Is it possible to unjar a war file using something like jar -x? I've tried and nothing happens! TomCat obviously does it but how? Thanks, John -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: tomcat 4 + apache 1.3 + WarpConnection
Your server.xml needs a host - something like this: Server port=8005 shutdown=SHUTDOWN debug=0 Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache defaultHost=myserver.domain.com debug=0 appBase=webapps !-- Define the default virtual host -- Host name=myserver.domain.com debug=0 appBase=webapps unpackWARs=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=apache_log. suffix=.txt timestamp=true/ !-- Tomcat Manager Context -- Context path=/manager docBase=manager debug=0 privileged=true/ /Host !-- Because this Realm is here, an instance will be shared globally -- Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service /Server Don't know if it'll help! John -Original Message- From: Domenico Piol [mailto:[EMAIL PROTECTED]] Sent: 11 February 2002 09:14 To: tomcat-user Subject: tomcat 4 + apache 1.3 + WarpConnection hi i'm trying to get my tomcat installation work together with apache 1.3... without success. tomcat works fine as standalone, but with WarpConnection i get an error: *** error 2002-02-11 08:51:53 [org.apache.catalina.connector.warp.WarpConnection] Exception on socket java.io.IOException: Premature packet header end at org.apache.catalina.connector.warp.WarpConnection.recv(Unknown Source) at org.apache.catalina.connector.warp.WarpRequestHandler.handle (Unknown Source) at org.apache.catalina.connector.warp.WarpConnection.run(Unknown Source) at java.lang.Thread.run(Thread.java:484) 2002-02-11 08:51:54 [org.apache.catalina.connector.warp.WarpConnector] Connection from localhost/127.0.0.1:2394 to localhost/127.0.0.1:8008 2002-02-11 08:51:54 [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (2) 2002-02-11 08:51:54 [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (0) *** i don't use a virtual host in my apache config, is that the problem ? my configs look as follwows: *** server.xml *** !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=false appBase=webapps acceptCount=10 debug=0/ !-- Replace localhost with what your Apache ServerName is set to - - Engine className=org.apache.catalina.connector.warp.WarpEngine name=arakis debug=0 !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ !-- Because this Realm is here, an instance will be shared globally -- Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service ** *** httpd.conf *** ... ServerName arakis.local ... LoadModule webapp_module /usr/lib/apache/mod_webapp.so AddModule mod_webapp.c ... DocumentRoot /usr/local/httpd/htdocs ### NOT in a virtual host WebAppConnectionconnwarplocalhost:8008 WebAppDeploywebdav conn/webdav WebAppDeployexamplesconn/examples WebAppInfo /webapp-info ... ** tomcat runs as user wwwrun, as well as apache. i'm thankfull for any hint... domenico --- domenico piol infometis ag eidg. dipl.zuerich wirtschaftsinformatikerswitzerland email: [EMAIL PROTECTED] www: http://www.infometis.ch/users/dpiol/ --- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Is Apache -warp- Tomcat a Myth?
Ken, You said: My httpd.conf file has: LoadModule webapp_module libexec/mod_webapp.so WebAppConnection warpConnection warp js1.atomic-interactive.com:8008 WebAppDeploy sample warpConnection /sample/ Where? And what about: AddModule mod_webapp.c The LoadModule directive must be at the end of the list of other LoadModule directives *before* the ClearModuleList directive. The AddModule directive must be at the end of the list of other AddModule directives. The WebAppConnection and Deploy directives need to be at the end of httpd.conf. That's all I can suggest! John Quote for the week: Experience is not what happens to a man; it is what a man does with what happens to him. Aldous Huxley, Texts and Pretexts , (1932) p. 5 -Original Message- From: Ken Corey [mailto:[EMAIL PROTECTED]] Sent: 07 February 2002 10:18 To: Tomcat Users List Subject: Is Apache -warp- Tomcat a Myth? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: problem with WebAppConnection at boot time
The error Web-application not yet deployed is a weird and wacky one. It seems to come and go. If you restart rather than stop and start Apache at the command line, it seems to manifest itself. It sometimes disappears of its own accord with no intervention from me! As I understand it, it's caused by Apache starting before TomCat has fully loaded. But this wouldn't explain its weird behaviour. I think it's a known bug that's fixed in TC 4.0.1 My rc script starts both TomCat and Apache (i.e. not separate scripts) with a sleep 10 between the commands. This appears to work but who knows :) I don't think further separating the scripts (i.e. S2 and S99) would make much difference in terms of time. John Quote for the week: Experience is not what happens to a man; it is what a man does with what happens to him. Aldous Huxley, Texts and Pretexts , (1932) p. 5 -Original Message- From: Cindy Ballreich [mailto:[EMAIL PROTECTED]] Sent: 07 February 2002 19:30 To: [EMAIL PROTECTED] Subject: problem with WebAppConnection at boot time I've been reading through the archives and I've seen a lot of questions about using mod_webapp. In general, mod_webapp seems to be working pretty well for me. My problem is that it doesn't seem to be able to make a connection when httpd is started at boot time. I'm using RedHat 7.0 and I've written init.d scripts for both Tomcat 4.0.1 and Apache 1.3.19 (both installed manually rather than from RPMs). Tomcat starts before Apache (Tomcat is S80 and Apache is S89). Both seem to be starting correctly and both can be accessed directly from their respective ports. The problem is that the Apache error_log has a string of entries like this... [Thu Feb 7 10:20:24 2002] [error] Connection conn cannot connect [Thu Feb 7 10:20:24 2002] [error] Cannot open connection conn ... and when I try to access a jsp from one of the contexts defined by WebAppDeploy in Apache, I get a WebApp: Error 404 (File: wa_request.c Line: 198) Web-application not yet deployed page, and an entry in the log like this one... [Thu Feb 7 10:20:42 2002] [error] Web-application not yet deployed Interestingly, viewing the source of this error page gives me the html that should be produced by the jsp application I was trying to access!! Restarting my web server seems to correct this problem. The connection is made and my jsp files are accessible as I would expect. This indicates to me that my configuration is essentially correct, but something is preventing the connection from being made at boot time. Could Tomcat not be fully loaded when Apache is trying to start? Should I put more space between the init.d scripts? Are there other daemons that need to be started in order for webapp to deploy? Any suggestions would be greatly appreciated. Cindy By the way, mod_webapp is version 1.0.1 built from source with -DEAPI. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: I'm stuck. Apache-tom4.0 virtual hosts
If I understood your question correctly, you're asking why Apache doesn't like the WebApp directives? My guess would be that the directives for WebAppConnection and Deploy need to come last after the ServerName directive. You also need to change localhost:8008 to jakarta.domain.com:8008 or whatever you call your virtualHost. If you think about it, you can't tell mod_WebApp to listen for a server that hasn't been named yet! John -Original Message- From: chad kellerman [mailto:[EMAIL PROTECTED]] Sent: 07 February 2002 20:24 To: [EMAIL PROTECTED] Subject: I'm stuck. Apache-tom4.0 virtual hosts Hey guys, I am stuck again. This time with the virtual host section in apache. Here is what I got: VirtualHost jakarta.domain.com WebAppConnection warpConnection warp localhost:8008 WebAppDeploy examples warpConnection /home/jak/jakarta-www/examples/ User jak Group jakartagrp ServerName jakarta.domain.com ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/jak/jakarta-www TransferLog /home/jak/jakarta-logs/access-log ScriptAlias /cgi-bin/ /home/jak/jakarta-www/cgi-bin/ /VirtualHost an /etc/httpd/bin/apachectl configtest says it does not like WebAppDeploy examples warpConnection /home/jak/jakarta-www/examples/ I am trying to get tomcat working with multiple virtual hosts. I have the module loading fine. But I haven't found how to configure httpd.conf for tomcat as well as the server.xml file. Anyone get this working properly? I on red hat. But I would think the config should be similar on other os's.. Thanks for the info, Chad -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: problem with WebAppConnection at boot time
Cindy, I'm the last person in the world to ask for an opinion! I'm a student who, until now, has mostly specialised in databases. I ended up working for my Uni for my placement year - many UK students on degree courses spend 2 years studying, 1 year working and a further year studying. Six months ago I couldn't even write a shell script and had never heard of TomCat. Fast learner, eh? To answer your question - I've got TomCat and Apache up and running with modWebApp and everything seems fine. I've got a good handle on what causes the ...not yet deployed error so I can avoid it. I've never seen errors that are so odd - probably some weird threading issue! I've even managed to get the Manager app and a test servlet running without problems. The next step is to get a much more complex servlet running with multiple users - I guess this will be test. Judging from the list, there does seem to be a large number of questions/complaints about modWebApp and a number of people abandoning it in favour of older connectors. I guess this would depend on your platform - mines Solaris 8. I note from the list that Linux and Windows are troublesome platforms! I see no reason not to use modWebApp in production if you can get TomCat and Apache to start at boot without the ...not yet deployed error. John -Original Message- From: Cindy Ballreich [mailto:[EMAIL PROTECTED]] Sent: 07 February 2002 21:53 To: Tomcat Users List Subject: RE: problem with WebAppConnection at boot time John, Thanks for the info! I wrote a new script loading both Tomcat and Apache with sleep 10 in between and it does work. The other behaviors you describe certainly are strange. I haven't seen them yet, but I've only just upgraded from Tomcat 3.3 a couple of days ago. How do you feel about mod_webapp? Is it stable enough to be used in a production environment? Thanks again! Cindy At 07:47 PM 2/7/02 -, John Wadkin wrote: The error Web-application not yet deployed is a weird and wacky one. It seems to come and go. If you restart rather than stop and start Apache at the command line, it seems to manifest itself. It sometimes disappears of its own accord with no intervention from me! As I understand it, it's caused by Apache starting before TomCat has fully loaded. But this wouldn't explain its weird behaviour. I think it's a known bug that's fixed in TC 4.0.1 My rc script starts both TomCat and Apache (i.e. not separate scripts) with a sleep 10 between the commands. This appears to work but who knows :) I don't think further separating the scripts (i.e. S2 and S99) would make much difference in terms of time. John Quote for the week: Experience is not what happens to a man; it is what a man does with what happens to him. Aldous Huxley, Texts and Pretexts , (1932) p. 5 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: TOMCAT 4.X - mod_jk
I've quickly read the howto and I'm not sure that I agree with everything! I haven't defined a virtual host in httpd.conf and everything works fine. The author also makes this curious statement: !-- Replace localhost with what your Apache ServerName is set to -- !-- # This line changed. name=set to correct host name. #-- Engine className= org.apache.catalina.connector.warp.WarpEngine name=apache.nandgate.com debug=0 appBase=webapps I didn't think that it mattered what the name was set to. As I understand it, the default server.xml file lacks a host inside the engine for the Tomcat-Apache service - it should have a host. The Replace localhost with what your Apache ServerName is set to refers to this, doesn't it? I.e. Replace localhost with what your Apache ServerName is set to -- - Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache defaultHost=whatever ServerName is set to in httpd.conf debug=0 appBase=webapps The howto has caused me to question my understanding rather than provide any clarification! The author is right when he says that the documentation is patchy and the TC-Apache integration process is more complex than it ought to be. Thanks, John Quote for the week: Experience is not what happens to a man; it is what a man does with what happens to him. Aldous Huxley, Texts and Pretexts , (1932) p. 5 -Original Message- From: Kevin Passey [mailto:[EMAIL PROTECTED]] Sent: 06 February 2002 12:25 To: 'Tomcat Users List' Subject: RE: TOMCAT 4.X - mod_jk Hi again, I have found my answer here http://dcb.sun.com/practices/howtos/tomcat_apache.jsp Thanks anyway. Kevin Passey -- -Original Message- From: Kevin Passey [mailto:[EMAIL PROTECTED]] Sent: 06 February 2002 11:39 To: '[EMAIL PROTECTED]' Subject: TOMCAT 4.X - mod_jk Hi, I am somewhat confused.. I have TOMCAT 4 running quite happily on my Linux (SuSE 7.3) server - no problem. I also have the apache 1.3 distribution with my 7.3 running - no problem. What I want to do is run TOMCAT as an apache plugin so that Apache is serving my static pages and TOMCAT is doing the cool stuff. The question is - do I have to use TOMCAT 3.3 as I cannot see a mod_jk version for 4.x - or have I missed something? Thanks Kevin Passey -- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: TOMCAT 4.X - mod_jk
It's interesting. Look at the server-noexamples.xml.config file that is supplied with TomCat. It's implied that the only difference between this file and the standard server.xml is the context def's for the examples web app. Yet in the server-noexamples.xml.config file: Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache defaultHost=localhost debug=0 appBase=webapps and in server.xml Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 appBase=webapps The !-- Replace localhost with what your Apache ServerName is set to -- makes more sense in the server-noexamples.xml.config file! Did someone slip up, perhaps?? Slap dash cut and paste? My last email didn't explain things too well! As I understand it, server.xml should have: Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache defaultHost=myserver.domain.com debug=0 appBase=webapps Host name=myserver.domain.com debug=0 appBase=webapps unpackWARs=true I.e. name matches defaulthost. I think this is how it's supposed to be - that's there's at least one host and that it's name matches the engine's defaulthost. It's great fun - the books conflict with the documentation, user experience conflicts with the books -and- the documentation... :) Thanks, John Quote for the week: Experience is not what happens to a man; it is what a man does with what happens to him. Aldous Huxley, Texts and Pretexts , (1932) p. 5 -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: 06 February 2002 13:31 To: Tomcat Users List Subject: AW: TOMCAT 4.X - mod_jk What happened is the following: The original documents contain the comment !-- Replace localhost with what your Apache ServerName is set to -- but the example didn't contain the string 'localhost'. Now there are two suggested solutions what was ment with that comment. - the entry 'name=Apache' where the comment used localhost instead of Apache - the missing entry 'defaultHost=localhost' Reading the documentation on the jacarta site (http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/engine.html) I think your interpretation is right. (As I'm not using tomcat, I can't verify that) -Ursprüngliche Nachricht- Von: John Wadkin [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 6. Februar 2002 13:50 An: 'Tomcat Users List' Betreff: RE: TOMCAT 4.X - mod_jk Replace localhost with what your Apache ServerName is set to -- - Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache defaultHost=whatever ServerName is set to in httpd.conf debug=0 appBase=webapps -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: SendMailServlet.class
A quick rummage on the net turned this up... http://java.sun.com/products/javamail/FAQ.html#securityManager Just type the exception javax.mail.NoSuchProviderException into Google and it turns up loads of stuff! John Quote for the week: Experience is not what happens to a man; it is what a man does with what happens to him. Aldous Huxley, Texts and Pretexts , (1932) p. 5 -Original Message- From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]] Sent: 06 February 2002 16:02 To: Tomcat Users List Subject: Re: SendMailServlet.class Chad, Although I have added the activation, mail and pop3 JAR files to the CLASSPATH, TOMCAT_HOME/lib, $TOMCAT_HOME/common/lib, $TOMCAT_HOME/webapps/app/WEB-INF/lib I could run my application, but when I press a button to send the mail, I got an error message on the console and the mail is not sended... I think the wrong thing is the Tomcat configuration, isn't it? and not the libraries you need. The error is the follow: javax.mail.NoSuchProviderException: No provider for Address type: rfc822 Has anyone seen this? Could anyone else fixed this? Nancy. chad kellerman wrote: Boy, ever had on of those days. I was using the wrong javac. Not the one with the JDK. I used the correct one and now I am getting SendMailServlet.java:7: cannot resolve symbol symbol : class Message location: package mail import javax.mail.Message; For just about every import. I think I am going to call it a day. Atleast, with this part, and work on the SSL bit. There seems to be a lot of info coming thru the past week about SSL. Thanks for all the help. Chad On Wed, 6 Feb 2002 16:17:58 +0100 Michel [EMAIL PROTECTED] wrote: I believe you also need the activation.jar from Sun? Did you get that? gr. Michel -Original Message- From: chad kellerman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 16:09 To: Tomcat Users List Subject: Re: SendMailServlet.class Sorry to have to write again but I am lost. I set the CLASS_PATH. That did not work, I downloaded the javamail, and moved allthe jar file to /usr/local/jakarta-tomcat-4.0/dist/common/lib/ which should have done it. But not. Still same error. I open up SendMailServlet.java and looked: import java.io.IOException; import java.io.PrintWriter; import javax.mail.Message; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; import javax.naming.Context; import javax.naming.InitialContext; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; I have everything but the javax.mail.*. Is there another package that I might be missing. That again for all the help... Chad On Wed, 6 Feb 2002 13:44:27 - Mark Meany [EMAIL PROTECTED] wrote: SendMailServlet.java:1: error:Cannot find type javax/mail/Message Try downloading the Sun JavaMail API and putting the jars somewhere visible to your application. All should be Ok after this. http://java.sun.com/products/javamail/index.html M. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: NullPointerException: causes?
Chinni, Absolutely right!! What a muppet - I though that the @host part of the connection string should be replaced with ahost.domain.com rather than @ahost.domain.com. I think it's old age - I'm approaching the quarter of a century mark. Thanks, John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 31 January 2002 20:31 To: Tomcat Users List Subject: Re: NullPointerException: causes? I think DB_URL string making should be jdbc:oracle:thin: @111.22.333.44:1521:SID looks like yor are missing '@' symbol. -Chinni. John Wadkin j.wadkin@hudTo: Tomcat Users List (E-mail) .ac.uk [EMAIL PROTECTED] cc: 01/31/02 Subject: NullPointerException: causes? 11:40 AM Please respond to Tomcat Users List Can anyone offer any suggestions about the cause of the attached NullPointerException trace? I've managed to setup and integrate Apache 1.3 and Tomcat 4.1 using mod_WebApp on Solaris 8 (JDK 1.3). I ran the attached servlet (which I didn't write) with the hope of testing that everything was working ok, especially the Oracle/JDBC bit. As far as I can tell, everything is configured properly... The general aim is for me to verify that everything works (using the attached servlet) before trying to deploy a second, more complex servlet that's currently running under JServ. Apologies if this is a frequent question but I've only been able to find vague references to it, and I'm only a novice Java programmer! Thanks, John Quote for the week: My fellow Americans, I am pleased to tell you I just signed legislation which outlaws Russia forever. The bombing begins in five minutes. Ronald Reagan, Radio microphone test, 11 Aug. 1984 (See attached file: error.txt)(See attached file: DatabaseCheck.java)-- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: PLEASE REMOVE THE VIRUS BEFORE MAILING THE LIST...
Lasse When you say list signature do you mean this: To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] If so, then I think the real issue is, Why's the signature there in the first place?. Mailing list management commands are well documented. There's a problem with email in general in that it's easy to fire off an email without giving the content much thought or structure. I'm no fan of Outlook or Microsoft for that matter, but I rely on Outlook's life management facilities - e.g. calendar, tasks, flagging messages! One thing that does irritate me is when people put their reply to a message -within- the message - I've missed important info because of this! Example: Bla Bla Response Bla Bla When you're scanning the email, it's easy to overlook part of the reply - more so when sending as plain text (can't use colours). Removed unnecessary bits of this email to save on storage space ;) Thanks, John Quote for the week: My fellow Americans, I am pleased to tell you I just signed legislation which outlaws Russia forever. The bombing begins in five minutes. Ronald Reagan, Radio microphone test, 11 Aug. 1984 -Original Message- From: Lasse Hillerøe Petersen [mailto:[EMAIL PROTECTED]] Sent: 30 January 2002 20:11 To: Tomcat Users List Subject: RE: PLEASE REMOVE THE VIRUS BEFORE MAILING THE LIST... -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
NullPointerException: causes?
Can anyone offer any suggestions about the cause of the attached NullPointerException trace? I've managed to setup and integrate Apache 1.3 and Tomcat 4.1 using mod_WebApp on Solaris 8 (JDK 1.3). I ran the attached servlet (which I didn't write) with the hope of testing that everything was working ok, especially the Oracle/JDBC bit. As far as I can tell, everything is configured properly... The general aim is for me to verify that everything works (using the attached servlet) before trying to deploy a second, more complex servlet that's currently running under JServ. Apologies if this is a frequent question but I've only been able to find vague references to it, and I'm only a novice Java programmer! Thanks, John Quote for the week: My fellow Americans, I am pleased to tell you I just signed legislation which outlaws Russia forever. The bombing begins in five minutes. Ronald Reagan, Radio microphone test, 11 Aug. 1984 type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception java.lang.NullPointerException at DatabaseCheck.doGet(databasecheck.java:88) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(Compiled Code) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(Compiled Code) at org.apache.catalina.core.StandardContext.invoke(Compiled Code) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(Compiled Code) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.warp.WarpRequestHandler.handle(Compiled Code) at org.apache.catalina.connector.warp.WarpConnection.run(Compiled Code) at java.lang.Thread.run(Thread.java:479) DatabaseCheck.java Description: Binary data -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: NullPointerException: causes?
Martin, You said So probably something is wrong in setting up the connection. Any ideas what?? I've checked that the database is open and the listener is listening. The JDBC drivers are in the right place. The user has sufficient privileges. I'm out of ideas! I'm just a lowly student who's ended up working for his Uni for a year. No one here knows anything about TomCat or Java Servlets. The Oracle DBA left a week ago (seriously) and there's no one but me to do everything. I get help on the Unix/networking side of things. The person who writes the servlets (that I'm trying to deploy) knows next to nothing about running them. Great situation, eh? Thanks, John -Original Message- From: Martin van den Bemt [mailto:[EMAIL PROTECTED]] Sent: 31 January 2002 17:46 To: Tomcat Users List Subject: RE: NullPointerException: causes? Looks like the DriverManager is returning null, so dbCcon is null. (line 217). So probably something is wrong in setting up the connection. Mvgr, Martin -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 18:41 To: Tomcat Users List (E-mail) Subject: NullPointerException: causes? Can anyone offer any suggestions about the cause of the attached NullPointerException trace? I've managed to setup and integrate Apache 1.3 and Tomcat 4.1 using mod_WebApp on Solaris 8 (JDK 1.3). I ran the attached servlet (which I didn't write) with the hope of testing that everything was working ok, especially the Oracle/JDBC bit. As far as I can tell, everything is configured properly... The general aim is for me to verify that everything works (using the attached servlet) before trying to deploy a second, more complex servlet that's currently running under JServ. Apologies if this is a frequent question but I've only been able to find vague references to it, and I'm only a novice Java programmer! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Exception explanation
Apologies is this has been asked before... What does this error mean - java.net.SocketException: socket closed: Bad file number - in the apache_log.date.txt file? Had a look on the net but couldn't find anything useful. I don't write servlets, so socket exceptions have no meaning to me! Seems that errors are generated at random! System: Solaris 8 Java 1.3 TomCat 4 Apache 1.3 Thanks, John Quote for the week: My fellow Americans, I am pleased to tell you I just signed legislation which outlaws Russia forever. The bombing begins in five minutes. Ronald Reagan, Radio microphone test, 11 Aug. 1984 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: INSTALLING TOMCAT - PART II
on unix: ps -ef and look for java. ps -ef is also handy for checking any variables passed to the JVM. Not sure of the Linux format for this command! Thanks, John Quote for the week: The men with the muck-rakes are often indispensable to the well-being of society; but only if they know when to stop raking the muck. Theodore Roosevelt, Speech in New York, 11 Nov. 1902 -Original Message- From: Rafael [mailto:[EMAIL PROTECTED]] Sent: 28 January 2002 14:11 To: Tomcat Users List Subject: Re: INSTALLING TOMCAT - PART II Okey.. Lets start now the second part of this issue. I've installed TOMCAT (downloaded from http://jakarta.apache.org/builds/jakarta-tomcat-4.0/nightly/ and I saw on the documentation that I'm supposed to run the CATALINA_HOME/bin/./startup.sh Well I did it. and look what I got back: root@omega:~/jakarta-tomcat-4.0/bin# ./startup.sh Using CATALINA_BASE: /root/jakarta-tomcat-4.0 Using CATALINA_HOME: /root/jakarta-tomcat-4.0 Using CATALINA_TMPDIR: /root/jakarta-tomcat-4.0/temp Using JAVA_HOME: /etc/jdk1.3.1_02 root@omega:~/jakarta-tomcat-4.0/bin# Is it running?? How can I know?? grep tomcat doesnt show anything.. I'm still needing help, thank you all for helping me! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
JDBC drivers
All, The JDBC drivers provided by Oracle are zipped but as I understand it, only jar files are recognised. Is this correct? If so, I guess I'll have to unzip and then jar? I'm using TC 4 on Solaris 8. Thanks, John Quote for the week: The men with the muck-rakes are often indispensable to the well-being of society; but only if they know when to stop raking the muck. Theodore Roosevelt, Speech in New York, 11 Nov. 1902 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Prevent TC from serving documents
Wouldn't a Remote Host or Address Filter come in handy here? Has deny and allow like Apache. Just a guess! Thanks, John Quote for the week: The men with the muck-rakes are often indispensable to the well-being of society; but only if they know when to stop raking the muck. Theodore Roosevelt, Speech in New York, 11 Nov. 1902 -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: 24 January 2002 18:35 To: 'Tomcat Users List' Subject: RE: Prevent TC from serving documents You could create a new role (i.e. NEVER_ACCESS) and add that role to the security-constraints for the files you don't want to serve in your web.xml and then never give that role to any user. Problem is you will have to list each file individually, also people would be prompted for username and password so they would know the file existed - they couldn't read it, but sometime just know its there is bad enough. A separate approach would be to write a filter (since you're using TC 4) that would look at the request URL and if it ended in ini or txt then you could forward the request to nonexistant.html, which would produce a 404. (Note if you sent the client a redirect then an astute web client could figure out that the file existed.) Randy -Original Message- From: Pablo Millet [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 2:06 PM To: Tomcat Users List Subject: Prevent TC from serving documents Hi all. Is it possible to prevent TC4 from serving files like eg. *.ini or *.txt. Even if I have direcorylisting=false Tomcat serves files if you know the correct path !!! Thanx. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: web.xml Question
I'm no expert on XML, but I do write documents in XML which are then parsed/interpreted by a servlet (which I didn't write). As far as I know, any XML document will parse without a DTD. A DTD just provides the syntax - e.g. tag names, tag attributes, tag structures (list of tags that a tag can contain). Without a DTD, the document is just checked for well-formedness - e.g. that all start tags have an end tag. It should be possible to store the web.xml DTD locally and modify the identifier to point to it. Don't ask me what the syntax of the identifier is - all I know is that it's different for DTDs that are local! Look in a good XML book (e.g. New Riders, Inside XML). I guess that having the DTD locally would also help when creating server.xml and web.xml files: you'd be able to use an XML editor with the DTD and therefore guarantee that all your service, engine, etc. tags where in the right order, with the right attributes. Thanks, John Quote for the week: The men with the muck-rakes are often indispensable to the well-being of society; but only if they know when to stop raking the muck. Theodore Roosevelt, Speech in New York, 11 Nov. 1902 -Original Message- From: Tom Bednarz [mailto:[EMAIL PROTECTED]] Sent: 22 January 2002 07:49 To: [EMAIL PROTECTED] Subject: web.xml Question Hi everybody, Usually the web.xml file of a web application starts with the following: !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; This URL referst to the dtd file on SUN's server. I think most XML parsers like SAX need to read the dtd file to be able to parse the XML file. Questions: What happens if I deploy an application on an Intranet which allows access to the internet only through a proxy server (with username / password authentication)? The dtd cannot be accessed and must be someware on the local disk. I found that TOMCAT has a web.xml in its conf directory. Could anybody explain me, which XML files I need to change and where do I need to put the downloaded web-app_2_3.dtd file? Is the web.xml in the conf directory like a parent to all web.xml files found under webapps\application\WEB-INF? (Something like the defaults for all web apps)? Could anybody help me out of this XML jungle? Many thanks! Thomas -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat does not shutdown with script
Paul, I've tried various things to replicate this error in a controlled way. The only thing that I can find that causes the error is when TomCat is already shutdown - i.e. shutting down TomCat when it's *already* shutdown. Starting and immediately stopping TomCat works fine. If you're certain that TC has started and you still get the error, then I'm at a loss to explain why! It's a bit odd though. You'd expect TomCat to exit gracefully rather than bomb out with a stack trace? Even more oddly, running the startup.sh script twice in succession produces no errors! Hope this is of some use! John Quote for the week: Happiness is an imaginary condition, formerly often attributed by the living to the dead, now usually attributed by adults to children, and by children to adults. Thomas Szasz, The Second Sin, (1973) Emotions -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 18 January 2002 14:47 To: Tomcat Users List Subject: Re: Tomcat does not shutdown with script I already had the export statements at the beginning of the catalina.sh script. Tomcat does still not shutdown. How long does it take for your tomcat to shutdown? Thanks, Paul John Wadkin [EMAIL PROTECTED] 01/16/2002 07:24 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: Tomcat does not shutdown with script Yeah - seen this before. I've (we've) just managed to get TomCat working. I wasn't entirely certain as to where the two environment variables JAVA_HOME and CATALINA_HOME should go, so I stuck them at the top of the catalina.sh script (not necessarily the best place to put them but it works). TomCat's user doesn't have a .profile or shell script. However, when I came to shutdown TomCat I got the same error as you. I then added export statements for the two variables (makes them global) and it works fine. JAVA_HOME=path;export JAVA_HOME CATALINA_HOME=path;export CATALINA_HOME Not entirely certain why this works. The startup and shutdown scripts both use catalina.sh, so it shouldn't matter than the java variable only exists for the duration of the script. Could be that TomCat hadn't actually *fully* started when I tried shutting it down - the delay caused by my adding export statements to catalina.sh gave it time to load, making it seem that the modifications had done the trick! It's a theory I intend testing! Hope my ramblings are of some use! John - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, January 17, 2002 9:55 PM Subject: Tomcat does not shutdown with script I run tomcat 4.0 on a solaris 8 box. The shutdown.sh script does not function properly. It does not shut tomcat cat down. I get this error. Using CLASSPATH: /opt/tomcat/jakarta-tomcat-4.0/bin/bootstrap.jar:/usr/java/lib/tools.jar Using CATALINA_BASE: /opt/tomcat/jakarta-tomcat-4.0 Using CATALINA_HOME: /opt/tomcat/jakarta-tomcat-4.0 Using JAVA_HOME: /usr/java Catalina.stop: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.socketConnect(Compiled Code) at java.net.PlainSocketImpl.doConnect(Compiled Code) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112) at java.net.Socket.init(Socket.java:269) at java.net.Socket.init(Socket.java:98) at org.apache.catalina.startup.Catalina.stop(Compiled Code) at org.apache.catalina.startup.Catalina.execute(Unknown Source) at org.apache.catalina.startup.Catalina.process(Unknown Source) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Compiled Code) at org.apache.catalina.startup.Bootstrap.main(Compiled Code) Does anyone have any suggestions? Paul Victor -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
TomCat 4, Servlets Oracle JDBC
I'm charged with the task of getting a servlet working using Apache 1.3, TomCat 4 and Oracle on a Unix platform. The servlet parses xml documents into HTML pages with content taken from an Oracle database via jbdc (thin) drivers. My question relates to the jdbc drivers bit - as I understand it, the drivers should install with Oracle. Is further configuration needed? For example, do I have to do anything with TomCat? I've had a look on the net and at the documentation/faqs on the Apache site and haven't been able to find anything other than vague details. Apologies if I've repeated a well-asked question! Thanks, John Quote for the week: Happiness is an imaginary condition, formerly often attributed by the living to the dead, now usually attributed by adults to children, and by children to adults. Thomas Szasz, The Second Sin, (1973) Emotions
Re: Tomcat does not shutdown with script
Yeah - seen this before. I've (we've) just managed to get TomCat working. I wasn't entirely certain as to where the two environment variables JAVA_HOME and CATALINA_HOME should go, so I stuck them at the top of the catalina.sh script (not necessarily the best place to put them but it works). TomCat's user doesn't have a .profile or shell script. However, when I came to shutdown TomCat I got the same error as you. I then added export statements for the two variables (makes them global) and it works fine. JAVA_HOME=path;export JAVA_HOME CATALINA_HOME=path;export CATALINA_HOME Not entirely certain why this works. The startup and shutdown scripts both use catalina.sh, so it shouldn't matter than the java variable only exists for the duration of the script. Could be that TomCat hadn't actually *fully* started when I tried shutting it down - the delay caused by my adding export statements to catalina.sh gave it time to load, making it seem that the modifications had done the trick! It's a theory I intend testing! Hope my ramblings are of some use! John - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, January 17, 2002 9:55 PM Subject: Tomcat does not shutdown with script I run tomcat 4.0 on a solaris 8 box. The shutdown.sh script does not function properly. It does not shut tomcat cat down. I get this error. Using CLASSPATH: /opt/tomcat/jakarta-tomcat-4.0/bin/bootstrap.jar:/usr/java/lib/tools.jar Using CATALINA_BASE: /opt/tomcat/jakarta-tomcat-4.0 Using CATALINA_HOME: /opt/tomcat/jakarta-tomcat-4.0 Using JAVA_HOME: /usr/java Catalina.stop: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.socketConnect(Compiled Code) at java.net.PlainSocketImpl.doConnect(Compiled Code) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112) at java.net.Socket.init(Socket.java:269) at java.net.Socket.init(Socket.java:98) at org.apache.catalina.startup.Catalina.stop(Compiled Code) at org.apache.catalina.startup.Catalina.execute(Unknown Source) at org.apache.catalina.startup.Catalina.process(Unknown Source) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Compiled Code) at org.apache.catalina.startup.Bootstrap.main(Compiled Code) Does anyone have any suggestions? Paul Victor -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]