Re: Tomcat startup error
try this: http://www.moreservlets.com/Using-Tomcat-4.html#Set-CLASSPATH From: krishnakumar kumaraswamypillai [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Tomcat startup error Date: Fri, 8 Aug 2003 03:20:04 -0700 (PDT) hi all i have installed JAVA 2 SDK 1.3.1_08 Apache HTTP server 2.0.47 Apache Tomcat 4.1 on starting tomcat i get the error: Created catalinaLoader in: C:\Program Files\Apache Group\Tomcat 4.1\server\lib java.lang.NoClassDefFoundError: org/xml/sax/InputSource at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:232) at org.apache.catalina.startup.BootstrapService.init(BootstrapService.java:201) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:297) I browsed google and found that my CLASSPATH has to be set. But to what path should it point? which jar files? Where will i get information. Thank u for considering Krishna Kumar K __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Are you Unmarried? http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?4d Register in India's No 1 Matrimony. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dynamic install and reload
Greetings, all: I'm looking for help with the following deployment scenarios: 1. Install a web app (.war) into a running tomcat 4.1.x 2. reload same web app after arbitrary changes to it For both of these scenarios: 1. deployment activity driven from ant script 2. ant script executed on host that is NOT the same host as the host that tomcat 4.1.x is running on; in other words, deploy from one host to another, or from 'off-host'. My motivation: This is driven by the desire to deploy essentially the same war to multiple environments (ie, staging, production) without having to hop around from host to host, lugging the war each time (and then still having to install or redeploy). I've been researching this, including reviewing the how-to (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html) and the mail archive, as well as trial and error (in 4.1.24 and 4.1.27) ... The closest I see I can get to my goal is off-host install of a war *manually* (ie, via browser, not via ant script) using manager app of target host Install using the provided custom ant task says it succeeds, and it shows up in the manager list of apps, but it isnt 'started' and I cant start it clicking 'start'; just seems to do nothing. I assume that reload expects the stuff to be reloaded to be located on the target host itself, as theres no property like the @war to point at a war referenced in any of the docs, and the task java src doesnt seem to support it either... Any help? If not, am I the only one with this goal - I mean, I doubt my motiviation is unique... anyone in a similar boat solving this in some way? (It seems like theres already a lot of work done toward this end, and if anyone actually wanted to do what I'm trying to do the support would be there ...) Regardless of the outcome I'd be happy to update the how-to (or whatever) to clarify this point for future people who may be curious like I was here; just let me know if theres any interest. Thanks, Steve
OFF TOPIC: Book suggestion.
Sorry for the off topic question, but I feel this list could benefit from the responses to this question (if they get answered).. Does anyone know of any good books on design patterns concerning MVC and Java and the like.Here's one by the gang of four but it was published in 1995...I would like to find one that is more current..anyone have any suggestions? http://www.amazon.com/exec/obidos/ASIN/0201633612/qid=1060790696/sr=2-1/ ref=sr_2_1/103-2315139-4279867 Thanx- Russ
dynamic install and reload (resend)
Greetings, all: I'm looking for help with the following deployment scenarios: 1. Install a web app (.war) into a running tomcat 4.1.x 2. reload same web app after arbitrary changes to it For both of these scenarios: 1. deployment activity driven from ant script 2. ant script executed on host that is NOT the same host as the host that tomcat 4.1.x is running on; in other words, deploy from one host to another, or from 'off-host'. My motivation: This is driven by the desire to deploy essentially the same war to multiple environments (ie, staging, production) without having to hop around from host to host, lugging the war each time (and then still having to install or redeploy). I've been researching this, including reviewing the how-to (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html) and the mail archive, as well as trial and error (in 4.1.24 and 4.1.27) ... The closest I see I can get to my goal is off-host install of a war *manually* (ie, via browser, not via ant script) using manager app of target host Install using the provided custom ant task says it succeeds, and it shows up in the manager list of apps, but it isnt 'started' and I cant start it clicking 'start'; just seems to do nothing. I assume that reload expects the stuff to be reloaded to be located on the target host itself, as theres no property like the @war to point at a war referenced in any of the docs, and the task java src doesnt seem to support it either... Any help? If not, am I the only one with this goal - I mean, I doubt my motiviation is unique... anyone in a similar boat solving this in some way? (It seems like theres already a lot of work done toward this end, and if anyone actually wanted to do what I'm trying to do the support would be there ...) Regardless of the outcome I'd be happy to update the how-to (or whatever) to clarify this point for future people who may be curious like I was here; just let me know if theres any interest. Thanks, Steve ps - i didnt see this go thru to the archives (never even got my BCC) so i'm resending; i apologize if duplication or other problems occur...
Client SSL certificates signed by Windows Certificate Server
I am trying to use Windows Certificate Server to sign my client certificates. First I tried to use a certificate that was generated in IE, but that didn't seem to work (has anyone gotten this to work before?), so now I am trying certificates generated by IBM's keyman program. These are the steps I take: 1. In keyman, generate a key pair in a PKCS#12 file. 2. Create a certificate request based on this key pair 3. In Microsoft Certificate Server's certsrv webpage, select the following options: - Request a certificate - Advanced Request - Submit a certificate request using a base64 encoded PKCS #10 file or a renewal request using a base64 encoded PKCS #7 file 4. Paste the certificate request into the window 5. Issue the certificate request on the server 6. In Microsoft Certificate Server's certsrv webpage, select Check on a pending certificate and select the saved-request certificate 7. Click on the Download CA Certification Path link, and save the certnew.p7b file to disk 8. In keyman, import the .p7b file. This attaches itself to the original key pair. 9. Save the keystore as a .p12 file 10. Import this .p12 file into IE 11. Export the signing certificate from IE into a file called MyCA.cer 12. Import this cer file into Java's cacerts keystore 13. Restart tomcat At this stage everything should work, but it doesn't. I can only get it to work by exporting the new certificate itself into a .cer file and importing that into the cacerts file. For some reason, tomcat doesn't trust Windows Certificate Server's root certificate, or at least doesn't trust any certificates signed by it, even after I have imported it into the cacerts file. Has anyone done this before? Thanks Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47
Yeah, that's what I was hoping.. but a ls -a in that directory just gave me a list of files named jkjni.a jkjni.la jkjni.lai mod_jk2.a mod_jk2.la mod_jk2.lai I tried the compile using 'make jk2-build-apxs' as Jorgen suggested. This did create a .slo in the /jk/native2/server/apache2/ folder, but still no .so on the system. If someone has already compiled the mod_jk2 for apache 2.0.47 it might be easier for me to get a copy i think. I seem to be going nowehere at the moment. :o( -Original Message- From: Richard Park [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 13:10 To: Tomcat Users List Subject: Re: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47 Stuart, from what I can see in your make output, everything should be there. Here's a piece from your make output: --- /build/jk2/apache2/.libs/mod_jk2.* --- so from within your native2 directory you should: --- cd ../build/jk2/apache2/.libs --- and it should be there ... - 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: Passing Memory values with CATALINA_OPTS
Howdy, First off, we're running Apache 1.3.27 and Tomcat 4.1.17 with j2sdk1.4.1_01 4.1.17 really? Not 4.1.12/18/24/27 (the stable releases)? If possible, move to 4.1.27. From everything I have read, it seemed natural set the -server flag, and due to some performance issues we were having, I increased the max/min memory settings. I also get the impression that this creates issues with garbage collection, which Im thinking could relate back to some of our DBCP problems. That is unlikely, but possible. You'll need a bit more than an impression to debug GC-related issues, though ;) What specifically do you think is happening, and why do you think it's happening? One simple thing to do is remove -server and -Xms (keep -Xmx). That will make the JVM use its default and usually very stable GC algorithms. Additionally, running the version of the JDK that I am, M$'s website shows their JDBC driver compatible with up to 1.3, and I wonder if there is any reason to think that some of the problems are related to running a higher version than M$ says they support? That's also possible. It's the first thing M$ tech support would tell you: you're running an unsupported driver/platform combination, update, retry, and call us back if you have a problem. Ticket closed as far as they're concerned. Can you get a later driver? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Changing document root for .jsp files?
Yeah, I could do that, but it'd mean rewriting the links to 100's of files. I could even live with putting the entire jsp dir structure under one directory, like 'jsps', which lives in the same dir as WEB-INF . So I would essentially be making webapp/jsps the webserver root (as it appears to people coming in to the site), and admin and member go into the jsps dir as well. Is that possible? /kurt Angus Mezick wrote: Can't you just restrict webapp/ to have only index.jsp and directories and then change all your links? --Angus -Original Message- From: Kurt Overberg [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 9:24 AM To: Tomcat Users List Subject: Re: Changing document root for .jsp files? Yep. Right, I understand that. The root of my webserver is getting kinda ugly though (lots of files), and I'd like to keep my WEB-INF from being a subdir of my root (well, just for website appearances), just to keep things clean (so I can CVS commit my .jsp files without having it recursively go into my src files). Is this just a bad idea? There's no way to map the root of the webserver to a different directory? so what I'm saying is: webapp/root/*.jsp map to www.site.com/*.jsp webapp/admin/*.jsp map to www.site.com/admin/*.jsp webapp/member/*.jsp map to www.site.com/member/*.jsp ... or do I have to just suck it up and deal? /kurt John Turner wrote: The root directory of a webapp is the directory that holds WEB-INF. John Kurt Overberg wrote: Hi all! I have the following layout for my web application: webapp/ webapp/WEB-INF webapp/admin webapp/member I have .jsp files in the webapp directory, webapp/admin and webapp/member. When someone goes to the root of my website (www.site.com/*.jsp), it gets the files out of the webapp/ directory. member and admin are protected areas, which all work fine. I'd like to make another subdir under webapp called root or something like that, so the root of the web site isn't one level up from my WEB-INF. Is this possible? I've googled incessantly and can't seem to find out how to do this. Thanks in advance for any thoughts or ideas on this. Thanks! /kurt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tracking active sessions
Howdy, I am looking for a way to track which/how many sessions are open. Generally The SessionListener approach to this has been discussed several times on this list and should work fine. it seems to work with a HttpSessionListener, but the Listener is not notified again if the server restarts and still has any opened sessions. Does this matter? The sessions are still open is the server restarts before they time out. Anyone knows how to deal with that problem? Or is the only chance to look If you don't like the above behavior, you can have the session listener also be a ServletContextListener and clean its map on context shutdown. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can't find jk_nt_service.exe
It's in the 3.3 distribution only: http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3.1a/bin/win32/i386/ Bostick, Tom [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've searched the site over... Neither the Jakarta or Tomcat-4 folders has a win32/ix86 folder. Where should I be looking? I'm using Tomcat 4.1.24. Thanks, Tom Bostick -- - A.G. Edwards Sons' outgoing and incoming e-mails are electronically archived and subject to review and/or disclosure to someone other than the recipient. -- - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with mod_jk and admin application in Tomcat 4.1
I didn't mean mod_jk2. I meant CoyoteConnector in server.xml. In server.xml, you have a connector listening on some port (like 8009) for communications from Apache. This connector has a class parameter. In your case, the class is org.apache.ajp.tomcat4.Ajp13Connector. Make it org.apache.coyote.tomcat4.CoyoteConnector instead and you will be able to use MBeans. CoyoteConnector can handle AJP13 from either mod_jk or mod_jk2, as well as HTTP and HTTPS. There are actually two Apache connectors in server.xml by default, one uses Ajp13Connector, one uses CoyoteConnector: !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- Define an AJP 1.3 Connector on port 8009 -- !-- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ -- You want the first one, not the second one. John J.P. Wadkin C9951627 wrote: I would use JK2 if it worked on Solaris 8 with Apache 2, which it doesn't - or at least I haven't been able to get it to work and I've tried everything. John -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 14:43 To: Tomcat Users List Subject: Re: Problem with mod_jk and admin application in Tomcat 4.1 You're using a sledgehammer where a light tap will do fine. Ajp13Connector doesn't like MBeans, or vice versa. Either don't use MBeans, or use CoyoteConnector instead of Ajp13Connector. The latter is preferred and recommended, Ajp13Connector is deprecated. John J.P. Wadkin C9951627 wrote: It seems that it's not possible to use mod_jk with the admin application in Tomcat 4.1 On startup this appears in catalina.out ServerLifecycleListener: Creating MBean for Service StandardService[Tomcat-JK] ServerLifecycleListener: Creating MBean for Connector [EMAIL PROTECTED] ServerLifecycleListener: createMBeans: MBeanException java.lang.Exception: ManagedBean is not found with Ajp13Connector stack trace So I edited the mbeans-descriptors.xml file in the catalina.jar and added an mbean for the Ajp13Connector. Tomcat started fine (no errors) but mod_jk no longer works - any request to a webapp URL results in a 404 error. There's nothing in the logs - just the 404 errors. I'm not sure why this is - there's a mbean for the Coyote/jk2 connector so presumably this works? Thanks John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [OT] Any Tool to generate servlet mapping from file system files.
If you don't mind the security risk, just use the Invoker. Problem solved. John Antony paul wrote: hello, Is there any tool or code snippet(other than IDE tools) available to generate servlet mapping for a web applications all servlet. It must search the specified directories(because some directories under WEB-INF contain normal java classes). The servlet mapping must be the name of the file. I am asking because I dont use servlet mapping and my application contains lots of servlet in different directories. If anyone know any tool or code snippet availble to do this please inform me. Or please any one write this. regards Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47
Ok, one last question.. where might I obtain or find the apxs2's? I'm not sure wether I have them or not. -Original Message- From: Richard Park [mailto:[EMAIL PROTECTED] Sent: 13 August 2003 23:28 To: Tomcat Users List Subject: Re: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47 Stuart, I've currently got: -- Apache 2.0.47 Tomcat 5.0.7 mod_jk2 from here: http://apache.mirror.secondchapter.info/jakarta/tomcat-4/source/jakarta-tomc at-connectors-4.1.27-src.tar.gz -- Instead of installing with Ant (which was giving me problems as well), I built mod_jk2 using './configure' from the jakarta-tomcat-connectors-4.1.27-src/jk/native2 directory: -- ./configure --with-apxs2=/path/to/apxs ./configure --with-apxs2=/usr/local/apache/bin/apxs *note: if there is no configure script in this directory, you must first run ./buildconf.sh -- Once configure has finished creating a makefile, run make. Once make is complete, go to: -- jakarta-tomcat-connectors-4.1.27-src/jk/build/jk2/apache2/.libs -- and you will find the two files that you need: -- mod_jk2.socopy into your apache modules directory jkjni.socopy into your $CATALINA_HOME/server/lib directory -- Now just make sure you have a jk2.properties file in your $CATALINA_HOME/conf directory, and manually create a workers2.properties file in your apache conf directory, with the proper settings/values: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/jk2/confi gwebex.html Hope that helps! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using an Extra CharsetProvider in a Servlet
I'm messing around with character sets and character set conversions, and have a problem getting it to work in servlets. Installing an additional Charset requires entries in the file java.nio.charset.spi.CharsetProvider in META-INF/services. My problem is in understanding exactly WHAT META-INF directory I should place this file in... So far, the only way I've been able to get things to work properly, is to unpack the $CATALINA_HOME/bin/bootstrap.jar, add my Charset, CharsetProvider, CharsetEncoder and CharsetDecoder classes to it, change the META-INF, and re-pack the bootstrap jar. However, this does seem a rather hacky way to get things working... Actually, I found that James Manger had exactly the same problem about a year ago. I include his original posting, as it formulates the problem rather well: I would like to use a non-standard character set for selected operations within a servlet. I have implemented a CharsetProvider, Charset, CharsetEncoder CharsetDecoder. I can use my new character set from a Java application by listing the CharsetProvider class name in the following file within the application JAR. META-INF/services/java.nio.charset.spi.CharsetProvider (see API for CharsetProvider) My application (without any particular import statements) can make calls such as: String msg = Hello, World!; byte[] encoding = msg.getBytes(MY-CHARSET); I cannot get these lines to work in a servlet -- the msg.getBytes(MY-CHARSET) throws: java.nio.charset.UnsupportedCharsetException: MY-CHARSET QUESTION: How do I tell the system running my servlet about my character set? Adding a JAR with the character set (and META-INF... file) to the jre/ext/ directory makes the character set available to all Java apps - but not to the servlet! Adding the JAR to tomcat/common/lib/ did not seem to work either. My servlet can see my CharsetProvider class, but my CharsetProvider is not registered with the system (and it needs to be registered for String.getBytes(MY-CHARSET) to work). [JWSDP 1.0_01, J2SE 1.4.0_01, Tomcat 4.1.2, SunOS 5.6] James Manger Unlike James, I'm using J2SE 1.4.1_02-b06, Tomcat 4.1.18 and RedHat 8.0. Happy for any clue anyone may be able to provide! Cheers, - Johan --- Johan Krisár, johan.krisar(at)depicta.com
Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47
Hi, I'm trying to get mod_jk2 to run with apache 2.0.47 and Tomcat 4.1.27 running in Linux. However, I cannot work out how to compile mod_jk2. I can't seem to get hold of everything I need? At http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0. 2/src I can obtain the mod_jk2 v2.0.2 src, I've installed Jakarta Ant, Java 1.4.2, Tomcat temporarily at /root/Tomcat\ 4.1/Tomcat and Apache 2.0.47 at /usr/local/apache2. When I build mod_jk2 with Ant I seem to get an error saying that the ./jakarta-tomcat-connectors-jk2-2.0.2-src/util directory does not exist: file:/root/Tomcat%204.1/jakarta-tomcat-connectors-jk2-2.0.2-src/build.xml:1 1: Basedir /root/Tomcat 4.1/jakarta-tomcat-connectors-jk2-2.0.2-src/util does not exist. This is correct! The directory does not exist, so I researched into it and realised that I needed to install one of the rpm's from the http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0. 2/rpms directory... but this is empty?! Is it currently possible to get Apache 2.0.47, running with Tomcat 4.1.27 and how? Regards, Stuart Stephen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk problem with serving jsp from apache root dir...from tomcat alias dir is ok
I 'figured' out the problem I was having...or at least got things working. In addition to: JkMount /*.jsp ajp13 I also had to add a servlet context to server.xml: Context path= docBase=/www/html/VxAppliance debug=0/ Originally docBase said ROOT, which I guess is Tomcat's root dir as opposed to DocumentRoot in Apache. I thought it might be cleaner to place individual 'markup' files (jsp, html, php) under Apache, and only webapps and possibly servlets under Tomcat. I didn't seem to think a servlet context was needed for stuff under apache, just for webapps...my mistake. Most of my work has been with webapps, and to Apache's credit, I haven't had a whole lot of problems up till now...with cocoon, apache, tomcat, etc. I'm putting my server into a sort of test mode now, and am creating samples of various 'similar' web pages using different web technologies (jsp, php, cocoon). For this reason I wanted the files placed singlely under my apache root, rather than tomcat using webapps/etc. mike -Original Message- From: Mike Klein [mailto:[EMAIL PROTECTED] Sent: Sunday, August 10, 2003 9:30 PM To: [EMAIL PROTECTED] Subject: mod_jk problem with serving jsp from apache root dir...from tomcat alias dir is ok This has to be brain freeze of something...this s/be so simple...and probably is. I'm running tomcat 4.1.24-LE-jdk14 and Apache 1.3.27. I've got jsps coming up on the web server port (via alias'd tomcat examples dir), in addition to default of tomcat 8080 port...of course. However, when I added the following: JkMount /*.jsp ajp13 to my mod_jk.conf, which is Included at the end of my httpd.conf, it doesn't seem to work. I get an http 404 740 error (requested resource is not available). I put a HelloWorld.jsp into the web root of one of my virtual hosts and it can't be pulled up. I've copied it as a .txt file, which is returned just fine, and have double-checked permissions. I can't seem to dish up jsps located directly under my server root...why? 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]
Re: Forwarding control
That's exactly what I needed to know. Thanks, Mike. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat shutdown
Call Arnold Schwarzneger the terminator --- Chris Daly [EMAIL PROTECTED] wrote: hi i have two instances of tomcat runnign as a stand olone but on different ports - i can neither stop nor start either tomcat as all that i'm getting is Catalina.stop: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120) at java.net.Socket.init(Socket.java:273) at java.net.Socket.init(Socket.java:100) at org.apache.catalina.startup.Catalina.stop(Catalina.java:831) at org.apache.catalina.startup.Catalina.execute(Catalina.java:683) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) how do i stop the service ? i'm trying to use bin/shutdown.sh but its not working. i have two instances of tomcat runnign as a stand olone but on different ports cheers chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: security hole on windows tomcat?
So this issue is confusing. It seems that indeed there IS an issue, though most cannot see a problem. Talking to some people off-list, it seems that some think it is a JK2 / workers2.properties issue. But I'm pretty sure that others have seen this going directly to port 8080. We probably need to take a quick poll: If you have seen this security problem of being able to view JSP source, in what scenario(s)? Tomcat version OS version Directly to Tomcat (8080) or through Apache - JK or JK2? (If you've seen the problem, please include your workers or workers2.properties file, with a .txt extension) Browser version(s) url's where this was seen or not seen If you have seen this in multiple scenarios, and not in others, please list each separately. I have NOT seen it in the following scenarios: Tomcat 4.1.18, 4.1.24, 4.1.26, 4.1.27 Windows 2000 5.00.2195 Service Pack 4 Directly to port 8080 Internet Explorer 6.0.2800.1106 with all security patches up to date I tried http://(url):8080/index.jsp%20 Tomcat 4.1.18, 4.1.24, 4.1.26, fairly standard distributions (only adding one JNDIRealm beyond the default config) Novell NetWare 6.5 Directly to port 8080, and through Apache - mod_jk.nlm Internet Explorer 6.0.2800.1106 with all security patches up to date I tried http://(url):8080/index.jsp%20 and https://(url)/tomcat/admin/index.jsp%20 Hopefully this mail gets through; I haven't been seeing my emails show up on tomcat-user for some reason (I un/resubscribed today...) It would be really good to get to the bottom of this! Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com [EMAIL PROTECTED] 8/12/03 6:02:55 AM can you turn on debugging for the default servlet(conf/web.xml) and also turn on the requestdumpervalve(server.xml) and post the log. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: performance question
Well, there could be loads of trouble in a Tomcat! Normally it isn't just the Tomcat performing badly, the most common problem is design and code problems. You can gain 10-20% performance by tweaking Tomcat but that doesn't sound like it's enough to solve your problem. To me your problem sounds like a threadding problem! Are you using SingleThreadModel on the servlets (Don't) ? Are any of the service() (also doPost, doGet ect.) methods synchronized ? Do you use the session object for storing large amounts of data (don't) ? How many DB connections do you have ? What's the threadcount ? Don't mind that it's about WebSphere, the general principles are the same.: http://www-3.ibm.com/software/webservers/appserv/ws_bestpractices.pdf A little more light entertainment : http://www.fawcette.com/javapro/2002_08/online/servletsjsp_08_06_02/Java%20Servlets%20Ch16.pdf Regards Kleth -- Kristian A. Leth Maersk Data Transport/Architects Specialists. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question about Notify all online user
Thx ben, I do very areciate your help. - Original Message - From: Ben Souther [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, August 14, 2003 1:02 AM Subject: RE: Question about Notify all online user I'm not at liberty to give out any code but the implementation is pretty straight forward. An iframe (inline frame) is just an HTML tag that allows you to embed one webpage into another. A Google search will get you many examples of it's implementation. The IFrame is in a div that has it's visibility set to hidden. The page in the iframe meta refresh tag that causes it to reload every n seconds. I think we have it set to 60 seconds. Every time the frame refreshes, the servlet queries the database for unread messages. If it finds any, it rewrites page and adds a javascript function which is triggered from the body onload event that fires off a popup window telling the user how many unread messages they have. In our database, we have two attributes for this feature; is_new and is_read. The proc sets the is_new value to false every time it runs so that the user doesn't have to deal with a popup window every time the page refreshes (unless a new message shows up, of course). is_read is pretty self explanatory. When users first log in they are shown a list of unread messages. In our case the popup window is actually a hidden div with gets set to visible when it needs to pop up. This works nicely for us because we can put links to the messages right in the popup window. It's best to keep treads on the list. That way someone else will be able to read the answer and possibly avoid asking the same question. Hope this helps -Ben On Wednesday 13 August 2003 12:39 pm, you wrote: Ben! Wah! Great! Could you give me more information about your implementation? I am not clear with iFrame. - Original Message - From: Ben Souther [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, August 14, 2003 12:32 AM Subject: Re: Question about Notify all online user We're doing something like this with a hidden frame (an iFrame) that refreshes it self every n seconds (using the Meta refresh tag). The frame just points to a servlet which queries the database for new messages. If there is a new message, the iframe uses javascript to fire off a pop up. message. You're other option would be to use an applet that maintains a statefull connection to your server. A applet list would be a better place to discuss that approach though. On Wednesday 13 August 2003 12:07 pm, engp0510 wrote: Hi, all How to implement notifying all online user when the record in database has been changed? I am using Servlet and JSP to build a small Supply-Chain system running on Tomcat with MySQL. Thanks Zhidao -- Ben Souther F.W. Davison Company, Inc. -- Ben Souther F.W. Davison Company, Inc. REGISTER NOW FOR THE SCORPEO USER CONFERENCE! September 18-19, 2003 in Boston/Brookline, MA Additional Training Sessions held September 17, 2003 More info http://www.fwdco.com/services/Uconf03/default.shtm - 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: Stable tomcat + apache + mod_j2 + ssl
Thanks a lot. Your help has been invaluable. I am not seeing Tomcat 4.1.24 download files on the website. I can see the Tomcat 4.1.27 downloads. Is there any place in particular I should be looking for the old binaries. -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 11:38 AM To: Tomcat Users List Subject: Re: Stable tomcat + apache + mod_j2 + ssl It seems stunnel is available for Windows, assuming you have a functional SSL library installed on both the web server and app server. John John Turner wrote: Mod_ssl is an Apache module that allows SSL encryption between the webserver and the client. It is not involved in any way with the communications between Apache and Tomcat. There is no such thing as an Apache connector that encrypts transmissions to Tomcat, SSL or otherwise. As far as I know, you have two options: 1) hack the Apache module source code and implement SSL yourself or 2) use an external application such as stunnel or some other tool to tunnel the AJP protocol over an encrypted channel. I am not familiar with any such tools on a Windows OS, they may or may not exist...on a UNIX or Linux it wouldn't be very hard to setup. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Monitoring Tomcat
Hello, I´d like to know about any tools one can use to monitor Tomcat JVM for performance issues (e.g. most consuming object, gc execution). Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Class Not Found Error for WebApp
Hi, I am using Tomcat4.1, Apache2.0.4, Linux Redhat9.0, j2sdk1.4.2, and WebApp connector I downloaded from CVS. I created webapp.so module and .jar file and place it in server/lib and I am gettint error class not found when trying to start Tomcat4. I tried puting classes directory from warp/build/ to /var/tomcat4/common and it didn't help. Here is the error trace from log file (catalina.out): at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Caused by: java.lang.NoClassDefFoundError: org/apache/catalina/Connector at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:621) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:958) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:941) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252) at org.apache.commons.digester.Digester.startElement(Digester.java:1237) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.Catalina.start(Catalina.java:449) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) ... 5 more --- I would appreciate any help, Thanks, Vid __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Changing document root for .jsp files?
Hi all! I have the following layout for my web application: webapp/ webapp/WEB-INF webapp/admin webapp/member I have .jsp files in the webapp directory, webapp/admin and webapp/member. When someone goes to the root of my website (www.site.com/*.jsp), it gets the files out of the webapp/ directory. member and admin are protected areas, which all work fine. I'd like to make another subdir under webapp called root or something like that, so the root of the web site isn't one level up from my WEB-INF. Is this possible? I've googled incessantly and can't seem to find out how to do this. Thanks in advance for any thoughts or ideas on this. Thanks! /kurt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Retrieving DOCUMENT_ROOT from apache using mod_jk
In my CGI programming days I often used the cgi variable called DOCUMENT_ROOT, which apache sets to the root of the document tree. This was very useful because we have many virtual hosts with different document roots. I'm trying to find a method of retrieving this variable from a servlet. I have tomcat 4.1.27 connected to Apache using mod_jk. A couple of sources I have found suggest using getServletContext().getRealPath(/). However when I try this it gives me the location of my servlet and not of the apache server's document tree. Does anyone know how I can retrive this information? Many Thanks Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running servlet via SSL???
Did you do the full SSL setup on Apache? You can't just switch from http to https without doing all the configuration and having a SSL virtual host setup. RE: your question, yes, it is possible to use SSL, many people are doing so. If you can be more specific about what you've done and what error you're getting, perhaps we can be of more help. John Carlos wrote: Hi Forum, Is it possible to run/navigate to a servlet via an SSL connection? I have Apache and Tomcat 4.x installed in RedHat 7.x and I can navigate (with IExplorer) to a test servlet (which sends a hello message to standard output) with the following call: http://server http://server ip:8080/context/servlet/name of class But if I use https instead of http the servlet does not run. I have tried to change the port to 43 and 8443 without success. Apache and Tomcat were installed with their defaults settings so I am not sure if Tomcat is running as stand alone or not. Thanks in advance for your response. Carlos Oliva - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat, SecurityManager, and catalina.policy
Hello all. Quick questions: 1) The only way to start Tomcat 4.1.18 with a SecurityManager (i.e. -Djava.security.manager @ the command line) is by starting Tomcat via: %CATALINA_HOME%/bin/catalina start -security This does in fact launch Tomcat into a JVM with a SecurityManger, right? Is this the only way to run Tomcat with a SecurityManager? 2) The %CATALINA_HOME%/conf/catalina.policy file...is this the only security policy Tomcat will examine? Does it also use the default java security policy in %JAVA_HOME%/jre/lib/security/java.policy file? Can I specify additional security policy files by editing the %CATALINA_HOME%/bin/catalina.bat file by placing a -Djava.security.policy=foo.policy within this file's set JAVA_OPTS line? I really need the clarification...seems my last message has been ignored. Thanks in advance. - Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo.
Re: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47
Stuart, from what I can see in your make output, everything should be there. Here's a piece from your make output: --- /build/jk2/apache2/.libs/mod_jk2.* --- so from within your native2 directory you should: --- cd ../build/jk2/apache2/.libs --- and it should be there ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question about Notify all online user
I've heard of hidden frames, but never seen them. (that's not a pun). could the hidden frame contain HTML that has a metarefresh of say 1 minute. The HTML is generated by a JSP. This JSP would track if there was a change. If there wasn't a change, just output a blank body with the meta refresh. If there *was* a change though, output a page that has some javascript onLoad stuff that will pop open a new window that contains * a static message that something changed * custom message that 'XYZ' changed. The popup page would then be driven by a JSP -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:13 AM To: Tomcat Users List Subject: RE: Question about Notify all online user Howdy, How to implement notifying all online user when the record in database has been changed? I am using Servlet and JSP to build a small Supply-Chain system running on Tomcat with MySQL. Cool design question ;) You probably can't do it immediately on change, but on the next page the user loads after the change. Here's an approach: - Have a Filter mapped to all requests (url-pattern /*) that polls the DB or listens for the DB change event from another source. - Have a servlet that displays the contents of this change, let's call it ServletA - When the DB changes, the filter is notified and does the following: - Puts a notified attribute with value false in every incoming request - Gets a RequestDispatcher for ServletA and includes its contents in the response - Sets the notified attribute to value true after chain.doFilter, i.e. on the response's way back to the browser It's just an idea, doubtless others will have a different take ; Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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]
Where to find jakarte-tomcat-jasper src tarball???
I have searched all over the web looking for this tarball. I found the CVS repository that contains the individual files for jasper, but there was no download tarball link. Im new to Apache's CVS so maybe Im missing something simple here. I roamed through the viewCVS website but found nothing on downloading the entire jasper directory. Can someone please point me in the right direction??? Thanks much, DK David Kramer Software Developer Reflect.com Direct: 415.369.4856 Cell: 650.302.7889 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where to find jakarte-tomcat-jasper src tarball???
DOH!!! You were dead right, I cant believe I over looked that, I will adjust my build.properties file adding the correct location to jasper. Wow and it was right under my nose this entire time. Thanks for the tip!!! Thanks much, DK -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 8:01 PM To: [EMAIL PROTECTED] Subject: Re: Where to find jakarte-tomcat-jasper src tarball??? It is packaged with the 4.1.x tarball (ditto for 5.0.x). You'll find it in the 'jasper' directory where you unpacked the tarball. David Kramer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 1.reflect.com... I have searched all over the web looking for this tarball. I found the CVS repository that contains the individual files for jasper, but there was no download tarball link. Im new to Apache's CVS so maybe Im missing something simple here. I roamed through the viewCVS website but found nothing on downloading the entire jasper directory. Can someone please point me in the right direction??? Thanks much, DK David Kramer Software Developer Reflect.com Direct: 415.369.4856 Cell: 650.302.7889 - 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: TR : how to delete log files
Not sure if there are any automatic ways of doing so. If you're using Unix (or Linux), I'd suggest using find and cron. Have a look at the man pages for find, cron and crontab. Cheers, - Johan --- Johan Krisar johan.krisar(at)depicta.com - At 15:37 2003-08-14 +0200, you wrote: Is there a way in TOMCAT to delete automatically and regularly log files created in tomcat/logs directory - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JNDI DataSource Realm
Tomcat 4.1.27 PostgreSQL 7.3.4 pg73jdbc3.jar Trying to use JNDI as a Realm source for both auth and data access for a whole server, therefore trying as a GlobalNamingContext attribute. No love. * Set up as a JDBC Realm, auth works. * Set up Datasource as JNDI Resource within DefaultContext, data access works. Move Resource and params to GlobalNamingContext and I get the Name jdbc is not bound in this Context error. Saw lots of refs to this error via Google, but none relevant AFAICT. (Do I look up resources in the global context differently? If so doesn't that kind of break the idea of it being an abstractly defined data source?) Anyone successfully using GlobalNamingContext for DataSources? Using these components (Tomcat 4.1.x, postgreSQL)? Change Realm from JDBC to DataSourceRealm and auth does not work (or report any errors in logs). server.xml (with DataSourceRealm commented out) Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources /GlobalNamingResources !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / !-- Note : To disable connection timeouts, set connectionTimeout value to -1 -- !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- Define the top level container in our container hierarchy -- Engine name=Standalone defaultHost=localhost debug=0 !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ !-- Because this Realm is here, an instance will be shared globally -- !-- Realm className=org.apache.catalina.realm.DataSourceRealm debug=99 dataSourceName=java:/comp/env/jdbc/Auth userTable=Account userNameCol=username userCredCol=password userRoleTable=AccountRole roleNameCol=role_name/ -- Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.postgresql.Driver connectionURL=jdbc:postgresql://localhost/www_auth connectionName=www userTable=Account userNameCol=username userCredCol=password userRoleTable=AccountRole roleNameCol=role_name/ !-- Define the default virtual host -- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true Valve className=org.apache.catalina.authenticator.SingleSignOn debug=0/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ !-- Context path= docBase=ROOT debug=0/ -- DefaultContext Resource name=jdbc/Auth auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/Auth parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value100/value /parameter parameter namemaxIdle/name value30/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameusername/name valuewww/value /parameter parameter namepassword/name value/value /parameter parameter namedriverClassName/name valueorg.postgresql.Driver/value /parameter parameter nameurl/name valuejdbc:postgresql://localhost/www_auth/value /parameter /ResourceParams /DefaultContext /Host /Engine /Service /Server - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need Help
Hello, I was using Tomcat 3.1 on old server and we have shifted to new server now. we were using URL http://domain.com:8080/test/servlet/ServletName to access the user developed servlet files. We are having Tomcat 4.1 on our new server. So plz send me the instructions to configure the above context directly to tomcat confi. files for which the docbase is /webapps/examples/WEB-INF/classes/. Regards Yogesh ___ Meet your old school or college friends from 1 Million + database... Click here to reunite www.batchmates.com/rediff.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: From which apache virtual host did a request come from?
Same deal. Apache doesn't know anything about webapps. You just send requests for certain hosts to tomcat using workers2.properties. Tomcat then uses its host entries to decide which webapp get what. -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 10:27 AM To: 'Tomcat Users List' Subject: RE: From which apache virtual host did a request come from? Actually, I was speaking about virtual hosts in Apache Web Server. ;) A few more details: I have an application that parses the URI for some parameters. Basically the sponsors hate URLs that look like: http://www.foo.com/?foo=abar=bbaz=c So my fix was to parse the URI for the parameters in a known order. http://www.foo.com/a/b/c They don't like this either. less typing, cleaner, but *still* not 'friendly'. I might tell them that people using the web are used to this sort of thing by now, but hey, they're the sponsors and they want it different. So my last option is to flatten the parameters and use a subdomain. http://abc.foo.com/ http://xyz.foo.com/ So that's two virtual hosts in Apache, jk mounted to a single (default) application on Tomcat. That's possible, right? -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 8:59 AM To: Tomcat Users List Subject: Re: From which apache virtual host did a request come from? It's within Host. John Angus Mezick wrote: Isn't there an Alias tag within Context? -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 9:32 AM To: Tomcat Users List Subject: Re: From which apache virtual host did a request come from? Mike Curwen wrote: 1) Is it possible to mount several virtual hosts to the same web application (the default one, as it happens) I think this is possible, though maybe not desired. You can see this with the manager app. Setup a bunch of virtual hosts that have the same appBase, with Contexts that have the same docBase, and you will be able to reach the same application on any of the host names. I determined that it was better to give a separate appBase to each virtual host. If you mean setting separate appBase's for each virtual host, and still being able to access the same webapp (Context with the same docBase not a copy of the webapp in another docBase), I would say no. It's at least a security risk. Someone please correct me if I'm wrong. - 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]
hardware recommendation, Tomcat with Apache web server
what would be appropriate hardware for a Tomcat with Apache web server running on Win2k server (for a public OLTP-type web service with database backend running on its own dedicated machine)? probably use striped (raid-0) scsi drive system, but not sure if dual cpu's required, P3, P4 or Zeon system would be appropriate? -paul lomack
JNDIRealm User bind context available in the Servile Context?
In a servlet I would like to access the same JNDIRealm directory server context that is used during BASIC authentication. Is it possible to configure the jndirealm as a resource link for the servlet context? I *can* make an Application super user to establish a DirContext , but wanted to use the same bind as the user/credentials. from the class org.apache.catalina.realm.JNDIRealm I am trying to avoid using FORM authentication... And am trying to avoid writing my own org.apache.catalina.realm.JNDIRealm class And trying to avoid putting clear text passwords in code or config files... Any help appreciated tia dant
Re: tomcat-4.1.24 compile error issue with commons-fileupload????
Either: 1) get the HTMLManagerServlet.java file from 4.1.27 2) look in the CVS, and apply the patch to your copy 3) get commons-fileupload-B1 David Kramer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Im trying to compile tomcat 4.1.24 from source and Im receiving the below error: [javac] Compiling 46 source files to /opt/tomcat/catalina/build/server/classes [javac] This version of java does not support the classic compiler; upgrading to modern [javac] /opt/tomcat/catalina/src/share/org/apache/catalina/servlets/HTMLManagerServl et.java:205: cannot resolve symbol [javac] symbol : method setRepositoryPath (java.lang.String) [javac] location: class org.apache.commons.fileupload.FileUpload [javac] upload.setRepositoryPath(tempdir.getCanonicalPath()); [javac] ^ [javac] /opt/tomcat/catalina/src/share/org/apache/catalina/servlets/HTMLManagerServl et.java:262: write(java.io.File) in org.apache.commons.fileupload.FileItem cannot be applied to (java.lang.String) [javac] warUpload.write(file.getCanonicalPath()); [javac] I found the same error online, apparently a developer changed the API within commons fileuploads around the 21st of July(atleast thats when the email was posted to the archives). The email mentioned something about using a new fileupload version where the missing method is found(DiskFileUpload). The email also said to not use an older version of commons-fileupload. Does anyone have any ideas or recommendations on resolving this issue? Im completely stumped and need to get Tomcat up and running ASAP. Unfortunately Im being forced to compile this from scratch, so just getting the Tomcat binaries isnt an option. Any insight is appreciated. Thanks, DK David Kramer Software Developer Reflect.com Direct: 415.369.4856 Cell: 650.302.7889 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with mod_jk and admin application in Tomcat 4.1
You're using a sledgehammer where a light tap will do fine. Ajp13Connector doesn't like MBeans, or vice versa. Either don't use MBeans, or use CoyoteConnector instead of Ajp13Connector. The latter is preferred and recommended, Ajp13Connector is deprecated. John J.P. Wadkin C9951627 wrote: It seems that it's not possible to use mod_jk with the admin application in Tomcat 4.1 On startup this appears in catalina.out ServerLifecycleListener: Creating MBean for Service StandardService[Tomcat-JK] ServerLifecycleListener: Creating MBean for Connector [EMAIL PROTECTED] ServerLifecycleListener: createMBeans: MBeanException java.lang.Exception: ManagedBean is not found with Ajp13Connector stack trace So I edited the mbeans-descriptors.xml file in the catalina.jar and added an mbean for the Ajp13Connector. Tomcat started fine (no errors) but mod_jk no longer works - any request to a webapp URL results in a 404 error. There's nothing in the logs - just the 404 errors. I'm not sure why this is - there's a mbean for the Coyote/jk2 connector so presumably this works? Thanks John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to use run-as
Hello, in my environment I have a servlet which act as an EJB Client. The servlet uses BASIC authentication. But the call to the EJB should use another principal. As far as I understand the servlet spec, run-as can be used to do such things. Here is a snippet from my web.xml file servlet servlet-nameEjbClientServlet/servlet-name display-nameEjbClientServlet/display-name servlet-classexamples.servlet.EjbClientServlet/servlet-class run-as role-nametomcat/role-name /run-as /servlet servlet-mapping servlet-nameEjbClientServlet/servlet-name url-pattern/EjbClientServlet/url-pattern /servlet-mapping security-constraint web-resource-collection web-resource-nameWRCollection/web-resource-name url-pattern/EjbClientServlet/url-pattern /web-resource-collection auth-constraint role-nameadmin/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameDefault/realm-name /login-config ejb-ref ejb-ref-nameEjbCaller/ejb-ref-name ejb-ref-typeSession/ejb-ref-type homeexamples.ejb.session.ejbCaller.EjbCallerHome/home remoteexamples.ejb.session.ejbCaller.EjbCaller/remote /ejb-ref I don't understand how the mapping to the principal is made that is propagated to the EJB. I assume I have to configure something in the configuration files of tomcat. Unfortunately I could not find documentation about this. Any help is appreciated. Cheers Karin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Any Tool to generate servlet mapping from file system files.
LOL Angus Mezick wrote: http://www.perl.org/ -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 9:11 AM To: Tomcat Users List Subject: Re: [OT] Any Tool to generate servlet mapping from file system files. If you don't mind the security risk, just use the Invoker. Problem solved. John Antony paul wrote: hello, Is there any tool or code snippet(other than IDE tools) available to generate servlet mapping for a web applications all servlet. It must search the specified directories(because some directories under WEB-INF contain normal java classes). The servlet mapping must be the name of the file. I am asking because I dont use servlet mapping and my application contains lots of servlet in different directories. If anyone know any tool or code snippet availble to do this please inform me. Or please any one write this. regards Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: security hole on windows Apache - Tomcat?
Ok. I have this problem but it isn't tomcat that is doing the serving of the JSP source. It is apache. This is my workers2.properties uri section: [uri:www.SITENAME.org/*.jsp] group=lbWWW [uri:www.SITENAME.org/*.adp] group=lbWWW [uri:www.SITENAME.org/*.inc] group=lbWWW [uri:www.SITENAME.org/servlet/*] group=lbWWW [uri:www.SITENAME.org/*.gs] group=lbWWW I am guessing the problem is because http://www.SITENAME.org/index.jsp%20 is not a match for http://www.SITENAME.org/*.jsp (that trailing space messes stuff up. Should I just create a RedirectMatch for this case that removes all trailing whitespace? Would mod_rewrite be better for this? I am using this list for this question because I KNOW the apache list doesn't want tomcat integration questions. --Angus -Original Message- From: Jeff Tulley [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 9:14 PM To: [EMAIL PROTECTED] Subject: Re: security hole on windows tomcat? I've verified that this workaround stops the problem on Win XP's 1.4.2 and on NetWare's 1.4.2 Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com [EMAIL PROTECTED] 8/12/03 7:08:50 PM Sorry I've just realize this thread may be related to bugtraq #4895132 (thanks to Jeff for the wake up mail on tomcat-dev ;-) ). The workaround is to add the following property when starting Tomcat: -Dsun.io.useCanonCaches=false Can someone try it and let me know if it change something. If this is not working, then point me to a very simple test case and I will file a new bugtraq bug. -- Jeanfrancois Eric J. Pinnell wrote: I think at this point this might be a worthwile canidate for Sun's bugparade. At least get it on their radars (if they don't know about it already). It's interesting that the bug doesn't show up in Tomcat 4.1.27. When 1.4.2 was released 4.1.24 was the latest stable build. Regardless the JDK/appserver/whatever should never puke it's guts and spit out the source code when it gets a request it doesn't know how to deal with. Upon failure it should result in some kind of error. Sun might care about this... -e On Tue, 12 Aug 2003, Jeff Tulley wrote: It is highly possible that this is dependent on the JVM you have installed. I actually finally WAS able to see this on Windows XP, but only if Tomcat was running on JVM 1.4.2. The problem did NOT happen with 1.4.1. Of course, JVM version is the one item I left off of my poll in my email below. :) I'm trying to verify this on other OS's and track down what the actual problem is. But, if you run Tomcat on JVM 1.4.2, verify if you have this problem. Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com [EMAIL PROTECTED] 8/12/03 4:10:53 PM Tomcat 4.0.6 on Win2K via direct connection to Tomcat on localhost via either port 8080 or port 80 - pages return fine without the %20 suffix, always return http 404 with the suffix. Murray -Original Message- From: Jeff Tulley [mailto:[EMAIL PROTECTED] Sent: Wednesday, 13 August 2003 02:41 To: [EMAIL PROTECTED] Subject: RE: security hole on windows tomcat? So this issue is confusing. It seems that indeed there IS an issue, though most cannot see a problem. Talking to some people off-list, it seems that some think it is a JK2 / workers2.properties issue. But I'm pretty sure that others have seen this going directly to port 8080. We probably need to take a quick poll: If you have seen this security problem of being able to view JSP source, in what scenario(s)? Tomcat version OS version Directly to Tomcat (8080) or through Apache - JK or JK2? (If you've seen the problem, please include your workers or workers2.properties file, with a .txt extension) Browser version(s) url's where this was seen or not seen If you have seen this in multiple scenarios, and not in others, please list each separately. I have NOT seen it in the following scenarios: Tomcat 4.1.18, 4.1.24, 4.1.26, 4.1.27 Windows 2000 5.00.2195 Service Pack 4 Directly to port 8080 Internet Explorer 6.0.2800.1106 with all security patches up to date I tried http://(url):8080/index.jsp%20 Tomcat 4.1.18, 4.1.24, 4.1.26, fairly standard distributions (only adding one JNDIRealm beyond the default config) Novell NetWare 6.5 Directly to port 8080, and through Apache - mod_jk.nlm Internet Explorer 6.0.2800.1106 with all security patches up to date I tried http://(url):8080/index.jsp%20 and https://(url)/tomcat/admin/index.jsp%20 Hopefully this mail gets through; I haven't been seeing my emails show up on tomcat-user for some reason (I un/resubscribed today...) It would be really good to get to the bottom of this! Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell,
RE: Clustering applications
yeah, the current clustering is an all to all node replication, If I find time I will optimize that Filip -Original Message- From: Cristopher Daniluk [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 9:00 AM To: 'Tomcat Users List' Subject: RE: Clustering applications We have it set to true. The developers are serializing way more than they should be to the session though.. -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 12:21 AM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: RE: Clustering applications cris, what is your useDirtyFlag set to in the server.xml. This should be set to true, if you wanna optimize the session replication performance. Filip -Original Message- From: Cristopher Daniluk [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 8:47 PM To: 'Tomcat Users List' Subject: RE: Clustering applications We use tomcat-replication.jar, which is the backport that someone else mentioned earlier. It works well as a failover tool, but there is a slight delay in replication. Maybe tuning could alleviate that but I think with rapid browsing, it may not be able to keep up. We use the replication for failover support, but we still keep sticky sessions via a jvmRoute.. Cris -Original Message- From: Sean Leblanc [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 6:50 PM To: [EMAIL PROTECTED] Subject: Clustering applications Suppose I wanted to set up Tomcat and share some common info across apps running on the instances of Tomcat. How would I do this? When googling for a bit, I came across JavaSpaces. Is anyone else using this, or is that barking up the wrong tree? Thanks, Sean LeBlanc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question about Notify all online user
That would work too. We're using an iframe for two reasons. 1). with an iframe, you don't need an addtional frameset page to deal with. 2). In our case the JSP in the IFrame is performing two duties. a.) It queries the database for new messages b.) It becomes the popup window that informs the user of the new messages. Unlike a js alert window, we can actually put links and message subject lines right in the popup window this way. It's also easier to call window.parent.function to make popup div from an iframe then comunicate between sibling frames. I like your filter idea. If we weren't already using frames for other reasons, I would go with a solution like that. It would be much cleaner than putting include tags at the top of every JSP. On Wednesday 13 August 2003 12:46 pm, Shapira, Yoav wrote: Howdy, The HTML probably looks something like this: frameset cols=100%,* frame src=/realContentServlet name=content frame src=/dbPingServlet name=pinger /frameset The DB ping servlet checks on the database and if there's a change, its output includes javascript to bring up a popup window. Yoav Shapira Millennium ChemInformatics -Original Message- From: engp0510 [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 12:39 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Question about Notify all online user Ben! Wah! Great! Could you give me more information about your implementation? I am not clear with iFrame. - Original Message - From: Ben Souther [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, August 14, 2003 12:32 AM Subject: Re: Question about Notify all online user We're doing something like this with a hidden frame (an iFrame) that refreshes it self every n seconds (using the Meta refresh tag). The frame just points to a servlet which queries the database for new messages. If there is a new message, the iframe uses javascript to fire off a pop up. message. You're other option would be to use an applet that maintains a statefull connection to your server. A applet list would be a better place to discuss that approach though. On Wednesday 13 August 2003 12:07 pm, engp0510 wrote: Hi, all How to implement notifying all online user when the record in database has been changed? I am using Servlet and JSP to build a small Supply-Chain system running on Tomcat with MySQL. Thanks Zhidao -- Ben Souther F.W. Davison Company, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Souther F.W. Davison Company, Inc. REGISTER NOW FOR THE SCORPEO USER CONFERENCE! September 18-19, 2003 in Boston/Brookline, MA Additional Training Sessions held September 17, 2003 More info http://www.fwdco.com/services/Uconf03/default.shtm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: bean class not found
Howdy, What's call.web-inf? It should be WEB-INF (capital). Are you properly importing the bean by its class name in your JSP? And use a better subject than urgent as I nearly rejected that from posting to the list ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: shaman jain [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 8:41 AM To: [EMAIL PROTECTED] Subject: urgent hi there, i had made a bean(URLBean ) which is used to connect to database and another jar file--tds-- which act as a bridge but i am not able to configure the server and it gives me error, bean not found i had placed the class file under webapps/call/web-unf/classes/callreg and jar file under webapps/call.web-inf/lib pls help me out as it is very very very urgent thanx in advance regards Shaman ___ Meet your old school or college friends from 1 Million + database... Click here to reunite www.batchmates.com/rediff.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need Help
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html http://jakarta.apache.org/tomcat/faq/ http://jakarta.apache.org/tomcat/faq/misc.html#invoker John Yogesh wrote: Hello, I was using Tomcat 3.1 on old server and we have shifted to new server now. we were using URL http://domain.com:8080/test/servlet/ServletName to access the user developed servlet files. We are having Tomcat 4.1 on our new server. So plz send me the instructions to configure the above context directly to tomcat confi. files for which the docbase is /webapps/examples/WEB-INF/classes/. Regards Yogesh ___ Meet your old school or college friends from 1 Million + database... Click here to reunite www.batchmates.com/rediff.asp - 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: security hole on windows Apache - Tomcat?
Here is the redirect that I use in my virtualhost entry in apache: RedirectMatch (.*?)\s+$ http://www.SITENAMEHERE.org$1 Nicely stops the problem of people adding spaces to their url's. (or any other whitespace for that matter) --Angus -Original Message- From: Angus Mezick Sent: Wednesday, August 13, 2003 1:56 PM To: Tomcat Users List Subject: RE: security hole on windows Apache - Tomcat? Not at the current late stage of development we are currently in. I know, it bites. I am going to try a trick with RedirectMatch. Maybe just redirect them into limbo, I don't know. -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:45 AM To: Tomcat Users List Subject: RE: security hole on windows Apache - Tomcat? Can you arrange your file layout in a way, that the jsp's aren't under the document root for apache ? (I guess they are, otherwise apache couldn't show them) -Original Message- From: Angus Mezick [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 5:34 PM To: Tomcat Users List Subject: RE: security hole on windows Apache - Tomcat? I ONLY see the problem in apache. So I think it is a config problem. Will the jk2 URI : [uri:www.SITENAME.org/*.jsp] catch www.SITENAME.org/index.jsp%20 ? When I turn on the accessvalve tomcat doesn't see this request. - 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]
Problem in Tomcat Administration
Title: Message Hi, We have a problem in getting into "Tomcat Administration" and "Tomcat Manager". We have installed tomcat version 4 and when we try to use Tomcat Administrator or Manager, it is asking user id and password. Please let me know what should be the default Administration userid and password. Regards, Barath Narayanan S S Wipro Technologies No. 92, 2nd Main Road, Keonics Electronics City, Bangalore - 560 100. India Tel: (Board) +91 80 51103070 extn 3069 (Mobile) +91 80 31866610 http://www.wipro.com **Disclaimer Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: hardware recommendation, Tomcat with Apache web server
Hmm, make sure you have at least 2 webservers and the ability to bring down at least one of them at any time except when you have been posted to slashdot :) -Original Message- From: Paul [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 4:35 PM To: Tomcat Users List Subject: hardware recommendation, Tomcat with Apache web server what would be appropriate hardware for a Tomcat with Apache web server running on Win2k server (for a public OLTP-type web service with database backend running on its own dedicated machine)? probably use striped (raid-0) scsi drive system, but not sure if dual cpu's required, P3, P4 or Zeon system would be appropriate? -paul lomack - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to specify -D to Tomcat NT service
Hey All, I am currently installing Tomcat on a Windows 2000 box and cannot see any way to specifying -Duser.home=x Can anyone tell me how this is done? Thanks, Ramsay -- Ramsay Domloge Lead Developer W : http://www.arkemedia.com T : +44 1256 869 200 F : +44 1256 329 119 E : mailto:[EMAIL PROTECTED] A R K E M E D I A T E C H N O L O G I E S L T D VIEW POINTBASING VIEWBASINGSTOKEHAMPSHIRERG21 4RG http://www.arkemedia.com mailto:[EMAIL PROTECTED] Tel : +44 1256 869 200 Fax : +44 1256 329 119 The information in this e-mail and in any attachments is confidential and is intended solely for the attention and use of the named addressee(s). If you are not the intended recipient, or a person responsible for passing it on to the intended recipient, you are not authorised to hold a copy of this information and you must therefore not disclose, copy, distribute, or retain this message or any part of it. MAILTO:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: security hole on windows Apache - Tomcat?
Yes, but all Apache does is redirect the request to Tomcat for handling. Tomcat itself decides whether to compile the JSP or serve the file as a static file (and hence, show the source). I saw this problem both directly to Tomcat (8080), and through Apache integration, until I did the workaround. There IS somebody on the Tomcat development list who still has the problem -- he is running Tomcat as a Windows Service, with Apache integration, and the workaround doesn't seem to work. I cannot duplicate since I don't run it as a service or use mod_jk2 like he is. Are you sure you still see this with the workaround? It went away for me even with my apache-served urls. Also, is backrevving the JVM to 1.4.1 an option for you? I'd try that and see if that fixes the problem. The behaviour of your site WAS exactly the same as mine once I was able to get the problem to happen on my box, so it seems like we are all seeing the same thing. Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com [EMAIL PROTECTED] 8/13/03 6:53:39 AM Ok. I have this problem but it isn't tomcat that is doing the serving of the JSP source. It is apache. This is my workers2.properties uri section: [uri:www.SITENAME.org/*.jsp] group=lbWWW [uri:www.SITENAME.org/*.adp] group=lbWWW [uri:www.SITENAME.org/*.inc] group=lbWWW [uri:www.SITENAME.org/servlet/*] group=lbWWW [uri:www.SITENAME.org/*.gs] group=lbWWW I am guessing the problem is because http://www.SITENAME.org/index.jsp%20 is not a match for http://www.SITENAME.org/*.jsp (that trailing space messes stuff up. Should I just create a RedirectMatch for this case that removes all trailing whitespace? Would mod_rewrite be better for this? I am using this list for this question because I KNOW the apache list doesn't want tomcat integration questions. --Angus -Original Message- From: Jeff Tulley [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 9:14 PM To: [EMAIL PROTECTED] Subject: Re: security hole on windows tomcat? I've verified that this workaround stops the problem on Win XP's 1.4.2 and on NetWare's 1.4.2 Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com [EMAIL PROTECTED] 8/12/03 7:08:50 PM Sorry I've just realize this thread may be related to bugtraq #4895132 (thanks to Jeff for the wake up mail on tomcat-dev ;-) ). The workaround is to add the following property when starting Tomcat: -Dsun.io.useCanonCaches=false Can someone try it and let me know if it change something. If this is not working, then point me to a very simple test case and I will file a new bugtraq bug. -- Jeanfrancois Eric J. Pinnell wrote: I think at this point this might be a worthwile canidate for Sun's bugparade. At least get it on their radars (if they don't know about it already). It's interesting that the bug doesn't show up in Tomcat 4.1.27. When 1.4.2 was released 4.1.24 was the latest stable build. Regardless the JDK/appserver/whatever should never puke it's guts and spit out the source code when it gets a request it doesn't know how to deal with. Upon failure it should result in some kind of error. Sun might care about this... -e On Tue, 12 Aug 2003, Jeff Tulley wrote: It is highly possible that this is dependent on the JVM you have installed. I actually finally WAS able to see this on Windows XP, but only if Tomcat was running on JVM 1.4.2. The problem did NOT happen with 1.4.1. Of course, JVM version is the one item I left off of my poll in my email below. :) I'm trying to verify this on other OS's and track down what the actual problem is. But, if you run Tomcat on JVM 1.4.2, verify if you have this problem. Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com [EMAIL PROTECTED] 8/12/03 4:10:53 PM Tomcat 4.0.6 on Win2K via direct connection to Tomcat on localhost via either port 8080 or port 80 - pages return fine without the %20 suffix, always return http 404 with the suffix. Murray -Original Message- From: Jeff Tulley [mailto:[EMAIL PROTECTED] Sent: Wednesday, 13 August 2003 02:41 To: [EMAIL PROTECTED] Subject: RE: security hole on windows tomcat? So this issue is confusing. It seems that indeed there IS an issue, though most cannot see a problem. Talking to some people off-list, it seems that some think it is a JK2 / workers2.properties issue. But I'm pretty sure that others have seen this going directly to port 8080. We probably need to take a quick poll: If you have seen this security problem of being able to view JSP source, in what scenario(s)? Tomcat version OS version Directly to Tomcat (8080) or through Apache - JK or JK2? (If you've seen the
RE: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47
I did exactly that, and there's still no .so -Original Message- From: Richard Park [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 13:29 To: Tomcat Users List Subject: Re: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47 Stuart, just to be sure I downloaded the version of jk2 that you have and tried building it myself, and everything went smoothly. If your willing, here's exactly what I did: # cd /usr/local/src # wget http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0. 2/src/jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz # gunzip -dc jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz | tar xf - # cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 # ./configure --with-apxs2=/usr/local/apache2/bin/apxs # make # cd ../build/jk2/apache2 # ls -la and the mod_jk2.so file was there ... if it continues to fail for you I email you my mod_jk2.so - 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]
Jasper2's JspC
Hi, I'm having partial luck manually invoking JspC and compiling JSP pages on demand. I get as far as precomiling to .java, but for the world of me can't figure out how to get the java class compiled to bytecode. Looking at the source code for org.apache.jasper.compiler.Compiler, it appears that I should be getting a .class as well, but I'm not. Can anyone offer any pointers or sample source code I could look at (reminder, this is for Japser2)? Thanks Dmitry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Reloadable Servlet?
Doh. 4.1.27. :-) The hotfix is available here: http://jakarta.apache.org/site/binindex.cgi Click on the Tomcat 4.1.27 link. It's hotfix 22096 apparently. Not sure what the bug number is, and I haven't worked out how to use the bugzilla search form properly yet. There was a discussion about it on this list a couple of weeks ago. Dave -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 2:42 PM To: Tomcat Users List Subject: RE: Reloadable Servlet? Howdy, If you're using tomcat 1.4.27 you might have more than just this problem ;) Also, if you're using Tomcat 1.4.27 then there's a bug which stops the reload from working properly. A hotfix is available from the jakarta website. What bug and fix are you referring to? Yoav Shapira Millennium ChemInformatics This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to specify -D to Tomcat NT service
As we were discussing a security issue today (I think on the development list), somebody incidentally wrote how to do this. Here is what they did: quote name=Laurent Blume I added those keys in thr registry for the Tomcat service, and restarted it: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat 4.1\Parameters] JVM Option Count=dword:0005 JVM Option Number 3=-Dfile.encoding=ISO-8859-1 JVM Option Number 4=-Dsun.io.useCanonCaches=false /quote I don't know where this is documented - look in the faq ( http://jakarta.apache.org/tomcat/faq ), or in the various how-to documents at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com [EMAIL PROTECTED] 8/13/03 9:57:48 AM Hey All, I am currently installing Tomcat on a Windows 2000 box and cannot see any way to specifying -Duser.home=x Can anyone tell me how this is done? Thanks, Ramsay -- Ramsay Domloge Lead Developer W : http://www.arkemedia.com T : +44 1256 869 200 F : +44 1256 329 119 E : mailto:[EMAIL PROTECTED] A R K E M E D I A T E C H N O L O G I E S L T D VIEW POINTBASING VIEWBASINGSTOKEHAMPSHIRERG21 4RG http://www.arkemedia.com mailto:[EMAIL PROTECTED] Tel : +44 1256 869 200 Fax : +44 1256 329 119 The information in this e-mail and in any attachments is confidential and is intended solely for the attention and use of the named addressee(s). If you are not the intended recipient, or a person responsible for passing it on to the intended recipient, you are not authorised to hold a copy of this information and you must therefore not disclose, copy, distribute, or retain this message or any part of it. MAILTO:[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: unpackWars
Howdy, One way that I know that seems to work with Tomcat is to call getServletContext().getRealPath() If it returns null, that means you are running as a WAR file. I'm not sure how reliable this is. Seems to be fine from what I've seen. This is more or less reliable. The original question is skewed at best, however, as a webapp is not supposed to know whether it's packed or not and certainly not supposed to run differently depending on whether it's packed or not. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error
Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error I am running Jbuilder 7, JBoss 3.0.2. When I touch a jsp I get the following exception when trying to run it javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja va:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234 3) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa lve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j ava:1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java: 1107) at java.lang.Thread.run(Thread.java:479) root cause java.lang.NoClassDefFoundError: sun/tools/javac/Main at com.borland.jbuilder.webserverglue.tomcat.jsp.JasperSunJavaCompiler.comp ile(Unknown Source) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(J spServlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle t.java:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja va:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234 3) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :180) at
Re: Problem in Integrating Tomcat with Apache
Lance, I've used John Turners method for Windows 2000 many times without a problem. One thing you might want to do if you have followed all the instructions is to add the following to the bottom of your Apache conf file: JkWorkersFile d:\java\Tomcat41\conf\jk\workers.properties - change to what ever your Tomcat reference is JkLogFile d:\java\Tomcat41\logs\mod_jk.log - change to what ever your Tomcat reference is Include d:/java/Tomcat41/conf/auto/mod_jk.conf - change to what ever your Tomcat reference is JkMount /myapp ajp13 - change myapp to whatever your app is in the Tomcat webapp directory JkMount /myapp/* ajp13 Restart Tomcat and Apache Hopes this helps. Lenny Sorey JkWorkersFile d:\java\Tomcat41\conf\jk\workers.properties JkLogFile d:\java\Tomcat41\logs\mod_jk.log Include d:/java/Tomcat41/conf/auto/mod_jk.conf JkMount /wilsondodge ajp13 JkMount /wilsondodge/* ajp13 On Sun, 10 Aug 2003 14:25:25 -0400, Xingqun Jiang wrote: Hi, Mike I followed this article to do the set-up: http://www.johnturner.com/howto/winxp-howto.html But the problem still exists. I cannot open the jsp page from another computer, without adding port number. :-( The article you forwarded to me is for Linux, Is there any for WindowsXP? Thanks Lance - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 1:51 PM Subject: Re: Problem in Integrating Tomcat with Apache On Sun, 2003-08-10 at 13:31, Xingqun Jiang wrote: Hi, Mike Thanks a lot!!! I also searched some documents online. One of them said, when we install the Apache, we need to set the domain name and server name as localhost. I simply left them in default values. So I am reinstalling the apache. Do you think that will make difference? If you see the Apache default install page when you type http://localhost in your browser then apache is working and there's no need to reinstall it, just set up the configuration to achieve what you want. What operating system are you using? I will check out the artiles you forwarded. Thanks! Lance - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 1:27 PM Subject: Re: Problem in Integrating Tomcat with Apache No, it doesn't appear you have integrated tomcat. When you access tomcat via port 8080, you are accessing tomcat directly. When you are accessing tomcat through apache, apache communicates w/ tomcat via port 8009. I think the best way to approach integrating tomcat w/ apache for the 1st time is to forget about all the examples and config files that come w/ tomcat and start w/ a bare bones approach. This document may prove helpful: pdf: http://www.meritonlinesystems.com/docs/howto_apache_tomcat.pdf OpenOffice doc: http://www.meritonlinesystems.com/docs/howto_apache_tomcat.sxw Mike On Sat, 2003-08-09 at 23:27, Xingqun Jiang wrote: Hi, I tried to integrate Tomcat (on port 8080) with Apache (on port 80). When I tested on the local machine(192.168.2.3), the following two urls pointed to the same page: http://localhost/examples/jsp/dates/date.jsp http://localhost:8080/examples/jsp/dates/date.jsp However, when I tested on another computer, only this url works: http://192.168.2.3:8080/examples/jsp/dates/date.jsp The other address: http://192.168.2.3/examples/jsp/dates/date.jsp says page cannot be found Did I sucessfully intergrate Tomcat with Apache? Help me! Lance - 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]
Name JDBC is not bound in this context.
Hi, I am getting this error in my log files: name jdbc is not bound in this context and I cannot see any reason why. I have found multiple examples on the web but nobody seems to answer queries about it! My program is using Tomcat 4.0.4 connection pooling and seems to be working fine (if a little slow) so I cannot see what could be wrong. Can anyone help me? Please! Andoni.
Re: Freeing processors
Hi With RH 8, you can see the threads using the option -m Att Mauricio El Jue 07 Ago 2003 09:17, Jon Wingfield escribió: Yep. Since RH 8 the ps command only shows the main java process. In previous versions ps showed the parent process and a child process for each thread the java app spawned. The previous behaviour often lead to confusion relating to memory assignment so i guess that's why RH changed it. Personally, I find the change annoying coz it was an easy way to see how many threads the app had spawned. Jon Donaldson Sgt Michael J wrote: I have a question along these lines... I am running jakarta-tomcat-4.1.18 on 4 different severs. 3 are Red Hat 8.0 and 1 Red Hat 6.2. Same tomcat configuration on all of them. ps -el shows one java process on the Red Hat 8.0 but on the 6.2 box I have upward of 30 processes for java. Is there a reason for this? R/S Magilla Hi My problem is that tomcat runs out of processors and I see No processor available, rejecting this connection in the log file. By reading earlier posts a I understand that each processor is a thread and is not freed until it is returned by my code, my code is hanging somewhere. The problem is that my servlet (the only thing running in tomcat) only forwards requests threw CORBA to a big app that I can't change, and its in their the code hangs. So, how can I solve this? The perfect solution would be if tomcat could automaticly free processors after some timeout ( 60 s) but I have not found such a feature/setting, does it exist? If not, could I do some small hack in my servlet that monitors and somehow terminates (kills thread or something) the request after 60s and therby freeing the processor? I am running tomcat 4.1.12, java 1.4.0_04, redhat linux 9. I am using the HttpConnector. Thank you Daniel Carlsson Gimlisoft AB Email: [EMAIL PROTECTED] Tel: 0709-744570, 031-189024 - 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 4.1x with IIS 6 on Windows server 2003
Hi, I think IIS 6 is not supported yet, it may at somepoint, but it doesn't work right now. Bye -reynir -Original Message- From: Bala Kiran [mailto:[EMAIL PROTECTED] Sent: 10. ágúst 2003 20:47 To: Tomcat Users List Subject: Tomcat 4.1x with IIS 6 on Windows server 2003 Has anybody configured Tomcat 4.1x with IIS 6.0 on Windows server 2003? Please advise me. I'm trying to configure the same, but I'm getting 404 - Page Can not be displayed error. I checked the log. It does not seem like raising any red flags. But, here is the log info. Any help is highly appreciated: === [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1018)]: Using registry. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1020)]: Using log file D:\Apache Group\Tomcat 4.1\logs\jk_iis.log. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1021)]: Using log level 0. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1022)]: Using extension uri /tomcat/isapi_redirect.dll. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1023)]: Using worker file D:\Apache Group\Tomcat 4.1\conf\workers.properties. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1024)]: Using worker mount file D:\Apache Group\Tomcat 4.1\conf\uriworkermap.properties. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1025)]: Using uri select 0. [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 3 [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=testWorker was added [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /examples/.jsp=testWorker was added [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/servlet/=testWorker was added [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 3 rules [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Sun Aug 10 10:59:43 2003] [jk_worker.c (88)]: Into wc_open [Sun Aug 10 10:59:43 2003] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Sun Aug 10 10:59:43 2003] [jk_worker.c (228)]: build_worker_map, creating worker testWorker [Sun Aug 10 10:59:43 2003] [jk_worker.c (148)]: Into wc_create_worker [Sun Aug 10 10:59:43 2003] [jk_worker.c (162)]: wc_create_worker, about to create instance testWorker of ajp13 [Sun Aug 10 10:59:43 2003] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Sun Aug 10 10:59:43 2003] [jk_worker.c (171)]: wc_create_worker, about to validate and init testWorker [Sun Aug 10 10:59:43 2003] [jk_ajp_common.c (1343)]: Into jk_worker_t::validate [Sun Aug 10 10:59:43 2003] [jk_ajp_common.c (1364)]: In jk_worker_t::validate for worker testWorker contact is localhost:8009 [Sun Aug 10 10:59:43 2003] [jk_ajp_common.c (1397)]: Into jk_worker_t::init [Sun Aug 10 10:59:43 2003] [jk_ajp_common.c (1421)]: In jk_worker_t::init, setting socket timeout to 0 [Sun Aug 10 10:59:43 2003] [jk_worker.c (187)]: wc_create_worker, done [Sun Aug 10 10:59:43 2003] [jk_worker.c (238)]: build_worker_map, removing old testWorker worker [Sun Aug 10 10:59:43 2003] [jk_worker.c (250)]: build_worker_map, done [Sun Aug 10 10:59:43 2003] [jk_worker.c (111)]: wc_open, done 1 [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (655)]: Detected IIS = 5.0 [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (696)]: HttpFilterProc started [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (759)]: In HttpFilterProc Virtual Host redirection of /localhost/examples/jsp/index.html [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/localhost/examples/jsp/index.html' [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (765)]: In HttpFilterProc test Default redirection of /examples/jsp/index.html [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/examples/jsp/index.html' [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match testWorker - /examples/ [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (775)]: HttpFilterProc
RE: XP random tomcat crashes
We normally use the server jvm, but have also seen the crashes with the client. Any ideas? Cheers, David Lenny Karpel [EMAIL PROTECTED] on 05/08/2003 06:42:45 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To:'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: XP random tomcat crashes Are you using the client or server jvm ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 2:41 PM To: [EMAIL PROTECTED] Subject: XP random tomcat crashes Hi, We're using tomcat 4.1.12 with Java 1.4.1.02, and are encountering strange crashes on XP especially. The crashes happen in apparently random places in our app, and cause the VM to crash with various messages, none of which are very helpful! I noticed that Cameron Hart had a similar problem (http://www.mail-archive.com/[EMAIL PROTECTED]/msg88603.html) - please could anyone point me in the right direction to try and get to the bottom of this. Is it easy to run tomcat in a debugger so we can catch what happens? Many thanks, David - 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: [OT] JDBC confusion
Hello List... newbie question coming up: Phaser charged... Shields at 80%... Photon torpedos loaded... If I set up a jdbc connection object in one servlet, do I have to close it each time or can the same connection be re-utilized by other servlets each using a different sql statement (perhaps storing the connection as a session attribute?). This might give you a speed boost, since openning a connection can be time consuming. But that is the main idea behind JDBC connection pooling, so why re-invent the wheel? Poorly, I might add. Is there a significant resource saving by not creating a JDBC connection object for each database access? That depends on a particular JDBC driver, but usually no. You'll most likely save time. I'm thinking of storing a connection for each user in the session, as opposed to pooling - primarily because I'm not sure how a database pool works nor how to set it up. A JDBC connection pool does what you want and more. It opens several connections and keeps them ready and waiting in the connection pool. The minimum and maximum number of connections are usually configurable (at least with DBCP in Tomcat). Physical maintainance of connections (checking if it is OK) is also implemented in DBCP. So, why don't you save yourself a lot of trouble and use JDBC connection pool over JNDI, as described in Tomcat docs? I had it working with Tomcat 2.1.24 and PostgreSQL 7.3.2. It also couples nicely with JSTL's sql tags. Should I do a re-think on this? Most definitely. I'm using one postgresql 7.3.3 Switching to 7.3.4 is recomended - there is a critical startup bug introduced in 7.3.3. Nix.
Re: Hardware and Memory Requirements
There are no clear responses depending usage of tomcat ! As a production plateform ( linux ), I'm using P4 2.4G with 1Go of ram and as I'm using a data base on an other machine I don't take care of the disk size but i't mirrored 18Go SCSI... As my dev plateform( linux ) is P3 1Go/512Mo of Ram and it is really to much ! But my webapp is using lot's of memory by formatting on the fly pdf, rtf and gif files so I set my jvm environement to 512Mo, but basically I think it set to 128 ( please correct if I'm wrong )... but I have an other tomcat runing on a shared plateform ( window$ ) with several M$ asp web sites ( about 20 hits/day ) and my tomcat is runing well with an isapi filter to work with IIS and it is a bi-P3 Xeon 900Mhz with 2Go of ECC sdram and about 200Go of hard drives... And it work very well for a year :) So if it is only to try some basic webapps, don't worry, every today's hardware configuration is enough to run tomcat ;) Mourad kmk kumar wrote: Hi Is there a document which talks about the hardware and memory requirements based on the platform on which tomcat is installed. specifically looking for 1. How much disk space and memory does it require to install it. 2. How much memory it takes to run it. Thanks for any help. _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - 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: database connection
There is an discussion about the same at Sun. http://forum.java.sun.com/thread.jsp?thread=386190forum=48message=1660462 I would use a datasource or pool to ensure a flow in the application unless you're very sure, that your connection implementation allows concurrent statements to be executed and not just executes them one at a time. The link above reads : For example, two Statements on the same Connection can be executed concurrently and their ResultSets can be processed concurrently (from the perspective of the developer). Some drivers will provide this full concurrency. Others may execute one statement and wait until it completes before sending the next. Maby you should look at Jarkata' pool or look at some datasources. Few connections are good because fewer connections uses less memory and less cpu and therefore allows faster executions. But fewer connections also, depending on the complexity of the requests and size of the results, makes faster waits for those threads not in possession of a connection :@) Regards Kleth -- Kristian A. Leth Maersk Data Transport/Architects Specialists. -- Hans Wichman [EMAIL PROTECTED]To: [EMAIL PROTECTED] cc: 05-08-2003 21:29 Subject: database connection Please respond to Tomcat Users List Hi, I am evaluating a jsp application for a customer, which provides an interface to a database through some helperclasses. Each helper class manages the retrieval (and updates) of related underlying tables, and there are about 10 helperclasses. In the header (header.jsp) the jsp calls an initialize method on a Configuration object, checks if it is already initialized (this process is not synchronized), and if not, creates one connection, creates all the 10 helper classes as static instances passing this one-and-only connection. In the rest of the application a collection of tags call the static methods (unsynchronized) on the Configuration object, such as getDatabaseHelper1 (be it with a more descriptive name) and performs operations on the underlying database through this class. All the methods in the Helper classes are unsynchronized as well, but they are standalone (utility functions, I don't know a better way to describe it). My question is, except from any race conditions in the helper classes themselves, is it a problem that all those helper classes share only one connection and access it unsynchronized. If so, why is it a problem if unsynchronized communication occurs on a database connection? Or are all the underlying methods on the connection object already synchronized and is there no need to worry? Some pointers to why and how would be appreciated as well. And I am not only looking to why connection pooling would be good, but also why one connection would be bad ;-) kind regards Hans - 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.0.2 and IIS
I don't know anything about CoyoteConnector. should i change port in worker.properties file to 8009? From: John Turner [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomcat 5.0.2 and IIS Date: Thu, 07 Aug 2003 11:54:13 -0400 I'm pretty sure your .properties file should use port 8009. Do you have the CoyoteConnector listening on port 8009 for JK? Its enabled by default. John vikas jain wrote: I changed the IIS port back to 80 and tomcat to 8080, also in the worker.properties file i have changed to port to 8080. still not working. I can go to servlet using tomcat by following paths: http://localhost:8080/servlet/HelloWorld http://localhost:8080/examples/servlet/HelloWorld I didn't get any error log in isapi.log file this time, but it doesn't work. Thanks, From: John Turner [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomcat 5.0.2 and IIS Date: Thu, 07 Aug 2003 11:27:06 -0400 Well, since the error messages are complaining about localhost 80, I would assume that you should either: 1. consider putting Tomcat on 8080, and IIS back on 80 or 2. analyzing the registry and your properties files and look for anything that has port 80 specified and switch it to 8080. Switching Tomcat back and forth on ports is easy. I would think the easiest way for you to do this would be: 1. leave IIS on 80. 2. switch Tomcat between 80 and 8080 as needed, when on 80, turn IIS on/off as needed so there are no conflicts. That way your environment will match the deployment environment, and still give you the flexibility to use Tomcat in standalone mode for your own development with little fuss. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Want to visit Spain? Click here. http://server1.msn.co.in/sp03/spain/index.asp Win a free trip. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0.2 and IIS
John, Can I ask you one more question? Right now it's going to examples directory under the webapps directory of tomcat. How I can change it to go to default ROOT directory. I tried by changing the examples in uriworkermap.properties file but it didn't work. From: John Turner [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomcat 5.0.2 and IIS Date: Fri, 08 Aug 2003 10:31:40 -0400 Gotta love Windows. :) Glad you got it working. John vikas jain wrote: woww, it finally worked. What I did is rebooted the system. Thanks John for all the notes you gave me. thanks to the messages that was really helpful From: vikas jain [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Tomcat 5.0.2 and IIS Date: Fri, 08 Aug 2003 13:48:34 + I was searching all the time yesterday for this topic. All I found is two things: First, You are everywhere when there is some question about tomcat and IIS. and you are the person who resolves problems. :) second, I found the problem i am having, ie incorrect redirecting of the DLL. but the solution was not there. the last messege was from you and then no info. Here is the link what I visited http://www.mail-archive.com/[EMAIL PROTECTED]/msg95175.html Please help me out. Thanks, From: John Turner [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomcat 5.0.2 and IIS Date: Thu, 07 Aug 2003 17:00:43 -0400 It's attempting to map the DLL, which is incorrect. I'm pretty sure this has come up before, I would search the archives or start a new thread with a different, more descriptive subject line and see if anyone has the answer. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Are you Unmarried? http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?4d Register in India's No 1 Matrimony. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions
cool. that works for me. so, let's say i want to watch my sql server connections monitor and run this pool monitor from a jsp at the same time. shouldn't i expect to see the # of active + # of idle on the jsp add up to the # of connections that sql server knows about? (assuming tomcat is the only user of connections to this db) trying to check my assumptions here. barclay -Original Message- From: Angus Mezick [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 4:00 PM To: [EMAIL PROTECTED] Subject: RE: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions Oh, here is the code that will work with a JNDI resource: javax.naming.Context initContext; try { initContext = new InitialContext(); javax.naming.Context envContext = (javax.naming.Context)initContext.lookup(java:/comp/env); BasicDataSource ds = (BasicDataSource)envContext.lookup(jdbc/SessionDB); if(ds!=null){ pageContext.getOut().println( jdbc/SessionDB: Active: + ds.getNumActive() + Idle: + ds.getNumIdle() + br); } } catch (NamingException e) { // TODO Auto-generated catch block //e.printStackTrace(); } -Original Message- From: Angus Mezick Sent: Friday, August 08, 2003 3:26 PM To: 'Tomcat Users List' Subject: RE: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions Here is a little snippet I use inside of a custom tag to disply pool health: private void printPoolStatus() throws IOException { PoolingDriver driver = new PoolingDriver(); pageContext.getOut().println(brbDbcp Pool Data:/b br); ObjectPool gop = driver.getPool(SessionManager); if (gop != null) { pageContext.getOut().println( SessionManager: Active: + gop.getNumActive() + Idle: + gop.getNumIdle() + br); } gop = driver.getPool(CommerceServer); if (gop != null) { pageContext.getOut().println( CommerceServer: Active: + gop.getNumActive() + Idle: + gop.getNumIdle() + br); } } You WILL need to change the getPool names. --Angus -Original Message- From: Barclay A. Dunn [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 2:47 PM To: Tomcat Users List Subject: RE: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions ah! there's the rub. i am also searching the archives of the jakarta-commons-users list for insight and must also post to that list if i can't figure it out myself, but we think no, they are not getting closed correctly. i can claim 100% of the time i am calling conn_.close(), but when we watch our db connections they go up but they never come down. so we think no. as i mentioned before, i do not fully grok the workings of dbcp and am thus in over my head. i could use a little step-by-step on how to test this (other than the logical deduction my sysadmin and i are using right now). thanks a million everybody for trying to be so helpful. barclay -Original Message- From: Angus Mezick [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 2:23 PM To: Tomcat Users List Subject: RE: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions All of these connections are being correctly closed, right? --Angus -Original Message- From: rob engstrom [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 2:08 PM To: 'Tomcat Users List' Subject: RE: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions Ok, I'm the sysamdin of which is being spoken. So I checked netstat, as I normally do. Here's a bit of info: netstat -an | grep 172.16 | grep ESTABLISHED | wc -l (172.16 refers to the DB connection on the internal network, on a separate VLAN than the rest of the network traffic) This elicits a response of : 45 , which if I watch the sysmon on the SQL server, it shows 45 connections currently. Same command with TIME_WAIT instead, shows: 15 So at least right now, it doesn't seem to be so much a connection problem to the DB. We did his some too many open files errors in the Catalina.out, which I temporarily resolved by changing ulimit -n from 1024 to 8092. --- robert engstrom -Original Message- From: Lawrence, Gabriel [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 1:47 PM To: Tomcat Users List Subject: RE: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions Try running netstat on the linux box to see how many connections are out there. This might give you some more visibility into what network connections are actually being used and where they are going. -gabe -Original Message- From: Barclay A. Dunn
RE: off-topic, need help in scrolling
Have a look at this... http://jsptags.com/tags/navigation/pager/index.jsp appa N.B.Bopanna [EMAIL PROTECTED] wrote: Hey Gautham, It is not under my control. The mail server adds it to all mails. -Original Message- From: Aggarwal, Gautam (IE03) To: Tomcat Users List Date: Thu, 7 Aug 2003 11:06:19 +0530 Subject: RE: off-topic, need help in scrolling This forum is meant for helping each other in Tomcat related problems, not for advertising your products. Please remove the advertisement footer from your mail, this will help in keeping the mail short as well. Bye, Gautam -Original Message- From: N.B.Bopanna [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 10:12 AM To: [EMAIL PROTECTED] Subject: off-topic, need help in scrolling Hi All, I have to display rows of data after querying a table with arround 1000 records. Only 25 rows should be displayed at a time and page numbers should be provided as hyperlinks to go to the next page(as used in mail inbox). The server supports only JSP1.1 . If anyone has any idea of how to do , please help Bopanna, Software Engineer, RCS Technologies Power of Global Information Access... ... Browser based RCS products. --- - - Visit us at http://www.rcssoft.com/ for an online DEMO of all our web based products. User ID and Password will be available on request. PAYMAN - Payroll Management System TRAXX - Asset Management and Tracking System eSHOP - Online Information and Ordering System SALES STREAM - Sales Force Automation CARE - Call Management System DATA MINER - Query Builder and Report Generator Please write to [EMAIL PROTECTED] or reply to this mail for further details. - 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] Power of Global Information Access... .. Browser based RCS products. - Visit us at http://www.rcssoft.com/ for an online DEMO of all our web based products. User ID and Password will be available on request. PAYMAN - Payroll Management System TRAXX - Asset Management and Tracking System eSHOP - Online Information and Ordering System SALES STREAM - Sales Force Automation CARE - Call Management System DATA MINER - Query Builder and Report Generator Please write to [EMAIL PROTECTED] or reply to this mail for further details. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] SMS using the Yahoo! Messenger;Download latest version.
[OT] how to pronounce Apache ?
Hello, I would like to know how to pronoune Apache in US English. I found two pronounciations at http://dictionary.reference.com/search?q=apache which one is right ?. Or any other forms ? Antony Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jk2_init Error ??
Hi, here's my setup: --- Apache 2.0.47 Tomcat 5.0.7 mod_jk2 --- Occasionally when I startup Apache and check the Apache error log I see the following: --- [error] mod_jk child init 1 0 [error] jk2_init() Can't find child 7299 in scoreboard [error] mod_jk child init 1 -2 --- The number 7299 is not always the same - it varies - but the other numbers are always the same. Does anyone here know: 1/ what the 7299 signifies? 2/ what the scoreboard is? 3/ what the init 1 0 and init 1 -2 mean? NOTES: - All tomcat examples work fine via mydomain.com/ and mydomain.com:8080/ - There are no other error messages - Tutorials from Beginning JSP 2.0 work fine as well Thanks!!
RE: finding number of threads being used by Tomcat
Howdy, Search the archives of this list. Yoav Shapira Millennium ChemInformatics -Original Message- From: Rau NF [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 5:09 PM To: [EMAIL PROTECTED] Subject: finding number of threads being used by Tomcat Hello - Is there a way (programmatically or otherwise) to find the number of threads being used by Tomcat while it's running ? This will be some number between minProcessors and maxProcessors. kill -3 on the JVM and getting the number of threads from the thread dump is not an option. Thanks Rau - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Stable tomcat + apache + mod_j2 + ssl
It seems stunnel is available for Windows, assuming you have a functional SSL library installed on both the web server and app server. John John Turner wrote: Mod_ssl is an Apache module that allows SSL encryption between the webserver and the client. It is not involved in any way with the communications between Apache and Tomcat. There is no such thing as an Apache connector that encrypts transmissions to Tomcat, SSL or otherwise. As far as I know, you have two options: 1) hack the Apache module source code and implement SSL yourself or 2) use an external application such as stunnel or some other tool to tunnel the AJP protocol over an encrypted channel. I am not familiar with any such tools on a Windows OS, they may or may not exist...on a UNIX or Linux it wouldn't be very hard to setup. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to configure to use tomcat and struts to use log4j?
Looks like Struts has a dependency on Commons Logging which is using Log4j under the hood. The commons logging jar is being loaded from a higher level classloader (common/lib or server/lib) and can't access classes only provided by a lower classloader (your webapp). Maybe try having the commons logging jar in your WEB-INF/lib. Where is the struts jar you're using? WEB-INF/lib or higher? Jon Zsolt Koppany wrote: Hi Shapira, that is what I get when log4.jar is in my .../WEB-INF/lib. struts.jar is also in my .../WEB-INF/lib. Can that cause the problem? How can I fix that? Zsolt javax.servlet.ServletException: Error instantiating servlet class org.apache.struts.action.ActionServlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:912) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) - Root Cause - java.lang.NoClassDefFoundError: org/apache/log4j/Layout at org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory.java:140) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:257) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390) at org.apache.struts.action.ActionServlet.clinit(ActionServlet.java:375) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:903) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) On Wed, 2003-08-06 at 22:01, Shapira, Yoav wrote: Howdy, I have tried so many things to use log4j from tomcat and struts and finaly I found the solution that I have to copy log4.jar into common/lib server/lib and application/WEB-INF/lib (to be able to get jsp files compiled). I find it a bit complicated that I have to copy the same jar file into three different directories. Is there a better way? Simply put log4j.jar in WEB-INF/lib, and your log4j configuration file in WEB-INF/classes. That's it. Don't have copies of log4j in commons/lib or server/lib, nor a log4j configuration file there. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
RE: URI Servlet Path Problems
That is pretty much what my understanding was as well. But I am glad you cleared it up for me. So appending my webapp folder name is not bad practice then. It is just something that has to be done. Thanks Mike. Gregg -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 4:35 PM To: 'Tomcat Users List' Subject: RE: URI Servlet Path Problems Sorry, I realized after sending it didn't explain the misunderstanding... I got caught up with this not long ago when using sendRedirect, so I think I have this clear in my mind. It's all in the browser. The browser interprets form actions that begin with slashes as meaning relative to the domain so that would result in an action of /servlet/foo being requested by the browser as http://www.yourdomain.com/servlet/foo; So unless your application is the deafult application (which in this case it's not, it's /holocron), you'll get a 404. If on the other hand you give it no leading slash (servlet/foo), the browser says relative. But relative to the domain and folder (for lack of a much more technically accurate label). And to a browser, /holocron/secure looks like folders. So if you GOT to the form by saying http:///www.yourdomain.com/holocron/secure/showmetheform Then all relative urls will be from http://www.yourdomain.com/holocron/secure/ -Original Message- From: Gregg Bolinger [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 4:22 PM To: 'Tomcat Users List' Subject: RE: URI Servlet Path Problems Lol, I might as well just say /holocron/servlet/AddReference. That works. Is this typical or is there a problem and this is just a quick fix. Gregg -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 4:16 PM To: 'Tomcat Users List' Subject: RE: URI Servlet Path Problems How about form action=%= request.getContextPath() %/servlet/AddReference /form ? -Original Message- From: Gregg Bolinger [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 4:10 PM To: 'Tomcat Users List' Subject: RE: URI Servlet Path Problems I did that. But here is the problem with that. My pages are under a folder called secure so then the URL was http://localhost:8080/holocron/secure/holocron/servlet/AddRefe rence ha. Thanks for the quick response though. Gregg -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 4:08 PM To: 'Tomcat Users List' Subject: RE: URI Servlet Path Problems take off the leading slash on the form's action, so that it's referencing your web-app (root), and not the server root. The URI pattern still needs the leading slash. -Original Message- From: Gregg Bolinger [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 4:04 PM To: [EMAIL PROTECTED] Subject: URI Servlet Path Problems I have a web app in the following directory c:\tomcat\webapps\holocron I have specified my URI to a servlet as uri-pattern/servlet/AddReference/uri-pattern And in my form I have action=/servlet/AddReference The problem is that when I click the submit button, I am taken to http://localhost:8080/servlet/AddReference and what it should be is http://localhost:8080/holocron/servlet/AddReference So I am getting an error Cannot Find Servlet/Path etc. Now, if I change my action to action=/holocron/servlet/AddReference it works just fine, but that doesn't make any sense to me. I have read a bit on the Invoker Servlet being turned off in Tomcat 4.1.24 but can't really find any good information on it. Can someone explain to me what is going on here? Thanks. Gregg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Oracle connection pooling
We are running a fairly large ecommerce site consisting of 3 apache 2.0.48 servers being balanced between using UltraMonkey/ldirector and 2 tomcat servers with AJP1.3. Everything is Linux except the back end which is a fairly hefty and firewalled Sun running Oracle8i. The webapps build a connection pool to oracle via the oracle.jdbc.pool.* connection pool. The pool instantiates fine and everything is great, but gradually the pool begins to break down. Idle connections are closed by Oracle (not sure if its oracle itself or the fw..), but the oracle pool doesn't figure it out. If someone happens to get the dead connection, Tomcat completely hangs on all threads until the session-timeout expires. Even the session replication code stops and the apache servers and the other tomcat in the cluster mark it offline. During the peak traffic it isn't so bad but at the end of the day after load goes back down, it's a big problem. We initially used DBCP but it didn't work for crap with Oracle. Is there a better pool to use with Oracle and Tomcat in a cluster environment and if not, is there a way we can get the Oracle pool to recycle some of these bad connections without blowing up the server? Thanks, Cris Daniluk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: large objects in sessions
Howdy, i've read in a number of locations that you shouldn't put large objects in session, because of the overhead incurred. Is this also true for non-serializable objects? Aren't they simply kept in memory? Not exactly: I wouldn't put non-serializable objects in the session at all, regardless of their size. You will get errors. Instead, put the ID (or some other key allowing you to retrieve the object) in the session. In addition does anybody know how I can accurately estimate the memory footprint such an object has? The same way you estimate the memory footprint of any other object. For example, from a simple command-line program that does nothing else: int N = 1; long freeBefore = Runtime.getRuntime().freeMemory(); MyObject[] myArray = new MyObject[N]; for(int i = 0; i N; i++) { myArray[i] = new MyObject(); } long freeAfter = Runtime.getRuntime().freeMemory(); long delta = freeAfter - freeBefore; long memPerObject = delta / N; (Use a large N to reduce impact of overhead, allocation, etc.) Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Debugging applications running in NT Service.
Hi there, I have a webapp that runs fine in Tomcat 4.1.24 standalone or Eclipse-based (Sysdeo plugin). If I start the same code in the JK2 service, I sometimes get application-specific errors that point into the direction a different class set and / or configuration is used, even after a complete restart of Tomcat and even although the standalone webapp works. Are there two different webapp code bases? (I am using pretty much standard configurations) In order to resolve these problems, is there a simple way to: - step-debug a web-application running in Tomcat in NT service mode. - force Tomcat to reload classes at runtime (or at least identify which jars / classes have been loaded by Tomcat). Thanks and regards, Gregor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jasper2
I'm confused. Is Jasper2 intended for Tomcat 4 or Tomcat 5? Dmitry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Anyone running jk2 with Stronghold 4.0?
I emailed the list earlier in the week and was told that the WARP connector was deprecated and not much fun to use. Unfortunately, we use Stronghold on our web servers here and WARP is the only connector provided. Has anyone on this list gotten jk2 to run with Stronghold? How did you get it installed? I mailed the Stronghold list and have not gotten any kind of reply and Google doesn't turn anything up. Thanks! James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TOMCAT Minimum Requirements
Howdy, Tomcat's minimum requirements are very small: you need to have a JDK, so ask Sun for the minimum requirements for the JDK for your hardware. Tomcat itself can run with little memory (I have one running with -Xmx=8m, i.e. 8MB heap). If you're using tomcat on a micro platform, or want to use it this way, and run into interesting experienced please post them. Yoav Shapira Millennium ChemInformatics -Original Message- From: Oscar (Eccox) [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 4:11 PM To: [EMAIL PROTECTED] Subject: TOMCAT Minimum Requirements Hi, List, I need to know the minimum requirements in terms of hardware and OS for running TOMCAT 4. Where can I find this information ??? Thanks, === José Oscar de Souza Eduardo Coordenador de Projetos tel: 3047-4541 fax: 3047-4550 [EMAIL PROTECTED] === This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Custom Tag Lib
Mike: Thanks so very much... I saw their is a config option in the Jasper to turn off tag pooling. do you thing that would work too, of shouldI impliment it in my source code. I'm gonna take a look at it right now. Shawn -Original Message- From: Mike Cherichetti (Renegade Internet) [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 10:28 PM To: Tomcat Users List Subject: RE: Custom Tag Lib Shawn, I ran into this problem as well when switching from 4.0 to 4.1. I think it has something to do with 4.1 pooling and re-using tag objects. What I did in all of my doStartTag(), doAfterBody(), etc... methods was manually call release() to reset the data in the tags like so: public int doStartTag() throws JspException { try { ... } catch (Exception exception) { throw new JspException(exception); } finally { release(); } return SKIP_BODY; } Have a nice day ... Sincerely, Mike Cherichetti Renegade Internet Internet Advertising Delivery Solutions www.renegadeinternet.com Phone (724) 658-6346 Fax (724) 658-6346 -Original Message- From: Shawn Zernik [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 10:56 PM To: [EMAIL PROTECTED] Subject: Custom Tag Lib Tomcat Users: I've been fighting with some version differences in tom cat wondering why my app acts severly different on Tomcat 4.1.27 then 4.0.6. It appears that 4.1.27 is not working from my perspective, and have been fighting with it since monday. None of the books I have touch this subject or ellude to the problem, and I've seached high and low for solutions. I'm having a problem working with my custom tag library. The stange part to this is it appears to work on tomcat 4.0.6 but not on 4.1.27. The library has a tage called site that extends a base tag, and those tags use other classes in my data namespace to hit a database. The tags are returning the proper data in both versions, but in 4.1.27, I have to reload the contect in the manager for it to register the changes from the database. I have added some printlns to std out to track what's going on. In tomcat 4.0.6 they are going through all the code as I would exspect it to. I have included each of the class files that are called. I have also included the printouts from both versions of tomcat to clierify how each version is handling the calls. The object hiarchey goes as follows: jPublish.Tags site extends inc_tag. jPublish.Data.site_manager extends jPublish.Data.manager, managers contain, load, and fill datas. jPublish.Data.site_data extends jPublish.Data.data, used for storing data and tracking updates. --- INDEX.JSP --- %@ page contentType=text/html % %@ taglib prefix=inc uri=inc % inc:site site=1 action=none/ html headtitleinc:site action=title //title/head body h1Welcome to inc:site action=title/!/h1 copy; inc:site action=copyright/ /body /html --- TOMCAT 4.0.6 STDOUT --- Starting service Tomcat-Standalone Apache Tomcat/4.0.6 Starting service Tomcat-Apache Apache Tomcat/4.0.6 jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.setSite() jPublish.Data.manager() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.site.doEndTag(): End jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.inc_tag.loaded() jPublish.Tags.inc_tag.loaded(): not instance jPublish.Data.manager.load() jPublish.Tags.inc_tag.loaded(): load ok jPublish.Tags.inc_tag.loaded(): next ok jPublish.Tags.inc_tag.loaded(): reached fill. jPublish.Tags.site.loaded() Internetwork Consulting jPublish.Tags.site.doEndTag(): End jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.inc_tag.loaded() jPublish.Tags.inc_tag.loaded(): not instance jPublish.Data.manager.load() jPublish.Tags.inc_tag.loaded(): load ok jPublish.Tags.inc_tag.loaded(): next ok jPublish.Tags.inc_tag.loaded(): reached fill. jPublish.Tags.site.loaded() Internetwork Consulting jPublish.Tags.site.doEndTag(): End jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.inc_tag.loaded() jPublish.Tags.inc_tag.loaded(): not instance jPublish.Data.manager.load() jPublish.Tags.inc_tag.loaded(): load ok jPublish.Tags.inc_tag.loaded(): next ok jPublish.Tags.inc_tag.loaded(): reached fill. jPublish.Tags.site.loaded() Shawn jPublish.Tags.site.doEndTag(): End jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.setSite() jPublish.Data.manager() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.site.doEndTag(): End jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.inc_tag.loaded() jPublish.Tags.inc_tag.loaded(): not instance jPublish.Data.manager.load() jPublish.Tags.inc_tag.loaded(): load ok jPublish.Tags.inc_tag.loaded(): next ok jPublish.Tags.inc_tag.loaded(): reached fill. jPublish.Tags.site.loaded() Internetwork Consulting
TOMCAT Minimum Requirements
Title: Mensagem Hi, List, I need to know the minimum requirements in terms of hardware and OS for running TOMCAT 4. Where can I find this information ??? Thanks, ===José Oscar de Souza EduardoCoordenador de Projetostel: 3047-4541fax: 3047-4550[EMAIL PROTECTED]===
RE: unpackWars
I noticed that getRealPath returns null when running packed. This makes sense because there is no real path; it's running from within the war. I didn't want to corrupt any responses with this. I also wanted to make sure this is reliable. Sounds as if it is. Thanks, Derrick -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 3:48 PM To: Tomcat Users List Subject: RE: unpackWars Howdy, One way that I know that seems to work with Tomcat is to call getServletContext().getRealPath() If it returns null, that means you are running as a WAR file. I'm not sure how reliable this is. Seems to be fine from what I've seen. This is more or less reliable. The original question is skewed at best, however, as a webapp is not supposed to know whether it's packed or not and certainly not supposed to run differently depending on whether it's packed or not. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This electronic transmission is strictly confidential to Smith Nephew and intended solely for the addressee. It may contain information which is covered by legal, professional or other privilege. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JNDI Realm
Here is what we did with the JNDIRealm on NetWare 6.5, just so you know: 1) For roles, we created groups in an organizational unit called Tomcat-Roles. The name of the group corresponds to the role name. The important thing to note here is that you must add the [Public] object as a trustee to this OU or the anonymous bind to do authorization will fail. If you use ConsoleOne to add this trustee, just accept the default rights it grants that object. I think it is [All Attribute Rights] of Browse and Compare (inheritable) and [Entry Rights] of Read (inheritable), though I might have the browse/compare and read exactly backwards there. So, we create groups named admin and manager, adding in the installing admin user as members of those groups by default. 2) We specify the user pattern of userPattern={0},O=novell, with the novell part being replaced by the Organization container (or OU=something,O=something) of the installing admin user. Here is the Realm definition on my server, for instance: Realm className=org.apache.catalina.realm.JNDIRealm connectionURL=ldap://localhost:636; debug=0 userPattern=cn={0},O=novell protocol=ssl authentication=simple roleBase=ou=Tomcat-Roles,O=novell roleName=cn roleSearch=member={0} / We are looking at changing this to not use userPattern but instead do a subcontext search in future versions of NetWare, since having only the one context is quite limiting. But there are some defects and issues in JNDIRealm that need to be addressed first for that to be feasible. We want to go that way since then we could use Dynamic groups for the roles, greatly decreasing the need of hands-on administration of the roles once they are properly set up. It looks like Tim already fixed the bug you reported as well. He is actively (this week and last) working on JNDIRealm issues, so your questions are timely. If your investigations elicit any new bugs, they have a high possibility of being fixed this week. Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com [EMAIL PROTECTED] 8/8/03 2:39:52 PM I am having trouble setting up the JNDI Realm in tomcat (I am using 4.1.27). I can bind to the ldap server, authenticate the user, but when it goes to checking roles, I am unsure how to organize my directory, and what the application wants back when it does a filtered search. My ldap server is Novell Netware 6 eDirectory. I want to test the JNDI for the Admin and Manager functions of tomcat first, then set it up for my own applicatons. I have a context called ou=zpar,o=med that I have two users defined cn=adminx,ou=zpar,o=med cn=test,ou=zpar,o=med I also have two groups setup that test is a member of: cn=admin,ou=zpar,o=med cn=manager,ou=zpar,o=med This is my Realm definition in server.xml Realm className=org.apache.catalina.realm.JNDIRealm debug=0 connectionURL=ldap://192.168.1.23:389; connectionName=cn=adminx,ou=zpar,o=med connectionPassword=zparpwd userPattern=cn={0},ou=zpar,o=med roleBase=ou=zpar,o=med roleName=cn roleSearch=(uniqueMember={0}) / This is a snip of my ldap trace log from the ldap server when tomcat connects: DoSearch on connection 0xc9206aa0 Search request: base: ou=zpar,o=med scope:1 derefence:3 sizelimit:0 timelimit:0 attrsonly:0 filter: (uniqueMember=cn=test,ou=zpar,o=med) attribute: cn Sending search result entry cn=manager,ou=zpar,o=med to connection 0xc9206aa0 Sending search result entry cn=admin,ou=zpar,o=med to connection 0xc9206aa0 Sending operation result 0:: to connection 0xc9206aa0 This is a snip from my catalina log (note: there is a bug that I reported in JNDIRealm.java that crashes when using debug 2 in the getRoles() method), so I can't figure out what is setup right so I can continue. Any thoughts? 2003-08-07 22:23:16 JNDIRealm[Standalone]: lookupUser(test) 2003-08-07 22:23:16 JNDIRealm[Standalone]: dn=cn=test,ou=zpar,o=med 2003-08-07 22:23:16 JNDIRealm[Standalone]: validating credentials by binding as the user 2003-08-07 22:23:16 JNDIRealm[Standalone]: binding as cn=test,ou=zpar,o=med 2003-08-07 22:23:16 JNDIRealm[Standalone]: Username test successfully authenticated 2003-08-07 22:23:16 JNDIRealm[Standalone]: getRoles(cn=test,ou=zpar,o=med) 2003-08-07 22:23:16 JNDIRealm[Standalone]: Searching role base 'ou=zpar,o=med' for attribute 'cn' 2003-08-07 22:23:16 JNDIRealm[Standalone]: With filter expression '(uniqueMember=cn=test,ou=zpar,o=med)' 2003-08-07 22:23:16 JNDIRealm[Standalone]: retrieving values for attribute cn 2003-08-07 22:23:16 JNDIRealm[Standalone]: retrieving values for attribute cn 2003-08-07 22:23:16 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.NullPointerException at
Re: Tomcat server shutsdown very often
ÔÚ 2003-08-08 22:29:00 ÄúдµÀ£º Hello,of you ? Could you tell me ? Thanks~~ We are running Apache/Tomcat/Mysql on linux. The site was working fine till a few days back. When we introduced a few services, the tomcat server hangs very often. Then we have to restart it using startup.sh. Sometimes it shutsdown. Any idea why. Before we had faced a similar problem with mysql then we increased the max limit to 1 users. Is there a similar problem with Tomcat. One other thing we did was turn off keep alives. Now the Tomcat does not shutdown but the jsp pages are very slow. The htm pages are ok. Kindly guide. Thanks Regards, Srinivasan. _ www.asianetglobal.com Get Free Email - Asianetglobal.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] mqg - SOUVENIR --- . | Souvenir of China | | A Good Place for You | `-- http://www.souvenirchina.com -' mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem in Integrating Tomcat with Apache
Hi, John I followed your instruction, plus adding a few lines in Apache conf file, suggested by Lenny. And I tested on another computer, it seemed working fine. So do I still need to some other configurations? Lenny's suggestion is below: Lance, I've used John Turners method for Windows 2000 many times without a problem. One thing you might want to do if you have followed all the instructions is to add the following to the bottom of your Apache conf file: JkWorkersFile d:\java\Tomcat41\conf\jk\workers.properties - change to what ever your Tomcat reference is JkLogFile d:\java\Tomcat41\logs\mod_jk.log - change to what ever your Tomcat reference is Include d:/java/Tomcat41/conf/auto/mod_jk.conf - change to what ever your Tomcat reference is JkMount /myapp ajp13 - change myapp to whatever your app is in the Tomcat webapp directory JkMount /myapp/* ajp13 Restart Tomcat and Apache Hopes this helps. Lenny Sorey - Original Message - From: John Turner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, August 11, 2003 10:58 AM Subject: Re: Problem in Integrating Tomcat with Apache I am saying that you only need what you want to resolve. If you want to serve requests for 1.2.3.4, then you have to set Tomcat to do so. If you want to serve requests for www.foobar.com then you have to set Tomcat to do so. Tomcat is only set to serve requests by default for localhost. Exactly localhost. Not the IP address that goes to the same machine as localhost but exactly localhost. Tomcat has a defaultHost in server.xml that will take unresolved requests. The problem is that people, especially newbies, do not understand that localhost in a URL will NEVER work from a remote node. If you want machine B to access Tomcat on machine A, then you must give Tomcat a virtual host name that is NOT localhost, and you must use that name in the URL in the browser on machine B. That's the only way it can work. This can be either an IP address or a name like www.foobar.com. How you set up your Tomcat virtual hosts is up to you, you can use the Host element or the Alias directive within Host. My point is that Tomcat is fairly literal...just because localhost works does not automatically mean any.name.I.choose will work. John Geralyn M Hollerman wrote: John Turner wrote: localhost is a distinct virtual host name that ONLY WORKS ON THE LOCAL COMPUTER. some.ip.address is a distinct virtual host name, just like localhost or my.host.com. If you don't have that IP address set up as a hostname in Apache's httpd.conf and Tomcat's server.xml, you will not get a successful request. But...one thing that was never clear to me - are you saying that you need to have BOTH localhost AND the IP address set up as hostnames in httpd.conf and server.xml? If there's no localhost defined, are there some particular repercussions? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tried alot of searching - caving in and emailing this list now
1) it is what I use and the only one I know about :) 2) from the site: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html mod_webapp WARP/1.0WarpConnector Deprecated. Not for Win32; no in-process nor load balancing; works in 4.x. Use APR. Supported Apache-2.0 and Apache-1.3). See Webapp -Original Message- From: jherschel [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 2:30 PM To: Tomcat Users List Subject: RE: tried alot of searching - caving in and emailing this list now As an aside, do you recommend using JK2 over WARP, and if so why? James Herschel Systems Administrator Quarry Integrated Communications (519)570-2020x2489 (519)503-2563 [EMAIL PROTECTED] -Original Message- From: Angus Mezick [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 1:04 PM To: Tomcat Users List Subject: RE: tried alot of searching - caving in and emailing this list now Um, are you using the JK2 connector to like up apache and tomcat? I don't see it mentioned. If you are, your workers2.propertties, jk2.properties (sp), and server.xml would also be helpful. --Angus -Original Message- From: jherschel [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 12:32 PM To: [EMAIL PROTECTED] Subject: tried alot of searching - caving in and emailing this list now Google has failed me! I have been trying to get IP based access control working for a java site using Apache directives to no avail. I am using Stronghold 4.0 with Tomcat 4.1.24 - Here is the Apache conf I am working with ... VirtualHost [omitted] ServerName [omitted] ServerAdmin [omitted] DocumentRoot /var/wwwroot/wrcm-staging/htdocs/ Directory / AllowOverride None Options +ExecCGI +FollowSymLinks order deny,allow Deny from all Allow from [omitted] Allow from [omitted] /Directory Directory /var/wwwroot/wrcm-staging/tomcat/ AllowOverride None Options +ExecCGI +FollowSymLinks order deny,allow Deny from all Allow from [omitted] Allow from [omitted] /Directory WebAppDeploy /var/wwwroot/wrcm-staging/tomcat/ conn / #Logging directives TransferLog var/log/wrcm-staging/access_log ErrorLog var/log/wrcm-staging/error_log /VirtualHost The java site resides in /var/wwwroot/wrcm-staging/tomcat - these directives usually work for normal HTTP sites - maybe this is a Jakarta config issue and not Apache? I'm also thinking that maybe my DocumentRoot directive is overriding the /var/wwwroot/wrcm-staging/tomcat Directory block? Thanks in advance for your help! James Herschel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions
now, given that i can confirm that i am closing connections (calling close() on them, which returns them to the pool), can you suggest how i might locate where those connections are not getting released? i have read some stuff about dbcp not being entirely reliable in releasing connections. is that true? argh. One question. Why should DBCP *release* a connection? The way I see it, DBCP is running fine. Let me explain. The job of any JDBC connection pool is to open connections for you, to keep a pool of pre-opened connection ready to serve and to manage it. Nobody ever mentiones *closing* the connections. Well, they can be closed, usually in two situations: 1. the number of unused connections is over the maxUnused 2. the pool has decided to recycle the connections (to clean up memory leaks and garbage) You are definitely not falling under (1) - heavy load of your site will consumes more and more of the DB. You are most likely not a candidate for (2), either - after 5 minutes no reasonable connection pool will consider any particular connection stale or a candidate for recycling to prevent memory leaks. So, again, why should you see connections being closed, if the load of oyur site is growing? OTOH, if you are using connections from the pool and returning them on regular basis, then there shouldn't be an increase of numebr of open connections. If you can verify this scenario, then you have located a bug: 1. count open connections 2. open a connection from the pool 3. do something 4. close a connection (this should return it to the pool) 5. repeat a number of times (10 loops, 100 loops, 1000 loops,...) See what happens. This activity should not make any change in the number of connections. The only thing you should expect is the recycling of connections that I have mentioned, which would happen after some time or after a numebr of uses. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bare Minimum server.xml
Hello, A newbie question - I use Tomcat Version 4.0.1 and Java 2 SDK Standard Edition Version 1.4.0 on Windows 2000 server. I have been going thro'Oreilly's book 'Tomcat - The Definitive Guide' (still not been able to get my hands on 'The Apache Tomcat Bible' from Wiley) and wanted to know what is the bare minimum contentsof server.xml file. Which elements and their corresponding attributes are a must-must. An example server.xml file would help and which is optimised too. I am sure the experts here can help. Thanks. Satish
Re: how to suppor 30000 concurrent users
Supporting a website that supports 30K concurrent connections will mean several hundred servers and a really big database server. At those requirements, your best bet is looking at the architecture first and figuring out what the functional requirements are for all 30K users. The key is to profile those users and figure how you can separate the heavy processes from the read-only. once you have that information, you can make educated guesses to start some research. chances are a good percentage of the traffic is read-only. Massive write applications with that kind of concurrency is rare. I've only seen it in financial apps and those normally have really big hardware. peter Prince [EMAIL PROTECTED] wrote: hi Angus, from ur reply what i understand is, first I have to develop the application (with maximum tuning possible from scripting side) and the deploy it on a server and load test. then add the needed number of servers. have i got it right? what is an avarage no of maximum concurrent users (active sessions) for tomcat (just to get a general idea about the possible investment) does it depends on the scripting technology also? how is Microsoft technology is such case (heavy load) compared to tomcat? thanks and regards Prince - Original Message - From: Angus Mezick To: Tomcat Users List Sent: Tuesday, August 05, 2003 6:37 PM Subject: RE: how to suppor 3 concurrent users With that many users you are going to HAVE to cluster if for no other reason than to provide backup for system maintanence. As to how many, the answer is it depends on the hardware you are going to use and the types of load your webapp puts on the system. When you say 30k concurrent users do you mean 30k people clicking a link at the same time or 30k active sessions at a time? If you are going to have this many people clicking on the same time you should have the cash to do proper load testing to see how many people one of your servers can take, divide 30k by that number for the number of servers you have, multiply by 1.1 AT LEAST and round up to get 110% capacity so you should be able to swap out one server. This is BARE minimum. Don't forget about the wonderful world of DB backends and routers and all the fun stuff :) --Angus -Original Message- From: Heart Prince [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 8:57 AM To: [EMAIL PROTECTED] Subject: how to suppor 3 concurrent users howmany concurrent users does tomcat support? if i want to design a web application for 30,000 concurrent users, what is the step? clustering is related to this? how many servers i need if i am clustering _ Latest movie trailers. On your mobile. http://server1.msn.co.in/sp03/gprs/howcani_movie.asp With GPRS. - 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] - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software
Tomcat 4.0.6 IIS6.0 ISAPI Filter Activation
I have been able to use the ISAPI redirector filter with IIS 5 and W2K successfully. I just attempted to do the same thing with Server 2003 and IIS 6.0 and cannot get the filter to register any status (no arrows). I did install, and enable the dll as a Web Extension as well. I am using 4.0.6 and the same dll as I used with IIS5. Can anyone give me any advice specific to IIS 6 Thanks, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] JDBC confusion
I agree with Nix, use a connection pool. One connection per user may be ok when you've got, say, 5 concurrent users but when you've got 1000, 1, Not scalable. http://tomcatfaq.sourceforge.net/database.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html Jon john-paul delaney wrote: Hello List... newbie question coming up: If I set up a jdbc connection object in one servlet, do I have to close it each time or can the same connection be re-utilized by other servlets each using a different sql statement (perhaps storing the connection as a session attribute?). Is there a significant resource saving by not creating a JDBC connection object for each database access? I'm thinking of storing a connection for each user in the session, as opposed to pooling - primarily because I'm not sure how a database pool works nor how to set it up. Should I do a re-think on this? I'm using one postgresql 7.3.3 thanks /j-p. - 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 4.1.24: details of ServletExceptions
Hello, I've been developing with Tomcat and Struts from about a year and a half now. Ever since I started using Tomcat 4.1 I don't get very much information when a ServletException occurs in a JSP page. The error page just says that there was a JspException caused by a ServletException but there's no clue to what actually went wrong. Is this a configuration matter? I've already set the Jasper configuration parameter logVerbosityLevel to DEBUG, but that doesn't help (The JSPs are compiled allright.) I would appreciate some help; developing like this is a trial and error process. Thanks, Freek Segers Senior Systeemontwikkelaar NEROC 'MEDIAWARE De Run 1131 5503 LB Veldhoven T +31 (0)40 258 66 66 F +31 (0)40 258 66 77 E-mail: [EMAIL PROTECTED] Internet: http://www.nerocmediaware.nl
Re: Problem in Integrating Tomcat with Apache
John Turner wrote: localhost is a distinct virtual host name that ONLY WORKS ON THE LOCAL COMPUTER. some.ip.address is a distinct virtual host name, just like localhost or my.host.com. If you don't have that IP address set up as a hostname in Apache's httpd.conf and Tomcat's server.xml, you will not get a successful request. But...one thing that was never clear to me - are you saying that you need to have BOTH localhost AND the IP address set up as hostnames in httpd.conf and server.xml? If there's no localhost defined, are there some particular repercussions? Thanks! -- Lynn Hollerman. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Jvmroute and worker names?
Does JVMRoute HAVE to be unique if you have session clustering? I know it has to be unique to have session affinity without clustering. I want apache to roundrobin the requested within a group of tomcats that have clustered sessions. Hmm, lots of expirements :) --Angus -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 11:52 AM To: Tomcat Users List Subject: RE: Jvmroute and worker names? Yes, it remembers which engine sent which jvmroute. It will return the session to that same engine as long as that engine is up. I don't think the workers names have anything to do with the jvmroute. They can be different. The jvmroute names have to be unique across all engines that are in the load balanced cluster. -e On Tue, 5 Aug 2003, Angus Mezick wrote: Yup, I guess this is more of a JK2 question. Does it remember which server returned which jvmroute? Or does jk2 use the worker name somehow. All examples have them being the same so it is slightly confusing. -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 11:40 AM To: Tomcat Users List Subject: Re: Jvmroute and worker names? Hi, jvmroute names don't equate to the names of the workers in your properties file. basically all jvmroute does is tack that name on the end of the session id so the connector knows what tomcat to send the session to in a loadbalanced env. It's sticky that way. I'm not sure about the clustering but I had always thought that jvmroutes had to be unique. That way it wouldn't mistake one server for the other. -e On Tue, 5 Aug 2003, Angus Mezick wrote: Does the name of the JvmRoute in server.xml have to equal the name of the host in worker2.properties when linking apache and tomcat to get proper session affinity? Can I have 4 tomcats, each paired together with session clustering and identical jvmroutes and then have apache use session affinity to send requests correctly to each cluster of 2 tomcats? Sorry for the crosspost. Didn't even get a nibble on users yesterday so I am assuming this is deep withing the app. Angus Mezick GuideStar - Philanthropic Research Inc. 427 Scotland St. Williamsburg, Virginia 23185 PHONE: (757)299-4631 x35 FAX:(757)229-8912 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.guidestar.org http://www.guidestar.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomat and ssl
So I should uncomment the 8443 part in the server.xml? -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 11:18 AM To: Tomcat Users List Subject: Re: Tomat and ssl The Tomcat connector on 8080 is not HTTPS, but HTTP, so https://x.x.x.x:8080/x; will never work. Typically, the SSL connector for Tomcat is 8443. John [EMAIL PROTECTED] wrote: HI, Okay I restarted and it now works - Thanks. I now have the apache part working but when I go to https://placeanad.classifiedmarketplace.net:8080/AdWebster it doesn't work? What else do I need to add? Thanks, Bobbie -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 10:53 AM To: Tomcat Users List Subject: Re: Tomat and ssl servelet should be servlet, I think, unless you also have it as servelet elsewhere in your config. The error message you're getting is the same one we discussed last week: are you sure you are loading mod_jk.so? Are your mod_jk directives like LaodModule and JkWorkersFile etc. in httpd.conf ABOVE your SSL virtual host block? Apache works top down through httpd.conf. John [EMAIL PROTECTED] wrote: Greetings, I've added the mod_jk to my apache httpd.conf file and I've placed the info from John Turner's How TO This is what my virtual host container but I'm getting an error when I try to restart apache Any ideas? VirtualHost *:443 DocumentRoot /usr/local/jakarta-tomcat-4.1.27/webapps ServerName placeanad.classifiedmarketplace.net ErrorLog logs/placeanadclassi.com-error_log CustomLog logs/placeanadclassi.com-access_log common SSLEnable SSLCertificateFile /usr/local/apache/conf/ssl.crt/server1.crt SSLCertificateKeyFile /usr/local/apache/conf/ssl.crt/server1.key JkMount /* ajp13 JkMount /*.jsp ajp13 JkMount /servelet/* ajp13 /VirtualHost -bash-2.05b# cd ../bin205C written -bash-2.05b# ./apachectl configtest Syntax error on line 1002 of /usr/local/apache/conf/httpd.conf: Invalid command 'JkMount', perhaps mis-spelled or defined by a module not included in the server configuration Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: System properties
Howdy, But what do I have to do if I would like to set more than one system property? export JAVA_OPTS='-DpropName1=propValue1 -DpropName2=propValue2' ??? Yes, as many as you want just like that. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Question about ssl and tomcat
Greetings, I'm hosting a ssl site with mod_ssl on the apache server and I need to have it to connect to tomcat can't I change one of the connector lines in server.xml to redirect the port? Such as redirectPort- If this Connector is supporting non-SSL requests, and a request is received for which a matching security-constraint requires SSL transport, Catalina will automatically redirect the request to the port number specified here. You see my website works fine going through 8080 but when I try to get the https site to go through it - I get page can't be found or it displays code instead of working. Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]