mod_jk: ajp13: cpu load problem with apache
Hi, I have an installation of Apache 1.3.19 + Tomcat 4.0.3 on a aix4.3 machine with IBM JDK 1.3.0. I have two tomcat engines and I use the lb worker of mod_jk to balance user request to these two engines. The problem is that some httpd processes seem to go into some cpu performance tasks and start consuming all the cpu of the machine (2processors, 2GB mem). After some time almost all available CPU is consumed by the apache processes. If I kill the child processes that cause the problem, the load falls back to normal. At the same time, I notice that I have excessive CPU usage in one of the tomcat instances. The problem keeps recurring all the time (almost every hour). I read in the mail-archives about similar problems but I didn't find a good answer. The version of mod_jk is the one in jakarta-tomcat-connectors-4.0.2.01 I compiled the source on the same machine (aix). I have to say that I have noticed similar problems on many more apache installations that have similar installations (apache, lb + 2 or more tomcat engines) with older versions of mod_jk and tomcat. Actually, the above problem makes the lb worker unusable since I cannot trust the setup in my production environment. Please, any idea or patches or whatever will be very helpful. Thanks very much for any ideas, Costas
Tomcat SSL with both client-auth and server-auth?
Hi, Is it possible to set up a tomcat (3.2.3) server with both client and server-authentication running? I've set up a server.xml file with two connectors (with different port no.s specified, and one having client-auth=true, the other client-auth=false). I can run the server and connect to each of the areas (I've specified them as different contexts, eg path=/client and path=/server) as specified, however I'm concerned that the two authentication levels aren't being enforced. For example, if I connect to the server-authenticated area (eg https://localhost:8443/server), the security is my site's certificate. However, if I then change the link in the browser window (eg to https://localhost:8444/client) I am not required to present/select my certificate to authenticate to the server. In other words, it has maintained the server-authentication specified in the first connection. This also works in reverse: if I connect via client-auth (and present my cert), I can then move to the server-authenticated area without any fuss. I suspect this is because this is all one session, and I haven't successfully set up Tomcat to accept multiple auth-levels within the one session (or this isn't possible). Can someone please help? Thanks very much! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: tomcat4 context problem
On 04/30 18:51 [EMAIL PROTECTED] wrote: directory. Also uncomment the Context entry for ROOT in server.xml (if it isn't already) How do you turn off the auto-context feature of Tomcat...? I'd like to tell Tomcat to see the Context ... / elements in server.xml only. I mean, if there are directories that are not described in the Context ... /, leave them alone. Oki -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Apache 2.0 and Tomcat 4.0.3
Title: Apache 2.0 and Tomcat 4.0.3 Hi guys, Just joined the community. I have a small question i've downloaded Apache 2.0 Tomcat 4.0.3 and i'm using Java SDK 1.4. how do i setup Apache to forward jsp requests to Tomcat. Thanks, Jamshed Jamshed Qureshi (E-mail 2).vcf Description: Binary data -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
No Realm has been configured to authenticate against
Hi, I am trying to get my IIS with Tomcat to work with a JDBCRealm security. For some reason I can't get it working. When I try to start the tomcat server I get all 404 errors in my browser. Does anybody have a sugestion for me? This is the Log I get when I try to start Tomcat. 2002-05-01 10:01:47 WebappLoader[/provitel]: Deploying class repositories to work directory C:\Tomcat4\work\localhost\provitel 2002-05-01 10:01:47 WebappLoader[/provitel]: Deploy JAR /WEB-INF/lib/mm.mysql-2.0.13-bin.jar to C:\Tomcat4\webapps\provitel\WEB-INF\lib\mm.mysql-2.0.13-bin.jar 2002-05-01 10:01:47 WebappLoader[/provitel]: Reloading checks are enabled for this Context 2002-05-01 10:01:47 StandardManager[/provitel]: Seeding random number generator class java.security.SecureRandom 2002-05-01 10:01:47 StandardManager[/provitel]: Seeding of random number generator has been completed 2002-05-01 10:01:48 ContextConfig[/provitel]: No Realm has been configured to authenticate against 2002-05-01 10:01:48 ContextConfig[/provitel]: Marking this application unavailable due to previous error(s) 2002-05-01 10:01:48 StandardContext[/provitel]: Error initializing naming context for context /provitel 2002-05-01 10:01:48 StandardContext[/provitel]: Context startup failed due to previous errors 2002-05-01 10:01:48 StandardContext[/provitel]: Error initializing naming context for context /provitel 2002-05-01 10:03:46 WebappLoader[/provitel]: Deploying class repositories to work directory C:\Tomcat4\work\localhost\provitel 2002-05-01 10:03:46 WebappLoader[/provitel]: Deploy JAR /WEB-INF/lib/mm.mysql-2.0.13-bin.jar to C:\Tomcat4\webapps\provitel\WEB-INF\lib\mm.mysql-2.0.13-bin.jar 2002-05-01 10:03:46 WebappLoader[/provitel]: Reloading checks are enabled for this Context 2002-05-01 10:03:46 StandardManager[/provitel]: Seeding random number generator class java.security.SecureRandom 2002-05-01 10:03:46 StandardManager[/provitel]: Seeding of random number generator has been completed 2002-05-01 10:03:46 ContextConfig[/provitel]: No Realm has been configured to authenticate against 2002-05-01 10:03:46 ContextConfig[/provitel]: Marking this application unavailable due to previous error(s) 2002-05-01 10:03:46 StandardContext[/provitel]: Error initializing naming context for context /provitel 2002-05-01 10:03:46 StandardContext[/provitel]: Context startup failed due to previous errors 2002-05-01 10:03:46 StandardContext[/provitel]: Error initializing naming context for context /provitel This is my server.xml file realm classname=org.apache.catalina.realm.JDBCRealm debug=99 drivername=org.gjt.mm.mysql.Driver connectionurl=jdbc:mysql://localhost/tomcatusers?user=heinin_m;password=zer o4u usertable=users usernamecol=user_name usercredcol=user_pass userroletable=user_roles rolenamecol=role_name/ I have an mysql windows server installed on my pc with in it the tomcatusers database as discribed in serveral how-to documents. This is my wb.xml file : security-constraint display-nameSecurity Constraint/display-name web-resource-collection web-resource-nameProtected Area/web-resource-name !-- Define the context-relative URL(s) to be protected -- url-pattern/jsp/security/*/url-pattern !-- If you list http methods, only those methods are protected -- http-methodDELETE/http-method http-methodGET/http-method http-methodPOST/http-method http-methodPUT/http-method /web-resource-collection auth-constraint !-- Anyone with one of the listed roles may access this area -- role-nameheinin_m/role-name role-nametomcat/role-name role-namerole1/role-name /auth-constraint /security-constraint !-- Default login configuration uses form-based authentication -- login-config auth-methodBASIC/auth-method realm-nameTomcat Supported Realm/realm-name form-login-config form-login-page/jsp/security/protected/login.jsp/form-login-page form-error-page/jsp/security/protected/error.jsp/form-error-page /form-login-config /login-config Regards, Maarten Disclaimer This communication together with any attachments transmitted with it ('this E-mail') is intended only for the use of the addressee and may contain information which is privileged and confidential. If the reader of this E-mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are notified that any use of this E-mail is prohibited. Addressees should ensure this E-mail is checked for viruses. The Carphone Warehouse Group PLC makes no representations as regards the absence of viruses in this E-mail. If you have received this E-mail in error please notify our ISe Response Team immediately by telephone on + 44 (0)20 8896 5828 or via E-mail at [EMAIL PROTECTED] Please then immediately destroy this E-mail and any copies of it. Please feel free to
Apache2 + tomcat 4 integration problem
Hello all, I am trying to integrate Apache 2 with Tomcat 4. I have installed both apache and tomcat and they both work fine independently. But when I try to integrate them using mod_jk then I get the following error: Syntax error on line 231 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/libexec/mod_jk.so into server: ld.so.1: /usr/local/apache2/bin/httpd: fatal: relocation error: file /usr/local/apache2/libexec/mod_jk.so: symbol ap_psprintf: referenced symbol not found I have included mod_jk.so in my httpd.conf file using the following two lines: LoadModule jk_module libexec/mod_jk.so AddModule mod_jk.c and have placed mod_jk.so in libexec. Can anyone help? Thanks Greg -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
how to set application variable in tomcat
could any one plz tell me how to set application variable in tomcat Thanx in advance regards, Deep -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Problem with examples (Tomcat 4.0.2 / Apache 2.0.35)
I copied the entire webapps directory from the default installation of Tomcat4 to my virtual server directory. I checked in server.xml, and I still get the 404 errors when attempting to access http://its.home/manager/ . This is on my machine only, so there's no internet connectivity possible to test.. I can see my virtual server just fine (even though the index.html there comes up as code only, not as an html page), so I know the virtual server is working. I've added root for now to the conf/tomcat-users.xml as I don't think it's seeing the webapps as the default root directory for the web applications. I'll inline the appropriate server.xml code below, and see if anyone can solve this for me... Probably a stupid omission somewhere... tomcat-users.xml ?xml version='1.0'? tomcat-users role rolename=standard/ role rolename=manager/ role rolename=role1/ role rolename=tomcat/ role rolename=root/ user username=role1 password=tomcat roles=role1/ user username=tomcat password=tomcat roles=tomcat/ user username=root password= roles=tomcat,standard,manager/ user username=both password=tomcat roles=tomcat,role1,root/ /tomcat-users server.xml Server port=8005 shutdown=SHUTDOWN debug=0 !-- Uncomment these entries to enable JMX MBeans support -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources Service name=Tomcat-Standalone !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8081 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8000 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false / !-- Define a Coyote/JK2 AJP 1.4 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ Engine name=Standalone defaultHost=localhost debug=0 !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=0 resourceName=java:UserDatabase/ !-- Define the default virtual host -- Host name=its.Home debug=0 appBase=webapps unpackWARs=true autoDeploy=true Valve className=org.apache.catalina.authenticator.SingleSignOn debug=0/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ !-- Tomcat Examples Context -- Context path=/examples docBase=examples debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_examples_log. suffix=.txt timestamp=true/ Ejb name=ejb/EmplRecord type=Entity home=com.wombat.empl.EmployeeRecordHome remote=com.wombat.empl.EmployeeRecord/ ResourceLink name=userDatabase global=UserDatabase type=org.apache.catalina.UserDatabase/ Environment name=maxExemptions type=java.lang.Integer value=15/ Parameter name=context.param.name value=context.param.value override=false/ Resource name=jdbc/EmployeeAppDb auth=SERVLET type=javax.sql.DataSource/ ResourceParams name=jdbc/EmployeeAppDb
securing JSP pages in Tomcat using Apache
Hi, I am using Apache 1.3, Tomcat 3.2.1, modkj I have a web application /webapps/testapp this contains index file and certain JSPs I have a folder under testapp as /webapps/testapp/admin Now I want to secure the JSPs in the admin folder using SSL. But the users can access the files in the folder testapp. That is; users can access JSPs as http://www.mydomain.com/testapp/abcd.jsp https://www.mydomain.com/testapp/admin/admin.jsp 1. Is this possible? 2. If a folder is secured using SSL, does all the subfolders of that folder automatically get secured? 3. Can SSL be enabled at page level? for example; http://www.mydomain.com/testapp/abcd.jsp this page need not be secured. https://www.mydomain.com/testapp/xyz.jsp this page needs to be secured. secectively applying SSL to pages in the same folder? regards Haresh
Valves and (disappearing) Context Parameters
Hi all, I'm having a bit of trouble getting the bugs out of my own Valve. Short story: Custom valves that implement Lifecycle cause the web.xml context parameters to disappear (i.e. not be visable to .jsp files). Long story: When using AccessLogValve all context parameters defined in web.xml and in the server.xml are visable. (application.getInitParameterNames();) This is good. Here is a test I did: * Copied AccessLogValve.java out of the tomcat source and into my application. * Changed its name, and fixed the package it was in etc, so that it now compiles. * deployed the app. * Added my new valve to the server.xml * restarted the server. * ran my test .jsp page. * application.getInitParameterNames(); now only returns the Parameters defined in server.xml, and none of the context parameters from web.xml. This is bad. * When the new valve is removed from the pipeline, server restarted etc, all of the expected parameters are available. I've tracked it down to the Lifecycle stuff. Removing ..implements Lifecycle from my custom valve fixes the problem. Although I can't explain why everything works fine for AccessLogValve (which uses Lifecycle), but not for my custom valve even when it is a copy of AccessLogValve. :( Tomcat 4.0.2 JDK 1.3.1 Red Hat Linux release 6.2 (Zoot) Kernel 2.2.19-RAID on an i686 anyone got any ideas? _ Simon Edwards_ GX creative online development mailto:[EMAIL PROTECTED] _ http://www.gx.nl/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Updating files without restarting Tomcat
I am using Tomcat 4. I have a .properties file in my WEB-INF/classes part of my work tree, which is read in using a ResourceBundle. My problem is that if I update this properties file it does not recognise the new version until I have restarted Tomcat. Is there a config value I can change so that I don't have to restart Tomcat each time I change the properties file? If there is can it apply to only certain files or sections of the application? I don't want Tomcat to check if .class files have changed everytime it uses them as this isn't necessary and will obviously effect performance. Thanks, Catharine -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
problem with mod_jk
I' ve a problem with mod_jk, i 've install jakarta-tomcat 3.2.4, apache 1.3.24 and I compile mod_jk for my OS (Freebsd). I insert in my httpd.conf the following lines: Include /usr/local/tomcat/conf/mod_jk.conf-auto When I start apache with apachectl start, in my screen view the follow error: Sintax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto: Cannot load /usr/local/apache/libexec/mod_jk.so into server: /usr/local/apache/libexec/mod_jk.so: Undefined symbol map_name_at /bin/apachectl start: http could not started I read one mini How-to for this argoment, they suggest yhe follow procedure: Scompact apache files In apache directory run this command: ./configure --prefix=/web/apache --enable-module=so --enable-rule= SHARED_CORE=yes make make install it's just?! How can resolve my problem?! P.S. excused for my understandable English -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: tomcat4 context problem
Tomcat 4.x is designed to automatically deploy applications. It's a feature. This is dependant on the appBase attribute of the Host element. For any unpacked directory (with a /WEB-INF web.xml file) under the appBase directory, a Context element will be generated automatically even though it may not mentioned in the server.xml file.You should probably modify the appBase property to an empty string. And then use absolute path for the docBase attributes when defining your Context elements. RS Oki DZ [EMAIL PROTECTED] on 05/01/2002 01:21:57 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To:Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: tomcat4 context problem On 04/30 18:51 [EMAIL PROTECTED] wrote: directory. Also uncomment the Context entry for ROOT in server.xml (if it isn't already) How do you turn off the auto-context feature of Tomcat...? I'd like to tell Tomcat to see the Context ... / elements in server.xml only. I mean, if there are directories that are not described in the Context ... /, leave them alone. Oki -- 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: Updating files without restarting Tomcat
Hi, In order for tomcat to reload your files, you have to add reloadable=true to your application context in server.xml. However, this will cause tomcat to restart each time one of yout classes has been changed or one of the jars in WEB-INF/lib. Not only, it'll effect performance, but creating a new class loader isn't so obvious, and might cause problems (If you use jni, for example). good luck, Tamir -Original Message- From: cbarnes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 12:16 PM To: Tomcat Users List Subject: Updating files without restarting Tomcat I am using Tomcat 4. I have a .properties file in my WEB-INF/classes part of my work tree, which is read in using a ResourceBundle. My problem is that if I update this properties file it does not recognise the new version until I have restarted Tomcat. Is there a config value I can change so that I don't have to restart Tomcat each time I change the properties file? If there is can it apply to only certain files or sections of the application? I don't want Tomcat to check if .class files have changed everytime it uses them as this isn't necessary and will obviously effect performance. Thanks, Catharine -- 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]
Getting to work Apache and Tomcat on Win2000
Hi Having installed Tomcat 4.0.4-b2 successfully on my Windows 2000 together with the Java Standard Tag Library and the Jakarta String Tag Library, I went on to install Apache 1.3.24 as well. Here the troubles started... I installed the webapp_module according to the instructions and added a connection to Tomcat with the following lines in Apache's httpd.conf: # The connection to Tomcat WebAppConnection tomcat warp localhost:8008 # The examples for JSP WebAppDeploy examples tomcat /examples # The examples for JSTL WebAppDeploy standard-doc.war tomcat /standard-doc WebAppDeploy standard-examples.war tomcat /standard-examples # The examples for the String Tag Library WebAppDeploy string-doc.war tomcat /string-doc WebAppDeploy string-examples.war tomcat /string-examples While everything works as long as I connect to Tomcat directly with http://localhost:8080/ (e.g. using http://localhost:8080/standard-doc/), as soon as I used Apache, the whole system becomes very unstable. I might get away with using one or two .war files, but then Apache crashes. Has anyone experienced the same problems? Thank best regards, Eric swissinfo/Swiss Radio International Eric Lewis IT Engineering Giacomettistrasse 1 CH-3000 Berne 15 Phone: ++41 31 350 95 42 Fax:++41 31 350 99 40 mailto:[EMAIL PROTECTED] Switzerland is everywhere. Stay connected! http://www.swissinfo.org http://mobile.swissinfo.org http:/wap.swissinfo.org SRG SSR idée suisse -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: problem with mod_jk
Christian , Are you sure mod_jk got to /usr/local/libexec/apache ? By default it goes to /usr/local/libexec . Ernst has a port build for mod_jk, however I use mod_webapp. Look and see if mod_jk is in /usr/local/libexec or /usr/local/libexec/apache also make sure to use apachectl stop , then start tomcat and then apachectl start If you just want to build from the ports , it works fine. Adrian Christian wrote: I' ve a problem with mod_jk, i 've install jakarta-tomcat 3.2.4, apache 1.3.24 and I compile mod_jk for my OS (Freebsd). I insert in my httpd.conf the following lines: Include /usr/local/tomcat/conf/mod_jk.conf-auto When I start apache with apachectl start, in my screen view the follow error: Sintax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto: Cannot load /usr/local/apache/libexec/mod_jk.so into server: /usr/local/apache/libexec/mod_jk.so: Undefined symbol map_name_at /bin/apachectl start: http could not started I read one mini How-to for this argoment, they suggest yhe follow procedure: Scompact apache files In apache directory run this command: ./configure --prefix=/web/apache --enable-module=so --enable-rule= SHARED_CORE=yes make make install it's just?! How can resolve my problem?! P.S. excused for my understandable English -- 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 Cocoon Question
Im using Cocoon 1.8.2 and Tomcat 3.2.4. IIS 5.0 as my Webserver. I have Tomcat processing my Cocoon xml, and IIS doing all of the static pages. My problem is this. If I go to http://foo.bar.com/index.xml it works fine, but if I go to http://foo.bar.com/ it gives me a directory listing of what is in that directory. Id like for it to default to the index.xml file. Can this be done?? Thanks Anthony Diodato Anthony Diodato Webmaster - IT Prophet 21, Inc. 19 West College Avenue Yardley, PA 19067 1-800-776-7438, ext. 4600 Fax: 215-321-8014 [EMAIL PROTECTED] http://www.p21.com/ Prophet 21 -- Powering the Distribution Industry for the Digital Age For the latest press releases from Prophet 21 -- http://www.p21.com/press/press.html * 2/12/2001 - Trading Partner Connect Offers Enterprise-to-Enterprise (E2E) Commerce * 2/9/2001 -- Prophet 21 CommerceCenter 8.0 is Now Available * 2/9/2001 -- Prophet 21 Upgrades and Enhances Prophet 21 Acclaim For the latest articles on Prophet 21 http://www.manufacturing.net/magazine/id/archives/2001/ind010.02/techupdate. htm http://www.manufacturing.net/magazine/id/develop/techmain01.1.htm http://www.manufacturing.net/magazine/id/archives/2000/ind1201/news.htm Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It is intended solely for the person or entity to which it is addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, action taken, or action omitted to be taken in reliance on it, is prohibited and may be unlawful. If you received this e-mail in error, please contact the sender and delete the material from any computer. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat Cocoon Question
I think this can be done by setting the welcome page to be index.xml. I think this is in web.xml, but I may have the xml file wrong. Do a find on text welcome in the .xml files under tomcat and you should find it. HTH, Bill Barnhill -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 5:46 AM To: '[EMAIL PROTECTED]' Subject: Tomcat Cocoon Question Im using Cocoon 1.8.2 and Tomcat 3.2.4. IIS 5.0 as my Webserver. I have Tomcat processing my Cocoon xml, and IIS doing all of the static pages. My problem is this. If I go to http://foo.bar.com/index.xml it works fine, but if I go to http://foo.bar.com/ it gives me a directory listing of what is in that directory. Id like for it to default to the index.xml file. Can this be done?? Thanks Anthony Diodato Anthony Diodato Webmaster - IT Prophet 21, Inc. 19 West College Avenue Yardley, PA 19067 1-800-776-7438, ext. 4600 Fax: 215-321-8014 [EMAIL PROTECTED] http://www.p21.com/ Prophet 21 -- Powering the Distribution Industry for the Digital Age For the latest press releases from Prophet 21 -- http://www.p21.com/press/press.html * 2/12/2001 - Trading Partner Connect Offers Enterprise-to-Enterprise (E2E) Commerce * 2/9/2001 -- Prophet 21 CommerceCenter 8.0 is Now Available * 2/9/2001 -- Prophet 21 Upgrades and Enhances Prophet 21 Acclaim For the latest articles on Prophet 21 http://www.manufacturing.net/magazine/id/archives/2001/ind010.02/techupd ate. htm http://www.manufacturing.net/magazine/id/develop/techmain01.1.htm http://www.manufacturing.net/magazine/id/archives/2000/ind1201/news.htm Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It is intended solely for the person or entity to which it is addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, action taken, or action omitted to be taken in reliance on it, is prohibited and may be unlawful. If you received this e-mail in error, please contact the sender and delete the material from any computer. -- 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: Apache 2.0 and Tomcat 4.0.3
Assuming you are using mod_jk JkMount /mycontext/*.jsp ajp13 When specifically doing this, you will have to make sure that you have a JkMount statement for all servlet mappings including default ones like *.jsp and all the ones specified in your own web.xml. At a minimum, you'd also want the following mappings: JkMount /admin/servlet ajp13 JkMount /admin/servlet/* ajp13 Then add more mappings based on any servlet-mapping entry in your web.xml Or, you can just do JkMount /mycontext ajp13 JkMount /mycontext/* ajp13 That forwards *all* requests to Tomcat If you use mod_webapp, the release versions don't differentiate between static and dynamic content. So, you would just do something like: WebAppConnection conn warp localhost:8008 WebAppDeploy mycontext conn /mycontext/ WebAppInfo /webapp-info/ however, if you are running under windows, I don't recommend using mod_webapp. It is pretty flaky so far. Jake At 11:09 AM 5/1/2002 +0300, you wrote: Hi guys, Just joined the community. I have a small question i've downloaded Apache 2.0 Tomcat 4.0.3 and i'm using Java SDK 1.4. how do i setup Apache to forward jsp requests to Tomcat. Thanks, Jamshed -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat Cocoon Question
hmmm..i think u did not get my question. as u said first of all i am using WEB-INF instead of web-inf. also abt the gui..i have html file under $tomcat_home/webapps/myownservlet/servlets and this html loads the applet class appletthread.class. first i put that appletthread.class in the same directory where this html file is present but now as you said i moved it to the base directory i.e $tomcat_home/webapps/myownservlet but it doesn't work .problem is not with directory structure i mean where we are placing files..because applet is being shown with empty 400 x 400 pixels but with no GUI components on it. so there is problem with the applet itself not the applet directory structure. also the html file need not have to be in $tomcat_home/webapps/myownservlet ..it can be somewhere like $tomcat_home/webapps/myownservlet/dirone/dirtwo because we anyway set that html page path in web-inf/web.xml web-app welcome-file-list welcome-file/dirone/dirtwo/servlettwo.html/welcome-file /welcome-file-list /web-app.. i have no clue. first of all there is issue with applet and then with hierarchy structure..help me thanks From: Anthony Diodato [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: Tomcat Cocoon Question Date: Wed, 1 May 2002 08:45:49 -0400 Im using Cocoon 1.8.2 and Tomcat 3.2.4. IIS 5.0 as my Webserver. I have Tomcat processing my Cocoon xml, and IIS doing all of the static pages. My problem is this. If I go to http://foo.bar.com/index.xml it works fine, but if I go to http://foo.bar.com/ it gives me a directory listing of what is in that directory. Id like for it to default to the index.xml file. Can this be done?? Thanks Anthony Diodato Anthony Diodato Webmaster - IT Prophet 21, Inc. 19 West College Avenue Yardley, PA 19067 1-800-776-7438, ext. 4600 Fax: 215-321-8014 [EMAIL PROTECTED] http://www.p21.com/ Prophet 21 -- Powering the Distribution Industry for the Digital Age For the latest press releases from Prophet 21 -- http://www.p21.com/press/press.html * 2/12/2001 - Trading Partner Connect Offers Enterprise-to-Enterprise (E2E) Commerce * 2/9/2001 -- Prophet 21 CommerceCenter 8.0 is Now Available * 2/9/2001 -- Prophet 21 Upgrades and Enhances Prophet 21 Acclaim For the latest articles on Prophet 21 http://www.manufacturing.net/magazine/id/archives/2001/ind010.02/techupdate. htm http://www.manufacturing.net/magazine/id/develop/techmain01.1.htm http://www.manufacturing.net/magazine/id/archives/2000/ind1201/news.htm Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It is intended solely for the person or entity to which it is addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, action taken, or action omitted to be taken in reliance on it, is prohibited and may be unlawful. If you received this e-mail in error, please contact the sender and delete the material from any computer. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat Cocoon Question
oops ..i am sorry..i misplaced my question in the wrong place..sorry From: Suresh Akula [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Tomcat Cocoon Question Date: Wed, 01 May 2002 13:11:26 + hmmm..i think u did not get my question. as u said first of all i am using WEB-INF instead of web-inf. also abt the gui..i have html file under $tomcat_home/webapps/myownservlet/servlets and this html loads the applet class appletthread.class. first i put that appletthread.class in the same directory where this html file is present but now as you said i moved it to the base directory i.e $tomcat_home/webapps/myownservlet but it doesn't work .problem is not with directory structure i mean where we are placing files..because applet is being shown with empty 400 x 400 pixels but with no GUI components on it. so there is problem with the applet itself not the applet directory structure. also the html file need not have to be in $tomcat_home/webapps/myownservlet ..it can be somewhere like $tomcat_home/webapps/myownservlet/dirone/dirtwo because we anyway set that html page path in web-inf/web.xml web-app welcome-file-list welcome-file/dirone/dirtwo/servlettwo.html/welcome-file /welcome-file-list /web-app.. i have no clue. first of all there is issue with applet and then with hierarchy structure..help me thanks From: Anthony Diodato [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: Tomcat Cocoon Question Date: Wed, 1 May 2002 08:45:49 -0400 Im using Cocoon 1.8.2 and Tomcat 3.2.4. IIS 5.0 as my Webserver. I have Tomcat processing my Cocoon xml, and IIS doing all of the static pages. My problem is this. If I go to http://foo.bar.com/index.xml it works fine, but if I go to http://foo.bar.com/ it gives me a directory listing of what is in that directory. Id like for it to default to the index.xml file. Can this be done?? Thanks Anthony Diodato Anthony Diodato Webmaster - IT Prophet 21, Inc. 19 West College Avenue Yardley, PA 19067 1-800-776-7438, ext. 4600 Fax: 215-321-8014 [EMAIL PROTECTED] http://www.p21.com/ Prophet 21 -- Powering the Distribution Industry for the Digital Age For the latest press releases from Prophet 21 -- http://www.p21.com/press/press.html * 2/12/2001 - Trading Partner Connect Offers Enterprise-to-Enterprise (E2E) Commerce * 2/9/2001 -- Prophet 21 CommerceCenter 8.0 is Now Available * 2/9/2001 -- Prophet 21 Upgrades and Enhances Prophet 21 Acclaim For the latest articles on Prophet 21 http://www.manufacturing.net/magazine/id/archives/2001/ind010.02/techupdate. htm http://www.manufacturing.net/magazine/id/develop/techmain01.1.htm http://www.manufacturing.net/magazine/id/archives/2000/ind1201/news.htm Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It is intended solely for the person or entity to which it is addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, action taken, or action omitted to be taken in reliance on it, is prohibited and may be unlawful. If you received this e-mail in error, please contact the sender and delete the material from any computer. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: No Realm has been configured to authenticate against
The container can't see your mysql dirver if you put it in WEB-INF/lib...Anything you specifiy in the server.xml for the container to manage needs to be in either server/lib or common/lib. If you also want your webapp to see it also, then the only place for it is common/lib. Jake At 10:09 AM 5/1/2002 +0200, you wrote: Hi, I am trying to get my IIS with Tomcat to work with a JDBCRealm security. For some reason I can't get it working. When I try to start the tomcat server I get all 404 errors in my browser. Does anybody have a sugestion for me? This is the Log I get when I try to start Tomcat. 2002-05-01 10:01:47 WebappLoader[/provitel]: Deploying class repositories to work directory C:\Tomcat4\work\localhost\provitel 2002-05-01 10:01:47 WebappLoader[/provitel]: Deploy JAR /WEB-INF/lib/mm.mysql-2.0.13-bin.jar to C:\Tomcat4\webapps\provitel\WEB-INF\lib\mm.mysql-2.0.13-bin.jar 2002-05-01 10:01:47 WebappLoader[/provitel]: Reloading checks are enabled for this Context 2002-05-01 10:01:47 StandardManager[/provitel]: Seeding random number generator class java.security.SecureRandom 2002-05-01 10:01:47 StandardManager[/provitel]: Seeding of random number generator has been completed 2002-05-01 10:01:48 ContextConfig[/provitel]: No Realm has been configured to authenticate against 2002-05-01 10:01:48 ContextConfig[/provitel]: Marking this application unavailable due to previous error(s) 2002-05-01 10:01:48 StandardContext[/provitel]: Error initializing naming context for context /provitel 2002-05-01 10:01:48 StandardContext[/provitel]: Context startup failed due to previous errors 2002-05-01 10:01:48 StandardContext[/provitel]: Error initializing naming context for context /provitel 2002-05-01 10:03:46 WebappLoader[/provitel]: Deploying class repositories to work directory C:\Tomcat4\work\localhost\provitel 2002-05-01 10:03:46 WebappLoader[/provitel]: Deploy JAR /WEB-INF/lib/mm.mysql-2.0.13-bin.jar to C:\Tomcat4\webapps\provitel\WEB-INF\lib\mm.mysql-2.0.13-bin.jar 2002-05-01 10:03:46 WebappLoader[/provitel]: Reloading checks are enabled for this Context 2002-05-01 10:03:46 StandardManager[/provitel]: Seeding random number generator class java.security.SecureRandom 2002-05-01 10:03:46 StandardManager[/provitel]: Seeding of random number generator has been completed 2002-05-01 10:03:46 ContextConfig[/provitel]: No Realm has been configured to authenticate against 2002-05-01 10:03:46 ContextConfig[/provitel]: Marking this application unavailable due to previous error(s) 2002-05-01 10:03:46 StandardContext[/provitel]: Error initializing naming context for context /provitel 2002-05-01 10:03:46 StandardContext[/provitel]: Context startup failed due to previous errors 2002-05-01 10:03:46 StandardContext[/provitel]: Error initializing naming context for context /provitel This is my server.xml file realm classname=org.apache.catalina.realm.JDBCRealm debug=99 drivername=org.gjt.mm.mysql.Driver connectionurl=jdbc:mysql://localhost/tomcatusers?user=heinin_m;password=zer o4u usertable=users usernamecol=user_name usercredcol=user_pass userroletable=user_roles rolenamecol=role_name/ I have an mysql windows server installed on my pc with in it the tomcatusers database as discribed in serveral how-to documents. This is my wb.xml file : security-constraint display-nameSecurity Constraint/display-name web-resource-collection web-resource-nameProtected Area/web-resource-name !-- Define the context-relative URL(s) to be protected -- url-pattern/jsp/security/*/url-pattern !-- If you list http methods, only those methods are protected -- http-methodDELETE/http-method http-methodGET/http-method http-methodPOST/http-method http-methodPUT/http-method /web-resource-collection auth-constraint !-- Anyone with one of the listed roles may access this area -- role-nameheinin_m/role-name role-nametomcat/role-name role-namerole1/role-name /auth-constraint /security-constraint !-- Default login configuration uses form-based authentication -- login-config auth-methodBASIC/auth-method realm-nameTomcat Supported Realm/realm-name form-login-config form-login-page/jsp/security/protected/login.jsp/form-login-page form-error-page/jsp/security/protected/error.jsp/form-error-page /form-login-config /login-config Regards, Maarten Disclaimer This communication together with any attachments transmitted with it ('this E-mail') is intended only for the use of the addressee and may contain information which is privileged and confidential. If the reader of this E-mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are notified that any use of this E-mail is prohibited. Addressees should ensure this E-mail is checked for viruses. The
Re: Getting to work Apache and Tomcat on Win2000
Yes, everyone has experience problems with mod_webapp on windows. My suggestion is don't use it at all. Use mod_jk until mod_webapp becomes more stable. Jake At 02:28 PM 5/1/2002 +0200, you wrote: Hi Having installed Tomcat 4.0.4-b2 successfully on my Windows 2000 together with the Java Standard Tag Library and the Jakarta String Tag Library, I went on to install Apache 1.3.24 as well. Here the troubles started... I installed the webapp_module according to the instructions and added a connection to Tomcat with the following lines in Apache's httpd.conf: # The connection to Tomcat WebAppConnection tomcat warp localhost:8008 # The examples for JSP WebAppDeploy examples tomcat /examples # The examples for JSTL WebAppDeploy standard-doc.war tomcat /standard-doc WebAppDeploy standard-examples.war tomcat /standard-examples # The examples for the String Tag Library WebAppDeploy string-doc.war tomcat /string-doc WebAppDeploy string-examples.war tomcat /string-examples While everything works as long as I connect to Tomcat directly with http://localhost:8080/ (e.g. using http://localhost:8080/standard-doc/), as soon as I used Apache, the whole system becomes very unstable. I might get away with using one or two .war files, but then Apache crashes. Has anyone experienced the same problems? Thank best regards, Eric swissinfo/Swiss Radio International Eric Lewis IT Engineering Giacomettistrasse 1 CH-3000 Berne 15 Phone: ++41 31 350 95 42 Fax:++41 31 350 99 40 mailto:[EMAIL PROTECTED] Switzerland is everywhere. Stay connected! http://www.swissinfo.org http://mobile.swissinfo.org http:/wap.swissinfo.org SRG SSR idée suisse -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat Cocoon Question
Sure, Add the following to your web.xml... welcome-file-list welcome-fileindex.xml/welcome-file welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file /welcome-file-list At least you can do that in the Servlet 2.3 spec. I would suggest upgrading to Tomcat 4.x.x anyway. Jake At 08:45 AM 5/1/2002 -0400, you wrote: Im using Cocoon 1.8.2 and Tomcat 3.2.4. IIS 5.0 as my Webserver. I have Tomcat processing my Cocoon xml, and IIS doing all of the static pages. My problem is this. If I go to http://foo.bar.com/index.xml it works fine, but if I go to http://foo.bar.com/ it gives me a directory listing of what is in that directory. Id like for it to default to the index.xml file. Can this be done?? Thanks Anthony Diodato Anthony Diodato Webmaster - IT Prophet 21, Inc. 19 West College Avenue Yardley, PA 19067 1-800-776-7438, ext. 4600 Fax: 215-321-8014 [EMAIL PROTECTED] http://www.p21.com/ Prophet 21 -- Powering the Distribution Industry for the Digital Age For the latest press releases from Prophet 21 -- http://www.p21.com/press/press.html * 2/12/2001 - Trading Partner Connect Offers Enterprise-to-Enterprise (E2E) Commerce * 2/9/2001 -- Prophet 21 CommerceCenter 8.0 is Now Available * 2/9/2001 -- Prophet 21 Upgrades and Enhances Prophet 21 Acclaim For the latest articles on Prophet 21 http://www.manufacturing.net/magazine/id/archives/2001/ind010.02/techupdate. htm http://www.manufacturing.net/magazine/id/develop/techmain01.1.htm http://www.manufacturing.net/magazine/id/archives/2000/ind1201/news.htm Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It is intended solely for the person or entity to which it is addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, action taken, or action omitted to be taken in reliance on it, is prohibited and may be unlawful. If you received this e-mail in error, please contact the sender and delete the material from any computer. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: XML Parsers on Solaris vs. Windows
Can anybody answer this question please? Thanks Donie -Original Message- From: Donie Kelly [mailto:[EMAIL PROTECTED]] Sent: April 29, 2002 12:58 To: 'Tomcat Users List' Subject: XML Parsers on Solaris vs. Windows Hi all We are wondering why crimson.jar and jaxp.jar is shipped with the windows version of tomcat and Solaris ships with xerces.jar Can anybody explain the differences in the use of Jar files in the common/lib directory? Regards Donie -- 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: how to set application variable in tomcat
-Original Message- From: Deep Singh Bhau [mailto:[EMAIL PROTECTED]] Sent: 1 May 2002 09:37 To: [EMAIL PROTECTED] Subject: how to set application variable in tomcat Hi Deep, could any one plz tell me how to set application variable in tomcat jsp:useBean id=myAppVar scope=application class=com.foobar.system.SystemProperties / Thanx in advance HTH! John regards, Deep -- John Niven Please reply through mailing list -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat Cocoon Question
Jacob, Still not working. My welcome file list is this welcome-file-list welcome-file index.xml /welcome-file /welcome-file-list I took out the html jsp stuff, and it is still showing a directory listing. About upgrading to Tomcat 4, I initially started with Tomcat 4, but ran into problems with IIS. IIS wasn't my decision, is was a company decision, so there is really nothing I can do about that. If you have any other thoughts, please let me know. Thanks Anthony -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:26 AM To: Tomcat Users List Subject: Re: Tomcat Cocoon Question Sure, Add the following to your web.xml... welcome-file-list welcome-fileindex.xml/welcome-file welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file /welcome-file-list At least you can do that in the Servlet 2.3 spec. I would suggest upgrading to Tomcat 4.x.x anyway. Jake At 08:45 AM 5/1/2002 -0400, you wrote: Im using Cocoon 1.8.2 and Tomcat 3.2.4. IIS 5.0 as my Webserver. I have Tomcat processing my Cocoon xml, and IIS doing all of the static pages. My problem is this. If I go to http://foo.bar.com/index.xml it works fine, but if I go to http://foo.bar.com/ it gives me a directory listing of what is in that directory. Id like for it to default to the index.xml file. Can this be done?? Thanks Anthony Diodato Anthony Diodato Webmaster - IT Prophet 21, Inc. 19 West College Avenue Yardley, PA 19067 1-800-776-7438, ext. 4600 Fax: 215-321-8014 [EMAIL PROTECTED] http://www.p21.com/ Prophet 21 -- Powering the Distribution Industry for the Digital Age For the latest press releases from Prophet 21 -- http://www.p21.com/press/press.html * 2/12/2001 - Trading Partner Connect Offers Enterprise-to-Enterprise (E2E) Commerce * 2/9/2001 -- Prophet 21 CommerceCenter 8.0 is Now Available * 2/9/2001 -- Prophet 21 Upgrades and Enhances Prophet 21 Acclaim For the latest articles on Prophet 21 http://www.manufacturing.net/magazine/id/archives/2001/ind010.02/techupdate . htm http://www.manufacturing.net/magazine/id/develop/techmain01.1.htm http://www.manufacturing.net/magazine/id/archives/2000/ind1201/news.htm Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It is intended solely for the person or entity to which it is addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, action taken, or action omitted to be taken in reliance on it, is prohibited and may be unlawful. If you received this e-mail in error, please contact the sender and delete the material from any computer. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It is intended solely for the person or entity to which it is addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, action taken, or action omitted to be taken in reliance on it, is prohibited and may be unlawful. If you received this e-mail in error, please contact the sender and delete the material from any computer. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat Cocoon Question
Bill, Still not working. My welcome file list is this welcome-file-list welcome-file index.xml /welcome-file /welcome-file-list And you right, it was in web.xml, but after I made the changes, and re-started Tomcat, I still get the directory listing. If you have any other thoughts, please let me know. Thanks Anthony -Original Message- From: Bill Barnhill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 12:00 PM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question I think this can be done by setting the welcome page to be index.xml. I think this is in web.xml, but I may have the xml file wrong. Do a find on text welcome in the .xml files under tomcat and you should find it. HTH, Bill Barnhill -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 5:46 AM To: '[EMAIL PROTECTED]' Subject: Tomcat Cocoon Question Im using Cocoon 1.8.2 and Tomcat 3.2.4. IIS 5.0 as my Webserver. I have Tomcat processing my Cocoon xml, and IIS doing all of the static pages. My problem is this. If I go to http://foo.bar.com/index.xml it works fine, but if I go to http://foo.bar.com/ it gives me a directory listing of what is in that directory. Id like for it to default to the index.xml file. Can this be done?? Thanks Anthony Diodato Anthony Diodato Webmaster - IT Prophet 21, Inc. 19 West College Avenue Yardley, PA 19067 1-800-776-7438, ext. 4600 Fax: 215-321-8014 [EMAIL PROTECTED] http://www.p21.com/ Prophet 21 -- Powering the Distribution Industry for the Digital Age For the latest press releases from Prophet 21 -- http://www.p21.com/press/press.html * 2/12/2001 - Trading Partner Connect Offers Enterprise-to-Enterprise (E2E) Commerce * 2/9/2001 -- Prophet 21 CommerceCenter 8.0 is Now Available * 2/9/2001 -- Prophet 21 Upgrades and Enhances Prophet 21 Acclaim For the latest articles on Prophet 21 http://www.manufacturing.net/magazine/id/archives/2001/ind010.02/techupd ate. htm http://www.manufacturing.net/magazine/id/develop/techmain01.1.htm http://www.manufacturing.net/magazine/id/archives/2000/ind1201/news.htm Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It is intended solely for the person or entity to which it is addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, action taken, or action omitted to be taken in reliance on it, is prohibited and may be unlawful. If you received this e-mail in error, please contact the sender and delete the material from any computer. -- 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] Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It is intended solely for the person or entity to which it is addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, action taken, or action omitted to be taken in reliance on it, is prohibited and may be unlawful. If you received this e-mail in error, please contact the sender and delete the material from any computer. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat Cocoon Question
For http://foo.bar.com/, who serves the directory listing? If IIS is serving the listing, making changes on the Tomcat side isn't going to alter this behavior. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:41 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Bill, Still not working. My welcome file list is this welcome-file-list welcome-file index.xml /welcome-file /welcome-file-list And you right, it was in web.xml, but after I made the changes, and re-started Tomcat, I still get the directory listing. If you have any other thoughts, please let me know. Thanks Anthony -Original Message- From: Bill Barnhill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 12:00 PM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question I think this can be done by setting the welcome page to be index.xml. I think this is in web.xml, but I may have the xml file wrong. Do a find on text welcome in the .xml files under tomcat and you should find it. HTH, Bill Barnhill -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 5:46 AM To: '[EMAIL PROTECTED]' Subject: Tomcat Cocoon Question Im using Cocoon 1.8.2 and Tomcat 3.2.4. IIS 5.0 as my Webserver. I have Tomcat processing my Cocoon xml, and IIS doing all of the static pages. My problem is this. If I go to http://foo.bar.com/index.xml it works fine, but if I go to http://foo.bar.com/ it gives me a directory listing of what is in that directory. Id like for it to default to the index.xml file. Can this be done?? Thanks Anthony Diodato Anthony Diodato Webmaster - IT Prophet 21, Inc. 19 West College Avenue Yardley, PA 19067 1-800-776-7438, ext. 4600 Fax: 215-321-8014 [EMAIL PROTECTED] http://www.p21.com/ Prophet 21 -- Powering the Distribution Industry for the Digital Age For the latest press releases from Prophet 21 -- http://www.p21.com/press/press.html * 2/12/2001 - Trading Partner Connect Offers Enterprise-to-Enterprise (E2E) Commerce * 2/9/2001 -- Prophet 21 CommerceCenter 8.0 is Now Available * 2/9/2001 -- Prophet 21 Upgrades and Enhances Prophet 21 Acclaim For the latest articles on Prophet 21 http://www.manufacturing.net/magazine/id/archives/2001/ind010. 02/techupd ate. htm http://www.manufacturing.net/magazine/id/develop/techmain01.1.htm http://www.manufacturing.net/magazine/id/archives/2000/ind1201 /news.htm Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It is intended solely for the person or entity to which it is addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, action taken, or action omitted to be taken in reliance on it, is prohibited and may be unlawful. If you received this e-mail in error, please contact the sender and delete the material from any computer. -- 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] Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It is intended solely for the person or entity to which it is addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, action taken, or action omitted to be taken in reliance on it, is prohibited and may be unlawful. If you received this e-mail in error, please contact the sender and delete the material from any computer. -- 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 Cocoon Question
IIS serves that page, but I guess I should've been more clear. What Im really looking for is this. http://foo.bar.com/cocoon/ this is the page that Id like to default to the index.xml file The Context /cocoon is served by Tomcat, and this is exactly where my problem lies. Thanks Anthony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:45 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question For http://foo.bar.com/, who serves the directory listing? If IIS is serving the listing, making changes on the Tomcat side isn't going to alter this behavior. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:41 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Bill, Still not working. My welcome file list is this welcome-file-list welcome-file index.xml /welcome-file /welcome-file-list And you right, it was in web.xml, but after I made the changes, and re-started Tomcat, I still get the directory listing. If you have any other thoughts, please let me know. Thanks Anthony -Original Message- From: Bill Barnhill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 12:00 PM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question I think this can be done by setting the welcome page to be index.xml. I think this is in web.xml, but I may have the xml file wrong. Do a find on text welcome in the .xml files under tomcat and you should find it. HTH, Bill Barnhill -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 5:46 AM To: '[EMAIL PROTECTED]' Subject: Tomcat Cocoon Question Im using Cocoon 1.8.2 and Tomcat 3.2.4. IIS 5.0 as my Webserver. I have Tomcat processing my Cocoon xml, and IIS doing all of the static pages. My problem is this. If I go to http://foo.bar.com/index.xml it works fine, but if I go to http://foo.bar.com/ it gives me a directory listing of what is in that directory. Id like for it to default to the index.xml file. Can this be done?? Thanks Anthony Diodato Anthony Diodato Webmaster - IT Prophet 21, Inc. 19 West College Avenue Yardley, PA 19067 1-800-776-7438, ext. 4600 Fax: 215-321-8014 [EMAIL PROTECTED] http://www.p21.com/ Prophet 21 -- Powering the Distribution Industry for the Digital Age For the latest press releases from Prophet 21 -- http://www.p21.com/press/press.html * 2/12/2001 - Trading Partner Connect Offers Enterprise-to-Enterprise (E2E) Commerce * 2/9/2001 -- Prophet 21 CommerceCenter 8.0 is Now Available * 2/9/2001 -- Prophet 21 Upgrades and Enhances Prophet 21 Acclaim For the latest articles on Prophet 21 http://www.manufacturing.net/magazine/id/archives/2001/ind010. 02/techupd ate. htm http://www.manufacturing.net/magazine/id/develop/techmain01.1.htm http://www.manufacturing.net/magazine/id/archives/2000/ind1201 /news.htm Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It is intended solely for the person or entity to which it is addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, action taken, or action omitted to be taken in reliance on it, is prohibited and may be unlawful. If you received this e-mail in error, please contact the sender and delete the material from any computer. -- 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] Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It is intended solely for the person or entity to which it is addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, action taken, or action omitted to be taken in reliance on it, is prohibited and may be unlawful. If you received this e-mail in error, please contact the sender and delete the material from any computer. -- 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] Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It
RE: Getting to work Apache and Tomcat on Win2000
Is there a definitive guide to installing mod_jk on Windows? I'm kind of confused, because the documentation speaks about the Coyote JK 2 Connector, and if I look at the distribution at http://jakarta.apache.org/builds/jakarta-tomcat-connectors/coyote/release/v1 .0-b8/ I only see JARs, no Apache modules. Searching for mod_jk in the Apache modules doesn't bring any results. Searching for mod_jk with Google brings me to http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html (is this still valid?) and from there to http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/bin/win32/i386/ mod_jk.zip However, I can't bring all the pieces of this puzzle together... Regards, Eric -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: Mittwoch, 1. Mai 2002 15:23 To: Tomcat Users List Subject: Re: Getting to work Apache and Tomcat on Win2000 Yes, everyone has experience problems with mod_webapp on windows. My suggestion is don't use it at all. Use mod_jk until mod_webapp becomes more stable. Jake At 02:28 PM 5/1/2002 +0200, you wrote: Hi Having installed Tomcat 4.0.4-b2 successfully on my Windows 2000 together with the Java Standard Tag Library and the Jakarta String Tag Library, I went on to install Apache 1.3.24 as well. Here the troubles started... I installed the webapp_module according to the instructions and added a connection to Tomcat with the following lines in Apache's httpd.conf: # The connection to Tomcat WebAppConnection tomcat warp localhost:8008 # The examples for JSP WebAppDeploy examples tomcat /examples # The examples for JSTL WebAppDeploy standard-doc.war tomcat /standard-doc WebAppDeploy standard-examples.war tomcat /standard-examples # The examples for the String Tag Library WebAppDeploy string-doc.war tomcat /string-doc WebAppDeploy string-examples.war tomcat /string-examples While everything works as long as I connect to Tomcat directly with http://localhost:8080/ (e.g. using http://localhost:8080/standard-doc/), as soon as I used Apache, the whole system becomes very unstable. I might get away with using one or two .war files, but then Apache crashes. Has anyone experienced the same problems? Thank best regards, Eric swissinfo/Swiss Radio International Eric Lewis IT Engineering Giacomettistrasse 1 CH-3000 Berne 15 Phone: ++41 31 350 95 42 Fax:++41 31 350 99 40 mailto:[EMAIL PROTECTED] Switzerland is everywhere. Stay connected! http://www.swissinfo.org http://mobile.swissinfo.org http:/wap.swissinfo.org SRG SSR idée suisse -- 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: Getting to work Apache and Tomcat on Win2000
here is a good link Apache 2.0.x running with Tomcat 4.0.3 via mod_jk on w2k http://www.acg-gmbh.de/mod_jk/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 8:55 AM To: [EMAIL PROTECTED] Subject: RE: Getting to work Apache and Tomcat on Win2000 Is there a definitive guide to installing mod_jk on Windows? I'm kind of confused, because the documentation speaks about the Coyote JK 2 Connector, and if I look at the distribution at http://jakarta.apache.org/builds/jakarta-tomcat-connectors/coyote/release/v1 .0-b8/ I only see JARs, no Apache modules. Searching for mod_jk in the Apache modules doesn't bring any results. Searching for mod_jk with Google brings me to http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html (is this still valid?) and from there to http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/bin/win32/i386/ mod_jk.zip However, I can't bring all the pieces of this puzzle together... Regards, Eric -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: Mittwoch, 1. Mai 2002 15:23 To: Tomcat Users List Subject: Re: Getting to work Apache and Tomcat on Win2000 Yes, everyone has experience problems with mod_webapp on windows. My suggestion is don't use it at all. Use mod_jk until mod_webapp becomes more stable. Jake At 02:28 PM 5/1/2002 +0200, you wrote: Hi Having installed Tomcat 4.0.4-b2 successfully on my Windows 2000 together with the Java Standard Tag Library and the Jakarta String Tag Library, I went on to install Apache 1.3.24 as well. Here the troubles started... I installed the webapp_module according to the instructions and added a connection to Tomcat with the following lines in Apache's httpd.conf: # The connection to Tomcat WebAppConnection tomcat warp localhost:8008 # The examples for JSP WebAppDeploy examples tomcat /examples # The examples for JSTL WebAppDeploy standard-doc.war tomcat /standard-doc WebAppDeploy standard-examples.war tomcat /standard-examples # The examples for the String Tag Library WebAppDeploy string-doc.war tomcat /string-doc WebAppDeploy string-examples.war tomcat /string-examples While everything works as long as I connect to Tomcat directly with http://localhost:8080/ (e.g. using http://localhost:8080/standard-doc/), as soon as I used Apache, the whole system becomes very unstable. I might get away with using one or two .war files, but then Apache crashes. Has anyone experienced the same problems? Thank best regards, Eric swissinfo/Swiss Radio International Eric Lewis IT Engineering Giacomettistrasse 1 CH-3000 Berne 15 Phone: ++41 31 350 95 42 Fax:++41 31 350 99 40 mailto:[EMAIL PROTECTED] Switzerland is everywhere. Stay connected! http://www.swissinfo.org http://mobile.swissinfo.org http:/wap.swissinfo.org SRG SSR idée suisse -- 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: Tomcat Cocoon Question
Does the request http://foo.bar.com/cocoon/ get mapped to Tomcat? If not, IIS still serves the directory listing. If the listing doesn't identify Tomcat, then Tomcat isn't generating the listing. The statement that IIS doing all of the static pages suggests that IIS is likely to be doing the listings too. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:51 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question IIS serves that page, but I guess I should've been more clear. What Im really looking for is this. http://foo.bar.com/cocoon/ this is the page that Id like to default to the index.xml file The Context /cocoon is served by Tomcat, and this is exactly where my problem lies. Thanks Anthony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:45 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question For http://foo.bar.com/, who serves the directory listing? If IIS is serving the listing, making changes on the Tomcat side isn't going to alter this behavior. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:41 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Bill, Still not working. My welcome file list is this welcome-file-list welcome-file index.xml /welcome-file /welcome-file-list And you right, it was in web.xml, but after I made the changes, and re-started Tomcat, I still get the directory listing. If you have any other thoughts, please let me know. Thanks Anthony -Original Message- From: Bill Barnhill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 12:00 PM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question I think this can be done by setting the welcome page to be index.xml. I think this is in web.xml, but I may have the xml file wrong. Do a find on text welcome in the .xml files under tomcat and you should find it. HTH, Bill Barnhill -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 5:46 AM To: '[EMAIL PROTECTED]' Subject: Tomcat Cocoon Question Im using Cocoon 1.8.2 and Tomcat 3.2.4. IIS 5.0 as my Webserver. I have Tomcat processing my Cocoon xml, and IIS doing all of the static pages. My problem is this. If I go to http://foo.bar.com/index.xml it works fine, but if I go to http://foo.bar.com/ it gives me a directory listing of what is in that directory. Id like for it to default to the index.xml file. Can this be done?? Thanks Anthony Diodato Anthony Diodato Webmaster - IT Prophet 21, Inc. 19 West College Avenue Yardley, PA 19067 1-800-776-7438, ext. 4600 Fax: 215-321-8014 [EMAIL PROTECTED] http://www.p21.com/ Prophet 21 -- Powering the Distribution Industry for the Digital Age For the latest press releases from Prophet 21 -- http://www.p21.com/press/press.html * 2/12/2001 - Trading Partner Connect Offers Enterprise-to-Enterprise (E2E) Commerce * 2/9/2001 -- Prophet 21 CommerceCenter 8.0 is Now Available * 2/9/2001 -- Prophet 21 Upgrades and Enhances Prophet 21 Acclaim For the latest articles on Prophet 21 http://www.manufacturing.net/magazine/id/archives/2001/ind010. 02/techupd ate. htm http://www.manufacturing.net/magazine/id/develop/techmain01.1.htm http://www.manufacturing.net/magazine/id/archives/2000/ind1201 /news.htm Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It is intended solely for the person or entity to which it is addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, action taken, or action omitted to be taken in reliance on it, is prohibited and may be unlawful. If you received this e-mail in error, please contact the sender and delete the material from any computer. -- 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] Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It is intended solely for the person or entity to which it is addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure,
ISAPI Filter and OPTIONS Dav Method.
Using: Tomcat 4.0.3. Slide 1.0.16. ISAPI Filter from J-T-C WebDrive 5.1 (Client) IIS 5.0 I have been having an issue where the ISAPI Filter dies whenever receiving an OPTIONS request. It looks like HttpFilterProc gets called and does it work, but somewhere between IIS doing something and the call to HttpExtensionProc, the server sends back a 500 Internal Server Error Does anyone have any idea what may be going on. Just to test what would happen, I hacked the HttpFilterProc method to to catch when an OPTIONS request is received and return a OPTIONS response. I made the HttpFilterProc method, at that point, return with a SF_STATUS_REQ_FINISHED. With that, I can connect to the server and get a list of folders and files through the client. I can even copy out from the client to my desktop. However, I do encounter another 500 Internal Server Error when I attempt a PUT (to add a file). I say that to say this: there is obviously a problem in the filter with it not passing headers (the method in particular) back to IIS or from IIS to the HttpExtensionProc method. As I am not that proficient is IIS dev soI have not a clue what is happening. Is an IIS header missing or something? Can anyone aid here, so that I do not have to continue to hack it to get it to work? The request never goes as far as to get passed on to tomcat. The communication (when the problem occurs), is only between IIS and the isapi_redirect.dll. I don't think the AJP 13 Connector even comes into play at this point. Can someone verify that for me? Is this the correct chain for the request: IIS - filter -IIS - extension - AJP13 Connector - Tomcat - Web Application (in this case: slide 1.0.16) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat Cocoon Question
Larry, How can I be sure. I know Tomcat is doing something with that directory, because all of the xml pages are using Java, and I know IIS cant serve them without some help. Inside of my server.xml file Im doing this. Context path=/cocoon docBase=webapps/cocoon debug=0 reloadable=true /Context I thought this mapped the /cocoon context to Tomcat.. Now Im really confused. The Home Directory for IIS is pointing to c:\jakarta-tomcat-3.2.4\webapps Should this be changed too?? Thanks Tony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:04 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Does the request http://foo.bar.com/cocoon/ get mapped to Tomcat? If not, IIS still serves the directory listing. If the listing doesn't identify Tomcat, then Tomcat isn't generating the listing. The statement that IIS doing all of the static pages suggests that IIS is likely to be doing the listings too. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:51 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question IIS serves that page, but I guess I should've been more clear. What Im really looking for is this. http://foo.bar.com/cocoon/ this is the page that Id like to default to the index.xml file The Context /cocoon is served by Tomcat, and this is exactly where my problem lies. Thanks Anthony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:45 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question For http://foo.bar.com/, who serves the directory listing? If IIS is serving the listing, making changes on the Tomcat side isn't going to alter this behavior. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:41 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Bill, Still not working. My welcome file list is this welcome-file-list welcome-file index.xml /welcome-file /welcome-file-list And you right, it was in web.xml, but after I made the changes, and re-started Tomcat, I still get the directory listing. If you have any other thoughts, please let me know. Thanks Anthony -Original Message- From: Bill Barnhill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 12:00 PM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question I think this can be done by setting the welcome page to be index.xml. I think this is in web.xml, but I may have the xml file wrong. Do a find on text welcome in the .xml files under tomcat and you should find it. HTH, Bill Barnhill -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 5:46 AM To: '[EMAIL PROTECTED]' Subject: Tomcat Cocoon Question Im using Cocoon 1.8.2 and Tomcat 3.2.4. IIS 5.0 as my Webserver. I have Tomcat processing my Cocoon xml, and IIS doing all of the static pages. My problem is this. If I go to http://foo.bar.com/index.xml it works fine, but if I go to http://foo.bar.com/ it gives me a directory listing of what is in that directory. Id like for it to default to the index.xml file. Can this be done?? Thanks Anthony Diodato Anthony Diodato Webmaster - IT Prophet 21, Inc. 19 West College Avenue Yardley, PA 19067 1-800-776-7438, ext. 4600 Fax: 215-321-8014 [EMAIL PROTECTED] http://www.p21.com/ Prophet 21 -- Powering the Distribution Industry for the Digital Age For the latest press releases from Prophet 21 -- http://www.p21.com/press/press.html * 2/12/2001 - Trading Partner Connect Offers Enterprise-to-Enterprise (E2E) Commerce * 2/9/2001 -- Prophet 21 CommerceCenter 8.0 is Now Available * 2/9/2001 -- Prophet 21 Upgrades and Enhances Prophet 21 Acclaim For the latest articles on Prophet 21 http://www.manufacturing.net/magazine/id/archives/2001/ind010. 02/techupd ate. htm http://www.manufacturing.net/magazine/id/develop/techmain01.1.htm http://www.manufacturing.net/magazine/id/archives/2000/ind1201 /news.htm Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It is intended solely for the person or entity to which it is addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, action taken, or action omitted to be taken in reliance on it, is prohibited and may be unlawful. If you received this e-mail in error, please contact the
RE: Tomcat Cocoon Question
IIS is set up to serve static content. It needs to have mappings to know what to forward to Tomcat. What you need to do is put index.xml in IIS's default file list. Then, a call to the root of the directory will get forwarded to index.xml which IIS will then know to forward to Tomcat...as long as you've specified *.xml files to be mapped to Tomcat. I can't remember what the syntax for that is? Maybe something like /mycontext/*.xml=ajp1.2 in uriworkermap.properties? Jake At 10:10 AM 5/1/2002 -0400, you wrote: Larry, How can I be sure. I know Tomcat is doing something with that directory, because all of the xml pages are using Java, and I know IIS cant serve them without some help. Inside of my server.xml file Im doing this. Context path=/cocoon docBase=webapps/cocoon debug=0 reloadable=true /Context I thought this mapped the /cocoon context to Tomcat.. Now Im really confused. The Home Directory for IIS is pointing to c:\jakarta-tomcat-3.2.4\webapps Should this be changed too?? Thanks Tony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:04 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Does the request http://foo.bar.com/cocoon/ get mapped to Tomcat? If not, IIS still serves the directory listing. If the listing doesn't identify Tomcat, then Tomcat isn't generating the listing. The statement that IIS doing all of the static pages suggests that IIS is likely to be doing the listings too. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:51 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question IIS serves that page, but I guess I should've been more clear. What Im really looking for is this. http://foo.bar.com/cocoon/ this is the page that Id like to default to the index.xml file The Context /cocoon is served by Tomcat, and this is exactly where my problem lies. Thanks Anthony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:45 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question For http://foo.bar.com/, who serves the directory listing? If IIS is serving the listing, making changes on the Tomcat side isn't going to alter this behavior. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:41 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Bill, Still not working. My welcome file list is this welcome-file-list welcome-file index.xml /welcome-file /welcome-file-list And you right, it was in web.xml, but after I made the changes, and re-started Tomcat, I still get the directory listing. If you have any other thoughts, please let me know. Thanks Anthony -Original Message- From: Bill Barnhill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 12:00 PM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question I think this can be done by setting the welcome page to be index.xml. I think this is in web.xml, but I may have the xml file wrong. Do a find on text welcome in the .xml files under tomcat and you should find it. HTH, Bill Barnhill -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 5:46 AM To: '[EMAIL PROTECTED]' Subject: Tomcat Cocoon Question Im using Cocoon 1.8.2 and Tomcat 3.2.4. IIS 5.0 as my Webserver. I have Tomcat processing my Cocoon xml, and IIS doing all of the static pages. My problem is this. If I go to http://foo.bar.com/index.xml it works fine, but if I go to http://foo.bar.com/ it gives me a directory listing of what is in that directory. Id like for it to default to the index.xml file. Can this be done?? Thanks Anthony Diodato Anthony Diodato Webmaster - IT Prophet 21, Inc. 19 West College Avenue Yardley, PA 19067 1-800-776-7438, ext. 4600 Fax: 215-321-8014 [EMAIL PROTECTED] http://www.p21.com/ Prophet 21 -- Powering the Distribution Industry for the Digital Age For the latest press releases from Prophet 21 -- http://www.p21.com/press/press.html * 2/12/2001 - Trading Partner Connect Offers Enterprise-to-Enterprise (E2E) Commerce * 2/9/2001 -- Prophet 21 CommerceCenter 8.0 is Now Available * 2/9/2001 -- Prophet 21 Upgrades and Enhances Prophet 21 Acclaim For the latest articles on Prophet 21 http://www.manufacturing.net/magazine/id/archives/2001/ind010. 02/techupd ate. htm http://www.manufacturing.net/magazine/id/develop/techmain01.1.htm
RE: Tomcat Cocoon Question
If Tomcat is serving the listing, you should see Tomcat named in the footer of the displayed page. I forget the exact text of the string. If you don't see mentioned at the bottom of the page, then IIS is serving the listing. If you want the welcome files specified in the web.xml to make a difference, then the request http://foo.bar.com/cocoon/ will have to be forwarded to Tomcat. Which requests are forwarded is controlled by the uriworkermap.properties file. It is here that you would add the appropriate mapping. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:11 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Larry, How can I be sure. I know Tomcat is doing something with that directory, because all of the xml pages are using Java, and I know IIS cant serve them without some help. Inside of my server.xml file Im doing this. Context path=/cocoon docBase=webapps/cocoon debug=0 reloadable=true /Context I thought this mapped the /cocoon context to Tomcat.. Now Im really confused. The Home Directory for IIS is pointing to c:\jakarta-tomcat-3.2.4\webapps Should this be changed too?? Thanks Tony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:04 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Does the request http://foo.bar.com/cocoon/ get mapped to Tomcat? If not, IIS still serves the directory listing. If the listing doesn't identify Tomcat, then Tomcat isn't generating the listing. The statement that IIS doing all of the static pages suggests that IIS is likely to be doing the listings too. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:51 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question IIS serves that page, but I guess I should've been more clear. What Im really looking for is this. http://foo.bar.com/cocoon/ this is the page that Id like to default to the index.xml file The Context /cocoon is served by Tomcat, and this is exactly where my problem lies. Thanks Anthony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:45 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question For http://foo.bar.com/, who serves the directory listing? If IIS is serving the listing, making changes on the Tomcat side isn't going to alter this behavior. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:41 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Bill, Still not working. My welcome file list is this welcome-file-list welcome-file index.xml /welcome-file /welcome-file-list And you right, it was in web.xml, but after I made the changes, and re-started Tomcat, I still get the directory listing. If you have any other thoughts, please let me know. Thanks Anthony -Original Message- From: Bill Barnhill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 12:00 PM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question I think this can be done by setting the welcome page to be index.xml. I think this is in web.xml, but I may have the xml file wrong. Do a find on text welcome in the .xml files under tomcat and you should find it. HTH, Bill Barnhill -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 5:46 AM To: '[EMAIL PROTECTED]' Subject: Tomcat Cocoon Question Im using Cocoon 1.8.2 and Tomcat 3.2.4. IIS 5.0 as my Webserver. I have Tomcat processing my Cocoon xml, and IIS doing all of the static pages. My problem is this. If I go to http://foo.bar.com/index.xml it works fine, but if I go to http://foo.bar.com/ it gives me a directory listing of what is in that directory. Id like for it to default to the index.xml file. Can this be done?? Thanks Anthony Diodato Anthony Diodato Webmaster - IT Prophet 21, Inc. 19 West College Avenue Yardley, PA 19067 1-800-776-7438, ext. 4600 Fax: 215-321-8014 [EMAIL PROTECTED] http://www.p21.com/ Prophet 21 -- Powering the Distribution Industry for the Digital Age For the latest press releases from Prophet 21 -- http://www.p21.com/press/press.html * 2/12/2001 - Trading Partner Connect Offers Enterprise-to-Enterprise (E2E) Commerce * 2/9/2001 -- Prophet 21 CommerceCenter 8.0 is Now Available *
RE: Tomcat Cocoon Question
OK, Now here is where Im at. I have the default document in IIS set to index.xml. There are no other defaults in there. This is what I have in my uriworkermap.properties default.worker=ajp12 /cocoon=$(default.worker) /cocoon/*=$(default.worker) /cocoon/*.xml=$(default.worker) Still where I was. I thank for all your help so far, and I think Im close, but something isn't clicking somewhere. Any other thoughts Thanks Anthony -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:30 AM To: Tomcat Users List Subject: RE: Tomcat Cocoon Question IIS is set up to serve static content. It needs to have mappings to know what to forward to Tomcat. What you need to do is put index.xml in IIS's default file list. Then, a call to the root of the directory will get forwarded to index.xml which IIS will then know to forward to Tomcat...as long as you've specified *.xml files to be mapped to Tomcat. I can't remember what the syntax for that is? Maybe something like /mycontext/*.xml=ajp1.2 in uriworkermap.properties? Jake At 10:10 AM 5/1/2002 -0400, you wrote: Larry, How can I be sure. I know Tomcat is doing something with that directory, because all of the xml pages are using Java, and I know IIS cant serve them without some help. Inside of my server.xml file Im doing this. Context path=/cocoon docBase=webapps/cocoon debug=0 reloadable=true /Context I thought this mapped the /cocoon context to Tomcat.. Now Im really confused. The Home Directory for IIS is pointing to c:\jakarta-tomcat-3.2.4\webapps Should this be changed too?? Thanks Tony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:04 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Does the request http://foo.bar.com/cocoon/ get mapped to Tomcat? If not, IIS still serves the directory listing. If the listing doesn't identify Tomcat, then Tomcat isn't generating the listing. The statement that IIS doing all of the static pages suggests that IIS is likely to be doing the listings too. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:51 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question IIS serves that page, but I guess I should've been more clear. What Im really looking for is this. http://foo.bar.com/cocoon/ this is the page that Id like to default to the index.xml file The Context /cocoon is served by Tomcat, and this is exactly where my problem lies. Thanks Anthony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:45 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question For http://foo.bar.com/, who serves the directory listing? If IIS is serving the listing, making changes on the Tomcat side isn't going to alter this behavior. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:41 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Bill, Still not working. My welcome file list is this welcome-file-list welcome-file index.xml /welcome-file /welcome-file-list And you right, it was in web.xml, but after I made the changes, and re-started Tomcat, I still get the directory listing. If you have any other thoughts, please let me know. Thanks Anthony -Original Message- From: Bill Barnhill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 12:00 PM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question I think this can be done by setting the welcome page to be index.xml. I think this is in web.xml, but I may have the xml file wrong. Do a find on text welcome in the .xml files under tomcat and you should find it. HTH, Bill Barnhill -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 5:46 AM To: '[EMAIL PROTECTED]' Subject: Tomcat Cocoon Question Im using Cocoon 1.8.2 and Tomcat 3.2.4. IIS 5.0 as my Webserver. I have Tomcat processing my Cocoon xml, and IIS doing all of the static pages. My problem is this. If I go to http://foo.bar.com/index.xml it works fine, but if I go to http://foo.bar.com/ it gives me a directory listing of what is in that directory. Id like for it to default to the index.xml file. Can this be done?? Thanks Anthony Diodato Anthony Diodato Webmaster - IT Prophet 21, Inc. 19 West College Avenue Yardley, PA 19067 1-800-776-7438, ext. 4600 Fax: 215-321-8014 [EMAIL PROTECTED] http://www.p21.com/ Prophet 21 --
databases and JNDI resource problem
Subject: databases and JNDI resource problem From: guido schnider [EMAIL PROTECTED] === While trying to connect a mysql DB with Tomcat 4.0.4-b1 ant struts 1.x as described in the Tomcat manual under JNDI Resources HOW-TO I get the following error. It looks like that he is still looking for the HypersonicDriver as in the example, but i changed it. Any ideas or working examples? Thanks! TyrexDataSourceFactory: Cannot create DataSource, Exception java.lang.ClassNotFoundException: org.hsql.jdbcDriver PS: What is the smartest way working with Db's and tomcat/struts? My configuration - !-- server.xml -- Resource name=jdbc/test auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/test parameter nameuser/name valueroot/value /parameter parameter namepassword/name valueroot/value /parameter parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter parameter namedriverName/name valuejdbc:mysql:database/value /parameter /ResourceParams - !-- Web.xml -- resource-ref description Resource reference to a factory for java.sql.Connection instances that may be used for talking to a particular database that is configured in the server.xml file. /description res-ref-namejdbc/test/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref - //java file public static final Connection getConnection() throws SQLException { try { Context env = (Context) new InitialContext().lookup(java:comp/env); DataSource ds = (DataSource) env.lookup(jdbc/test); if (ds==null) throw new SQLException(Cannot connect to mysql db test); return(ds.getConnection()); } catch (NamingException ne) { throw new SQLException(ne.getMessage()); } } -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat Cocoon Question
When I get the directory listing, the bottom of my page says Tomcat Web Server v3.2.4 This is what I have in my uriworkermap.properties default.worker=ajp12 /cocoon=$(default.worker) /cocoon/*=$(default.worker) /cocoon/*.xml=$(default.worker) Still getting the same results. I thank for all your help so far, and I think Im close, but something isn't clicking somewhere. Any other thoughts Thanks Anthony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:28 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question If Tomcat is serving the listing, you should see Tomcat named in the footer of the displayed page. I forget the exact text of the string. If you don't see mentioned at the bottom of the page, then IIS is serving the listing. If you want the welcome files specified in the web.xml to make a difference, then the request http://foo.bar.com/cocoon/ will have to be forwarded to Tomcat. Which requests are forwarded is controlled by the uriworkermap.properties file. It is here that you would add the appropriate mapping. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:11 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Larry, How can I be sure. I know Tomcat is doing something with that directory, because all of the xml pages are using Java, and I know IIS cant serve them without some help. Inside of my server.xml file Im doing this. Context path=/cocoon docBase=webapps/cocoon debug=0 reloadable=true /Context I thought this mapped the /cocoon context to Tomcat.. Now Im really confused. The Home Directory for IIS is pointing to c:\jakarta-tomcat-3.2.4\webapps Should this be changed too?? Thanks Tony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:04 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Does the request http://foo.bar.com/cocoon/ get mapped to Tomcat? If not, IIS still serves the directory listing. If the listing doesn't identify Tomcat, then Tomcat isn't generating the listing. The statement that IIS doing all of the static pages suggests that IIS is likely to be doing the listings too. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:51 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question IIS serves that page, but I guess I should've been more clear. What Im really looking for is this. http://foo.bar.com/cocoon/ this is the page that Id like to default to the index.xml file The Context /cocoon is served by Tomcat, and this is exactly where my problem lies. Thanks Anthony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:45 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question For http://foo.bar.com/, who serves the directory listing? If IIS is serving the listing, making changes on the Tomcat side isn't going to alter this behavior. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:41 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Bill, Still not working. My welcome file list is this welcome-file-list welcome-file index.xml /welcome-file /welcome-file-list And you right, it was in web.xml, but after I made the changes, and re-started Tomcat, I still get the directory listing. If you have any other thoughts, please let me know. Thanks Anthony -Original Message- From: Bill Barnhill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 12:00 PM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question I think this can be done by setting the welcome page to be index.xml. I think this is in web.xml, but I may have the xml file wrong. Do a find on text welcome in the .xml files under tomcat and you should find it. HTH, Bill Barnhill -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 5:46 AM To: '[EMAIL PROTECTED]' Subject: Tomcat Cocoon Question Im using Cocoon 1.8.2 and Tomcat 3.2.4. IIS 5.0 as my Webserver. I have Tomcat processing my Cocoon xml, and IIS doing all of the static pages. My problem is this. If I go to http://foo.bar.com/index.xml it works fine, but if I go to http://foo.bar.com/ it gives me a directory listing of what is in that directory. Id like for it to default to the index.xml file. Can this
RE: Tomcat Cocoon Question
Also, just as a test, I put an index.jsp file into the /cocoon directory, and it worked. I still need to get index.xml to work, but I just thought Id let you know. Thanks Anthony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:28 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question If Tomcat is serving the listing, you should see Tomcat named in the footer of the displayed page. I forget the exact text of the string. If you don't see mentioned at the bottom of the page, then IIS is serving the listing. If you want the welcome files specified in the web.xml to make a difference, then the request http://foo.bar.com/cocoon/ will have to be forwarded to Tomcat. Which requests are forwarded is controlled by the uriworkermap.properties file. It is here that you would add the appropriate mapping. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:11 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Larry, How can I be sure. I know Tomcat is doing something with that directory, because all of the xml pages are using Java, and I know IIS cant serve them without some help. Inside of my server.xml file Im doing this. Context path=/cocoon docBase=webapps/cocoon debug=0 reloadable=true /Context I thought this mapped the /cocoon context to Tomcat.. Now Im really confused. The Home Directory for IIS is pointing to c:\jakarta-tomcat-3.2.4\webapps Should this be changed too?? Thanks Tony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:04 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Does the request http://foo.bar.com/cocoon/ get mapped to Tomcat? If not, IIS still serves the directory listing. If the listing doesn't identify Tomcat, then Tomcat isn't generating the listing. The statement that IIS doing all of the static pages suggests that IIS is likely to be doing the listings too. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:51 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question IIS serves that page, but I guess I should've been more clear. What Im really looking for is this. http://foo.bar.com/cocoon/ this is the page that Id like to default to the index.xml file The Context /cocoon is served by Tomcat, and this is exactly where my problem lies. Thanks Anthony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:45 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question For http://foo.bar.com/, who serves the directory listing? If IIS is serving the listing, making changes on the Tomcat side isn't going to alter this behavior. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:41 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Bill, Still not working. My welcome file list is this welcome-file-list welcome-file index.xml /welcome-file /welcome-file-list And you right, it was in web.xml, but after I made the changes, and re-started Tomcat, I still get the directory listing. If you have any other thoughts, please let me know. Thanks Anthony -Original Message- From: Bill Barnhill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 12:00 PM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question I think this can be done by setting the welcome page to be index.xml. I think this is in web.xml, but I may have the xml file wrong. Do a find on text welcome in the .xml files under tomcat and you should find it. HTH, Bill Barnhill -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 5:46 AM To: '[EMAIL PROTECTED]' Subject: Tomcat Cocoon Question Im using Cocoon 1.8.2 and Tomcat 3.2.4. IIS 5.0 as my Webserver. I have Tomcat processing my Cocoon xml, and IIS doing all of the static pages. My problem is this. If I go to http://foo.bar.com/index.xml it works fine, but if I go to http://foo.bar.com/ it gives me a directory listing of what is in that directory. Id like for it to default to the index.xml file. Can this be done?? Thanks Anthony Diodato Anthony Diodato Webmaster - IT Prophet 21, Inc. 19 West College Avenue Yardley, PA 19067 1-800-776-7438, ext. 4600 Fax: 215-321-8014 [EMAIL PROTECTED]
RE: Tomcat Cocoon Question
Also, just as a test, I put an index.jsp file into the /cocoon directory, and it worked. I still need to get index.xml to work, but I just thought Id let you know. Thanks Anthony -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:30 AM To: Tomcat Users List Subject: RE: Tomcat Cocoon Question IIS is set up to serve static content. It needs to have mappings to know what to forward to Tomcat. What you need to do is put index.xml in IIS's default file list. Then, a call to the root of the directory will get forwarded to index.xml which IIS will then know to forward to Tomcat...as long as you've specified *.xml files to be mapped to Tomcat. I can't remember what the syntax for that is? Maybe something like /mycontext/*.xml=ajp1.2 in uriworkermap.properties? Jake At 10:10 AM 5/1/2002 -0400, you wrote: Larry, How can I be sure. I know Tomcat is doing something with that directory, because all of the xml pages are using Java, and I know IIS cant serve them without some help. Inside of my server.xml file Im doing this. Context path=/cocoon docBase=webapps/cocoon debug=0 reloadable=true /Context I thought this mapped the /cocoon context to Tomcat.. Now Im really confused. The Home Directory for IIS is pointing to c:\jakarta-tomcat-3.2.4\webapps Should this be changed too?? Thanks Tony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:04 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Does the request http://foo.bar.com/cocoon/ get mapped to Tomcat? If not, IIS still serves the directory listing. If the listing doesn't identify Tomcat, then Tomcat isn't generating the listing. The statement that IIS doing all of the static pages suggests that IIS is likely to be doing the listings too. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:51 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question IIS serves that page, but I guess I should've been more clear. What Im really looking for is this. http://foo.bar.com/cocoon/ this is the page that Id like to default to the index.xml file The Context /cocoon is served by Tomcat, and this is exactly where my problem lies. Thanks Anthony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:45 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question For http://foo.bar.com/, who serves the directory listing? If IIS is serving the listing, making changes on the Tomcat side isn't going to alter this behavior. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:41 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Bill, Still not working. My welcome file list is this welcome-file-list welcome-file index.xml /welcome-file /welcome-file-list And you right, it was in web.xml, but after I made the changes, and re-started Tomcat, I still get the directory listing. If you have any other thoughts, please let me know. Thanks Anthony -Original Message- From: Bill Barnhill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 12:00 PM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question I think this can be done by setting the welcome page to be index.xml. I think this is in web.xml, but I may have the xml file wrong. Do a find on text welcome in the .xml files under tomcat and you should find it. HTH, Bill Barnhill -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 5:46 AM To: '[EMAIL PROTECTED]' Subject: Tomcat Cocoon Question Im using Cocoon 1.8.2 and Tomcat 3.2.4. IIS 5.0 as my Webserver. I have Tomcat processing my Cocoon xml, and IIS doing all of the static pages. My problem is this. If I go to http://foo.bar.com/index.xml it works fine, but if I go to http://foo.bar.com/ it gives me a directory listing of what is in that directory. Id like for it to default to the index.xml file. Can this be done?? Thanks Anthony Diodato Anthony Diodato Webmaster - IT Prophet 21, Inc. 19 West College Avenue Yardley, PA 19067 1-800-776-7438, ext. 4600 Fax: 215-321-8014 [EMAIL PROTECTED] http://www.p21.com/ Prophet 21 -- Powering the Distribution Industry for the Digital Age For the latest press releases from Prophet 21 -- http://www.p21.com/press/press.html * 2/12/2001 - Trading Partner Connect Offers Enterprise-to-Enterprise (E2E) Commerce *
Beware VIRUS from gpalesan with footer.exe attachment
All tomcat users There is a vurus attached to an emaio from gpalesan with window.open{ in the subject line. The virus loads when the emaiol is clicked so delete this file immediately. There is an attachment called footer.exe but I never tried to open it. Mike A Austin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat Cocoon Question
Ahh... You are already passing everything to tomcat. IIS is just being used to front web requests to port 80 and forward them to tomcat. IIS doesn't serve any static content the way you have it set up. The lines: /cocoon=$(default.worker) /cocoon/*=$(default.worker) are all you need. No need to add the third line. At this point, whatever if not working properly is not working properly in tomcat. it has nothing to do with IIS at this point. At least you know where to look for the problem, now. Sorry I can't be of more help. Jake At 10:41 AM 5/1/2002 -0400, you wrote: When I get the directory listing, the bottom of my page says Tomcat Web Server v3.2.4 This is what I have in my uriworkermap.properties default.worker=ajp12 /cocoon=$(default.worker) /cocoon/*=$(default.worker) /cocoon/*.xml=$(default.worker) Still getting the same results. I thank for all your help so far, and I think Im close, but something isn't clicking somewhere. Any other thoughts Thanks Anthony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:28 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question If Tomcat is serving the listing, you should see Tomcat named in the footer of the displayed page. I forget the exact text of the string. If you don't see mentioned at the bottom of the page, then IIS is serving the listing. If you want the welcome files specified in the web.xml to make a difference, then the request http://foo.bar.com/cocoon/ will have to be forwarded to Tomcat. Which requests are forwarded is controlled by the uriworkermap.properties file. It is here that you would add the appropriate mapping. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:11 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Larry, How can I be sure. I know Tomcat is doing something with that directory, because all of the xml pages are using Java, and I know IIS cant serve them without some help. Inside of my server.xml file Im doing this. Context path=/cocoon docBase=webapps/cocoon debug=0 reloadable=true /Context I thought this mapped the /cocoon context to Tomcat.. Now Im really confused. The Home Directory for IIS is pointing to c:\jakarta-tomcat-3.2.4\webapps Should this be changed too?? Thanks Tony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:04 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Does the request http://foo.bar.com/cocoon/ get mapped to Tomcat? If not, IIS still serves the directory listing. If the listing doesn't identify Tomcat, then Tomcat isn't generating the listing. The statement that IIS doing all of the static pages suggests that IIS is likely to be doing the listings too. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:51 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question IIS serves that page, but I guess I should've been more clear. What Im really looking for is this. http://foo.bar.com/cocoon/ this is the page that Id like to default to the index.xml file The Context /cocoon is served by Tomcat, and this is exactly where my problem lies. Thanks Anthony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:45 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question For http://foo.bar.com/, who serves the directory listing? If IIS is serving the listing, making changes on the Tomcat side isn't going to alter this behavior. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:41 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Bill, Still not working. My welcome file list is this welcome-file-list welcome-file index.xml /welcome-file /welcome-file-list And you right, it was in web.xml, but after I made the changes, and re-started Tomcat, I still get the directory listing. If you have any other thoughts, please let me know. Thanks Anthony -Original Message- From: Bill Barnhill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 12:00 PM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question I think this can be done by setting the welcome page to be index.xml. I think this is in web.xml, but I may have the xml file wrong. Do a find on text welcome in the .xml files under tomcat and
RE: Tomcat Cocoon Question
You are correct. The entire site is in xml, so Tomcat is serving everything. I was almost positive that it wasn't an IIS issue. I just cant make Tomcat recognize that all / in the /cocoon context should redirect to /index.xml Thanks for your help so far. If you think of anything that may help, please let me know Thanks Anthony -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:59 AM To: Tomcat Users List Subject: RE: Tomcat Cocoon Question Ahh... You are already passing everything to tomcat. IIS is just being used to front web requests to port 80 and forward them to tomcat. IIS doesn't serve any static content the way you have it set up. The lines: /cocoon=$(default.worker) /cocoon/*=$(default.worker) are all you need. No need to add the third line. At this point, whatever if not working properly is not working properly in tomcat. it has nothing to do with IIS at this point. At least you know where to look for the problem, now. Sorry I can't be of more help. Jake At 10:41 AM 5/1/2002 -0400, you wrote: When I get the directory listing, the bottom of my page says Tomcat Web Server v3.2.4 This is what I have in my uriworkermap.properties default.worker=ajp12 /cocoon=$(default.worker) /cocoon/*=$(default.worker) /cocoon/*.xml=$(default.worker) Still getting the same results. I thank for all your help so far, and I think Im close, but something isn't clicking somewhere. Any other thoughts Thanks Anthony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:28 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question If Tomcat is serving the listing, you should see Tomcat named in the footer of the displayed page. I forget the exact text of the string. If you don't see mentioned at the bottom of the page, then IIS is serving the listing. If you want the welcome files specified in the web.xml to make a difference, then the request http://foo.bar.com/cocoon/ will have to be forwarded to Tomcat. Which requests are forwarded is controlled by the uriworkermap.properties file. It is here that you would add the appropriate mapping. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:11 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Larry, How can I be sure. I know Tomcat is doing something with that directory, because all of the xml pages are using Java, and I know IIS cant serve them without some help. Inside of my server.xml file Im doing this. Context path=/cocoon docBase=webapps/cocoon debug=0 reloadable=true /Context I thought this mapped the /cocoon context to Tomcat.. Now Im really confused. The Home Directory for IIS is pointing to c:\jakarta-tomcat-3.2.4\webapps Should this be changed too?? Thanks Tony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:04 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Does the request http://foo.bar.com/cocoon/ get mapped to Tomcat? If not, IIS still serves the directory listing. If the listing doesn't identify Tomcat, then Tomcat isn't generating the listing. The statement that IIS doing all of the static pages suggests that IIS is likely to be doing the listings too. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:51 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question IIS serves that page, but I guess I should've been more clear. What Im really looking for is this. http://foo.bar.com/cocoon/ this is the page that Id like to default to the index.xml file The Context /cocoon is served by Tomcat, and this is exactly where my problem lies. Thanks Anthony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:45 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question For http://foo.bar.com/, who serves the directory listing? If IIS is serving the listing, making changes on the Tomcat side isn't going to alter this behavior. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:41 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Bill, Still not working. My welcome file list is this welcome-file-list welcome-file index.xml /welcome-file /welcome-file-list And you right, it was in web.xml, but after I made the changes, and re-started Tomcat, I still get the directory listing.
Erro 4.03 - java.lang.NoClassDefFoundError: sun/tools/javac/Main
People, I am using the operational system windows98 with the JDK1.3.1 and tomcat 4.0.3. When trying to execute some applicatory .jsp appears the error below. I am also sending the configurations of mine autoexec. Please help me. SET JAVA_HOME=C:\j2sdk1.4.0 SET CATALINA_HOME=C:\jakarta-tomcat-4.0.3-LE-jdk14 SET TOMCAT_HOME=C:\jakarta-tomcat-4.0.3-LE-jdk14 SET CLASSPATH=.;%JAVA_HOME%\bin;%TOMCAT_HOME%\COMMON\LIB\servlet.jar PATH C:\j2sdk1.4.0\bin;C:\j2sdk1.4.0\lib;c:\WINDOWS;C:\WINDOWS\COMMAND 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: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) 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.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) 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.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) 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 :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) 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.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Thread.java:536) root cause java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) 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.ja va:190) at
RE: Tomcat Cocoon Question
At this point, try changing to debug=1 on the StaticInterceptor in server.xml. That should show in the log, whether it is finding the welcome file. You will be looking for Dir handler if the file is not found, or Redirect ... if it is. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:41 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question When I get the directory listing, the bottom of my page says Tomcat Web Server v3.2.4 This is what I have in my uriworkermap.properties default.worker=ajp12 /cocoon=$(default.worker) /cocoon/*=$(default.worker) /cocoon/*.xml=$(default.worker) Still getting the same results. I thank for all your help so far, and I think Im close, but something isn't clicking somewhere. Any other thoughts Thanks Anthony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:28 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question If Tomcat is serving the listing, you should see Tomcat named in the footer of the displayed page. I forget the exact text of the string. If you don't see mentioned at the bottom of the page, then IIS is serving the listing. If you want the welcome files specified in the web.xml to make a difference, then the request http://foo.bar.com/cocoon/ will have to be forwarded to Tomcat. Which requests are forwarded is controlled by the uriworkermap.properties file. It is here that you would add the appropriate mapping. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:11 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Larry, How can I be sure. I know Tomcat is doing something with that directory, because all of the xml pages are using Java, and I know IIS cant serve them without some help. Inside of my server.xml file Im doing this. Context path=/cocoon docBase=webapps/cocoon debug=0 reloadable=true /Context I thought this mapped the /cocoon context to Tomcat.. Now Im really confused. The Home Directory for IIS is pointing to c:\jakarta-tomcat-3.2.4\webapps Should this be changed too?? Thanks Tony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:04 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Does the request http://foo.bar.com/cocoon/ get mapped to Tomcat? If not, IIS still serves the directory listing. If the listing doesn't identify Tomcat, then Tomcat isn't generating the listing. The statement that IIS doing all of the static pages suggests that IIS is likely to be doing the listings too. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:51 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question IIS serves that page, but I guess I should've been more clear. What Im really looking for is this. http://foo.bar.com/cocoon/ this is the page that Id like to default to the index.xml file The Context /cocoon is served by Tomcat, and this is exactly where my problem lies. Thanks Anthony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:45 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question For http://foo.bar.com/, who serves the directory listing? If IIS is serving the listing, making changes on the Tomcat side isn't going to alter this behavior. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:41 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Bill, Still not working. My welcome file list is this welcome-file-list welcome-file index.xml /welcome-file /welcome-file-list And you right, it was in web.xml, but after I made the changes, and re-started Tomcat, I still get the directory listing. If you have any other thoughts, please let me know. Thanks Anthony -Original Message- From: Bill Barnhill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 12:00 PM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question I think this can be done by setting the welcome page to be index.xml. I think this is in web.xml, but I may have the xml file wrong. Do a find on text welcome in the .xml files under tomcat and you should find it. HTH, Bill Barnhill
Re: Problem with Connectors - Urgent help required Please!!!
Hi Christian, That was a great help of yours. It really solved my SSL problem now I have successfully setup the SSL connection between Apache Tomcat. But now I got another problem. I have set the Client Authentication to true so that in SSL Handshake server accepts the client certificate from browser. This is also done, but I am unable to receive the certificate in the servlet running on Tomcat. I am using the following piece of code in my servlet Object certReqObject = request.getAttribute(javax.servlet.request.X509Certificate); The object returns null. This works fine when I configure SSL on Tomcat directly. But through Apache, do I have to do anything else? Presently my Tomcat server doesnt have any SSL configuration. Any help would be highly appreciated. Thanks Regards, ..Raj -- On Tue, 30 Apr 2002 11:02:26 Christian Bockerman wrote: Hi Raja ! On Tue, Apr 30, 2002 at 01:06:40AM -0700, Raja Sekhar wrote: Hi, I am very new to Apache Tomcat. The configuration what I have is Redhat Linux 7.1 Apache 1.3.23 Tomcat 4.0.3. I have installed Apache Tomcat successfully and they are running fine. Now the problem is how to route the request from Apache to Tomcat. Please suggest me the best connector to use. This should support SSL for me. I have configured Apache with mod-ssl for SSL. I have a servlet on Tomcat which should be able to get these SSL Environment variables. So in such scenarios, what connector can I use please give a URL or procedure how to install this connector. From my experience I would recommend building Apache with SSL-Support and leaving the whole SSL-thing to Apache. I'm running Apache+mod_ssl which uses mod_webapp to connect to tomcat-4.0.1 runnning on jdk1.3.0 and it works great. In the beginning I was walking through the documentation trying to find how to set up mod_webapp and did not find anything. I think there are a few lines how to set up mod_webapp in the example server.xml. Basically it's just loading that mod_webapp into Apache like all the other modules LoadModule webapp_module libexec/mod_webapp.so AddModule mod_webapp.c and then deploying the web-applications running on your tomcat : WebAppConnection con_name warp localhost:8008 WebAppDeploy webappcon_name / The 2 lines above should deploy the web-application webapp (the context webapp) to the root-directory of your webserver. All this is done in your httpd.conf p.s : I read through the tomcat documentation or archives where I found your comments on connectors. I am confused which one to use as such I dont find any mod_jk packages or native directories in my 4.0.3 binary installation. But all the documents which I get on the internet site talk about how to configure mod_jk with Tomcat. Please help me out because this is a urgent task for me. You can find mod_webapp.so and mod_jk-01.so here : http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/linux/i386/ -- -Christian Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Setting Classpath when using the Start Tomcat-shortcut doesn'tseem to work
I've just started digging into Tomcat 4 (4.0.3), and after installing it, I got atleast two options to start it: 1) From the Start Tomcat shortcut 2) Using the startup.bat. Using option 2) I edited the CLASSPATH in 'setclasspath.bat' and that works fine. But with option 1), it won't take my CLASSPATH either from the -classpath argument of the java.exe, or from the System Enviroment CLASSPATH-variable. The original shortcut which the Tomcat installation provided looked like this: C:\Stuff\Java\jdks\1.4.0\bin\java.exe -jar -Duser.dir=C:\Stuff\Java\tomcat\4.0.3 C:\Stuff\Java\tomcat\4.0.3\bin\bootstrap.jar start And I tried changing it to: C:\Stuff\Java\jdks\1.4.0\bin\java.exe -classpath C:\stuff\java\classlib -jar -Duser.dir=C:\Stuff\Java\tomcat\4.0.3 C:\Stuff\Java\tomcat\4.0.3\bin\bootstrap.jar start But in either case a 'System.getProperty(java.class.path)' from one of my JSPs returns only 'C:\Stuff\Java\tomcat\4.0.3\bin\bootstrap.jar'. Does anyone know why? Thanks, Frank Gynnild -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat Cocoon Question
I've set the StaticInterceptor to RequestInterceptor classname=org.apache.tomcat.request.StaticInterceptor debug=1 suppress=false/ Now where is the log file that Im looking for?? I only have 3 log files in the entire jakarta-tomcat-3.2.4 directory iis_redirect.log jasper.log servlet.log Thanks Tony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 11:01 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question At this point, try changing to debug=1 on the StaticInterceptor in server.xml. That should show in the log, whether it is finding the welcome file. You will be looking for Dir handler if the file is not found, or Redirect ... if it is. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:41 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question When I get the directory listing, the bottom of my page says Tomcat Web Server v3.2.4 This is what I have in my uriworkermap.properties default.worker=ajp12 /cocoon=$(default.worker) /cocoon/*=$(default.worker) /cocoon/*.xml=$(default.worker) Still getting the same results. I thank for all your help so far, and I think Im close, but something isn't clicking somewhere. Any other thoughts Thanks Anthony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:28 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question If Tomcat is serving the listing, you should see Tomcat named in the footer of the displayed page. I forget the exact text of the string. If you don't see mentioned at the bottom of the page, then IIS is serving the listing. If you want the welcome files specified in the web.xml to make a difference, then the request http://foo.bar.com/cocoon/ will have to be forwarded to Tomcat. Which requests are forwarded is controlled by the uriworkermap.properties file. It is here that you would add the appropriate mapping. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:11 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Larry, How can I be sure. I know Tomcat is doing something with that directory, because all of the xml pages are using Java, and I know IIS cant serve them without some help. Inside of my server.xml file Im doing this. Context path=/cocoon docBase=webapps/cocoon debug=0 reloadable=true /Context I thought this mapped the /cocoon context to Tomcat.. Now Im really confused. The Home Directory for IIS is pointing to c:\jakarta-tomcat-3.2.4\webapps Should this be changed too?? Thanks Tony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:04 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Does the request http://foo.bar.com/cocoon/ get mapped to Tomcat? If not, IIS still serves the directory listing. If the listing doesn't identify Tomcat, then Tomcat isn't generating the listing. The statement that IIS doing all of the static pages suggests that IIS is likely to be doing the listings too. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:51 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question IIS serves that page, but I guess I should've been more clear. What Im really looking for is this. http://foo.bar.com/cocoon/ this is the page that Id like to default to the index.xml file The Context /cocoon is served by Tomcat, and this is exactly where my problem lies. Thanks Anthony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:45 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question For http://foo.bar.com/, who serves the directory listing? If IIS is serving the listing, making changes on the Tomcat side isn't going to alter this behavior. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:41 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Bill, Still not working. My welcome file list is this welcome-file-list welcome-file index.xml /welcome-file /welcome-file-list And you right, it was in web.xml, but after I made the changes, and re-started Tomcat, I still get the directory listing. If you have any other thoughts, please let me know.
java.lang.StackOverflowError - indexed property values Problem
Hi there, im having problems with validating my checkboxes due to them being indexed property values . Thus with the Memento pattern design i have manged to get 90% of my project funtioning accordingly ie (input-text radio buttons). Nevertheless i have a success.jsp page that forwards to my processDatabase.jsp which utilisies the DBTags Taglibrary to insert into my database . This works except that the actually value is a Converted String that comprises one or more of the checkboxes property values. Thus i need to get the selected character value not the conversion. The bulk of my Volunteer Survey jsp pages are checkboxes so if i can get this sorted volia Plz any suggestions i have modified my scriptlet as below and declared the allOps.class Opportunity.class method and variables in my Bean. % String []opportunity = formHandler.getOpportunity(); if (!opportunity[0].equals(1)) { out.println(ul); for (int i =0; iopportunity.length;i++) out.println(li+opportunity[i]); out.println(/ul); String allOps =; //for loop (initialization; logical test;update) for(int i=0; iopportunity.length;i++){ //allOps = allOps + the String is shorthand allOps+=opportunity[i]; } formHandler.setAllOps(allOps); } else out.println(Nothing was selected); % Here's my error stack Error: 500 Location: /volapp/registerOpportunityProcessDB.jsp *Internal Servlet Error:* java.lang.StackOverflowError at java.lang.Class.getComponentType(Native Method) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat Cocoon Question
The output would go to the Tomcat log, which defaults to outputing to the console. If it gets lost there, add a path for the tc_log in server.xml. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 11:10 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question I've set the StaticInterceptor to RequestInterceptor classname=org.apache.tomcat.request.StaticInterceptor debug=1 suppress=false/ Now where is the log file that Im looking for?? I only have 3 log files in the entire jakarta-tomcat-3.2.4 directory iis_redirect.log jasper.log servlet.log Thanks Tony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 11:01 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question At this point, try changing to debug=1 on the StaticInterceptor in server.xml. That should show in the log, whether it is finding the welcome file. You will be looking for Dir handler if the file is not found, or Redirect ... if it is. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:41 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question When I get the directory listing, the bottom of my page says Tomcat Web Server v3.2.4 This is what I have in my uriworkermap.properties default.worker=ajp12 /cocoon=$(default.worker) /cocoon/*=$(default.worker) /cocoon/*.xml=$(default.worker) Still getting the same results. I thank for all your help so far, and I think Im close, but something isn't clicking somewhere. Any other thoughts Thanks Anthony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:28 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question If Tomcat is serving the listing, you should see Tomcat named in the footer of the displayed page. I forget the exact text of the string. If you don't see mentioned at the bottom of the page, then IIS is serving the listing. If you want the welcome files specified in the web.xml to make a difference, then the request http://foo.bar.com/cocoon/ will have to be forwarded to Tomcat. Which requests are forwarded is controlled by the uriworkermap.properties file. It is here that you would add the appropriate mapping. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:11 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Larry, How can I be sure. I know Tomcat is doing something with that directory, because all of the xml pages are using Java, and I know IIS cant serve them without some help. Inside of my server.xml file Im doing this. Context path=/cocoon docBase=webapps/cocoon debug=0 reloadable=true /Context I thought this mapped the /cocoon context to Tomcat.. Now Im really confused. The Home Directory for IIS is pointing to c:\jakarta-tomcat-3.2.4\webapps Should this be changed too?? Thanks Tony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:04 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Does the request http://foo.bar.com/cocoon/ get mapped to Tomcat? If not, IIS still serves the directory listing. If the listing doesn't identify Tomcat, then Tomcat isn't generating the listing. The statement that IIS doing all of the static pages suggests that IIS is likely to be doing the listings too. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:51 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question IIS serves that page, but I guess I should've been more clear. What Im really looking for is this. http://foo.bar.com/cocoon/ this is the page that Id like to default to the index.xml file The Context /cocoon is served by Tomcat, and this is exactly where my problem lies. Thanks Anthony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:45 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question For http://foo.bar.com/, who serves the directory listing? If IIS is serving the listing, making changes on the Tomcat side isn't going to alter this behavior. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent:
RE: Tomcat Cocoon Question
OK, Ive set up the error log to go to tomcat.log. This is what I have in my log after I try to access http://foo.bar.com/cocoon Nothing seems to change in here after I access http://foo.bar.com/cocoon or http://foo.bar.com/cocoon/index.xml I go back and forth between pages, refreshing and still nothing seems to appear 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( /examples ) 2002-05-01 11:22:51 - Ctx( /cocoon ): Set debug to 1 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( /cocoon ) 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( ) 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( /admin ) 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( /index.html ) 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( /test ) 2002-05-01 11:22:58 - Ctx( /cocoon ): XmlReader - init /cocoon webapps/cocoon 2002-05-01 11:22:58 - Ctx( /cocoon ): Reading C:\jakarta-tomcat-3.2.4\webapps\cocoon\WEB-INF\web.xml 2002-05-01 11:22:58 - Ctx( /cocoon ): Loading -2147483646 jsp 2002-05-01 11:22:59 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2002-05-01 11:22:59 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 THanks Tony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 11:18 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question The output would go to the Tomcat log, which defaults to outputing to the console. If it gets lost there, add a path for the tc_log in server.xml. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 11:10 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question I've set the StaticInterceptor to RequestInterceptor classname=org.apache.tomcat.request.StaticInterceptor debug=1 suppress=false/ Now where is the log file that Im looking for?? I only have 3 log files in the entire jakarta-tomcat-3.2.4 directory iis_redirect.log jasper.log servlet.log Thanks Tony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 11:01 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question At this point, try changing to debug=1 on the StaticInterceptor in server.xml. That should show in the log, whether it is finding the welcome file. You will be looking for Dir handler if the file is not found, or Redirect ... if it is. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:41 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question When I get the directory listing, the bottom of my page says Tomcat Web Server v3.2.4 This is what I have in my uriworkermap.properties default.worker=ajp12 /cocoon=$(default.worker) /cocoon/*=$(default.worker) /cocoon/*.xml=$(default.worker) Still getting the same results. I thank for all your help so far, and I think Im close, but something isn't clicking somewhere. Any other thoughts Thanks Anthony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:28 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question If Tomcat is serving the listing, you should see Tomcat named in the footer of the displayed page. I forget the exact text of the string. If you don't see mentioned at the bottom of the page, then IIS is serving the listing. If you want the welcome files specified in the web.xml to make a difference, then the request http://foo.bar.com/cocoon/ will have to be forwarded to Tomcat. Which requests are forwarded is controlled by the uriworkermap.properties file. It is here that you would add the appropriate mapping. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:11 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Larry, How can I be sure. I know Tomcat is doing something with that directory, because all of the xml pages are using Java, and I know IIS cant serve them without some help. Inside of my server.xml file Im doing this. Context path=/cocoon docBase=webapps/cocoon debug=0 reloadable=true /Context I thought this mapped the /cocoon context to Tomcat.. Now Im really confused. The Home Directory for IIS is pointing to c:\jakarta-tomcat-3.2.4\webapps Should this be changed too?? Thanks Tony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:04 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question Does the request http://foo.bar.com/cocoon/
RE: ISAPI Filter and OPTIONS Dav Method.
-Original Message- From: Robert Priest [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:03 AM To: '[EMAIL PROTECTED]' Just to test what would happen, I hacked the HttpFilterProc method to to catch when an OPTIONS request is received and return a OPTIONS response. In case you are curious, here is the code I call in HttpFilterProc() when it sees that method == OPTIONS to force an OPTIONS response back down to the client: static void write_options_response(PHTTP_FILTER_CONTEXT pfc) { char crlf[3] = { (char)13, (char)10, '\0' }; static const char ops[] = OPTIONS, GET, HEAD, POST, DELETE, TRACE, PROPFIND, PROPPATCH, COPY, MOVE, LOCK, UNLOCK; //char server[30]; int opslen = strlen(ops); char allow[255]; sprintf(allow, %s%s%s%s, Allow: , ops, crlf, crlf); /* send options back down */ pfc-AddResponseHeaders(pfc, Content-Length: 0\r\n, 0 ); pfc-AddResponseHeaders(pfc, Cache-Control: no-cache\r\n, 0 ); pfc-AddResponseHeaders(pfc, MS-Author-Via: DAV\r\n, 0 ); pfc-AddResponseHeaders(pfc, DAV: 1, 2, slide, access-control\r\n, 0 ); pfc-AddResponseHeaders(pfc, allow, 0 ); pfc-ServerSupportFunction(pfc, SF_REQ_SEND_RESPONSE_HEADER, NULL, (DWORD)crlf, (DWORD)crlf); } Subject: ISAPI Filter and OPTIONS Dav Method. Using: Tomcat 4.0.3. Slide 1.0.16. ISAPI Filter from J-T-C WebDrive 5.1 (Client) IIS 5.0 I have been having an issue where the ISAPI Filter dies whenever receiving an OPTIONS request. It looks like HttpFilterProc gets called and does it work, but somewhere between IIS doing something and the call to HttpExtensionProc, the server sends back a 500 Internal Server Error Does anyone have any idea what may be going on. Just to test what would happen, I hacked the HttpFilterProc method to to catch when an OPTIONS request is received and return a OPTIONS response. I made the HttpFilterProc method, at that point, return with a SF_STATUS_REQ_FINISHED. With that, I can connect to the server and get a list of folders and files through the client. I can even copy out from the client to my desktop. However, I do encounter another 500 Internal Server Error when I attempt a PUT (to add a file). I say that to say this: there is obviously a problem in the filter with it not passing headers (the method in particular) back to IIS or from IIS to the HttpExtensionProc method. As I am not that proficient is IIS dev soI have not a clue what is happening. Is an IIS header missing or something? Can anyone aid here, so that I do not have to continue to hack it to get it to work? The request never goes as far as to get passed on to tomcat. The communication (when the problem occurs), is only between IIS and the isapi_redirect.dll. I don't think the AJP 13 Connector even comes into play at this point. Can someone verify that for me? Is this the correct chain for the request: IIS - filter -IIS - extension - AJP13 Connector - Tomcat - Web Application (in this case: slide 1.0.16) -- 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]
Cocoon install tomcat4.03/cocoon 2.0.2 on NT Help
I have been running Tomcat 4.0.3 on my NT box for a few months, and I am pretty familiar with it. I set the server.xml to run on port 80 not 8080. I tried to install cocoon 2.0.2 and ran into a problem. I read the install guide, and it basically said to place the cocoon.war file under my $installdir/webapps and restart the server. After I restart the tomcat, the cocoon.war did decompress and now I have a cocoon directory with a lot of subdirectories in it. All looks correct. But when I try and hit the page http://localhost/cocoon/ it blows up with the following error: I do not have any other Cocoon 1.x jar in the lib either. I have read and re-read the docs. Below is the error: If anyone knows what this may be caused from please let me know. Sincerely Scott K Purcell 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: Servlet.init() for servlet Cocoon2 threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) 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.core.StandardContextValve.invoke(StandardContextValve.java:190) 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.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) 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(AccessLogValve.java:468) 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:174) 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.http.HttpProcessor.process(HttpProcessor.java:1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107) at java.lang.Thread.run(Thread.java:484) root cause java.lang.NoClassDefFoundError: javax/xml/transform/Source at org.apache.cocoon.Cocoon.contextualize(Cocoon.java:183) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1209) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:407) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) 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.core.StandardContextValve.invoke(StandardContextValve.java:190) 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.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at
OutofMemoryError
Hello List. I'm running tomcat 3.1.1 on RH7.1, kernel 2.4.9-31 with JDK1.3.1, mysql 3.23.43 I am occasionally seeing tomcat go postal with the following errors: Exception in thread CompileThread0 java.lang.OutOfMemoryError: requested 32760 bytes Another exception has been detected while we were handling last error. No information available. Please check ERROR REPORT FILE for further information, if there is any. Good bye. An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x419852cb Function name=(N/A) Library=(N/A) NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: Another exception has been detected while we were handling last error. Dumping information about last error: ERROR REPORT FILE = (N/A) PC= 0x0x419852cb SIGNAL= 11 FUNCTION NAME = (N/A) LIBRARY NAME = (N/A) Please check ERROR REPORT FILE for further information, if there is any. Good bye. Any thoughts on what might be the cause? There is nothing in the log files to tell me more than this, which gets dumped to the console. -Thanks! -- Matthew Boeckman(816) 777-2160 Manager - Systems Integration Saepio Technologies == == ...Many say that DOS is the dark side, but actually UNIX is more like the dark side: It's less likely to find the one way to destroy your incredibly powerful machine, and more likely to make upper management choke. -Lore Sjoberg -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: OutofMemoryError
Matthew - If you're really running 3.1.1 of Tomcat, I would upgrade to 3.3.x or 4.0 -- the 3.1 series is pretty out-of-date and nobody is doing development on it anymore. Wouldn't be surprised if there are memory leaks and such . . . . See the text out on http://jakarta.apache.org/tomcat about release versions. Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Matthew Boeckman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:08 AM To: [EMAIL PROTECTED] Subject: OutofMemoryError Hello List. I'm running tomcat 3.1.1 on RH7.1, kernel 2.4.9-31 with JDK1.3.1, mysql 3.23.43 I am occasionally seeing tomcat go postal with the following errors: Exception in thread CompileThread0 java.lang.OutOfMemoryError: requested 32760 bytes Another exception has been detected while we were handling last error. No information available. Please check ERROR REPORT FILE for further information, if there is any. Good bye. An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x419852cb Function name=(N/A) Library=(N/A) NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: Another exception has been detected while we were handling last error. Dumping information about last error: ERROR REPORT FILE = (N/A) PC= 0x0x419852cb SIGNAL= 11 FUNCTION NAME = (N/A) LIBRARY NAME = (N/A) Please check ERROR REPORT FILE for further information, if there is any. Good bye. Any thoughts on what might be the cause? There is nothing in the log files to tell me more than this, which gets dumped to the console. -Thanks! -- Matthew Boeckman(816) 777-2160 Manager - Systems Integration Saepio Technologies == == ...Many say that DOS is the dark side, but actually UNIX is more like the dark side: It's less likely to find the one way to destroy your incredibly powerful machine, and more likely to make upper management choke. -Lore Sjoberg -- 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: ISAPI Filter and OPTIONS Dav Method.
De: Robert Priest [mailto:[EMAIL PROTECTED]] Enviado el: miércoles 1 de mayo de 2002 16:03 BTW: this is starting to be an excellent bug report !! so please post it to bugzilla ( if it's no there already ) so we can follow it better .. thanks.. Using: Tomcat 4.0.3. Slide 1.0.16. ISAPI Filter from J-T-C WebDrive 5.1 (Client) IIS 5.0 Excelent, thanks.. I have been having an issue where the ISAPI Filter dies whenever receiving an OPTIONS request. Dies? you are saying that it hangs in any way? or the filter continues behaving after that OPTIONS request ? It looks like HttpFilterProc gets called and does it work, but somewhere between IIS doing something and the call to HttpExtensionProc, the server sends back a 500 Internal Server Error One way to be completely sure of who is generating that error 500 is to try to add a debug= attribute to the ajp13 connector in server.xml, in tomcat 3.3 we got a nice logs about whats sending and receiving tomcat from IIS.. One way to debug the connection between IIS and tc, is to use a external iis server ( or external tomcat ) and reconfigure the configs to use that host for ajp13 instead of localhost, this way you will be able to see commns in port 8009 over the wire, and you could see if the options request is saw by tc in any way.. Does anyone have any idea what may be going on. No, but with your work and some more time, we will catch it.. sure :), btw.. excellent work in this message.. Just to test what would happen, I hacked the HttpFilterProc method to to catch when an OPTIONS request is received and return a OPTIONS response. I made the HttpFilterProc method, at that point, return with a SF_STATUS_REQ_FINISHED. With that, I can connect to the server and get a list of folders and files through the client. I can even copy out from the client to my desktop. However, I do encounter another 500 Internal Server Error when I attempt a PUT (to add a file). I say that to say this: there is obviously a problem in the filter with it not passing headers (the method in particular) back to IIS or from IIS to the HttpExtensionProc method. As I am not that proficient is IIS dev soI have not a clue what is happening. Is an IIS header missing or something? Is this the correct chain for the request: IIS - filter -IIS - extension - AJP13 Connector - Tomcat - Web Application (in this case: slide 1.0.16) Yes it is, my guess now is that your having problems in the extension part, i gues that because the Filter processing is very thin, a matter of getting the correct worker and forward the entire thing to the correct extension, some heraders adde and cganged otheres.. that's all, i doubt the problems lies in the filter, you could try to move your fake response code to the extension instead the filter, this way we can surpass the filter as the your problems source.. Saludos , Ignacio J. Ortega -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
How to link apache 2.0.35 with tomcat 4.0.3 on Solaris 8
I have successfully linked apache 1.3.12 with tomcat 4.0.3 on Solaris 8 before. But I can not link apache 2.0.35 with tomcat 4.0.3 on Solaris 8. I basically did the same in httpd.conf of apache 2.0.35: LoadModule webapp_module modules/mod_webapp.so # The line number of this line is 250 When I tried to start httpd server, I got the following error: root@tbird 12 % ./apachectl start Syntax error on line 250 of /usr/tomcat/apache_tomcat/apache/conf/httpd.conf: Cannot load /usr/tomcat/apache_tomcat/apache/modules/mod_webapp.so into server: ld.so.1: /usr/tomcat/apache_tomcat/apache/bin/httpd: fatal: relocation error: file /usr/tomcat/apache_tomcat/apache/modules/mod_webapp.so: symbol ap_pstrdup: referenced symbol not found ./apachectl start: httpd could not be started You reply is highly appreaciated. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Cocoon install tomcat4.03/cocoon 2.0.2 on NT Help
Hello Scott, There are issues with Cocoon2 and Tomcat 4.x.x...especially 4.0.2 and 4.0.3. If you want Cocoon to work as promised by the coocon2 website, try using Tomcat 4.0.2-b2. That is the last version of Tomcat that allows the loading of XML parsers from the WEB-INF/lib directory. Apparently, it is against the classloading specification to load an XML parser in a child classloader. It must be in a partent. So, you must remove the xml parser from the cocoon2 webapp and make one available in $TOMCAT_HOME/common/lib or $TOMCAT_HOME/lib. Also, the classloading change was made to 4.0.2 (and 4.0.3 is a carbon copy of 4.0.2 + a security fix), but it isn't very intelligent. It was made more intelligent in 4.0.4-b2. I suggest moving to that, even though it is beta. There are a ton of bug fixes besides classloading issues. However, you will still need the XML parser in the parent classloader. YOu probably need the XSL libs in the parent classloader also. Jake Wednesday, May 01, 2002, 11:02:15 AM, you wrote: SP I have been running Tomcat 4.0.3 on my NT box for a few months, and I am pretty familiar with it. I set the server.xml to run on port 80 not 8080. SP I tried to install cocoon 2.0.2 and ran into a problem. I read the install guide, and it basically said to place the cocoon.war file under my $installdir/webapps and restart the server. SP After I restart the tomcat, the cocoon.war did decompress and now I have a cocoon directory with a lot of subdirectories in it. All looks correct. But when I try and hit the page SP http://localhost/cocoon/ SP it blows up with the following error: SP I do not have any other Cocoon 1.x jar in the lib either. I have read and re-read the docs. SP Below is the error: SP If anyone knows what this may be caused from please let me know. SP Sincerely SP Scott K Purcell SP Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error SP type Exception report SP message Internal Server Error SP description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. SP exception SP javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception SP at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935) SP at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) SP at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) SP at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) SP at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) SP at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) SP at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) SP at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) SP at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) SP at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) SP at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) SP at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) SP at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) SP at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) SP at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) SP at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) SP at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) SP at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) SP at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) SP at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) SP at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) SP at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) SP at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) SP at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) SP at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) SP at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012) SP at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107) SP at java.lang.Thread.run(Thread.java:484) SP root cause SP java.lang.NoClassDefFoundError: javax/xml/transform/Source SP at org.apache.cocoon.Cocoon.contextualize(Cocoon.java:183) SP at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1209) SP
RE: ISAPI Filter and OPTIONS Dav Method.
Thanks. I will give those debugging items a try and get back to you. Dies? you are saying that it hangs in any way? or the filter continues behaving after that OPTIONS request ? Perhaps dies is the wrong word to use. What I mean to describe is that after HttpFilterProc() finishes processing(and it does seem to finish),somewhere in the process between IIS and the call to HttpExtensionProc, I get the 500 Internal Server Error sent back down to the client. No, IIS does not hang. I will try to be more exact in the future. Robert. -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 12:26 PM To: 'Tomcat Users List' Subject: RE: ISAPI Filter and OPTIONS Dav Method. De: Robert Priest [mailto:[EMAIL PROTECTED]] Enviado el: miércoles 1 de mayo de 2002 16:03 BTW: this is starting to be an excellent bug report !! so please post it to bugzilla ( if it's no there already ) so we can follow it better .. thanks.. Using: Tomcat 4.0.3. Slide 1.0.16. ISAPI Filter from J-T-C WebDrive 5.1 (Client) IIS 5.0 Excelent, thanks.. I have been having an issue where the ISAPI Filter dies whenever receiving an OPTIONS request. Dies? you are saying that it hangs in any way? or the filter continues behaving after that OPTIONS request ? It looks like HttpFilterProc gets called and does it work, but somewhere between IIS doing something and the call to HttpExtensionProc, the server sends back a 500 Internal Server Error One way to be completely sure of who is generating that error 500 is to try to add a debug= attribute to the ajp13 connector in server.xml, in tomcat 3.3 we got a nice logs about whats sending and receiving tomcat from IIS.. One way to debug the connection between IIS and tc, is to use a external iis server ( or external tomcat ) and reconfigure the configs to use that host for ajp13 instead of localhost, this way you will be able to see commns in port 8009 over the wire, and you could see if the options request is saw by tc in any way.. Does anyone have any idea what may be going on. No, but with your work and some more time, we will catch it.. sure :), btw.. excellent work in this message.. Just to test what would happen, I hacked the HttpFilterProc method to to catch when an OPTIONS request is received and return a OPTIONS response. I made the HttpFilterProc method, at that point, return with a SF_STATUS_REQ_FINISHED. With that, I can connect to the server and get a list of folders and files through the client. I can even copy out from the client to my desktop. However, I do encounter another 500 Internal Server Error when I attempt a PUT (to add a file). I say that to say this: there is obviously a problem in the filter with it not passing headers (the method in particular) back to IIS or from IIS to the HttpExtensionProc method. As I am not that proficient is IIS dev soI have not a clue what is happening. Is an IIS header missing or something? Is this the correct chain for the request: IIS - filter -IIS - extension - AJP13 Connector - Tomcat - Web Application (in this case: slide 1.0.16) Yes it is, my guess now is that your having problems in the extension part, i gues that because the Filter processing is very thin, a matter of getting the correct worker and forward the entire thing to the correct extension, some heraders adde and cganged otheres.. that's all, i doubt the problems lies in the filter, you could try to move your fake response code to the extension instead the filter, this way we can surpass the filter as the your problems source.. Saludos , Ignacio J. Ortega -- 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 Cocoon Question
After inspecting the source for StaticInterceptor, there is a bug that causes the debug level always be reset to 0. That would explain the lack of additional output. It is this interceptor that decides whether to redirect to a found welcome file or display a directory lists when the request refers to a directory. It is not clear why this interceptor is not picking up your welcome file. I have confirmed that this bug, among many others, is not present in Tomcat 3.3 and later. If you can give 3.3.1 a try, you would also benefit in that Tomcat 3.3 will validate the web.xml. If the welcome file is being ignored due to some syntax error in web.xml, you would find out about it. The alternative is to build your own Tomcat 3.2.x from source, removing the debug=0 in the contextInit() method of StaticInterceptor. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 11:37 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question OK, Ive set up the error log to go to tomcat.log. This is what I have in my log after I try to access http://foo.bar.com/cocoon Nothing seems to change in here after I access http://foo.bar.com/cocoon or http://foo.bar.com/cocoon/index.xml I go back and forth between pages, refreshing and still nothing seems to appear 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( /examples ) 2002-05-01 11:22:51 - Ctx( /cocoon ): Set debug to 1 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( /cocoon ) 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( ) 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( /admin ) 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( /index.html ) 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( /test ) 2002-05-01 11:22:58 - Ctx( /cocoon ): XmlReader - init /cocoon webapps/cocoon 2002-05-01 11:22:58 - Ctx( /cocoon ): Reading C:\jakarta-tomcat-3.2.4\webapps\cocoon\WEB-INF\web.xml 2002-05-01 11:22:58 - Ctx( /cocoon ): Loading -2147483646 jsp 2002-05-01 11:22:59 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2002-05-01 11:22:59 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 THanks Tony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 11:18 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question The output would go to the Tomcat log, which defaults to outputing to the console. If it gets lost there, add a path for the tc_log in server.xml. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 11:10 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question I've set the StaticInterceptor to RequestInterceptor classname=org.apache.tomcat.request.StaticInterceptor debug=1 suppress=false/ Now where is the log file that Im looking for?? I only have 3 log files in the entire jakarta-tomcat-3.2.4 directory iis_redirect.log jasper.log servlet.log Thanks Tony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 11:01 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question At this point, try changing to debug=1 on the StaticInterceptor in server.xml. That should show in the log, whether it is finding the welcome file. You will be looking for Dir handler if the file is not found, or Redirect ... if it is. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:41 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question When I get the directory listing, the bottom of my page says Tomcat Web Server v3.2.4 This is what I have in my uriworkermap.properties default.worker=ajp12 /cocoon=$(default.worker) /cocoon/*=$(default.worker) /cocoon/*.xml=$(default.worker) Still getting the same results. I thank for all your help so far, and I think Im close, but something isn't clicking somewhere. Any other thoughts Thanks Anthony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:28 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question If Tomcat is serving the listing, you should see Tomcat named in the footer of the displayed page. I forget the exact text of the string. If you don't see mentioned at the bottom of the page, then IIS is serving the listing. If you want the welcome files specified in the web.xml to make a difference, then the request http://foo.bar.com/cocoon/ will have to be forwarded to Tomcat. Which requests are forwarded is controlled by the uriworkermap.properties file. It is here
Binaries for mod_webapp
Does anyone know where the binaries for mod_webapp are? The last time I checked, I couldn't locate them. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Apache login attempts
Normally it will ask you again and again until you click cancel. Do you have some special configuration? --- Collins, Jim [EMAIL PROTECTED] wrote: Any Apache gurus out there who know how I can force Apache to give a user more than one login attempt if they enter the wrong user name or password. Thanks Jim. -Original Message- From: Collins, Jim [mailto:[EMAIL PROTECTED]] Sent: 26 April 2002 13:47 To: 'Tomcat Users List' Subject: Apache login attempts I know this is not a Tomcat problem but does anyone know how I can configure Apache to allow a user more than on login attempt. Many thanks Jim. For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat Upgrade question
Hello, I am running Tomcat 4.0.3 on NT, and I am going to upgrade the version. Up to this point, when I upgraded, I basically copied my old version to a bak.version and copied the web-apps folder over. Is this the best way to do a upgrade, or is the sw intelligent enough to just upgrade on top of itself.? I have quite a bit of sites running and was curious the best way to go from one version to another. Thanks, Scott -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat Upgrade question
Hello Scott, I would only pull in your own webapps rather than all of them. The reason is that the examples, tomcat-docs, admin, etc... that come with tomcat also get updated each release. Jake Wednesday, May 01, 2002, 12:02:30 PM, you wrote: SP Hello, SP I am running Tomcat 4.0.3 on NT, and I am going to upgrade the version. Up to this point, when I upgraded, I basically copied my old version to a bak.version and copied the web-apps folder over. SP Is this the best way to do a upgrade, or is the sw intelligent enough to just upgrade on top of itself.? SP I have quite a bit of sites running and was curious the best way to go from one version to another. SP Thanks, SP Scott SP -- SP To unsubscribe: mailto:[EMAIL PROTECTED] SP For additional commands: mailto:[EMAIL PROTECTED] SP Troubles with the list: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: mod_jk: ajp13: cpu load problem with apache
Can you try the CVS head, and see if it still happens ? If so, can you give us more details that would allow to reproduce it ? Messages like 'it doesn't work for me, you figure out why' are not very helpfull. At least enable the debug messages, let it run until it hungs, then maybe trim the log and send the last entries. Or use gdb to attach to the problem process and do a stack trace. Costin On Wed, 1 May 2002, Costas Stergiou wrote: Hi, I have an installation of Apache 1.3.19 + Tomcat 4.0.3 on a aix4.3 machine with IBM JDK 1.3.0. I have two tomcat engines and I use the lb worker of mod_jk to balance user request to these two engines. The problem is that some httpd processes seem to go into some cpu performance tasks and start consuming all the cpu of the machine (2processors, 2GB mem). After some time almost all available CPU is consumed by the apache processes. If I kill the child processes that cause the problem, the load falls back to normal. At the same time, I notice that I have excessive CPU usage in one of the tomcat instances. The problem keeps recurring all the time (almost every hour). I read in the mail-archives about similar problems but I didn't find a good answer. The version of mod_jk is the one in jakarta-tomcat-connectors-4.0.2.01 I compiled the source on the same machine (aix). I have to say that I have noticed similar problems on many more apache installations that have similar installations (apache, lb + 2 or more tomcat engines) with older versions of mod_jk and tomcat. Actually, the above problem makes the lb worker unusable since I cannot trust the setup in my production environment. Please, any idea or patches or whatever will be very helpful. Thanks very much for any ideas, Costas -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Binaries for mod_webapp
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/linux/i386/ these are the linux binaries ( I belive for apache 1.3 only ).. a few levels up are the other binaries. oktay On Wed, 01 May 2002 11:59:41 -0500 Kemp Randy-W18971 [EMAIL PROTECTED] wrote: Does anyone know where the binaries for mod_webapp are? The last time I checked, I couldn't locate them. -- 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: OutofMemoryError
Hi Matthew, I have been experiencing the same problems but with T3.2.x. You should try to use Tomcat options -Xms and -Xmx I added those 2 lines: TOMCAT_OPTS=-server -Xms256m -Xmx256m -Xincgc export TOMCAT_OPTS in my /etc/init.d/tomcat script This increase the default heap size of the JVM to 256Meg (from 64Meg) and make sure incremental Garbage collection is done. Since I changed those, I have no more OutOfMemory errors. Hope it helps, Laurent -Original Message- From: Matthew Boeckman [mailto:[EMAIL PROTECTED]] Sent: May 1, 2002 12:08 PM To: [EMAIL PROTECTED] Subject: OutofMemoryError Hello List. I'm running tomcat 3.1.1 on RH7.1, kernel 2.4.9-31 with JDK1.3.1, mysql 3.23.43 I am occasionally seeing tomcat go postal with the following errors: Exception in thread CompileThread0 java.lang.OutOfMemoryError: requested 32760 bytes Another exception has been detected while we were handling last error. No information available. Please check ERROR REPORT FILE for further information, if there is any. Good bye. An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x419852cb Function name=(N/A) Library=(N/A) NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: Another exception has been detected while we were handling last error. Dumping information about last error: ERROR REPORT FILE = (N/A) PC= 0x0x419852cb SIGNAL= 11 FUNCTION NAME = (N/A) LIBRARY NAME = (N/A) Please check ERROR REPORT FILE for further information, if there is any. Good bye. Any thoughts on what might be the cause? There is nothing in the log files to tell me more than this, which gets dumped to the console. -Thanks! -- Matthew Boeckman(816) 777-2160 Manager - Systems Integration Saepio Technologies == == ...Many say that DOS is the dark side, but actually UNIX is more like the dark side: It's less likely to find the one way to destroy your incredibly powerful machine, and more likely to make upper management choke. -Lore Sjoberg -- 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 class visibility
We're trying to understand the rules governing class visibility under Tomcat. The docs say that in the hierarchy like the one reproduced below, classloaders can access classes beneath them, but not beside or above them. From which it follows ... (i) webapps can't access the XML parser in crimson/xalan.jars without 'intervention', (ii) putting a jar containing classes that extend servlet.jar on the CLASSPATH won't work, because servlet.jar is above the Application Classloader, so Tomcat has to override CLASSPATH and the class must be in lib/common or above. We'd like to know if this is correct or not, and whether there are rules we've missed. Thanks for your attention. P. The hierarchy ... CATALINA_HOME bin classes common classes lib conf lib logs server classes lib webapps examples images jsp servlets WEB-INF manager (many dirs) ROOT WEB-INF classes lib work TOMCAT_HOME/lib/container (Server Classloader) crimson.jar facade22.jar TOMCAT_HOME/.../WEB-INF/classes jasper.jar(Web Apps classloaders) tomcat_modules.jar tomcat_util.jar TOMCAT_HOME/lib/apps xalan.jar(Apps Classloader) commons-collections.jar commons-dbcp.jar commons-pool.jar TOMCAT_HOME/lib/common (Common Classloader) connector_util.jar core_util.jar etomcat.jar jasper-runtime.jar servlet.jar tomcat_core.jar TOMCAT_HOME/lib/tomcat.jar (Application Classloader, CLASSPATH Classloader) User class files JAVA_HOME/jre/lib/ext (JDK Extensions Classloader)
RE: Tomcat Cocoon Question
How hard is it to upgrade from Tomcat 3.2.4 to 3.3.1 And is there any side affects that will make problems with Cocoon 1.8.2, and IIS 5.0 Thanks Anthony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 12:57 PM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question After inspecting the source for StaticInterceptor, there is a bug that causes the debug level always be reset to 0. That would explain the lack of additional output. It is this interceptor that decides whether to redirect to a found welcome file or display a directory lists when the request refers to a directory. It is not clear why this interceptor is not picking up your welcome file. I have confirmed that this bug, among many others, is not present in Tomcat 3.3 and later. If you can give 3.3.1 a try, you would also benefit in that Tomcat 3.3 will validate the web.xml. If the welcome file is being ignored due to some syntax error in web.xml, you would find out about it. The alternative is to build your own Tomcat 3.2.x from source, removing the debug=0 in the contextInit() method of StaticInterceptor. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 11:37 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question OK, Ive set up the error log to go to tomcat.log. This is what I have in my log after I try to access http://foo.bar.com/cocoon Nothing seems to change in here after I access http://foo.bar.com/cocoon or http://foo.bar.com/cocoon/index.xml I go back and forth between pages, refreshing and still nothing seems to appear 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( /examples ) 2002-05-01 11:22:51 - Ctx( /cocoon ): Set debug to 1 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( /cocoon ) 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( ) 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( /admin ) 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( /index.html ) 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( /test ) 2002-05-01 11:22:58 - Ctx( /cocoon ): XmlReader - init /cocoon webapps/cocoon 2002-05-01 11:22:58 - Ctx( /cocoon ): Reading C:\jakarta-tomcat-3.2.4\webapps\cocoon\WEB-INF\web.xml 2002-05-01 11:22:58 - Ctx( /cocoon ): Loading -2147483646 jsp 2002-05-01 11:22:59 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2002-05-01 11:22:59 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 THanks Tony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 11:18 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question The output would go to the Tomcat log, which defaults to outputing to the console. If it gets lost there, add a path for the tc_log in server.xml. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 11:10 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question I've set the StaticInterceptor to RequestInterceptor classname=org.apache.tomcat.request.StaticInterceptor debug=1 suppress=false/ Now where is the log file that Im looking for?? I only have 3 log files in the entire jakarta-tomcat-3.2.4 directory iis_redirect.log jasper.log servlet.log Thanks Tony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 11:01 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question At this point, try changing to debug=1 on the StaticInterceptor in server.xml. That should show in the log, whether it is finding the welcome file. You will be looking for Dir handler if the file is not found, or Redirect ... if it is. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:41 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question When I get the directory listing, the bottom of my page says Tomcat Web Server v3.2.4 This is what I have in my uriworkermap.properties default.worker=ajp12 /cocoon=$(default.worker) /cocoon/*=$(default.worker) /cocoon/*.xml=$(default.worker) Still getting the same results. I thank for all your help so far, and I think Im close, but something isn't clicking somewhere. Any other thoughts Thanks Anthony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 10:28 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question If Tomcat is serving the listing, you should see Tomcat named in the footer of the displayed page. I forget the exact text of the string. If you don't see
R: problem with mod_jk
mod_jk.so is in /usr/local/apache/libexec and I start first tomcat with shell script startup.sh and apache with apachectl when tomcat are started. The problem Isn't resolve. This is the usual error: Sintax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto: Cannot load /usr/local/apache/libexec/mod_jk.so into server: /usr/local/apache/libexec/mod_jk.so: Undefined symbol map_name_at /bin/apachectl start: http could not started HELP!!! -Messaggio originale- Da: adrianthiele [mailto:[EMAIL PROTECTED]] Inviato: mercoledì 1 maggio 2002 10.39 A: Tomcat Users List Oggetto: Re: problem with mod_jk Christian , Are you sure mod_jk got to /usr/local/libexec/apache ? By default it goes to /usr/local/libexec . Ernst has a port build for mod_jk, however I use mod_webapp. Look and see if mod_jk is in /usr/local/libexec or /usr/local/libexec/apache also make sure to use apachectl stop , then start tomcat and then apachectl start If you just want to build from the ports , it works fine. Adrian -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: ISAPI Filter and OPTIONS Dav Method.
debugging question: One way to debug the connection between IIS and tc, is to use a external iis server ( or external tomcat ) and reconfigure the configs to use that host for ajp13 instead of localhost To do this, do I do the following: 1. Run IIS on Box A with the filter. 2. Run Tomcat on Box B. 3. Go into Box A's worker.properties and set: worker.ajp13.host=Box B is that all. Am I missing any configuration files that I need to update to do this? -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 12:26 PM To: 'Tomcat Users List' Subject: RE: ISAPI Filter and OPTIONS Dav Method. De: Robert Priest [mailto:[EMAIL PROTECTED]] Enviado el: miércoles 1 de mayo de 2002 16:03 BTW: this is starting to be an excellent bug report !! so please post it to bugzilla ( if it's no there already ) so we can follow it better .. thanks.. Using: Tomcat 4.0.3. Slide 1.0.16. ISAPI Filter from J-T-C WebDrive 5.1 (Client) IIS 5.0 Excelent, thanks.. I have been having an issue where the ISAPI Filter dies whenever receiving an OPTIONS request. Dies? you are saying that it hangs in any way? or the filter continues behaving after that OPTIONS request ? It looks like HttpFilterProc gets called and does it work, but somewhere between IIS doing something and the call to HttpExtensionProc, the server sends back a 500 Internal Server Error One way to be completely sure of who is generating that error 500 is to try to add a debug= attribute to the ajp13 connector in server.xml, in tomcat 3.3 we got a nice logs about whats sending and receiving tomcat from IIS.. One way to debug the connection between IIS and tc, is to use a external iis server ( or external tomcat ) and reconfigure the configs to use that host for ajp13 instead of localhost, this way you will be able to see commns in port 8009 over the wire, and you could see if the options request is saw by tc in any way.. Does anyone have any idea what may be going on. No, but with your work and some more time, we will catch it.. sure :), btw.. excellent work in this message.. Just to test what would happen, I hacked the HttpFilterProc method to to catch when an OPTIONS request is received and return a OPTIONS response. I made the HttpFilterProc method, at that point, return with a SF_STATUS_REQ_FINISHED. With that, I can connect to the server and get a list of folders and files through the client. I can even copy out from the client to my desktop. However, I do encounter another 500 Internal Server Error when I attempt a PUT (to add a file). I say that to say this: there is obviously a problem in the filter with it not passing headers (the method in particular) back to IIS or from IIS to the HttpExtensionProc method. As I am not that proficient is IIS dev soI have not a clue what is happening. Is an IIS header missing or something? Is this the correct chain for the request: IIS - filter -IIS - extension - AJP13 Connector - Tomcat - Web Application (in this case: slide 1.0.16) Yes it is, my guess now is that your having problems in the extension part, i gues that because the Filter processing is very thin, a matter of getting the correct worker and forward the entire thing to the correct extension, some heraders adde and cganged otheres.. that's all, i doubt the problems lies in the filter, you could try to move your fake response code to the extension instead the filter, this way we can surpass the filter as the your problems source.. Saludos , Ignacio J. Ortega -- 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]
JAAS inside of a Servlet
Hi there, I'm trying to run the simple authentication inside a Servlet and I'm getting a security exception: unable to instantiate LoginConfiguration. I have the same code working from a stand-alone application. I read on that there is a problem with jdk 1.3 and JAAS 1.0, so I did what they recommend to put the jaas.jar and login module jar on the classpath, I did and didn't work. I found also that the jdk 1.4 would fix this problem, installed and I still have the problem. Any help would be very appreciate. Thanks in advance, Marcio Adriano PS.: The following is the full exception message: java.lang.SecurityException: unable to instantiate LoginConfiguration at javax.security.auth.login.Configuration.getConfiguration(Configuration.java: 212) at javax.security.auth.login.LoginContext$1.run(LoginContext.java:166) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext.init(LoginContext.java:163) at javax.security.auth.login.LoginContext.init(LoginContext.java:319) at com.truecontext.wasabi.presentation.control.web.handlers.LoginHandler.doStar t(LoginHandler.java:75) at com.truecontext.wasabi.presentation.control.web.RequestProcessor.processRequ est(RequestProcessor.java:86) at com.truecontext.wasabi.presentation.control.web.MainServlet.doProcess(MainSe rvlet.java:191) at com.truecontext.wasabi.presentation.control.web.MainServlet.doGet(MainServle t.java:140) at com.truecontext.wasabi.presentation.control.web.MainServlet.doPost(MainServl et.java:78) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) 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.ja va:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) 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.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) 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:5 66) 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.http.HttpProcessor.process(HttpProcessor.java: 1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106 ) at java.lang.Thread.run(Thread.java:484) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Erro 4.03 - java.lang.NoClassDefFoundError: sun/tools/javac/Main
- Original Message - From: Nijava [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, May 01, 2002 11:58 AM Subject: Erro 4.03 - java.lang.NoClassDefFoundError: sun/tools/javac/Main People, I am using the operational system windows98 with the JDK1.3.1 and tomcat 4.0.3. When trying to execute some applicatory .jsp appears the error below. I am also sending the configurations of mine autoexec. Please help me. SET JAVA_HOME=C:\j2sdk1.4.0 SET CATALINA_HOME=C:\jakarta-tomcat-4.0.3-LE-jdk14 SET TOMCAT_HOME=C:\jakarta-tomcat-4.0.3-LE-jdk14 SET CLASSPATH=.;%JAVA_HOME%\bin;%TOMCAT_HOME%\COMMON\LIB\servlet.jar PATH C:\j2sdk1.4.0\bin;C:\j2sdk1.4.0\lib;c:\WINDOWS;C:\WINDOWS\COMMAND 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: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) 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.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) 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.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) 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 :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) 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.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Thread.java:536) root cause java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at
RE: ISAPI Filter and OPTIONS Dav Method.
Okay. It was a bad dns entry. -Original Message- From: Robert Priest [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 2:38 PM To: 'Tomcat Users List' Subject: RE: ISAPI Filter and OPTIONS Dav Method. debugging question: One way to debug the connection between IIS and tc, is to use a external iis server ( or external tomcat ) and reconfigure the configs to use that host for ajp13 instead of localhost To do this, do I do the following: 1. Run IIS on Box A with the filter. 2. Run Tomcat on Box B. 3. Go into Box A's worker.properties and set: worker.ajp13.host=Box B is that all. Am I missing any configuration files that I need to update to do this? -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 12:26 PM To: 'Tomcat Users List' Subject: RE: ISAPI Filter and OPTIONS Dav Method. De: Robert Priest [mailto:[EMAIL PROTECTED]] Enviado el: miércoles 1 de mayo de 2002 16:03 BTW: this is starting to be an excellent bug report !! so please post it to bugzilla ( if it's no there already ) so we can follow it better .. thanks.. Using: Tomcat 4.0.3. Slide 1.0.16. ISAPI Filter from J-T-C WebDrive 5.1 (Client) IIS 5.0 Excelent, thanks.. I have been having an issue where the ISAPI Filter dies whenever receiving an OPTIONS request. Dies? you are saying that it hangs in any way? or the filter continues behaving after that OPTIONS request ? It looks like HttpFilterProc gets called and does it work, but somewhere between IIS doing something and the call to HttpExtensionProc, the server sends back a 500 Internal Server Error One way to be completely sure of who is generating that error 500 is to try to add a debug= attribute to the ajp13 connector in server.xml, in tomcat 3.3 we got a nice logs about whats sending and receiving tomcat from IIS.. One way to debug the connection between IIS and tc, is to use a external iis server ( or external tomcat ) and reconfigure the configs to use that host for ajp13 instead of localhost, this way you will be able to see commns in port 8009 over the wire, and you could see if the options request is saw by tc in any way.. Does anyone have any idea what may be going on. No, but with your work and some more time, we will catch it.. sure :), btw.. excellent work in this message.. Just to test what would happen, I hacked the HttpFilterProc method to to catch when an OPTIONS request is received and return a OPTIONS response. I made the HttpFilterProc method, at that point, return with a SF_STATUS_REQ_FINISHED. With that, I can connect to the server and get a list of folders and files through the client. I can even copy out from the client to my desktop. However, I do encounter another 500 Internal Server Error when I attempt a PUT (to add a file). I say that to say this: there is obviously a problem in the filter with it not passing headers (the method in particular) back to IIS or from IIS to the HttpExtensionProc method. As I am not that proficient is IIS dev soI have not a clue what is happening. Is an IIS header missing or something? Is this the correct chain for the request: IIS - filter -IIS - extension - AJP13 Connector - Tomcat - Web Application (in this case: slide 1.0.16) Yes it is, my guess now is that your having problems in the extension part, i gues that because the Filter processing is very thin, a matter of getting the correct worker and forward the entire thing to the correct extension, some heraders adde and cganged otheres.. that's all, i doubt the problems lies in the filter, you could try to move your fake response code to the extension instead the filter, this way we can surpass the filter as the your problems source.. Saludos , Ignacio J. Ortega -- 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: ISAPI Filter and OPTIONS Dav Method.
-Mensaje original- De: Robert Priest [mailto:[EMAIL PROTECTED]] Enviado el: miércoles 1 de mayo de 2002 20:38 1. Run IIS on Box A with the filter. 2. Run Tomcat on Box B. 3. Go into Box A's worker.properties and set: worker.ajp13.host=Box B Right Saludos , Ignacio J. Ortega -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re[2]: OutofMemoryError
Hello Laurent, Hmmm -Xincgc Enable the incremental garbage collector. The incremental garbage collector, which is off by default, will eliminate occasional garbage-collection pauses during program execution. However, it can lead to a roughly 10% decrease in overall GC performance From: http://java.sun.com/products/hotspot/2.0/README.html#use If you can live with a 10% decrease in overall garbage collection performance, then yeah, I guess use incremental garbage collection. Jake Wednesday, May 01, 2002, 12:35:37 PM, you wrote: LFP Hi Matthew, LFP I have been experiencing the same problems but with T3.2.x. LFP You should try to use Tomcat options -Xms and -Xmx LFP I added those 2 lines: LFP TOMCAT_OPTS=-server -Xms256m -Xmx256m -Xincgc LFP export TOMCAT_OPTS LFP in my /etc/init.d/tomcat script LFP This increase the default heap size of the JVM to 256Meg (from 64Meg) LFP and make sure incremental Garbage collection is done. Since I changed LFP those, I have no more OutOfMemory errors. LFP Hope it helps, LFP Laurent LFP -Original Message- LFP From: Matthew Boeckman [mailto:[EMAIL PROTECTED]] LFP Sent: May 1, 2002 12:08 PM LFP To: [EMAIL PROTECTED] LFP Subject: OutofMemoryError LFP Hello List. LFP I'm running tomcat 3.1.1 on RH7.1, kernel 2.4.9-31 with JDK1.3.1, mysql LFP 3.23.43 LFP I am occasionally seeing tomcat go postal with the following errors: LFP Exception in thread CompileThread0 java.lang.OutOfMemoryError: LFP requested 32760 bytes LFP LFP Another exception has been detected while we were handling last error. LFP No information available. Please check ERROR REPORT FILE for further LFP information, if there is any. Good bye. LFP An unexpected exception has been detected in native code outside the VM. LFP Unexpected Signal : 11 occurred at PC=0x419852cb Function name=(N/A) LFP Library=(N/A) LFP NOTE: We are unable to locate the function name symbol for the error LFPjust occurred. Please refer to release documentation for possible LFPreason and solutions. LFP Current Java thread: LFP LFP Another exception has been detected while we were handling last error. LFP Dumping information about last error: ERROR REPORT FILE = (N/A) LFP PC= 0x0x419852cb LFP SIGNAL= 11 LFP FUNCTION NAME = (N/A) LFP LIBRARY NAME = (N/A) LFP Please check ERROR REPORT FILE for further information, if there is any. LFP Good bye. LFP Any thoughts on what might be the cause? There is nothing in the log LFP files to tell me more than this, which gets dumped to the console. LFP -Thanks! -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Re[2]: OutofMemoryError
Thanks, yes we can live with that. Actually, since we added those changes it really improved the stability of the application. Those suggestions were made on that list a few months ago. Regards, Laurent -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: May 1, 2002 2:52 PM To: Tomcat Users List Subject: Re[2]: OutofMemoryError Hello Laurent, Hmmm -Xincgc Enable the incremental garbage collector. The incremental garbage collector, which is off by default, will eliminate occasional garbage-collection pauses during program execution. However, it can lead to a roughly 10% decrease in overall GC performance From: http://java.sun.com/products/hotspot/2.0/README.html#use If you can live with a 10% decrease in overall garbage collection performance, then yeah, I guess use incremental garbage collection. Jake Wednesday, May 01, 2002, 12:35:37 PM, you wrote: LFP Hi Matthew, LFP I have been experiencing the same problems but with T3.2.x. LFP You should try to use Tomcat options -Xms and -Xmx LFP I added those 2 lines: LFP TOMCAT_OPTS=-server -Xms256m -Xmx256m -Xincgc LFP export TOMCAT_OPTS LFP in my /etc/init.d/tomcat script LFP This increase the default heap size of the JVM to 256Meg (from LFP 64Meg) and make sure incremental Garbage collection is done. Since LFP I changed those, I have no more OutOfMemory errors. LFP Hope it helps, LFP Laurent LFP -Original Message- LFP From: Matthew Boeckman [mailto:[EMAIL PROTECTED]] LFP Sent: May 1, 2002 12:08 PM LFP To: [EMAIL PROTECTED] LFP Subject: OutofMemoryError LFP Hello List. LFP I'm running tomcat 3.1.1 on RH7.1, kernel 2.4.9-31 with JDK1.3.1, mysql LFP 3.23.43 LFP I am occasionally seeing tomcat go postal with the following errors: LFP Exception in thread CompileThread0 java.lang.OutOfMemoryError: LFP requested 32760 bytes LFP LFP Another exception has been detected while we were handling last error. LFP No information available. Please check ERROR REPORT FILE for further LFP information, if there is any. Good bye. LFP An unexpected exception has been detected in native code outside the VM. LFP Unexpected Signal : 11 occurred at PC=0x419852cb Function name=(N/A) LFP Library=(N/A) LFP NOTE: We are unable to locate the function name symbol for the error LFPjust occurred. Please refer to release documentation for possible LFPreason and solutions. LFP Current Java thread: LFP LFP Another exception has been detected while we were handling last error. LFP Dumping information about last error: ERROR REPORT FILE = (N/A) LFP PC= 0x0x419852cb LFP SIGNAL= 11 LFP FUNCTION NAME = (N/A) LFP LIBRARY NAME = (N/A) LFP Please check ERROR REPORT FILE for further information, if there is any. LFP Good bye. LFP Any thoughts on what might be the cause? There is nothing in the log LFP files to tell me more than this, which gets dumped to the console. LFP -Thanks! -- Best regards, Jacobmailto:[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]
email servlet not working on TOMCAT
The servlet that uses mail.jar copiles but fails with error 500 when run on TOMCAT. Any ideas? The classpath is set to: C:\JAKART~1.3\WEBAPPS\ROOT\WEB-INF\CLASSES\ADSecho %CLASSPATH% c:\jakarta-tomcat-3.3\lib\activation.jar;c: \jakarta-tomcat-3.3\lib\mail.jar;c:\j akarta-tomcat-3.3\lib;c:\jakarta-tomcat-3.3\lib\common\servlet.jar;C: \orant817\j dbc\lib\classes12.zip;C:\orant817\jdbc\lib\nls_charset12.zip;c: \jdk1.3.1_01\lib\ tools.jar;c:\jdk1.3.1_01\lib\dt.jar;c:\jakarta-tomcat-3.3\lib;c: \jdk1.3.1_01\bin ;c:\orant817\bin;. Servlet fails with the following error: java.lang.NoClassDefFoundError: javax/mail/MessagingException at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
db connections and Abusive refresh
Hi all, We are experiencing a few problems with our DB connection code and an abusive usage of the F5/refresh function on the client side. Each of our jsp actually connects to the db at the top and disconnects at the bottom. When someone uses the refresh in the browser it leaves connections hanging/sleeping in MySQL. Is there anyway to avoid this? Thanks for the help, Laurent -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: db connections and Abusive refresh
Hello Laurent, Yes, Here is an example. Take notice of how connections, result sets, and prepared statements are guaranteed to be closed in the finally blocks: public Site getSite( int _id ) throws SQLException { Connection conn = null; Site newSite= null; try { conn = openConn(); newSite = getSite(_id, conn); closeConn(conn); return newSite; } catch(SQLException e) { System.out.println(MSG_ERROR_CONNECTION + e.getMessage()); throw e; } finally { if (conn != null) try { closeConn(conn); } catch(Exception e2) {} } } // Get a single site by id public Site getSite( int _id, Connection _conn ) throws SQLException { PreparedStatement pstmt = null; ResultSet rs = null; Site newSite = null; String query = SELECT id, url, description, created, updated, deleted + FROM site WHERE id = ?; try { pstmt = _conn.prepareStatement(query); pstmt.setInt(1,_id); rs = pstmt.executeQuery(); while (rs.next()) { newSite = Site.fromResults(rs); if (debug) System.out.println(\n + newSite); } rs.close(); pstmt.close(); return newSite; } catch(SQLException e) { System.out.println(MSG_ERROR_RESULTSET + e.getMessage()); throw e; } finally { if (rs != null)try { rs.close(); }catch(Exception e2) {} if (pstmt != null) try { pstmt.close(); } catch(Exception e3) {} } } You can also use Syncronization if it is still a problem. Jake Wednesday, May 01, 2002, 2:23:17 PM, you wrote: LFP Hi all, LFP We are experiencing a few problems with our DB connection code and an LFP abusive usage of the F5/refresh function on the client side. LFP Each of our jsp actually connects to the db at the top and disconnects LFP at the bottom. When someone uses the refresh in the browser it leaves LFP connections hanging/sleeping in MySQL. Is there anyway to avoid this? LFP Thanks for the help, LFP Laurent LFP -- LFP To unsubscribe: mailto:[EMAIL PROTECTED] LFP For additional commands: mailto:[EMAIL PROTECTED] LFP Troubles with the list: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: email servlet not working on TOMCAT
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Enviado el: miércoles 1 de mayo de 2002 21:22 The classpath is set to: Tomcat 3.3 and 4.0, doesnt use the classpath env var, it's overwrited with his own, in the startup.(bat|sh), AFAIK, so better try to put them on the appropiate directory inside tomcat/lib, that in your case would be %tomcat_home%/lib/apps, be sure you doesnt have this jars in the extension repository at %java_home%/jre/lib/ext ( perhaps i've mispelled this path in writing from memory ) Saludos , Ignacio J. Ortega -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat Cocoon Question
I would recommend giving it a try. The 3.3 release notes covers the most important new features and changes. Primarily, check out the 2. INSTALLING AND RUNNING TOMCAT and 5. NEW FEATURES AND CHANGES IN THIS RELEASE in: http://jakarta.apache.org/tomcat/tomcat-3.3-doc/readme Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 1:53 PM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question How hard is it to upgrade from Tomcat 3.2.4 to 3.3.1 And is there any side affects that will make problems with Cocoon 1.8.2, and IIS 5.0 Thanks Anthony -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 12:57 PM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question After inspecting the source for StaticInterceptor, there is a bug that causes the debug level always be reset to 0. That would explain the lack of additional output. It is this interceptor that decides whether to redirect to a found welcome file or display a directory lists when the request refers to a directory. It is not clear why this interceptor is not picking up your welcome file. I have confirmed that this bug, among many others, is not present in Tomcat 3.3 and later. If you can give 3.3.1 a try, you would also benefit in that Tomcat 3.3 will validate the web.xml. If the welcome file is being ignored due to some syntax error in web.xml, you would find out about it. The alternative is to build your own Tomcat 3.2.x from source, removing the debug=0 in the contextInit() method of StaticInterceptor. Cheers, Larry -Original Message- From: Anthony Diodato [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 11:37 AM To: 'Tomcat Users List' Subject: RE: Tomcat Cocoon Question OK, Ive set up the error log to go to tomcat.log. This is what I have in my log after I try to access http://foo.bar.com/cocoon Nothing seems to change in here after I access http://foo.bar.com/cocoon or http://foo.bar.com/cocoon/index.xml I go back and forth between pages, refreshing and still nothing seems to appear 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( /examples ) 2002-05-01 11:22:51 - Ctx( /cocoon ): Set debug to 1 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( /cocoon ) 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( ) 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( /admin ) 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( /index.html ) 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( /test ) 2002-05-01 11:22:58 - Ctx( /cocoon ): XmlReader - init /cocoon webapps/cocoon 2002-05-01 11:22:58 - Ctx( /cocoon ): Reading C:\jakarta-tomcat-3.2.4\webapps\cocoon\WEB-INF\web.xml 2002-05-01 11:22:58 - Ctx( /cocoon ): Loading -2147483646 jsp 2002-05-01 11:22:59 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2002-05-01 11:22:59 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 THanks Tony -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat 4.0.3 hangs, want to eliminate Warp error
Tomcat 4.0.3 Apache 1.3.23 Struts 1.0 Log4J 1.1.3 Tomcat hangs after a few hours of constant traffic, consuming most of the system resources. When it hangs, all Tomcat logging stops. There on no error messages in catalina.out, nor in the system logs, that indicate what the source of the problem might be. There is no certain time frame for the failures either -- it seems random. We're attempting to elimate possible causes one by one, but we have little info to act on. We have noticed that were getting the same Warp connection error as others have reported: [org.apache.catalina.connector.warp.WarpConnection] Exception on socket java.io.IOException: Premature packet header end at org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java( Compiled Code)) at org.apache.catalina.connector.warp.WarpRequestHandler.handle (WarpRequestHandler.java(Compiled Code)) at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java: 194) at java.lang.Thread.run(Thread.java(Compiled Code)) To eliminate this problem, we've attempted the various proposed solutions we've seen elsewhere on the list. We grabbed the source for warp.jar and mod_webapp.so from cvs on 28 Apr. 2002, compiled, and installed them both with no luck. What have we missed here? Thanks in advance for any insight you can provide, Rick Here's the relevant server.xml !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=10 maxProcessors=150 enableLookups=false acceptCount=10 debug=4/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache defaultHost=www.mydomain.com debug=4 appBase=webapps Logger className=org.apache.catalina.logger.FileLogger prefix=global_logger. suffix=.txt timestamp=true verbosity=4/ !-- host www.mydomain.com -- Host name=www.mydomain.com debug=4 appBase=webapps unpackWARs=true Context path= docBase=saxon debug=0/ Context path=/ docBase=saxon debug=0/ Logger className=org.apache.catalina.logger.FileLogger prefix=www_apache_log. suffix=.txt timestamp=true verbosity=4/ /Host !-- Because this Realm is here, an instance will be shared globally -- Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service Here's the Apache config. VirtualHost 127.0.0.1:80 ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/tomcat/webapps/saxon ServerName www.mydomain.com ### # Tomcat connector!! ### WebAppConnection conn warp 127.0.0.1:8008 WebAppDeploysaxon conn / WebAppInfo /webapp-info /VirtualHost -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: OutofMemoryError
Are you running java 1.3 or 1.4 ? We're really trying to nail this down. We've had the Xms and Xmx options in place now for some time, and the java proc just grows right past Xmx, up to nearly full system memory, then tomcat dies. I'm ready to hear any suggestions, but I want to try to narrow the scope somewhat. Laurent Féral-Pierssens wrote: Hi Matthew, I have been experiencing the same problems but with T3.2.x. You should try to use Tomcat options -Xms and -Xmx I added those 2 lines: TOMCAT_OPTS=-server -Xms256m -Xmx256m -Xincgc export TOMCAT_OPTS in my /etc/init.d/tomcat script This increase the default heap size of the JVM to 256Meg (from 64Meg) and make sure incremental Garbage collection is done. Since I changed those, I have no more OutOfMemory errors. Hope it helps, Laurent -Original Message- From: Matthew Boeckman [mailto:[EMAIL PROTECTED]] Sent: May 1, 2002 12:08 PM To: [EMAIL PROTECTED] Subject: OutofMemoryError Hello List. I'm running tomcat 3.1.1 on RH7.1, kernel 2.4.9-31 with JDK1.3.1, mysql 3.23.43 I am occasionally seeing tomcat go postal with the following errors: Exception in thread CompileThread0 java.lang.OutOfMemoryError: requested 32760 bytes Another exception has been detected while we were handling last error. No information available. Please check ERROR REPORT FILE for further information, if there is any. Good bye. An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x419852cb Function name=(N/A) Library=(N/A) NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: Another exception has been detected while we were handling last error. Dumping information about last error: ERROR REPORT FILE = (N/A) PC= 0x0x419852cb SIGNAL= 11 FUNCTION NAME = (N/A) LIBRARY NAME = (N/A) Please check ERROR REPORT FILE for further information, if there is any. Good bye. Any thoughts on what might be the cause? There is nothing in the log files to tell me more than this, which gets dumped to the console. -Thanks! -- Matthew Boeckman(816) 777-2160 Manager - Systems Integration Saepio Technologies == == ...Many say that DOS is the dark side, but actually UNIX is more like the dark side: It's less likely to find the one way to destroy your incredibly powerful machine, and more likely to make upper management choke. -Lore Sjoberg -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: ISAPI Filter and OPTIONS Dav Method.
Just wanted to say that I filed the following bug for this problem: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8709 It contains the description that I gave at the beginning of this thread along with the following text: To further debug, I set iis up on one box with the filter and tomcat on another. I then proceeded to do network trace. The result was that the request was never forwarded to the box running tomcat. The box running iis/isapi_redirect never forwarded the request on. Nothing was ever sent out on the wire. IIS (or the filter) sent simply sent back a 500 Server Error. -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 2:49 PM To: 'Tomcat Users List' Subject: RE: ISAPI Filter and OPTIONS Dav Method. -Mensaje original- De: Robert Priest [mailto:[EMAIL PROTECTED]] Enviado el: miércoles 1 de mayo de 2002 20:38 1. Run IIS on Box A with the filter. 2. Run Tomcat on Box B. 3. Go into Box A's worker.properties and set: worker.ajp13.host=Box B Right Saludos , Ignacio J. Ortega -- 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]
Removing Request Parameters
I have the need to remove parameters from a ServletRequest. Specifically when I do URL forwarding, I don't want the parameters on the initial request to conflict with those in the forwarded request. Unfortunately, the JSP API provides me with no method to remove Request parameters (there is no ServletRequest.removeParameter method). In addition, Mr. McClanahan seems hell-bent on preventing me from doing so short of downcasting the request parameter Map returned from ServletRequest.getParameterMap() to an org.apache.catalina.util.ParameterMap and doing a hacked-up-end-run. So really, my question is two fold: 1. Why is there no ServletRequest.removeParameter() method (I assume somebody in this forum knows) 2. If I really, really want to, how can I either remove all of the parameters from a request or initialize/recycle the request object in a Struts action before I forward to another URL. Thanks Scott W. Sadler - Cisco Systems --- When choosing between two evils, I always like to try the one I've never tried before. - Mae West (1892-1980) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Removing Request Parameters
I'm assuming that you're using a RequestDispatcher to forward the request off. My question is why don't you use a forward response to the web client? Do something like this: String targetUri = genUri( request ); response.sendRedirect( targetUri ); Where the genUri would create the uri for the redirect. You could put whatever you want in the uri and do whatever filtering you want to do. Since with a redirect you're not passing the same request object around (unlike the RequestDispater.forward) it seems like it'd solve your problem. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Scott W. Sadler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 1:41 PM To: tomcat Subject: Removing Request Parameters I have the need to remove parameters from a ServletRequest. Specifically when I do URL forwarding, I don't want the parameters on the initial request to conflict with those in the forwarded request. Unfortunately, the JSP API provides me with no method to remove Request parameters (there is no ServletRequest.removeParameter method). In addition, Mr. McClanahan seems hell-bent on preventing me from doing so short of downcasting the request parameter Map returned from ServletRequest.getParameterMap() to an org.apache.catalina.util.ParameterMap and doing a hacked-up-end-run. So really, my question is two fold: 1. Why is there no ServletRequest.removeParameter() method (I assume somebody in this forum knows) 2. If I really, really want to, how can I either remove all of the parameters from a request or initialize/recycle the request object in a Struts action before I forward to another URL. Thanks Scott W. Sadler - Cisco Systems --- When choosing between two evils, I always like to try the one I've never tried before. - Mae West (1892-1980) -- 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: Binaries for mod_webapp
Kemp Randy-W18971 wrote: Does anyone know where the binaries for mod_webapp are? The last time I checked, I couldn't locate them. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] I`ve got a FreeBSD binary if you need it. I have`nt seen any on the site. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
catalina.sh cygwin
Greetings: Am using a the latest build of tomcat 4.0 on Win2K. Just started working with tomcat today, pardon my lack of familiarity. I changed the catalina.sh file as follows to get it to work under cygwin (very recent version as well) because of minor bugs in the shell code. I would like these changes to go in permanently so I don't have to redo them later... ? $ diff c:\Programs\Tomcat40\bin\catalina.sh.old c: \Programs\Tomcat40\bin\catalina.sh 81a82 99,102c100,105 JAVA_HOME=`cygpath --path --windows $JAVA_HOME` CATALINA_HOME=`cygpath --path --windows $CATALINA_HOME` CLASSPATH=`cygpath --path --windows $CLASSPATH` JSSE_HOME=`cygpath --path --windows $JSSE_HOME` --- JAVA_HOME=` cygpath --path --windows $JAVA_HOME` CATALINA_HOME=` cygpath --path --windows $CATALINA_HOME` CLASSPATH=` cygpath --path --windows $CLASSPATH` JSSE_HOME=` cygpath --path --windows $JSSE_HOME` CATALINA_BASE=` cygpath --path --windows $CATALINA_BASE` CATALINA_TMPDIR=`cygpath --path --windows $CATALINA_TMPDIR` 187a191 mkdir -p $CATALINA_BASE/logs thanx troy -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: R: problem with mod_jk
Tell me your setup ? what version of Apache , what version of Tomcat, did you build the mod_jk ? Are you using any of the ports to build this ? What jdk are you using? Christian wrote: mod_jk.so is in /usr/local/apache/libexec and I start first tomcat with shell script startup.sh and apache with apachectl when tomcat are started. The problem Isn't resolve. This is the usual error: Sintax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto: Cannot load /usr/local/apache/libexec/mod_jk.so into server: /usr/local/apache/libexec/mod_jk.so: Undefined symbol map_name_at /bin/apachectl start: http could not started HELP!!! -Messaggio originale- Da: adrianthiele [mailto:[EMAIL PROTECTED]] Inviato: mercoledì 1 maggio 2002 10.39 A: Tomcat Users List Oggetto: Re: problem with mod_jk Christian , Are you sure mod_jk got to /usr/local/libexec/apache ? By default it goes to /usr/local/libexec . Ernst has a port build for mod_jk, however I use mod_webapp. Look and see if mod_jk is in /usr/local/libexec or /usr/local/libexec/apache also make sure to use apachectl stop , then start tomcat and then apachectl start If you just want to build from the ports , it works fine. Adrian -- 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: Binaries for mod_webapp
Check here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/ - Original Message - From: adrianthiele [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, May 01, 2002 12:55 Subject: Re: Binaries for mod_webapp Kemp Randy-W18971 wrote: Does anyone know where the binaries for mod_webapp are? The last time I checked, I couldn't locate them. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] I`ve got a FreeBSD binary if you need it. I have`nt seen any on the site. -- 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]
R: problem with mod_jk
FreeBSD 4.5 release Jdk 1.1.8 Apache 1.3.24 Tomcat 3.2.4 I use binary version, fount on the site for tomcat 2.3.4, jdk is a ports of freebsd (java originally not support FreeBSD), apache 1.3.24 is a source fount on apache web site. For compile mod_jk I download source of tomcat 3.2.4, in this source there is makefile.freebsd, they permits make source specific on freebsd. -Messaggio originale- Da: adrianthiele [mailto:[EMAIL PROTECTED]] Inviato: mercoledì 1 maggio 2002 18.58 A: Tomcat Users List Oggetto: Re: R: problem with mod_jk Tell me your setup ? what version of Apache , what version of Tomcat, did you build the mod_jk ? Are you using any of the ports to build this ? What jdk are you using? Christian wrote: mod_jk.so is in /usr/local/apache/libexec and I start first tomcat with shell script startup.sh and apache with apachectl when tomcat are started. The problem Isn't resolve. This is the usual error: Sintax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto: Cannot load /usr/local/apache/libexec/mod_jk.so into server: /usr/local/apache/libexec/mod_jk.so: Undefined symbol map_name_at /bin/apachectl start: http could not started HELP!!! [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: R: problem with mod_jk
Christian wrote: FreeBSD 4.5 release Jdk 1.1.8 Apache 1.3.24 Tomcat 3.2.4 I use binary version, fount on the site for tomcat 2.3.4, jdk is a ports of freebsd (java originally not support FreeBSD), apache 1.3.24 is a source fount on apache web site. For compile mod_jk I download source of tomcat 3.2.4, in this source there is makefile.freebsd, they permits make source specific on freebsd. -Messaggio originale- Da: adrianthiele [mailto:[EMAIL PROTECTED]] Inviato: mercoledì 1 maggio 2002 18.58 A: Tomcat Users List Oggetto: Re: R: problem with mod_jk Tell me your setup ? what version of Apache , what version of Tomcat, did you build the mod_jk ? Are you using any of the ports to build this ? What jdk are you using? Christian wrote: mod_jk.so is in /usr/local/apache/libexec and I start first tomcat with shell script startup.sh and apache with apachectl when tomcat are started. The problem Isn't resolve. This is the usual error: Sintax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto: Cannot load /usr/local/apache/libexec/mod_jk.so into server: /usr/local/apache/libexec/mod_jk.so: Undefined symbol map_name_at /bin/apachectl start: http could not started HELP!!! [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] Why aren`t you using the jdk1.3.1 for freeBSD ? Would you like to try mine (mod_jk) ? here`s my worker.properties workers.tomcat_home=$CATALINA_HOME workers.java_home=$JAVA_HOME ps=/ worker.list=ajp12, ajp13 worker.ajp13.port8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 Added to httpd.conf # LoadModule jk_module libexec/apache/mod_jk.so AddModule mod_jk.c IfModule mod_jk.c JkWorkersFile /usr/local/tomcat/conf/workers.properties JkLogFile logs/jk.log JkLogLevel warn JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /examples/* ajp13 /IfModule ## Check yours to see if it jives. what does your auto .conf file look like ? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Sticky sessions with mod_jk and tomcat don't stick
I followed (I think the instructions) in this article: http://www.ubeans.com/tomcat/index.html I have Apache 1.3.20 on RedHat Linux 7.2. One instance of tomcat 4.0.3 is also running on that same machine using IBM's JDK 1.3.1. The other tomcat is 4.0.3 running on Sun's JDK 1.4 on Solaris 8 (sparc). Each server.xml has a unique jvmRoute attribute on the ajp Connector element. But when I'm using my application it will stick to one tomcat server for a while, then randomly hit the other. Since my session isn't on that server, my app sends me back to the login page. Since that is a somewhat unfriendly user experience, I would really like to get sticky sessions working correctly. Anybody have any idea what I could be doing wrong? Thanks, Barry Roberts
RE: Sticky sessions with mod_jk and tomcat don't stick
Oops. Nevermind. The jvmRoute goes on the Engine element, NOT the Connector element. Thanks anyway, Barry Roberts -Original Message- From: Barry Roberts Sent: Wednesday, May 01, 2002 3:55 PM To: [EMAIL PROTECTED] Subject: Sticky sessions with mod_jk and tomcat don't stick I followed (I think the instructions) in this article: http://www.ubeans.com/tomcat/index.html I have Apache 1.3.20 on RedHat Linux 7.2. One instance of tomcat 4.0.3 is also running on that same machine using IBM's JDK 1.3.1. The other tomcat is 4.0.3 running on Sun's JDK 1.4 on Solaris 8 (sparc). Each server.xml has a unique jvmRoute attribute on the ajp Connector element. But when I'm using my application it will stick to one tomcat server for a while, then randomly hit the other. Since my session isn't on that server, my app sends me back to the login page. Since that is a somewhat unfriendly user experience, I would really like to get sticky sessions working correctly. Anybody have any idea what I could be doing wrong? Thanks, Barry Roberts
RE: db connections and Abusive refresh
If you are not going to use MVC is there any reason why you can't do your database accesses at the top of your JSP and the put the results in variables to be output below in the page? Sorry, if I don't understand your question, but it sounded like you were holding a database connection open until a scriplet closes it at the bottom of the page. --JG -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 1:31 PM To: Tomcat Users List Subject: Re: db connections and Abusive refresh Hello Laurent, Yes, Here is an example. Take notice of how connections, result sets, and prepared statements are guaranteed to be closed in the finally blocks: public Site getSite( int _id ) throws SQLException { Connection conn = null; Site newSite= null; try { conn = openConn(); newSite = getSite(_id, conn); closeConn(conn); return newSite; } catch(SQLException e) { System.out.println(MSG_ERROR_CONNECTION + e.getMessage()); throw e; } finally { if (conn != null) try { closeConn(conn); } catch(Exception e2) {} } } // Get a single site by id public Site getSite( int _id, Connection _conn ) throws SQLException { PreparedStatement pstmt = null; ResultSet rs = null; Site newSite = null; String query = SELECT id, url, description, created, updated, deleted + FROM site WHERE id = ?; try { pstmt = _conn.prepareStatement(query); pstmt.setInt(1,_id); rs = pstmt.executeQuery(); while (rs.next()) { newSite = Site.fromResults(rs); if (debug) System.out.println(\n + newSite); } rs.close(); pstmt.close(); return newSite; } catch(SQLException e) { System.out.println(MSG_ERROR_RESULTSET + e.getMessage()); throw e; } finally { if (rs != null)try { rs.close(); }catch(Exception e2) {} if (pstmt != null) try { pstmt.close(); } catch(Exception e3) {} } } You can also use Syncronization if it is still a problem. Jake Wednesday, May 01, 2002, 2:23:17 PM, you wrote: LFP Hi all, LFP We are experiencing a few problems with our DB connection code and an LFP abusive usage of the F5/refresh function on the client side. LFP Each of our jsp actually connects to the db at the top and disconnects LFP at the bottom. When someone uses the refresh in the browser it leaves LFP connections hanging/sleeping in MySQL. Is there anyway to avoid this? LFP Thanks for the help, LFP Laurent LFP -- LFP To unsubscribe: mailto:[EMAIL PROTECTED] LFP For additional commands: mailto:[EMAIL PROTECTED] LFP Troubles with the list: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[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: Removing Request Parameters
Thanks Mike. I am currently using Struts and creating an ActionForward when firing off the new URL. I did not realize a redirect would create a new request (which I what I assume happens given your explanation). I can just set the forward flag on the ActionForward to have the Struts framework call HttpServletResponse.sendRedirect. Still... I wonder why a servlet cannot modify the request parameters on the fly. Whereas the Servlet designers may not have found this useful, I cannot see why they explicitly disallow it. -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 4:50 PM To: Tomcat Users List Subject: RE: Removing Request Parameters I'm assuming that you're using a RequestDispatcher to forward the request off. My question is why don't you use a forward response to the web client? Do something like this: String targetUri = genUri( request ); response.sendRedirect( targetUri ); Where the genUri would create the uri for the redirect. You could put whatever you want in the uri and do whatever filtering you want to do. Since with a redirect you're not passing the same request object around (unlike the RequestDispater.forward) it seems like it'd solve your problem. --mikej -=- mike jackson [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Does anyone have in-memory session replication working?
I am trying to get in-memory session replication working as described here: http://www.filip.net/tomcat/tomcat-javagroups.html Only it doesn't seem to be working for me. I know the classes are getting loaded (called) because if I try to set a session attribute with a null value, ReplicatedSession throws an exception. If I manually kill a tomcat server while logged in to my app on that server, mod_jk sends me to the other but it appears the session isn't there. If anyone has gotten this working and has any ideas for me, I would really appreciate it. Thanks, Barry Roberts