Why do I need to run IIS6 in IIS5 Isolation Mode
All, I'm a bit confused on why I need to set my IIS6 installation into IIS5 Isolation mode. I have installed the isapi_redirect.dll file as a Filter and Extension in standard IIS6 mode and it all works fine. The version of the dll is 1.2.15 on a Windows 2003 server, connecting to the Embedded Tomcat (5.0) under JBOSS 3.0.27 on a Solaris 8 Sun Server. My concern is that while it may appear to be working, something nasty is going to happen once its in a live environment and being hit a lot harder. Thanks Richard
RE: problem with tomcat 5.5.9
I seem to recall that on RH, all files are mmap'd and that can occupy seemingly huge amounts of memory, when in fact it is all buffer cache and will be collected by the OS if actually needed for something else. Could it be logging in your app (or Tomcat) is writing a lot of data to files? Tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 2:43 AM To: users@tomcat.apache.org Subject: RE: problem with tomcat 5.5.9 Hi, Small update on the problem mentioned We did not found any memory leak, but memory footprint is increasing. We observed that tomcat's memory footprint (not the heap size) keeps increasing if we run it for a long time under constant load. Initially it was 305 MB, but after running it for 12 hours continuously, it increased to 1153 MB. We are running the server on Red Hat Linux AS 3.0. Thanks in advance, Rajesh Gannarapu -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 9:15 AM To: users@tomcat.apache.org Subject: RE: problem with tomcat 5.5.9 Hi, Yeah, profiler indicates the Tomcat Objects as memory leak. -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Monday, January 23, 2006 11:25 PM To: Tomcat Users List Subject: Re: problem with tomcat 5.5.9 [EMAIL PROTECTED] wrote: We observed that tomcat's memory footprint (not the heap size) keeps increasing if we run it for a long time under constant load. Initially it was 305 MB, but after running it for 12 hours continuously, it increased to 1153 MB. We are running the server on Red Hat Linux AS 3.0. We are using Tomcat version: 5.5.9 and we checked that the application is not the cause for memory leak (checked with Jprobe Profiler). Did the profiler indicate any memory leak? If so where was it? Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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 proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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 proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.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]
Re: Why do I need to run IIS6 in IIS5 Isolation Mode
Powell, Richard wrote: All, I'm a bit confused on why I need to set my IIS6 installation into IIS5 Isolation mode. You don't. It works perfectly on 2K3 under IIS6 mode. However, in that case it can be loaded couple of times if you have vhost process separation. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with custom Realm and class loading (long)
Hi, I hope someone will help with this. I'm running Tomcat 5.5 on the front-end and Jboss 4.0.3 in the back end, running with Java 5. We designed our security module, so I wrote a custom Realm by extending RealmBase. I put the Realm under server/lib. The realm uses a Business Delegate, which in turn uses a Service Locator to get the reference to a remote EJB home interface. Since the Business Delegates and Service Locator are in common utility libraries, I had to put also those under server/lib, otherwise at startup Tomcat said it couldn't find the classes the Realm was dependent on. The realm started fine and I must say...it seemed to work fine. Until the delegate performs a PortableRemoteObject.narrow() on the EJB remote home proxy received by Jboss (Please note! The lookup on Jboss from the Service Locator goes fine, it returns a proxy). Here I get a ClassCastException. Now the funny part. I applied the custom Realm also the the Tomcat admin application, which you know is deployed under server. The same Realm, the same Service Locator and Delegates this time work fine, the EJB remote home is narrowed without problems and I can create a Session Bean component interface. The same classes containing Service Locator and Business Delegates are deployed also within our web apps, in the WEB-INF/lib folder. So we have got those classes under server/lib and under the WEB-INF/lib of all our web apps. I suspect that there may be a classloading issues. But I can't move the realm classes in the shared/lib folder, since Tomcat complains at startup that the realm classes must be in the server/lib folder, so the same classes must be deployed under server/lib and WEB-INF/lib (or shared/lib) of our web apps. How could I solve this problem? Why does the admin app run fine, whereas (note that the realm gets invoked for our web-apps, it's the service locator which generates the ClassCastException) another web-app (under the /webapps folder) doesn't? Is there a way to tell Tomcat that the Realm classes should be searched in another folder than server/lib? (This way I could put the classes in shared/lib and probably I could solve the problem). Thank you for any help. Marco Tedone Amplefuture Ltd, Amplefuture House, The Quadrant, 135 Salusbury Road, London NW6 6RJ Switchboard 0870 333 0 777 http://www.amplefuture.com/ CONFIDENTIALITY NOTICE The contents of this e-mail are for the named addressee only. It contains information which may be confidential and which may also be privileged. If you are not the named addressee of this e-mail, you may not copy or use it, or forward or otherwise disclose it to anyone else. If you have received this e-mail in error, please e-mail the sender by replying to this message and then fully delete it from your system. Anything in this e-mail, which does not relate to the official business of Amplefuture Group, is neither given nor endorsed by the Group. Any views or opinions presented are solely those of the author and do not necessarily represent those of the Group. E-mails are not secure and cannot be guaranteed to be error free as they may be intercepted, amended, lost, destroyed or they may contain viruses. Anyone who communicates with us by e-mail is taken to accept these risks. Amplefuture Group reserves the right to monitor e-mail communications from both external and internal sources for the purposes of ensuring correct and appropriate use of our communication equipment. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XML parser advice
Hi Folks We have a webapp running within Tomcat 5.0. I need to develop some XML functionality - basically output the contents of a number of db tables, adhering to an XML schema that I have developed. It's 2 1/2 years since I have done any XML work and I am sure that things have moved on apace since then. What is the best parser to use with TC. Is it still Xerces? Are there any recommended resources online that highlight current best practice? Any pointers much appreciated. TIA - Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XML parser advice
If you've got an XML schema defined, use Castor (xsl to Java and viceversa). It perfoms all validations for you and reading/writing to input/output streams. HTH, Marco -Original Message- From: Adam Lipscombe [mailto:[EMAIL PROTECTED] Sent: 24 January 2006 13:43 To: 'Tomcat Users List' Subject: XML parser advice Hi Folks We have a webapp running within Tomcat 5.0. I need to develop some XML functionality - basically output the contents of a number of db tables, adhering to an XML schema that I have developed. It's 2 1/2 years since I have done any XML work and I am sure that things have moved on apace since then. What is the best parser to use with TC. Is it still Xerces? Are there any recommended resources online that highlight current best practice? Any pointers much appreciated. TIA - Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ This e-mail has been scanned for viruses by the Amplefuture e-mail security system - powered by MessageLabs. http://www.amplefuture.com. __ Amplefuture Ltd, Amplefuture House, The Quadrant, 135 Salusbury Road, London NW6 6RJ Switchboard 0870 333 0 777 http://www.amplefuture.com/ CONFIDENTIALITY NOTICE The contents of this e-mail are for the named addressee only. It contains information which may be confidential and which may also be privileged. If you are not the named addressee of this e-mail, you may not copy or use it, or forward or otherwise disclose it to anyone else. If you have received this e-mail in error, please e-mail the sender by replying to this message and then fully delete it from your system. Anything in this e-mail, which does not relate to the official business of Amplefuture Group, is neither given nor endorsed by the Group. Any views or opinions presented are solely those of the author and do not necessarily represent those of the Group. E-mails are not secure and cannot be guaranteed to be error free as they may be intercepted, amended, lost, destroyed or they may contain viruses. Anyone who communicates with us by e-mail is taken to accept these risks. Amplefuture Group reserves the right to monitor e-mail communications from both external and internal sources for the purposes of ensuring correct and appropriate use of our communication equipment. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I take a webapp temporarily out of service using mod_jk?
Prout John - jprout wrote: Hi I am running a JBoss cluster, using tomcat as the Servlet engine. Apache and mod_jk provide load-balancing of requests over the machines in the cluster I need to be able to replace all the URLs in the webapp with a Temporarily out of service page during maintenance, and I need to do this without making any permanent Apache configuration changes and without restarting Apache (Operations is very reluctant to restart Apache). Does anyone know a way to do this? I think there may be a way to use the controls on the mod_jk status page to redirect all requests for a webapp to a different URL ( the Route Redirect input) but this is probably wishful thinking - even if does allow me to redirect requests, it would probably apply to all the webapps in the cluster, which wouldn't meet the requirement. The status page teases me by listing all the JkMounts and JkUnmounts, but doesn't allow me to change them; adding a JkUnmount dynamically would be a good solution. Any Ideas? John If you have a simple setup (1 tomcat, 1 apache) then you should be able to just update your apache config to comment out JkMount for that specific webapp and do a 'apachectl graceful' command to have apache reload. Make sure you have some pages in your apache where your webapp normally resides to nicely inform the user maintenance is being done and they should come back later. When traffic isn't being diverted to the webapp, they will see the mantenance page. After maintenance is complete, update apache again (reenable JkMount) and do another 'apachectl graceful' command. The user's experience should be very nice with no 404 errors, stack traces, or the like. They may lose their session if they are in the middle of a transaction. Handling session fail-over will require a second tomcat and clustering. -David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: (newb) Tomcat servlet mapping problem
Hmm, you're mixing up that /servlet story. Better remove everything named servlet from your environment... It is only confusing. Create app.xml, put the Context path / or /app, and then /FCLxyzServlet or /app/FCLxyzServlet are the correct URLs. Does that make any sense? Georg Yes it does, and thanks for the help Georg. =} - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: writing files with a web application
Glen Mazza wrote: Peter Crowther wrote: From: SOA Work [mailto:[EMAIL PROTECTED] Check the Servlet Spec (version 2.4 is at http://www.jcp.org/aboutJava/communityprocess/final/jsr154/ ) for questions of this kind. From memory in both cases (so treat with caution): 1.) am I allowed to call main methods or programms in my web applicatio? If you wish to be spec-compliant, no. However, it should work depending on Tomcat's security settings. Really? I thought you could do anything within a Servlet that you can do within normal Java code. Also, a restriction on calling the main() method within a class seems nonsensical, because one can simply rename that method. 2.) am I allowed to write files on the disk from within an web application? If I am, something went wrong while trieing ;-) Can i write anywhere or have I to write to my application dir or to temp dir or something. If you wish to be spec-compliant, you can only write to a temporary directory that you ask the context for. However, this may or may not be enforced depending on Tomcat's security settings. This point I'm less sure on, but I would think it's the role of the *servlet container* to be spec-compliant, not the programmer of a servlet. But FWIW, the Tomcat Administration Web Application (separate download in 5.5.x[1]) does alter the XML files located in the Tomcat /conf directory. If the original questioner is having problems altering text files located on the server, perhaps the code for the Admin application would be a good reference for him. Glen [1] http://tomcat.apache.org/download-55.cgi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] I know this is a late response in this thread, but I think the point is still relevant Writing data is a perfectly normal operation in web applications. Admittedly the servlet spec is centered on writing to a database service instead of the filesystem. Webapp designers need to consider one or two things from the beginning if writing to the filesystem. The first being deployment from a web archive (.war file) is intended to be read-only by the servlet spec. Best practice is to configure a path to a place outside the webapp for writing data. If the data needs to be made available to the client, write a basic servlet to read the data and write it to the client. It'll make updating the webapp sooo much easier when you don't have to worry about sorting out basic material in the webapp from all the uploaded/dynamic material. The second item to consider is path. Relative paths are going to be relative to the current working directory when tomcat was started, not the webapp. It'll cause loads of confusion trying to figure out where that uploaded file went until you realize how the relative path was computed. ServletContext.getRealPath may help if you really want to write to the webapp's folder, but this method only returns a path if the webapp is deployed from an uncompressed folder (not a .war file). Ok. I miscounted. Item three to consider: Writing to the filesystem limits portability. Not a problem if this is intended to be an in-house solution, but might be something to consider when trying to sell your solution to customers. -- David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
stdout/logging
On Windows you can set up tomcat as a service. The program that does this (http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html) lets you redirect stdout and stderror to files (see -StdOutput and -StdError options). Is there any way to accomplish this exact same redirection without running tomcat as a service? That is, I want all the output that typically goes to the tomcat console to go to a file instead. If it is not possible, I am curious as to why? -Sam
RE: Cannot access external resources from a webapp when upgrading Tomcat above 5.5.9 version.
From: Gema Berdasco [mailto:[EMAIL PROTECTED] Subject: Re: Cannot access external resources from a webapp when upgrading Tomcat above 5.5.9 version. The situation is just you`ve said. Do you know any other way to access to external resources? You can configure a path for your webapp to use in any number of ways, such as a properties file, init parameters, system properties, JNDI entries, etc. Browse through these for starters: http://wiki.apache.org/tomcat/HowTo#head-45c3314139cb900ddd43dde2ff67153 2e6e844bc http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html http://www.jcp.org/aboutJava/communityprocess/final/jsr154/ (section 9.11) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Log4J output to SYSLOG
Hello, I am using Apache Tomcat Version 5.5.12. I have designed a web application. I am using log4j to output messages in a log. But now, I would like to output the log4j message to the SYSLOG. What should I do? THanks The log4j.properties file is as follows: log4j.rootLogger=debug, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=${catalina.home}/logs/tomcat.log log4j.appender.R.MaxFileSize=10MB log4j.appender.R.MaxBackupIndex=10 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%d{dd-MM- HH:mm:ss} %-5p (%C:%M:%L) - %m%n log4j.logger.lucent.com.bean.UtilBean=DEBUG,R - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Log4J output to SYSLOG
http://logging.apache.org/log4j/docs/api/org/apache/log4j/net/SyslogAppender .html -Original Message- From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 10:04 AM To: 'Tomcat Users List' Subject: Log4J output to SYSLOG Hello, I am using Apache Tomcat Version 5.5.12. I have designed a web application. I am using log4j to output messages in a log. But now, I would like to output the log4j message to the SYSLOG. What should I do? THanks The log4j.properties file is as follows: log4j.rootLogger=debug, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=${catalina.home}/logs/tomcat.log log4j.appender.R.MaxFileSize=10MB log4j.appender.R.MaxBackupIndex=10 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%d{dd-MM- HH:mm:ss} %-5p (%C:%M:%L) - %m%n log4j.logger.lucent.com.bean.UtilBean=DEBUG,R - - 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: Log4J output to SYSLOG
I have modified the log4j.properties file to send the output to SYSLOG and I think it is working Thank you for your help -Original Message- From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED] Sent: martes, 24 de enero de 2006 16:28 To: 'Tomcat Users List' Subject: RE: Log4J output to SYSLOG I am sorry I am a newbee in this sort of thing. I looked at the html file but I still don't really know where/how I am supposed to put the SyslogAppender. I don't want to change (if I can) the source files I would only like to modify the log4j.properties file COuld you be so kind to tell me how? Is it enough if I substitute the RollingFileAppender by SyslogAppender?... I guess not! -Original Message- From: Tim Lucia [mailto:[EMAIL PROTECTED] Sent: martes, 24 de enero de 2006 16:14 To: 'Tomcat Users List' Subject: RE: Log4J output to SYSLOG http://logging.apache.org/log4j/docs/api/org/apache/log4j/net/SyslogAppender .html -Original Message- From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 10:04 AM To: 'Tomcat Users List' Subject: Log4J output to SYSLOG Hello, I am using Apache Tomcat Version 5.5.12. I have designed a web application. I am using log4j to output messages in a log. But now, I would like to output the log4j message to the SYSLOG. What should I do? THanks The log4j.properties file is as follows: log4j.rootLogger=debug, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=${catalina.home}/logs/tomcat.log log4j.appender.R.MaxFileSize=10MB log4j.appender.R.MaxBackupIndex=10 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%d{dd-MM- HH:mm:ss} %-5p (%C:%M:%L) - %m%n log4j.logger.lucent.com.bean.UtilBean=DEBUG,R - - 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]
Tomcat nightly builds
It seems that the Tomcat nightly build *binaries* are invalid.. I'm looking at the the page: http://cvs.apache.org/builds/jakarta-tomcat-5/nightly/ and the two binary images each contain only 45 bytes. Ultimately, I am looking for the most recent changes to the jsp-examples in *binary or war* format. These changes did not make it into 5.5.15. I assume I will be able to find these changes in binary format when the correct nightly build binaries are created. Any idea when a nightly binary will be available for 5.5.x? Also, here is some additional info from Yoav (from an off list email) on this subject. Yoav Shapira wrote: The binary nightly builds do seem to be broken, and the source ones look out of whack too (way, way too big: the source distro should be a little less than 6MB, instead it's 173MB). Moreover, because the name hasn't been changed from jakarta-* to apache-*, I can tell the script generating the nightly builds hasn't been updated in a long time. Thanks -Dave- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk with httpd tomcat
Yeh, I remember getting that too and I too had the right path, but just could not get it to work. Must be some environment variable like LD_LIBRARY_PATH on sun boxes or some unresolved piece of extraneous information. When you compile it into apache, that problem does not exist as it becomes part of the apache build. I do remember I had to run a configure script to make it all work...Getting old is not fun Greg Bobak wrote: Hi, Thansk for the reply. I think I had found some documentation about rebuild Apache with mod_jk bound. I'll have to look again. I've been trying to rebuild mod_jk (to no avail) in hopes that would work, but keep getting this error: could not find /usr/local/apache2/bin/apxs configure: error: You must specify a valid --with-apxs path Of course it is the right path. G. Mike Sabroff [EMAIL PROTECTED] wrote: I had the same problem a while back. I had to do some googling and find the mod_jk source. Trying to compile it was problematic and I also got the unresolved errors I had to rebuild apache with jk as part of the build in order to get it to work. I wish I could remember where I got the source and the instructions, but I am old and forget easily (actually age has nothing to do with italways been like that) I appologize, especially since I spent many hours trying this and that and I know what you are going through I do remember, that the proceedure was different with apache 2.x than it was with 1.3x that I have installed. Greg Bobak wrote: I am using Tomcat 5.0.28 BTW. G. Greg Bobak wrote: I am trying to get mod_jk to work with apache 2.0.55 and get this error on the load module: Syntax error on line 276 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_jk.so into server: ld.so.1: /usr/local/apache2/bin/httpd: fatal: relocation error: file /usr/local/apache2/modules/mod_jk.so: symbol ap_null_cleanup: referenced symbol not found I have looked everywhere, and have been advised to recompile apache, which I have done successfully a few times. This is how I have recompiled: ./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-ssl=shared --enable-ssl --with-ssl=/usr/local/ssl --enable-proxy --enable-proxy-connect --enable-proxy-ftp --enable-proxy-http --enable-so --enable-rule=SHARED_CORE make make install I use make clean between attempts..Ihave tried withou the SHARED_CORE and without the --enable-so because --enable-mods-shared=all should cover that. Still no luck. I am using Solaris 9. Here is some diag info: [EMAIL PROTECTED]:/usr/local/apache2/bin # ldd -d /usr/local/apache2/modules/mod_jk.so libc.so.1 = /usr/lib/libc.so.1 libdl.so.1 =/usr/lib/libdl.so.1 symbol not found: ap_server_root (/usr/local/apache2/modules/mod_jk.so) symbol not found: ap_null_cleanup (/usr/local/apache2/modules/mod_jk.so) symbol not found: dir_module (/usr/local/apache2/modules/mod_jk.so) /usr/platform/SUNW,Serverblade1/lib/libc_psr.so.1 [EMAIL PROTECTED]:/usr/local/apache2/bin # httpd -V Server version: Apache/2.0.55 Server built: Jan 23 2006 13:17:34 Server's Module Magic Number: 20020903:11 Architecture: 32-bit Server compiled with -D APACHE_MPM_DIR=server/mpm/prefork -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_FCNTL_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D HTTPD_ROOT=/usr/local/apache2 -D SUEXEC_BIN=/usr/local/apache2/bin/suexec -D DEFAULT_PIDLOG=logs/httpd.pid -D DEFAULT_SCOREBOARD=logs/apache_runtime_status -D DEFAULT_LOCKFILE=logs/accept.lock -D DEFAULT_ERRORLOG=logs/error_log -D AP_TYPES_CONFIG_FILE=conf/mime.types -D SERVER_CONFIG_FILE=conf/httpd.conf [EMAIL PROTECTED]:/usr/local/apache2/bin # httpd -v Server version: Apache/2.0.55 Server built: Jan 23 2006 13:17:34 Please advise as to what info would be helpful in determining the root cause. Thanks for your help, Greg - What are the most popular cars? Find out at Yahoo! Autos - What are the most popular cars? Find out at Yahoo! Autos -- Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Photos Got holiday prints? See all the ways to get quality prints in your hands ASAP. -- Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 - To unsubscribe, e-mail: [EMAIL PROTECTED] For
J2EE Security roles
Hi, I am using catalina-4.0.4 and Form based authentication with JDBCRealm. I would like to get the roles of a user from session object in which I thinkroles must have been stored by j2ee secuirity realm when user is authenticated Can you please let me know thru which session attribute I can access roles Thanks in advance, --Venkat
mod_proxy_balancer: how to define failover (only)/hot standby behavior?
Hello, using Apache 2.2.0/mod_proxy_balancer, is it possible to configure a proxy balancer with two balancer members, where one of the two only gets the requests, if the other one fails? In mod_jk that was possible using local_worker_only, but with mod_proxy_balancer I have not yet understood how to define such behavior (defining loadfactor=0 would be a way, probably working right away, but is definded to be a number between 1 and 100). As far as I understand at the moment, it is only possible to define an almost-only-hot-standby-behavior, where the failover-backend gets 1/100 of all requests.. Thanks in advance and best regards, Andreas P.S.: I posted the question to the apache-httpd-users mailing list 3 days ago, but it seems to fit better to here..I would post the answer there, if I got one here. Dieses Dokument ist vertraulich und ausschliesslich fuer den Adressaten bestimmt. Falls Sie diese E-Mail versehentlich bekommen haben, informieren Sie uns bitte unverzueglich und loeschen Sie diese Nachricht von Ihrem Computer. Jegliche Art von Reproduktion, Verbreitung, Vervielfaeltigung, Modifikation, Verteilung und/oder Publikation dieser E-Mail Nachricht ist untersagt. Die in dieser E-Mail enthaltenen Angaben und Erklaerungen sind unverbindlich. Haftungsansprueche des Empfaengers jeglicher Art werden ausgeschlossen. Die GZS schliesst ausser fuer den Fall von Vorsatz oder grober Fahrlaessigkeit die Haftung fuer jeglichen Verlust oder Schaeden durch virenbefallene Software oder E-Mails aus. --- This message contains confidential information and is intended only for the named individual. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this message in error and delete this e-message from your system. No reliance may be placed on this message without written confirmation of its contents from an authorized representative. GZS accepts no liability for loss or damage caused by software viruses except in case of gross negligence or willful behaviour. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_proxy_balancer: how to define failover (only)/hot standby behavior?
Actually, dev@httpd.apache.org is best, since that is where the development of this module is being done. I have changed the email headers accordingly. A sort of warm standby is something that I had planned to work into the balancer code post 2.2.1. On Jan 24, 2006, at 11:14 AM, [EMAIL PROTECTED] wrote: Hello, using Apache 2.2.0/mod_proxy_balancer, is it possible to configure a proxy balancer with two balancer members, where one of the two only gets the requests, if the other one fails? In mod_jk that was possible using local_worker_only, but with mod_proxy_balancer I have not yet understood how to define such behavior (defining loadfactor=0 would be a way, probably working right away, but is definded to be a number between 1 and 100). As far as I understand at the moment, it is only possible to define an almost-only-hot-standby-behavior, where the failover-backend gets 1/100 of all requests.. Thanks in advance and best regards, Andreas P.S.: I posted the question to the apache-httpd-users mailing list 3 days ago, but it seems to fit better to here..I would post the answer there, if I got one here. Dieses Dokument ist vertraulich und ausschliesslich fuer den Adressaten bestimmt. Falls Sie diese E-Mail versehentlich bekommen haben, informieren Sie uns bitte unverzueglich und loeschen Sie diese Nachricht von Ihrem Computer. Jegliche Art von Reproduktion, Verbreitung, Vervielfaeltigung, Modifikation, Verteilung und/oder Publikation dieser E-Mail Nachricht ist untersagt. Die in dieser E-Mail enthaltenen Angaben und Erklaerungen sind unverbindlich. Haftungsansprueche des Empfaengers jeglicher Art werden ausgeschlossen. Die GZS schliesst ausser fuer den Fall von Vorsatz oder grober Fahrlaessigkeit die Haftung fuer jeglichen Verlust oder Schaeden durch virenbefallene Software oder E-Mails aus. -- - This message contains confidential information and is intended only for the named individual. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this message in error and delete this e-message from your system. No reliance may be placed on this message without written confirmation of its contents from an authorized representative. GZS accepts no liability for loss or damage caused by software viruses except in case of gross negligence or willful behaviour. - 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: mod_proxy_balancer: how to define failover (only)/hot standby behavior?
[EMAIL PROTECTED] wrote: Hello, using Apache 2.2.0/mod_proxy_balancer, is it possible to configure a proxy balancer with two balancer members, where one of the two only gets the requests, if the other one fails? Sure, use status=disabled and redirect=xxx. So... BalancerMember ajp://xxx status=disabled redirect=yyy (Same as for mod_jk). Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Static mod_jk buil implementation issues(was mod_jk with httpd tomcat)
Found autoconf (did not realize it was a Unix utility): http://www.sunfreeware.com/programlistsparc9.html#autoconf Greg Bobak [EMAIL PROTECTED] wrote: I've found documentation for building mod_jk as a static module in apache here: http://tomcat.apache.org/connectors-doc/howto/apache.html (at the bottom of page). On this step, I get this: bash-2.05# ./buildconf rebuilding srclib/apr/configure buildconf: checking installation... build/buildcheck.sh: autoconf: not found buildconf: autoconf not found. You need autoconf version 2.13 or newer installed to build Apache from CVS. ./buildconf failed for apr I cannot find autoconf version 2.13 anywhere. Could someone please tell me where to get autoconf? Assuming the build goes correctly, do I implement a static mod_jk any differently than a dynamic mod_jk Thanks, G Greg Bobak wrote: Hi, Thansk for the reply. I think I had found some documentation about rebuild Apache with mod_jk bound. I'll have to look again. I've been trying to rebuild mod_jk (to no avail) in hopes that would work, but keep getting this error: could not find /usr/local/apache2/bin/apxs configure: error: You must specify a valid --with-apxs path Of course it is the right path. G. Mike Sabroff wrote: I had the same problem a while back. I had to do some googling and find the mod_jk source. Trying to compile it was problematic and I also got the unresolved errors I had to rebuild apache with jk as part of the build in order to get it to work. I wish I could remember where I got the source and the instructions, but I am old and forget easily (actually age has nothing to do with italways been like that) I appologize, especially since I spent many hours trying this and that and I know what you are going through I do remember, that the proceedure was different with apache 2.x than it was with 1.3x that I have installed. Greg Bobak wrote: I am using Tomcat 5.0.28 BTW. G. Greg Bobak wrote: I am trying to get mod_jk to work with apache 2.0.55 and get this error on the load module: Syntax error on line 276 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_jk.so into server: ld.so.1: /usr/local/apache2/bin/httpd: fatal: relocation error: file /usr/local/apache2/modules/mod_jk.so: symbol ap_null_cleanup: referenced symbol not found I have looked everywhere, and have been advised to recompile apache, which I have done successfully a few times. This is how I have recompiled: ./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-ssl=shared --enable-ssl --with-ssl=/usr/local/ssl --enable-proxy --enable-proxy-connect --enable-proxy-ftp --enable-proxy-http --enable-so --enable-rule=SHARED_CORE make make install I use make clean between attempts..Ihave tried withou the SHARED_CORE and without the --enable-so because --enable-mods-shared=all should cover that. Still no luck. I am using Solaris 9. Here is some diag info: [EMAIL PROTECTED]:/usr/local/apache2/bin # ldd -d /usr/local/apache2/modules/mod_jk.so libc.so.1 = /usr/lib/libc.so.1 libdl.so.1 =/usr/lib/libdl.so.1 symbol not found: ap_server_root (/usr/local/apache2/modules/mod_jk.so) symbol not found: ap_null_cleanup (/usr/local/apache2/modules/mod_jk.so) symbol not found: dir_module (/usr/local/apache2/modules/mod_jk.so) /usr/platform/SUNW,Serverblade1/lib/libc_psr.so.1 [EMAIL PROTECTED]:/usr/local/apache2/bin # httpd -V Server version: Apache/2.0.55 Server built: Jan 23 2006 13:17:34 Server's Module Magic Number: 20020903:11 Architecture: 32-bit Server compiled with -D APACHE_MPM_DIR=server/mpm/prefork -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_FCNTL_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D HTTPD_ROOT=/usr/local/apache2 -D SUEXEC_BIN=/usr/local/apache2/bin/suexec -D DEFAULT_PIDLOG=logs/httpd.pid -D DEFAULT_SCOREBOARD=logs/apache_runtime_status -D DEFAULT_LOCKFILE=logs/accept.lock -D DEFAULT_ERRORLOG=logs/error_log -D AP_TYPES_CONFIG_FILE=conf/mime.types -D SERVER_CONFIG_FILE=conf/httpd.conf [EMAIL PROTECTED]:/usr/local/apache2/bin # httpd -v Server version: Apache/2.0.55 Server built: Jan 23 2006 13:17:34 Please advise as to what info would be helpful in determining the root cause. Thanks for your help, Greg - What are the most popular cars? Find out at Yahoo! Autos - What are the most popular cars? Find out at Yahoo! Autos -- Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 - To unsubscribe,
Re: Problems with Tomcat 5.5 build.xml
Andre Kammerl wrote: for a case study concerning AspectJ, I need a compilable version of the Tomcat 5.5 source. I tried the instruction on http://tomcat.apache.org/tomcat-5.5-doc/building.html , but the build.xml linked on this page is not working. If somebody could help me I would be very pleased. If you did provide some information what *exactly* is not working means, maybe someone would be able to help you. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat and 64 bit processors
From: Didier McGillis [mailto:[EMAIL PROTECTED] Subject: tomcat and 64 bit processors Hopefully I wont bore anyone. Any special considerations with tomcat 5.5 and a 64 bit processor, can I grab the binaries from the download site or should I grab the source? Outside of the optional APR connector, Tomcat is pure Java - by definition, this means the binaries run anywhere, on any 1.4 or later JRE, including the 64-bit JVMs. There is a potential stability issue with recent 64-bit JRE 5 downloads from Sun; check the archives of this mailing list and the Sun bug reports. As far as the APR connector goes, if you don't install it, Tomcat will default to the pure Java one. If you want to use the APR connector, I believe you'll have to build it for your platform (haven't tried it myself). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat and 64 bit processors
Thanks for the heads up on the JRE stability issues. I will check on that. From: Caldarale, Charles R [EMAIL PROTECTED] Reply-To: Tomcat Users List users@tomcat.apache.org To: Tomcat Users List users@tomcat.apache.org Subject: RE: tomcat and 64 bit processors Date: Tue, 24 Jan 2006 12:20:27 -0600 From: Didier McGillis [mailto:[EMAIL PROTECTED] Subject: tomcat and 64 bit processors Hopefully I wont bore anyone. Any special considerations with tomcat 5.5 and a 64 bit processor, can I grab the binaries from the download site or should I grab the source? Outside of the optional APR connector, Tomcat is pure Java - by definition, this means the binaries run anywhere, on any 1.4 or later JRE, including the 64-bit JVMs. There is a potential stability issue with recent 64-bit JRE 5 downloads from Sun; check the archives of this mailing list and the Sun bug reports. As far as the APR connector goes, if you don't install it, Tomcat will default to the pure Java one. If you want to use the APR connector, I believe you'll have to build it for your platform (haven't tried it myself). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Static mod_jk buil implementation issues(was mod_jk with httpd tomcat)
Found some info that indicates that a perl script is looking for strict.pm. It is on my system. Ihave even copied it to a path that is indicated in the error below: bash-2.05# find / -name strict.pm /usr/perl5/5.6.1/lib/strict.pm /usr/perl5/5.00503/strict.pm /usr/local/lib/perl5/5.6.1/lib/strict.pm /usr/local/lib/perl5/5.6.1/strict.pm LISTED IN ERRORS Greg Bobak [EMAIL PROTECTED] wrote: Still trying to bind mod_jk statically to httpd. I found that I had to install the whole libtool package. Do the following errors mean that I must buiild from the CVS source only? bash-2.05# ./buildconf rebuilding srclib/apr/configure buildconf: checking installation... buildconf: autoconf version 2.59 (ok) buildconf: libtool version 1.5 (ok) Copying libtool helper files ... buildconf: Using libtool.m4 at /usr/local/share/aclocal/libtool.m4. Creating include/arch/unix/apr_private.h.in ... Can't locate strict.pm in @INC (@INC contains: /usr/local/share/autoconf /usr/local/lib/perl5/5.6.1/sun4-solaris /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .) at /usr/local/share/autoconf/Autom4te/Channels.pm line 60. BEGIN failed--compilation aborted at /usr/local/share/autoconf/Autom4te/Channels.pm line 60. Compilation failed in require at /usr/local/share/autoconf/Autom4te/ChannelDefs.pm line 20. BEGIN failed--compilation aborted at /usr/local/share/autoconf/Autom4te/ChannelDefs.pm line 20. Compilation failed in require at /usr/local/bin/autoheader line 42. BEGIN failed--compilation aborted at /usr/local/bin/autoheader line 42. Creating configure ... Can't locate Data/Dumper.pm in @INC (@INC contains: /usr/local/share/autoconf /usr/local/lib/perl5/5.6.1/sun4-solaris /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .) at /usr/local/share/autoconf/Autom4te/C4che.pm line 35. BEGIN failed--compilation aborted at /usr/local/share/autoconf/Autom4te/C4che.pm line 35. Compilation failed in require at /usr/local/bin/autom4te line 39. BEGIN failed--compilation aborted at /usr/local/bin/autom4te line 39. rebuilding rpm spec file rebuilding srclib/apr-util/configure Looking for apr source in ../apr Creating include/private/apu_config.h ... Can't locate strict.pm in @INC (@INC contains: /usr/local/share/autoconf /usr/local/lib/perl5/5.6.1/sun4-solaris /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .) at /usr/local/share/autoconf/Autom4te/Channels.pm line 60. BEGIN failed--compilation aborted at /usr/local/share/autoconf/Autom4te/Channels.pm line 60. Compilation failed in require at /usr/local/share/autoconf/Autom4te/ChannelDefs.pm line 20. BEGIN failed--compilation aborted at /usr/local/share/autoconf/Autom4te/ChannelDefs.pm line 20. Compilation failed in require at /usr/local/bin/autoheader line 42. BEGIN failed--compilation aborted at /usr/local/bin/autoheader line 42. Creating configure ... Can't locate Data/Dumper.pm in @INC (@INC contains: /usr/local/share/autoconf /usr/local/lib/perl5/5.6.1/sun4-solaris /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .) at /usr/local/share/autoconf/Autom4te/C4che.pm line 35. BEGIN failed--compilation aborted at /usr/local/share/autoconf/Autom4te/C4che.pm line 35. Compilation failed in require at /usr/local/bin/autom4te line 39. BEGIN failed--compilation aborted at /usr/local/bin/autom4te line 39. autoconf failed ./buildconf failed for apr-util Peace, G. Greg Bobak wrote: Found autoconf (did not realize it was a Unix utility): http://www.sunfreeware.com/programlistsparc9.html#autoconf Greg Bobak wrote: I've found documentation for building mod_jk as a static module in apache here: http://tomcat.apache.org/connectors-doc/howto/apache.html (at the bottom of page). On this step, I get this: bash-2.05# ./buildconf rebuilding srclib/apr/configure buildconf: checking installation... build/buildcheck.sh: autoconf: not found buildconf: autoconf not found. You need autoconf version 2.13 or newer installed to build Apache from CVS. ./buildconf failed for apr I cannot find autoconf version 2.13 anywhere. Could someone please tell me where to get autoconf? Assuming the build goes correctly, do I implement a static mod_jk any differently than a dynamic mod_jk Thanks, G Greg Bobak wrote: Hi, Thansk for the reply. I think I had found some documentation about rebuild Apache with mod_jk bound. I'll have to look again. I've been trying to rebuild mod_jk (to no avail) in hopes that would work, but keep getting this error: could not find /usr/local/apache2/bin/apxs configure: error: You must specify a valid --with-apxs path Of course it is the right
Re: Tomcat upgrade: 3.3.1 -- 5.0.28, hang up after running 1 or 2 days
Monica Wu wrote: First of all, upgraded to the version I have ever tested. Tomcat 5.0 has been running well on my another production server about one year. At that installation time, Tomcat 5.0 was the latest. Moreover, having all productions share the same Java + tomcat versions is one of my agendas to ease the development and maintenance. Oh! Now I understand. Thanks for the explanation and sorry I couldn't help you that much with your problem. It is strange that Tomcat 5.0 has been running well for a year on one server but not the new one. BTW, are you running different or the same web applications on the good-for-one-year 5.0 server and the buggy new 5.0 one? I wonder if the source of the problem is with the applications that the buggy TC is running rather than TC itself. Glen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat upgrade: 3.3.1 -- 5.0.28, hang up after running 1 or 2 days
Thank you for your attention, Glen! These 2 (good and buggy) production tomcat servers run different web applications on different physical machines. Their hardware and operation systems including Windows service packs are same. Tomcat configuration is very similar. The good tomcat server was brand new (new installed operating system, new web application) and started Java 5.0 + tomcat 5.0 at the very beginning. The buggy one started with Java1.3 + Tomcat 3.3.1 and had ran smoothly about 4 years. Regarding the web application on the buggy tomcat 5.0 server. The source code remain the same before and after the tomcat upgrade. The only change is to use the new java 1.5 compiler with option -souce 1.4. Compiling is not a problem. Starting the buggy tomcat 5.0 is not a problem. The only problem is hangup after some user access. All possible changes were minimized during tomcat upgrade. The buggy tomcat server was rolled back to Java 1.3 + tomcat 3.3.1 again last Friday. This rollback did not fix the problem. Yesterday (last Monday) I removed Java 1.5 + Tomcat 5.0 completely. JDK 1.3 + J2EE 1.3 were re-installed. At this point, everything was rolled back to the state before tomcat upgrade. This buggy tomcat server has run okay by far ( 24 hours), but is too early to say it is fixed. If it can behave until the end of this week, I may dare to say it is fixed and the problem is caused by the upgrade. Maybe the co-existence of Java 1.3 and 1.5. Maybe co-existence of Tomcat 3.3 and 5.0. Maybe ... - Monica -Original Message- From: Glen Mazza [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 10:47 AM To: Tomcat Users List Subject: Re: Tomcat upgrade: 3.3.1 -- 5.0.28, hang up after running 1 or 2 days Monica Wu wrote: First of all, upgraded to the version I have ever tested. Tomcat 5.0 has been running well on my another production server about one year. At that installation time, Tomcat 5.0 was the latest. Moreover, having all productions share the same Java + tomcat versions is one of my agendas to ease the development and maintenance. Oh! Now I understand. Thanks for the explanation and sorry I couldn't help you that much with your problem. It is strange that Tomcat 5.0 has been running well for a year on one server but not the new one. BTW, are you running different or the same web applications on the good-for-one-year 5.0 server and the buggy new 5.0 one? I wonder if the source of the problem is with the applications that the buggy TC is running rather than TC itself. Glen - 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]
Spam:RE: Spam:RE: stdout/logging
The redirection operator should work, but with one more detail: You need to modify the catalina.bat file to enable the redirection. ND -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 10:04 AM To: Tomcat Users List Subject: Spam:RE: stdout/logging From: Samuel B. Quiring [mailto:[EMAIL PROTECTED] Subject: stdout/logging Is there any way to accomplish this exact same redirection without running tomcat as a service? Is there something wrong with the standard Windows redirection operator ()? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Do idle servlets get unloaded/reloaded?
Hi Blair, On Tue, January 24, 2006 2:41 pm, Blair Cooper said: I have a servlet running on Tomcat 5.5. If it sits idle for a while and then I hit it, the init() method gets called again. autoDeploy is set to false. Is this expected behavior? As per the servlet spec, the container can unload and reload a servlet as needed. It is an expected *potential* behavior. My own personal experience would indicate it's rare, but you have to design for it. If this is expected, shouldn't destroy() get called at some point prior to the init()? I would expect destroy() to get called at some point before init() does a second time, but I'm not sure if that is a guarantee of the spec. Seems like it probably would be though. The problem I'm having is that the init() method ends up try to recreate objects that where created by a previous call to init(). My destroy() method would have cleaned up the earlier instances if it had been called. I have logging in the destroy() method so I know that it didn't get called. Implement some sort of check in init() to determine if it has fired already or not. A simple static boolean field on the servlet should do the trick. So, maybe you have: private static boolean isInitialized; Then in init(), you do: synchronized (isInitialized) { if (!isInitialized) { // Do initialization tasks. isInitialized = true; } } Thanks, Blair Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Static mod_jk buil implementation issues(was mod_jk with httpd tomcat)
I give up -- I have upgrade to Apache 2.2 and I am using mod_proxy_ajp. Works great so far --any risks? Greg Bobak [EMAIL PROTECTED] wrote: Found some info that indicates that a perl script is looking for strict.pm. It is on my system. Ihave even copied it to a path that is indicated in the error below: bash-2.05# find / -name strict.pm /usr/perl5/5.6.1/lib/strict.pm /usr/perl5/5.00503/strict.pm /usr/local/lib/perl5/5.6.1/lib/strict.pm /usr/local/lib/perl5/5.6.1/strict.pm LISTED IN ERRORS Greg Bobak wrote: Still trying to bind mod_jk statically to httpd. I found that I had to install the whole libtool package. Do the following errors mean that I must buiild from the CVS source only? bash-2.05# ./buildconf rebuilding srclib/apr/configure buildconf: checking installation... buildconf: autoconf version 2.59 (ok) buildconf: libtool version 1.5 (ok) Copying libtool helper files ... buildconf: Using libtool.m4 at /usr/local/share/aclocal/libtool.m4. Creating include/arch/unix/apr_private.h.in ... Can't locate strict.pm in @INC (@INC contains: /usr/local/share/autoconf /usr/local/lib/perl5/5.6.1/sun4-solaris /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .) at /usr/local/share/autoconf/Autom4te/Channels.pm line 60. BEGIN failed--compilation aborted at /usr/local/share/autoconf/Autom4te/Channels.pm line 60. Compilation failed in require at /usr/local/share/autoconf/Autom4te/ChannelDefs.pm line 20. BEGIN failed--compilation aborted at /usr/local/share/autoconf/Autom4te/ChannelDefs.pm line 20. Compilation failed in require at /usr/local/bin/autoheader line 42. BEGIN failed--compilation aborted at /usr/local/bin/autoheader line 42. Creating configure ... Can't locate Data/Dumper.pm in @INC (@INC contains: /usr/local/share/autoconf /usr/local/lib/perl5/5.6.1/sun4-solaris /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .) at /usr/local/share/autoconf/Autom4te/C4che.pm line 35. BEGIN failed--compilation aborted at /usr/local/share/autoconf/Autom4te/C4che.pm line 35. Compilation failed in require at /usr/local/bin/autom4te line 39. BEGIN failed--compilation aborted at /usr/local/bin/autom4te line 39. rebuilding rpm spec file rebuilding srclib/apr-util/configure Looking for apr source in ../apr Creating include/private/apu_config.h ... Can't locate strict.pm in @INC (@INC contains: /usr/local/share/autoconf /usr/local/lib/perl5/5.6.1/sun4-solaris /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .) at /usr/local/share/autoconf/Autom4te/Channels.pm line 60. BEGIN failed--compilation aborted at /usr/local/share/autoconf/Autom4te/Channels.pm line 60. Compilation failed in require at /usr/local/share/autoconf/Autom4te/ChannelDefs.pm line 20. BEGIN failed--compilation aborted at /usr/local/share/autoconf/Autom4te/ChannelDefs.pm line 20. Compilation failed in require at /usr/local/bin/autoheader line 42. BEGIN failed--compilation aborted at /usr/local/bin/autoheader line 42. Creating configure ... Can't locate Data/Dumper.pm in @INC (@INC contains: /usr/local/share/autoconf /usr/local/lib/perl5/5.6.1/sun4-solaris /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .) at /usr/local/share/autoconf/Autom4te/C4che.pm line 35. BEGIN failed--compilation aborted at /usr/local/share/autoconf/Autom4te/C4che.pm line 35. Compilation failed in require at /usr/local/bin/autom4te line 39. BEGIN failed--compilation aborted at /usr/local/bin/autom4te line 39. autoconf failed ./buildconf failed for apr-util Peace, G. Greg Bobak wrote: Found autoconf (did not realize it was a Unix utility): http://www.sunfreeware.com/programlistsparc9.html#autoconf Greg Bobak wrote: I've found documentation for building mod_jk as a static module in apache here: http://tomcat.apache.org/connectors-doc/howto/apache.html (at the bottom of page). On this step, I get this: bash-2.05# ./buildconf rebuilding srclib/apr/configure buildconf: checking installation... build/buildcheck.sh: autoconf: not found buildconf: autoconf not found. You need autoconf version 2.13 or newer installed to build Apache from CVS. ./buildconf failed for apr I cannot find autoconf version 2.13 anywhere. Could someone please tell me where to get autoconf? Assuming the build goes correctly, do I implement a static mod_jk any differently than a dynamic mod_jk Thanks, G Greg Bobak wrote: Hi, Thansk for the reply. I think I had found some documentation about rebuild Apache with mod_jk bound. I'll have to look again. I've been trying to rebuild mod_jk (to no avail) in hopes that would work, but keep getting this error: could
mod_jk vs. mod_proxy_ajp
After trying to get mod_jk to work on Solaris 9 unsuccessfully, I switched to mod_proxy_ajp. Functionally, it seems to be working fine. Does anyone know of any advantages of jk vs. proxy_ajp? G. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Postgresql and JNDI Datasource
I am trying to define a global JDBC datasource, where the database is Postgresql (version 7.3) ni Tomcat version 5.5.15. I have strictly followed the example in http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html, but it does not work if I define the datasource in $CATALINA_HOME/conf/server.xml. However if I define the datasource in the application META-INF/context.xml, it is working. I would prefer to define the datasource in $CATALINA_HOME/conf/server.xml. Has somebody succeded in doing that ? And if yes, how ? Torben Frøberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Postgresql and JNDI Datasource
torben ha scritto: I am trying to define a global JDBC datasource, where the database is Postgresql (version 7.3) ni Tomcat version 5.5.15. I have strictly followed the example in http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html, but it does not work if I define the datasource in $CATALINA_HOME/conf/server.xml. However if I define the datasource in the application META-INF/context.xml, it is working. I would prefer to define the datasource in $CATALINA_HOME/conf/server.xml. Has somebody succeded in doing that ? And if yes, how ? Torben Frøberg this is my configuration: now I am using postgres 8.1 but it is the same configuration for my old configuration (1 month ago) with postgres 7.4 server.xml-- Context path=/lisy docBase=lisy debug=5 reloadable=true Resource name=jdbc/lisy auth=Container type=javax.sql.DataSource maxActive=8 maxIdle=5 maxWait=1 username=uname password=pwd driverClassName=org.postgresql.Driver url=jdbc:postgresql://127.0.0.1:5432/lisy removeAbandoned=true removeAbandonedTimeout=30 logAbandoned=true / /Context web-xml resource-ref descriptionpostgreSQL Datasource/description res-ref-namejdbc/lisy/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref I hope that this can help you -- [EMAIL PROTECTED] AIM: edoardopn Jabber: [EMAIL PROTECTED] tel:075 9142766 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
From Java to C#, ASP.NET [Off Topic]
Hi all, I should mention that this post is a bit off topic. If you hate Microsoft then stop reading now and I'm sorry for wasting your time. I don't own stock in Microsoft, I don't know Bill Gates and nobody paid me or asked me to say the things I wrote below. These are just my opinions based on my experiences with many years in Java and two months of learning .NET/C# 2.0. I've been programming in Java/J2EE for the past 8+ years, most of this time as a contractor for several companies on many J2EE projects. I even have a small (and now hopelessly out of date) Java web site that I've maintained for the past 5+ years at www.absolutejava.com, which will be removed in early May. Until about 8 weeks ago, I never even considered looking at anything Microsoft offered. Recently though, on a whim, I browsed over to the Microsoft site because I'd heard about their new release of Visual Studio. I'd been a Windows programmer back in the mid '90s and was curious to see how Visual Studio (it was Visual C++ back then) had evolved (or not). I didn't download Visual Studio but instead I downloaded a couple free tutorial videos for Microsoft's Web Developer Express product (which is a free product, BTW). Web Developer Express has a subset of the features in the full Visual Studio product and is used for building server-side (or client side, for that matter) web apps. I couldn't believe what I saw. Web Developer Express blows away anything we have in the Java world for developing server-side web apps. It was kind of a jaw-dropping experience to see what the tool can do and what ASP.NET offers compared to servlets/JSP/Struts/JSTL/JSF. I don't want to turn this post into a feature by feature comparison of ASP.NET and equivalent Java technologies. My impression, though, from watching these tutorial videos is that we in the J2EE world are living like knuckle-dragging Barbarians, scratching out an existence clothed in bear skins, using stone knives and sticks as our tools of choice. Those using .NET are living in fine brick homes with hardwood floors, fireplaces and regular visits from PeaPod. After looking at ASP.NET I became interested in looking at the C# language, proper. My impressions of C# vs. Java mirrored those of ASP.NET vs. servlets/JSP/etc. Java has kludgey support for properties and events (they're just regular methods with parameters) while C# has the constructs (delegates events) built directly into the core language. C# also supports co-routines, something we have to simulate in Java as well as out parameters (which allow a method to change the caller's parameter's value) and operator overloading. C# also has nullable types. Imagine Java's primitive types being able to hold null values. This is highly useful when working with databases. Finally, .NET provides an integrated and more comprehensive approach to setting security permissions and versioning of what are called, assemblies. Assemblies are very roughly equivalent to JARs. This allows you to compile your code against a specific version of an assembly and have that version information maintained in the resulting executable. It also allows several versions of the same assemblies (again, think JARs) to co-exist peacefully in a global, system-wide cache of assemblies. Sun should have given us something like this five years ago. Another advantage I saw with .NET is that it is more cross language friendly than Java. First of all, .NET, like Java, executes a platform neutral representation of a program (analogous to Java bytecode). Unlike Java, .NET programs can be written in many languages (C#, C++, Perl, Python, J#, VB, and many others). Microsoft's J# is, from what I've seen, a clone of Java (although I'm sure there are differences). The point I want to make is that once compiled, .NET programs can call each other seamlessly, regardless of the language the programs were originally written in. So for example, a J# class can extend a C# class which can extend a VB class. You're not tied to one language like you are in Java. I know that, theoretically, any language could potentially be compiled into Java bytecode (I guess Groovy is an example). Practically, however, this is not commonly done. Suffice it say, I am switching after 8+ years in Java. It was a tough decision at first because I have so much time and effort invested in Java. When I eventually get on a .NET project I will be starting over as a junior person making a junior person's salary. That won't be pleasant. I have close to $1,000 in Java books that I've accumulated over the years that are now for sale on Amazon. Ultimately though, I felt I'd be able to spend more time actually writing code on a single consistent, and what seems to be superior platform (.NET) rather than gluing together a half dozen open source tools with XML files, which it seems J2EE requires far too much of. To me, J2EE has become too fat and
Re: Are servlet name and class name required in web.xml for tomcat 5.5?
Please look into pre-compiling sources. You could look into - http://tomcat.apache.org/tomcat-5.5-doc/appdev/build.xml.txt and http://tomcat.apache.org/tomcat-5.5-doc/appdev/web.xml.txt When you pre-compile sources, it automatically generates a stub file that can be copied into web.xml. HTH, vasu. From: Alla Winter [EMAIL PROTECTED] Date: 2006/01/24 Tue PM 05:39:16 EST To: 'Tomcat Users List' users@tomcat.apache.org Subject: Are servlet name and class name required in web.xml for tomcat 5.5? For Tomcat 4.x I didn't have to set up anything in web.xml. But it seems that I have to define each servlet name and corresponding class name in web.xml in order to make it to work for Tomcat 5.5. Is that right statement? I have a lot of servlets, it seems like it is a lot of work. Can not find what info is required in web.xml and what is optional? Can you please refer me to that info? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk vs. mod_proxy_ajp
Greg Bobak [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] After trying to get mod_jk to work on Solaris 9 unsuccessfully, I switched to mod_proxy_ajp. Functionally, it seems to be working fine. Does anyone know of any advantages of jk vs. proxy_ajp? Their are a couple of minor bug reports against mod_proxy_ajp. About the only one that looks significant (http://issues.apache.org/bugzilla/show_bug.cgi?id=36495) is that mod_proxy_ajp is much less agressive about retrying connections on failure than mod_jk. G. __ 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: From Java to C#, ASP.NET [Off Topic]
You're right Tony, this posting is painfully off-topic for this list. Perhaps along with your new C# programming skills you can get work as an advertising writer for Microsoft. But, having said that, I would like to point out that Microsoft dumps a lot of money into researching and developing creature-features in their products, and developer hand-holding. Which is why you see the features you do. It's worthwhile to do a side-by-side features comparison and take advantage of Microsoft's investment into features development, and be aware of what features might attracts developers to a particular servlett platform like Tomcat. But, the bottom line with the Microsoft development tools, which I pay closely attention to myself, is that what you get in creature comforts you trade for in licensing fees and flexibility. That makes the perceived advantage you see is Microsoft products short lived - much shorter than the end-of-life cycle for Visual Studio. You might also consider that a skilled team with paper and pencil can develop and maintain Tomcat deployed applications that rival anything you can make with Visual Studio... and at less cost overall. Richard Schilling Tony LaPaso wrote: Hi all, I should mention that this post is a bit off topic. If you hate Microsoft then stop reading now and I'm sorry for wasting your time. I don't own stock in Microsoft, I don't know Bill Gates and nobody paid me - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to find what encryption algorithm tomcat is using?
the default key generation algorithm is DSA try man keytool if u are on a linux machine but u can specify ur own algoithm when u generating a key like %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows) $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix) regards vineesh On 1/25/06, Shirode, Sangita (Sangita) [EMAIL PROTECTED] wrote: Hi, I need the info about what encryption algorithm tomcat is using when it sends/receives data to /from client via SSL. I need this info for export compliance. When I enabled SSL in tomcat I just followed the normal procedure given in Tomcat docs. I'm generating a self signed certificate with java keytool. I would appreciate immediate reply on this since I need this info urgently. Thanks, Sangita Thanks and Regards, Sangita Shirode | I R Team | Avaya | Wing - A; Level - 2; Tower No # 1; Magarpatta Cybercity; Hadapsar |Pune,India - 411028 | Voice +91.20.26802868 | E-mail- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to find what encryption algorithm tomcat is using?
sorry, ur own algorithm means any standard cryptographic algorithm,supported by java On 1/25/06, vineesh kumar [EMAIL PROTECTED] wrote: the default key generation algorithm is DSA try man keytool if u are on a linux machine but u can specify ur own algoithm when u generating a key like %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows) $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix) regards vineesh On 1/25/06, Shirode, Sangita (Sangita) [EMAIL PROTECTED] wrote: Hi, I need the info about what encryption algorithm tomcat is using when it sends/receives data to /from client via SSL. I need this info for export compliance. When I enabled SSL in tomcat I just followed the normal procedure given in Tomcat docs. I'm generating a self signed certificate with java keytool. I would appreciate immediate reply on this since I need this info urgently. Thanks, Sangita Thanks and Regards, Sangita Shirode | I R Team | Avaya | Wing - A; Level - 2; Tower No # 1; Magarpatta Cybercity; Hadapsar |Pune,India - 411028 | Voice +91.20.26802868 | E-mail- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to find what encryption algorithm tomcat is using?
Thanks vineesh for your immediate reply. I'm using RSA while generationg a key. But I think it is for certificate keystore as given in the link http://tomcat.apache.org/tomcat-5.0-doc/ssl-howto.html. Does the same algorithm is used for data encryption also? If yes I think I can get complete details about algorithm in java site since just 'RSA' is not sufficient information. Thanks, Sangita -Original Message- From: vineesh kumar [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 25, 2006 12:57 PM To: Tomcat Users List Subject: Re: How to find what encryption algorithm tomcat is using? sorry, ur own algorithm means any standard cryptographic algorithm,supported by java On 1/25/06, vineesh kumar [EMAIL PROTECTED] wrote: the default key generation algorithm is DSA try man keytool if u are on a linux machine but u can specify ur own algoithm when u generating a key like %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows) $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix) regards vineesh On 1/25/06, Shirode, Sangita (Sangita) [EMAIL PROTECTED] wrote: Hi, I need the info about what encryption algorithm tomcat is using when it sends/receives data to /from client via SSL. I need this info for export compliance. When I enabled SSL in tomcat I just followed the normal procedure given in Tomcat docs. I'm generating a self signed certificate with java keytool. I would appreciate immediate reply on this since I need this info urgently. Thanks, Sangita - 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]