Re: Tomcat For Multiple Users
Hi, Matt A similar thread of messages exists under the subject title how to make manager available to each virtual host. I suppose it may be halpful to you as well. And about your reply I would like to ask you if possible to help me configure the server.xml file. I have never modified this file, except to change the defalut port. It would be very helpful if you can give me a sample server.xml file. (Till now, I used Tomcat only for a standalone machine) I already created several student accounts and the home directories for the test purposes. Their home directories have initialized by default with the proper access permission at the time of creation. Ferad Zyulkyarov - Original Message - From: Matt [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Monday, February 28, 2005 4:46 AM Subject: Re: Tomcat For Multiple Users It sounds similar to what I'm attempting. I was finally able to setup Tomcat w/ IIS to allow webapps outside of $CATALINA_HOME, but haven't gone beyond any very simple JSP pages yet. You could do the same with Apache. To put it very basically, use your web server/OS to setup these student directories (and thus permissions/access), like any other user-based account/web areas irrespective of Tomcat, but, then you need to configure your web server and Tomcat to allow these places to host webapps and have Tomcat process them. Each student's web area will need to be added to Tomcat's server.xml and the properties file for whatever jk/jk2 module you use with which web server you use. Try getting that setup first, and then you should be at the point to ask for further, or at least more specific, help. I would be curious to know any further specifics from this group, unless allowing a user's directory allows them to setup and deploy their own app's (in/below same) -- without any more work from the Tomcat/web server admin.? Thanks, -Matt On Mon, 28 Feb 2005, Ferad Zyulkyarov wrote: Hi, want to set up a Tomcat server for the use of all students in the department. I need a server configuration where each student (account) will have a permission to deploy and undepoly only those webapplications that belongs him/her. No account will be able to manipulate the stuff of the other accounts. Please, give me advices about how to do that. Thanks Ferad Zyulkyarov! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Matthew Kozak Rutgers University-Camden [EMAIL PROTECTED] ** They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -Ben Franklin ** - 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]
Architecture for application and web server
Hi, Could anyone let me know the link where I could find the architecture of how tomcat (application server) and apache (web server) interact using the connector. I need a detailed description of how the communication generally takes place between them. Regards. Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments.
jsvc.exec error on FC3
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I'm trying to configure jsvc to work on a Fedora Core 3 system running Blackdown Java 1.4.2. I managed to do a configure and compile jsvc all right. I used the Tomcat5.sh script to start up and shutdown jsvc. The daemon starts up ok, but when shutting down, I get this error: Feb 28, 2005 3:23:40 PM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 jsvc.exec error: Service exit with a return value of 143 When I do a shutdown using the shutdown.sh script, Tomcat shuts down gracefully. Is there a way to shutdown jsvc gracefully? - -- ~ -- ~ Pascal Chong -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFCItLzmVdpiRJSldgRAvmvAKCm9a0bCgMM/MyqAK3Z+didFbljDACeMLCI mTEsiSSYMKZjLouLXON4/Eo= =L0kT -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pre-Compilation in Tomcat Jasper
there is one jspc.bat in bin directory or an Ant task - JspC is available for pre compiling jsp. Using this you can compile JSP to Servlets and put it in WEB-INF/classes directory. It has parameter to generate the required web.xml mappings. Note : In Tomcat 4.1.x the task by default compiles all classes into org.apache.jsp. rgds Antony Paul On Mon, 28 Feb 2005 12:25:46 +0530, BV Karthik [EMAIL PROTECTED] wrote: Hi, Is there anything in Tomcat which will pre-compile our JSP's? What jasper has to do with Tomcat? Pls help. Thanks in advance. Regards, Karthik BV - 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 manager available to each virtual host
Try this: 1. go to catalina_home/conf/Catalina/ 2. open the first host folder . In my case, the first host is localhost. 3. Let's named the first host as localhost and the second host is X. So copy the content of the localhost into the X host. 4. restart the tomcat. 5. Try to access the manager for the X host. I've tried those steps and it worked. --- James T. Studebaker [EMAIL PROTECTED] wrote: Leaves I am running tomcat 5.0.28 on a linux fedora core 2 machine. I have configured virtual hosts for tomcat. I wish to make the manager application available to each vertual host that I have configured so that users can deploy applications to their account. What I did is add a context to each virtual host and defined the varables for the context exactly as they are defined in the context found in the localhost host. I have gotten this approach to work on a local window xp1. installation, however it fails on a remote linux installation. Can anyone give me a hint what needs to be done? Here is the error message I get: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.catalina.manager.HTMLManagerServlet or a class it depends on org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) java.lang.Thread.run(Thread.java:534) root cause java.lang.ClassNotFoundException: org.apache.catalina.manager.HTMLManagerServlet org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:854) org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:721) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) java.lang.Thread.run(Thread.java:534) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs. Apache Tomcat/5.0.28 Thank you James T. Studebaker __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat clustering and NotSerializableException
Hi, I am using Tomcat 5.0.28 on MS Win2k server. After I have uncommented the Cluster element in server.xml, I get the following exceptions on the tomcat console for some actions that are using displaytag. Is it a tomcat bug, since org.apache.coyote.tomcat5.CoyoteRequestFacade is involved? (DeltaManager.java:813)- Unable to serialize delta request java.io.NotSerializableException: org.apache.coyote.tomcat5.CoyoteRequestFacade at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java :1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:13 04) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.jav a:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at org.apache.catalina.cluster.session.DeltaRequest$AttributeInfo.writeE xternal(DeltaRequest.java:300) at org.apache.catalina.cluster.session.DeltaRequest.writeExternal(DeltaR equest.java:217) at org.apache.catalina.cluster.session.DeltaManager.unloadDeltaRequest(D eltaManager.java:393) at org.apache.catalina.cluster.session.DeltaManager.requestCompleted(Del taManager.java:782) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationVa lve.java:203) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16 0) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja va:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:683) at java.lang.Thread.run(Thread.java:534) - Jim The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, please notify the sender of this email immediately. You should not copy, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Capco. http://www.capco.com/
Re: Startup
Caldarale, Charles R said: 5.5.7 is also noticeably faster than 5.0.30, even on the 1.4.2 JRE. And how much faster is Tomcat 5.5.7 compared to old Tomcat 3.2/3.3? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems loading external stylesheet in Tomcat
Anyone seen that the first hit of the day on a Tomcat website, doesn't load the external stylesheets? Reloading the page loads the stylesheets also. Can I enforce external stylesheets must be sent with the page somehow? I only seen this is in Safari so far, but it looks like a server problem, I'll put a log on there to see if it's true, but if you recognize this problem, please share your experience. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems loading external stylesheet in Tomcat
Hi, Tomcat doesn't care or know about stylesheets. Your resultant HTML should contain references to stylesheets thus: link rel=stylesheet href=/the/styles.css / This gets spat out as HTML (which it is) and the browser takes care of linking them in. Allistair. -Original Message- From: Mieke Banderas [mailto:[EMAIL PROTECTED] Sent: 28 February 2005 09:25 To: Tomcat Users List Subject: Problems loading external stylesheet in Tomcat Anyone seen that the first hit of the day on a Tomcat website, doesn't load the external stylesheets? Reloading the page loads the stylesheets also. Can I enforce external stylesheets must be sent with the page somehow? I only seen this is in Safari so far, but it looks like a server problem, I'll put a log on there to see if it's true, but if you recognize this problem, please share your experience. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question for Tomcat Developers - How to Plug In Encryption for JDBC passwords
If I can see your encrypted passwords, then I can see the code that decrypts them. And with that I have your passwords. It only adds a step to my effort to crack your security. Is that strictly true? If you use the method that is used to encrypt Unix passwords (google for JCrypt for an implementation) then isn't this a one-way hash and you can't decrypt the passwords by reversing the algorithmn? Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Pre-Compilation in Tomcat Jasper
Hi Karthik, A build file I modified from the sample that comes with tomcat documentation, hope it's still working (I removed some private stuff from the original file) You will need to set the properties webapp.name (eg. myWebapp) and tomcat.home (eg. d:/tomcat) in the file build.properties and run the task all (ant all). Basically, the script will pre-compile all JSPs into the work folder of tomcat and not the WEB-INF/classes directory. Also you don't have to change web.xml to include the generated servlets. project name=Webapp Precompilation default=all basedir=. property name=propFile value=build.properties / property file=${propFile} / !-- property name=tomcat.home value=path to tomcat / -- property name=webapp.path value=${tomcat.home}/webapps/${webapp.name} / property name=src.dest.dir value=${tomcat.home}/work/Catalina/localhost/${webapp.name} / property name=class.dest.dir value=${tomcat.home}/work/Catalina/localhost/${webapp.name} / target name=jspc taskdef classname=org.apache.jasper.JspC name=jasper2 classpath id=jspc.classpath pathelement location=${java.home}/../lib/tools.jar/ fileset dir=${tomcat.home}/bin include name=*.jar/ /fileset fileset dir=${tomcat.home}/server/lib include name=*.jar/ /fileset fileset dir=${tomcat.home}/common/lib include name=*.jar/ /fileset /classpath /taskdef jasper2 validateXml=false uriroot=${webapp.path} webXmlFragment=${webapp.path}/WEB-INF/generated_web.xml outputDir=${src.dest.dir} / /target target name=compile mkdir dir=${class.dest.dir}/ mkdir dir=${webapp.path}/WEB-INF/lib/ javac destdir=${class.dest.dir} optimize=off debug=on failonerror=false srcdir=${src.dest.dir} excludes=**/*.smap memoryMaximumSize=256M fork=true classpath pathelement location=${webapp.path}/WEB-INF/classes/ pathelement location=${class.dest.dir}/ fileset dir=${webapp.path}/WEB-INF/lib include name=*.jar/ /fileset pathelement location=${tomcat.home}/common/classes/ fileset dir=${tomcat.home}/common/lib include name=*.jar/ /fileset pathelement location=${tomcat.home}/shared/classes/ fileset dir=${tomcat.home}/shared/lib include name=*.jar/ /fileset fileset dir=${tomcat.home}/bin include name=*.jar/ /fileset /classpath include name=** / exclude name=tags/** / /javac /target target name=print-info echo message=*** Precompiling all JSPs for webapp: ${webapp.name} *** / /target target name=all depends=print-info, jspc, compile /target !-- Removed compiled JSP source and classes. -- target name=clean depends= echo message=Deleting compiled JSP source from directory ${src.dest.dir}/org/apache/jsp / delete includeEmptyDirs=true fileset dir=${src.dest.dir}/org/apache/jsp includes=**/*.java / /delete echo message=Deleting compiled JSP class from directory ${class.dest.dir}/org/apache/jsp / delete includeEmptyDirs=true fileset dir=${class.dest.dir}/org/apache/jsp includes=**/*.class / /delete /target /project - Jim -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 4:29 PM To: Tomcat Users List; BV Karthik Subject: Re: Pre-Compilation in Tomcat Jasper there is one jspc.bat in bin directory or an Ant task - JspC is available for pre compiling jsp. Using this you can compile JSP to Servlets and put it in WEB-INF/classes directory. It has parameter to generate the required web.xml mappings. Note : In Tomcat 4.1.x the task by default compiles all classes into org.apache.jsp. rgds Antony Paul On Mon, 28 Feb 2005 12:25:46 +0530, BV Karthik [EMAIL PROTECTED] wrote: Hi, Is there anything in Tomcat which will pre-compile our JSP's? What jasper has to do with Tomcat? Pls help. Thanks in advance. Regards, Karthik BV - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, please notify the sender of this email immediately. You should not copy, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Capco. http://www.capco.com/
RE: Tomcat clustering and NotSerializableException
I would guess that this means you have an object in your session that does not implement the serializable interface. Ta Matt -Original Message- From: Sng Wee Jim [mailto:[EMAIL PROTECTED] Sent: 28 February 2005 09:21 To: tomcat-user@jakarta.apache.org Subject: Tomcat clustering and NotSerializableException Hi, I am using Tomcat 5.0.28 on MS Win2k server. After I have uncommented the Cluster element in server.xml, I get the following exceptions on the tomcat console for some actions that are using displaytag. Is it a tomcat bug, since org.apache.coyote.tomcat5.CoyoteRequestFacade is involved? (DeltaManager.java:813)- Unable to serialize delta request java.io.NotSerializableException: org.apache.coyote.tomcat5.CoyoteRequestFacade at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java :1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:13 04) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.jav a:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at org.apache.catalina.cluster.session.DeltaRequest$AttributeInfo.writeE xternal(DeltaRequest.java:300) at org.apache.catalina.cluster.session.DeltaRequest.writeExternal(DeltaR equest.java:217) at org.apache.catalina.cluster.session.DeltaManager.unloadDeltaRequest(D eltaManager.java:393) at org.apache.catalina.cluster.session.DeltaManager.requestCompleted(Del taManager.java:782) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationVa lve.java:203) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16 0) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja va:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:683) at java.lang.Thread.run(Thread.java:534) - Jim The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, please notify the sender of this email immediately. You should not copy, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Capco. http://www.capco.com/ Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe,
Errors after upgrading Tomcat to 5.0.28
Hi I have upgraded from Tomcat 4.3.31 to 5.0.28. While testing, a previously running application now fails with the error org.apache.jasper.JasperException: Cannot find any information on property 'tcCheckBoxErrorMessage' in a bean of type 'uk.co.brakes.CustomerRegistrationFormData' Can anyone give me a pointer as to why this message is appearing when the only thing thats changed is upgrading Tomcat and what I need to do about it. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question for Tomcat Developers - How to Plug In Encryption for JDBC passwords
Tomcat must send the unencrypted password to the database. Thus it must decrypt it. The whole issue is that Tomcat must act like a user in the role of the database. So it must know the password. The best method is to lock the user away in a room, then it doesn't matter if the password is written all over his hands. The next trick is to make him put it on a piece of paper and hide it. Then you could make him put it down in code, but he can't remember how to decode it so that has to be written down too. Doug - Original Message - From: Varley, Roger [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Monday, February 28, 2005 4:34 AM Subject: RE: Question for Tomcat Developers - How to Plug In Encryption for JDBC passwords If I can see your encrypted passwords, then I can see the code that decrypts them. And with that I have your passwords. It only adds a step to my effort to crack your security. Is that strictly true? If you use the method that is used to encrypt Unix passwords (google for JCrypt for an implementation) then isn't this a one-way hash and you can't decrypt the passwords by reversing the algorithmn? Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - 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: Errors after upgrading Tomcat to 5.0.28
I have upgraded from Tomcat 4.3.31 to 5.0.28. While testing, a previously running application now fails with the error org.apache.jasper.JasperException: Cannot find any information on property 'tcCheckBoxErrorMessage' in a bean of type 'uk.co.brakes.CustomerRegistrationFormData' Please ignore this. Upgrading Tomcat was *not* the only thing that changed. I should have checked before posting. Please accept my apologies. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Arabic encoding
I tested many tomcat versions, I found until tomcat 4.1.31 no problems with arabic, but when I tried tomcat-4.1.18 and newer versions, I faced the same problem. - Original Message - From: Benson Margulies [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Sunday, February 27, 2005 4:08 PM Subject: RE: Arabic encoding It depends on what the Oracle JDBC driver does with byte values that are not legitimate US7ASCII. If, for some reason, it treated the data as ISO-8859-1 instead of US7ASCII, then it might have streamed out through tomcat, and the browser would have auto-detected the CP1256 pretending to be ISO-8859-1. -Original Message- From: Fadwa Barham [mailto:[EMAIL PROTECTED] Sent: Sunday, February 27, 2005 1:43 PM To: Tomcat Users List Subject: Re: Arabic encoding But I wonder why the old tomcat and java displayed arabic correctly, and I use the same classes12.jar in both of the old and the new. I want to know what is the differance, what encoding they stopped to support? It looks like that tomcat cannot understand the old Java cause I have to change the encoding to arabic windows in the internet explorer each time I request the servlet, and when I do this, every arabic character is displayed correctly. I think it is better to understand the problem and the changes so I can handle the problem if I faced it again in the newer versions of tomcat or Java. I know that being the database in us7ascii is not good, but changing the database encoding each time I face the problem is not the right way. I may change it this time, but I need to understand. thanks - Original Message - From: Benson Margulies [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Sunday, February 27, 2005 12:44 AM Subject: RE: Arabic encoding Oracle's ODBC driver will transcode from the database to UTF-16 based on the databse encoding. If the database is in US7ASCII, this is a destructive process for Arabic. The only alternative I can think of is to do all your database I/O in hex. -Original Message- From: Fadwa Barham [mailto:[EMAIL PROTECTED] Sent: Saturday, February 26, 2005 1:20 PM To: Tomcat Users List Subject: Re: Arabic encoding I use oracle 7 database, and the NLS language is American_America.US7ASCII, and it is not easy to change it to utf-8. Beside, the question is, a servlet work fine on tomcat 4.0.6 why it stopped with the new versions, what changes made to the encoding of tomcat?? do I need tomcat-i18n-ar.jar? and if so, from where to get it? I can't determine where is the problem, is it from the new Java or the new tomcat. thanks in advanced - Original Message - From: Benson Margulies [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, February 23, 2005 11:26 PM Subject: RE: Arabic encoding What database? Do you have the database set up to deliver Unicode, or CP1256, correctly? Note that not all Arabic fits into CP1256, you might really be better off with UTF-8. - 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] - 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]
Incorrect output using WDSC for iseries
Return Receipt Your Incorrect output using WDSC for iseries document: wasIlya Nabedrik/PHIL/FRS received by: at:02/28/2005 08:06:11 AM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Arabic encoding
As tomcat 4.1.31 is suitable for arabic and it seems until now that tomcat 4.1.31 solved the jndi datasource problems: Intermittent dB connection Failures and Random Connection closed Exceptions I will use tomcat 4.1.31 until I can configure the latest versions of tomcat. I feel not lucky - Original Message - From: Fadwa Barham [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, March 01, 2005 2:39 AM Subject: Re: Arabic encoding I tested many tomcat versions, I found until tomcat 4.1.31 no problems with arabic, but when I tried tomcat-4.1.18 and newer versions, I faced the same problem. - Original Message - From: Benson Margulies [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Sunday, February 27, 2005 4:08 PM Subject: RE: Arabic encoding It depends on what the Oracle JDBC driver does with byte values that are not legitimate US7ASCII. If, for some reason, it treated the data as ISO-8859-1 instead of US7ASCII, then it might have streamed out through tomcat, and the browser would have auto-detected the CP1256 pretending to be ISO-8859-1. -Original Message- From: Fadwa Barham [mailto:[EMAIL PROTECTED] Sent: Sunday, February 27, 2005 1:43 PM To: Tomcat Users List Subject: Re: Arabic encoding But I wonder why the old tomcat and java displayed arabic correctly, and I use the same classes12.jar in both of the old and the new. I want to know what is the differance, what encoding they stopped to support? It looks like that tomcat cannot understand the old Java cause I have to change the encoding to arabic windows in the internet explorer each time I request the servlet, and when I do this, every arabic character is displayed correctly. I think it is better to understand the problem and the changes so I can handle the problem if I faced it again in the newer versions of tomcat or Java. I know that being the database in us7ascii is not good, but changing the database encoding each time I face the problem is not the right way. I may change it this time, but I need to understand. thanks - Original Message - From: Benson Margulies [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Sunday, February 27, 2005 12:44 AM Subject: RE: Arabic encoding Oracle's ODBC driver will transcode from the database to UTF-16 based on the databse encoding. If the database is in US7ASCII, this is a destructive process for Arabic. The only alternative I can think of is to do all your database I/O in hex. -Original Message- From: Fadwa Barham [mailto:[EMAIL PROTECTED] Sent: Saturday, February 26, 2005 1:20 PM To: Tomcat Users List Subject: Re: Arabic encoding I use oracle 7 database, and the NLS language is American_America.US7ASCII, and it is not easy to change it to utf-8. Beside, the question is, a servlet work fine on tomcat 4.0.6 why it stopped with the new versions, what changes made to the encoding of tomcat?? do I need tomcat-i18n-ar.jar? and if so, from where to get it? I can't determine where is the problem, is it from the new Java or the new tomcat. thanks in advanced - Original Message - From: Benson Margulies [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, February 23, 2005 11:26 PM Subject: RE: Arabic encoding What database? Do you have the database set up to deliver Unicode, or CP1256, correctly? Note that not all Arabic fits into CP1256, you might really be better off with UTF-8. - 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] - 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: Problems loading external stylesheet in Tomcat
Mieke Banderas wrote: Anyone seen that the first hit of the day on a Tomcat website, doesn't load the external stylesheets? Reloading the page loads the stylesheets also. Can I enforce external stylesheets must be sent with the page somehow? I only seen this is in Safari so far, but it looks like a server problem, I'll put a log on there to see if it's true, but if you recognize this problem, please share your experience. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] I had something similar and it was because I placed the link element outside of the head element in my a JSP file that was included as an header. Check it out , haim . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TC (4), IIS isapi_redirector.dll
Actually, jk2 is officially UNSUPPORTED, so for a new install, I would *highly* recommend using jk_1.2.8.exe instead (unless, and until anyone can say why using a deprecated/abandoned jk2 is better than using the latest jk_1.2.8 - none yet? jk_1.2.9 is in current development as well). The instructions you will find everywhere are outdated and incomplete/duplicative, at least for the latest tools to use: 1) Tomcat 5.5.x 2) jk_1.2.8.exe 3) IIS 5 or 6 You simply install Tomcat (a nice .exe installer should do), and then the jk_1.2.8.exe (a VERY nice installer, which unfortunately does so much automatically, that it makes the dated documentation out there confusing). Now, all you will have to do in IIS is the following: 1) Add an ISAPI filter for .jsp pages to be handled by Tomcat 2) Set your Application Configuration for jakarta (the redirector installed by the jk_1.2.8.exe) and enable it (at least in IIS 5). 3) There are mixed messages as to whether you need to set IIS 6 to use IIS 5 Isolation Mode or not, but you might try without same. That will allow Tomcat examples to work using the foloowing URLs: http://localhost:8080/jsp-examples http://localhost/jsp-examples If you want Tomcat to be able to run webapps outside of $CATALINA_HOME/webapps, you need to edit the server.xml file and the jk's uriworkermap.properties file (the installer above puts it in a folder on the same level as Tomcat 5.5, in its own conf folder, FYI). For example, I actually tried to use the following, but it would not work since the URL is http://localhost/JSP/MYwebapps, and you need to have the JSP In there somewhere...): CONTEXT path=/MYwebapps docbase=C:/Inetpub/wwwroot/JSP/MYwebapps debug=0 reloadable=true / ...even if I added these to my uriworkermap.properties file: /JSP/MYwebapps/*=ajp13w /MYwebapps/*=ajp13w Changing to this worked for me so far (only tested basic JSP pages, nothing fancier and no servlets): CONTEXT path=/JSP docbase=C:/Inetpub/wwwroot/JSP debug=0 reloadable=true / ...and in my uriworkermap.properties file: /JSP/*=ajp13w I had to switch gears, so I haven't done much more so far, but this seems to get things on track. Good luck, -Matt On Mon, 28 Feb 2005, Aris Javier wrote: sorry... forgot .com =) anyway, here's the site again. http://www.shiftomat.com/opensource/ regards aris philippines -Original Message- From: Paul Wallace [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 2:39 PM To: Tomcat Users List Subject: RE: TC (4), IIS isapi_redirector.dll Hi thanks, but that link is dead! Hello! visit this site to automate your integration of tomcat and iis. http://www.shiftomat/opensource download the file and follow the instructions... regards aris -Original Message- From: Paul Wallace [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 2:25 PM To: tomcat-user@jakarta.apache.org Subject: TC (4), IIS isapi_redirector.dll Hi, I am attempting to serve up my pages using IIS, and have Tomcat process my JSPs/Servlets using JK 1.2 Connector. I am following a what I would call a reputable tutorial (http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html) which tells me to look here http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1 .2.0/bin/ for the isapi_redirector.dll, there or under my Win32 directory. I am running XP Pro and do not appear to have a Win 32 directory. In the above page are the various project downloads. Can someone tell me where I am being directed please? I see no effervescence to Isapi, IIS, redirector, JK or anything else of a similar topic. thanks and regards 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] Matthew Kozak Rutgers University-Camden [EMAIL PROTECTED] ** They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -Ben Franklin ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ferad + Paul + ? (was Re: Tomcat For Multiple Users)
My last note did not mention that I added the Context.../ tag directly within the only HOST.../ tag in the 5.5 server.xml file (default, unless jk_1.2.8.exe does anything to it?). I put it directly under the first HOST... entry that points localhost to webapps. I could send you the whole server.xml file, but it's really as simple as the single line added to the location described above (that is, one for each additional docbase/webapp location I would assume). FYI, -Matt Matthew Kozak Rutgers University-Camden [EMAIL PROTECTED] ** They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -Ben Franklin ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuration
Hi, I can´t instance a servlet from a jsp. I have the servlet under web-inf folder, and de jsp as same as web-inf level. I call to servlet with ACTION=ServletInfo after I press the SUBMIT button inside de jsp. it´s ok isn´t it? The result of the browser when I press SUBMIT is the page cannot be found I´m using Tomcat 5.0 Thanks very much Hernán. - 250MB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí
RE: Tomcat clustering and NotSerializableException
As Matt said its probably your applications objects. When we switched to clustering I was surprised at how many of my session objects I needed to add serializable to. But it was easy work and quickl done. HTH - Richard Dale, Matt wrote: I would guess that this means you have an object in your session that does not implement the serializable interface. Ta Matt -Original Message- From: Sng Wee Jim [mailto:[EMAIL PROTECTED] Sent: 28 February 2005 09:21 To: tomcat-user@jakarta.apache.org Subject: Tomcat clustering and NotSerializableException Hi, I am using Tomcat 5.0.28 on MS Win2k server. After I have uncommented the Cluster element in server.xml, I get the following exceptions on the tomcat console for some actions that are using displaytag. Is it a tomcat bug, since org.apache.coyote.tomcat5.CoyoteRequestFacade is involved? (DeltaManager.java:813)- Unable to serialize delta request java.io.NotSerializableException: org.apache.coyote.tomcat5.CoyoteRequestFacade at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java 1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:13 04) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.jav a:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at org.apache.catalina.cluster.session.DeltaRequest$AttributeInfo.writeE xternal(DeltaRequest.java:300) at org.apache.catalina.cluster.session.DeltaRequest.writeExternal(DeltaR equest.java:217) at org.apache.catalina.cluster.session.DeltaManager.unloadDeltaRequest(D eltaManager.java:393) at org.apache.catalina.cluster.session.DeltaManager.requestCompleted(Del taManager.java:782) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationVa lve.java:203) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16 0) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja va:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:683) at java.lang.Thread.run(Thread.java:534) - Jim The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, please notify the sender of this email immediately. You should not copy, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Capco. http://www.capco.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Architecture for application and web server
JBoss just did a free webinar that covered the topic pretty well and had some nice PowerPoint slides. You can access the recorded webcast here: https://jboss.webex.com/jboss/onstage/tool/record/viewrecording1.php?E ventID=136098785 But basically, Apache uses Tomcat's AJP protocol to talk with Tomcat, forwarding responses according to its mapping file and received responses that Apache in turn returns to the browser. HTH - Richard [EMAIL PROTECTED] wrote: Hi, Could anyone let me know the link where I could find the architecture of how tomcat (application server) and apache (web server) interact using the connector. I need a detailed description of how the communication generally takes place between them. Regards. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to make manager available to each virtual host
Hi, I did all the steps that you have suggested me (I used testhost instead of X). But now wonder how to access the newly created virtual testhost through the manager application. Do I need make any modification in the server.xml file? Another question that eagers me is how to configure tomcat in a way that our student's can deploy and undeploy web applications using the manager but without manipulating the applications of the other accounts. Please, can you guide me to set up this server. It will be something very useful in our department. Thanks, Ferad Zyulkyarov. - Original Message - From: alis asma alias [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Monday, February 28, 2005 11:12 AM Subject: Re: how to make manager available to each virtual host Try this: 1. go to catalina_home/conf/Catalina/ 2. open the first host folder . In my case, the first host is localhost. 3. Let's named the first host as localhost and the second host is X. So copy the content of the localhost into the X host. 4. restart the tomcat. 5. Try to access the manager for the X host. I've tried those steps and it worked. --- James T. Studebaker [EMAIL PROTECTED] wrote: Leaves I am running tomcat 5.0.28 on a linux fedora core 2 machine. I have configured virtual hosts for tomcat. I wish to make the manager application available to each vertual host that I have configured so that users can deploy applications to their account. What I did is add a context to each virtual host and defined the varables for the context exactly as they are defined in the context found in the localhost host. I have gotten this approach to work on a local window xp1. installation, however it fails on a remote linux installation. Can anyone give me a hint what needs to be done? Here is the error message I get: HTTP Status 500 - -- -- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.catalina.manager.HTMLManagerServlet or a class it depends on org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase java:540) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118 ) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:705) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:683) java.lang.Thread.run(Thread.java:534) root cause java.lang.ClassNotFoundException: org.apache.catalina.manager.HTMLManagerServlet org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader java:854) org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader java:721) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase java:540) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118 ) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:705) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:683) java.lang.Thread.run(Thread.java:534) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs. -- -- Apache Tomcat/5.0.28 Thank you James T. Studebaker __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail - 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 clustering and NotSerializableException
But do those session objects replicate to the other tomcat instances??? I have been testing session objects that implement java.io.serializable and I have not yet been able to see these objects when fail over occurs to another instance?? Thanks, Randall -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 8:13 AM To: Tomcat Users List Subject: RE: Tomcat clustering and NotSerializableException As Matt said its probably your applications objects. When we switched to clustering I was surprised at how many of my session objects I needed to add serializable to. But it was easy work and quickl done. HTH - Richard Dale, Matt wrote: I would guess that this means you have an object in your session that does not implement the serializable interface. Ta Matt -Original Message- From: Sng Wee Jim [mailto:[EMAIL PROTECTED] Sent: 28 February 2005 09:21 To: tomcat-user@jakarta.apache.org Subject: Tomcat clustering and NotSerializableException Hi, I am using Tomcat 5.0.28 on MS Win2k server. After I have uncommented the Cluster element in server.xml, I get the following exceptions on the tomcat console for some actions that are using displaytag. Is it a tomcat bug, since org.apache.coyote.tomcat5.CoyoteRequestFacade is involved? (DeltaManager.java:813)- Unable to serialize delta request java.io.NotSerializableException: org.apache.coyote.tomcat5.CoyoteRequestFacade at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java 1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:13 04) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.jav a:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at org.apache.catalina.cluster.session.DeltaRequest$AttributeInfo.writeE xternal(DeltaRequest.java:300) at org.apache.catalina.cluster.session.DeltaRequest.writeExternal(DeltaR equest.java:217) at org.apache.catalina.cluster.session.DeltaManager.unloadDeltaRequest(D eltaManager.java:393) at org.apache.catalina.cluster.session.DeltaManager.requestCompleted(Del taManager.java:782) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationVa lve.java:203) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16 0) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja va:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:683) at java.lang.Thread.run(Thread.java:534) - Jim The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, please notify the sender of this email immediately. You should not copy, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Capco. http://www.capco.com/ - 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
Re: Tomcat For Multiple Users
Hi Matt, If possible may I see your server.xml file. Ferad Zyulkyarov - Original Message - From: Matt [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Monday, February 28, 2005 4:30 PM Subject: Ferad + Paul + ? (was Re: Tomcat For Multiple Users) My last note did not mention that I added the Context.../ tag directly within the only HOST.../ tag in the 5.5 server.xml file (default, unless jk_1.2.8.exe does anything to it?). I put it directly under the first HOST... entry that points localhost to webapps. I could send you the whole server.xml file, but it's really as simple as the single line added to the location described above (that is, one for each additional docbase/webapp location I would assume). FYI, -Matt Matthew Kozak Rutgers University-Camden [EMAIL PROTECTED] ** They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -Ben Franklin ** - 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: Configuration
Hi, Yeah servlet classes do get put under yourwebapp/WEB-INF/classes or yourwebapp/WEB-INF/lib if it has been archived (jar). If you need to reference jsp hidden under yourwebapp/WEB-INF/ you need to make references to its path to get to it, modify your mapping in struts-config.xml. I always use the admin webapp as a reference to see how things work since it is a struts based application. aka_sergio --- Hernan Pezzano [EMAIL PROTECTED] wrote: Hi, I can´t instance a servlet from a jsp. I have the servlet under web-inf folder, and de jsp as same as web-inf level. I call to servlet with ACTION=ServletInfo after I press the SUBMIT button inside de jsp. it´s ok isn´t it? The result of the browser when I press SUBMIT is the page cannot be found I´m using Tomcat 5.0 Thanks very much Hernán. - 250MB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí __ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat clustering and NotSerializableException
Randall, I know that session replication works in Tomcat 5.5.7 and it may also works in 5.0.x (no experience). But to get failover restart to work properly (i.e. restarting a failed node) I had to use Tomcat 5.5.7 with a developer-supplied patch. This patch will be available with Tomcat 5.5.8. HTH- Richard Randall Svancara wrote: But do those session objects replicate to the other tomcat instances??? I have been testing session objects that implement java.io.serializable and I have not yet been able to see these objects when fail over occurs to another instance?? Thanks, Randall -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 8:13 AM To: Tomcat Users List Subject: RE: Tomcat clustering and NotSerializableException As Matt said its probably your applications objects. When we switched to clustering I was surprised at how many of my session objects I needed to add serializable to. But it was easy work and quickl done. HTH - Richard Dale, Matt wrote: I would guess that this means you have an object in your session that does not implement the serializable interface. Ta Matt -Original Message- From: Sng Wee Jim [mailto:[EMAIL PROTECTED] Sent: 28 February 2005 09:21 To: tomcat-user@jakarta.apache.org Subject: Tomcat clustering and NotSerializableException Hi, I am using Tomcat 5.0.28 on MS Win2k server. After I have uncommented the Cluster element in server.xml, I get the following exceptions on the tomcat console for some actions that are using displaytag. Is it a tomcat bug, since org.apache.coyote.tomcat5.CoyoteRequestFacade is involved? (DeltaManager.java:813)- Unable to serialize delta request java.io.NotSerializableException: org.apache.coyote.tomcat5.CoyoteRequestFacade at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java 1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:13 04) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.jav a:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at org.apache.catalina.cluster.session.DeltaRequest$AttributeInfo.writeE xternal(DeltaRequest.java:300) at org.apache.catalina.cluster.session.DeltaRequest.writeExternal(DeltaR equest.java:217) at org.apache.catalina.cluster.session.DeltaManager.unloadDeltaRequest(D eltaManager.java:393) at org.apache.catalina.cluster.session.DeltaManager.requestCompleted(Del taManager.java:782) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationVa lve.java:203) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16 0) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja va:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:683) at java.lang.Thread.run(Thread.java:534) - Jim The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, please notify the sender of this email immediately. You should not copy, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Capco. http://www.capco.com/
RE: Question for Tomcat Developers - How to Plug In Encryption for JDBC passwords
Your argument about short duration attacks is optimistic at best. Most systems are so poorly secured and monitored, that breakins aren't detected anywhere near that quickly. Let's face reality here. The only safe way to hide the JDBC information is to have the SECRET (encryption password) not available on the server. Any other method is not secure, it is just obfuscation. The tomcat developers quite rightly are refusing to implement any kind of scheme that isn't correct. Look at the startup sequence for Apache using SSL certificates. You have to type in the password for the private key. If you really want to do this, then you will need to have your application startup have a method that permits an operator to enter in the password for the JDBC information at startup. This means that every time your application is re-started, an operator will have to re-enter the information before the application can run. I'd really suggest you purchase and read Bruce Schneir's book Applied Cryptography. Plan on spending a several evenings with it. Just for grins, here's a link to a Javadoc for a crypto system that I designed for a shopping cart. The overriding design goal was to ensure that credit card data would not be revealed even if the database were compromised. I don't see any shortcomings in it, but I haven't opened it up to public review before. http://www.mhsoftware.com/~gsexton/Crypto.html George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Edmon Begoli [mailto:[EMAIL PROTECTED] Sent: Sunday, February 27, 2005 1:15 AM To: Tomcat Users List Subject: Re: Question for Tomcat Developers - How to Plug In Encryption for JDBC passwords Please do not start the flame war. Check what I have to say. I am really not a beginner in this area. First, feature I mentioned is commonly implemented on every major application server platform that I know- JBoss, WebSphere, WebLogic, Oracle AS. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat clustering and NotSerializableException
ThanksI will look at 5.5.8. I know it is in alpha status right now, but I am just testing and by the time I deploy my application, 5.5.8 will probably be stable. Thanks Randall -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 8:55 AM To: Tomcat Users List Subject: RE: Tomcat clustering and NotSerializableException Randall, I know that session replication works in Tomcat 5.5.7 and it may also works in 5.0.x (no experience). But to get failover restart to work properly (i.e. restarting a failed node) I had to use Tomcat 5.5.7 with a developer-supplied patch. This patch will be available with Tomcat 5.5.8. HTH- Richard Randall Svancara wrote: But do those session objects replicate to the other tomcat instances??? I have been testing session objects that implement java.io.serializable and I have not yet been able to see these objects when fail over occurs to another instance?? Thanks, Randall -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 8:13 AM To: Tomcat Users List Subject: RE: Tomcat clustering and NotSerializableException As Matt said its probably your applications objects. When we switched to clustering I was surprised at how many of my session objects I needed to add serializable to. But it was easy work and quickl done. HTH - Richard Dale, Matt wrote: I would guess that this means you have an object in your session that does not implement the serializable interface. Ta Matt -Original Message- From: Sng Wee Jim [mailto:[EMAIL PROTECTED] Sent: 28 February 2005 09:21 To: tomcat-user@jakarta.apache.org Subject: Tomcat clustering and NotSerializableException Hi, I am using Tomcat 5.0.28 on MS Win2k server. After I have uncommented the Cluster element in server.xml, I get the following exceptions on the tomcat console for some actions that are using displaytag. Is it a tomcat bug, since org.apache.coyote.tomcat5.CoyoteRequestFacade is involved? (DeltaManager.java:813)- Unable to serialize delta request java.io.NotSerializableException: org.apache.coyote.tomcat5.CoyoteRequestFacade at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java 1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:13 04) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.jav a:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at org.apache.catalina.cluster.session.DeltaRequest$AttributeInfo.writeE xternal(DeltaRequest.java:300) at org.apache.catalina.cluster.session.DeltaRequest.writeExternal(DeltaR equest.java:217) at org.apache.catalina.cluster.session.DeltaManager.unloadDeltaRequest(D eltaManager.java:393) at org.apache.catalina.cluster.session.DeltaManager.requestCompleted(Del taManager.java:782) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationVa lve.java:203) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16 0) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja va:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:683) at java.lang.Thread.run(Thread.java:534) - Jim The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized.
Re: TC (4), IIS isapi_redirector.dll
Sorry, I 'm newbie in IIS administration. And I don't know what do you mean by : 1) Add an ISAPI filter for .jsp pages to be handled by Tomcat or 2) Set your Application Configuration for jakarta Someone can help me ? I'm using Windows Server 2003/IIS6 with tomcat 5.0.28. Do I need to used the isolation mode IIS5 ? Is there any conguration to do in windows ? THX On Mon, 28 Feb 2005 09:24:11 -0500 (EST), Matt [EMAIL PROTECTED] wrote: Actually, jk2 is officially UNSUPPORTED, so for a new install, I would *highly* recommend using jk_1.2.8.exe instead (unless, and until anyone can say why using a deprecated/abandoned jk2 is better than using the latest jk_1.2.8 - none yet? jk_1.2.9 is in current development as well). The instructions you will find everywhere are outdated and incomplete/duplicative, at least for the latest tools to use: 1) Tomcat 5.5.x 2) jk_1.2.8.exe 3) IIS 5 or 6 You simply install Tomcat (a nice .exe installer should do), and then the jk_1.2.8.exe (a VERY nice installer, which unfortunately does so much automatically, that it makes the dated documentation out there confusing). Now, all you will have to do in IIS is the following: 1) Add an ISAPI filter for .jsp pages to be handled by Tomcat 2) Set your Application Configuration for jakarta (the redirector installed by the jk_1.2.8.exe) and enable it (at least in IIS 5). 3) There are mixed messages as to whether you need to set IIS 6 to use IIS 5 Isolation Mode or not, but you might try without same. That will allow Tomcat examples to work using the foloowing URLs: http://localhost:8080/jsp-examples http://localhost/jsp-examples If you want Tomcat to be able to run webapps outside of $CATALINA_HOME/webapps, you need to edit the server.xml file and the jk's uriworkermap.properties file (the installer above puts it in a folder on the same level as Tomcat 5.5, in its own conf folder, FYI). For example, I actually tried to use the following, but it would not work since the URL is http://localhost/JSP/MYwebapps, and you need to have the JSP In there somewhere...): CONTEXT path=/MYwebapps docbase=C:/Inetpub/wwwroot/JSP/MYwebapps debug=0 reloadable=true / ...even if I added these to my uriworkermap.properties file: /JSP/MYwebapps/*=ajp13w /MYwebapps/*=ajp13w Changing to this worked for me so far (only tested basic JSP pages, nothing fancier and no servlets): CONTEXT path=/JSP docbase=C:/Inetpub/wwwroot/JSP debug=0 reloadable=true / ...and in my uriworkermap.properties file: /JSP/*=ajp13w I had to switch gears, so I haven't done much more so far, but this seems to get things on track. Good luck, -Matt On Mon, 28 Feb 2005, Aris Javier wrote: sorry... forgot .com =) anyway, here's the site again. http://www.shiftomat.com/opensource/ regards aris philippines -Original Message- From: Paul Wallace [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 2:39 PM To: Tomcat Users List Subject: RE: TC (4), IIS isapi_redirector.dll Hi thanks, but that link is dead! Hello! visit this site to automate your integration of tomcat and iis. http://www.shiftomat/opensource download the file and follow the instructions... regards aris -Original Message- From: Paul Wallace [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 2:25 PM To: tomcat-user@jakarta.apache.org Subject: TC (4), IIS isapi_redirector.dll Hi, I am attempting to serve up my pages using IIS, and have Tomcat process my JSPs/Servlets using JK 1.2 Connector. I am following a what I would call a reputable tutorial (http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html) which tells me to look here http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1 .2.0/bin/ for the isapi_redirector.dll, there or under my Win32 directory. I am running XP Pro and do not appear to have a Win 32 directory. In the above page are the various project downloads. Can someone tell me where I am being directed please? I see no effervescence to Isapi, IIS, redirector, JK or anything else of a similar topic. thanks and regards 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] Matthew Kozak Rutgers University-Camden [EMAIL PROTECTED] ** They that can give up essential liberty to obtain a little temporary safety deserve neither
Re: TC (4), IIS isapi_redirector.dll
If you're not proficient with IIS, and are not married to it for any other reason, I'd HIGHLY recommend Apache - if you have to learn something, then learn something worthwhile!!! ;^) Otherwise, those two steps are likely to be found in IIS docs, but at least one of them is a step in the various (although otherwise outdated) documents all over the net re: Tomcat + IIS. The following is a single line URL (in case your emailer breaks it) you can copy and paste into your browser: http://web.archive.org/web/20040324133706/http://www.rit.edu/~ack5504/tomcat-iis6-howto/tomcat-iis6-howto.html I am not in front of this system myself until late tonight or tomorrow, or I'd send specifics myself, but I also hope to make a doc with screenshots that covers these obviously desireable and up-to-date steps. As for IIS 6 in IIS 5 Isolation Mode - you won't get a straight answer, since it seems necessary fro some but not everyone. Try it yourself without it, and if it doesn't work, then try turning this on in IIS 6 and if that works, then voila! Thanks, -Matt On Mon, 28 Feb 2005, Fadil wrote: Sorry, I 'm newbie in IIS administration. And I don't know what do you mean by : 1) Add an ISAPI filter for .jsp pages to be handled by Tomcat or 2) Set your Application Configuration for jakarta Someone can help me ? I'm using Windows Server 2003/IIS6 with tomcat 5.0.28. Do I need to used the isolation mode IIS5 ? Is there any conguration to do in windows ? THX On Mon, 28 Feb 2005 09:24:11 -0500 (EST), Matt [EMAIL PROTECTED] wrote: Actually, jk2 is officially UNSUPPORTED, so for a new install, I would *highly* recommend using jk_1.2.8.exe instead (unless, and until anyone can say why using a deprecated/abandoned jk2 is better than using the latest jk_1.2.8 - none yet? jk_1.2.9 is in current development as well). The instructions you will find everywhere are outdated and incomplete/duplicative, at least for the latest tools to use: 1) Tomcat 5.5.x 2) jk_1.2.8.exe 3) IIS 5 or 6 You simply install Tomcat (a nice .exe installer should do), and then the jk_1.2.8.exe (a VERY nice installer, which unfortunately does so much automatically, that it makes the dated documentation out there confusing). Now, all you will have to do in IIS is the following: 1) Add an ISAPI filter for .jsp pages to be handled by Tomcat 2) Set your Application Configuration for jakarta (the redirector installed by the jk_1.2.8.exe) and enable it (at least in IIS 5). 3) There are mixed messages as to whether you need to set IIS 6 to use IIS 5 Isolation Mode or not, but you might try without same. That will allow Tomcat examples to work using the foloowing URLs: http://localhost:8080/jsp-examples http://localhost/jsp-examples If you want Tomcat to be able to run webapps outside of $CATALINA_HOME/webapps, you need to edit the server.xml file and the jk's uriworkermap.properties file (the installer above puts it in a folder on the same level as Tomcat 5.5, in its own conf folder, FYI). For example, I actually tried to use the following, but it would not work since the URL is http://localhost/JSP/MYwebapps, and you need to have the JSP In there somewhere...): CONTEXT path=/MYwebapps docbase=C:/Inetpub/wwwroot/JSP/MYwebapps debug=0 reloadable=true / ...even if I added these to my uriworkermap.properties file: /JSP/MYwebapps/*=ajp13w /MYwebapps/*=ajp13w Changing to this worked for me so far (only tested basic JSP pages, nothing fancier and no servlets): CONTEXT path=/JSP docbase=C:/Inetpub/wwwroot/JSP debug=0 reloadable=true / ...and in my uriworkermap.properties file: /JSP/*=ajp13w I had to switch gears, so I haven't done much more so far, but this seems to get things on track. Good luck, -Matt On Mon, 28 Feb 2005, Aris Javier wrote: sorry... forgot .com =) anyway, here's the site again. http://www.shiftomat.com/opensource/ regards aris philippines -Original Message- From: Paul Wallace [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 2:39 PM To: Tomcat Users List Subject: RE: TC (4), IIS isapi_redirector.dll Hi thanks, but that link is dead! Hello! visit this site to automate your integration of tomcat and iis. http://www.shiftomat/opensource download the file and follow the instructions... regards aris -Original Message- From: Paul Wallace [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 2:25 PM To: tomcat-user@jakarta.apache.org Subject: TC (4), IIS isapi_redirector.dll Hi, I am attempting to serve up my pages using IIS, and have Tomcat process my JSPs/Servlets using JK 1.2 Connector. I am following a what I would call a reputable tutorial (http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html) which tells me to look here
Re: TC (4), IIS isapi_redirector.dll
Thanks a lot I'll test this ASAP. Unfortunately, I must setup IIS6 / Tomcat because it's my production environement and I've no choice : I don't want to learn dotnet !! I'm a beginner J2EE developper. On Mon, 28 Feb 2005 11:36:25 -0500 (EST), Matt [EMAIL PROTECTED] wrote: If you're not proficient with IIS, and are not married to it for any other reason, I'd HIGHLY recommend Apache - if you have to learn something, then learn something worthwhile!!! ;^) Otherwise, those two steps are likely to be found in IIS docs, but at least one of them is a step in the various (although otherwise outdated) documents all over the net re: Tomcat + IIS. The following is a single line URL (in case your emailer breaks it) you can copy and paste into your browser: http://web.archive.org/web/20040324133706/http://www.rit.edu/~ack5504/tomcat-iis6-howto/tomcat-iis6-howto.html I am not in front of this system myself until late tonight or tomorrow, or I'd send specifics myself, but I also hope to make a doc with screenshots that covers these obviously desireable and up-to-date steps. As for IIS 6 in IIS 5 Isolation Mode - you won't get a straight answer, since it seems necessary fro some but not everyone. Try it yourself without it, and if it doesn't work, then try turning this on in IIS 6 and if that works, then voila! Thanks, -Matt On Mon, 28 Feb 2005, Fadil wrote: Sorry, I 'm newbie in IIS administration. And I don't know what do you mean by : 1) Add an ISAPI filter for .jsp pages to be handled by Tomcat or 2) Set your Application Configuration for jakarta Someone can help me ? I'm using Windows Server 2003/IIS6 with tomcat 5.0.28. Do I need to used the isolation mode IIS5 ? Is there any conguration to do in windows ? THX On Mon, 28 Feb 2005 09:24:11 -0500 (EST), Matt [EMAIL PROTECTED] wrote: Actually, jk2 is officially UNSUPPORTED, so for a new install, I would *highly* recommend using jk_1.2.8.exe instead (unless, and until anyone can say why using a deprecated/abandoned jk2 is better than using the latest jk_1.2.8 - none yet? jk_1.2.9 is in current development as well). The instructions you will find everywhere are outdated and incomplete/duplicative, at least for the latest tools to use: 1) Tomcat 5.5.x 2) jk_1.2.8.exe 3) IIS 5 or 6 You simply install Tomcat (a nice .exe installer should do), and then the jk_1.2.8.exe (a VERY nice installer, which unfortunately does so much automatically, that it makes the dated documentation out there confusing). Now, all you will have to do in IIS is the following: 1) Add an ISAPI filter for .jsp pages to be handled by Tomcat 2) Set your Application Configuration for jakarta (the redirector installed by the jk_1.2.8.exe) and enable it (at least in IIS 5). 3) There are mixed messages as to whether you need to set IIS 6 to use IIS 5 Isolation Mode or not, but you might try without same. That will allow Tomcat examples to work using the foloowing URLs: http://localhost:8080/jsp-examples http://localhost/jsp-examples If you want Tomcat to be able to run webapps outside of $CATALINA_HOME/webapps, you need to edit the server.xml file and the jk's uriworkermap.properties file (the installer above puts it in a folder on the same level as Tomcat 5.5, in its own conf folder, FYI). For example, I actually tried to use the following, but it would not work since the URL is http://localhost/JSP/MYwebapps, and you need to have the JSP In there somewhere...): CONTEXT path=/MYwebapps docbase=C:/Inetpub/wwwroot/JSP/MYwebapps debug=0 reloadable=true / ...even if I added these to my uriworkermap.properties file: /JSP/MYwebapps/*=ajp13w /MYwebapps/*=ajp13w Changing to this worked for me so far (only tested basic JSP pages, nothing fancier and no servlets): CONTEXT path=/JSP docbase=C:/Inetpub/wwwroot/JSP debug=0 reloadable=true / ...and in my uriworkermap.properties file: /JSP/*=ajp13w I had to switch gears, so I haven't done much more so far, but this seems to get things on track. Good luck, -Matt On Mon, 28 Feb 2005, Aris Javier wrote: sorry... forgot .com =) anyway, here's the site again. http://www.shiftomat.com/opensource/ regards aris philippines -Original Message- From: Paul Wallace [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 2:39 PM To: Tomcat Users List Subject: RE: TC (4), IIS isapi_redirector.dll Hi thanks, but that link is dead! Hello! visit this site to automate your integration of tomcat and iis. http://www.shiftomat/opensource download the file and follow the instructions... regards aris -Original Message- From: Paul Wallace [mailto:[EMAIL PROTECTED] Sent: Monday, February 28,
Re: TC (4), IIS isapi_redirector.dll
Something else you may want to look into (and I'd LOVE to hear feedback on from this list?) is the following: http://jspisapi.neurospeech.com/ We are now using this on our production IIS 6 server, mostly due to the conflciting, or at least the lack of concise and authoratative, docs out there (and mostly due to timing - this needed to be setup ASAP for a professor). I don't directly maintain the IIS 6 server, and its admin got antsy waiting for us to iron-out the confugration issues (and dreading future changes taking as much effort, like SSL support) with Tomcat and went with this instead ($50). Was this wise? Anyone? I'm curious (and not in front of this system now either) if it uses jk2 or jk and what version, and anything else it may be doing. Thanks, -Matt On Mon, 28 Feb 2005, Fadil wrote: Thanks a lot I'll test this ASAP. Unfortunately, I must setup IIS6 / Tomcat because it's my production environement and I've no choice : I don't want to learn dotnet !! I'm a beginner J2EE developper. On Mon, 28 Feb 2005 11:36:25 -0500 (EST), Matt [EMAIL PROTECTED] wrote: If you're not proficient with IIS, and are not married to it for any other reason, I'd HIGHLY recommend Apache - if you have to learn something, then learn something worthwhile!!! ;^) Otherwise, those two steps are likely to be found in IIS docs, but at least one of them is a step in the various (although otherwise outdated) documents all over the net re: Tomcat + IIS. The following is a single line URL (in case your emailer breaks it) you can copy and paste into your browser: http://web.archive.org/web/20040324133706/http://www.rit.edu/~ack5504/tomcat-iis6-howto/tomcat-iis6-howto.html I am not in front of this system myself until late tonight or tomorrow, or I'd send specifics myself, but I also hope to make a doc with screenshots that covers these obviously desireable and up-to-date steps. As for IIS 6 in IIS 5 Isolation Mode - you won't get a straight answer, since it seems necessary fro some but not everyone. Try it yourself without it, and if it doesn't work, then try turning this on in IIS 6 and if that works, then voila! Thanks, -Matt On Mon, 28 Feb 2005, Fadil wrote: Sorry, I 'm newbie in IIS administration. And I don't know what do you mean by : 1) Add an ISAPI filter for .jsp pages to be handled by Tomcat or 2) Set your Application Configuration for jakarta Someone can help me ? I'm using Windows Server 2003/IIS6 with tomcat 5.0.28. Do I need to used the isolation mode IIS5 ? Is there any conguration to do in windows ? THX On Mon, 28 Feb 2005 09:24:11 -0500 (EST), Matt [EMAIL PROTECTED] wrote: Actually, jk2 is officially UNSUPPORTED, so for a new install, I would *highly* recommend using jk_1.2.8.exe instead (unless, and until anyone can say why using a deprecated/abandoned jk2 is better than using the latest jk_1.2.8 - none yet? jk_1.2.9 is in current development as well). The instructions you will find everywhere are outdated and incomplete/duplicative, at least for the latest tools to use: 1) Tomcat 5.5.x 2) jk_1.2.8.exe 3) IIS 5 or 6 You simply install Tomcat (a nice .exe installer should do), and then the jk_1.2.8.exe (a VERY nice installer, which unfortunately does so much automatically, that it makes the dated documentation out there confusing). Now, all you will have to do in IIS is the following: 1) Add an ISAPI filter for .jsp pages to be handled by Tomcat 2) Set your Application Configuration for jakarta (the redirector installed by the jk_1.2.8.exe) and enable it (at least in IIS 5). 3) There are mixed messages as to whether you need to set IIS 6 to use IIS 5 Isolation Mode or not, but you might try without same. That will allow Tomcat examples to work using the foloowing URLs: http://localhost:8080/jsp-examples http://localhost/jsp-examples If you want Tomcat to be able to run webapps outside of $CATALINA_HOME/webapps, you need to edit the server.xml file and the jk's uriworkermap.properties file (the installer above puts it in a folder on the same level as Tomcat 5.5, in its own conf folder, FYI). For example, I actually tried to use the following, but it would not work since the URL is http://localhost/JSP/MYwebapps, and you need to have the JSP In there somewhere...): CONTEXT path=/MYwebapps docbase=C:/Inetpub/wwwroot/JSP/MYwebapps debug=0 reloadable=true / ...even if I added these to my uriworkermap.properties file: /JSP/MYwebapps/*=ajp13w /MYwebapps/*=ajp13w Changing to this worked for me so far (only tested basic JSP pages, nothing fancier and no servlets): CONTEXT path=/JSP docbase=C:/Inetpub/wwwroot/JSP debug=0 reloadable=true / ...and in my uriworkermap.properties file:
PDFs with IE - a fix
Sorry for the cross-post, but if anyone is having issues serving up pdfs to IE users over ssl, here is a fix for the browser: === [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings] BypassSSLNoCacheCheck=dword:0001 === It took us a few days to find this, so hopefully this will help someone else get it taken care of sooner. :-) Larry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
skipping state transfer. No members active in cluster group
I have a problem in my tomcat logs. I am using tomcat 5.5.7 and whenever I start up tomcat for the first time, I receive this error message. INFO: Manager[/testapp], skipping state transfer. No members active in cluster group. After the delta manager starts, I receive this error. Should I be concerned about this I have set distributable/ in my web.xml. My server.xml has all the clustering stuff enable. I have provided it below!! I have started up ethereal and I can see the multicast packets broadcasting. The data portion contains the ip address of the server. Everything looks like it should work. Randall Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=false notifyListenersOnReplication=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=224.0.0.3 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000 mcastBindAddress=10.111.22.163/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=10.111.22.163 tcpListenPort=4002 tcpSelectorTimeout=200 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled ackTimeout=15000/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt; / Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen/ watchEnabled=false/ /Cluster - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat clustering and NotSerializableException
These objects will replicate to other instances when ALL objects in the session are serializable. I suspect that nothing will be replicated if there is non serializable objects in there. Ta Matt -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: 28 February 2005 15:14 To: Tomcat Users List Subject: RE: Tomcat clustering and NotSerializableException But do those session objects replicate to the other tomcat instances??? I have been testing session objects that implement java.io.serializable and I have not yet been able to see these objects when fail over occurs to another instance?? Thanks, Randall -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 8:13 AM To: Tomcat Users List Subject: RE: Tomcat clustering and NotSerializableException As Matt said its probably your applications objects. When we switched to clustering I was surprised at how many of my session objects I needed to add serializable to. But it was easy work and quickl done. HTH - Richard Dale, Matt wrote: I would guess that this means you have an object in your session that does not implement the serializable interface. Ta Matt -Original Message- From: Sng Wee Jim [mailto:[EMAIL PROTECTED] Sent: 28 February 2005 09:21 To: tomcat-user@jakarta.apache.org Subject: Tomcat clustering and NotSerializableException Hi, I am using Tomcat 5.0.28 on MS Win2k server. After I have uncommented the Cluster element in server.xml, I get the following exceptions on the tomcat console for some actions that are using displaytag. Is it a tomcat bug, since org.apache.coyote.tomcat5.CoyoteRequestFacade is involved? (DeltaManager.java:813)- Unable to serialize delta request java.io.NotSerializableException: org.apache.coyote.tomcat5.CoyoteRequestFacade at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java 1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:13 04) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.jav a:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at org.apache.catalina.cluster.session.DeltaRequest$AttributeInfo.writeE xternal(DeltaRequest.java:300) at org.apache.catalina.cluster.session.DeltaRequest.writeExternal(DeltaR equest.java:217) at org.apache.catalina.cluster.session.DeltaManager.unloadDeltaRequest(D eltaManager.java:393) at org.apache.catalina.cluster.session.DeltaManager.requestCompleted(Del taManager.java:782) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationVa lve.java:203) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16 0) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja va:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:683) at java.lang.Thread.run(Thread.java:534) - Jim The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, please notify the sender of this email immediately. You should not copy, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Capco. http://www.capco.com/
RE: Tomcat clustering and NotSerializableException
well apparently my problem is that my cluster is not working properly. I can see the multicast broadcast messages on my network, however the objects do not seem to be replicating. The only thing I have in my logs is: INFO: Manager[/testapp], skipping state transfer. No members active in cluster group. This displays after the delta manager starts in the catalina.out file. If anyone has any good ideas on why this is happening for me, I would be willing to try anything at this point. My NIC supports multicast. I have set the distributable element in the web.xml. Thanks, Randall -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 11:04 AM To: Tomcat Users List Subject: RE: Tomcat clustering and NotSerializableException These objects will replicate to other instances when ALL objects in the session are serializable. I suspect that nothing will be replicated if there is non serializable objects in there. Ta Matt -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: 28 February 2005 15:14 To: Tomcat Users List Subject: RE: Tomcat clustering and NotSerializableException But do those session objects replicate to the other tomcat instances??? I have been testing session objects that implement java.io.serializable and I have not yet been able to see these objects when fail over occurs to another instance?? Thanks, Randall -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 8:13 AM To: Tomcat Users List Subject: RE: Tomcat clustering and NotSerializableException As Matt said its probably your applications objects. When we switched to clustering I was surprised at how many of my session objects I needed to add serializable to. But it was easy work and quickl done. HTH - Richard Dale, Matt wrote: I would guess that this means you have an object in your session that does not implement the serializable interface. Ta Matt -Original Message- From: Sng Wee Jim [mailto:[EMAIL PROTECTED] Sent: 28 February 2005 09:21 To: tomcat-user@jakarta.apache.org Subject: Tomcat clustering and NotSerializableException Hi, I am using Tomcat 5.0.28 on MS Win2k server. After I have uncommented the Cluster element in server.xml, I get the following exceptions on the tomcat console for some actions that are using displaytag. Is it a tomcat bug, since org.apache.coyote.tomcat5.CoyoteRequestFacade is involved? (DeltaManager.java:813)- Unable to serialize delta request java.io.NotSerializableException: org.apache.coyote.tomcat5.CoyoteRequestFacade at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java 1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:13 04) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.jav a:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at org.apache.catalina.cluster.session.DeltaRequest$AttributeInfo.writeE xternal(DeltaRequest.java:300) at org.apache.catalina.cluster.session.DeltaRequest.writeExternal(DeltaR equest.java:217) at org.apache.catalina.cluster.session.DeltaManager.unloadDeltaRequest(D eltaManager.java:393) at org.apache.catalina.cluster.session.DeltaManager.requestCompleted(Del taManager.java:782) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationVa lve.java:203) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16 0) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja va:675) at
Re: Question for Tomcat Developers - How to Plug In Encryption for JDBC passwords
George Sexton wrote: If you really want to do this, then you will need to have your application startup have a method that permits an operator to enter in the password for the JDBC information at startup. Whatever - the key is to be able to insert an application-defined processing step between the reading of the DBCP properties, and sending the username and password to the JDBC driver. This additional step could be: * nothing (cleartext username and password) * trivial decryption of a trivially encrypted string (not cryptographically safe, but Dilbert's-boss-safe). * True encrypted strings that require a password-protected opening of a private-key file to decrypt. * True password-protected external storage of encrypted data. Whatever. The key is to be able to do a two-way processing of the username, password, and other sensitive data (even the JDBC url). A tool to encode the data into the JDBC properties, and a code callback to decode the properties when reading them from the file. How easy is this to do? Where would such a hook go? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Startup
From: Mieke Banderas [mailto:[EMAIL PROTECTED] Subject: Re: Startup And how much faster is Tomcat 5.5.7 compared to old Tomcat 3.2/3.3? I don't know of any direct comparisons between 5.5.x and 3.3.x, probably because no one really cares much about 3.3.x anymore. I'd suggest reading Peter Lin's report: http://cvs.apache.org/~woolfel/benchmark_summary.doc This has a few comments about 3.3.x, albeit no numbers, since the study focused on current levels vs. Apache httpd. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need access to classes outside Tomcat for JSPs
Classpath problem. Really frustrating. I'm trying to duplicate a setup on system A to system B and can't get it working. My problem is when I access the JSP page, Tomcat complains of a ClassNotFound exception. This happens with all of my custom classes. If I create a simple JSP page with no custom classes the JSP compiles fine. When I manually execute the class via java com.xxx.MyClass it responds appropriately (my environment's CLASSPATH includes the custom library paths). My custom classes live outside of the Tomcat directory (see below) because I use these classes in other non-web based applications, so they need to be available system wide. I have melted my brain today trying to figure out why system A works with this configuration but system B gives me the ClassNotFound exception. I have even copied my entire Tomcat directory from system A to system B with no change. I thought perhaps I was starting the service with additional parameters but I don't see any in the registry settings. Does anyone have an educated guess as to why I can't get this thing to work the way it's working on the other system and/or how I can get this working with my custom classes OUTSIDE of Tomcat. Win2K SP4 Tomcat v5.0.27 as NT Service e:\java\tomcat e:\java\sdk (JDK 1.4.2) e:\java\library\custom\ (custom libraries) e:\java\library\basic (libraries from other sources) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Recommendation for applet signing?
Hello All, We have a need to sign an applet for a project, but would like to test a signed applet first. Can anyone recommend a reasonably priced well reputable signing agent that you may have good experience in dealing with? Thanks, Glenn -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. http://www.sng.ecs.soton.ac.uk/mailscanner/ Configuration by Glenn Parsons dnsadmin-at-1bigthink.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is it possible to use a parameter other than JSESSIONID to maintain session?
Hi, I'm currently working on a server application using Tomcat, and I've run into a snag. The clients for the application are custom HTTP clients (a provider's custom client that won't be changing on our behalf) that do not have the ability to persist the JSESSIONID in the request. However, there is already a unique parameter (let's call it CUSTOMPARAM) that they do send with every POST to us. I still want to use Tomcat's sessioning, but I need it to do two things: 1. Use the CUSTOMPARAM as the unique session parameter. 2. Not rewrite the parameter in the response, leaving that control to my application. Is there a way to just tell Tomcat in the configuration that I want it to use a different parameter to identify the session, and that I don't need it to rewrite it in my response? I've been through the docs, a book on Tomcat 5, and the mailing list archives, and I haven't been able to find anything. Thanks, Garth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it possible to use a parameter other than JSESSIONID to maintain session?
You *might* be able to recompile tomcat with only changing: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/Globals.java -Tim Garth Patil wrote: Hi, I'm currently working on a server application using Tomcat, and I've run into a snag. The clients for the application are custom HTTP clients (a provider's custom client that won't be changing on our behalf) that do not have the ability to persist the JSESSIONID in the request. However, there is already a unique parameter (let's call it CUSTOMPARAM) that they do send with every POST to us. I still want to use Tomcat's sessioning, but I need it to do two things: 1. Use the CUSTOMPARAM as the unique session parameter. 2. Not rewrite the parameter in the response, leaving that control to my application. Is there a way to just tell Tomcat in the configuration that I want it to use a different parameter to identify the session, and that I don't need it to rewrite it in my response? I've been through the docs, a book on Tomcat 5, and the mailing list archives, and I haven't been able to find anything. Thanks, Garth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Installation problems on Windows
I hope this message makes it to the list (my Welcome email didn't include the examples of the proper email command syntax, only the headings...?) The Tomcat 5.x binary installer for Windows hangs at the point where it says it's using the dvm.dll. This is true under all the following circumstances: -Windows XP Pro, SP2 -JRE 1.4.2_06 (picks client/dvm.dll) -JDK 1.4.2_07 (picks client/dvm.dll or server/dvm.dll, seemingly at random) -JRE 1.4.2_07 (picks client/dvm.dll) -fresh install (with reboot) of each of the JDKs/JREs above -Tomcat 5.0.28 (should be okay with 1.4.x, right?) -Tomcat 5.5.4 -Tomcat 5.5.7 -leave the partially installed Tomcat directories and registry entries intact on subsequent attempts -remove the Tomcat directories and registry entries prior to subsequent attempts -allow Tomcat to use default installation directory (C:\Program Files\Apache Software Foundation\...) -TinyFirewall enabled, and disabled I found a couple other notes in the list archive from people with the same problem but didn't see the resolution. Other Java-related or OpenSource software installed at the time of the Tomcat install attempt: -SunOne (J2EE 1.4 SDK, not running) -WSAD 5.1.2 (not running) -Apache 2.x (service not running) -MySQL (service not running) -CVSNT (running) -Oracle 9i client (includes 1.3 JRE) Any help is much appreciated. S Henty - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installation problems on Windows
On Mon, 28 Feb 2005 17:26:31 -0800, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I hope this message makes it to the list (my Welcome email didn't include the examples of the proper email command syntax, only the headings...?) The Tomcat 5.x binary installer for Windows hangs at the point where it says it's using the dvm.dll. This is true under all the following circumstances: -Windows XP Pro, SP2 -JRE 1.4.2_06 (picks client/dvm.dll) -JDK 1.4.2_07 (picks client/dvm.dll or server/dvm.dll, seemingly at random) -JRE 1.4.2_07 (picks client/dvm.dll) -fresh install (with reboot) of each of the JDKs/JREs above -Tomcat 5.0.28 (should be okay with 1.4.x, right?) -Tomcat 5.5.4 -Tomcat 5.5.7 -leave the partially installed Tomcat directories and registry entries intact on subsequent attempts -remove the Tomcat directories and registry entries prior to subsequent attempts -allow Tomcat to use default installation directory (C:\Program Files\Apache Software Foundation\...) -TinyFirewall enabled, and disabled 1. dvm.dll do you mean jvm.dll? Thought it was just a typo at first but it's consistent through your email. 2. Try installing to a directory path without spaces, Windows is really tempermental about such things. 3. Ditch the binary installer and just download the .zip, if need be a Windows service can be easily installed using the batch file that comes with the .zip 4. Try explicitly setting your JAVA_HOME environment variable to point where you want it. One of those should set you right. Cheers. -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to make manager available to each virtual host
Bingo!! That did it. Thanks. Thank you James T. Studebaker - Original Message - From: alis asma alias [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Monday, February 28, 2005 4:12 AM Subject: Re: how to make manager available to each virtual host Try this: 1. go to catalina_home/conf/Catalina/ 2. open the first host folder . In my case, the first host is localhost. 3. Let's named the first host as localhost and the second host is X. So copy the content of the localhost into the X host. 4. restart the tomcat. 5. Try to access the manager for the X host. I've tried those steps and it worked. --- James T. Studebaker [EMAIL PROTECTED] wrote: Leaves I am running tomcat 5.0.28 on a linux fedora core 2 machine. I have configured virtual hosts for tomcat. I wish to make the manager application available to each vertual host that I have configured so that users can deploy applications to their account. What I did is add a context to each virtual host and defined the varables for the context exactly as they are defined in the context found in the localhost host. I have gotten this approach to work on a local window xp1. installation, however it fails on a remote linux installation. Can anyone give me a hint what needs to be done? Here is the error message I get: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.catalina.manager.HTMLManagerServlet or a class it depends on org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:540) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118 ) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:705) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:683) java.lang.Thread.run(Thread.java:534) root cause java.lang.ClassNotFoundException: org.apache.catalina.manager.HTMLManagerServlet org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader .java:854) org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader .java:721) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:540) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118 ) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:705) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:683) java.lang.Thread.run(Thread.java:534) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs. Apache Tomcat/5.0.28 Thank you James T. Studebaker __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail - 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: errors with IE
Go to http://www.download.com and get Spybot or Adaware, either can remove mysearch, and any other spyware that IE has so lovingly installed into your computer. After you remove the spyware, switch to Firefox to prevent ActiveX from installing any additional malware (or worse) into your computer. deepak suldhal wrote: if I type the http://localhost:8080/ I get tomcat page. but If I pull the same from the address bar I get mysearch default search engine through spyware. How do I get rid of spyware. I keep getting everytime I try to open a page. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat clustering and NotSerializableException
But the stacktrace says java.io.NotSerializableException: org.apache.coyote.tomcat5.CoyoteRequestFacade at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:13 32) at Since CoyoteRequestFacade is a tomcat class, I assume it has to be fixed by the tomcat team. Unless the actual object that is not Serializable not CoyoteRequestFacade is available somewhere else... - Jim -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 11:13 PM To: Tomcat Users List Subject: RE: Tomcat clustering and NotSerializableException As Matt said its probably your applications objects. When we switched to clustering I was surprised at how many of my session objects I needed to add serializable to. But it was easy work and quickl done. HTH - Richard Dale, Matt wrote: I would guess that this means you have an object in your session that does not implement the serializable interface. Ta Matt -Original Message- From: Sng Wee Jim [mailto:[EMAIL PROTECTED] Sent: 28 February 2005 09:21 To: tomcat-user@jakarta.apache.org Subject: Tomcat clustering and NotSerializableException Hi, I am using Tomcat 5.0.28 on MS Win2k server. After I have uncommented the Cluster element in server.xml, I get the following exceptions on the tomcat console for some actions that are using displaytag. Is it a tomcat bug, since org.apache.coyote.tomcat5.CoyoteRequestFacade is involved? (DeltaManager.java:813)- Unable to serialize delta request java.io.NotSerializableException: org.apache.coyote.tomcat5.CoyoteRequestFacade at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java 1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:13 04) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.jav a:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at org.apache.catalina.cluster.session.DeltaRequest$AttributeInfo.writeE xternal(DeltaRequest.java:300) at org.apache.catalina.cluster.session.DeltaRequest.writeExternal(DeltaR equest.java:217) at org.apache.catalina.cluster.session.DeltaManager.unloadDeltaRequest(D eltaManager.java:393) at org.apache.catalina.cluster.session.DeltaManager.requestCompleted(Del taManager.java:782) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationVa lve.java:203) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16 0) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja va:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:683) at java.lang.Thread.run(Thread.java:534) - Jim The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, please notify the sender of this email immediately. You should not copy, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Capco. http://www.capco.com/ The
Re: jsvc.exec error on FC3
Chong Yu Meng [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I'm trying to configure jsvc to work on a Fedora Core 3 system running Blackdown Java 1.4.2. I managed to do a configure and compile jsvc all right. I used the Tomcat5.sh script to start up and shutdown jsvc. The daemon starts up ok, but when shutting down, I get this error: Feb 28, 2005 3:23:40 PM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 jsvc.exec error: Service exit with a return value of 143 When I do a shutdown using the shutdown.sh script, Tomcat shuts down gracefully. Is there a way to shutdown jsvc gracefully? Yes. Don't use the version that ships with Tomcat. - -- ~ -- ~ Pascal Chong -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFCItLzmVdpiRJSldgRAvmvAKCm9a0bCgMM/MyqAK3Z+didFbljDACeMLCI mTEsiSSYMKZjLouLXON4/Eo= =L0kT -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat clustering and NotSerializableException
From: Sng Wee Jim [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat clustering and NotSerializableException But the stacktrace says java.io.NotSerializableException: org.apache.coyote.tomcat5.CoyoteRequestFacade Since CoyoteRequestFacade is a tomcat class, I assume it has to be fixed by the tomcat team. I'm confused. How did a reference to a request facade object get stored in the session object? I couldn't find any request-related fields in a DeltaSession, and if it was set as an attribute, there's a check in DeltaSession to insure serializability before the value is accepted. (Actually, there are two checks in the 5.0.28 version; it appears that the second one is redundant.) Also, it wouldn't make sense to have any request-related data in a session object, since there can be multiple concurrent requests associated with any session. What am I missing? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. (DeltaManager.java:813)- Unable to serialize delta request java.io.NotSerializableException: org.apache.coyote.tomcat5.CoyoteRequestFacade at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at org.apache.catalina.cluster.session.DeltaRequest$AttributeInfo.writeExternal(DeltaRequest.java:300) at org.apache.catalina.cluster.session.DeltaRequest.writeExternal(DeltaRequest.java:217) at org.apache.catalina.cluster.session.DeltaManager.unloadDeltaRequest(DeltaManager.java:393) at org.apache.catalina.cluster.session.DeltaManager.requestCompleted(DeltaManager.java:782) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve.java:203) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to send hidden variables to next page
Thanks David for the reply. Yes i could able to submit using javascript. Usually i use submit button. If submit button not available, i'm using javascript submit as mentioned by the syntax. Table problem, still finding ways to do it. Going thro' tutorials on HTML. --- David da Guia Carvalho [EMAIL PROTECTED] wrote: I dont know but looks like you are doing somethings wrong... hidden fildes are a great choice... better them use GET method... About the table think... use Iframe and do a submit to it... Whem you submit you use normal submit button or javascript??? If you are submiting with normal button try to use Javascript is much better! Example: !-- AT HEADER -- script language=javascript function submitform() { // FOR LOCAL FORM... where the form name is myform document.myform.submit(); //OR FOR IFRAME FORM... where the IFRAME name is myframe and the FORM name is myform1 window.frames.myframe.document.myform1.submit(); } /script !-- AT BODY The link to submit: -- A HREF=javascript: submitform()SUBMIT HERE!!!/A You can also make MANY variations on it... like pass values in the function from the external frame to a filed on iframe. Example: !-- AT HEADER -- script language=javascript function submitform(val1) { //CHANGE THE VALUE OF A FIELD ON IFRAME... where myfield is the name of the filed... window.frames.myframe.document.myform1.myfield.value=val1; //FOR IFRAME FORM... where the IFRAME name is myframe and the FORM name is myform1 window.frames.myframe.document.myform1.submit(); } /script !-- AT BODY -- A HREF=javascript: submitform(VALUEOFF1)SUBMIT HERE/A I make some dynamic tables based on users choies! Works very well. Best Regards, -- David da Guia Carvalho Animus Tecnologia da Informação Tel.: (21) 3525-8800 Fax: (21) 3525-8801 http://www.animus-ti.com.br On Feb 25, 2005 03:44 AM, U K Laxmi [EMAIL PROTECTED] wrote: Thanks David for the info. Sure to do some reading. I could able to pass the hidden variables to next page. It's just i'm using one hidden variable named 'package' which was doing all the problem. I just changed it to something else and now it's working. Still table issue not solved. I'm gooling ... for the solution. --- David Smith [EMAIL PROTECTED] wrote: This is getting into territory where you'd be better off doing some googling or buying a good javascript cookbook. I havn't bought any of those books recently although I've had good experience with subjects from Wrox Publishing and O'Reilly Associates in the past. Visit Amazon. They even support a rating scheme where people can voice their opinion. On the Delete issue, you could do a server-side rewrite of a link that invokes an action to delete a row as in: a href=http://localhost:8080/mywebapp/deleteRow.do?recordNum=10;Delete Me/a That's just a basic GET form request. Again, find a good book, do some reading. --David U K Laxmi wrote: Thanks David for the solution. To be frank, i really don't know how to code it. Will you give a sample code snippet? I'm using apache2, tomcat 5.5.7 on Win 2K machine. One more problem. I've a form and also submit button. I've number of text fields in it. On entering some data and focus losts from that field, i call a javascript function, i set number of hidden values and call a JSP using location.href of Javascript. But hidden values are not getting passed to jsp.I'm getting null. Why? How to overcome this? Pls help. One more requirement what i've is: i'VE A FORM WITH FORM ELEMENTS IN IT AND A 'aDD' BUTTON. After filling theform, if the user clicks on 'Add' button, the contents gets added aas row into a HTML table located below that form. That way user can add n number of rows to the bottom table. In the table, i need a 'Delete' button. After selecting any row, if the user clicks on 'Delete' button, it should get deleted from the table. I guess it can be possible. But it's a big challenge to me as i know only ABCD of HTML Javascript. If anybody can direct me to a good HTML/Javascritp forum also fine. If i get a solution directly, it's wonderful. Thanks a lot. Sorry again if it's not the right place to post this. --- David Smith [EMAIL PROTECTED] wrote: The best advice I can offer -- have a javascript that does the submit for you on the event the drop-down changes state. Then let a servlet handle storing your form data in the session and passing updated data to the next page. Outside of something like that, I think you'll need to incorporate a submit button. --David U K Laxmi wrote: Thanks for the answers Shakeel. My problem is, i've a page that doesn't have submit button. I need to send the hidden variables in that HTML page to next HTML page. Here the hidden
What is the best way to create a secure manual-submission authentication form?
I'm using form-based authentication in Tomcat 5.5 and would like to have a user-initiated login action, in addition to container-initiated logins triggered by security-constraints. My site implements both personalization for all pages and security for sensitive pages. I'd like to have a single sign-on for both personalization and security, with personalization persisting indefinitely while security-access has a session-timeout. I'm planning to use a separate cookie for the personalization, created after any authentication. The authentication and sensitive pages should all be limited to https access, while the non-sensitive pages are accessed via http. Non-sensitive pages do not have security-constraints as users are not required to login. If not logged in, the user sees a default unpersonalized view. A user may wish to manually specify a login to acquire his or her personalized view of a non-sensitive page. Is there any way to achieve this? I can think of indirect partial solutions. E.g., link to a protected jsp page that takes as a parameter the desired non-sensitive page (e.g., the home page) and forwards to this page. This could work assuming I want just a button or link for the user-initiated login action (causing the attempt to access the security-constrained forwarding page to post the login-page). However, what if I would like to have a login-form directly on the page from which the user can initiate the authentication? Is this possible? I tried placing. a copy of the form on the form-login-page onto the home page, and then submitted this form from the home page after a session-timeout from a prior session (that had been authenticated by a container-initiated posting of the form-login-page). The home-page form submission achieved the new authentication, but forwarded the request to the sensitive page that had been accessed in the earlier session's container-initiated authentication! That seems to be a bug. I would appreciate any advice on how to best achieve this. A corollary issue is that I'd like the submission of any login form to be made over https to protect the password, even if the page containing the login form was accessed via http. Can the solution to the above achieve this as well? Thanks for any advice, Chuck - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]