Re: RES: [off-topic] - Where can i find Oreilly's package for uploadi ng fi les?
Personally, I prefer jakarta-commons/fileupload for this type of thing. The ASF licence is much more commercial-friendly than the Oreilly licence, and it is much easier to configure (at least IMHO). Jose Euclides da Silva Junior - DATAPREVRJ [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] thank you too. -Mensagem original- De: John Turner [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 9 de julho de 2003 15:54 Para: Tomcat Users List Assunto: Re: RES: [off-topic] - Where can i find Oreilly's package for uploadi ng fi les? http://www.servlets.com/cos/index.html John On Wed, 9 Jul 2003 15:27:38 -0300, Jose Euclides da Silva Junior - DATAPREVRJ [EMAIL PROTECTED] wrote: I am not looking for examples, just the own package. Euclides. -Mensagem original- De: Rick Roberts [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 9 de julho de 2003 15:33 Para: Tomcat Users List Assunto: Re: [off-topic] - Where can i find Oreilly's package for uploading fi les? Not sure if this is what you are after but: There is a MultiPartRequest Class in the Java Servlet Programming Book. http://examples.oreilly.com/jservlet2/ HTH, Rick Jose Euclides da Silva Junior - DATAPREVRJ wrote: Hi, i have tried to search for , but i didnt find it. Can somebody help me? Thanks in advance, Euclides. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Pb with webapp admin
Hi, i use a tomcat 4.1.18 on a Linux RedHat 7.3 All my directories images are a linux link in my webapp, so i have put this on my server xml betwen the two tag context Resources className=org.apache.naming.resources.FileDirContext allowLinking=true/ so it's work, but when i use the webapp admin in order to change some other parameters and when i commit, tomcat delete the line of my linkin my server.xml so i lost my images when he reboot... Do you know why ? Do you use all the time webapp admin ? or just a vi on the server.xml ? I use the webapp admin, because i can make a change without shuting down tomcat, do you know how i must do for commiting change in my server .xml whithout restarting tomcat ? thanks for your advice Yannick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error in startup of embedded tomcat
AFAIK, using Embedded requires that you set up all of Tomcat yourself. I suppose that it would be possible to create the Server, and feed it 'server.xml', but that would really defeat the purpose ;-). [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I get the following errors in syslog when I try and run tomcat as an embedded process. My question has to do with the NamingContextListener, I do not reference this in my server.xml, or application web.xml. Where would this be coming from and why would I need it? Thank you. Jul 8 22:32:38 localhost.localdomain INFO - NamingContextListener[/null/localhost/myprog]: Creating JNDI naming context Jul 8 22:32:38 localhost.localdomain INFO - NamingContextListener[/null/localhost/myprog]: Resource parameters for UserTransaction = null Jul 8 22:32:38 localhost.localdomain INFO - StandardManager[/myprog]: Seeding random number generator class java.security.SecureRandom Jul 8 22:32:38 localhost.localdomain INFO - StandardManager[/myprog]: Seeding of random number generator has been completed Jul 8 22:32:38 localhost.localdomain INFO - StandardContext[/myprog]: Context startup failed due to previous errors Jul 8 22:32:38 localhost.localdomain INFO - StandardContext[/myprog]: Stopping Jul 8 22:32:38 localhost.localdomain INFO - StandardContext[/myprog]: Stopping filters Jul 8 22:32:38 localhost.localdomain INFO - StandardContext[/myprog]: Processing standard container shutdown Jul 8 22:32:38 localhost.localdomain INFO - StandardContext[/myprog]: Sending application stop events Jul 8 22:32:38 localhost.localdomain INFO - StandardContext[/myprog]: Stopping complete - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: session expiry
Hi Paul, Session timeout can be configured in the deployment descriptor of your servlet (web.xml). see servlet spec 2.3 the session-timeout element defines the default session timeout interval for all sessions created in this web application. The specified timeout must be expressed in a whole number of minutes. If the timeout is 0 or less, the container ensures the default behaviour of sessions is never to time out. Example session-config session-timeout30/session-timeout /session-config Regards Karin -Original Message- From: Paul Wallace [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 10. Juli 2003 07:58 To: Tomcat Users List Subject: RE: session expiry Thank you for that. And where is the length of default session expiry defined? How do I configure session life span for TC? Thanks Paul. public void close() { session.inValidate(); // kill my session here } or failing that, how do I define a length of time for the session life? Thanks Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Relative URL problem
White, Joshua A (HTSC, CASD) [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Bill, Is this a server.xml or web.xml option? Where should I be looking? If tomcat does a redirect to http://localhost:8080/myapp/, should I then see this in the browser? Yes, you should. Since you haven't told me which version of Tomcat you are using, I'm going to assume 4.1.x. If you have your Context configured as: Context path=/myapp docBase=/myapp / then Tomcat should decide that a request for http://localhost:8008/myapp is really a request for http://localhost:8080/myapp/ and redirect you there. If this isn't working, then you can submit a bugreport to http://nagoya.apache.org/bugzilla. However, you are going to have to provide more information about your config then you have done so far if you want a developer to take a look at your problem. Joshua -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 11:48 PM To: [EMAIL PROTECTED] Subject: Re: Relative URL problem It would help to know your config. e.g. Both Apache and Tomcat will respond to a request for http://localhost:8080/myapp by sending a redirect to http://localhost:8080/myapp/ . White, Joshua A (HTSC, CASD) [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I currently server my jsp files from under the web-inf/jsp directory. If I call my application using http://localhost:8080/myapp, my images do not appear at all. If I call my application using http://localhost:8080/myapp/ (note the trailing slash) everything works fine. Subsequent calls to other resources contain the slash (for example http://localhost:8080/myapp/myservlet). Any advice for handling relative urls on my default page? Regards, Joshua This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error: Tomcat v4.0 vs v4.1
Hi, I have problem running the jsp in the Tomcat v4.0. Whereby everything is fine with v4.1. Below is the error message. What can cause the problem? Thanx if somebody can help. StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP D:\Tomcat 4.0\work\localhost\_\requester\a_0005flogin$jsp.java:61: Incompatible type for method. Explicit cast needed to convert java.lang.Throwable to java.lang.Exception. if (pageContext != null) pageContext.handlePageException(t); ^ 1 error -Friza _ Get Your Web-based E-mail from MyStar Mail at http://thestar.com.my - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: Could you give some help for me (about mod_jk for solaris 9)
I figured this might be useful to this group... Jamey James Courtney InPhonic, Inc. -Original Message- From: James Courtney Sent: Wednesday, July 09, 2003 11:33 PM To: Tomcat Developers List Cc: [EMAIL PROTECTED] Subject: RE: Could you give some help for me (about mod_jk for solaris 9) This worked for me on Solaris 8 this evening: Make sure you have properly compiled and installed Apache 2.x and Tomcat 4.1.24. We'll call these installation directories apache2.home and tomcat4.home. Also make sure you have recent versions of m4, automake, and autoconf installed from www.sunfreeware.com. Set the environment variable M4 to the location of your GNU m4 executable. For example in bash: export M4=/usr/local/bin/m4 Download jakarta-tomcat-connectors-jk-1.2.4-src.tar.gz from http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.4/src/ and extract it to some directory, well call it jk.build. cd ${jk.build}/jk/native execute buildconf.sh execute ./configure --with-apxs=${apache2.home}/bin/apxs execute make Locate mod_jk.so from the ${jk.build}/jk/native/apache-2.0 directory and copy it to your ${apache.home}/modules directory. Just add the line LoadModule jk_module ${apache.home}/modules/mod_jk.so to your ${apache.home}/httpd.conf file and follow the configuration instructions for httpd.conf and workers.properties given at http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.4/doc/. Good luck! Jamey -Original Message- From: David Choi [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 2:40 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Could you give some help for me (about mod_jk for solaris 9) I have got your E-mai from some forum for tomcat I am from south korea, and study about JSP and SUN OS. First, Sorry for my poor english~ I am wondering where and how I can get the mod_jk.so (the apache module) for connecting tomcat with apache before, I found jakarta project FTP site but there was not module(mod_jk.so) for solaris 9(some module for solaris 8 had some error) So many time I tried to make mod_jk.so from source file (jakarta_tomcat_connector 4.1.24) but I couldn't Actually, I would like to connect tomcat 4.1.24 with apache 2.X on the solaris 9 platform. Please help me now~ Thanks for your time and efforts~ From YH.Choi South Korea Wishing you all the success in this business, we hope our transaction makes much better world than before. We thank you for your time and efforts Warm regards, David Choi Marketing Manager SP KOREA Co.,LTD (Tel 82-53-588-0318, Cel 82-16-9775-3900, Fax 82-53-588-0319) http://www.sp-korea.com http://www.sp-korea.com http://www.kacci.net http://www.korea.com http://movie.korea.com/koreamovie/result.asp?genre=1m_id=5725 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: session expiry
you can set maximum inactive interval by something similar to session.setMaxInactiveInterval(seconds); (refer api ) On Thu, 10 Jul 2003, Paul Wallace wrote: Thank you for that. And where is the length of default session expiry defined? How do I configure session life span for TC? Thanks Paul. public void close() { session.inValidate(); // kill my session here } or failing that, how do I define a length of time for the session life? Thanks Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need to help about Apache
Hello ALL, I have downloaded Apache 2.0.46 and try to install it on Solaris 2.6. The uncompress is successful, but when try to install using : ./configure -prefix=/usr/local/httpd-2.0.46, following error occurs. Maybe I need to install C compiler, but I have some difficult to install it. Could I download a Apache that no need to compile when installation. Thanks a lot. $ ./configure -prefix=/usr/local/httpd-2.0.46 checking for chosen layout... Apache checking for working mkdir -p... yes checking build system type... sparc-sun-solaris2.6 checking host system type... sparc-sun-solaris2.6 checking target system type... sparc-sun-solaris2.6 Configuring Apache Portable Runtime library ... checking for APR... reconfig configuring package in srclib/apr now checking build system type... sparc-sun-solaris2.6 checking host system type... sparc-sun-solaris2.6 checking target system type... sparc-sun-solaris2.6 Configuring APR library Platform: sparc-sun-solaris2.6 checking for working mkdir -p... yes APR Version: 0.9.4 checking for chosen layout... apr checking for gcc... no checking for cc... cc checking for C compiler default output... configure: error: C compiler cannot cr eate executables check `config.log' for details. configure failed for srclib/apr $ Regards, xiaojing - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need to help about Apache
You might want to try [EMAIL PROTECTED] for httpd-related questions. Cui Xiaojing-a13339 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello ALL, I have downloaded Apache 2.0.46 and try to install it on Solaris 2.6. The uncompress is successful, but when try to install using : ./configure -prefix=/usr/local/httpd-2.0.46, following error occurs. Maybe I need to install C compiler, but I have some difficult to install it. Could I download a Apache that no need to compile when installation. Thanks a lot. $ ./configure -prefix=/usr/local/httpd-2.0.46 checking for chosen layout... Apache checking for working mkdir -p... yes checking build system type... sparc-sun-solaris2.6 checking host system type... sparc-sun-solaris2.6 checking target system type... sparc-sun-solaris2.6 Configuring Apache Portable Runtime library ... checking for APR... reconfig configuring package in srclib/apr now checking build system type... sparc-sun-solaris2.6 checking host system type... sparc-sun-solaris2.6 checking target system type... sparc-sun-solaris2.6 Configuring APR library Platform: sparc-sun-solaris2.6 checking for working mkdir -p... yes APR Version: 0.9.4 checking for chosen layout... apr checking for gcc... no checking for cc... cc checking for C compiler default output... configure: error: C compiler cannot cr eate executables check `config.log' for details. configure failed for srclib/apr $ Regards, xiaojing - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
confused on debug level
I have upgraded to tomcat 4.1.18 recently from 4.0.4. When my JSP's compile and there is an error in one of the included files, the output I get in my error log is : Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:842) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682) I used to get more verbose errors, like what exactly the problem was. I have searched the archives and have turned debugging up in some areas (web.xml from WARNING to DEBUG, Content from 0 to debug=9), but I still get the same message. Where am I supposed to turn it up? Thanks, Matt __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Running Tomcat as Windows Service
Hi, Thanks. I used the same method to install my service, but when I call my servlet, tomcat hangs down. I have to stop it and restart it. Do you know why? -Ursprüngliche Nachricht- Von: Pitre, Russell [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 9. Juli 2003 16:39 An: Tomcat Users List Betreff: RE: Running Tomcat as Windows Service I used this to create my nt service. %CATALINA_HOME%\bin\tomcat.exe -install Tomcat %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOM E%\lib\too ls.jar -Dcatalina.home=%CATALINA_HOME% -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out %CATALINA_HOME%\logs\stdout.log -err %CATALINA_HOME%\logs\stderr.log Russ -Original Message- From: Hamidene, Anis Ben [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 10:32 AM To: [EMAIL PROTECTED] Subject: Running Tomcat as Windows Service Hi, I want to install Tomcat 4.1.2 as windows service. My servlets should connect to another server over SSl-Connection. I did install tomcat as a service, but when my client connects to the servlet, tomcat hangs down,and I have to restart the service manually. If I start Tomcat using the batch file , everything works fine. Is it better to use JavaService? The problem happens especially when running the whole thing in a Citrix environment. Please help a.s.a.p. Yours anis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XML DOCTYPE problem
I think the reference to a doctype has to be on the format www.somesite.com/dtd/data.dtd or similar Besides i don't thinkt it will actually validate against that DTD anyway -Original Message- From: Brian Menke [mailto:[EMAIL PROTECTED] Sent: 10. juli 2003 07:21 To: Tomcat Users List Subject: XML DOCTYPE problem Hi everyone, I have created a JSP page that use the jstl xml tag library, specifically using xpath. Everything works perfectly fine as long as I don't have a doctype declaration like the following in my XML instance: !DOCTYPE datasheet PUBLIC -//Innovtech//DTD datasheet//EN c:/dtds/innovtech/datasheet.dtd If I remove it, everything works great, but if I don't, I get a java error like this: org.apache.jasper.JasperException: Could not resolve entity reference: ///c:/dtds/innovtech/datasheet.dtd I have to have the doctype in the xml. Does anyone know how I can fix this?? I did post this to the taglib email list, but it doesn't seem to get near the traffic as this group. Thanks! -Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XML DOCTYPE problem
And i think it even has to have a http:// in front -Original Message- From: Abid Ali Teepo Sent: 10. juli 2003 09:38 To: Tomcat Users List Subject: RE: XML DOCTYPE problem I think the reference to a doctype has to be on the format www.somesite.com/dtd/data.dtd or similar Besides i don't thinkt it will actually validate against that DTD anyway -Original Message- From: Brian Menke [mailto:[EMAIL PROTECTED] Sent: 10. juli 2003 07:21 To: Tomcat Users List Subject: XML DOCTYPE problem Hi everyone, I have created a JSP page that use the jstl xml tag library, specifically using xpath. Everything works perfectly fine as long as I don't have a doctype declaration like the following in my XML instance: !DOCTYPE datasheet PUBLIC -//Innovtech//DTD datasheet//EN c:/dtds/innovtech/datasheet.dtd If I remove it, everything works great, but if I don't, I get a java error like this: org.apache.jasper.JasperException: Could not resolve entity reference: ///c:/dtds/innovtech/datasheet.dtd I have to have the doctype in the xml. Does anyone know how I can fix this?? I did post this to the taglib email list, but it doesn't seem to get near the traffic as this group. Thanks! -Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat: j_security_check: Form Authentication
Hi, I am using Form Authentication with Tomcat 4.1.18. Every thing seems working, when I try to access a protected resource directly, it takes me to the login.jsp and if enter correct user/password it logs me in and takes to protected resource. But if I try to go to login.jsp first and enters my user/password it takes to some thing like http://203.32.143.146:8080/test/j_security_check;jsessionid=303C0E68008E1E54F0E2CBAF43553B27 and displays HTTP Status 400 - Invalid direct reference to form login page type Status report message Invalid direct reference to form login page description The request sent by the client was syntactically incorrect (Invalid direct reference to form login page). Apache Tomcat/4.1.18 j_security_check is the servlet which uses JDBCRealm, I need to know a bit of its detail how it works, and how is it possible that we go to login.jsp first and then it takes to page we want after success, like the admin section works of tomcat http://localhost:8080/admin. Btw, I noticed also, if we try to give blank user/password on admin page and click to submit, it takes to similar kind of error. I have following configurations: In server.xml !-- Tomcat test Context -- Context path=/test docBase=test debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_test_log. suffix=.txt timestamp=true/ Environment name=maxExemptions type=java.lang.Integer value=15/ Parameter name=context.param.name value=context.param.value override=false/ Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=weblogic.jdbc.mssqlserver4.Driver connectionURL=jdbc:weblogic:mssqlserver4:[EMAIL PROTECTED] connectionName=dev connectionPassword=web userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name / /Context In web.xml under /test/WEB-INF web-app display-nameTest by Bilal/display-name descriptionIt is a test context for authentication./description security-constraint web-resource-collection web-resource-nameOnJava Application/web-resource-name url-pattern/protected/*/url-pattern http-methodDELETE/http-method http-methodGET/http-method http-methodPOST/http-method http-methodPUT/http-method /web-resource-collection auth-constraint role-nameonjavauser/role-name /auth-constraint user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint login-config auth-methodFORM/auth-method realm-nameExample Form-Based Authentication Area/realm-name form-login-config form-login-page/login.jsp/form-login-page form-error-page/error.jsp/form-error-page /form-login-config /login-config /web-app In log: 2003-07-10 18:27:52 WebappLoader[/test]: Reloading checks are enabled for this Context 2003-07-10 18:27:53 ContextConfig[/test]: WARNING: Security role name onjavauser used in an auth-constraint without being defined in a security-role 2003-07-10 18:27:54 ContextConfig[/test]: Configured an authenticator for method FORM 2003-07-10 18:27:54 StandardManager[/test]: Seeding random number generator class java.security.SecureRandom 2003-07-10 18:27:54 StandardManager[/test]: Seeding of random number generator has been completed 2003-07-10 18:27:54 StandardWrapper[/test:default]: Loading container servlet default 2003-07-10 18:27:54 StandardWrapper[/test:invoker]: Loading container servlet invoker 2003-07-10 18:29:42 JDBCRealm[/test]: Username bob successfully authenticated Any quick response would be really great. Thanks, Bilal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Writing your own realm for Tomcat 4.0
Im trying to write my own realm for Tomcat 4 WebDav application. I have already written some JAAS Authenication modules which are used by our main application and support Database and LDAP authentication but I need think I need to use tomcat realm for Webdav to force the user authentication wndow to come up when trying to map a Webdav folder. None of the existing realms are suitable because our LDAP tree does not conform to tomcats requirements, and some of our users are authenticated using a database realm rather than an LDAP realm. I have written a new class that extends RealmBase and written an authenticate method but it never gets called can someone tell me what else I have to do to make it a valid Realm Class. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
timeouts settings for ajp13 connector? mod_jk2
Hello An workers.properties (mod_jk) was possible to set any timeouts Is these also possible on worker2.properties? When we look on jkstatus there have many connection. (See below) Must these connections be closed after a time, or it is not necessary? (reset) Or closed ajp13 connector the connection automatically ? Thanks for answer. ajp13 runtime info ajp13 information, using getAttribute() id namelb_factor lb_valueroute errorState graceful epCount errorTime 1 localhost:8101 1 7 localhost:8101 N N 1 0 Scoreboard info (ver=0 slots=55) reset epStat.1Cnt=1 size=128 Worker Req Err LastReq ConnectionTime TotalTime MaxTime AvgTime ReqStart+jk +end 1 67 0 /ubf/controller/Conimex/Thu Jul 10 06:15:50 2003 0 0 0 0 0 0 epStat.3Cnt=1 size=128 Worker Req Err LastReq ConnectionTime TotalTime MaxTime AvgTime ReqStart+jk +end 1 46 0 /ubf/controller/Conimex/Thu Jul 10 01:50:26 2003 0 0 0 0 0 0 epStat.9Cnt=1 size=128 Worker Req Err LastReq ConnectionTime TotalTime MaxTime AvgTime ReqStart+jk +end 1 2 0 /ubffs/controller/Livelink_Monitoring_do_not_touch/ Wed Jul 09 22:59:27 2003 0 0 0 0 0 0 epStat.10 Cnt=1 size=128 Worker Req Err LastReq ConnectionTime TotalTime MaxTime AvgTime ReqStart+jk +end 1 48 0 /ubf/controller/Conimex/Thu Jul 10 10:08:14 2003 0 0 0 0 0 0 epStat.4Cnt=1 size=128 Worker Req Err LastReq ConnectionTime TotalTime MaxTime AvgTime ReqStart+jk +end 1 1 0 /ubf/controller/Conimex/Thu Jul 10 07:21:46 2003 0 0 0 0 0 0 epStat.6Cnt=1 size=128 Worker Req Err LastReq ConnectionTime TotalTime MaxTime AvgTime ReqStart+jk +end 1 60 0 /becel/controller/Livelink_Monitoring_do_not_touch/ Thu Jul 10 02:07:31 2003 0 0 0 0 0 0 epStat.17 Cnt=1 size=128 Worker Req Err LastReq ConnectionTime TotalTime MaxTime AvgTime ReqStart+jk +end 1 0 0 /ubffs/controller/Livelink_Monitoring_do_not_touch/ Wed Jul 09 16:41:53 2003 0 0 - 0 0 0 epStat.23 Cnt=1 size=128 Worker Req Err LastReq ConnectionTime TotalTime MaxTime AvgTime ReqStart+jk +end 1 54 0 /ubf/controller/Conimex/Thu Jul 10 08:35:26 2003 0 0 0 0 0 0 epStat.25 Cnt=1 size=128 Worker Req Err LastReq ConnectionTime TotalTime MaxTime AvgTime ReqStart+jk +end 1 0 0 /becel/controller/Livelink_Monitoring_do_not_touch/ Wed Jul 09 16:41:25 2003 0 0 - 0 0 0 epStat.27 Cnt=1 size=128 Worker Req Err LastReq ConnectionTime TotalTime MaxTime AvgTime ReqStart+jk +end 1 0 0 /becel/controller/Livelink_Monitoring_do_not_touch/ Wed Jul 09 16:38:02 2003 0 0 - 0 0 0 epStat.33 Cnt=1 size=128 Worker Req Err LastReq ConnectionTime TotalTime MaxTime AvgTime ReqStart+jk +end 1 0 0 /becel/controller/Livelink_Monitoring_do_not_touch/ Wed Jul 09 16:38:54 2003 0 0 - 0 0 0 epStat.40 Cnt=1 size=128 Worker Req Err LastReq ConnectionTime TotalTime MaxTime AvgTime ReqStart+jk +end 1 0 0 /becel/controller/Livelink_Monitoring_do_not_touch/ Wed Jul 09 16:38:04 2003 0 0 - 0 0 0 epStat.5Cnt=1 size=128 Worker Req Err LastReq ConnectionTime TotalTime MaxTime AvgTime ReqStart+jk +end 1 13 0 /ubf/controller/Conimex/Thu Jul 10 07:09:57 2003 0 0 0 0 0 0 epStat.14 Cnt=1 size=128 Worker Req Err LastReq ConnectionTime TotalTime MaxTime AvgTime ReqStart+jk +end 1 0 0 /becel/controller/Livelink_Monitoring_do_not_touch/ Wed Jul 09 16:53:56 2003 0 0 - 0 0 0 epStat.18 Cnt=1 size=128 Worker Req Err LastReq ConnectionTime TotalTime MaxTime AvgTime ReqStart+jk +end 1 0 0 /becel/controller/Livelink_Monitoring_do_not_touch/ Wed Jul 09 16:38:53 2003 0 0 - 0 0 0 epStat.20 Cnt=1 size=128 Worker Req Err LastReq ConnectionTime TotalTime MaxTime AvgTime ReqStart+jk +end 1
Tomcat downloads .jsp files
Hello, If I use http://localhost:8080/abc/index.jsp the .jsp file is executed and if I use http://localhost/abc/index.jsp I get the .jsp file downloaded into the client machine. Is it the behaviour of the Tomcat or is there anything that can solve my problem. Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSPs not compiling
I've been searching for ages trying to find a solution to this problem. As far as I can tell it's definitely something to do with my paths being set correctly. I try to call the /admin/index.jsp page and get the following error (full error page shown): type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP at org.apache.jasper.JspEngineContext.compile(Unknown Source) at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:376) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:518) at java.lang.Thread.run(Thread.java:484) root cause org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: at org.apache.jasper.compiler.DefaultErrorHandler.javacError(Unknown Source) at org.apache.jasper.compiler.ErrorDispatcher.javacError(Unknown Source) at org.apache.jasper.compiler.Compiler.compile(Unknown Source) at org.apache.jasper.JspEngineContext.compile(Unknown Source) at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
Strange session issue on Linux-deployment
Hi, due to a little but confusing problem which took me one day to find out :( I just noticed a strange issue concerning sessions. When I use my page for example at http://localhost/contextpath/servlet I get a session. But when I access the same page with http://localhost//contextpath/servlet I get a different session. Is that intended? I have to mention that I didn´t have the problem on my windows-development system but only on linux-deployment. But I cannot say if this is due to the fact that I don´t use a context-path on windows ( http://localhost/servlet ) or that it is on windows. But on my development-system I get the same session for both http://localhost/servlet and http://localhost//servlet. Anyone here can tell me why it is like that? As asked above, is this intended behaviour? Regards, Philipp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Writing your own realm for Tomcat 4.0
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html Look at Section: Configuring a Realm -Tim Paul Taylor wrote: Im trying to write my own realm for Tomcat 4 WebDav application. I have already written some JAAS Authenication modules which are used by our main application and support Database and LDAP authentication but I need think I need to use tomcat realm for Webdav to force the user authentication wndow to come up when trying to map a Webdav folder. None of the existing realms are suitable because our LDAP tree does not conform to tomcats requirements, and some of our users are authenticated using a database realm rather than an LDAP realm. I have written a new class that extends RealmBase and written an authenticate method but it never gets called can someone tell me what else I have to do to make it a valid Realm Class. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSPs not compiling
Try this first http://jakarta.apache.org/tomcat/faq/misc.html#compile -Tim Thomas, Kevin wrote: I've been searching for ages trying to find a solution to this problem. As far as I can tell it's definitely something to do with my paths being set correctly. I try to call the /admin/index.jsp page and get the following error (full error page shown): type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP at org.apache.jasper.JspEngineContext.compile(Unknown Source) at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:376) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:518) at java.lang.Thread.run(Thread.java:484) root cause org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: at org.apache.jasper.compiler.DefaultErrorHandler.javacError(Unknown Source) at org.apache.jasper.compiler.ErrorDispatcher.javacError(Unknown Source) at org.apache.jasper.compiler.Compiler.compile(Unknown Source) at org.apache.jasper.JspEngineContext.compile(Unknown Source) at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
Re: Tomcat downloads .jsp files
Are you running apache on port 80? If so you need to tell it to forward requests to tomcat for *.jsp. Possibly a helpful link ... http://jakarta.apache.org/tomcat/faq/connectors.html -Tim [EMAIL PROTECTED] wrote: Hello, If I use http://localhost:8080/abc/index.jsp the .jsp file is executed and if I use http://localhost/abc/index.jsp I get the .jsp file downloaded into the client machine. Is it the behaviour of the Tomcat or is there anything that can solve my problem. Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat downloads .jsp files
I am using IIS 5.0 on port 80. Any solution? Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat downloads .jsp files
Then its: http://jakarta.apache.org/tomcat/faq/windows.html -Tim [EMAIL PROTECTED] wrote: I am using IIS 5.0 on port 80. Any solution? Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat downloads .jsp files
Thanks, something sensitive. Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Adding multiple params to redirect header
JSTL's c:redirect is nice for this if you are in a JSP. -Tim Boris Folgmann wrote: Hi! Does anybody know a good method to pass all parameters from one request to another one using a redirect header? I can read all parameters of the original request with request.getParameterMap(), but how can I get them into the URL used for the redirect header? cu, boris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to create servlet?
you can also create a own webapp-folder for your servelts, lets say named project. there must be a structure like this: /project/WEB-INF/classes /project/WEB-INF/lib and a web.xml file under WEB-INF. then you can add this folder to the server.xml file located in tomcat../conf/.look in this file and search for the examples entry and copy this for your folder. you can start your servlets with urlhttp://localhost:8081/project/servlet/yourservlet;. for your pleasure bernd kitty winslet schrieb: In WEB-INF\classes\ I always find 2 kind of file SendMailServlet.java and SendMailServlet.class, what is the difference btw *.java and *.class ? In the servlet mapping fields, why it only shows the name of the servlet, not the full path to where it located for example c:\tomcat\webapps\examples\WEB-INF\classes\SendMailServlet? Robert Wray [EMAIL PROTECTED] wrote: The SendMailServlet code should be located in tomcat_installation_directory\webapps\examples\WEB-INF\classes\SendMailServlet.javaThe web.xml file in the WEB-INF directory should have a tags: servlet servlet-nameSendMailServlet/servlet-name servlet-classSendMailServlet/servlet-class /servletand servlet-mapping servlet-nameSendMailServlet/servlet-name url-pattern/SendMailServlet/url-pattern /servlet-mappingwhich tell tomcat where to find the servlet when you request http://localhost:/examples/SendMailServletAt 07:07 AM 09/07/2003 -0400, you wrote:To create/use servlets, you just need to folow Sun's Servlet Specification.http://java.sun.com/webservices/docs/1.1/tutorial/doc/http://servlets.com/index.teahttp://moreservlets.com/-Tim - Yahoo! Mobile - Check compose your email via SMS on your Telstra or Vodafone mobile. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuring Tomcat5.0 on caldera openlinux 3.1
hi all, i have caldera openlinux 3.1 installed. I downloaded tomcat 5.0 for linux and unzipped it in /root/Tomcat5.0/jakarta-tomcat-5.0.3 directory. i m not getting the thing to work. i will include the errors below This is the bashrc file i made changes to make CATALINA_HOME variable # /etc/config.d/shells/bashrc # $Id: bashrc,v 1.4 2000/11/17 10:08:40 ray Exp ray $ # Full fledged, system-wide initialization of interactive-shells # (source-able by $HOME/.bashrc) #[ -e /etc/config.d/D ] echo /etc/config.d/shells/bashrc: \$-='$-' 12 # if we haven't read /etc/profile (e.g. rsh or su) read it now... [ -z $_ETC_PROFILE ] . /etc/profile # fiddle with umask umask 022 [ -n $USER ][ $USER = `id -gn` ][ $UID != 0 ] umask 002 # set up HOME variables for certain packages... [ -z $KDEDIRS ][ -d /opt/kde2 ] export KDEDIRS=/opt/kde2 [ -z $KDEHOME ][ -d $HOME/.kde2 ] export KDEHOME=$HOME/.kde2 [ -z $KDEDIR ][ -d /opt/kde ] export KDEDIR=/opt/kde [ -z $OPENWINHOME ][ -d /usr/openwin ] export OPENWINHOME=/usr/openwin [ -z $JAVA_HOME ][ -d /usr/java ] { export JAVA_HOME=/usr/java [ -r $JAVA_HOME/lib/classes.zip ] export CLASSPATH=$JAVA_HOME/lib/classes.zip export CLASSPATH=$JAVA_HOME } [ -z $CATALINA_HOME ] [ -d $HOME/Tomcat5.0/jakarta-tomcat-5.0.3 ] export CATALINA_HOME=$HOME/Tomcat5.0/jakarta-tomcat-5.0.3 # try to generate an elaborate PATH ... _p=$HOME/bin [ $UID = 0 ] _p=$_p /usr/local/sbin /sbin /usr/sbin _q=`echo $PATH | sed -e 's/:/ /g' -e 's/ \.[. ]* / /g'` _q=$_q /usr/local/bin /opt/bin _q=$_q $KDEDIRS/bin $KDEDIR/bin $OPENWINHOME/bin $JAVA_HOME/bin _q=$_q /usr/X11R6/bin /opt/teTeX/bin _P= for _i in $_p $_q; do case :$_P: in *:$_i:*) : $_i;; *) [ -d $_i ] _P=$_P:$_i ;; esac done while [ $_P != ${_P#:} ]; do _P=${_P#:}; done # if you have relaxed security concerns you may un-comment the following... #[ -n $UID ][ $UID != 0 ] _P=${_P}:. export PATH=$_P unset _p _q _i _P # try solve this tedious 'Backspace vs. Delete' problem... case $- in *i*) if [ -z $TERM ]; then echo .bashrc: TERM empty! This should never happen! 12 echoPlease contact '[EMAIL PROTECTED]' 12 elif [ $(LC_ALL=C tty) = not a tty ]; then echo .bashrc: interactive on non-terminal! This should never happen! 12 echoPlease contact '[EMAIL PROTECTED]' 12 else case $TERM in dumb) : ;; linux*) stty erase '^?' ;; *) stty erase '^H' ;; esac fi ;; esac # general environment settings export MAIL=/var/mail/$USER #export GROFF_TYPESETTER=latin1 #export LC_CTYPE=iso-8859-1 export LESSCHARSET=latin1 export PAGER=less #export METAMAIL_PAGER=$PAGER # bash-specific settings PS1=[EMAIL PROTECTED] \W]\\$ HISTSIZE=100 alias which='type -path' alias h='history' alias j='jobs -l' alias l='ls -Fax' alias ll='ls -Alg' alias pd='pushd' alias z='suspend' errors while starting the tomcat server i.e. $bash startup.sh Using CATALINA_BASE: /root/Tomcat5.0/jakarta-tomcat-5.0.3 Using CATALINA_HOME: /root/Tomcat5.0/jakarta-tomcat-5.0.3 Using CATALINA_TMPDIR: /root/Tomcat5.0/jakarta-tomcat-5.0.3/temp Using JAVA_HOME: /usr/java errors here:--- sun.misc.InvalidJarIndexException: Invalid index! at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594) at sun.misc.URLClassPath.getResource(URLClassPath.java:134) at java.net.URLClassLoader$1.run(URLClassLoader.java:192) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:520) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:520) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at
Fwd: Configuring Tomcat5.0 on caldera openlinux 3.1
From: Anand Kapadi [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Configuring Tomcat5.0 on caldera openlinux 3.1 Date: Thu, 10 Jul 2003 17:16:12 +0530 hi all, i have caldera openlinux 3.1 installed. I downloaded tomcat 5.0 for linux and unzipped it in /root/Tomcat5.0/jakarta-tomcat-5.0.3 directory. i m not getting the thing to work. i will include the errors below This is the bashrc file i made changes to make CATALINA_HOME variable # /etc/config.d/shells/bashrc # $Id: bashrc,v 1.4 2000/11/17 10:08:40 ray Exp ray $ # Full fledged, system-wide initialization of interactive-shells # (source-able by $HOME/.bashrc) #[ -e /etc/config.d/D ] echo /etc/config.d/shells/bashrc: \$-='$-' 12 # if we haven't read /etc/profile (e.g. rsh or su) read it now... [ -z $_ETC_PROFILE ] . /etc/profile # fiddle with umask umask 022 [ -n $USER ][ $USER = `id -gn` ][ $UID != 0 ] umask 002 # set up HOME variables for certain packages... [ -z $KDEDIRS ][ -d /opt/kde2 ] export KDEDIRS=/opt/kde2 [ -z $KDEHOME ][ -d $HOME/.kde2 ] export KDEHOME=$HOME/.kde2 [ -z $KDEDIR ][ -d /opt/kde ] export KDEDIR=/opt/kde [ -z $OPENWINHOME ][ -d /usr/openwin ] export OPENWINHOME=/usr/openwin [ -z $JAVA_HOME ][ -d /usr/java ] { export JAVA_HOME=/usr/java [ -r $JAVA_HOME/lib/classes.zip ] export CLASSPATH=$JAVA_HOME/lib/classes.zip export CLASSPATH=$JAVA_HOME } [ -z $CATALINA_HOME ] [ -d $HOME/Tomcat5.0/jakarta-tomcat-5.0.3 ] export CATALINA_HOME=$HOME/Tomcat5.0/jakarta-tomcat-5.0.3 # try to generate an elaborate PATH ... _p=$HOME/bin [ $UID = 0 ] _p=$_p /usr/local/sbin /sbin /usr/sbin _q=`echo $PATH | sed -e 's/:/ /g' -e 's/ \.[. ]* / /g'` _q=$_q /usr/local/bin /opt/bin _q=$_q $KDEDIRS/bin $KDEDIR/bin $OPENWINHOME/bin $JAVA_HOME/bin _q=$_q /usr/X11R6/bin /opt/teTeX/bin _P= for _i in $_p $_q; do case :$_P: in *:$_i:*) : $_i;; *) [ -d $_i ] _P=$_P:$_i ;; esac done while [ $_P != ${_P#:} ]; do _P=${_P#:}; done # if you have relaxed security concerns you may un-comment the following... #[ -n $UID ][ $UID != 0 ] _P=${_P}:. export PATH=$_P unset _p _q _i _P # try solve this tedious 'Backspace vs. Delete' problem... case $- in *i*) if [ -z $TERM ]; then echo .bashrc: TERM empty! This should never happen! 12 echoPlease contact '[EMAIL PROTECTED]' 12 elif [ $(LC_ALL=C tty) = not a tty ]; then echo .bashrc: interactive on non-terminal! This should never happen! 12 echoPlease contact '[EMAIL PROTECTED]' 12 else case $TERM in dumb) : ;; linux*) stty erase '^?' ;; *) stty erase '^H' ;; esac fi ;; esac # general environment settings export MAIL=/var/mail/$USER #export GROFF_TYPESETTER=latin1 #export LC_CTYPE=iso-8859-1 export LESSCHARSET=latin1 export PAGER=less #export METAMAIL_PAGER=$PAGER # bash-specific settings PS1=[EMAIL PROTECTED] \W]\\$ HISTSIZE=100 alias which='type -path' alias h='history' alias j='jobs -l' alias l='ls -Fax' alias ll='ls -Alg' alias pd='pushd' alias z='suspend' errors while starting the tomcat server i.e. $bash startup.sh Using CATALINA_BASE: /root/Tomcat5.0/jakarta-tomcat-5.0.3 Using CATALINA_HOME: /root/Tomcat5.0/jakarta-tomcat-5.0.3 Using CATALINA_TMPDIR: /root/Tomcat5.0/jakarta-tomcat-5.0.3/temp Using JAVA_HOME: /usr/java errors here:--- sun.misc.InvalidJarIndexException: Invalid index! at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594) at sun.misc.URLClassPath.getResource(URLClassPath.java:134) at java.net.URLClassLoader$1.run(URLClassLoader.java:192) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:520) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:520) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756) at
Fwd: Configuring Tomcat5.0 on caldera openlinux 3.1
hi all, i have caldera openlinux 3.1 installed. I downloaded tomcat 5.0 for linux and unzipped it in /root/Tomcat5.0/jakarta-tomcat-5.0.3 directory. i m not getting the thing to work. i will include the errors below This is the bashrc file i made changes to make CATALINA_HOME variable # /etc/config.d/shells/bashrc # $Id: bashrc,v 1.4 2000/11/17 10:08:40 ray Exp ray $ # Full fledged, system-wide initialization of interactive-shells # (source-able by $HOME/.bashrc) #[ -e /etc/config.d/D ] echo /etc/config.d/shells/bashrc: \$-='$-' 12 # if we haven't read /etc/profile (e.g. rsh or su) read it now... [ -z $_ETC_PROFILE ] . /etc/profile # fiddle with umask umask 022 [ -n $USER ][ $USER = `id -gn` ][ $UID != 0 ] umask 002 # set up HOME variables for certain packages... [ -z $KDEDIRS ][ -d /opt/kde2 ] export KDEDIRS=/opt/kde2 [ -z $KDEHOME ][ -d $HOME/.kde2 ] export KDEHOME=$HOME/.kde2 [ -z $KDEDIR ][ -d /opt/kde ] export KDEDIR=/opt/kde [ -z $OPENWINHOME ][ -d /usr/openwin ] export OPENWINHOME=/usr/openwin [ -z $JAVA_HOME ][ -d /usr/java ] { export JAVA_HOME=/usr/java [ -r $JAVA_HOME/lib/classes.zip ] export CLASSPATH=$JAVA_HOME/lib/classes.zip export CLASSPATH=$JAVA_HOME } [ -z $CATALINA_HOME ] [ -d $HOME/Tomcat5.0/jakarta-tomcat-5.0.3 ] export CATALINA_HOME=$HOME/Tomcat5.0/jakarta-tomcat-5.0.3 # try to generate an elaborate PATH ... _p=$HOME/bin [ $UID = 0 ] _p=$_p /usr/local/sbin /sbin /usr/sbin _q=`echo $PATH | sed -e 's/:/ /g' -e 's/ \.[. ]* / /g'` _q=$_q /usr/local/bin /opt/bin _q=$_q $KDEDIRS/bin $KDEDIR/bin $OPENWINHOME/bin $JAVA_HOME/bin _q=$_q /usr/X11R6/bin /opt/teTeX/bin _P= for _i in $_p $_q; do case :$_P: in *:$_i:*) : $_i;; *) [ -d $_i ] _P=$_P:$_i ;; esac done while [ $_P != ${_P#:} ]; do _P=${_P#:}; done # if you have relaxed security concerns you may un-comment the following... #[ -n $UID ][ $UID != 0 ] _P=${_P}:. export PATH=$_P unset _p _q _i _P # try solve this tedious 'Backspace vs. Delete' problem... case $- in *i*) if [ -z $TERM ]; then echo .bashrc: TERM empty! This should never happen! 12 echoPlease contact '[EMAIL PROTECTED]' 12 elif [ $(LC_ALL=C tty) = not a tty ]; then echo .bashrc: interactive on non-terminal! This should never happen! 12 echoPlease contact '[EMAIL PROTECTED]' 12 else case $TERM in dumb) : ;; linux*) stty erase '^?' ;; *) stty erase '^H' ;; esac fi ;; esac # general environment settings export MAIL=/var/mail/$USER #export GROFF_TYPESETTER=latin1 #export LC_CTYPE=iso-8859-1 export LESSCHARSET=latin1 export PAGER=less #export METAMAIL_PAGER=$PAGER # bash-specific settings PS1=[EMAIL PROTECTED] \W]\\$ HISTSIZE=100 alias which='type -path' alias h='history' alias j='jobs -l' alias l='ls -Fax' alias ll='ls -Alg' alias pd='pushd' alias z='suspend' errors while starting the tomcat server i.e. $bash startup.sh Using CATALINA_BASE: /root/Tomcat5.0/jakarta-tomcat-5.0.3 Using CATALINA_HOME: /root/Tomcat5.0/jakarta-tomcat-5.0.3 Using CATALINA_TMPDIR: /root/Tomcat5.0/jakarta-tomcat-5.0.3/temp Using JAVA_HOME: /usr/java errors here:--- sun.misc.InvalidJarIndexException: Invalid index! at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594) at sun.misc.URLClassPath.getResource(URLClassPath.java:134) at java.net.URLClassLoader$1.run(URLClassLoader.java:192) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:520) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:520) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at
Re: INFO: RESET in catalina.out Server 500 under load
Hi, If it's any consolation we see these informational messages too sometimes under almost non-existant load. I have heard that in earlier versions of apache (1.x) it reset itself under certain conditions and it was a normal thing to see this message. I also heard a _rumor_ that the apache developers were going to change this message to DEBUG. But that was a long time ago. I'm not sure about what's going on with apache 2.x. I think there is something else going on here. -e On Wed, 9 Jul 2003, Fletcher Cocquyt wrote: Hi Fellow Tomcat users, I am seeing the following errors in my catalina.out logfile when running any kind of load against the server using apache bench: Jul 9, 2003 5:36:42 PM org.apache.jk.server.JkCoyoteHandler action INFO: RESET Jul 9, 2003 5:36:42 PM org.apache.jk.server.JkCoyoteHandler action INFO: RESET These correspond to in a 1:1 ratio with the number of Server Error 500 org.apache.jasper.JasperException: ORA-00933: SQL command not properly ended error messages returned from the apache bench test. Eg when I run: /opt/http-2.0.45/bin/ab -c 5 -n 100 http:// http://%3cservername%3e/main.jsp servername/main.jsp I get roughly 40-50% error rates: Benchmarking servername (be patient).done Server Software:Apache/2.0.45 Server Hostname:servername Server Port:80 Document Path: /main.jsp Document Length:30399 bytes Concurrency Level: 5 Time taken for tests: 1.548 seconds Complete requests: 100 Failed requests:42 (Connect: 0, Length: 42, Exceptions: 0) Broken pipe errors: 0 Non-2xx responses: 42 The configuration is: Test client: Solaris 9 server running apache bench hitting: Test Web Server: Solaris 9 Sunfire 280R running Apache 2.0.45: Worker.properties: # All the workers that we know about worker.list=app-01 # Set properties for app-01 (ajp13) worker.app-01.type=ajp13 worker.app-01.host=appserverIP # first instance on app-01 worker.app-01.port=8009 worker.app-01.cachesize=10 worker.app-01.cache_timeout=600 worker.app-01.socket_keepalive=1 worker.app-01.socket_timeout=300 Solaris 9 Sunfire 280R running tomcat 4.1.24 From server.xml: nameurl/name valuejdbc:oracle:thin:@database server:1521:dev/value parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameremoveAbadoned/name valuetrue/value /parameter parameter namelogAdandoned/name valuetrue/value /parameter Anyone know what causes these errors under relatively light load? The same test against a Linux development web/apache tomcat server does this error free with many more users (hitting the same oracle database instance with the same URL connect string) Throughput on sftp between these servers is error free 11000kB/s What extra logging can I do to see what's causing the errors? What tuning parameters might help this configuration? Thanks in advance, Fletcher Cocquyt Senior Systems Administrator [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
looking for docs on building mod_jk 1.2.x for AIX 4.3.x
No luck with the encap package for mod_jk as i don't have the required encap for Apache. Now I am trying to build from src files and am having trouble. If you know of any docs or even different locations for pre-built so files, I would appreciate hearing about them. Thanks!! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSPs not compiling
Unfortunately, didn't help. I have JAVA_HOME/bin already defined in the PATH variable. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 10 July 2003 12:08 To: Tomcat Users List Subject: Re: JSPs not compiling Try this first http://jakarta.apache.org/tomcat/faq/misc.html#compile -Tim Thomas, Kevin wrote: I've been searching for ages trying to find a solution to this problem. As far as I can tell it's definitely something to do with my paths being set correctly. I try to call the /admin/index.jsp page and get the following error (full error page shown): type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP at org.apache.jasper.JspEngineContext.compile(Unknown Source) at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:376) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:518) at java.lang.Thread.run(Thread.java:484) root cause org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: at org.apache.jasper.compiler.DefaultErrorHandler.javacError(Unknown Source) at org.apache.jasper.compiler.ErrorDispatcher.javacError(Unknown Source) at org.apache.jasper.compiler.Compiler.compile(Unknown Source) at org.apache.jasper.JspEngineContext.compile(Unknown Source) at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at
Re: JSPs not compiling
Test your evironment. Windows: %JAVA_HOME%\bin\javac Unix: $JAVA_HOME/bin/javac If you get a program not found error then your JAVA_HOME evironment variable is not properly set. You should also check to make sure that write permissions are available to what ever user is running Tomcat for the CATALINA_HOME/work directory. On Thursday 10 July 2003 08:12 am, Thomas, Kevin wrote: Unfortunately, didn't help. I have JAVA_HOME/bin already defined in the PATH variable. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 10 July 2003 12:08 To: Tomcat Users List Subject: Re: JSPs not compiling Try this first http://jakarta.apache.org/tomcat/faq/misc.html#compile -Tim Thomas, Kevin wrote: I've been searching for ages trying to find a solution to this problem. As far as I can tell it's definitely something to do with my paths being set correctly. I try to call the /admin/index.jsp page and get the following error (full error page shown): type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP at org.apache.jasper.JspEngineContext.compile(Unknown Source) at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(Unknown Source) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(Unknown Source) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405 ) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn e ction(Http11Protocol.java:376) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508 ) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja v a:518) at java.lang.Thread.run(Thread.java:484) root cause org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: at org.apache.jasper.compiler.DefaultErrorHandler.javacError(Unknown Source) at org.apache.jasper.compiler.ErrorDispatcher.javacError(Unknown Source) at org.apache.jasper.compiler.Compiler.compile(Unknown Source) at org.apache.jasper.JspEngineContext.compile(Unknown Source) at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at
RE: [OFFTOPIC??] RE: dbcp connection and database restart
Anyone know of a GENERIC (NOT DBCP SPECIFIC) algorithm for testing to see if a connection needs to be reset before the pool hands it out without making a query? --Angus -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 11:24 AM To: Tomcat Users List Subject: RE: [OFFTOPIC??] RE: dbcp connection and database restart Angus, You can call Conection.isClosed(), but the documentation suggests that this is not a reliable method of telling that it is _definitely_ closed. However, if it does return true, you know that you should reconnect before attempting a call with the connection. Andy -Original Message- From: Angus Mezick [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 15:53 To: Tomcat Users List Subject: [OFFTOPIC??] RE: dbcp connection and database restart Is there a better way of doing this? Even if I 'select 1 from TABLE' I don't like the fact that there is an extra DB communication for every connection I get from the pool. I don't know if there are alternatives to this in DBCP but are there any other ways to ask if a connection in a pool is still valid besides just running a query and seeing if it fails? (in general, NOT in dbcp) --Angus -Original Message- From: Raible, Matt [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 8:49 AM To: 'Tomcat Users List' Subject: RE: dbcp connection and database restart Try adding a validation query, for example: parameter namevalidationQuery/name valueSELECT * FROM USER_TABLE/value /parameter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 6:46 AM To: [EMAIL PROTECTED] Subject: dbcp connection and database restart I've configured my jdbc datasource connection pool(using dbcp) in Tomcat 4.1.18 server.xml file. here is an extract of it. ResourceParams name=jdbc/intranetMail parameternameusername/namevalueXXX/value/parameter parameternamepassword/namevalueXXX/value/parameter parameternamedriverClassName/name valuecom.sybase.jdbc2.jdbc.SybDriver/value/parameter parameternameurl/name valuejdbc:sybase:Tds:s198000SGD1:5000/intranet_mail/value /parameter /ResourceParams Everything works fine. But when our database server is restarted, I have to restart Tomcat too in order to aquire connections from my defined pool. I wonder if there is a manner to avoid restarting Tomcat when the database server is restarted. I have added the parameters below to my pool config. parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value60/value /parameter I recognize ,I've added that quite blindly. Can someone confirm me if this is a cure to my problem ? any suggestion is greatly appreciated. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSPs not compiling
Thanks for the reply Ben, I ran the $JAVA_HOME/bin/javac and got: Exception in thread main java.lang.NoClassDefFoundError: com/sun/tools/javac/Main Does that narrow it down any? The directories are writable, so hopefully there's no problem there. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 10 July 2003 13:29 To: Tomcat Users List Subject: Re: JSPs not compiling Test your evironment. Windows: %JAVA_HOME%\bin\javac Unix: $JAVA_HOME/bin/javac If you get a program not found error then your JAVA_HOME evironment variable is not properly set. You should also check to make sure that write permissions are available to what ever user is running Tomcat for the CATALINA_HOME/work directory. On Thursday 10 July 2003 08:12 am, Thomas, Kevin wrote: Unfortunately, didn't help. I have JAVA_HOME/bin already defined in the PATH variable. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 10 July 2003 12:08 To: Tomcat Users List Subject: Re: JSPs not compiling Try this first http://jakarta.apache.org/tomcat/faq/misc.html#compile -Tim Thomas, Kevin wrote: I've been searching for ages trying to find a solution to this problem. As far as I can tell it's definitely something to do with my paths being set correctly. I try to call the /admin/index.jsp page and get the following error (full error page shown): type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP at org.apache.jasper.JspEngineContext.compile(Unknown Source) at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(Unknown Source) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(Unknown Source) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405 ) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn e ction(Http11Protocol.java:376) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508 ) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja v a:518) at java.lang.Thread.run(Thread.java:484) root cause org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: at org.apache.jasper.compiler.DefaultErrorHandler.javacError(Unknown Source) at
Re: JSPs not compiling
On Thursday 10 July 2003 08:25, Thomas, Kevin wrote: Thanks for the reply Ben, I ran the $JAVA_HOME/bin/javac and got: Exception in thread main java.lang.NoClassDefFoundError: com/sun/tools/javac/Main Does that narrow it down any? The directories are writable, so hopefully there's no problem there. Perhaps. Here's my output from that: [EMAIL PROTECTED] /home/dmhugget$] $JAVA_HOME/bin/javac Usage: javac options source files where possible options include: -gGenerate all debugging info -g:none Generate no debugging info -g:{lines,vars,source}Generate only some debugging info -nowarn Generate no warnings -verbose Output messages about what the compiler is doing -deprecation Output source locations where deprecated APIs are used -classpath path Specify where to find user class files -sourcepath pathSpecify where to find input source files -bootclasspath path Override location of bootstrap class files -extdirs dirs Override location of installed extensions -d directorySpecify where to place generated class files -encoding encoding Specify character encoding used by source files -source release Provide source compatibility with specified release -target release Generate class files for specific VM version -help Print a synopsis of standard options [EMAIL PROTECTED] /home/dmhugget$] $JAVA_HOME/bin/java -version java version 1.4.2 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28) Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode) [EMAIL PROTECTED] /home/dmhugget$] -- Dwight Hugget http://www.dmhEnterprise.COM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSPs not compiling
Did you install the full SDK (ie: j2sdk1.4.2) or just the runtime (JRE). The full sdk is needed for running JSPs since they get compiled before being run. If so, it's probably a path issue. Type: echo $JAVA_HOME to see what it's set to. Here is an example: If your JDK is j2sdk1.4.2 and it's installed in the /usr/local directory, your JAVA_HOME variable should be: /usr/local/j2sdk1.4.2 You also need to put the bin directory in your path. Example: PATH=$PATH:/usr/local/j2sdk1.4.2/bin in order On Thursday 10 July 2003 08:25 am, Thomas, Kevin wrote: Thanks for the reply Ben, I ran the $JAVA_HOME/bin/javac and got: Exception in thread main java.lang.NoClassDefFoundError: com/sun/tools/javac/Main Does that narrow it down any? The directories are writable, so hopefully there's no problem there. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 10 July 2003 13:29 To: Tomcat Users List Subject: Re: JSPs not compiling Test your evironment. Windows: %JAVA_HOME%\bin\javac Unix: $JAVA_HOME/bin/javac If you get a program not found error then your JAVA_HOME evironment variable is not properly set. You should also check to make sure that write permissions are available to what ever user is running Tomcat for the CATALINA_HOME/work directory. On Thursday 10 July 2003 08:12 am, Thomas, Kevin wrote: Unfortunately, didn't help. I have JAVA_HOME/bin already defined in the PATH variable. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 10 July 2003 12:08 To: Tomcat Users List Subject: Re: JSPs not compiling Try this first http://jakarta.apache.org/tomcat/faq/misc.html#compile -Tim Thomas, Kevin wrote: I've been searching for ages trying to find a solution to this problem. As far as I can tell it's definitely something to do with my paths being set correctly. I try to call the /admin/index.jsp page and get the following error (full error page shown): type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP at org.apache.jasper.JspEngineContext.compile(Unknown Source) at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknow n Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(Unknown Source) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(Unknown Source) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405 ) at
ROOT context fails to use mail/Session Resource param. defaults to localhost
I am not able to use the JNDI mail Factory from the ROOT context. It works when run from the examples context and other non-ROOT contexts as well. For some reason, the ROOT context fails to correctly load the SMTP host variable defined by the JNDI resource in the server.xml(below). It does however register in the Context log (below) with the correct value. Exception Log ENCOUNTERED EXCEPTION: javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect at javax.mail.Transport.send0(Transport.java:219) at javax.mail.Transport.send(Transport.java:81) at SendMailServlet.doPost(SendMailServlet.java:75) 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(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:376) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.RequestDumperValve.invoke(RequestDumperValve.java:221) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536) web.xml web-app display-nameROOT Context/display-name !-- Define servlets and Mappings -- servlet servlet-nameSendMailServlet/servlet-name servlet-classSendMailServlet/servlet-class /servlet servlet-mapping servlet-nameSendMailServlet/servlet-name url-pattern/SendMailServlet/url-pattern /servlet-mapping resource-ref res-ref-namemail/Session/res-ref-name res-typejavax.mail.Session/res-type res-authContainer/res-auth /resource-ref /web-app server.xml !-- ROOT Context -- Context debug=99 docBase=/ROOT path= reloadable=true source=com.ibm.etools.webtools.server:ROOT Logger className=org.apache.catalina.logger.FileLogger prefix=Context_ROOT_ suffix=.log
Re: ROOT context fails to use mail/Session Resource param. defaults to localhost
Windows 2000, Tomcat 4.1.24, Sun J2SDK1.4.1_02 Raimee Stevens [EMAIL PROTECTED] wrote: I am not able to use the JNDI mail Factory from the ROOT context. It works when run from the examples context and other non-ROOT contexts as well. For some reason, the ROOT context fails to correctly load the SMTP host variable defined by the JNDI resource in the server.xml(below). It does however register in the Context log (below) with the correct value. Exception Log ENCOUNTERED EXCEPTION: javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect at javax.mail.Transport.send0(Transport.java:219) at javax.mail.Transport.send(Transport.java:81) at SendMailServlet.doPost(SendMailServlet.java:75) 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(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:376) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.RequestDumperValve.invoke(RequestDumperValve.java:221) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536) web.xml ROOT Context SendMailServlet SendMailServlet SendMailServlet /SendMailServlet mail/Session javax.mail.Session Container server.xml mail.smtp.host Context FileLogger output shows that JNDI naming context was correctly initialized with correct host name: () 2003-07-09 14:37:41 NamingContextListener[/Standalone/myhostname]: Creating JNDI naming context 2003-07-09 14:37:41 NamingContextListener[/Standalone/myhostname]: Resource parameters for mail/Session = ResourceParams[name=mail/Session, parameters={mail.smtp.host=}] 2003-07-09 14:37:41
RE: JSPs not compiling
This is a new one, got this error: An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 10 occurred at PC=0x95b64 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: Dynamic libraries: 0x1 /ki-sun4k2/export/home/apt2/ta_web/webserver/j2sdk1_3_1_02/bin/../bin/sparc/ native_threads/java 0xef77 /usr/lib/libthread.so.1 0xef7b /usr/lib/libdl.so.1 0xef68 /usr/lib/libc.so.1 0xef75 /usr/platform/SUNW,Ultra-Enterprise/lib/libc_psr.so.1 0xee88 /ki-sun4k2/export/home/apt2/ta_web/webserver/j2sdk1_3_1_02/jre/lib/sparc/cli ent/libjvm.so 0xef64 /usr/lib/libCrun.so.1 0xef62 /usr/lib/libsocket.so.1 0xef58 /usr/lib/libnsl.so.1 0xef54 /usr/lib/libm.so.1 0xef67 /usr/lib/libw.so.1 0xef51 /usr/lib/libmp.so.2 0xef4e /ki-sun4k2/export/home/apt2/ta_web/webserver/j2sdk1_3_1_02/jre/lib/sparc/nat ive_threads/libhpi.so 0xef4a /ki-sun4k2/export/home/apt2/ta_web/webserver/j2sdk1_3_1_02/jre/lib/sparc/lib verify.so 0xef46 /ki-sun4k2/export/home/apt2/ta_web/webserver/j2sdk1_3_1_02/jre/lib/sparc/lib java.so 0xef43 /ki-sun4k2/export/home/apt2/ta_web/webserver/j2sdk1_3_1_02/jre/lib/sparc/lib zip.so 0xeb01 /ki-sun4k2/export/home/apt2/ta_web/webserver/j2sdk1_3_1_02/jre/lib/sparc/lib net.so 0xe4fe /usr/lib/nss_files.so.1 Local Time = Thu Jul 10 14:05:15 2003 Elapsed Time = 153 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.3.1_02-b02 mixed mode) # # An error report file has been saved as hs_err_pid6643.log. # Please refer to the file for further information. # -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 10 July 2003 13:39 To: Tomcat Users List Subject: Re: JSPs not compiling Did you install the full SDK (ie: j2sdk1.4.2) or just the runtime (JRE). The full sdk is needed for running JSPs since they get compiled before being run. If so, it's probably a path issue. Type: echo $JAVA_HOME to see what it's set to. Here is an example: If your JDK is j2sdk1.4.2 and it's installed in the /usr/local directory, your JAVA_HOME variable should be: /usr/local/j2sdk1.4.2 You also need to put the bin directory in your path. Example: PATH=$PATH:/usr/local/j2sdk1.4.2/bin in order On Thursday 10 July 2003 08:25 am, Thomas, Kevin wrote: Thanks for the reply Ben, I ran the $JAVA_HOME/bin/javac and got: Exception in thread main java.lang.NoClassDefFoundError: com/sun/tools/javac/Main Does that narrow it down any? The directories are writable, so hopefully there's no problem there. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 10 July 2003 13:29 To: Tomcat Users List Subject: Re: JSPs not compiling Test your evironment. Windows: %JAVA_HOME%\bin\javac Unix: $JAVA_HOME/bin/javac If you get a program not found error then your JAVA_HOME evironment variable is not properly set. You should also check to make sure that write permissions are available to what ever user is running Tomcat for the CATALINA_HOME/work directory. On Thursday 10 July 2003 08:12 am, Thomas, Kevin wrote: Unfortunately, didn't help. I have JAVA_HOME/bin already defined in the PATH variable. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 10 July 2003 12:08 To: Tomcat Users List Subject: Re: JSPs not compiling Try this first http://jakarta.apache.org/tomcat/faq/misc.html#compile -Tim Thomas, Kevin wrote: I've been searching for ages trying to find a solution to this problem. As far as I can tell it's definitely something to do with my paths being set correctly. I try to call the /admin/index.jsp page and get the following error (full error page shown): type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP at org.apache.jasper.JspEngineContext.compile(Unknown Source) at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknow n Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(Unknown
Re: RES: [off-topic] - Where can i find Oreilly's package for uploadi ng fi les?
Is there a site that compares and contrasts the various open source licenses? I know there is opensource.org, but they just provide copies of all the licenses, there is no discussion of the pros and cons of each. John On Wed, 9 Jul 2003 23:25:05 -0700, Bill Barker [EMAIL PROTECTED] wrote: Personally, I prefer jakarta-commons/fileupload for this type of thing. The ASF licence is much more commercial-friendly than the Oreilly licence, and it is much easier to configure (at least IMHO). Jose Euclides da Silva Junior - DATAPREVRJ [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] thank you too. -Mensagem original- De: John Turner [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 9 de julho de 2003 15:54 Para: Tomcat Users List Assunto: Re: RES: [off-topic] - Where can i find Oreilly's package for uploadi ng fi les? http://www.servlets.com/cos/index.html John On Wed, 9 Jul 2003 15:27:38 -0300, Jose Euclides da Silva Junior - DATAPREVRJ [EMAIL PROTECTED] wrote: I am not looking for examples, just the own package. Euclides. -Mensagem original- De: Rick Roberts [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 9 de julho de 2003 15:33 Para: Tomcat Users List Assunto: Re: [off-topic] - Where can i find Oreilly's package for uploading fi les? Not sure if this is what you are after but: There is a MultiPartRequest Class in the Java Servlet Programming Book. http://examples.oreilly.com/jservlet2/ HTH, Rick Jose Euclides da Silva Junior - DATAPREVRJ wrote: Hi, i have tried to search for , but i didnt find it. Can somebody help me? Thanks in advance, Euclides. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I setup Tomcat 5.* (need windows classpath)
True. They are really an application shop. They have a few that play with Tomcat, but I am the only one that has really used it. Ah, ha. You are a good man, Charlie Brown. That sounds like a good lead. I will see what I can do with it. --- John Turner [EMAIL PROTECTED] wrote: Well, sounds like you have some re-education work to do. The whole point is to be portable. Putting things your web application requires onto a network share (I think you mentioned V:) that won't exist anywhere else is not the best practice for design, especially if you have to go in and munge around with the startup scripts to get it to work. If you must, I believe you can pass the parameters directly on the command line, such as withthe endorsed-dirs property or others, as an alternative to messing with CLASSPATH. John On Wed, 9 Jul 2003 08:40:41 -0700 (PDT), Norris Shelton [EMAIL PROTECTED] wrote: I wish I could. This is the architecture that I am saddled with. I have to find a way to make TC5 work with what is given. --- John Turner [EMAIL PROTECTED] wrote: That was my point. JAR up your class files, and put them where Tomcat expects them to be. Problem solved. People typically use ant to do this, so that it is fairly automatic when deploy time comes around. John On Wed, 9 Jul 2003 08:07:58 -0700 (PDT), Norris Shelton [EMAIL PROTECTED] wrote: Ah, ha. Now you are getting somewhere. The Class Loader Definitions has the following under the System bullet: However, the standard Tomcat 4 startup scripts ($CATALINA_HOME/bin/catalina.sh or %CATALINA_HOME%\bin\catalina.bat) totally ignore the contents of the CLASSPATH environment variable itself, and instead build the System class loader from the following repositories: This is the problem I am trying to get around. The additional libraries are not contained in any of the normal catalina classpaths (hence the system environment variable). I have it recognizing the external classpath, but can't find the jsp tag info (and possibly more). --- John Turner [EMAIL PROTECTED] wrote: See the ClassLoader HOWTO: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html specifically: Shared - This class loader is the place to put classes and resources that you wish to share across ALL web applications (unless Tomcat internal classes also need access, in which case you should put them in the Common class loader instead). All unpacked classes and resources in $CATALINA_HOME/shared/classes, as well as classes and resources in JAR files under $CATALINA_HOME/lib, are made visible through this class loader. John On Wed, 9 Jul 2003 07:50:25 -0700 (PDT), Norris Shelton [EMAIL PROTECTED] wrote: How do you get it access items that are not within the tomcat install. I have tomcat installed locally on c:. There is an additional library located on v: (loose classes and jars). We could not get Tomcat to access these classes. --- John Turner [EMAIL PROTECTED] wrote: H...lots of overlap here. First, you shouldn't need to do ANYTHING to CLASSPATH for Tomcat 4.1.x and higher, especially messing around with servlet.jar. Second, as far as where to put your servlets, try the Application Developer's Guide here: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html as well as the Tomcat FAQ: http://jakarta.apache.org/tomcat/faq/misc.html#invoker If you want to post a specific scenario, with a specific error message, we can help, but a generic I've tried everything and nothing ever works doesn't give us much to go on. John On Tue, 08 Jul 2003 15:53:23 -0400, [EMAIL PROTECTED] wrote: Hi, I have searched instructions and websites with no real luck on this. I've used Tomcat in production since some 3.* version but I've been lost since after 4.0 about where to put a simple servlet class or how to include the servlet.jar so jdk1.4 can see it. I've created war files as the admin page seems to want but this doesn't seem to be working either. Tried every class directory I could find and still cant pull up the servlet from the web. (I can get the default.jsp pages though). Tried making my own servlet directory in the config files, nope, no luck. I want to take advantage of any NIO performance enhancements or other benefits that 5.* has to offer, please help! Thanks! JW __ McAfee VirusScan Online from the Netscape Network. Comprehensive protection for your entire computer. Get your
IIS 6.0 and Tomcat
Hi all, Does anyone know if the mod_jk.dll is compatible with Windows 2003 ? I'm planning to buy a new system, so this will definitely influence in my decision. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSPs not compiling
Ok. Looks like you're running a JRE on Solaris. Jsp compilation requires a JDK installation. As to the exception above was detected in native code outside the VM error; have you installed the OS patches required for that version of java? http://java.sun.com/j2se/1.3/install-patches.html Thomas, Kevin wrote: This is a new one, got this error: An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 10 occurred at PC=0x95b64 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: Dynamic libraries: 0x1 /ki-sun4k2/export/home/apt2/ta_web/webserver/j2sdk1_3_1_02/bin/../bin/sparc/ native_threads/java 0xef77 /usr/lib/libthread.so.1 0xef7b /usr/lib/libdl.so.1 0xef68 /usr/lib/libc.so.1 0xef75 /usr/platform/SUNW,Ultra-Enterprise/lib/libc_psr.so.1 0xee88 /ki-sun4k2/export/home/apt2/ta_web/webserver/j2sdk1_3_1_02/jre/lib/sparc/cli ent/libjvm.so 0xef64 /usr/lib/libCrun.so.1 0xef62 /usr/lib/libsocket.so.1 0xef58 /usr/lib/libnsl.so.1 0xef54 /usr/lib/libm.so.1 0xef67 /usr/lib/libw.so.1 0xef51 /usr/lib/libmp.so.2 0xef4e /ki-sun4k2/export/home/apt2/ta_web/webserver/j2sdk1_3_1_02/jre/lib/sparc/nat ive_threads/libhpi.so 0xef4a /ki-sun4k2/export/home/apt2/ta_web/webserver/j2sdk1_3_1_02/jre/lib/sparc/lib verify.so 0xef46 /ki-sun4k2/export/home/apt2/ta_web/webserver/j2sdk1_3_1_02/jre/lib/sparc/lib java.so 0xef43 /ki-sun4k2/export/home/apt2/ta_web/webserver/j2sdk1_3_1_02/jre/lib/sparc/lib zip.so 0xeb01 /ki-sun4k2/export/home/apt2/ta_web/webserver/j2sdk1_3_1_02/jre/lib/sparc/lib net.so 0xe4fe /usr/lib/nss_files.so.1 Local Time = Thu Jul 10 14:05:15 2003 Elapsed Time = 153 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.3.1_02-b02 mixed mode) # # An error report file has been saved as hs_err_pid6643.log. # Please refer to the file for further information. # -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 10 July 2003 13:39 To: Tomcat Users List Subject: Re: JSPs not compiling Did you install the full SDK (ie: j2sdk1.4.2) or just the runtime (JRE). The full sdk is needed for running JSPs since they get compiled before being run. If so, it's probably a path issue. Type: echo $JAVA_HOME to see what it's set to. Here is an example: If your JDK is j2sdk1.4.2 and it's installed in the /usr/local directory, your JAVA_HOME variable should be: /usr/local/j2sdk1.4.2 You also need to put the bin directory in your path. Example: PATH=$PATH:/usr/local/j2sdk1.4.2/bin in order On Thursday 10 July 2003 08:25 am, Thomas, Kevin wrote: Thanks for the reply Ben, I ran the $JAVA_HOME/bin/javac and got: Exception in thread main java.lang.NoClassDefFoundError: com/sun/tools/javac/Main Does that narrow it down any? The directories are writable, so hopefully there's no problem there. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 10 July 2003 13:29 To: Tomcat Users List Subject: Re: JSPs not compiling Test your evironment. Windows: %JAVA_HOME%\bin\javac Unix: $JAVA_HOME/bin/javac If you get a program not found error then your JAVA_HOME evironment variable is not properly set. You should also check to make sure that write permissions are available to what ever user is running Tomcat for the CATALINA_HOME/work directory. On Thursday 10 July 2003 08:12 am, Thomas, Kevin wrote: Unfortunately, didn't help. I have JAVA_HOME/bin already defined in the PATH variable. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 10 July 2003 12:08 To: Tomcat Users List Subject: Re: JSPs not compiling Try this first http://jakarta.apache.org/tomcat/faq/misc.html#compile -Tim Thomas, Kevin wrote: I've been searching for ages trying to find a solution to this problem. As far as I can tell it's definitely something to do with my paths being set correctly. I try to call the /admin/index.jsp page and get the following error (full error page shown): type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP at org.apache.jasper.JspEngineContext.compile(Unknown Source) at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknow n Source) at
Tomcat/Jasper JSTL expression problem
Folks, I'm working on a simple JSP page that opens some files and displays the results. I've pretty much got it working, but I've come across two problems. The first is that Jasper reported that the end attribute of forEach could not accept an expression. I thought it could? That's the impression I've gotten from various different resources. Anyway, I modified the rtexprvalue tag in the c.tld file in standard.jar and that worked. So, then I was trying to make some URLs and I needed to use the JSTL out action. When I tried to set the value attribute with an expression I got a similar error. Anyway, I fixed that the same way. So, my question is, am I experiencing the correct behavior? Why is this so? I am using Tomcat 5.0.2 (for JSP 2.0) and J2SDK1.4.2 on RedHat Linux 8.0. BTW: I do plan on reading the JSP 2.0 spec. Thanks, Robert Jones - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat: j_security_check: Form Authentication
I just started trying to use Form AUTH and JDBCRealm a couple days ago, and I am seeing the exact same behavior. Muhammad Bilal wrote: Hi, I am using Form Authentication with Tomcat 4.1.18. Every thing seems working, when I try to access a protected resource directly, it takes me to the login.jsp and if enter correct user/password it logs me in and takes to protected resource. But if I try to go to login.jsp first and enters my user/password it takes to some thing like http://203.32.143.146:8080/test/j_security_check;jsessionid=303C0E68008E1E54F0E2CBAF43553B27 and displays HTTP Status 400 - Invalid direct reference to form login page type Status report message Invalid direct reference to form login page description The request sent by the client was syntactically incorrect (Invalid direct reference to form login page). Apache Tomcat/4.1.18 j_security_check is the servlet which uses JDBCRealm, I need to know a bit of its detail how it works, and how is it possible that we go to login.jsp first and then it takes to page we want after success, like the admin section works of tomcat http://localhost:8080/admin. Btw, I noticed also, if we try to give blank user/password on admin page and click to submit, it takes to similar kind of error. I have following configurations: In server.xml !-- Tomcat test Context -- Context path=/test docBase=test debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_test_log. suffix=.txt timestamp=true/ Environment name=maxExemptions type=java.lang.Integer value=15/ Parameter name=context.param.name value=context.param.value override=false/ Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=weblogic.jdbc.mssqlserver4.Driver connectionURL=jdbc:weblogic:mssqlserver4:[EMAIL PROTECTED] connectionName=dev connectionPassword=web userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name / /Context In web.xml under /test/WEB-INF web-app display-nameTest by Bilal/display-name descriptionIt is a test context for authentication./description security-constraint web-resource-collection web-resource-nameOnJava Application/web-resource-name url-pattern/protected/*/url-pattern http-methodDELETE/http-method http-methodGET/http-method http-methodPOST/http-method http-methodPUT/http-method /web-resource-collection auth-constraint role-nameonjavauser/role-name /auth-constraint user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint login-config auth-methodFORM/auth-method realm-nameExample Form-Based Authentication Area/realm-name form-login-config form-login-page/login.jsp/form-login-page form-error-page/error.jsp/form-error-page /form-login-config /login-config /web-app In log: 2003-07-10 18:27:52 WebappLoader[/test]: Reloading checks are enabled for this Context 2003-07-10 18:27:53 ContextConfig[/test]: WARNING: Security role name onjavauser used in an auth-constraint without being defined in a security-role 2003-07-10 18:27:54 ContextConfig[/test]: Configured an authenticator for method FORM 2003-07-10 18:27:54 StandardManager[/test]: Seeding random number generator class java.security.SecureRandom 2003-07-10 18:27:54 StandardManager[/test]: Seeding of random number generator has been completed 2003-07-10 18:27:54 StandardWrapper[/test:default]: Loading container servlet default 2003-07-10 18:27:54 StandardWrapper[/test:invoker]: Loading container servlet invoker 2003-07-10 18:29:42 JDBCRealm[/test]: Username bob successfully authenticated Any quick response would be really great. Thanks, Bilal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to make Tomcat reread user's role from database
My website uses a subscription based service, and we're using WorldPay (similar to PayPal I believe) to handle the credit card billing. I've defined roles for each of the subscription levels: trial trial_expired bronze silver gold The problem is when a trial user registers, they become bronze/silver/gold but until they logout and log back in, Tomcat thinks they're in the old role. Is it possible to make Tomcat reread the user's role from the database? If not, is there a way to log the user out so they'll have to log back in again? I'm curious how others are handling this, it seems like it'd be a common problem. Thanks, Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
war deployment and jsp pre-compilation
We deploy our application as war file with the manager. unpackWars is set to false. Is it possible to deploy pre-compiled JSPs with this approach? I guess this would imply that we'd have to have a context.xml in our war file specifying that Tomcat should load the compiled JSP classes from the war file instead of from its working directory. Can this be done? Reinhard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat: j_security_check: Form Authentication
The problem is in the error message: Invalid direct reference to form login page In brief: With container-based auth, when a user attempts to access a protected resource, the container will 'remember' which resource they tried to access, and send them off to the form login page, specified in web.xml. If they successfully authenticate, then the container will then send them off to the original resource. If you go directly to login.jsp... where are you supposed to go after ? -Original Message- From: Muhammad Bilal [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 4:00 AM To: [EMAIL PROTECTED] Subject: Tomcat: j_security_check: Form Authentication Hi, I am using Form Authentication with Tomcat 4.1.18. Every thing seems working, when I try to access a protected resource directly, it takes me to the login.jsp and if enter correct user/password it logs me in and takes to protected resource. But if I try to go to login.jsp first and enters my user/password it takes to some thing like http://203.32.143.146:8080/test/j_security_check;jsessionid=30 3C0E68008E1E54F0E2CBAF43553B27 and displays HTTP Status 400 - Invalid direct reference to form login page -- -- type Status report message Invalid direct reference to form login page description The request sent by the client was syntactically incorrect (Invalid direct reference to form login page). -- -- Apache Tomcat/4.1.18 j_security_check is the servlet which uses JDBCRealm, I need to know a bit of its detail how it works, and how is it possible that we go to login.jsp first and then it takes to page we want after success, like the admin section works of tomcat http://localhost:8080/admin. Btw, I noticed also, if we try to give blank user/password on admin page and click to submit, it takes to similar kind of error. I have following configurations: In server.xml !-- Tomcat test Context -- Context path=/test docBase=test debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_test_log. suffix=.txt timestamp=true/ Environment name=maxExemptions type=java.lang.Integer value=15/ Parameter name=context.param.name value=context.param.value override=false/ Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=weblogic.jdbc.mssqlserver4.Driver connectionURL=jdbc:weblogic:mssqlserver4:[EMAIL PROTECTED] connectionName=dev connectionPassword=web userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name / /Context In web.xml under /test/WEB-INF web-app display-nameTest by Bilal/display-name descriptionIt is a test context for authentication./description security-constraint web-resource-collection web-resource-nameOnJava Application/web-resource-name url-pattern/protected/*/url-pattern http-methodDELETE/http-method http-methodGET/http-method http-methodPOST/http-method http-methodPUT/http-method /web-resource-collection auth-constraint role-nameonjavauser/role-name /auth-constraint user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint login-config auth-methodFORM/auth-method realm-nameExample Form-Based Authentication Area/realm-name form-login-config form-login-page/login.jsp/form-login-page form-error-page/error.jsp/form-error-page /form-login-config /login-config /web-app In log: 2003-07-10 18:27:52 WebappLoader[/test]: Reloading checks are enabled for this Context 2003-07-10 18:27:53 ContextConfig[/test]: WARNING: Security role name onjavauser used in an auth-constraint without being defined in a security-role 2003-07-10 18:27:54 ContextConfig[/test]: Configured an authenticator for method FORM 2003-07-10 18:27:54 StandardManager[/test]: Seeding random number generator class java.security.SecureRandom 2003-07-10 18:27:54 StandardManager[/test]: Seeding of random number generator has been completed 2003-07-10 18:27:54 StandardWrapper[/test:default]: Loading container servlet default 2003-07-10 18:27:54 StandardWrapper[/test:invoker]: Loading container servlet invoker 2003-07-10 18:29:42
Re: How to make Tomcat reread user's role from database
Assuming I understand your problem: You may want to try populating a session object from the database and then update that session object when the user changes his role info. Then use the session object to make decisions, rather than need to re-read the database each time. Michael Mattox wrote: My website uses a subscription based service, and we're using WorldPay (similar to PayPal I believe) to handle the credit card billing. I've defined roles for each of the subscription levels: trial trial_expired bronze silver gold The problem is when a trial user registers, they become bronze/silver/gold but until they logout and log back in, Tomcat thinks they're in the old role. Is it possible to make Tomcat reread the user's role from the database? If not, is there a way to log the user out so they'll have to log back in again? I'm curious how others are handling this, it seems like it'd be a common problem. Thanks, Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
custom error page for mod_jk
Hi! Does anybody know how one could set up a maintenance page for Apache that is automatically displayed when mod_jk can not reach tomcat, because it's down for maintenance? At the moment I get the Error 500 page. Of course I could overwrite this with ErrorDocument in httpd.conf, but then it's not possible to distinguish between real errors and maintenace. Is it possible to let apache display a HTML page that is shadowed when the application is running? cu, boris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to make Tomcat reread user's role from database
That's one way of doing it, but what if you want to use container-provided auth, and methods like isUserInRole getUserPrincipal etc And Rick, this relates to your other question about FORM AUTH and session timeout. I'm fairly certain that if you expire your session, then you are no longer authenticated. For sure it works that way with BASIC. Have you tried already, and you know it doesn't work the same for FORM? If it works as expected, then (Michael M) what you might consider is on the servlet that 'upgrades' the user from trial to 'not trial' invalidate the session, and redirect to a protected page. This would make the container authenticate the user again, meaning the user would need to login again, but at least they would be kicked out of their old role. -Original Message- From: Rick Roberts [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 9:00 AM To: Tomcat Users List Subject: Re: How to make Tomcat reread user's role from database Assuming I understand your problem: You may want to try populating a session object from the database and then update that session object when the user changes his role info. Then use the session object to make decisions, rather than need to re-read the database each time. Michael Mattox wrote: My website uses a subscription based service, and we're using WorldPay (similar to PayPal I believe) to handle the credit card billing. I've defined roles for each of the subscription levels: trial trial_expired bronze silver gold The problem is when a trial user registers, they become bronze/silver/gold but until they logout and log back in, Tomcat thinks they're in the old role. Is it possible to make Tomcat reread the user's role from the database? If not, is there a way to log the user out so they'll have to log back in again? I'm curious how others are handling this, it seems like it'd be a common problem. Thanks, Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: IIS 6.0 and Tomcat
JK2 does not work with IIS6 -Original Message- From: webmaster [mailto:[EMAIL PROTECTED] Sent: 10. júlí 2003 13:23 To: [EMAIL PROTECTED] Subject: IIS 6.0 and Tomcat Hi all, Does anyone know if the mod_jk.dll is compatible with Windows 2003 ? I'm planning to buy a new system, so this will definitely influence in my decision. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat: j_security_check: Form Authentication
Mike Curwen wrote: The problem is in the error message: Invalid direct reference to form login page In brief: With container-based auth, when a user attempts to access a protected resource, the container will 'remember' which resource they tried to access, and send them off to the form login page, specified in web.xml. If they successfully authenticate, then the container will then send them off to the original resource. That makes since. If you go directly to login.jsp... where are you supposed to go after ? index.jsp? Does the container auth create/use a session? If not then, is there anyway to sync up the container auth with the session time-out? Is there anyway to invalidate the current JDBCRealm login? -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to make Tomcat reread user's role from database
Mike, I read this after I posted in the other thread. Looks like you answered some of my questions here already. Sorry 'bout that. Again, you are very helpful. Thanks, -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache/Tomcat Connectors
Oh No - Not another Connector Issue - lol I am about to attempt to put together, the best latest combination of Apache and Tomcat with the jk2 connector. So this is a question about which versions work with which versions. I plan to use Apache 2.0.47 and Tomcat 4.1.24 In searching through the binary connectors I found one for Apache 2.0.46. Can I use it or should I build my own from the source distribution? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XML DOCTYPE problem
This seems very strange. Almost any xml editor or xml system uses the public or system identifier to point to a the DTD so it can vaildate the instance. The public or system identifier is part of EVERY valid xml file. There must be some way to handle it?? It's true that the jstl xml parser doesn't validate it, that's not what I need since I will be producing valid xml, I just need the jstl x:parse to ignore it so I don't get an error?? Someone must have run into this before. Thanks for the help though. I'll keep researching it. -Brian -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 1:15 AM To: Tomcat Users List Subject: RE: XML DOCTYPE problem And i think it even has to have a http:// in front -Original Message- From: Abid Ali Teepo Sent: 10. juli 2003 09:38 To: Tomcat Users List Subject: RE: XML DOCTYPE problem I think the reference to a doctype has to be on the format www.somesite.com/dtd/data.dtd or similar Besides i don't thinkt it will actually validate against that DTD anyway -Original Message- From: Brian Menke [mailto:[EMAIL PROTECTED] Sent: 10. juli 2003 07:21 To: Tomcat Users List Subject: XML DOCTYPE problem Hi everyone, I have created a JSP page that use the jstl xml tag library, specifically using xpath. Everything works perfectly fine as long as I don't have a doctype declaration like the following in my XML instance: !DOCTYPE datasheet PUBLIC -//Innovtech//DTD datasheet//EN c:/dtds/innovtech/datasheet.dtd If I remove it, everything works great, but if I don't, I get a java error like this: org.apache.jasper.JasperException: Could not resolve entity reference: ///c:/dtds/innovtech/datasheet.dtd I have to have the doctype in the xml. Does anyone know how I can fix this?? I did post this to the taglib email list, but it doesn't seem to get near the traffic as this group. Thanks! -Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache/Tomcat Connectors
Hi Ray, According to the message I got from the [EMAIL PROTECTED] mailing list regarding this latest release, any module built for Apache 2.0.42 or later should work with 2.0.47: quote This release is compatible with modules compiled for 2.0.42 and later versions. /quote Cheers, Morgan -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 16:24 To: Tomcat-User Subject: Apache/Tomcat Connectors Oh No - Not another Connector Issue - lol I am about to attempt to put together, the best latest combination of Apache and Tomcat with the jk2 connector. So this is a question about which versions work with which versions. I plan to use Apache 2.0.47 and Tomcat 4.1.24 In searching through the binary connectors I found one for Apache 2.0.46. Can I use it or should I build my own from the source distribution? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Load Balancing / Session Clustering - Tests
Hey everyone, I've set up a few Tomcat instances in a cluster and would like to test the scalability of the cluster as well as make sure the session clustering is working. Testing scalability is easy and I have load balncing software, but whats the best way to make sure that sessions are clustering as expected? Thanks, Alan Weissman Systems Engineer Concord Financial Technologies [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 : (
My goal is to setup Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 I'm following the HOWTO at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html I download mod jk_2 from http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0. 1/bin/linux/i386/mod_jk2-2.0.43.so I add to the original httpd.conf file: ServerName 127.0.0.1:80 and LoadModule jk2_module modules/mod_jk2.so I copy the workers2.properties from the HOWTO as is(just changed ../apache/.. to ../apache2/.. ) I start Tomcat,it works and catalina.out looks OK. I start Apache,it works and error_log looks BAD: caught SIGTERM, shutting down :( [Thu Jul 10 16:41:02 2003] [notice] caught SIGTERM, shutting down [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] Apache/2.0.43 (Unix) mod_jk2/2.0.0 configured -- resuming normal operations [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:26 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:26 2003] [notice] mod_jk child init 1 -1 What the hell is the problem? Please your help!! bentzy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to read/write files located outside WEB-INF
Hi, Im writting this application to edit configuration files. These files are located in several folders in the local filesystem where the tomcat server is running and where my app is also running. I want to be able to open/writte these files from a JSP but I've found in forums that I can only read/write files located at the WEB-INF folder of my application. Is this true? Is there a way to configure the tomcat server to allow a certain application to use an external folder? Thank you all in advance for you help. I hope there something I can do to get this working.. its kind of importat. Best Regards -- Powered by Outblaze - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pb with webapp admin
At 08:22 AM 7/10/2003 +0200, you wrote: Hi, i use a tomcat 4.1.18 on a Linux RedHat 7.3 All my directories images are a linux link in my webapp, so i have put this on my server xml betwen the two tag context Resources className=org.apache.naming.resources.FileDirContext allowLinking=true/ so it's work, but when i use the webapp admin in order to change some other parameters and when i commit, tomcat delete the line of my linkin my server.xml so i lost my images when he reboot... Do you know why ? Put any Context specific stuff in a context configuration file. See admin.xml and manager.xml in webapps for an example. You must be using the manager app to upload a .war file since the server.xml is getting reloaded. So, name your context configuration file context.xml and put it in the META-INF directory of your .war file. Now do the upload and your context information should be there. Jake thanks for your advice Yannick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Load Balancing / Session Clustering - Tests
Hey everyone, I've set up a few Tomcat instances in a cluster and would like to test the scalability of the cluster as well as make sure the session clustering is working. Testing scalability is easy and I have load balncing software, but whats the best way to make sure that sessions are clustering as expected? humm I guess taht the simplest solution is to check your log files with material added by the javagroups (layer used for clustering feature). My 2 cents Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jar in war to access own property files - possible?
Hi, I have a utility jar file that has classes using property files within the jar. This jar is then put into a war as part of a seperate web application. When the webapp is run I get failures which seem to be due to the fact that the classes in the jar cannot access the property files, also in the jar. Is this not possible? Andy Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JK Connector url rewrite question
I'm running an Apache/Tomcat combination using mod_jk. Whenever I enter a URL to hit the apache server, somewhere along the redirect to tomcat the server portion of the url gets changed. So, if I type http://localhost/myapp I actually get in the browser http://my.hostname.com/myapp This even happens if I type the IP address, rather than a hostname. I'd really like it to not do this, and just use the hostname or IP address that I type in, but I can't seem to find any hook to change this behavior. Can anybody help? Noel Rappin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: How to read/write files located outside WEB-INF
Sure you can. At least in servlets you can. I don´t have any experience in JSP, but in servlets you have read/write-access to the whole host-filesystem as in every java-application using normal java-FileIO-methods. If (and only if) you use the tomcat security-manager you will have to enable read/write-access for the dirs/files you want to access there. Hope that helps, Philipp -Ursprüngliche Nachricht- Von: Mariano Rodriguez [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. Juli 2003 16:56 An: [EMAIL PROTECTED] Betreff: How to read/write files located outside WEB-INF Hi, Im writting this application to edit configuration files. These files are located in several folders in the local filesystem where the tomcat server is running and where my app is also running. I want to be able to open/writte these files from a JSP but I've found in forums that I can only read/write files located at the WEB-INF folder of my application. Is this true? Is there a way to configure the tomcat server to allow a certain application to use an external folder? Thank you all in advance for you help. I hope there something I can do to get this working.. its kind of importat. Best Regards -- Powered by Outblaze - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Redirect vs RequestDispatcher
Hi I need some input on pro con with using redirect instead of requestdispatcher. I heard someone mention something about firewall issues or other security concerns The reason i'm asking is that i have a problem making my requestdipatcher work, while the redirection works just fine. I use a filter that checks for a valid session before giving access to a restricted area. If there is no valid session i use the requestdispatcher to forward it to the login page. But when it does that it looks for the login page files in the wrong place. Let me give an example: My app area is on https://localhost/sec/ My secure area is on https://localhost/sec/secure/ Whenever i request something in the secure area, without a valid session, i want the request to be forwarded back to my app area. So far it works, but the references to html and jsp within that index.jsp gets an extra /secure/ added to the when requesting the files. This makes it look for https://localhost/sec/secure/someloginpage.jsp instead of https://localhost/sec/someloginpage.jsp . This is the problem, hence it does not find the files. The extra /secure is the url-pattern that triggers my filter. Yes, i know i could use form based authentication, but i have a proprietary loginfunctionality that can't be done with j_security_check I will be happy for any comment or suggestion. regards Abid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to read/write files located outside WEB-INF
If you are using Linux, maybe you could try to create a symbolic link in your WEB-INF folder poiting to an external folder... SaM Mariano Rodriguez wrote: Hi, Im writting this application to edit configuration files. These files are located in several folders in the local filesystem where the tomcat server is running and where my app is also running. I want to be able to open/writte these files from a JSP but I've found in forums that I can only read/write files located at the WEB-INF folder of my application. Is this true? Is there a way to configure the tomcat server to allow a certain application to use an external folder? Thank you all in advance for you help. I hope there something I can do to get this working.. its kind of importat. Best Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: How to read/write files located outside WEB-INF
JSPs are servlets (eventually), so the same rules apply. John On Thu, 10 Jul 2003 17:13:55 +0200, Philipp Leusmann [EMAIL PROTECTED] wrote: Sure you can. At least in servlets you can. I dont have any experience in JSP, but in servlets you have read/write-access to the whole host-filesystem as in every java- application using normal java-FileIO-methods. If (and only if) you use the tomcat security-manager you will have to enable read/write-access for the dirs/files you want to access there. Hope that helps, Philipp -Ursprngliche Nachricht- Von: Mariano Rodriguez [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. Juli 2003 16:56 An: [EMAIL PROTECTED] Betreff: How to read/write files located outside WEB-INF Hi, Im writting this application to edit configuration files. These files are located in several folders in the local filesystem where the tomcat server is running and where my app is also running. I want to be able to open/writte these files from a JSP but I've found in forums that I can only read/write files located at the WEB-INF folder of my application. Is this true? Is there a way to configure the tomcat server to allow a certain application to use an external folder? Thank you all in advance for you help. I hope there something I can do to get this working.. its kind of importat. Best Regards -- Powered by Outblaze - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 : (
Run apachectl configtest and post the output. Always do this before trying to fire up Apache after a change. John On Thu, 10 Jul 2003 17:53:32 +0200, Bentzy Sagiv [EMAIL PROTECTED] wrote: My goal is to setup Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 I'm following the HOWTO at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html I download mod jk_2 from http://jakarta.apache.org/builds/jakarta-tomcat- connectors/jk2/release/v2.0. 1/bin/linux/i386/mod_jk2-2.0.43.so I add to the original httpd.conf file: ServerName 127.0.0.1:80 and LoadModule jk2_module modules/mod_jk2.so I copy the workers2.properties from the HOWTO as is(just changed ../apache/.. to ../apache2/.. ) I start Tomcat,it works and catalina.out looks OK. I start Apache,it works and error_log looks BAD: caught SIGTERM, shutting down :( [Thu Jul 10 16:41:02 2003] [notice] caught SIGTERM, shutting down [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] Apache/2.0.43 (Unix) mod_jk2/2.0.0 configured -- resuming normal operations [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:26 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:26 2003] [notice] mod_jk child init 1 -1 What the hell is the problem? Please your help!! bentzy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 : (
Sintax OK ,John. bentzy -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 5:18 PM To: Tomcat Users List Subject: Re: Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 : ( Run apachectl configtest and post the output. Always do this before trying to fire up Apache after a change. John On Thu, 10 Jul 2003 17:53:32 +0200, Bentzy Sagiv [EMAIL PROTECTED] wrote: My goal is to setup Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 I'm following the HOWTO at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html I download mod jk_2 from http://jakarta.apache.org/builds/jakarta-tomcat- connectors/jk2/release/v2.0. 1/bin/linux/i386/mod_jk2-2.0.43.so I add to the original httpd.conf file: ServerName 127.0.0.1:80 and LoadModule jk2_module modules/mod_jk2.so I copy the workers2.properties from the HOWTO as is(just changed ../apache/.. to ../apache2/.. ) I start Tomcat,it works and catalina.out looks OK. I start Apache,it works and error_log looks BAD: caught SIGTERM, shutting down :( [Thu Jul 10 16:41:02 2003] [notice] caught SIGTERM, shutting down [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] Apache/2.0.43 (Unix) mod_jk2/2.0.0 configured -- resuming normal operations [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:26 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:26 2003] [notice] mod_jk child init 1 -1 What the hell is the problem? Please your help!! bentzy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 : (
sounds like your problem is not your httpd.conf but your workers2.properties file. Is this an upgrade or a new install? Either way, you have an error where you define a worker or 2. At 06:22 PM 7/10/2003 +0200, you wrote: Sintax OK ,John. bentzy -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 5:18 PM To: Tomcat Users List Subject: Re: Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 : ( Run apachectl configtest and post the output. Always do this before trying to fire up Apache after a change. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HOWTO obtain UserDatabase from a servlet?
I wish to secure a website with a simple realm/user database setup for a low usage site with low numbers of users. UserDatabaseRealm (underpinned by MemoryUserDatabase) would seem to be ideally suited. How do I access the MemoryUserDatabase from a regular application to be able to SET passwords, etc. Once I have got a UserDatabase interface I know I can then use findUser(..), but how do I get something implementing the interface in the first case? Is it some JNDI lookup or ServletContext access? I would appreciate your pointing me to some HOWTO documentation. Andrew. _ This e-mail has been scanned for viruses by MessageLabs. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 : (
Hi, I think we did this last week... with RH8. The solution was to put JkSet config.file /full/system/path/to/workers2.properties in the httpd.conf file. Many times JK2 doesn't see your properties file and takes some wierd kind of self initiated defaults. -e On Thu, 10 Jul 2003, Bentzy Sagiv wrote: My goal is to setup Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 I'm following the HOWTO at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html I download mod jk_2 from http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0. 1/bin/linux/i386/mod_jk2-2.0.43.so I add to the original httpd.conf file: ServerName 127.0.0.1:80 and LoadModule jk2_module modules/mod_jk2.so I copy the workers2.properties from the HOWTO as is(just changed ../apache/.. to ../apache2/.. ) I start Tomcat,it works and catalina.out looks OK. I start Apache,it works and error_log looks BAD: caught SIGTERM, shutting down :( [Thu Jul 10 16:41:02 2003] [notice] caught SIGTERM, shutting down [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] Apache/2.0.43 (Unix) mod_jk2/2.0.0 configured -- resuming normal operations [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:26 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:26 2003] [notice] mod_jk child init 1 -1 What the hell is the problem? Please your help!! bentzy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 : (
Is a new install, and at catalina.out I see INFO: JK2: ajp13 listening on /0.0.0.0:8009 INFO:Jk running etc. anyway, the workers2.properties file is the following: [logger.apache2] level=DEBUG [shm] file=/usr/local/apache/logs/shm.file size=1048576 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # Uri mapping [uri:10.0.0.10/*.jsp] worker=ajp13:localhost:8009 [uri:www.home.net/*.jsp] worker=ajp13:localhost:8009 [uri:www.customer1.it/*.jsp] worker=ajp13:localhost:8009 [uri:www.customer2.net/*.jsp] worker=ajp13:localhost:8009 -Original Message- From: Maureen Barger [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 5:26 PM To: Tomcat Users List Subject: RE: Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 : ( sounds like your problem is not your httpd.conf but your workers2.properties file. Is this an upgrade or a new install? Either way, you have an error where you define a worker or 2. At 06:22 PM 7/10/2003 +0200, you wrote: Sintax OK ,John. bentzy -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 5:18 PM To: Tomcat Users List Subject: Re: Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 : ( Run apachectl configtest and post the output. Always do this before trying to fire up Apache after a change. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[FAQ] Re: Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 : (
This should probably go in the FAQ under miscellaneous. John On Thu, 10 Jul 2003 11:29:48 -0400 (EDT), Eric J. Pinnell [EMAIL PROTECTED] wrote: Hi, I think we did this last week... with RH8. The solution was to put JkSet config.file /full/system/path/to/workers2.properties in the httpd.conf file. Many times JK2 doesn't see your properties file and takes some wierd kind of self initiated defaults. -e On Thu, 10 Jul 2003, Bentzy Sagiv wrote: My goal is to setup Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 I'm following the HOWTO at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html I download mod jk_2 from http://jakarta.apache.org/builds/jakarta-tomcat- connectors/jk2/release/v2.0. 1/bin/linux/i386/mod_jk2-2.0.43.so I add to the original httpd.conf file: ServerName 127.0.0.1:80 and LoadModule jk2_module modules/mod_jk2.so I copy the workers2.properties from the HOWTO as is(just changed ../apache/.. to ../apache2/.. ) I start Tomcat,it works and catalina.out looks OK. I start Apache,it works and error_log looks BAD: caught SIGTERM, shutting down :( [Thu Jul 10 16:41:02 2003] [notice] caught SIGTERM, shutting down [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] Apache/2.0.43 (Unix) mod_jk2/2.0.0 configured -- resuming normal operations [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:26 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:26 2003] [notice] mod_jk child init 1 -1 What the hell is the problem? Please your help!! bentzy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 : (
Nothing helps . The difference is that now I see the [notice] lines from the error_log file at command line. bentzy. -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 5:30 PM To: Tomcat Users List Subject: Re: Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 : ( Hi, I think we did this last week... with RH8. The solution was to put JkSet config.file /full/system/path/to/workers2.properties in the httpd.conf file. Many times JK2 doesn't see your properties file and takes some wierd kind of self initiated defaults. -e On Thu, 10 Jul 2003, Bentzy Sagiv wrote: My goal is to setup Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 I'm following the HOWTO at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html I download mod jk_2 from http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0. 1/bin/linux/i386/mod_jk2-2.0.43.so I add to the original httpd.conf file: ServerName 127.0.0.1:80 and LoadModule jk2_module modules/mod_jk2.so I copy the workers2.properties from the HOWTO as is(just changed ../apache/.. to ../apache2/.. ) I start Tomcat,it works and catalina.out looks OK. I start Apache,it works and error_log looks BAD: caught SIGTERM, shutting down :( [Thu Jul 10 16:41:02 2003] [notice] caught SIGTERM, shutting down [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] Apache/2.0.43 (Unix) mod_jk2/2.0.0 configured -- resuming normal operations [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:26 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:26 2003] [notice] mod_jk child init 1 -1 What the hell is the problem? Please your help!! bentzy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Load Balancing / Session Clustering - Tests
Well, load testing on the Apache end would be the way to go for scalability testing. You can monitor the network connections to the Tomcat instances (use of netstat does well here; grep for the number of connections to each port every N seconds or minutes, etc.). To test the session stuff, try shutting down instances as you are running through the app. Can you access each Tomcat instance individually? The best way is to use each Tomcat's web server and to access it on the port. Then, shut down that Tomcat and access another Tomcat by its port. If your session continues unaffected, you are good to go. If you have a REALLY good load tester that can capture page data (i.e., return codes and pages from the web server), you could randomly shutdown Tomcat instances while load testing to see how that affects the ouput. HTH, Ben Ricker Wellinx.com On Thu, 2003-07-10 at 09:52, Weissman, Alan wrote: Hey everyone, I've set up a few Tomcat instances in a cluster and would like to test the scalability of the cluster as well as make sure the session clustering is working. Testing scalability is easy and I have load balncing software, but whats the best way to make sure that sessions are clustering as expected? Thanks, Alan Weissman Systems Engineer Concord Financial Technologies [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [FAQ] Re: Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 : (
I think it's a good idea. It should be noted that this setting isn't RH8 specific. I had to use it on Solaris. -e On Thu, 10 Jul 2003, John Turner wrote: This should probably go in the FAQ under miscellaneous. John On Thu, 10 Jul 2003 11:29:48 -0400 (EDT), Eric J. Pinnell [EMAIL PROTECTED] wrote: Hi, I think we did this last week... with RH8. The solution was to put JkSet config.file /full/system/path/to/workers2.properties in the httpd.conf file. Many times JK2 doesn't see your properties file and takes some wierd kind of self initiated defaults. -e On Thu, 10 Jul 2003, Bentzy Sagiv wrote: My goal is to setup Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 I'm following the HOWTO at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html I download mod jk_2 from http://jakarta.apache.org/builds/jakarta-tomcat- connectors/jk2/release/v2.0. 1/bin/linux/i386/mod_jk2-2.0.43.so I add to the original httpd.conf file: ServerName 127.0.0.1:80 and LoadModule jk2_module modules/mod_jk2.so I copy the workers2.properties from the HOWTO as is(just changed ../apache/.. to ../apache2/.. ) I start Tomcat,it works and catalina.out looks OK. I start Apache,it works and error_log looks BAD: caught SIGTERM, shutting down :( [Thu Jul 10 16:41:02 2003] [notice] caught SIGTERM, shutting down [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] Apache/2.0.43 (Unix) mod_jk2/2.0.0 configured -- resuming normal operations [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:26 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:26 2003] [notice] mod_jk child init 1 -1 What the hell is the problem? Please your help!! bentzy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [FAQ] Re: Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 : (
Please the link to the FAQ - miscellaneous -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 5:43 PM To: Tomcat Users List Subject: [FAQ] Re: Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 : ( This should probably go in the FAQ under miscellaneous. John On Thu, 10 Jul 2003 11:29:48 -0400 (EDT), Eric J. Pinnell [EMAIL PROTECTED] wrote: Hi, I think we did this last week... with RH8. The solution was to put JkSet config.file /full/system/path/to/workers2.properties in the httpd.conf file. Many times JK2 doesn't see your properties file and takes some wierd kind of self initiated defaults. -e On Thu, 10 Jul 2003, Bentzy Sagiv wrote: My goal is to setup Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 I'm following the HOWTO at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html I download mod jk_2 from http://jakarta.apache.org/builds/jakarta-tomcat- connectors/jk2/release/v2.0. 1/bin/linux/i386/mod_jk2-2.0.43.so I add to the original httpd.conf file: ServerName 127.0.0.1:80 and LoadModule jk2_module modules/mod_jk2.so I copy the workers2.properties from the HOWTO as is(just changed ../apache/.. to ../apache2/.. ) I start Tomcat,it works and catalina.out looks OK. I start Apache,it works and error_log looks BAD: caught SIGTERM, shutting down :( [Thu Jul 10 16:41:02 2003] [notice] caught SIGTERM, shutting down [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] Apache/2.0.43 (Unix) mod_jk2/2.0.0 configured -- resuming normal operations [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:26 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:26 2003] [notice] mod_jk child init 1 -1 What the hell is the problem? Please your help!! bentzy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JDBCRealm - Session not timing out
Should my JDBCRealm login reset when the session times out? I have tried it in both Basic AUTH and Form AUTH. My session never times out. Actually, I'm not sure if session times out our not, (I have no session objects in this test app) but if it does time out, my JDBCRealm login does not know about it. Here is a snipit from my web.xml: web-app session-config session-timeout1/session-timeout /session-config ... ... login-config auth-methodBASIC/auth-method realm-nameBASIC Authentication Area/realm-name !-- auth-methodFORM/auth-method realm-nameForm-Based Authentication Area/realm-name form-login-config form-login-page/login.jsp/form-login-page form-error-page/login_error.jsp/form-error-page /form-login-config -- /login-config /web-app -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [FAQ] Re: Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 : (
http://jakarta.apache.org/tomcat/faq John On Thu, 10 Jul 2003 19:04:11 +0200, Bentzy Sagiv [EMAIL PROTECTED] wrote: Please the link to the FAQ - miscellaneous -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 5:43 PM To: Tomcat Users List Subject: [FAQ] Re: Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 : ( This should probably go in the FAQ under miscellaneous. John On Thu, 10 Jul 2003 11:29:48 -0400 (EDT), Eric J. Pinnell [EMAIL PROTECTED] wrote: Hi, I think we did this last week... with RH8. The solution was to put JkSet config.file /full/system/path/to/workers2.properties in the httpd.conf file. Many times JK2 doesn't see your properties file and takes some wierd kind of self initiated defaults. -e On Thu, 10 Jul 2003, Bentzy Sagiv wrote: My goal is to setup Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 I'm following the HOWTO at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html I download mod jk_2 from http://jakarta.apache.org/builds/jakarta-tomcat- connectors/jk2/release/v2.0. 1/bin/linux/i386/mod_jk2-2.0.43.so I add to the original httpd.conf file: ServerName 127.0.0.1:80 and LoadModule jk2_module modules/mod_jk2.so I copy the workers2.properties from the HOWTO as is(just changed ../apache/.. to ../apache2/.. ) I start Tomcat,it works and catalina.out looks OK. I start Apache,it works and error_log looks BAD: caught SIGTERM, shutting down :( [Thu Jul 10 16:41:02 2003] [notice] caught SIGTERM, shutting down [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] Apache/2.0.43 (Unix) mod_jk2/2.0.0 configured -- resuming normal operations [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:26 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:26 2003] [notice] mod_jk child init 1 -1 What the hell is the problem? Please your help!! bentzy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Load Balancing / Session Clustering - Tests
thanks Ben! -Original Message- From: Ben Ricker [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 11:35 AM To: Tomcat Users List Subject: Re: Tomcat Load Balancing / Session Clustering - Tests Well, load testing on the Apache end would be the way to go for scalability testing. You can monitor the network connections to the Tomcat instances (use of netstat does well here; grep for the number of connections to each port every N seconds or minutes, etc.). To test the session stuff, try shutting down instances as you are running through the app. Can you access each Tomcat instance individually? The best way is to use each Tomcat's web server and to access it on the port. Then, shut down that Tomcat and access another Tomcat by its port. If your session continues unaffected, you are good to go. If you have a REALLY good load tester that can capture page data (i.e., return codes and pages from the web server), you could randomly shutdown Tomcat instances while load testing to see how that affects the ouput. HTH, Ben Ricker Wellinx.com On Thu, 2003-07-10 at 09:52, Weissman, Alan wrote: Hey everyone, I've set up a few Tomcat instances in a cluster and would like to test the scalability of the cluster as well as make sure the session clustering is working. Testing scalability is easy and I have load balncing software, but whats the best way to make sure that sessions are clustering as expected? Thanks, Alan Weissman Systems Engineer Concord Financial Technologies [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBCRealm - Session not timing out
At 12:09 PM 7/10/2003 -0400, you wrote: Should my JDBCRealm login reset when the session times out? I have tried it in both Basic AUTH and Form AUTH. My session never times out. I'm not entirely sure about Form AUTH, but Basic AUTH doesn't use sessions. The browser caches the login information provided and re-sends it on each request. So, there is no real time out for Basic AUTH. The only equivalent would be to close all open browsers. This deletes the cache of the Basic AUTH credentials forcing the user to re-enter it once a new browser is opened and the protected web site is re-visited. Jake - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_webapp and jndi datasource
Hi All, Has anyone experience a problem getting jndi datasources to work via mod_webapp (warp connection). I've got a datasource that is accessible through the standalone tomcat (4.1.18) on port 8080 -- no problem. But, when I connect via apache and a warp connection on port 80, I get the exception: org.apache.jasper.JasperException: Cannot load JDBC driver class 'null' I've been combing the google newgroups and see that many people have had the problem. I however have not seen a solution. Anyone?? Please?? My hands are cramping from all the config changes!!! Todd
Re: Tomcat/Jasper JSTL expression problem
So, I figured out the problem. I was using: %@ taglib prefix=c uri=http://java.sun.com/jstl/core; % when I should have been using: %@ taglib prefix=c uri=http://java.sun.com/jstl/core_rt; % Robert Jones On Thu, 2003-07-10 at 09:36, Robert S. Jones wrote: Folks, I'm working on a simple JSP page that opens some files and displays the results. I've pretty much got it working, but I've come across two problems. The first is that Jasper reported that the end attribute of forEach could not accept an expression. I thought it could? That's the impression I've gotten from various different resources. Anyway, I modified the rtexprvalue tag in the c.tld file in standard.jar and that worked. So, then I was trying to make some URLs and I needed to use the JSTL out action. When I tried to set the value attribute with an expression I got a similar error. Anyway, I fixed that the same way. So, my question is, am I experiencing the correct behavior? Why is this so? I am using Tomcat 5.0.2 (for JSP 2.0) and J2SDK1.4.2 on RedHat Linux 8.0. BTW: I do plan on reading the JSP 2.0 spec. Thanks, Robert Jones - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Robert S. Jones [EMAIL PROTECTED] Salient Systems - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Detecting a download
Not sure if this is even possible or would be done in Tomcat, but is there anyway to track the progress of a download? What I am looking to do is 2 things. Once a user has logged in using JDBC Realm, they would download a file. I want to archive that file, so that if there are problems I know the exact version of the file they downloaded. I would also like to mark in the database the time/date that they finished downloading the file. Can this be done? Any help would be greatly appreciated! _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 : (
I have written a HOWTO for RH Linux 8, Apache2, and tomcat. You can get to it at http://www.cardon.biz/docs/tomcat -Original Message- From: Bentzy Sagiv [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 9:47 AM To: Tomcat Users List Subject: RE: Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 : ( Nothing helps . The difference is that now I see the [notice] lines from the error_log file at command line. bentzy. -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 5:30 PM To: Tomcat Users List Subject: Re: Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 : ( Hi, I think we did this last week... with RH8. The solution was to put JkSet config.file /full/system/path/to/workers2.properties in the httpd.conf file. Many times JK2 doesn't see your properties file and takes some wierd kind of self initiated defaults. -e On Thu, 10 Jul 2003, Bentzy Sagiv wrote: My goal is to setup Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 I'm following the HOWTO at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html I download mod jk_2 from http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0. 1/bin/linux/i386/mod_jk2-2.0.43.so I add to the original httpd.conf file: ServerName 127.0.0.1:80 and LoadModule jk2_module modules/mod_jk2.so I copy the workers2.properties from the HOWTO as is(just changed ../apache/.. to ../apache2/.. ) I start Tomcat,it works and catalina.out looks OK. I start Apache,it works and error_log looks BAD: caught SIGTERM, shutting down :( [Thu Jul 10 16:41:02 2003] [notice] caught SIGTERM, shutting down [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker directive is depriciated [Thu Jul 10 16:41:08 2003] [notice] Apache/2.0.43 (Unix) mod_jk2/2.0.0 configured -- resuming normal operations [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1 [Thu Jul 10 16:41:26 2003] [notice] workerEnv.init() ok /usr/local/apache2/conf/workers2.properties [Thu Jul 10 16:41:26 2003] [notice] mod_jk child init 1 -1 What the hell is the problem? Please your help!! bentzy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Detecting a download
If you use a servlet to send the file to the user, you could do something like this: response.setContentType(binary/octet-stream); //I don´t know if the content-type is correct ServletOutputStream out = response.getOutputStream(); InputStream is = file.getInputStream(); int i; while((i = is.read()) != -1) out.write(i); out.close(); is.close(); //INSERT CODE TO WRITE TIMESTAMP INTO DB HERE Greetings, Philipp -Ursprüngliche Nachricht- Von: Jon Felmey [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. Juli 2003 18:33 An: [EMAIL PROTECTED] Betreff: Detecting a download Not sure if this is even possible or would be done in Tomcat, but is there anyway to track the progress of a download? What I am looking to do is 2 things. Once a user has logged in using JDBC Realm, they would download a file. I want to archive that file, so that if there are problems I know the exact version of the file they downloaded. I would also like to mark in the database the time/date that they finished downloading the file. Can this be done? Any help would be greatly appreciated! _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache 2.0.40 and tomcat 4.1.24
I am using mod_jk to integrate apache and tomcat, and I am somewhat confused as to what modifications I should make to tomcat's server.xml file. I can only find such documentation on JK2, and not mod_jk. Is it the same setup?...If someone knows any good online documentation or briefly explain what changes I should make to server.xml, please do. -D *---* * Dumisani Nlebgwa* * 631 216 1622* * You can't pronounce my name?* * - but its so phonetic! * *---* - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache 2.0.40 and tomcat 4.1.24
http://jakarta.apache.org/tomcat/faq/connectors.html http://www.google.com/search?hl=enlr=lang_enie=UTF-8oe=UTF- 8q=apache+tomcat+mod_jk+howto John On Thu, 10 Jul 2003 12:50:56 -0400 (EDT), Dumisani Nlebgwa [EMAIL PROTECTED] wrote: I am using mod_jk to integrate apache and tomcat, and I am somewhat confused as to what modifications I should make to tomcat's server.xml file. I can only find such documentation on JK2, and not mod_jk. Is it the same setup?...If someone knows any good online documentation or briefly explain what changes I should make to server.xml, please do. -D *---* * Dumisani Nlebgwa* * 631 216 1622* * You can't pronounce my name?* * -but its so phonetic! * *---* - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Load Balancing / Session Clustering - Tests
If you are using a webserver stresstest tool like siege (http://www.joedog.org/siege) be sure to have a delay (5secs or more) between the requests. Because otherwise if the requests come too fast, the load balancing round robin will get screwed up (i think mod_jk(2)'s worker stats aren't updated quick enough), like this: Siege in benchmark mode (--benchmark on cmdline): 20 or more requests go to first tomcat 20 or more to second 20 or more to third and so on... Siege with delay of 5 secs (--delay=5): 1-2 requests to first tomcat 1-2 to second ... And use something without a session for testing, like an image (or use worker.lb_xx.sticky_session=0) At 12:15 10.07.2003 -0400, you wrote: thanks Ben! -Original Message- From: Ben Ricker [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 11:35 AM To: Tomcat Users List Subject: Re: Tomcat Load Balancing / Session Clustering - Tests Well, load testing on the Apache end would be the way to go for scalability testing. You can monitor the network connections to the Tomcat instances (use of netstat does well here; grep for the number of connections to each port every N seconds or minutes, etc.). To test the session stuff, try shutting down instances as you are running through the app. Can you access each Tomcat instance individually? The best way is to use each Tomcat's web server and to access it on the port. Then, shut down that Tomcat and access another Tomcat by its port. If your session continues unaffected, you are good to go. If you have a REALLY good load tester that can capture page data (i.e., return codes and pages from the web server), you could randomly shutdown Tomcat instances while load testing to see how that affects the ouput. HTH, Ben Ricker Wellinx.com On Thu, 2003-07-10 at 09:52, Weissman, Alan wrote: Hey everyone, I've set up a few Tomcat instances in a cluster and would like to test the scalability of the cluster as well as make sure the session clustering is working. Testing scalability is easy and I have load balncing software, but whats the best way to make sure that sessions are clustering as expected? Thanks, Alan Weissman Systems Engineer Concord Financial Technologies [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to make Tomcat reread user's role from database
If it works as expected, then (Michael M) what you might consider is on the servlet that 'upgrades' the user from trial to 'not trial' invalidate the session, and redirect to a protected page. This would make the container authenticate the user again, meaning the user would need to login again, but at least they would be kicked out of their old role. I should have given some more details, because it is more complicated than that. My subscription form actually POSTS to the WorldPay server and the user enters their credit card. The WorldPayServer then sends me an HTTP Post to a Struts action with the data saying the transaction was successful, and I update the database to change the user's role from trial to gold for example. Since this database change is done in another thread, I don't have access to invalidate the user's session. Here's what I've done so far: I've customized the page WordPay returns to the user saying the payment is successful. I've added a link back to our site, but the link actually logs them out and redirects them to the homepage. From there they log in again. I will probably make it even more user friend by inserting a page that says they need to login again. This seems to be working. Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDBCRealm - Session not timing out
I had thought (and replied so in a separate thread) that BASIC auth would also time out. But even if it doesn't... How could J2EE work, if the following didn't happen: 1. User gets authenticated with BASIC AUTH 2. User lets their session timeout 3. User requests a protected page. 4. container asks for credentials 5. browser sends them 6. container says: those credentials are for an expired session, I'm re-auth'ing you 7. you get the OS-level prompt to login again. If this *doesn't* happen, then isn't using BASIC AUTH to protect your resources bound to break your app at some point? Ex: shopping cart beans in the session (that is no longer there, even though you are still 'authenticated'). Hopefully a Tomcat commiter will help us out. I'd give this all a try myself, but it's lunchtime! ;) -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 11:16 AM To: Tomcat Users List Subject: Re: JDBCRealm - Session not timing out At 12:09 PM 7/10/2003 -0400, you wrote: Should my JDBCRealm login reset when the session times out? I have tried it in both Basic AUTH and Form AUTH. My session never times out. I'm not entirely sure about Form AUTH, but Basic AUTH doesn't use sessions. The browser caches the login information provided and re-sends it on each request. So, there is no real time out for Basic AUTH. The only equivalent would be to close all open browsers. This deletes the cache of the Basic AUTH credentials forcing the user to re-enter it once a new browser is opened and the protected web site is re-visited. Jake - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JK Connector url rewrite question
Hmm, sure you don't use a proxy connection toconnect to tomcat instead of mod_jk? :-) My other guess would be to check Apache's httpd.conf for UseCanonicalName and ServerName If ServerName is my.hostname.com and UseCanonicalName is on Apache uses always Servername instead of the URL you typed in Browser, if you want to keep the Browser typed URL set UseCanonicalName Off At 11:03 10.07.2003 -0400, you wrote: I'm running an Apache/Tomcat combination using mod_jk. Whenever I enter a URL to hit the apache server, somewhere along the redirect to tomcat the server portion of the url gets changed. So, if I type http://localhost/myapp I actually get in the browser http://my.hostname.com/myapp This even happens if I type the IP address, rather than a hostname. I'd really like it to not do this, and just use the hostname or IP address that I type in, but I can't seem to find any hook to change this behavior. Can anybody help? Noel Rappin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache 2.0.40 and tomcat 4.1.24
Though the information John sent you is definitely the right place to start, let me warn you that I, for one, never made Apache 2.0.40 work with Tomcat 4.1.24. I was on RedHat 9, and tried upgrading my Apache via RPMs, but got stuck in dependency hell! If you do make it work, please let me know how. By the way, I know I wasn't alone because there's even a company selling a binary version that's supposed to tie these together for 199 Euros. We ended up switching servers before their email with the price came back, so I haven't tried it out. It's just interesting to me that someone's making cash on this problem :-) To check it out go to http://www.activ8.at/knowledgebase/. Scroll down to mod_jk2 on RedHat 9 and click Details. Good luck, Ben John Turner wrote: http://jakarta.apache.org/tomcat/faq/connectors.html http://www.google.com/search?hl=enlr=lang_enie=UTF-8oe=UTF- 8q=apache+tomcat+mod_jk+howto John On Thu, 10 Jul 2003 12:50:56 -0400 (EDT), Dumisani Nlebgwa [EMAIL PROTECTED] wrote: I am using mod_jk to integrate apache and tomcat, and I am somewhat confused as to what modifications I should make to tomcat's server.xml file. I can only find such documentation on JK2, and not mod_jk. Is it the same setup?...If someone knows any good online documentation or briefly explain what changes I should make to server.xml, please do. -D *---* *Dumisani Nlebgwa* *631 216 1622* *You can't pronounce my name?* *-but its so phonetic!* *---* - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: war deployment and jsp pre-compilation
Hi Reinhard, Using TC 4.1.24+ you can use ant to first run JspC and deploy the resulting WAR using the manager app. You can find more info here: http://www.fwd.at/tomcat/buildmanagement-using-ant-howto.html Johannes Reinhard Nägele [EMAIL PROTECTED] 10.07.2003 15:38 Please respond to Tomcat Users List [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject war deployment and jsp pre-compilation We deploy our application as war file with the manager. unpackWars is set to false. Is it possible to deploy pre-compiled JSPs with this approach? I guess this would imply that we'd have to have a context.xml in our war file specifying that Tomcat should load the compiled JSP classes from the war file instead of from its working directory. Can this be done? Reinhard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache 2.0.40 and tomcat 4.1.24
I wish I could get 199 Euros for setting up apache/tomcat/JK-JK2 on Linux. :) I'd try to do everything from source. -e On Thu, 10 Jul 2003, Benjamin Cox wrote: Though the information John sent you is definitely the right place to start, let me warn you that I, for one, never made Apache 2.0.40 work with Tomcat 4.1.24. I was on RedHat 9, and tried upgrading my Apache via RPMs, but got stuck in dependency hell! If you do make it work, please let me know how. By the way, I know I wasn't alone because there's even a company selling a binary version that's supposed to tie these together for 199 Euros. We ended up switching servers before their email with the price came back, so I haven't tried it out. It's just interesting to me that someone's making cash on this problem :-) To check it out go to http://www.activ8.at/knowledgebase/. Scroll down to mod_jk2 on RedHat 9 and click Details. Good luck, Ben John Turner wrote: http://jakarta.apache.org/tomcat/faq/connectors.html http://www.google.com/search?hl=enlr=lang_enie=UTF-8oe=UTF- 8q=apache+tomcat+mod_jk+howto John On Thu, 10 Jul 2003 12:50:56 -0400 (EDT), Dumisani Nlebgwa [EMAIL PROTECTED] wrote: I am using mod_jk to integrate apache and tomcat, and I am somewhat confused as to what modifications I should make to tomcat's server.xml file. I can only find such documentation on JK2, and not mod_jk. Is it the same setup?...If someone knows any good online documentation or briefly explain what changes I should make to server.xml, please do. -D *---* *Dumisani Nlebgwa* *631 216 1622* *You can't pronounce my name?* *-but its so phonetic!* *---* - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]