Tomcat and SuSE 9.3...
Hello everybody, I have been doing some research and there seems to be a problem with Tomcat and SuSE 9.3 professional. I haven't managed to find a solution yet or figure out one for myself. Does anybody have a suggestion? I do NOT want to role back to 9.2 as this is now out of the question due to other factors involved. Any help will be greatly appreciated and thank-you in advance. Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Don't feed the bats tonight. pgp54HV7pPlWG.pgp Description: PGP signature
Re: Tomcat and SuSE 9.3...
On Thursday 12 May 2005 13:32, Raghupathy,Gurumoorthy wrote: Wht is the problem ? When I install Tomcat 5 (base, examples, and admin) I get an error with the packages. I read that this is to do with incorrect directory names or link names. On one of my other test machines I keep getting a socket exception and a broken pipe exception when trying to connect via JDBC to a PostgreSQL server. My catalina.start in the log files directory indicates a problem with the permissions for tomcat5.pid. Now I have spent the whole day trawling the web, searching google, trying various things and even searching the archives of this mailing list and I still can't solve the problem. I have now tried this on 5 different machines with two different (original) sets of SuSE 9.3 discs and I still get these errors. I have tried both 1.4 and 1.5 SDKs and still these errors persist. I can't believe that I am the unfortunate person to discover this problem... ...I can't be that unlucky. :( Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Finagle's fourth Law: Once a job is fouled up, anything done to improve it only makes it worse. pgpRwczp8ID8j.pgp Description: PGP signature
Re: SuSE 9.3 and Tomcat 3...
Here are some of the errors I get: 1). This is the one that occurs when I attempt to install Tomcat Webapps. error 2005-05-12 13:40:44 tomcat5-webapps-5.0.30-4.noarch.rpm install failed rpm output: /usr/bin/build-jar-repository: error: JVM_LIBDIR /usr/lib/jvm-exports/java does not exist or is not a directory error: %post(tomcat5-webapps-5.0.30-4) scriptlet failed, exit status 5 /error 2). This is the error that I get in the start.log file. error /usr/share/tomcat5/bin/catalina.sh: line 284: /var/run/tomcat5.pid: Permission denied /error 3). The other was a broken pipe and socket exception error that appears in the application log (i.e. ROOT log), unfortunately I don't have an example of this one. Thanks Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Political T.V. commercials prove one thing: some candidates can tell all their good points and qualifications in just 30 seconds. pgpVsFox9u7tQ.pgp Description: PGP signature
Re: Tomcat and SuSE 9.3...
On Thursday 12 May 2005 14:12, Bjrn T Johansen wrote: But why do you use the Tomcat that comes with SuSE 9.3?? I am using SuSE 9.3 and Tomcat works like a charm.. (but I don't use SuSE's version...) Yeah ... I asked myself that same question 3 minutes ago. :( I guess I will go to a NON-SuSE version of Tomcat. I just normally like to use the ones that come with the Distro, because they are apparently tested and there should be NO issues... ...well I guess NOT. :( What version of Tomcat are using on SuSE 9.3? I have downloaded 5.5.9, but now I broke the one SuSE 9.3 install, so I will have to re-install first. *sigh* Should have stayed in bed today. ;) BTJ Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Power, n: The only narcotic regulated by the SEC instead of the FDA. pgpkq1wo8jFrS.pgp Description: PGP signature
Re: index.jsp not found
On Wednesday 05 January 2005 08:21, Atishay Kumar wrote: hi, I am using tomcat 4.1.27 on linux. I deleted my index.jsp page but even then index.jsp was showing even after i refreshed the page. after refreshing 2-3 times it said that index.jsp not found (which it should have done first time itself). After that i put a new index.jsp . but still it is showing that index.jsp not found. even after refreshing numerous times. what could be the possible problem? and what is the solution so that it does not re-occur. On linux touch the file with the touch command... ...or alternatively... ...restart Tomcat. thanks Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ I know it all. I just can't remember it all at once. pgpF1rzCv6w7E.pgp Description: PGP signature
Re: Tomcat 5 and Realm problem
On Tuesday 14 December 2004 19:40, VAN DER MARLIERE FREDERIC wrote: Hi, Hello, The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser I had a similar problem like this a while ago, using a PostgresQL DB server on a Linux machine, it turned out that I had all three versions of the JDBC Driver in my common/lib and server/lib directory. Once I removed the other two versions, this problem went away. Does someone have any idea about the origin of my problem ? My suggestion would be to check your versions of the JDBC Driver you are using and make sure it is the correct version and working correctly. Thanks. Fred. Regards Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ It's Fabulous! We haven't seen anything like it in the last half an hour! -- Macy's pgpewjkEbfWew.pgp Description: PGP signature
Re: Books on Tomcat
On Friday 10 December 2004 15:25, Venkat Radha Venkataramanan wrote: Can somebody suggest a good book on Tomcat for beginners? The one that I use daily is called: Tomcat 5 Unleashed. It is published by SAMS and is one of the most comprehensive reference guides for Tomcat that I have found to daye. ISBN: 0-672-32636-1 www.samspublishing.com Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ I am ready to meet my Maker. Whether my Maker is prepared for the great ordeal of meeting me is another matter. -- Winston Churchill pgpOVZY0NUpk5.pgp Description: PGP signature
[OT] Session Stats...
Hello Everybody, How do you like these apples: Web-app Sessions / 21 /consulting 2,047 /debtors201 /placements 0 /sales 2 /training 2,412 Running JMeter with 200 concurrent threads looping for 10 runs and I still get an average of less then 4 seconds (3900 ms) per page. All this is running on a SUN Fire server using SuSE 9.2 and PosgresQL. Just thought I would share this... ...btw, the server only currently has 2 CPUs, the other 2 on arriving in the next couple of days. :) Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ There is only one thing in the world worse than being talked about, and that is not being talked about. -- Oscar Wilde pgplIjXSqgR6D.pgp Description: PGP signature
Re: Moving from 4.1.27 to 5.0.28?
On Wednesday 01 December 2004 15:08, Bjrn T Johansen wrote: I am thinging of upgrading our prod Tomcat server from 4.1.27 to 5.0.28 (or is 5.5.4 a safer bet?) and I was wondering if there would be any problems when upgrading? Anything particular I should think of? My advice is to redo your server.xml file from scratch... ...much safer and will cause you less headaches. I recently moved from Tomcat 4 to Tomcat 5 and had a few minor glitches until I took the time to recreate the server.xml file using the server.minimal.xml file in the same directory. Regards, BTJ Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ I have learned To spell hors d'oeuvres Which still grates on Some people's n'oeuvres. -- Warren Knox pgpyKnFurre6t.pgp Description: PGP signature
Re: [OT] RE: Tomcat Requirements?
On Tuesday 30 November 2004 12:42, Peter Crowther wrote: Bloody. Would you expect that to be the case? Naively, I'd be looking at my database indexing at this point and seeing what was causing mySQL to have problems. I had a similar problem with PostgresQL. Created some indexes and now the slowest part of the system is the network connection to the client. Without seeing some memory and disk I/O figures, I can't answer that - simply measuring the CPU gives you one dimension of (at least) a 3-dimensional puzzle. :) I agree. Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ I'd love to go out with you, but I have to stay home and see if I snore. pgpOAZhJ5iC6r.pgp Description: PGP signature
Re: suse 9.1, tomcat5.0.27, mod_jk2, apache 2.0.13 problems
On Tuesday 30 November 2004 18:05, dawg fan wrote: Thanks for the response! No problem. Actually these were fresh reloads. Kewl. Are you running the same tomcat 5, apache2 versions that I am? Not sure. Tomcat: 5.0.27-9 Apache: 2.0.50-7.2 -joe Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ If there are epigrams, there must be meta-epigrams. pgplgN9XBlkPb.pgp Description: PGP signature
Re: What's the defaukt Admin user id/password
On Tuesday 30 November 2004 22:58, Venkat Radha Venkataramanan wrote: Hello: Hi, Can somebody tell me what the default admin user id/password is? Thanks. There isn't one. Add a admin user entry to the tomcat-users.xml file and give the user admin and manager roles. Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Biology is the only science in which multiplication means the same thing as division. pgpVl1W5r7YSC.pgp Description: PGP signature
Re: No more threads
On Monday 29 November 2004 15:31, David Teruel wrote: Hello everyone. Push your memory utilisation for the JVM up. See one of the previous threads that I responded too. Also make sure that you enough sockets available. :P I'm having one little problem with the memory of my Tomcat 5.5.4. I'm doing a little test for knowing how many concurrent sessions of my application can I have. When 50 (more or less) sessions are opened, I get the following error in the server. java.lang.OutOfMemoryError: unable to create new native thread The server is running under a HP-UX machine, and jre1.4. I've also tried the same test for the same application in a Windows-based computer (256 Mb RAM, much more worst then the HP) with a Tomcat 5.0.19 and jre1.3 too; and it could run 1500 sessions without many problems. Does any one know the reason of this problem? An the proper solution? Thanks. Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Anybody can win, unless there happens to be a second entry. pgpOZSzuIFiHb.pgp Description: PGP signature
Re: No more threads
On Monday 29 November 2004 15:42, David Teruel wrote: Hello. Thanks for your response. I'd already tried this solution, but if I add the line you recomend, I get this message Interesting. UseTrainGC not supported yet for 32-bit. Could not create the Java virtual machine. What JVM are you using? Need type and version (i.e. SUN, 1.4.2). Do you know why? Sounds like a very old or very propriety JVM, which maybe you should look at changing to a newer version. Show me you config file where you added the memory line. Thanks again. Regards Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ GEMINI (May 21 to Jun. 20) Good news and bad news highlighted. Enjoy the good news while you can; the bad news will make you forget it. You will enjoy praise and respect from those around you; everybody loves a sucker. A short trip is in the stars, possibly to the men's room. pgpOj5GlIfZ5P.pgp Description: PGP signature
Re: accessing files within webapps
On Monday 29 November 2004 16:42, Shapira, Yoav wrote: Hi, Hi, Suggestion: show us what the actual error is, e.g. a stack trace. It's most likely an environment configuration issue as you suggest. But not likely to be a file permissions issue: rather, check that the mail server is correctly configured, SMTP port access is setup, etc. I have a similar application that attaches a map of a venue to an e-mail and sends it to the relevant e-mail address. My initial problem was definitely permissions until I gave ownership of the directory to where the files reside to the user that tomcat runs at. Pre version 5.0 it was wwwrun:users, post version 5.0 it is tomcat:tomcat (or at least on SuSE Linux it is). Also make sure that your Security Manager is not preventing you from connecting to the mail server... ...this was also one of my problems. Another problem is to also ensure that you have the correct version of mail.jar and activation.jar in the common/lib and server/lib directories of your tomcat server. Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Speaking of Godzilla and other things that convey horror: With a purposeful grimace and a Mongo-like flair He throws the spinning disk drives in the air! And he picks up a Vax and he throws it back down As he wades through the lab making terrible sounds! Helpless users with projects due Scream My God! as he stomps on the tape drives, too! Oh, no! He says Unix runs too slow! Go, go, DECzilla! Oh, yes! He's gonna bring up VMS! Go, go, DECzilla! * VMS is a trademark of Digital Equipment Corporation * DECzilla is a trademark of Hollow Chocolate Bunnies of Death, Inc. -- Curtis Jackson pgpyKF3z8EXV0.pgp Description: PGP signature
Re: Tomcat Requirements?
On Monday 29 November 2004 21:43, Chris Cherrett wrote: I have a client who is claiming that my software is slowing down. I cannot determine why this would be. He is running the following: P3 - 450 with 360MB of RAM with 2 IDE - 7200 RPM drives mirrored Raid 1 with Win2k I have found that any client running a faster system works great. Do you have any suggestions as to how to speed things up on this hardware configuration? example increase memory allocated to Tomcat. Load Linux. :) Just kidding... ...I would look at maybe trying to increase the memory on the box, 350 MB for Win2K is not much and Win2K will use at least 2/3rds of that just for fun. I would try and push the customer to get a bigger server, use the excuse that PIII are no longer supported and a PIV or Athlon are very cheap now days. At least 512 MB or a 1GB of RAM would be advisable... ...not for tomcat but for the OS that can be very resource intensive when it feels like it. Or, disable all services that are not required on the machine, this sometimes help. Thanks Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ In any world menu, Canada must be considered the vichyssoise of nations -- it's cold, half-French, and difficult to stir. -- Stuart Keate pgpEX3wnZhFCR.pgp Description: PGP signature
Re: Delivering JSPs without source
On Tuesday 30 November 2004 01:32, Steve Procter wrote: We have a web application that uses jsps. We want to deliver the application to the customer without source for the jsps. We have done this in the past by putting all of the compiled jsps into a jar file. Hi, Hate to burst your bubble, but because you put it in a jar file doesn't mean that the source is protected. JAR files can be opened with WinZIP, tar, and jar. Jar files are merely convenient ways of storing/distributing/installing Java code and packages. Recently we had to move the application jar files from webapps/appname/WEB-INF/lib to common/lib because we implemented our own realm which uses our object repository; since it has to be installed in server/lib, the code for the repository cannot be installed under the web application directory. When the application is installed in common/lib it is not able to load the compiled jsp files. They are installed in common/lib/. Does anyone have an idea about why these classes are not visible? My suggestion is to rather move your functionality into Java classes and use the JSP pages to present the information to the client. Thanks, --Steven Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Man is the best computer we can put aboard a spacecraft ... and the only one that can be mass produced with unskilled labor. -- Wernher von Braun pgpGMh6Cs0078.pgp Description: PGP signature
Re: suse 9.1, tomcat5.0.27, mod_jk2, apache 2.0.13 problems
On Tuesday 30 November 2004 06:29, dawg fan wrote: Hello, Hi, We just reloaded many of our front-end servers to suse 9.1 from suse 8.2. This release of suse of course has the new 2.6 kernel with a few other changes. That is the only change as we used the same tomcat 5.0.27, mod_jk2, and apache 2.0.13 configurations from the previous 8.2 server. These servers easily do over 100,000 http requests per server per hour. Under the new 9.1, we get many more mod_jk2 errors and the frequently occurring hanging apache child processes. This causes high cpu usage and causes the server to get slow and stop serving. Interesting, I moved from 8.2 to 9.2 and after re-creating all the config files my performance actually increased. Did you upgrade the servers or do a fresh install of SuSE 9.1? Sometimes upgrades actually slow the machine down. I always do complete re-installs. :) To attempt a fix, apache was recompiled in 9.1. Problems still occur. Has anyone else noticed this performance issue? Is a recompilation of mod_jk2 and/or tomcat needed for them to function correctly in the new suse 9.1? Thoughts? -Joe Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Hofstadter's Law: It always takes longer than you expect, even when you take Hofstadter's Law into account. pgpNsoVBHHxV4.pgp Description: PGP signature
Re: Delivering JSPs without source
On Tuesday 30 November 2004 06:39, you wrote: Ummm - I think you need to read the original message again. He's putting _compiled_ JSPs into the jar - not source. These are .class files, not .jsp or .java. Of course, there are some pretty decent disassemblers out there. Ooops ...sorry, misread the posting. Ignore my e-mail, my bad. :( - Chuck Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Get GUMMed --- -- The Gurus of Unix Meeting of Minds (GUMM) takes place Wednesday, April 1, 2076 (check THAT in your perpetual calendar program), 14 feet above the ground directly in front of the Milpitas Gumps. Members will grep each other by the hand (after intro), yacc a lot, smoke filtered chroots in pipes, chown with forks, use the wc (unless uuclean), fseek nice zombie processes, strip, and sleep, but not, we hope, od. Three days will be devoted to discussion of the ramifications of whodo. Two seconds have been allotted for a complete rundown of all the user- friendly features of Unix. Seminars include Everything You Know is Wrong, led by Tom Kempson, Batman or Cat:man? led by Richie Dennis cc C? Si! Si! led by Kerwin Bernighan, and Document Unix, Are You Kidding? led by Jan Yeats. No Reader Service No. is necessary because all GUGUs (Gurus of Unix Group of Users) already know everything we could tell them. -- Dr. Dobb's Journal, June '84 pgpJnQXwGuMJe.pgp Description: PGP signature
Re: Tomcat manager + administration
On Friday 26 November 2004 14:33, Ciaran Hanley wrote: Hi, Hi, We have tomcat 5.0.19 on our box but it has been installed without tomcat manager and administration. There is no ../server/webapps/ directory. Ooops. :p How can I manually add these without having to reinstall tomcat. Just get someone with the same OS and Tomcat Version to give you all the relevant files. Thanks, Ciaran Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ The older I grow the more I distrust the familiar doctrine that age brings wisdom. -- H. L. Mencken pgpq3Pfdh6jrO.pgp Description: PGP signature
Re: Tomcat not starting using startup.bat
On Friday 26 November 2004 17:17, Roman D wrote: Tomcat 5.0.28, Windows XP System global environment variables set: JAVA_HOME = c:/j2sdk1.4.2_04 CATALINA_HOME = C:/Program Files/Apache Software Foundation/Tomcat 5.0 Installed using jakarta-tomcat-5.0.28.exe default install options (Installs to program files) it's not possible to start from command line using startup.bat; c:\Program Files\Apache Software Foundation\Tomcat 5.0\binstartup.bat Using CATALINA_BASE: C:/Program Files/Apache Software Foundation/Tomcat 5.0 Using CATALINA_HOME: C:/Program Files/Apache Software Foundation/Tomcat 5.0 Using CATALINA_TMPDIR: C:/Program Files/Apache Software Foundation/Tomcat 5.0\temp Using JAVA_HOME: c:/j2sdk1.4.2_04 Exception in thread main java.lang.NoClassDefFoundError: Files/Apache Of course obvious step is to install tomcat in simple path like c:\tomcat, but I need to have it working on any installation path. And I need to use startup.bat, not service launcher. Because of your Path and Operating System you will have to use the Directory shortcut method. I know that XP support spaces in path names from the command prompt but Java doesn't realy. Change Program Files to Progra~1 Change Apache Software to Apache~1 Any suggestions? Thanks. This should work. I had a similar problem in '97 when I first started developing in Java. :) Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ When I was crossing the border into Canada, they asked if I had any firearms with me. I said, `Well, what do you need?' -- Steven Wright pgpxMI7QYrKNF.pgp Description: PGP signature
Tomcat 5 Dies...
Hello Everybody, I have a strange issues, every 3 hours or so my Tomcat 5 server just dies but nothing is logged in any of the logs. I am not sure what the problem could be, has anyone else experienced this problem. The process on Linux stays up but none of the clients can connect to the server on 8080 or 8443. :( Regards Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ I'll rob that rich person and give it to some poor deserving slob. That will *prove* I'm Robin Hood. -- Daffy Duck, Robin Hood Daffy, [1958, Chuck Jones] pgpFgp97uEBym.pgp Description: PGP signature
Tomcat 5 Dies...
Okay, I have now narrowed the problem down to the following: WebappClassLoader: Failed to open JAR java.util.zip.ZipException: Too many open files So like what does this mean? I have and am busy googling... ...but I haven't been successful just yet. Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ At Group L, Stoffel oversees six first-rate programmers, a managerial challenge roughly comparable to herding cats. -- The Washington Post Magazine, 9 June, 1985 pgpYIcSUEYEim.pgp Description: PGP signature
Tomcat Sessions...
Hi, I have a friend who has a question for the list. One thing I have seen is that if I open 2 tabs in Firefox with the same app running and log in as different users, it works for a while and then, all of a sudden, both tabs have the same user information. I contacted the supplier of the app and he said that it is Tomcat's tagging of sessions that is broken and not his app. Have you seen this?? Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ The past always looks better than it was. It's only pleasant because it isn't here. -- Finley Peter Dunne (Mr. Dooley) pgpgtIxRdCV5x.pgp Description: PGP signature
Re: Tomcat
On Friday 26 November 2004 07:02, [EMAIL PROTECTED] wrote: Hi there, I would like to access my pages created with applets in Tomcat by typing the host in the URL and not having to add the default port for Tomcat (:8080). I have Apache2 and the apache2-jakarta-tomcat connectors installed. I created a index.html with a meta-tag in it that automatically redirects the browser to the tomcat port. I needed to keep my Apache for other purposes and changing the default connector of Tomcat to Port 80 was not an option. Here is my code: html head meta http-equiv=refresh content=1;URL=http://your.server.site:8080/; /head body /body /html Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Command, n.: Statement presented by a human and accepted by a computer in such a manner as to make the human feel as if he is in control. pgpLK08WF4DXo.pgp Description: PGP signature
Re: Servlet class not found
On Wednesday 24 November 2004 13:21, Richard Lewis wrote: Hello, Hi, This is probably quite a simple question but I couldn't find an answer in the archives: Did you compile the class file and declare its package? package za.co.vippayroll.intsys.training.database; This line should appear above your import statements? Any ideas? Thanks, Richard Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ FIGHTING WORDS Say my love is easy had, Say I'm bitten raw with pride, Say I am too often sad -- Still behold me at your side. Say I'm neither brave nor young, Say I woo and coddle care, Say the devil touched my tongue -- Still you have my heart to wear. But say my verses do not scan, And I get me another man! -- Dorothy Parker pgpNPqBt9gGtL.pgp Description: PGP signature
Re: org.apache.commons.digester.Digester error
On Wednesday 24 November 2004 13:29, akki wrote: The content of element type web-app must match This is where your error is. You xml file doesn't have a closing /web-app or one of the other tagsets doesn't have a closing equivalent. Check you xml file for the problem... ...or insert into an e-mail and I can check for you. Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ What this country needs is a good five cent nickel. pgpTVh4AtC0ZH.pgp Description: PGP signature
Too many open files error...
Hi, I get this error in my catalina.out logs every 30 or so minutes and then I am forced to restart Tomcat. Does this mean that I don't have enough sockets for my connector or what? CATALINA_OUT SEVERE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8443]] ignored exception: java.net.SocketException: Too many open files java.net.SocketException: Too many open files at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353) at java.net.ServerSocket.implAccept(ServerSocket.java:448) at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(DashoA12275) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocketFactory.java:110) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:368) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:549) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) SEVERE: Endpoint null ignored exception: java.net.SocketException: Too many open files java.net.SocketException: Too many open files at java.net.ServerSocket.createImpl(ServerSocket.java:254) at java.net.ServerSocket.getImpl(ServerSocket.java:205) at java.net.ServerSocket.bind(ServerSocket.java:318) at java.net.ServerSocket.init(ServerSocket.java:185) at java.net.ServerSocket.init(ServerSocket.java:141) at javax.net.ssl.SSLServerSocket.init(DashoA12275) at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.init(DashoA12275) at com.sun.net.ssl.internal.ssl.SSLServerSocketFactoryImpl.createServerSocket(DashoA12275) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:89) at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:259) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:429) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:549) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) Nov 24, 2004 3:22:46 PM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket WARNING: Restarting endpoint Nov 24, 2004 3:22:46 PM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket SEVERE: Endpoint null shutdown due to exception: java.io.FileNotFoundException: /usr/share/tomcat5/bin/.keystore (Too many open files) java.io.FileNotFoundException: /usr/share/tomcat5/bin/.keystore (Too many open files) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.init(FileInputStream.java:106) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:276) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:220) at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(JSSE14SocketFactory.java:143) at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:109) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:88) at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:259) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:441) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:549) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) /CATALINA_OUT Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Lubarsky's Law of Cybernetic Entomology: There's always one more bug. pgpBfXu1SEBjF.pgp Description: PGP signature
Re: Too many open files error...
On Wednesday 24 November 2004 15:33, Peter Crowther wrote: Hi Peter, Quinton, what OS are you on? If on UNIX, this could mean that you have run out of file descriptors for the process - at least, I last saw this error when running a popular telnet-based multi-user game when we fell off the end of the descriptor table! Running SuSE Linux 9.2. Some (most!) UNIX kernels allow you to modify the maximum number of file descriptors. The precise mechanism varies depending on the OS. - Peter I found out what it was, my sockets for the connector was set to 100 and I have more then 100 users... ...pushed the sockets up to 300. Problem solved. :) Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Niklaus Wirth has lamented that, whereas Europeans pronounce his name correctly (Ni-klows Virt), Americans invariably mangle it into (Nick-les Worth). Which is to say that Europeans call him by name, but Americans call him by value. pgpJk6SKyBDHZ.pgp Description: PGP signature
Re: java.lang.OutOfMemoryError: Java heap space
On Thursday 25 November 2004 06:01, Lee Chin Khiong wrote: How to solve this ? Add this line to your catalina.sh for unix: JAVA_OPTS=-Xms128m -Xmx256m Add this line to you catalina.bat for Windows: set JAVA_OPTS=-Xms128m -Xmx256m I normally add this line under the one that start JAVADIR. This will set your minimum heap size -Xms to 128 MB and your memory -Xmx to 256m. You will have to tweak this setting to get the best results, sometimes if you set it too high, Tomcat will not start up (check you catalina.out file). On our live server we have set this option to -Xms1024m and -Xmx2048m. The machine has 8GB of RAM so that is why we set it so high. :) Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Hindsight is an exact science. pgpI5uzi9N6EE.pgp Description: PGP signature
Re: Tomcat 5 and Mail...
On Tuesday 23 November 2004 16:55, Phillip Qin wrote: Okay, I have set the policies and I have built a basic mailer form, now when I try and send an e-mail I get this error: ERROR javax.mail.NoSuchProviderException: smtp at javax.mail.Session.getService(Session.java:611) at javax.mail.Session.getTransport(Session.java:541) at javax.mail.Session.getTransport(Session.java:484) at javax.mail.Session.getTransport(Session.java:464) at javax.mail.Session.getTransport(Session.java:519) at javax.mail.Transport.send0(Transport.java:155) at javax.mail.Transport.send(Transport.java:81) at org.apache.jsp.sendmail_jsp._jspService(sendmail_jsp.java:75) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) /ERROR Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ If anything can go wrong, it will. pgpYfIBB1i00J.pgp Description: PGP signature
Re: java.lang.OutOfMemoryError: Java heap space
On Thursday 25 November 2004 07:23, Lee Chin Khiong wrote: I'm using Tomcat 5, jdk1.5, running XP. By default Tomcat only allocates 64MB of memory to the compiler. You also make sure that you don't have a memory leak in your code. Power up the manager/html application and go to server status. Keep refreshing the page and watch if your memory usage just keeps climbing without releasing any memory. This happen after a while and I didn't configure the memory, it's default. Regards Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ The reason it's called Grape Nuts is that it contains dextrose, which is also sometimes called grape sugar, and also because Grape Nuts is catchier, in terms of marketing, than A Cross Between Gerbil Food and Gravel, which is what it tastes like. -- Dave Barry, Tips for Writer's pgprkkoXRjji7.pgp Description: PGP signature
[FIXED] Tomcat 5 and Mail...
Hi everybody, Sorry for being a pain but I have fixed this problem. I had the incorrection versions on the mail.jar and activation.jar files on my server. I downloaded the latest from SUN and all is well in the land again. :) Thanks again for all those that offered advice. Regards Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Lunatic Asylum, n.: The place where optimism most flourishes. pgpQqGoSjIKPF.pgp Description: PGP signature
Tomcat 5 and Mail...
Hey Everybody, I picked up a funny. Code that was working perfectly on Tomcat 4 now doesn't run on Tomcat 5 anymore, specifically the sending of the mail. I have narrowed it down to this little piece of code: CODE //Send the message. Transport.send(mesMailer); /CODE I checked my Catalina.policy file and made sure that this entry was there: CATALINA_POLICY permission java.net.SocketPermission mail.server.name:25, connect,resolve ; /CATALINA_POLICY This didn't work, so I added the following options to the Catalina.policy file for each individual application running on the server: CATALINA_POLICY grant codeBase file:${catalina.home}/webapps/ROOT/- { permission java.net.SocketPermission 172.20.5.15:5432, connect; permission java.net.SocketPermission smtp.vippayroll.co.za:25, connect; }; grant codeBase file:${catalina.home}/webapps/consulting/- { permission java.net.SocketPermission mail.server.name:25, connect,resolve; }; grant codeBase file:${catalina.home}/webapps/debtors/- { permission java.net.SocketPermission mail.server.name:25, connect,resolve; }; grant codeBase file:${catalina.home}/webapps/placements/- { permission java.net.SocketPermission mail.server.name:25, connect,resolve; }; grant codeBase file:${catalina.home}/webapps/sales/- { permission java.net.SocketPermission mail.server.name:25, connect,resolve; }; grant codeBase file:${catalina.home}/webapps/training/- { permission java.net.SocketPermission mail.server.name:25, connect,resolve; }; /CATALINA_POLICY Am I missing something? Is there something that has majorly changed between Tomcat 4 and Tomcat 5? Please help. :) Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Power, n: The only narcotic regulated by the SEC instead of the FDA. pgpF6L2S2YvU1.pgp Description: PGP signature
Re: Tomcat 5 and Mail...
On Tuesday 23 November 2004 14:50, you wrote: Hi, Well, let's try an even simpler scenario: test it without a SecurityManager. I have now checked that I have all the correct parameter in both the server.xml and the web.xml file for ther server and each individual application respectively. Still no luck. :( What Tomcat 5 version? Apache Tomcat/5.0 1.4.2_05-b04 Sun Microsystems Inc. Linux 2.6.8-24.3-bigsmp i386 Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ How wonderful opera would be if there were no singers. pgpnM9ZKQylvh.pgp Description: PGP signature
Re: Tomcat 5 and Mail...
On Tuesday 23 November 2004 15:10, Shapira, Yoav wrote: Hi, Hi, Let's try again: which specific Tomcat 5 version, e.g. 5.0.28? ;) Sorry. 5.0.27-9 The reason I ask is that I broke the MailSession factory in 5.0.25, so if you're using that build AND a JNDI MailSession factory, that would explain your problem. Ahhh. :) Yoav Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ It's more than magnificent -- it's mediocre. -- Sam Goldwyn pgpTYUthLmKCG.pgp Description: PGP signature
Problem with Admin Application...
Hi everybody... ...again. :p In my forays to fix my Mail problem and I have found another strange one. For some unknown reason the changes I make manually in the server.xml file are never reflected in the Admin Application and visa versa. I have also noted that when I click commit changes I get the following error in the top frame: ERROR HTTP Status 500 - Error invoking operation storeConfig type Status report message Error invoking operation storeConfig description The server encountered an internal error (Error invoking operation storeConfig) that prevented it from fulfilling this request. Apache Tomcat/5.0 /ERROR Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ I'd love to go out with you, but my favorite commercial is on TV. pgpUk0caxaeY0.pgp Description: PGP signature
Re: JDBC
On Wednesday 24 November 2004 00:13, Charles P. Killmer wrote: Looking for concensus on how people, with much more experience than I have, use to connect to SQL Server 7. I have been planning on using Datadirect's JDBC Connect until I saw the price tag for a server. Hi, I used the standard one available from Microsoft (I think) for months before we switched the entire system across to PostgresQL. I still have the JAR files and Documentation if you would like. So with that does any body have a preferred JDBC connector to SQL Server 7? I used it on SQL 7.0 and SQL 2000. Any help is greatly appreciated. Thanks Charles Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ In the beginning was the word. But by the time the second word was added to it, there was trouble. For with it came syntax ... -- John Simon pgptuqcRvmZB4.pgp Description: PGP signature
Re: Problem with Admin Application (SOLVED)...
On Tuesday 23 November 2004 15:43, Quinton Delpeche wrote: Hi, For those that are interested I manage to solve this problem last night. This happens because of incorrect permissions on the admin.xml stored in /etc/tomcat5/base/Catalina/localhost/ directory. By default SuSE 9.2 sets the attributes as follows: -rw-r- 1 root tomcat 862 Oct 5 03:20 admin.xml -rw-rw 1 root tomcat 322 Nov 18 16:15 manager.xml I mereley changed it to: -rw-rw 1 root tomcat 862 Oct 5 03:20 admin.xml And everything started working properly again. I wonder if SuSE is aware of this bug? Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ The more laws and order are made prominent, the more thieves and robbers there will be. -- Lao Tsu pgpxcF5uLAyWI.pgp Description: PGP signature
Re: LogOut from JDBC Realm
On Tuesday 23 November 2004 17:09, Chris Chappell wrote: Hi there Hi, Can anyone give me a pointer how to logout a JDBC Realm authenticated user without closing the browser. E.g. I need a log out button which forwards to a goodbye page and does something like this (fictitious) userSession.expire(); I've had a trawl thriough the docs etc and nothing springs to obvious use. Using SSL though don't think this would change anything re this. Just include this: % session.invalidate(); % it works on both 8080 (normal) and 8443 (ssl) connections. Cheers, Sorry if this appears 2*, 1st time seemed to get lost :-( Chris Chappell (TC 5.0.19 on Sol9 + MySQL 4) Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ President Thieu says he'll quit if he doesn't get more than 50% of the vote. In a democracy, that's not called quitting. -- The Washington Post pgp0z61iPkn0T.pgp Description: PGP signature
Re: OutOfMemory exceptions
On Tuesday 23 November 2004 16:03, Ryan Daly wrote: All: Hi, I've seen a few threads regarding the OutOfMemory problems. Has it been decided that reloading webapps is one of the causes of this? And, if so, would an undeploy and a new deploy fix that issue? Check the memory usage of your Tomcat server using the manager application. Should be under the Server Status option. This will give you a line something like this: JVM Free memory: 1017.68 MB Total memory: 1023.93 MB Max memory: 2047.93 MB Normally the JVM is set up to only use 64MB of memory by default. Add the following line to your catalina.sh file (Unix/Linux): CATALINA_OPTS=-Xincgc -Xms1024m -Xmx2048m Or add the following line to your catalina.bat fil (Windows): set CATALINA_OPTS=-Xincgc -Xms1024m -Xmx2048m I put this just under the JAVADIR line in that file (which is line 50 in my file). Restarted tomcat and all my memory messages went away. Thanks. -- Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ What good is a ticket to the good life, if you can't find the entrance? pgpDxVxigWlXo.pgp Description: PGP signature
Re: OFF TOPIC: Merging data into a PDF form
On Tuesday 23 November 2004 18:29, David Wall wrote: I have an existing PDF form (actually lots of them) and my webapp is querying a user for the missing data on the HTML form. I'd like to merge the POST data into the PDF document and end up with a new filled out PDF document. Has anybody done this or can point to tools that will help? Hi, I don't know about merging, but my application generates and HTML file and uses a linux utility (html2ps) to convert this to Postscript. Then depending on wether the user selects and e-mail address or fax number will convert the PS toPDF file using another linux utility (ps2pdf) and e-mail it to the user or send the PS file directly to our fax server. Basically I create a mini-shell script on the server at run-time that looks like this: FileOutputStream fisScript = new FileOutputStream(filScript, false); PrintWriter pwrScript = new PrintWriter(fisScript); pwrScript.write(#!/bin/bash\n); pwrScript.write(/usr/bin/html2ps -U -O -o + strPSFileName + + strHTMLFileName + \n); pwrScript.write(/usr/bin/ps2pdf + strPSFileName + + strTempPDFFileName + \n); pwrScript.write(/bin/mv + strTempPDFFileName + + strPDFFileName + ); pwrScript.close(); I then create a command string variable: String strCommand = /bin/bash /data/intsys/training/invoice/ + strLedgerID + .sh; I then execute the script using this: Process ls_procPS = Runtime.getRuntime().exec(strCommand); Works like a charm. :) Just make sure that the user that tomcat runs as (wwwrun pre 5) or (tomcat post 5) has read and write access to the relevant directories. I use a similar principal when the user wants to view the file instead, all that I do is generate the PDF and then redirect the browser to the location of the PDF. Thanks, David Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ The Roman Rule The one who says it cannot be done should never interrupt the one who is doing it. pgpnIlgZLqUIA.pgp Description: PGP signature
Re: Protecting my web server
On Wednesday 24 November 2004 07:24, Richard wrote: Hello Guys, Hi, - If possible load a firewall on the server or before the server with port forwarding. - Close all ports that are not required 110 25 22 21 23 etc. - Disable all services that are not required. - Load a tripwire if possible. - Monitor your server closely. Please advise. For demo purposes I need to expose my machine to the web. I got a public IP and have hosted my dev version of my webapp at port 80. im using tomcat 5. This machine should be running 24/7 for a couple of days and I need to know how I can protect it. Thanks in advance Richard Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ A novice was trying to fix a broken Lisp machine by turning the power off and on. Knight, seeing what the student was doing spoke sternly: You can not fix a machine by just power-cycling it with no understanding of what is going wrong. Knight turned the machine off and on. The machine worked. pgpzA8FltaNog.pgp Description: PGP signature
Re: Protecting my web server
On Wednesday 24 November 2004 07:36, Richard wrote: Hi Quinton / Guys, Im running on win xp sp2 and has turned on the bundled firewall. im currently scanning on sygate online scan. so far only port 80 is open. Then your machine should be secure. Just make sure that all the latest security patches/updates have been installed. As long as only Port 80 is open you should be fine. As long as your web-application is secure you should also be fine. Good luck. :) Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Too much of a good thing is WONDERFUL. -- Mae West pgpI8JjfdQZdJ.pgp Description: PGP signature
Another Admin problem...
Okay, I go through the normal process of setting up a blank server and I create the contexts through the admin application. It saves all the contexts and commits the information just fine. But when I log out of the admin application and log back in, my contexts are all missing. They are just gone, the directories and everything are still there but the admin utility doesn't show the contexts at all. Is this a Tomcat 5 thing? Is this a SuSE 9.2 thing? I never had this problem with Tomcat 4. :( Grrr... ...kicks the dustbin out of frustration. I have checked permissions... ...and the tomcat user definitely has rw access to the files... ...AFAIK!!! Thanks Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Anybody can win, unless there happens to be a second entry. pgpjcclb3I3cE.pgp Description: PGP signature
Re: Protecting my web server
On Wednesday 24 November 2004 07:49, Richard wrote: Hi Quinton, Can't really check, but the following guidelines are good: - Make sure your tomcat user does not have admin privileges on the server. (Not sure how to do this on Windows, I am a linux person). - Make sure your web-application doesn't have any funny code that might get exploited by a proficient hacker (i.e. shell commands run as ROOT). - Add a blank index.html to each directory of your web-app, this prevents users from getting directory listings on your server. - Ensure that you don't give away too much information in your URL (using ? and parameters). This can easily be prevented by implementing SSL and ensuring that the users have to log on first. How can you tell when your web-app is secure? Forgive me for asking too many questions, im just a newbie. No problem. I understand. :) Thanks Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ For some reason, this fortune reminds everyone of Marvin Zelkowitz. pgpz8w8s1JXei.pgp Description: PGP signature
Tomcat 5.0 or Tomcat 5.5...
Okay, I have now had enough. Due to endless little problems with Tomcat 5 I am contemplating moving over to Tomcat 5.5. Is this a good or bad idea? Regards Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ The Third Law of Photography: If you did manage to get any good shots, they will be ruined when someone inadvertently opens the darkroom door and all of the dark leaks out. pgp2Y1A5wffi5.pgp Description: PGP signature
Re: How to disable directory listing
On Wednesday 24 November 2004 08:09, Lee Chin Khiong wrote: How to disable directory listing under Tomcat 5 ? I use a blank index.html file and put it in all the directories that I don't want to have listed. :) Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ All snakes who wish to remain in Ireland will please raise their right hands. -- Saint Patrick pgpfvPhjde1Rx.pgp Description: PGP signature
Error in start.log...
Hello, I get this error in my start.log file /usr/share/tomcat5/bin/catalina.sh: line 281: /var/run/tomcat5.pid: Permission denied Now I know what this means, but I want to know if anybody else gets this error on a Linux distro using Tomcat 5.0? Regards Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Of course there's no reason for it, it's just our policy. pgp1TA1TN5EPY.pgp Description: PGP signature
SuSE 9.2 and Tomcat...
Hi Again, Well after pulling my hair out and getting very frustrated I have finally fixed and documented everything that needs to be done in order to get Tomcat 5 working on SuSE 9.2. This seems a little strange since I am using the version of Tomcat that comes with SuSE 9.2, but I won't say anymore on the matter. There are basically two important permission things that need to be done. 1). The files admin.xml and manager.xml in /etc/tomcat5/base/Catalina/localhost/ need to be given write access to the tomcat user. There new profile should look like this: -rw-rw-r-- 1 root tomcat 862 Oct 5 03:20 admin.xml -rw-rw-r-- 1 root tomcat 428 Oct 5 03:20 manager.xml This fix removes the previous error regarding the admin and manager applications that I posted earlier. 2). The tomcat user needs to be given access to /var/run in order to create the relevant PID file. Because my server is behind a firewall and I change the ROOT and user password on the server regularly, I changed the /var/run permissions so that everyone could read and write from and to this directory. The new profile should look like this: drwxrwxrwx 15 root root 1032 Nov 24 09:11 run This fix solves various issues regarding the admin and manager applications as well as the start.log error. Thats it. I don't know if this information will be useful to anyone, but I thought I would share it with you all anyway. Regards Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ A doctor, an architect, and a computer scientist were arguing about whose profession was the oldest. In the course of their arguments, they got all the way back to the Garden of Eden, whereupon the doctor said, The medical profession is clearly the oldest, because Eve was made from Adam's rib, as the story goes, and that was a simply incredible surgical feat. The architect did not agree. He said, But if you look at the Garden itself, in the beginning there was chaos and void, and out of that, the Garden and the world were created. So God must have been an architect. The computer scientist, who had listened to all of this said, Yes, but where do you think the chaos came from? pgp1EGCLWrCAE.pgp Description: PGP signature
Re: Error with request for /index.jsp - Is this a bug?
On Monday 22 November 2004 11:04, Shiva.Devaguptapu wrote: Hi, I am using the following configuration. When I request for http://abc.shiva.com/index.jsp or http://def.shiva.com/index.jsp, I am getting the tomcat welcome index.jsp page displayed. If I have some xyz.jsp as the welcome page, it serves fine. Is this a known bug in tomcat? Any solutions to get the application's index.jsp, as anyone expect? Okay, Let me check if I understand you correctly. You want to replace the ROOT index.jsp with your page. If this is yes then do the following. 1). Stop Tomcat. 2). Delete all files in ROOT directory of the tomcat server. 3). Put your files in the ROOT directory. 4). Restart Tomcat. I find that this helped me when I had to put my own version of a ROOT engine in place. Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ When more and more people are thrown out of work, unemployment results. -- Calvin Coolidge pgppjXK5k0m7D.pgp Description: PGP signature
Re: Error with request for /index.jsp - Is this a bug?
On Monday 22 November 2004 11:31, Shiva.Devaguptapu wrote: After doing all this, I changed the server.xml to have the Context as follows : Mine looks as follows: !-- Context for Internal Systems ROOT engine -- Context className=org.apache.catalina.core.StandardContext debug=99 cachingAllowed=true cookies=true crossContext=false charsetMapperClass=org.apache.catalina.util.CharsetMapper displayName=VIP Internal Systems (Core Engine) path= docBase=/srv/www/tomcat5/base/webapps/ROOT privileged=false mapperClass=org.apache.catalina.core.StandardContextMapper reloadable=false swallowOutput=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper /Context Context docBase=ROOT path= reloadable=false allowLinking=true debug=9 / Hm... ...this is a strange one. But still I get the same tomcat welcome page. I am not sure what is going on, sounds like one of two things: 1). It has cached the files and server config somewhere. 2). It is not pointing to the correct path. Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Concept, n.: Any idea for which an outside consultant billed you more than $25,000. pgpLGSppDUXDj.pgp Description: PGP signature
Re: high traffic Tomcat sites out there?
On Monday 22 November 2004 15:52, Shapira, Yoav wrote: Of course, your question itself is not that appropriate, because any answer is meaningless as it does not apply to your specific apps. Go run stress testers and figure out your max supported load for yourselves. I tend to agree. You need to do your own research in order to obtain the best configuration for your unique site, taking into account WAN/LAN speeds and such like. Our system is for Internal use only and serves over 600 concurrent sessions country wide and does on average 5 DB queries/insert/update every minute. We are running off a SUN Fire v40z using Tomcat 5, PostgresQL and all running off SuSE Linux 9.2 Professional. The SUN machine currently has 2 CPUs (the other two CPUs are on their way) and has 8GB of RAM. The biggest page we have takes on average 15 seconds to load (remotely), but it took a lot of Tomcat and PostgresQL tweaking to get it that way. I have spent many a night trying various little tweaks to get it just right, too many tweaks and the server gets too slow, too little tweaks and the server gets even slower. What I am trying to say is that there are no fast and hard rules that someone can tell you how many concurrent connections you should be able to serve. There are too many factors involved in this calculation that are unique to you and your site. Good luck. Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Sex is a natural bodily process, like a stroke. pgpVvaWTGASxW.pgp Description: PGP signature
Re: How to set Error Log for Web Application in TOmcat 5.5
On Monday 18 February 2002 03:40, inr wrote: Hai all, How to set the Error Log file for Our Own Web Application in Tomcat 5.5 AFAIK you will add a logger entry to your contest entry in the server.xml file. SERVER.XML EXTRACT !-- Context for Internal Systems ROOT engine -- Context className=org.apache.catalina.core.StandardContext i debug=99 cachingAllowed=true cookies=true crossContext=false charsetMapperClass=org.apache.catalina.util.CharsetMapper displayName=VIP Internal Systems (Core Engine) path= docBase=/srv/www/tomcat5/base/webapps/ROOT privileged=false mapperClass=org.apache.catalina.core.StandardContextMapper reloadable=false swallowOutput=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper Realm className=org.apache.catalina.realm.JDBCRealm connectionName=some_user connectionPassword=some_password debug=99 driverName=org.postgresql.Driver connectionURL=jdbc:postgresql://some.host.name:5432/database roleNameCol=quot;_vipRoleNamequot; userCredCol=quot;_vipPasswordquot; userNameCol=quot;cAgentNamequot; userRoleTable=quot;_vipRolequot; userTable=quot;_rtblAgentsquot; validate=true/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=ROOT_localhost_log. suffix=.txt timestamp=true/ /Context /SERVER.XML EXTRACT Obviously changing the defaults where neceesary. Hopefully this helps. Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Cabbage, n.: A familiar kitchen-garden vegetable about as large and wise as a man's head. -- Ambrose Bierce, The Devil's Dictionary pgpYbHqVhARfQ.pgp Description: PGP signature
Re: Problem in getting index.jsp from the webapp root
On Saturday 20 November 2004 15:38, Shiva.Devaguptapu wrote: Hi, Hi, I deployed one webapp in the tomcat 5.0.27 and there is an index.jsp in the root folder of my webapp. I configured a different Host... for this and gave the path= for the Context. The problem is when I access this index.jsp, I am getting the default tomcat welcome page (the one which comes when we hit http://localhost:8080 i.e., $CATALINA_HOME/webapps/ROOT/index.jsp). I deleted the ROOT folder from webapps and also deleted the Catalina folder from conf, which in it's hierarchy contains the ROOT.xml. Still I am getting the default welcome page when I request for my application's index.jsp. Can anyone of you suggest a solution for this? Can you show me your server.xml and web.xml files, please. Hopefully I can help you then. Thanks in advance, Shiva. Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Absurdity, n.: A statement or belief manifestly inconsistent with one's own opinion. -- Ambrose Bierce, The Devil's Dictionary pgprSy9ywX6tY.pgp Description: PGP signature
Re: Problem in getting index.jsp from the webapp root
On Saturday 20 November 2004 15:51, Shiva.Devaguptapu wrote: I attached them with this mail. Hi, Sorry but I didn't seem to get the attachment. Try zipping it. Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ If you sit down at a poker game and don't see a sucker, get up. You're the sucker. pgpcalkrlJvrE.pgp Description: PGP signature
Re: Problem on SuSE 9.2...
On Friday 19 November 2004 18:04, sven morales wrote: Hi Everybody, You may want to check if your SuSe 9.x has ipv6 enabled. It slows down connectivity because it also attempts to look up ipv6 addresses and that could possibly be causing your timeout. Try to disable ipv6 and see how it performs. In case any of you are interested, this error was caused by having the wrong version (or too many versions) of the PostgresQL JDBC driver installed in the common/lib and server/lib directory. I fixed this and it is working beautifully on my SUN Fire v40z. :) Regards Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ What is wanted is not the will to believe, but the will to find out, which is the exact opposite. -- Bertrand Russell, Skeptical_Essays, 1928 pgpy2ar8VjruM.pgp Description: PGP signature
JDBC User Realm Error...
Hello Everybody, I have set up a JDBC User Realm that authenticates against a PostgresQL server for a specific engine. Whenever I try and log in, it authenticates the user correctly (I check the logs and get the message below): LOG EXTRACT 2004-11-18 18:09:59 JDBCRealm[]: Username patsyr successfully authenticated /LOG EXTRACT But my Page is redirected to j_security_check with the following error: ERROR HTTP Status 408 - The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser type Status report message The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser description The client did not produce a request within the time that the server was prepared to wait (The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser). Apache Tomcat/5.0 /ERROR This same code worked perfectly on Tomcat 4.0 using a MS-SQL server. I am now migrating this application to Tomcat 5 on a PostgresQL server. Please help, I have tried googling but I cannot find any information regarding this. Thanks Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Does the name Pavlov ring a bell? pgpW9JchUQT9i.pgp Description: PGP signature
Problem on SuSE 9.2...
Greetings, It is me again. What does this error mean: The time allowed for the login process has been exceeded Is there a problem with my PostgresQL JDBC driver for the User Realm? This same code worked on a MS-SQL server... ...why won't work it here. The previous server was a SuSE 9.0 running Tomcat 4. Is there a serious difference in configuration? Here is the extract from my server.xml file: EXTRACT !-- Context for Internal Systems ROOT engine -- Context className=org.apache.catalina.core.StandardContext debug=0 cachingAllowed=false cookies=false crossContext=false charsetMapperClass=org.apache.catalina.util.CharsetMapper displayName=VIP Internal Systems (Core Engine) path= docBase=/srv/www/tomcat5/base/webapps/ROOT privileged=false mapperClass=org.apache.catalina.core.StandardContextMapper reloadable=true swallowOutput=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper Realm className=org.apache.catalina.realm.JDBCRealm connectionName=USER connectionPassword=PASSWORDS debug=99 driverName=org.postgresql.Driver connectionURL=jdbc:postgresql://SOME_IP:5432/intsys roleNameCol=quot;_vipRoleNamequot; userCredCol=quot;_vipPasswordquot; userNameCol=quot;cAgentNamequot; userRoleTable=quot;_vipRolequot; userTable=quot;_rtblAgentsquot; validate=true/ /Context /EXTRACT The names have been changed to protect the guilty. I have to echo the the column names and table names with quot; because I am using PostgresQL which is ANSI 92 compliant... ...could this be the problem. Please help me. :( Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ A day for firm decisions! Or is it? pgpJroC2U0Hml.pgp Description: PGP signature