Re: Load balancing with apache + mod_jk
In addition to Mladens post, you have several errors in in your workers.properties. You should read the docs: http://tomcat.apache.org/connectors-doc/config/workers.html I have spent some hours deciphering these (they have gotten much better lately). ons, 16,.11.2005 kl. 09.29 +0200, skrev Mirek Kopriva: > > #properties > workers.ajp13.1.host=127.0.0.1 > workers.ajp13.1.port=8009 > workers.ajp13.2.host=xx.xx.xx.xx (other server IP) > workers.ajp13.2.port=8009 These should be 'worker.' not 'workers.' > > worker.list=loadbalancer, ajp13.1, ajp13.2 The balanced workers must not be part of worker.list (See doc ) > > worker.loadbalancer.type=lb > worker.loadbalancer.balanced_workers=ajp13.1, ajp13.2 It should read 'worker.loadbalancer.balance_workers'. > worker.loadbalancer.sticky_session=True > > # Workers > worker.ajp13.1.port=$(workers.ajp13.1.port) > worker.ajp13.1.host=$(workers.ajp13.1.host) My default workers.properties also says: # As a general note, the characters $( and ) are used internally to define # macros. Do not use them in your own configuration!!! So you might change the above config as well. Hope this helps Olve signature.asc Description: Dette er en digitalt signert meldingsdel
[HELP] I couldn't connect to Tomcat which is on another PC!
Hi all, I got a problem with Tomcat 5.0.28 and I hope that all you will help me to solve this problem. So, I have a Tomcat 5.0.28 which is installed on 1 PC called PC1 (WindowsXP), so, I have another PC called PC2, I try to connect to the PC1 which have a Tomcat server above, but I couldn't do that :( I ping PC1, PC2, they see each other. I turn on Tomcat on PC1, try to connect from PC2: http://pc1:8080/ but ... I couldn't :( Plz help me :( thank you for ur reading! :( bowlkhin
Re: [HELP] I couldn't connect to Tomcat which is on another PC!
Here are a couple of things to try: a) are you sure that Tomcat is actually serving up pages at all? - try opening a webpage in a browser on PC1, like this: http://localhost:8080/manager.html This should call up the Manager page (actually it should prompt you for a user name & password first); if it does either of these then Tomcat is running on PC1; b) If it is, then is the Windows XP Firewall blocking the pages on PC2? Check the settings; c) You might also want to put PC1 in the 'Trusted Zone' in your browser on PC2; d) when you ping PC1 from PC2, how are you entering the name? Are you entering 'ping PC1' ? Or are you entering the IP address? e) in fact that's another thing try: from PC2, enter the IP address of PC1, ie 'http://192.168.0.1:8080' (but use the actual address for PC1, of course) in the browser on PC2. If that works, but http://PC1:8080 doesn't, then the problem is name or address resolution, not a Tomcat problem. Hope all this helps. Tom - Original Message - From: "Pham Anh Tuan" <[EMAIL PROTECTED]> To: "Tomcat Mailing List" Sent: Wednesday, November 16, 2005 9:02 AM Subject: [HELP] I couldn't connect to Tomcat which is on another PC! Hi all, I got a problem with Tomcat 5.0.28 and I hope that all you will help me to solve this problem. So, I have a Tomcat 5.0.28 which is installed on 1 PC called PC1 (WindowsXP), so, I have another PC called PC2, I try to connect to the PC1 which have a Tomcat server above, but I couldn't do that :( I ping PC1, PC2, they see each other. I turn on Tomcat on PC1, try to connect from PC2: http://pc1:8080/ but ... I couldn't :( Plz help me :( thank you for ur reading! :( bowlkhin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [HELP] I couldn't connect to Tomcat which is on another PC!
Thank you Tom Burke! :) The reason why is Firewall :) ... again, thank you very much :) bowlkhin * Pham Anh Tuan Java Developer, HR Assistant ICHI Corporation Vietnam. Room #1001, 37 Ton Duc Thang, Dist. 1 Ho Chi Minh City, Vietnam. Phone: (+84) (08) 9105732 Fax: (+84) (08) 9105734 Cell: (+84) (0) 989 505897 Email: [EMAIL PROTECTED] Website: http://www.ichi-corp.jp * - Original Message - From: "Tom Burke" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Wednesday, November 16, 2005 4:16 PM Subject: Re: [HELP] I couldn't connect to Tomcat which is on another PC! Here are a couple of things to try: a) are you sure that Tomcat is actually serving up pages at all? - try opening a webpage in a browser on PC1, like this: http://localhost:8080/manager.html This should call up the Manager page (actually it should prompt you for a user name & password first); if it does either of these then Tomcat is running on PC1; b) If it is, then is the Windows XP Firewall blocking the pages on PC2? Check the settings; c) You might also want to put PC1 in the 'Trusted Zone' in your browser on PC2; d) when you ping PC1 from PC2, how are you entering the name? Are you entering 'ping PC1' ? Or are you entering the IP address? e) in fact that's another thing try: from PC2, enter the IP address of PC1, ie 'http://192.168.0.1:8080' (but use the actual address for PC1, of course) in the browser on PC2. If that works, but http://PC1:8080 doesn't, then the problem is name or address resolution, not a Tomcat problem. Hope all this helps. Tom - Original Message - From: "Pham Anh Tuan" <[EMAIL PROTECTED]> To: "Tomcat Mailing List" Sent: Wednesday, November 16, 2005 9:02 AM Subject: [HELP] I couldn't connect to Tomcat which is on another PC! Hi all, I got a problem with Tomcat 5.0.28 and I hope that all you will help me to solve this problem. So, I have a Tomcat 5.0.28 which is installed on 1 PC called PC1 (WindowsXP), so, I have another PC called PC2, I try to connect to the PC1 which have a Tomcat server above, but I couldn't do that :( I ping PC1, PC2, they see each other. I turn on Tomcat on PC1, try to connect from PC2: http://pc1:8080/ but ... I couldn't :( Plz help me :( thank you for ur reading! :( bowlkhin - 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: Announcement: ZK - an OSS project to enable rich user interfaces and easy-to-develop for Web applications
I just ckecked the ZK Framework by downloading it. Before going to more details I hav some queries, 1)Whether this framework can be used with struts? 2)Whether this is Lisenced? I am working on a commercial project. So wether i can adopt this framework to include on my app and i can sell the product without any restrictions? On 11/15/05, Tom M. Yeh <[EMAIL PROTECTED]> wrote: > ZK is an AJAX-based, event-driven, XUL-compliant, all Java framework to > enable rich user interfaces for Web applications. With ZK, you represent your > Web application in feature-rich in XUL and HTML components, and manipulate > these components by listening to events triggered by users, all at the > server, as simple and rich as you did for years in desktop applications. > > No JavaScript and AJAX for application developers. No need to replicate > business logic at the clients. No proprietary components. No compilation. > Just manipulate in a markup language, ZUL, deriving from XUL. Just POJO > (Plain Old Java cOdes). ZK works with existent frameworks and technologies, > such as JSF and Portals, so the pace of adapting it is all under your control. > > It is GPL. More details are available at http://zk1.sourceforge.net. You > could try the features online without installation at > http://www.potix.com/zkdemo/userguide. > > Welcome your input. Please forward to anyone who might be interested. > > Thanks and Regards, > Tom Yeh > The ZK project > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse setup questions
Some more precisions are needed. What "output" type are you referencing to? Jar? War? Or something else? But in any case, the general way is File > Export, and then choose your type and in the next screen, specify your export destination. You could use default settings for the rest. Developer Developer wrote: Hello All, i am posting this question to the tomcat user group assuming people in this group are familiar with eclipse IDE. I am new to eclipse IDE. I have a question on the setup. I have 3 different packages built in ecplise. I want to be able to direct the ouput of these packages to 3 different folders that are outside my workspace. Do you know how I can do that ? Thanks a lot. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Internationalization question
I'm using Tomcat 5.5.9 (in Windows). I've tried but I don't have any problem. Try to upgrade your Tomcat. Scott Smith wrote: I'm using Tomcat 4.1.29 on Windows. I have a context setup which contains some image files (simple jpgs). In the conf/server.xml file, the context looks something like: Some of the filenames in this directory have non-English characters (e.g., ESPAÑA.jpg). For the associated website, I have some html pages which refer to these photos using an image tag that looks something like: http://myhost/photos/ESPAÑA.jpg ... The problem is that the photos with non-English characters aren't being displayed (it appears that Tomcat is unable to find them). I thought URL Encoding the filename would fix the problem, but it doesn't. Some of my experiments indicate that the browser (at least IE) will URL encode it anyway as it makes the request. The html pages are being sent to the browser as utf-8. As a test, I hardcoded the picture to be ESPANA.jpg in the html page and changed the filename in the file system. Everything worked fine. Photos that don't have non-English characters also work fine. Unfortunately, the photos are constantly changing and so I don't have the option of simply renaming the files unless I find a way to do it that can automatically be applied to future files as well as the current ones. My suspicion is that Tomcat isn't URL decoding the filename. Does anyone have any insight into this problem or suggestions about the best way to fix the problem? Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to configure access.log < org.apache.catalina.valves.AccessLogValve >
Hi All, I enabled access log valve in server.xml inorder to dump all the Request info like this: In localhost_access.log : [16/Nov/2005:15:06:49 -0800] "GET /servlet_jsp/examples/jsp/num/numguess.jsp?guess= HTTP/1.1" 200 544 But it's not dumping the requestinfo after reaching a particular size limit. Please let me know what is the size limit and is there anyway to increase the size limit. Thanks in advance, BS 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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Query - Creation of a directory with special characters - _!':!bw"t!#4!a!"w!#4!bw"2 on HP-UX by Tomcat
Hi, I have Tomcat 5.0 running on HP-UX. Under /.java/.userPrefs directory, a directory with special characters *_!':!bw"t!#4!a!"w!#4!bw"2* is created. I suspect Tomcat is creating this dir. Does anyone have information whether this directory is created by Tomcat? Thanks, Sandeep
Re: http response 304 with content
Hello Mark, Sorry, but the bug you quote mentions errors with the HTTP-response headers. My problem is an 304 response with sent content (=content-length >0): the content is e.g. the requested JPG file. kind regards Axel Mark Thomas <[EMAIL PROTECTED]> schrieb: Axel Bartsch wrote: > I am testing with Apache 2.0.49 and tomcat 5.0.28 > > In my Ethereal Trace (Ethereal running on browser PC) (Tracer:browser client > to server) I sometimes see HTTP/1.1 responses 304 (Not Modified). > A message body (content>0) is included in this response. > > According to HTTP protocol a 304 response MUST NOT contain any content: > > from HTTP/1.1 protocol (RFC 2616): > If the client has performed a conditional GET request and access is allowed, > but the document has not been modified, the server SHOULD respond with this > status code. The 304 response MUST NOT contain a message-body, and thus is > always terminated by the first empty line after the header fields. > > Why does this happen? This is a known issue. See http://issues.apache.org/bugzilla/show_bug.cgi?id=13846 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Gesendet von Yahoo! Mail - Jetzt mit 1GB kostenlosem Speicher
Tomcat 5.5 and Logging - any plain english instructions anywhere?
Hi all, I am in the process of trying to build a Struts project from scratch, and from the browser perspective it doesn't work, giving the vague error "Servlet action is not available". No worries, I look for catalina.out and/or the localhost_log*, or as a last resort the output of tomcat as shown in Eclipse for a backtrace that might yield a clue - and I get nothing. So I look for the logging docs for Tomcat. Having read through it a few times, I have figured out that catalina.out and localhost_log* are gone, to be replaced with... what? The docs at http://tomcat.apache.org/tomcat-5.5-doc/logging.html describe a complex logging infrastructure, with a myriad of options, levels, choices and structures which to me are completely incomprehensible. All I need is the switch to "turn it on". Does anyone have a document of some kind that explains how to coax logging out of tomcat 5.5? I don't care about the 1000 things I can do, but rather the 1 thing I should do to get the backtrace that might reveal what "Servlet action is not available" means. A Howto in other words. Does anybody have such a document anywhere? I could find nothing in the FAQ. Regards, Graham -- smime.p7s Description: S/MIME Cryptographic Signature
RE: Tomcat 5.5 and Logging - any plain english instructions anywhere?
Graham, You mention Eclipse. Are you using a version of WebTools? Assuming you are, be aware that the launch configuration created for Tomcat v5.5.x is missing the JVM argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager that you would normally get from Tomcat 5.5's startup batch scripts. Adding this argument manually would likely make the logging reappear. HTH. Cheers, Larry > -Original Message- > From: Graham Leggett [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 16, 2005 8:15 AM > To: users@tomcat.apache.org > Subject: Tomcat 5.5 and Logging - any plain english > instructions anywhere? > > Hi all, > > I am in the process of trying to build a Struts project from > scratch, and from the browser perspective it doesn't work, > giving the vague error "Servlet action is not available". > > No worries, I look for catalina.out and/or the > localhost_log*, or as a last resort the output of tomcat as > shown in Eclipse for a backtrace that might yield a clue - > and I get nothing. > > So I look for the logging docs for Tomcat. Having read > through it a few times, I have figured out that catalina.out > and localhost_log* are gone, to be replaced with... what? > > The docs at http://tomcat.apache.org/tomcat-5.5-doc/logging.html > describe a complex logging infrastructure, with a myriad of > options, levels, choices and structures which to me are > completely incomprehensible. > > All I need is the switch to "turn it on". > > Does anyone have a document of some kind that explains how to > coax logging out of tomcat 5.5? I don't care about the 1000 > things I can do, but rather the 1 thing I should do to get > the backtrace that might reveal what "Servlet action is not > available" means. A Howto in other words. > > Does anybody have such a document anywhere? I could find > nothing in the FAQ. > > Regards, > Graham > -- > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse setup questions
I want to be able export my java classes, automatically when the project is built. I do not want to export them manually by clicking on file ->export etc. Is there any such setting ? Thanks ! On 11/16/05, Seak, Teng-Fong <[EMAIL PROTECTED]> wrote: > > Some more precisions are needed. What "output" type are you > referencing to? Jar? War? Or something else? > > But in any case, the general way is File > Export, and then choose > your type and in the next screen, specify your export destination. You > could use default settings for the rest. > > Developer Developer wrote: > > > Hello All, > > i am posting this question to the tomcat user group assuming people in > this > >group are familiar with eclipse IDE. > > I am new to eclipse IDE. I have a question on the setup. I have 3 > different > >packages built in ecplise. I want to be able to direct the ouput of these > >packages to 3 different folders that are outside my workspace. > >Do you know how I can do that ? > > Thanks a lot. > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Tomcat 5.5 and Logging - any plain english instructions anywhere?
Larry Isaacs wrote: You mention Eclipse. Are you using a version of WebTools? No (or not that I am aware of). Tomcat is launched using the Sysdeo plugin. Assuming you are, be aware that the launch configuration created for Tomcat v5.5.x is missing the JVM argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager that you would normally get from Tomcat 5.5's startup batch scripts. Adding this argument manually would likely make the logging reappear. HTH. I added the parameter to the sysdeo config, and now the logs are displaying in red (no idea why). Still not the slightest word from the web application itself, all I get is tomcat's general systems logging messages, nothing else. Regards, Graham -- smime.p7s Description: S/MIME Cryptographic Signature
RE: Eclipse setup questions
We use the MyEclipse range of plugins www.myeclipseide.com which comes with a Deployer plugin to do this. I've not figured out how to JAR and distribute to several webapps though yet. -Original Message- From: Developer Developer [mailto:[EMAIL PROTECTED] Sent: 16 November 2005 13:37 To: Tomcat Users List Subject: Re: Eclipse setup questions I want to be able export my java classes, automatically when the project is built. I do not want to export them manually by clicking on file ->export etc. Is there any such setting ? Thanks ! On 11/16/05, Seak, Teng-Fong <[EMAIL PROTECTED]> wrote: > > Some more precisions are needed. What "output" type are you > referencing to? Jar? War? Or something else? > > But in any case, the general way is File > Export, and then choose > your type and in the next screen, specify your export destination. You > could use default settings for the rest. > > Developer Developer wrote: > > > Hello All, > > i am posting this question to the tomcat user group assuming people > > in > this > >group are familiar with eclipse IDE. > > I am new to eclipse IDE. I have a question on the setup. I have 3 > different > >packages built in ecplise. I want to be able to direct the ouput of > >these packages to 3 different folders that are outside my workspace. > >Do you know how I can do that ? > > Thanks a lot. > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- Disclaimer: The information contained within this e-mail is confidential and may be privileged. This email is intended solely for the named recipient only; if you are not authorised you must not disclose, copy, distribute, or retain this message or any part of it. If you have received this message in error please contact the sender at once so that we may take the appropriate action and avoid troubling you further. Any views expressed in this message are those of the individual sender. QAS Limited has the right lawfully to record, monitor and inspect messages between its employees and any third party. Your messages shall be subject to such lawful supervision as QAS Limited deems to be necessary in order to protect its information, its interests and its reputation. Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS Limited cannot guarantee that attachments are virus free or compatible with your systems and does not accept any liability in respect of viruses or computer problems experienced. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat and wbs
Hi and thanx again. I played a lot with the listener and also the tag. Both lead me to this question: Is Axis keeping a reference of the according web service that I could reach? The reason is I can't instanciate 'yourService' from the listener because obscur reasons ;-) So I wonder if there was a getWebService/getServlet method, which obviously I did not find, or a kind of workaround to achieve the same goal? Thanx, --mike Reynir Hubner wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi, you need to insert something like this : com.your.package.YourContextListener your servlet class might look something like this : import javax.servlet.*; public final class MyContextListener implements ServletContextListener { private ServletContext context = null; public void contextInitialized(ServletContextEvent event) { this.context = event.getServletContext(); yourService.start(); } public void contextDestroyed(ServletContextEvent event) { this.context = null; yourService.stop(); } } hope it helps - -reynir Michael Niemaz wrote: Thanx Reynir, it helps ... although I wouldn't mind if you could give me more details ;-) I have many web services that are initialised only when invoked the first time. I must admit that this init part looks a bit confused to me. Any example based on servlet or singleton would be very much appreciated ;-) Thanx, --mike Reynir Hubner wrote: there are several implementations of webservices available. the one most successfull is axis from apache, you should read all about it on the axis website.. http://ws.apache.org/axis/ of course it dependes on what you are going to do, but starting some service at application-startup can be done via web.xml (of your application) either by a custom listener or servlet loading up your service, sometimes done by using a singleton. hope it helps -reynir Michael Niemaz wrote: Hi all, Could someone explain me or point me to an explanation of how tomcat initialize web services? I'd like to initialize them automatically at tomcat start-up instead of just before their invocation. Thanx, --mike - 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] -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDegnk19KgIQihNwgRAnOAAKCU3U9jaTj0swmjKQyesb/Suzn+fACgxRLS D/gYAtomCIdqnmqZK201ULk= =EdDB -END PGP SIGNATURE- - 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 5.5 and Logging - any plain english instructions anywhere?
You could try modifying common/classes/logging.properties to see if you can increase the output. I haven't worked with Struts enough to say what logging output you should expect. If no luck, then there's always Google. :) Cheers, Larry > -Original Message- > From: Graham Leggett [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 16, 2005 8:42 AM > To: Tomcat Users List > Subject: Re: Tomcat 5.5 and Logging - any plain english > instructions anywhere? > > Larry Isaacs wrote: > > > You mention Eclipse. Are you using a version of WebTools? > > No (or not that I am aware of). Tomcat is launched using the > Sysdeo plugin. > > > Assuming you are, be aware that the launch configuration > created for > > Tomcat v5.5.x is missing the JVM argument: > > > > -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager > > > > that you would normally get from Tomcat 5.5's startup batch > scripts. > > Adding this argument manually would likely make the logging > reappear. > > HTH. > > I added the parameter to the sysdeo config, and now the logs > are displaying in red (no idea why). > > Still not the slightest word from the web application itself, > all I get is tomcat's general systems logging messages, nothing else. > > Regards, > Graham > -- > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5 and Logging - any plain english instructions anywhere?
Larry Isaacs wrote: You could try modifying common/classes/logging.properties to see if you can increase the output. Tomcat doesn't ship with such a config file, but it gives a sample one in the logging docs. Having tried to do some semi intelligent cut and pasting to create a logging config for my webapp, I now have a zero length logfile. I have listed logging.properties below, can anybody see anything wrong with it? I haven't worked with Struts enough to say what logging output you should expect. If no luck, then there's always Google. :) This is one of those Google searches that falls into the "all questions no answers" category, it was the first thing I tried :( Here is logging.properties: handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, \ 3manager.org.apache.juli.FileHandler, 4admin.org.apache.juli.FileHandler, \ 5rfs.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler .handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler # Handler specific properties. # Describes specific configuration info for Handlers. 1catalina.org.apache.juli.FileHandler.level = FINE 1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 1catalina.org.apache.juli.FileHandler.prefix = catalina. 2localhost.org.apache.juli.FileHandler.level = FINE 2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 2localhost.org.apache.juli.FileHandler.prefix = localhost. 3manager.org.apache.juli.FileHandler.level = FINE 3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 3manager.org.apache.juli.FileHandler.prefix = manager. 4admin.org.apache.juli.FileHandler.level = FINE 4admin.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 4admin.org.apache.juli.FileHandler.prefix = admin. 5rfs.org.apache.juli.FileHandler.level = FINE 5rfs.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 5rfs.org.apache.juli.FileHandler.prefix = rfs. java.util.logging.ConsoleHandler.level = FINE java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter # Facility specific properties. # Provides extra control for each logger. org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = \ 2localhost.org.apache.juli.FileHandler org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = \ 3manager.org.apache.juli.FileHandler org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin].level = INFO org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin].handlers = \ 4admin.org.apache.juli.FileHandler org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/rfs].level = FINE org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/rfs].handlers = \ 5rfs.org.apache.juli.FileHandler # For example, set the com.xyz.foo logger to only log SEVERE # messages: #org.apache.catalina.startup.ContextConfig.level = FINE #org.apache.catalina.startup.HostConfig.level = FINE #org.apache.catalina.session.ManagerBase.level = FINE Regards, Graham -- smime.p7s Description: S/MIME Cryptographic Signature
How to add client certificate to use in Servlets
Hello, I'm using Tomcat 5.5.4 and have implemented a webapplication that connects to other servers to look for the existence of certain URLs and to load soap-data using the Jakarta Axis-Library. Now there is a remote server reachable via an https-adress, and that server should accept client certificate-based authentication. And here is where I'm lost for now. I have a client certificate in pem-format (but I can have any other format, too, if I need). So far I only found information about how to add server certificates to a keystore-file and how to set tomcat to use that file for its own https-connector. Question: How do I tell Tomcat to use that client certificate when a servlet connects to that remote server? What format should the client certificate have? Thank you in advance, Oliver Schoenwald University of Hagen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
session expires dealing with big objects
Hi all. Some times my session expires wrongly when I deal with a bean very big. My bean is a Struts form bean. I didn't touch conf/server.xml and conf/web.xml of tomcat distribution In my web.xml I put 180 I've done such a file context.xml: Previously I had tried with PersistentManager, and with tomcat 4.1.24, 5.5.0 y 5.5.7 The session expires wrongly only with big object. I tried it in different computers and I notice that smaller is PC mas frequently happens the error. Have I configured something wrong? Is it possible I have to configure some parameter to swap? Is it possible to configure session size in some way? Thanks a lot in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat and wbs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm not really an axis specialist, so I guess you might want either post a new topic on this list, or post a question onto the axis-user list. regards, - -reynir Michael Niemaz wrote: > Hi and thanx again. > I played a lot with the listener and also the tag. > Both lead me to this question: > Is Axis keeping a reference of the according web service that I could > reach? > The reason is I can't instanciate 'yourService' from the listener > because obscur reasons ;-) > So I wonder if there was a getWebService/getServlet method, which > obviously I did not find, or a kind of workaround to achieve the same goal? > > Thanx, > > --mike > > Reynir Hubner wrote: > > hi, > you need to insert something like this : > > > com.your.package.YourContextListener > > > > your servlet class might look something like this : > import javax.servlet.*; > > public final class MyContextListener implements ServletContextListener > { >private ServletContext context = null; >public void contextInitialized(ServletContextEvent event) { >this.context = event.getServletContext(); > yourService.start(); >} >public void contextDestroyed(ServletContextEvent event) { >this.context = null; > yourService.stop(); >} > } > > > hope it helps > -reynir > > > > > > Michael Niemaz wrote: > > Thanx Reynir, it helps ... although I wouldn't mind if you could give me more details ;-) I have many web services that are initialised only when invoked the first time. I must admit that this init part looks a bit confused to me. Any example based on servlet or singleton would be very much appreciated ;-) Thanx, --mike Reynir Hubner wrote: there are several implementations of webservices available. the one most successfull is axis from apache, you should read all about it on the axis website.. http://ws.apache.org/axis/ of course it dependes on what you are going to do, but starting some service at application-startup can be done via web.xml (of your application) either by a custom listener or servlet loading up your service, sometimes done by using a singleton. hope it helps -reynir Michael Niemaz wrote: >>> Hi all, >>> Could someone explain me or point me to an explanation of how tomcat >>> initialize web services? I'd like to initialize them automatically at >>> tomcat start-up instead of just before their invocation. >>> >>> Thanx, >>> >>> --mike >>> >>> - >>> 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] -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDe1l719KgIQihNwgRAu7WAKCILT+cxg/upceaGCZ/oy51P2ZSSgCggq7C ZFXNtEyztSrgAKyhYdgb1Oo= =hGHN -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
and
Hello, I was used define some taglibs manually in web.xml when using http://java.sun.com/dtd/web-app_2_3.dtd as deployment descriptor. Now I tried to upgrade but isn't available any longer (http://java.sun.com/xml/ns/j2ee and http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd). How can I define taglibs anyway? For example: http://test.com/example /WEB-INF/tlds/example.tld Regards Marten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: advice on auto logout servlet
I did an AJAX version of this a couple of months ago. The slight gotcha is that the AJAX request prolongs the life of the session (you can't, it seems, override the cookie for AJAX requests) so the interval has to be slightly longer than the expiry time for the session. Reynir Hubner wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I would suggest that you do this by using somethinglike JSON or AJAX. See jasonspec: http://www.crockford.com/JSON/index.html You could make the client query your server, in some interval and check the session state. hope it helps - -reynir Mark wrote: Is there any way to allow servlets to auto-logout a user when the timeout has been reached. Right now, I have tomcat configured for a 20 minute session timeout. When the session times out, the user gets no notification of this event. Is there any way to show the user that they have logged out? Thank you. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDeeqn19KgIQihNwgRAqT8AJ9ijf9kZZlldgjRTcAEtua+89enKQCgnqjm iuCZACbq4A/JkmtB5yiIc8M= =HSCq -END PGP SIGNATURE- - 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: and
On 11/16/05, Marten Lehmann <[EMAIL PROTECTED]> wrote: > Hello, > > I was used define some taglibs manually in web.xml when using > http://java.sun.com/dtd/web-app_2_3.dtd as deployment descriptor. Now I > tried to upgrade but isn't available any longer > (http://java.sun.com/xml/ns/j2ee and > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd). How can I define > taglibs anyway? For example: The container will be pick up the TLDs from the META-INF/ directory of any jars in the application classpath (ideally, WEB-INF/lib). So, for example, configuration of 2.4 webapps to use a taglib looks like this: http://jakarta.apache.org/taglibs/doc/rdc-doc/index.html#config -Rahul > > > http://test.com/example > /WEB-INF/tlds/example.tld > > > Regards > Marten > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: advice on auto logout servlet
You can do this strictly client-side, if requiring Javascript isn't a problem (which of course an AJAX-based solution does anyway). Just start a timer from the onLoad event on each page. When 20 minutes has elapsed, you can either pop an alert which is followed by a redirect to some appropriate page, or just do the redirect straight away, whatever you prefer. The down-side is that a user could disable Javascript after the timer has begun but before the timeout occurs. But, of course the session will still expire on the server, so it's probably not a big problem. And you'll need to keep your session timeout and client-side timeout values in sync, but that's pretty minor. Frank Jon Wingfield wrote: I did an AJAX version of this a couple of months ago. The slight gotcha is that the AJAX request prolongs the life of the session (you can't, it seems, override the cookie for AJAX requests) so the interval has to be slightly longer than the expiry time for the session. Reynir Hubner wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I would suggest that you do this by using somethinglike JSON or AJAX. See jasonspec: http://www.crockford.com/JSON/index.html You could make the client query your server, in some interval and check the session state. hope it helps - -reynir Mark wrote: Is there any way to allow servlets to auto-logout a user when the timeout has been reached. Right now, I have tomcat configured for a 20 minute session timeout. When the session times out, the user gets no notification of this event. Is there any way to show the user that they have logged out? Thank you. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDeeqn19KgIQihNwgRAqT8AJ9ijf9kZZlldgjRTcAEtua+89enKQCgnqjm iuCZACbq4A/JkmtB5yiIc8M= =HSCq -END PGP SIGNATURE- - 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] -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: configure Tomcat/5.5.9 By ' set JAVA_OPTS=-Xmx256M '
Nehal, I believe he is talking about windows (startup.bat ?), so there's not ".profile" for the user. NanFei, there are a number of detailed posts on this topic during the last week - search/Google for them. I believe you need to run tomcatw.exe - but I do not have that version. You can also download the ".zip" version of tomcat - it will have startup.bat in it. HTH - Richard > -Original Message- > From: Nehal Sangoi [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 16, 2005 12:55 AM > To: 'Tomcat Users List' > Subject: RE: configure Tomcat/5.5.9 By ' set JAVA_OPTS=-Xmx256M ' > > In user's ".profile" > > -Original Message- > From: NanFei Wang [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 15, 2005 6:45 AM > To: users@tomcat.apache.org > Subject: configure Tomcat/5.5.9 By ' set JAVA_OPTS=-Xmx256M ' > > > Hi, > In Tomcat 5.0, we can configure by ' set JAVA_OPTS=-Xmx256M ' > at the file of startup.bat. > > However, for Tomcat/5.5.9, It start by Service automatically > without a file of startup.bat. > How and where to configure Tomcat/5.5.9 as by ' set > JAVA_OPTS=-Xmx256M ' > > Regards > > NanFei > > > - > 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]
JSP processing other than .jsp?
Hello, how can I define, that e.g. the extension .css shall be processed by tomcat same as a .jsp-file? Regards Marten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP processing other than .jsp?
I assume you need this because you want to place some JSP code inside your stylesheet Two approaches: 1) If you know that ALL of your .css files will need to include JSP code in them, then go to tomcat_dir/conf/web.xml and add another like so: jsp *.css 2) If you need to place JSP code in just one or two .css files, I would not start messing with server specific configurations and just rename those .css files to have extension of .jsp. So, now you will have a stylesheet file with .jsp. It seems weird and unusual, but really doesn't make any difference as far as your HTML/JSP page is concerned. Just point the link to the .jsp page instead in your HTML/JSP page: Hope that helps. Yaakov. On 11/16/05, Marten Lehmann <[EMAIL PROTECTED]> wrote: > Hello, > > how can I define, that e.g. the extension .css shall be processed by > tomcat same as a .jsp-file? > > Regards > Marten > > - > 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: JSP processing other than .jsp?
FYI, I had a case once where I needed to make my CSS files JSP's because I was using HTC's and for some reason I couldn't get the path mappings to work right unless I used request.getContextPath() to prefix the HTC names... more than likely just my mistake somewhere, but making it a JSP (as Yaakov says, just renaming it to .jsp) did the trick. I would personally prefer that approach because should you ever need to move to another app server, or even a hosted environment like I moved to a few months back, this way you won't have to mess with server settings, or getting some grumpy old admin to do it :) Frank Yaakov Chaikin wrote: I assume you need this because you want to place some JSP code inside your stylesheet Two approaches: 1) If you know that ALL of your .css files will need to include JSP code in them, then go to tomcat_dir/conf/web.xml and add another like so: jsp *.css 2) If you need to place JSP code in just one or two .css files, I would not start messing with server specific configurations and just rename those .css files to have extension of .jsp. So, now you will have a stylesheet file with .jsp. It seems weird and unusual, but really doesn't make any difference as far as your HTML/JSP page is concerned. Just point the link to the .jsp page instead in your HTML/JSP page: Hope that helps. Yaakov. On 11/16/05, Marten Lehmann <[EMAIL PROTECTED]> wrote: Hello, how can I define, that e.g. the extension .css shall be processed by tomcat same as a .jsp-file? Regards Marten - 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] -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP processing other than .jsp?
--- "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote: > FYI, I had a case once where I needed to make my CSS > files JSP's because > I was using HTC's and for some reason I couldn't get > the path mappings > to work right unless I used request.getContextPath() > to prefix the HTC > names... more than likely just my mistake somewhere, > but making it a JSP > (as Yaakov says, just renaming it to .jsp) did the > trick. > > I would personally prefer that approach because > should you ever need to > move to another app server, or even a hosted > environment like I moved to > a few months back, this way you won't have to mess > with server settings, > or getting some grumpy old admin to do it :) > > Frank > > Yaakov Chaikin wrote: > > I assume you need this because you want to place > some JSP code inside > > your stylesheet > > > > Two approaches: > > 1) If you know that ALL of your .css files will > need to include JSP > > code in them, then go to tomcat_dir/conf/web.xml > and add another > > like so: > > > > jsp > >*.css > > > > > > 2) If you need to place JSP code in just one or > two .css files, I > > would not start messing with server specific > configurations and just > > rename those .css files to have extension of .jsp. > So, now you will > > have a stylesheet file with .jsp. It seems weird > and unusual, but > > really doesn't make any difference as far as your > HTML/JSP page is > > concerned. Just point the link to the .jsp page > instead in your > > HTML/JSP page: > > type="text/css"> > > > > Hope that helps. > > > > Yaakov. > > > > On 11/16/05, Marten Lehmann <[EMAIL PROTECTED]> > wrote: > > > >>Hello, > >> > >>how can I define, that e.g. the extension .css > shall be processed by > >>tomcat same as a .jsp-file? > >> > >>Regards > >>Marten > >> > >>- > >>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] > > > > > > > > > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com > AIM: fzammetti > Yahoo: fzammetti > MSN: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > You can simply add a servlet mapping inside your local web application web.xml for different file types as well. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP processing other than .jsp?
Yaakov Chaikin wrote: > 2) If you need to place JSP code in just one or two .css files, I > would not start messing with server specific configurations and just > rename those .css files to have extension of .jsp. So, now you will > have a stylesheet file with .jsp. It seems weird and unusual, but > really doesn't make any difference as far as your HTML/JSP page is > concerned. Just point the link to the .jsp page instead in your > HTML/JSP page: > Make sure your style sheet is delivered as the proper content-type, though, or Moz-based browsers will ignore it; start the page with <%@ page contentType="text/css" %> or -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk bug serving up flash on non 2003 servers?
Hi Mark, > I have tested the following combination and it works quite happily: > Win XP SP2, fully patched > Apache 2.0.54 > mod_jk 1.2.14 > TC5.5.HEAD > Firefox client and IE6 client Have you tested your config with an swf file? I've got a pretty similar setup, and everything else works fine. > Another thing to check is can you access the swf file on XP if you > connect directly to Tomcat? Yep, checked that, and it works fine. Just not if I go through load balancer. I've also tried it with a regular flash file (non-Laszlo) and it starts to load and then can't seem to complete. cheers, David |-+> | | Mark Thomas | | | <[EMAIL PROTECTED]| | | >| | || | | 11/15/2005 06:09 | | | PM | | | Please respond to| | | "Tomcat Users| | | List"| | || |-+> >-| | | | To: Tomcat Users List | | cc: | | Subject: Re: mod_jk bug serving up flash on non 2003 servers? | >-| [EMAIL PROTECTED] wrote: > Hi Mark, > > Yes, as I mentioned, we can access "non-swf files without a problem". We > have exactly the same setup, I believe, for 2003 Server and XP Sp2 - it > runs from the same installer, which has no checking to distinguish between > the two. > > We also have Apache talking to Tomcat via mod_jk quite happily, except for > swf files. Can you verify that you can access swf files on your setup? > > I believe we work fine with XP sp1. > > Anything else I can check, or info I can provide? How can I do any kind of > debugging? > > cheers, > > David > x54680 Hmmm. Using an installer should eliminate the config issues. It is also odd that it works for all files apart from swf ones. I have tested the following combination and it works quite happily: Win XP SP2, fully patched Apache 2.0.54 mod_jk 1.2.14 TC5.5.HEAD Firefox client and IE6 client Using the latest TC5 code from SVN shouldn't make any difference. The important thing is it proves it can work on XP SP2. My best guess right is soemthing at the OS level. The firewall springs to mind but I can't see how. One suggestion would be to try telneting to your two servers and compare the headers to see what might be different. Another thing to check is can you access the swf file on XP if you connect directly to Tomcat? The only thing I am sure of right now is that this is some form of configuration issue. Mark - 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]
Sharing webapps between linux and windows on single computer
Hi all, I have computer three partitions: Partition 1 : Windows XP (NTFS) - (aka P_NTFS) Partition 2 : SuSE Linux 10.0 (Reiser) - (aka P_RES) Partition 3 : Share (FAT32) - (aka P_FAT32) Tomcat 5.5.12 with J2SE 1.5.0_05 on both SuSE and Windows. I use P_FAT32 for sharing my data files between SuSE and Windows. Since P_FAT32 is FAT32 partition, SuSE reads it as "noexec" in the same way as it reads P_NTFS. (I found from message while booting to SuSE). Unlike to P_NTFS, P_FAT32 is writable from SuSE. P_FAT32 is read by SuSE as "vfat". Things are working well. Somehow I am able to share my thunderbird offline emails and Firefox bookmarks. I was wondering if we can share Tomcat "webapps" in that way. I did few things to do that but could not have success. First I tried to put Tomcat on FAT32 and try to start server. Since SuSE can not able to execute anything (from no exec) flag, I could not able to run the server. Then I tried to run server from P_RES from SuSE. It run well. Things are fine. Then I tried to move webapps directory to P_FAT32 and create link in Tomcat about that tried to run it. No errors or anything but again no page is loading. The default page is fully blank. (I dont know why) I checked that Tomcat is running. Then I gave up. Windows somehow able to operate normally from Tomcat residing at P_FAT32 partition. My question is, is it possible to put only webapps on P_FAT32 while tomcat install files are in P_NTFS and P_RES and configured tomcat to read P_FAT32 webapps directory as "appbase" in host node of server.xml? Have anyone done anything like this before? Only thing I am confused of end of line character since it is different in windows and linux for any file. I mean can it work? I am going to try it but if anyone had done something like this, please guide me. Thanks in advance. Regards, D __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Query - Creation of a directory with special characters - _!':!bw"t!#4!a!"w!#4!bw"2 on HP-UX by Tomcat
Sandeep G R wrote: Hi, I have Tomcat 5.0 running on HP-UX. Under /.java/.userPrefs directory, a directory with special characters *_!':!bw"t!#4!a!"w!#4!bw"2* is created. I suspect Tomcat is creating this dir. Does anyone have information whether this directory is created by Tomcat? Thanks, Sandeep It is not created explicitly. The files Tomcat does create, are always inthe Tomcat install directory. It might be a side-effect of the JVM or one of the libs we use but it isn't something I have seen before. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: http response 304 with content
hallyday1999 wrote: Hello Mark, Sorry, but the bug you quote mentions errors with the HTTP-response headers. My problem is an 304 response with sent content (=content-length >0): the content is e.g. the requested JPG file. kind regards Axel Do you have a simple test case the reliably demonstrates this issue? If so, create a bug report and attach it. Without a test case there isn't much we can do. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk bug serving up flash on non 2003 servers?
[EMAIL PROTECTED] wrote: Hi Mark, I have tested the following combination and it works quite happily: Win XP SP2, fully patched Apache 2.0.54 mod_jk 1.2.14 TC5.5.HEAD Firefox client and IE6 client Have you tested your config with an swf file? I've got a pretty similar setup, and everything else works fine. Yes, and it was fine. Another thing to check is can you access the swf file on XP if you connect directly to Tomcat? Yep, checked that, and it works fine. Just not if I go through load balancer. I've also tried it with a regular flash file (non-Laszlo) and it starts to load and then can't seem to complete. Anything interesting in the headers? The are plugins for IE and Firefox or you can just use telnet. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
can't get #include to work
I'm trying to include a file as my footer section. I have formatted the section in home.html as: after doing this and viewing the file through my local_host:8080 i don't see the footer.html file showing up. from what I can see I need to enable SSI within tomcat. I'm supposed to add Options +Includes to my httpd.conf or .htaccess file. the problem is I don't ahve eitehr of these files. I created a httpd.conf file and put it in my conf folder, but it still doesn't show up. is there another setting I'm missing? I'm running tomcat 5.5.9 on a windows XP box, I know, shame on me but it's all I have right now. thanks in advance GRB - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can't get #include to work
[EMAIL PROTECTED] wrote: I'm trying to include a file as my footer section. I have formatted the section in home.html as: after doing this and viewing the file through my local_host:8080 i don't see the footer.html file showing up. from what I can see I need to enable SSI within tomcat. I'm supposed to add Options +Includes to my httpd.conf or .htaccess file. This is to install SSI for the Apache web server (httpd). I'm running tomcat 5.5.9 on a windows XP box, I know, shame on me but it's all I have right now. You need to uncomment the SSI servlet definition AND mapping in the conf/web.xml file It sounds like you need to read the Tomcat documentation. The SSI how to would be a good place to start. http://tomcat.apache.org/tomcat-5.5-doc/ssi-howto.html mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
stress test on tomcat
Hi, I have tomcat running on top of apache. I am running some stress test and I got the following problem: I have 1000 threads running for the stresstest. It is very obvious an overloading problem. Is there anything I can tune in apache or tomcat to get rid of the overloading problem? - 16-Nov-2005 2:44:30 PM org.apache.jk.common.ChannelSocket acceptConnections WARNING: Exception executing accept java.net.SocketException: Too many open files William
Michelle Brett-Mitchell is out of the office.
I will be out of the office starting 11/16/2005 and will not return until 11/18/2005. I will respond to your message when I return. Please contact Liz Manning or Thomas Gaffney with any urgent issues. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: configure Tomcat/5.5.9 By ' set JAVA_OPTS=-Xmx256M '
Dear Richard Thank you for your response,my problem have solved by Chuck suggestion. Regards NanFei Dear Chuck, I use just -Xmx256m in another line at the Java Options text area. It work successfully. Thank so much. NanFei The .exe download does not include the scripts, for no discernable reason. However, the scripts are included in the .zip and .tar downloads, should you want to use them. If you're running Tomcat as a service, use tomcat5w.exe from the bin directory to set the various JVM options. The Java tab contains specific spots for heap size parameters; others must be entered in the Java Options text area. - Chuck - Original Message - From: "Richard Mixon" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" ; <[EMAIL PROTECTED]> Sent: Thursday, November 17, 2005 1:02 AM Subject: RE: configure Tomcat/5.5.9 By ' set JAVA_OPTS=-Xmx256M ' Nehal, I believe he is talking about windows (startup.bat ?), so there's not ".profile" for the user. NanFei, there are a number of detailed posts on this topic during the last week - search/Google for them. I believe you need to run tomcatw.exe - but I do not have that version. You can also download the ".zip" version of tomcat - it will have startup.bat in it. HTH - Richard -Original Message- From: Nehal Sangoi [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 16, 2005 12:55 AM To: 'Tomcat Users List' Subject: RE: configure Tomcat/5.5.9 By ' set JAVA_OPTS=-Xmx256M ' In user's ".profile" -Original Message- From: NanFei Wang [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 15, 2005 6:45 AM To: users@tomcat.apache.org Subject: configure Tomcat/5.5.9 By ' set JAVA_OPTS=-Xmx256M ' Hi, In Tomcat 5.0, we can configure by ' set JAVA_OPTS=-Xmx256M ' at the file of startup.bat. However, for Tomcat/5.5.9, It start by Service automatically without a file of startup.bat. How and where to configure Tomcat/5.5.9 as by ' set JAVA_OPTS=-Xmx256M ' Regards NanFei - 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: can't get #include to work
Is that supposed to be a comment and not an include? <%@ include file="myinclude.html" %> --- Mark Thomas <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I'm trying to include a file as my footer section. > I have formatted the section in home.html as: > > > > > > > > after doing this and viewing the file through my > local_host:8080 i don't see the footer.html file > showing up. > > > > from what I can see I need to enable SSI within > tomcat. I'm supposed to add > > > > Options +Includes > > to my httpd.conf or .htaccess file. > This is to install SSI for the Apache web server > (httpd). > > > I'm running tomcat 5.5.9 on a windows XP box, I > know, shame on me but it's all I have right now. > You need to uncomment the SSI servlet definition AND > mapping in the > conf/web.xml file > > It sounds like you need to read the Tomcat > documentation. The SSI how > to would be a good place to start. > > http://tomcat.apache.org/tomcat-5.5-doc/ssi-howto.html > > mark > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple .war files in single tomcat instance
Hi - Iam trying to deploy multiple .war files on a single tomcat instance, but was wondering if theres a way in tomcat, to use the domain name and pick up the corresponding war file. For eg: I have two war files sample1.war and sample2.war deployed on a single tomcat instance, and lets say I have DNS entries sample1.com and sample2.com to point to this particular instance of the tomcat server, now when I hit sample1.com, how can I configure tomcat to pick sample1.war and similarly for sample2. Right now in order to hit sample1.war, I type in my URL "localhost:8080/sample1". Thanks in advance for any help on this. Thanks, Praveen __ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple .war files in single tomcat instance
Praveen wrote: Hi - Iam trying to deploy multiple .war files on a single tomcat instance, but was wondering if theres a way in tomcat, to use the domain name and pick up the corresponding war file. For eg: I have two war files sample1.war and sample2.war deployed on a single tomcat instance, and lets say I have DNS entries sample1.com and sample2.com to point to this particular instance of the tomcat server, now when I hit sample1.com, how can I configure tomcat to pick sample1.war and similarly for sample2. Right now in order to hit sample1.war, I type in my URL "localhost:8080/sample1". Thanks in advance for any help on this. This looks like a case for having an Apache HTTPD server in front of tomcat. The mod_rewrite httpd module can do this I expect. Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
case sensitive username
Hi folks, I am using UserDatabaseRealm with tomcat-users.xml and have noticed that the username returned by request.getUserPrincipal() is turned to lower case. Is there a flag that can tell tomcat not to change case ? Thanks. Jo.-
JSP processing other than .jsp?
Hi- In some cases, it may be desirable to include CSS or JavaScript files so that they are delivered in-line. For example: <[EMAIL PROTECTED] file="styles/style.css" %> or <[EMAIL PROTECTED] file="styles/style.css.jspf" %> Unless I'm mistaken, JSP tags in files included in this manner should be processed regardless of the file extension. -Terence M. Bandoian P.S. My apologies for the previous reply. [EMAIL PROTECTED] wrote: >>> Hello, >>> >>> how can I define, that e.g. the extension .css shall be processed by tomcat same as a .jsp-file? >>> >>> Regards >>> Marten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP processing other than .jsp?
That is correct. However, it's much better not to do this since it wastes a lot of bandwidth by sending the CSS code with every page. Much better to use and let the browser cache the file instead. Yaakov. On 11/16/05, Terence M. Bandoian <[EMAIL PROTECTED]> wrote: > Hi- > > In some cases, it may be desirable to include CSS or JavaScript files so > that they are delivered in-line. For example: > ><[EMAIL PROTECTED] file="styles/style.css" %> > or ><[EMAIL PROTECTED] file="styles/style.css.jspf" %> > > Unless I'm mistaken, JSP tags in files included in this manner should be > processed regardless of the file extension. > > -Terence M. Bandoian > > P.S. My apologies for the previous reply. > > > [EMAIL PROTECTED] wrote: > > >>> Hello, > >>> > >>> how can I define, that e.g. the extension .css shall be processed by > tomcat same as a .jsp-file? > >>> > >>> Regards > >>> Marten > > > > - > 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: Multiple .war files in single tomcat instance
Hi Praveen, Simon On 17 Nov 2005 at 14:57, Simon Kitching wrote: > Praveen wrote: > > Hi - Iam trying to deploy multiple .war files on a > > single tomcat instance, but was wondering if theres a > > way in tomcat, to use the domain name and pick up the > > corresponding war file. > > For eg: I have two war files sample1.war and > > sample2.war deployed on a single tomcat instance, and > > lets say I have DNS entries sample1.com and > > sample2.com to point to this particular instance of > > the tomcat server, now when I hit sample1.com, how can > > I configure tomcat to pick sample1.war and similarly > > for sample2. > > > > Right now in order to hit sample1.war, I type in my > > URL "localhost:8080/sample1". > > > > Thanks in advance for any help on this. > > This looks like a case for having an Apache HTTPD server in front of > tomcat. The mod_rewrite httpd module can do this I expect. I'm sure that would work, but you don't have to install Apache to do what Praveen wants to do. Tomcat provides "Virtal Host" functionality that does exactly what Praveen wants to do. Praveen, I suggest you start by reading the Tomcat documentation _for your version of Tomcat_ about Virtual Hosts. The following link is for Tomcat 5.5 - if you're not using Tomcat 5.5, look up the equivalent page for your version: http://tomcat.apache.org/tomcat-5.5-doc/config/host.html If you have any specific problems after reading that, feel free to post them back to the list. Rob HIlls NetPaver Pty Ltd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can't get #include to work
no, SSI scripts aren't recognized by some browsers, so to avoid letting them error out the SSI is wrapped in comments and older browsers will ignore it. The section on directives on this page gives an example: http://tomcat.apache.org/tomcat-5.5-doc/ssi-howto.html - Original Message - From: "ALEX HYDE" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Wednesday, November 16, 2005 4:50 PM Subject: Re: can't get #include to work Is that supposed to be a comment and not an include? <%@ include file="myinclude.html" %> --- Mark Thomas <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: > I'm trying to include a file as my footer section. I have formatted the section in home.html as: > > > > after doing this and viewing the file through my local_host:8080 i don't see the footer.html file showing up. > > from what I can see I need to enable SSI within tomcat. I'm supposed to add > > Options +Includes > to my httpd.conf or .htaccess file. This is to install SSI for the Apache web server (httpd). > I'm running tomcat 5.5.9 on a windows XP box, I know, shame on me but it's all I have right now. You need to uncomment the SSI servlet definition AND mapping in the conf/web.xml file It sounds like you need to read the Tomcat documentation. The SSI how to would be a good place to start. http://tomcat.apache.org/tomcat-5.5-doc/ssi-howto.html mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.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]
Tomcat overwrites error response body
Hi, Tomcat sends back a default error HTML page, even when I don't want it to. I want my servlet to send its own error response body. I am doing the following in my servlet doPut method. java.io.PrintWriter pr = resp.getWriter(); pr.println(e.getErrorCode().serialize()); resp.sendError(e.getCode()); This does not work. Tomcat sends me a HTML page which I don't want. What am I missing here. Thanks -Anurag - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can't get #include to work
Thanks Mark, I made the changes to the conf/web.xml. after doing that, however, I still can't get any of the SSI scripts to run. any other help would be appreciated. thanks, GRB - Original Message - From: "Mark Thomas" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Wednesday, November 16, 2005 2:56 PM Subject: Re: can't get #include to work [EMAIL PROTECTED] wrote: I'm trying to include a file as my footer section. I have formatted the section in home.html as: after doing this and viewing the file through my local_host:8080 i don't see the footer.html file showing up. from what I can see I need to enable SSI within tomcat. I'm supposed to add Options +Includes to my httpd.conf or .htaccess file. This is to install SSI for the Apache web server (httpd). I'm running tomcat 5.5.9 on a windows XP box, I know, shame on me but it's all I have right now. You need to uncomment the SSI servlet definition AND mapping in the conf/web.xml file It sounds like you need to read the Tomcat documentation. The SSI how to would be a good place to start. http://tomcat.apache.org/tomcat-5.5-doc/ssi-howto.html mark - 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: Sharing webapps between linux and windows on single computer
Dhaval Patel wrote: My question is, is it possible to put only webapps on P_FAT32 while tomcat install files are in P_NTFS and P_RES and configured tomcat to read P_FAT32 webapps directory as "appbase" in host node of server.xml? Have anyone done anything like this before? Only thing I am confused of end of line character since it is different in windows and linux for any file. I mean can it work? I am going to try it but if anyone had done something like this, please guide me. Of course. For each VirtualHost in TC (including "localhost"), you can define "appBase" directory. Just let it point to your P_FAT32. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]