Re: Multiple instances of Tomcat on same machine
keith wrote: Hi all, I'm wondering if anyone knows what are the advantages of running the same web application in multiple instances of Tomcat on the same machine (with a dual duo-core Intel processor). Do having multiple instances affect performance positively or negatively taking in to account that the machine has multiple processors? I doubt there's a performance gain as you could also increase the default settings of just one Tomcat. Of course, each JVM adds memory overhead. Depending on how many webapps you deploy this might not be the issue compared to your webappss' memory consumption however. Pro: 1) However in case you have more memory in your machine than a JVM can possible use with Windows/Linux you might want to start multiple Tomcats/JVMs and distribute webapps or even the same webapp to distribute the memory consumption of one app's sessions and loadbalance. 2) You might want two Tomcat instances with loadbalancing in front in order to do maintainance work. Of course, you could just have one hot-standby instead of using both. So probably only a good idea if combined with #2. 3) If you don't trust your VM you might hope if one crashes you still got one ;-) However OOMs might be difficult to detect properly by a loadbalancer and that Tomcat might still hang around, but not stable. 4) you prefer to distribute webapps, need a complex vhost setup, add what you like, but dislike configuring just one Tomcat. Instead you want one Tomcat per special setup. Cons: 1) keeping config in sync 2) webapps installed multiple times (or symlinked /webapp with other effects...). Tomcat updates shouldn't be more effort as long as you stick just to patch versions as you'll still only have on binary installation CATALINA_HOME vs. multiple CATALINA_BASE configs. 3) more complex, might want session clustering to get session replications Cheers, Michael - 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]
Encoding problem In special character in xls and txt upload
Hi, Gurus I am doing an xls text upload in parallel and inserting data into data base. When I am viewing data I find the data through txt upload is comming correct and through xls upload is comming wrong. I am doign this with thease four character Š š Ž ž I am using iso-latin-1 encoding. My mail concern is why data come correct using txt file and not xls file upload. I am using POI api for uploading Webspaher Server Please guide , needed urgently. Thanks a lot Birendar S Waldiya =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
RE: Encoding problem In special character in xls and txt upload
The XLS file is not encoded using the expected encoding scheme (iso-latin-1, according to this post). Simply expecting the file to be encoded in such a way (or telling tomcat to expect it) does not make it so. You must save the file using the expected encoding, or you can translate it if you know what encoding it is using (Does an upload include this information? I am not sure) [From Excel help, search for encoding and you will get] Set the language encoding for a Web page When you are authoring a Web page, you can specify the encoding that a Web browser will use to display the page. On the Tools menu, click Options. Click the General tab, and then click Web Options. In the Web Options dialog box, click the Encoding tab. Do one of the following: To specify the language code that your Office application uses to display the page if the page is not already displayed with the correct language encoding, click the language you want in the Reload the current document as list. This setting is also used when subsequent pages are loaded if the language encoding cannot be determined. To specify the language code for saving the page, click the language you want in the Save this document as list. Note To have your Office application always save your pages by using default language encoding, select the Always save Web pages in the default encoding check box. This setting affects the current page and future pages that you save. This setting is useful if you reuse pages from other sources and want to store every page in one encoding. BTW, this doesn't appear to be a tomcat question... HTH, Tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, May 01, 2006 4:46 AM To: Tomcat Users List Subject: Encoding problem In special character in xls and txt upload Hi, Gurus I am doing an xls text upload in parallel and inserting data into data base. When I am viewing data I find the data through txt upload is comming correct and through xls upload is comming wrong. I am doign this with thease four character Š š Ž ž I am using iso-latin-1 encoding. My mail concern is why data come correct using txt file and not xls file upload. I am using POI api for uploading Webspaher Server Please guide , needed urgently. Thanks a lot Birendar S Waldiya =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Class loading from within a servlet: interface definition not found
I think you are assuming the classloader org.something.DatabaseRequestHandler is using is the webapp's local classloader. I doubt this is the case. Those with more knowlege of the classloader architecture may chime in, but the classloader being used is most likely the shared classloader instead. If possible, move the handler.jar from shared/lib to WEB-INF/lib of your webapp and the problem should go away. --David Christopher Piggott wrote: I have something happening with class loading from within a server, and I don't understand it. My servlet defines some classes called: org.something.server -- the class that extends HttpServlet org.something.DatabaseRequestHandler -- an interface When you make a request to the server, it figures out what handler class to load. Then it attempts to load it: Class handlerClass = Class.forName(handlerClassNameString); QUESTION: looking at the little diagram in the Tomcat 5.5 Class Loader HOW-TO, when I do the above (Class.forName) I am using the Webapp class loader, correct? The handler classes are all in handlers.jar which is in $CATALINA_BASE/shared/lib. The actual exception that I get is: 2006-04-28 17:05:55 StandardWrapperValve[xdb]: Servlet.service() for servlet xdb threw exception java.lang.NoClassDefFoundError: org/something/DatabaseRequestHandler It took me a few minutes to realize that this was not a ClassNotFound exception, but something else. Reading docs I figured out that the most probably cause is that the servlet's classloader was able to find the handler class, but then it failed to load one of the things it depended on, specifically it was able to find handlerClass but not the interface class that it depends on. Trouble is: the interface .class file is right there in WEB-INF/classes/com/something/DatabaseRequestHandler.class just like it should be. So, I am stumped why the class loader would be able to find the handler class in $CATALINA_BASE/shared/lib but NOT the interface that it implements which is in WEB-INF/classes. At the suggestion of a nice gentleman on freenode, I tried turning on the -verbose:class option in the jvm, and watched it log some interesting stuff to catalina.out. Unfortunately it doesn't shed any light on what is happening, beyond the exception and stack trace in the error log. I don't want to post the whole stack trace (unless someone thinks it would help to see it) but I will say that it includes catalina.loader.WebappClassLoader as well as catalina.loader.StandardClassLoader --Chris - 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: Classloading questions
Christopher Piggott wrote: As an experiment, I placed a file in the webapp dir of a servlet (not in WEB-INF but in the directory above it) and attempted to read it using getResource(). What I found was that I could not locate the resource unless I used getServletContext().getResource(). Your basic assumption that getServletContext().getResource() works by using classloader means is simply wrong. If you look at the JavaDoc of ServletContext it says that getResource() works file based (relative to the context root) and does not use the classloader. http://tomcat.apache.org/tomcat-5.0-doc/servletapi/javax/servlet/ServletContext.html#getResource(java.lang.String) Cheers, Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Class loading from within a servlet: interface definition not found
David Smith wrote: most likely the shared classloader instead. If possible, move the handler.jar from shared/lib to WEB-INF/lib of your webapp and the problem should go away. It took me a few minutes to realize that this was not a ClassNotFound exception, but something else. Reading docs I figured out that the most probably cause is that the servlet's classloader was able to find the handler class, but then it failed to load one of the things it depended on, specifically it was able to find handlerClass but not the interface class that it depends on. Trouble is: the interface .class file is right there in WEB-INF/classes/com/something/DatabaseRequestHandler.class just like it should be. So, I am stumped why the class loader would be able to find the handler class in $CATALINA_BASE/shared/lib but NOT the interface that it implements which is in WEB-INF/classes. What you are trying to do won't work or at least is asking for much classloading trouble. Its basically the same as if you try to put a jdbc jar in common/lib AND in WEB-INF/lib or put the servlet api which is included by Tomcat into WEB-INF/lib again. Bad idea and sometimes caused by unwanted glitches in ant build.xmls as it is convenient to put all .jars into the .war that were required for the build, eventhough the are harmful when deployed. Even if the classloader would find your classes and interfaces if you rebundle your jars you'll run into problems (class cast exceptions) as soon if you try to cast objects loaded by two different classloaders later on. E.g. you have created a Handler class by the shared classloader and later on cast in your webapp by using the webapp classloader to use it. Remember: for instanceof to be true it's not enough to have the same class, two objects have to be loaded by the same classloader, too. Repackage your code, use the same classloader, or as David said put everything into WEB-INF/lib. Cheers, Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
O/T Jrun config topic
Good Morning All- One of the reasons why I like Tomcat is the ease of configuring in new components thru updates to server.xml Is there/Are there anything similar configuration capabilities available in Jrun?? Many Thanks and apologies for decidedly O/T item , Martin -- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you.
Re: My Tomcat just not start
Lung My Virtual Machine configuration in Java tab is C:\Arquivos de programas\Java\jre1.5.0_06\bin\client\jvm.dll... I notice that you say-me to try C:\Java\jdk1.5.0_06\jre\bin\client\jvm.dll, but my jdk in same Java diractory is jdk1.5.0_04. I don't know how to explain, but Tomcat functioned normally when I tried to start it in Eclipse... Manivanaan Well, this file do not exist in my Tomcat directory. I'm starting to believe that it must be this... I caught all the installation of the JVM, Tomcat and Eclipse in the computer science sector of the college. He functions well with the Eclipse... Now I was still more lost... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Easy Tomcat Linux/Unix Platform
Thanks everyone. I think I might like the Novell idea. They probably have a lot of people for support. I'll be sure not to use the G# as well :) Larry Nobs Bill Clemmons wrote: Well, first you need to put in the double bar and repeat in order to create the the simple binary form, remember? ||: A :||: B :|| Find the spot where you cadence in A and create your double bar, and end of the A section there. then, you need to recapture your opening material by getting rid of the G#. From: Steve Ochani [mailto:[EMAIL PROTECTED] Sent: Sun 4/30/2006 4:29 PM To: Parsons Technical Services; Tomcat Users List Subject: Re: Easy Tomcat Linux/Unix Platform If you would like to use a current version of RedHat there are several clones. One that I use is TAOLinux. It is currently RHEL4. The goal of this project was to create as close to a RedHat release as possible. There is also CentOS. http://www.centos.org/ CentOS is a compile of RedHat Enterprise distro from sources with the copyrighted logos stripped out and additon of yum (yellowdog update module) for updates. I have been using it happily in a production envirnoment for over 1.5 years now. - 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: Changing tomcat's group
Bob makes an excellent point. The find command will take care of any existing directories. Thanks Bob. Aria. On Fri, 28 Apr 2006 16:11:44 -0700 (PDT) Bob Hall said: --- Aria Bamdad [EMAIL PROTECTED] wrote: Solved!!! The solution is to use the linux group sticky bit to force any files created in a directory (and subdirectories) to have the same group as the parent. For example let's say there are two applications, one for accounting and one for payroll. If you create a directory for accounting and one for payroll, each belonging to their own group and tomcat belonging to both groups, then tomcat can read the files in both directories but when it creates a file, it ends up being tomcat user and tomcat group. If you change the settings on the two directories as follows: chmod g+ws /accounting chmod g+ws /payroll Aria, good to know the problem is solved. Wish I had seen your latest post before replying a few minutes ago. To set the group sticky bit on dirs from 'app' down: $ find ./app -type d | xargs chmod g+s -Bob __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 PROTECTED]
How to access WebService implementation from Context?
Hi, I have a WebService that implements a specific interface (Registerable), and a Valve who's actions depend upon whether the WebService dealing with a given request implements this Registerable interface. What I need to be able to do, in the invoke method of the Valve, is somehow say: if(Request.getContext() ... instanceof Registerable) { // Do some Registration stuff } Is there anyway to do this sort of operation? I tried searching through Javadocs, Source-Code, and mailing lists but could not find any answers. Thanks in advance. Andy McDowall. --- Disclaimer --- Unless otherwise agreed expressly in writing by a Director of Edina Software, this communication is to be treated as confidential and the information in it may not be used or disclosed except for the purpose for which it has been sent. If you have reason to believe that you are not the intended recipient of this communication, please contact the sender immediately. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
Re: My Tomcat just not start
hmm did you try to launche tomcat manually? with batch file that's in Tomcat/bin/ ? eclipse working you said, then tomcat should work Sorry can't help you. I installe tomcat pretty easily, didn't run into any trouble. On 5/1/06, Rodrigo Tenorio [EMAIL PROTECTED] wrote: Lung My Virtual Machine configuration in Java tab is C:\Arquivos de programas\Java\jre1.5.0_06\bin\client\jvm.dll... I notice that you say-me to try C:\Java\jdk1.5.0_06\jre\bin\client\jvm.dll, but my jdk in same Java diractory is jdk1.5.0_04. I don't know how to explain, but Tomcat functioned normally when I tried to start it in Eclipse... Manivanaan Well, this file do not exist in my Tomcat directory. I'm starting to believe that it must be this... I caught all the installation of the JVM, Tomcat and Eclipse in the computer science sector of the college. He functions well with the Eclipse... Now I was still more lost... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: My Tomcat just not start
Yes, I've tryed... But the .bat that Manivanaan mentioned do not exist im my Tomcat's directories... Well... Thanks... I will try reinstall JDK, Tomcat and Eclipse. Lung Chan escreveu: hmm did you try to launche tomcat manually? with batch file that's in Tomcat/bin/ ? eclipse working you said, then tomcat should work Sorry can't help you. I installe tomcat pretty easily, didn't run into any trouble. On 5/1/06, Rodrigo Tenorio [EMAIL PROTECTED] wrote: Lung My Virtual Machine configuration in Java tab is C:\Arquivos de programas\Java\jre1.5.0_06\bin\client\jvm.dll... I notice that you say-me to try C:\Java\jdk1.5.0_06\jre\bin\client\jvm.dll, but my jdk in same Java diractory is jdk1.5.0_04. I don't know how to explain, but Tomcat functioned normally when I tried to start it in Eclipse... Manivanaan Well, this file do not exist in my Tomcat directory. I'm starting to believe that it must be this... I caught all the installation of the JVM, Tomcat and Eclipse in the computer science sector of the college. He functions well with the Eclipse... Now I was still more lost... - 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: My Tomcat just not start
It sounds more like an issue with you JAVA_HOME environment variable. Make sure you point your JAVA_HOME at your JDK path. If you have run the upgrade that comes with the JAVA JRE then it only upgrades the JRE and not the JDK. You can only use the JRE if you precompile EVERYTHING. Great for a high performance high volume production environment but if not the JDK needs to compile your JSP's at runtime. I'd suggest downloading the newest JDK from sun's site just to be sure. The first path in the install is the path that needs to go into your system environment variable for JAVA_HOME. Chris Berthold IT Systems Analyst Commercial Refrigerator Door Company 941 . 371 . 8110 x 205 -Original Message- From: Rodrigo Tenorio [mailto:[EMAIL PROTECTED] Sent: Monday, May 01, 2006 1:00 PM To: Tomcat Users List Subject: Re: My Tomcat just not start Yes, I've tryed... But the .bat that Manivanaan mentioned do not exist im my Tomcat's directories... Well... Thanks... I will try reinstall JDK, Tomcat and Eclipse. Lung Chan escreveu: hmm did you try to launche tomcat manually? with batch file that's in Tomcat/bin/ ? eclipse working you said, then tomcat should work Sorry can't help you. I installe tomcat pretty easily, didn't run into any trouble. On 5/1/06, Rodrigo Tenorio [EMAIL PROTECTED] wrote: Lung My Virtual Machine configuration in Java tab is C:\Arquivos de programas\Java\jre1.5.0_06\bin\client\jvm.dll... I notice that you say-me to try C:\Java\jdk1.5.0_06\jre\bin\client\jvm.dll, but my jdk in same Java diractory is jdk1.5.0_04. I don't know how to explain, but Tomcat functioned normally when I tried to start it in Eclipse... Manivanaan Well, this file do not exist in my Tomcat directory. I'm starting to believe that it must be this... I caught all the installation of the JVM, Tomcat and Eclipse in the computer science sector of the college. He functions well with the Eclipse... Now I was still more lost... - 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]
Single SignOFF?
I'm using the single signon authenticator for cross-web-app authentication. For logoff, I was simply killing the session. But that only kills the one session where the call was made. How do I log a user off of all logged on sessions? Thanks.
RE: deployXML question.
Could anyone shed some litght on this question? Or possibly point me in the right direction for documentation. Thanks, -Original Message- From: BATCHELOR, SCOTT (CONTRACTOR) [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 26, 2006 12:59 PM To: Tomcat Users List Subject: deployXML question. The deployXML attribute in the server.xml is defaulted to true. In the Tomcat Docs it states this: Security consious environments should set this to false to prevent applications from interacting with the container's configuration. Can anyone explain what the exposure might be by leaving this to value defaulted to true? What type of damage a problem applications could possibly do? The doc's are very vague in this regard. Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Server reboot, Tomcat ok, but app needs starting
Hi On my RHEL server, running tomcat 5.5.12, jvm 1.5.0_06-b05 when I litterally reboot the server, tomcat restarts, which I then access via the tomcat manager; and everything is Running = true except for my application. I can click Start and it starts just fine. I know there must be something dumb I am overlooking... TIA -Reid
Re: Server reboot, Tomcat ok, but app needs starting
On 5/1/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On my RHEL server, running tomcat 5.5.12, jvm 1.5.0_06-b05 when I litterally reboot the server, tomcat restarts, which I then access via the tomcat manager; and everything is Running = true except for my application. I can click Start and it starts just fine. I know there must be something dumb I am overlooking... Most likely it's something in your webapp depends on something else running in the system which hasn't started up which causes that application to fail loading. How is Tomcat started, and when is it started during the boot process? It sounds like you need to delay startup of Tomcat. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Server reboot, Tomcat ok, but app needs starting
I would agree if there are exceptions being throw in the log file. If there isn't I'm thinking that maybe deployOnStartup in the config is set to false. Check your server.xml for that host. Chris Berthold IT Systems Analyst Commercial Refrigerator Door Company 941 . 371 . 8110 x 205 -Original Message- From: David Rees [mailto:[EMAIL PROTECTED] Sent: Monday, May 01, 2006 2:57 PM To: Tomcat Users List Subject: Re: Server reboot, Tomcat ok, but app needs starting On 5/1/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On my RHEL server, running tomcat 5.5.12, jvm 1.5.0_06-b05 when I litterally reboot the server, tomcat restarts, which I then access via the tomcat manager; and everything is Running = true except for my application. I can click Start and it starts just fine. I know there must be something dumb I am overlooking... Most likely it's something in your webapp depends on something else running in the system which hasn't started up which causes that application to fail loading. How is Tomcat started, and when is it started during the boot process? It sounds like you need to delay startup of Tomcat. -Dave - 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]
Persistent HTTP session cookies
I am in progress of moving an old legacy based web application for internal use from Sun Java System Web Server to tomcat. We currently have a Sun Java System Web Server specific setting that allows the JSESSIONID cookie to be persisted to their machine for a day. This allows internal users to close their browsers without having to log back in again. Is there a similiar tomcat setting? I have not been able to find one. Thank you. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Persistent HTTP session cookies
I doubt that tomcat support this kind of session cookies. However, you could configure tomcat to have session timeout about 24h (or whatever you need) and in your servlet/filter/action overwrite JSESSIONID Cookie with a persistent cookie. I think it should work equally well. regards Leon On 5/1/06, Paul Sideleau [EMAIL PROTECTED] wrote: I am in progress of moving an old legacy based web application for internal use from Sun Java System Web Server to tomcat. We currently have a Sun Java System Web Server specific setting that allows the JSESSIONID cookie to be persisted to their machine for a day. This allows internal users to close their browsers without having to log back in again. Is there a similiar tomcat setting? I have not been able to find one. Thank you. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 PROTECTED]
No Class def found error
Hi , I am using tomcat 5.5.17 along with jdk 1.5. I am trying to define a Single sign on agent valve by using the following tag Host name=client.com appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=true xmlNamespaceAware=true Valve className=org.josso.tc55.agent.SSOAgentValve debug=1/ /host When I start my tomcat I am getting the following exception org.apache.tomcat.util.digester.Digester startElement SEVERE: Begin event threw error java.lang.NoClassDefFoundError: org/apache/catalina/Request at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2365) at java.lang.Class.privateGetPublicMethods(Class.java:2488) at java.lang.Class.getMethods(Class.java:1406) When I remove the Valve tag my tomcat starts in a normal manner.. Please can anyone throw some light why this error is coming? Regards abhishek The information contained in and accompanying this communication is strictly confidential and intended solely for the use of the intended recipient(s). If you have received it by mistake please let us know by reply and then delete it from your system; you should not copy the message or disclose its content to anyone. MarketAxess reserves the right to monitor the content of emails sent to or from its systems. Any comments or statements made are not necessarily those of MarketAxess. For more information, please visit www.marketaxess.com. MarketAxess Europe Limited is regulated in the UK by the FSA, registered in England no. 4017610, registered office at 71 Fenchurch Street, London, EC3M 4BS. Telephone (020) 7709 3100. MarketAxess Corporation is regulated in the USA by the SEC and the NASD, incorporated in Delaware, executive offices at 140 Broadway, New York, NY 10005. Telephone (1) 212 813 6000. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No Class def found error
make sure that the valve classes are under server/lib or server/classes instead of common/lib or common/classes Abhishek Goel wrote: Hi , I am using tomcat 5.5.17 along with jdk 1.5. I am trying to define a Single sign on agent valve by using the following tag Host name=client.com appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=true xmlNamespaceAware=true Valve className=org.josso.tc55.agent.SSOAgentValve debug=1/ /host When I start my tomcat I am getting the following exception org.apache.tomcat.util.digester.Digester startElement SEVERE: Begin event threw error java.lang.NoClassDefFoundError: org/apache/catalina/Request at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2365) at java.lang.Class.privateGetPublicMethods(Class.java:2488) at java.lang.Class.getMethods(Class.java:1406) When I remove the Valve tag my tomcat starts in a normal manner.. Please can anyone throw some light why this error is coming? Regards abhishek The information contained in and accompanying this communication is strictly confidential and intended solely for the use of the intended recipient(s). If you have received it by mistake please let us know by reply and then delete it from your system; you should not copy the message or disclose its content to anyone. MarketAxess reserves the right to monitor the content of emails sent to or from its systems. Any comments or statements made are not necessarily those of MarketAxess. For more information, please visit www.marketaxess.com. MarketAxess Europe Limited is regulated in the UK by the FSA, registered in England no. 4017610, registered office at 71 Fenchurch Street, London, EC3M 4BS. Telephone (020) 7709 3100. MarketAxess Corporation is regulated in the USA by the SEC and the NASD, incorporated in Delaware, executive offices at 140 Broadway, New York, NY 10005. Telephone (1) 212 813 6000. - 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: No Class def found error
make sure that the valve classes are under server/lib or server/classes instead of common/lib or common/classes Abhishek Goel wrote: Hi , I am using tomcat 5.5.17 along with jdk 1.5. I am trying to define a Single sign on agent valve by using the following tag Host name=client.com appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=true xmlNamespaceAware=true Valve className=org.josso.tc55.agent.SSOAgentValve debug=1/ /host When I start my tomcat I am getting the following exception org.apache.tomcat.util.digester.Digester startElement SEVERE: Begin event threw error java.lang.NoClassDefFoundError: org/apache/catalina/Request at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2365) at java.lang.Class.privateGetPublicMethods(Class.java:2488) at java.lang.Class.getMethods(Class.java:1406) When I remove the Valve tag my tomcat starts in a normal manner.. Please can anyone throw some light why this error is coming? Regards abhishek The information contained in and accompanying this communication is strictly confidential and intended solely for the use of the intended recipient(s). If you have received it by mistake please let us know by reply and then delete it from your system; you should not copy the message or disclose its content to anyone. MarketAxess reserves the right to monitor the content of emails sent to or from its systems. Any comments or statements made are not necessarily those of MarketAxess. For more information, please visit www.marketaxess.com. MarketAxess Europe Limited is regulated in the UK by the FSA, registered in England no. 4017610, registered office at 71 Fenchurch Street, London, EC3M 4BS. Telephone (020) 7709 3100. MarketAxess Corporation is regulated in the USA by the SEC and the NASD, incorporated in Delaware, executive offices at 140 Broadway, New York, NY 10005. Telephone (1) 212 813 6000. - 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: No Class def found error
Valves are under the server directory only. MoreOver the error message says java.lang.NoClassDefFoundError: org/apache/catalina/Request I looked into the org.apache.catalina package. It does not contain the request interface. My query is why this is being looked into -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Monday, May 01, 2006 4:52 PM To: Tomcat Users List Subject: Re: No Class def found error make sure that the valve classes are under server/lib or server/classes instead of common/lib or common/classes Abhishek Goel wrote: Hi , I am using tomcat 5.5.17 along with jdk 1.5. I am trying to define a Single sign on agent valve by using the following tag Host name=client.com appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=true xmlNamespaceAware=true Valve className=org.josso.tc55.agent.SSOAgentValve debug=1/ /host When I start my tomcat I am getting the following exception org.apache.tomcat.util.digester.Digester startElement SEVERE: Begin event threw error java.lang.NoClassDefFoundError: org/apache/catalina/Request at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2365) at java.lang.Class.privateGetPublicMethods(Class.java:2488) at java.lang.Class.getMethods(Class.java:1406) When I remove the Valve tag my tomcat starts in a normal manner.. Please can anyone throw some light why this error is coming? Regards abhishek The information contained in and accompanying this communication is strictly confidential and intended solely for the use of the intended recipient(s). If you have received it by mistake please let us know by reply and then delete it from your system; you should not copy the message or disclose its content to anyone. MarketAxess reserves the right to monitor the content of emails sent to or from its systems. Any comments or statements made are not necessarily those of MarketAxess. For more information, please visit www.marketaxess.com. MarketAxess Europe Limited is regulated in the UK by the FSA, registered in England no. 4017610, registered office at 71 Fenchurch Street, London, EC3M 4BS. Telephone (020) 7709 3100. MarketAxess Corporation is regulated in the USA by the SEC and the NASD, incorporated in Delaware, executive offices at 140 Broadway, New York, NY 10005. Telephone (1) 212 813 6000. - 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] The information contained in and accompanying this communication is strictly confidential and intended solely for the use of the intended recipient(s). If you have received it by mistake please let us know by reply and then delete it from your system; you should not copy the message or disclose its content to anyone. MarketAxess reserves the right to monitor the content of emails sent to or from its systems. Any comments or statements made are not necessarily those of MarketAxess. For more information, please visit www.marketaxess.com. MarketAxess Europe Limited is regulated in the UK by the FSA, registered in England no. 4017610, registered office at 71 Fenchurch Street, London, EC3M 4BS. Telephone (020) 7709 3100. MarketAxess Corporation is regulated in the USA by the SEC and the NASD, incorporated in Delaware, executive offices at 140 Broadway, New York, NY 10005. Telephone (1) 212 813 6000. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JAAS DIGEST authentication Tomcat5.5.17
I have Tomcat working with FORM and BASIC authentication. All is OK for this 2 modes. When i try with DIGEST and insert digest=MD5 in the JAAS realm i have the error copied in attach. IS Digest supported with JAAS in this Tomcat version ??? What can i do ? Is it a bug ? 1 mai 2006 23:36:52 org.apache.catalina.startup.HostConfig checkResources FIN: Checking context[/manager] reload resource C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\context.xml 1 mai 2006 23:36:56 org.apache.catalina.authenticator.AuthenticatorBase invoke FIN: Security checking request GET /realms/faces/admin/admin.jspx 1 mai 2006 23:36:56 org.apache.catalina.realm.RealmBase findSecurityConstraints FIN: Checking constraint 'SecurityConstraint[admin]' against GET /faces/admin/admin.jspx -- true 1 mai 2006 23:36:56 org.apache.catalina.realm.RealmBase findSecurityConstraints FIN: Checking constraint 'SecurityConstraint[admin]' against GET /faces/admin/admin.jspx -- true 1 mai 2006 23:36:56 org.apache.catalina.authenticator.AuthenticatorBase invoke FIN: Calling hasUserDataPermission() 1 mai 2006 23:36:56 org.apache.catalina.realm.RealmBase hasUserDataPermission FIN: User data constraint has no restrictions 1 mai 2006 23:36:56 org.apache.catalina.authenticator.AuthenticatorBase invoke FIN: Calling authenticate() 1 mai 2006 23:36:56 org.apache.catalina.authenticator.AuthenticatorBase invoke FIN: Failed authenticate() test 1 mai 2006 23:37:02 org.apache.catalina.startup.HostConfig checkResources
can't get parameter when security is on
I am having problems getting a parameter from my web form when I have security turned on for a servlet running in Tomcat 5.5.15. Here is the code: My Tomcat's server.xml file has this defined: Connector port=8080 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / ...and... Connector port=8443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS / Note: I did not change anything in the server.xml file other than uncomment the sections above. Now in my web.xml deployment descriptor I have defined: security-constraint web-resource-collection web-resource-nameParameterTest/web-resource-name url-pattern/parameter_test/url-pattern /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint servlet servlet-nameParameter Test/servlet-name servlet-classParameterTest/servlet-class /servlet servlet-mapping servlet-nameParameter Test/servlet-name url-pattern/parameter_test/url-pattern /servlet-mapping I have a simple web form: html head titleParameter Test/title /head body centerParameter Test br br form action=parameter_test method=post Please enter your parameter: input type=text name=my_parameter br br input type=submit value=Ok/ /form /center /body /html Finally in my code (ParameterTest.java) I have: public void doPost (HttpServletRequest request, HttpServletResponse response) throws IOException { PrintWriter out = response.getWriter(); String the_parameter = request.getParameter(my_parameter); out.println(my_parameter = +the_parameter); out.println(parameter names:); for (Enumeration e = request.getParameterNames() ; e.hasMoreElements() ;) { out.println(parameter: +e.nextElement()); } } If the security-constraint section IS defined in my web.xml deployment descriptor, output in my web browser is: my_parameter = null parameter names: Now if I take the security-constraint section out of my web.xml file I get the following output in my web browser: my_parameter = 43625 parameter names: parameter: my_parameter So my code works just fine /without/ the security-constraint defined. My question is this: What do I need to do to get the parameter to be passed to my ParameterTest servlet with the security-constraint defined? I need security to work here. Thanks, -- John Wallace | Java / Web Developer [EMAIL PROTECTED] http://anode.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exception attempting to expand war
I've been modifying, undeploying and redeploying through Tomcat's manager application a web application for days. Suddenly at about 3 PM today, after I added a submit button in my HTML, I started getting this on the Tomcat 5 console: WARNING: Exception while expanding web application archive SeasonAdminTool.war Localhost shows: 2006-05-01 15:20:21 StandardContext[/manager]HTMLManager: managerServlet.extract[/home/apps/tomcat/webapps/SeasonAdminTool.war] java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.init(ZipFile.java:111) at java.util.jar.JarFile.init(JarFile.java:127) at java.util.jar.JarFile.init(JarFile.java:92) at org.apache.catalina.manager.ManagerServlet.extractXml(ManagerServlet.jav a:1509) What could be causing this? I've stopped and restarted Tomcat. That doesn't help. I've rebuilt the war. That doesn't help either. I didn't make any code changes that should be a problem for unzipping a war. I just don't get it. Thanks. Ken - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deployXML question.
BATCHELOR, SCOTT (CONTRACTOR) wrote: Could anyone shed some litght on this question? Or possibly point me in the right direction for documentation. Have a read of http://tomcat.apache.org/tomcat-5.5-doc/config/context.html With deployXML=true you have control over privileged, crossContext for starters. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can't get parameter when security is on
This looks like it should work. Sorry. On 5/1/06, John Wallace [EMAIL PROTECTED] wrote: I am having problems getting a parameter from my web form when I have security turned on for a servlet running in Tomcat 5.5.15. Here is the code: My Tomcat's server.xml file has this defined: Connector port=8080 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / ...and... Connector port=8443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS / Note: I did not change anything in the server.xml file other than uncomment the sections above. Now in my web.xml deployment descriptor I have defined: security-constraint web-resource-collection web-resource-nameParameterTest/web-resource-name url-pattern/parameter_test/url-pattern /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint servlet servlet-nameParameter Test/servlet-name servlet-classParameterTest/servlet-class /servlet servlet-mapping servlet-nameParameter Test/servlet-name url-pattern/parameter_test/url-pattern /servlet-mapping I have a simple web form: html head titleParameter Test/title /head body centerParameter Test br br form action=parameter_test method=post Please enter your parameter: input type=text name=my_parameter br br input type=submit value=Ok/ /form /center /body /html Finally in my code (ParameterTest.java) I have: public void doPost (HttpServletRequest request, HttpServletResponse response) throws IOException { PrintWriter out = response.getWriter(); String the_parameter = request.getParameter(my_parameter); out.println(my_parameter = +the_parameter); out.println(parameter names:); for (Enumeration e = request.getParameterNames() ; e.hasMoreElements() ;) { out.println(parameter: +e.nextElement()); } } If the security-constraint section IS defined in my web.xml deployment descriptor, output in my web browser is: my_parameter = null parameter names: Now if I take the security-constraint section out of my web.xml file I get the following output in my web browser: my_parameter = 43625 parameter names: parameter: my_parameter So my code works just fine /without/ the security-constraint defined. My question is this: What do I need to do to get the parameter to be passed to my ParameterTest servlet with the security-constraint defined? I need security to work here. Thanks, -- John Wallace | Java / Web Developer [EMAIL PROTECTED] http://anode.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Marc Farrow
Re: JAAS DIGEST authentication Tomcat5.5.17
[EMAIL PROTECTED] wrote: I have Tomcat working with FORM and BASIC authentication. All is OK for this 2 modes. When i try with DIGEST and insert digest=MD5 in the JAAS realm i have the error copied in attach. With DIGEST auth and digest=MD5 you need to make sure the passwords are digested as per http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html#Digested%20Passwords If you want to use DIGEST and passwords stored in the realm are in plain text you should not specify digest attribute for the realm. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Applet sharing utility class with Servlet
Hi guys, hoping someone has an answer to this: I have a servlet and an applet running in the same webapp. The servlet needs to access a class the applet .jar contains. The applet is visible to the browser. Problem is: I need to access this applet utility class (or it could be any class really, outside the WEB-INF folder but inside the current webapp) from the servlet. I don't want to actually access the running applet on the user's end, just the .class on the server webapp (so I can instantiate it etc). I also don't want to have to keep a copy of this utility class with the servlet class as a work-around as it's rather inelegant. I have heard you can modify web.xml in the webapp\WEB-INF folder to allow access to any .class/.jar in the current webapp but I haven't been able to find how to do this. If you have any ideas or leads about this problem, please let us know. Thanks guys.
Re: Applet sharing utility class with Servlet
This is a feature of the servlet spec. To use a class from both client and server you're forced to have multiple copies of it in your web app -- or alternatively to do non-standard adjustments to the web app loader / classpath. If you don't have too many of these copy cases, I advise just having your build process produce the necessary copies. Unfortunately, some of us have *lots* of these cases. The lack of a common area which is accessible to client and server classloaders is a very unfortunate gap in the servlet spec in this case. Andrew Bubnic wrote: Hi guys, hoping someone has an answer to this: I have a servlet and an applet running in the same webapp. The servlet needs to access a class the applet .jar contains. The applet is visible to the browser. Problem is: I need to access this applet utility class (or it could be any class really, outside the WEB-INF folder but inside the current webapp) from the servlet. I don't want to actually access the running applet on the user's end, just the .class on the server webapp (so I can instantiate it etc). I also don't want to have to keep a copy of this utility class with the servlet class as a work-around as it's rather inelegant. I have heard you can modify web.xml in the webapp\WEB-INF folder to allow access to any .class/.jar in the current webapp but I haven't been able to find how to do this. If you have any ideas or leads about this problem, please let us know. Thanks guys. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Applet sharing utility class with Servlet
Thanks for the quick reply. Looks like I'm keeping two copies.. serves me right for making my own storage objects for niceness. -Original Message- From: Jess Holle [mailto:[EMAIL PROTECTED] Sent: Tuesday, 02 May 2006 12:06 PM To: Tomcat Users List Subject: Re: Applet sharing utility class with Servlet This is a feature of the servlet spec. To use a class from both client and server you're forced to have multiple copies of it in your web app -- or alternatively to do non-standard adjustments to the web app loader / classpath. If you don't have too many of these copy cases, I advise just having your build process produce the necessary copies. Unfortunately, some of us have *lots* of these cases. The lack of a common area which is accessible to client and server classloaders is a very unfortunate gap in the servlet spec in this case. Andrew Bubnic wrote: Hi guys, hoping someone has an answer to this: I have a servlet and an applet running in the same webapp. The servlet needs to access a class the applet .jar contains. The applet is visible to the browser. Problem is: I need to access this applet utility class (or it could be any class really, outside the WEB-INF folder but inside the current webapp) from the servlet. I don't want to actually access the running applet on the user's end, just the .class on the server webapp (so I can instantiate it etc). I also don't want to have to keep a copy of this utility class with the servlet class as a work-around as it's rather inelegant. I have heard you can modify web.xml in the webapp\WEB-INF folder to allow access to any .class/.jar in the current webapp but I haven't been able to find how to do this. If you have any ideas or leads about this problem, please let us know. Thanks guys. - 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: Easy Tomcat Linux/Unix Platform
On Sun, Apr 30, 2006 at 10:03:49AM -0400, Mark Thomas wrote: When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread. This makes it harder for other users to find relevant information when searching the lists. This is known as thread hijacking and is that is frowned upon on this list. Frequent offenders will be removed from the list. It should also be noted that many list subscribers automatically ignore any messages that hijack another thread. The correct procedure is to create a new message with a new subject. This will start a new thread. What would be really nice is if the digest emails included the In-Reply-To header on the individual pieces, so my mail software could actually piece together the threads in the correct way. Right now all it has to go on is the subject, which doesn't always work. eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]